@purpurds/date-field 8.8.0 → 8.8.1

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,25 +1,25 @@
1
- var Pt = Object.defineProperty;
2
- var Ot = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
- var u = (t, n, e) => Ot(t, typeof n != "symbol" ? n + "" : n, e);
1
+ var Mt = Object.defineProperty;
2
+ var kt = (t, n, e) => n in t ? Mt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
+ var u = (t, n, e) => kt(t, typeof n != "symbol" ? n + "" : n, e);
4
4
  import { jsxs as R, jsx as p } from "react/jsx-runtime";
5
- import * as q from "react";
6
- import { forwardRef as he, useId as Mt, useRef as Ue, useState as ge, useEffect as kt, useLayoutEffect as Dt } from "react";
5
+ import * as N from "react";
6
+ import { forwardRef as me, useId as Dt, useRef as et, useState as be, useEffect as Tt, useLayoutEffect as Nt } from "react";
7
7
  import "react-dom";
8
- const Tt = {
8
+ const Yt = {
9
9
  LG: "lg"
10
10
  };
11
- function Nt(t) {
11
+ function Et(t) {
12
12
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
13
13
  }
14
- var be = { exports: {} };
14
+ var xe = { exports: {} };
15
15
  /*!
16
16
  Copyright (c) 2018 Jed Watson.
17
17
  Licensed under the MIT License (MIT), see
18
18
  http://jedwatson.github.io/classnames
19
19
  */
20
- var xe;
21
- function Yt() {
22
- return xe || (xe = 1, (function(t) {
20
+ var ve;
21
+ function qt() {
22
+ return ve || (ve = 1, (function(t) {
23
23
  (function() {
24
24
  var n = {}.hasOwnProperty;
25
25
  function e() {
@@ -48,33 +48,33 @@ function Yt() {
48
48
  }
49
49
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
50
50
  })();
51
- })(be)), be.exports;
51
+ })(xe)), xe.exports;
52
52
  }
53
- var Et = Yt();
54
- const qt = /* @__PURE__ */ Nt(Et), Wt = "_rotate_12t9p_1", $t = "_dash_12t9p_1", jt = {
53
+ var Wt = qt();
54
+ const $t = /* @__PURE__ */ Et(Wt), jt = "_rotate_12t9p_1", Ht = "_dash_12t9p_1", Ct = {
55
55
  "purpur-spinner": "_purpur-spinner_12t9p_2",
56
- rotate: Wt,
56
+ rotate: jt,
57
57
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
58
58
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
59
59
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
60
60
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
61
61
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
62
62
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
63
- dash: $t,
63
+ dash: Ht,
64
64
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
65
65
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
66
- }, ve = qt.bind(jt), z = "purpur-spinner", Ht = {
66
+ }, Pe = $t.bind(Ct), z = "purpur-spinner", Lt = {
67
67
  SM: "sm"
68
- }, et = ({
68
+ }, tt = ({
69
69
  disabled: t = !1,
70
70
  negative: n = !1,
71
- size: e = Ht.SM,
71
+ size: e = Lt.SM,
72
72
  className: r,
73
73
  ...a
74
- }) => /* @__PURE__ */ p("div", { className: ve(z, `${z}--${e}`, r), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
74
+ }) => /* @__PURE__ */ p("div", { className: Pe(z, `${z}--${e}`, r), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
75
75
  "circle",
76
76
  {
77
- className: ve(`${z}__circle`, {
77
+ className: Pe(`${z}__circle`, {
78
78
  [`${z}__circle--disabled`]: t,
79
79
  [`${z}__circle--negative`]: n
80
80
  }),
@@ -83,19 +83,19 @@ const qt = /* @__PURE__ */ Nt(Et), Wt = "_rotate_12t9p_1", $t = "_dash_12t9p_1",
83
83
  r: "20"
84
84
  }
85
85
  ) }) });
86
- et.displayName = "Spinner";
87
- function Ct(t) {
86
+ tt.displayName = "Spinner";
87
+ function It(t) {
88
88
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
89
89
  }
90
- var Pe = { exports: {} };
90
+ var Oe = { exports: {} };
91
91
  /*!
92
92
  Copyright (c) 2018 Jed Watson.
93
93
  Licensed under the MIT License (MIT), see
94
94
  http://jedwatson.github.io/classnames
95
95
  */
96
- var Oe;
97
- function Lt() {
98
- return Oe || (Oe = 1, (function(t) {
96
+ var Me;
97
+ function Ft() {
98
+ return Me || (Me = 1, (function(t) {
99
99
  (function() {
100
100
  var n = {}.hasOwnProperty;
101
101
  function e() {
@@ -124,10 +124,10 @@ function Lt() {
124
124
  }
125
125
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
126
126
  })();
127
- })(Pe)), Pe.exports;
127
+ })(Oe)), Oe.exports;
128
128
  }
129
- var It = Lt();
130
- const Ft = /* @__PURE__ */ Ct(It), Rt = {
129
+ var Rt = Ft();
130
+ const At = /* @__PURE__ */ It(Rt), Qt = {
131
131
  "purpur-button": "_purpur-button_10jh0_1",
132
132
  "purpur-button--xs": "_purpur-button--xs_10jh0_22",
133
133
  "purpur-button--icon-only": "_purpur-button--icon-only_10jh0_25",
@@ -150,7 +150,7 @@ const Ft = /* @__PURE__ */ Ct(It), Rt = {
150
150
  "purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
151
151
  "purpur-button--text": "_purpur-button--text_10jh0_185",
152
152
  "purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
153
- }, Me = Ft.bind(Rt), I = "purpur-button", tt = he(
153
+ }, ke = At.bind(Qt), I = "purpur-button", rt = me(
154
154
  ({
155
155
  children: t,
156
156
  className: n,
@@ -167,7 +167,7 @@ const Ft = /* @__PURE__ */ Ct(It), Rt = {
167
167
  }, k) => {
168
168
  if (a && c === "destructive")
169
169
  return null;
170
- const N = Me(
170
+ const Y = ke(
171
171
  [
172
172
  I,
173
173
  `${I}--${s ? `${c}-negative` : c}`,
@@ -186,7 +186,7 @@ const Ft = /* @__PURE__ */ Ct(It), Rt = {
186
186
  return /* @__PURE__ */ R(
187
187
  "button",
188
188
  {
189
- className: N,
189
+ className: Y,
190
190
  type: w,
191
191
  ref: k,
192
192
  "aria-disabled": y,
@@ -194,12 +194,12 @@ const Ft = /* @__PURE__ */ Ct(It), Rt = {
194
194
  ..._,
195
195
  children: [
196
196
  i && /* @__PURE__ */ p(
197
- et,
197
+ tt,
198
198
  {
199
- size: d === Tt.LG ? "xs" : "xxs",
199
+ size: d === Yt.LG ? "xs" : "xxs",
200
200
  negative: s,
201
201
  disabled: y,
202
- className: Me(`${I}__spinner`)
202
+ className: ke(`${I}__spinner`)
203
203
  }
204
204
  ),
205
205
  " ",
@@ -209,19 +209,19 @@ const Ft = /* @__PURE__ */ Ct(It), Rt = {
209
209
  );
210
210
  }
211
211
  );
212
- tt.displayName = "Button";
213
- function At(t) {
212
+ rt.displayName = "Button";
213
+ function Bt(t) {
214
214
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
215
215
  }
216
- var ke = { exports: {} };
216
+ var De = { exports: {} };
217
217
  /*!
218
218
  Copyright (c) 2018 Jed Watson.
219
219
  Licensed under the MIT License (MIT), see
220
220
  http://jedwatson.github.io/classnames
221
221
  */
222
- var De;
223
- function Qt() {
224
- return De || (De = 1, (function(t) {
222
+ var Te;
223
+ function St() {
224
+ return Te || (Te = 1, (function(t) {
225
225
  (function() {
226
226
  var n = {}.hasOwnProperty;
227
227
  function e() {
@@ -250,10 +250,10 @@ function Qt() {
250
250
  }
251
251
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
252
252
  })();
253
- })(ke)), ke.exports;
253
+ })(De)), De.exports;
254
254
  }
255
- var Bt = Qt();
256
- const St = /* @__PURE__ */ At(Bt), Gt = {
255
+ var Xt = St();
256
+ const Gt = /* @__PURE__ */ Bt(Xt), Vt = {
257
257
  "purpur-icon": "_purpur-icon_8u1lq_1",
258
258
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
259
259
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -261,40 +261,40 @@ const St = /* @__PURE__ */ At(Bt), Gt = {
261
261
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
262
262
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
263
263
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
264
- }, Xt = St.bind(Gt), Te = "purpur-icon", Vt = "md", zt = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Zt = ({ content: t = "", title: n } = {}) => {
264
+ }, zt = Gt.bind(Vt), Ne = "purpur-icon", Zt = "md", Jt = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Kt = ({ content: t = "", title: n } = {}) => {
265
265
  const e = [
266
266
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
267
267
  { name: "fill", value: "currentColor" },
268
268
  { name: "viewBox", value: "0 0 24 24" },
269
269
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
270
270
  ], r = n ? `<title>${n}</title>` : "";
271
- return `<svg ${zt(e)}>${r}${t}</svg>`;
272
- }, Jt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), rt = ({ svg: t, allyTitle: n, className: e, size: r = Vt, ...a }) => {
273
- const i = Zt({
274
- content: Jt(t.svg),
271
+ return `<svg ${Jt(e)}>${r}${t}</svg>`;
272
+ }, Ut = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nt = ({ svg: t, allyTitle: n, className: e, size: r = Zt, ...a }) => {
273
+ const i = Kt({
274
+ content: Ut(t.svg),
275
275
  title: n
276
- }), s = Xt(Te, `${Te}--${r}`, e);
276
+ }), s = zt(Ne, `${Ne}--${r}`, e);
277
277
  return /* @__PURE__ */ p("span", { className: s, dangerouslySetInnerHTML: { __html: i }, ...a });
278
278
  };
279
- rt.displayName = "Icon";
280
- const Kt = {
279
+ nt.displayName = "Icon";
280
+ const er = {
281
281
  name: "error-filled",
282
282
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
283
283
  keywords: ["error-filled"],
284
284
  category: "status"
285
285
  };
286
- function Ut(t) {
286
+ function tr(t) {
287
287
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
288
288
  }
289
- var Ne = { exports: {} };
289
+ var Ye = { exports: {} };
290
290
  /*!
291
291
  Copyright (c) 2018 Jed Watson.
292
292
  Licensed under the MIT License (MIT), see
293
293
  http://jedwatson.github.io/classnames
294
294
  */
295
- var Ye;
296
- function er() {
297
- return Ye || (Ye = 1, (function(t) {
295
+ var Ee;
296
+ function rr() {
297
+ return Ee || (Ee = 1, (function(t) {
298
298
  (function() {
299
299
  var n = {}.hasOwnProperty;
300
300
  function e() {
@@ -323,14 +323,14 @@ function er() {
323
323
  }
324
324
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
325
325
  })();
326
- })(Ne)), Ne.exports;
326
+ })(Ye)), Ye.exports;
327
327
  }
328
- var tr = er();
329
- const rr = /* @__PURE__ */ Ut(tr), nr = {
328
+ var nr = rr();
329
+ const ar = /* @__PURE__ */ tr(nr), ir = {
330
330
  "purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
331
331
  "purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
332
332
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
333
- }, Ee = rr.bind(nr), ae = "purpur-field-error-text", ar = ({
333
+ }, qe = ar.bind(ir), ie = "purpur-field-error-text", sr = ({
334
334
  children: t,
335
335
  className: n,
336
336
  negative: e = !1,
@@ -339,30 +339,30 @@ const rr = /* @__PURE__ */ Ut(tr), nr = {
339
339
  }) => /* @__PURE__ */ R(
340
340
  "div",
341
341
  {
342
- className: Ee(n, ae, {
343
- [`${ae}--negative`]: e
342
+ className: qe(n, ie, {
343
+ [`${ie}--negative`]: e
344
344
  }),
345
345
  "aria-live": "assertive",
346
346
  "aria-relevant": r,
347
347
  ...a,
348
348
  children: [
349
- /* @__PURE__ */ p(rt, { svg: Kt, size: "xs", className: Ee(`${ae}__icon`) }),
349
+ /* @__PURE__ */ p(nt, { svg: er, size: "xs", className: qe(`${ie}__icon`) }),
350
350
  t
351
351
  ]
352
352
  }
353
353
  );
354
- function ir(t) {
354
+ function or(t) {
355
355
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
356
356
  }
357
- var qe = { exports: {} };
357
+ var We = { exports: {} };
358
358
  /*!
359
359
  Copyright (c) 2018 Jed Watson.
360
360
  Licensed under the MIT License (MIT), see
361
361
  http://jedwatson.github.io/classnames
362
362
  */
363
- var We;
364
- function sr() {
365
- return We || (We = 1, (function(t) {
363
+ var $e;
364
+ function ur() {
365
+ return $e || ($e = 1, (function(t) {
366
366
  (function() {
367
367
  var n = {}.hasOwnProperty;
368
368
  function e() {
@@ -391,14 +391,14 @@ function sr() {
391
391
  }
392
392
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
393
393
  })();
394
- })(qe)), qe.exports;
394
+ })(We)), We.exports;
395
395
  }
396
- var or = sr();
397
- const ur = /* @__PURE__ */ ir(or), cr = {
396
+ var cr = ur();
397
+ const lr = /* @__PURE__ */ or(cr), dr = {
398
398
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
399
399
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
400
400
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
401
- }, lr = ur.bind(cr), ie = "purpur-field-helper-text", dr = ({
401
+ }, fr = lr.bind(dr), se = "purpur-field-helper-text", pr = ({
402
402
  children: t,
403
403
  className: n,
404
404
  disabled: e,
@@ -406,24 +406,24 @@ const ur = /* @__PURE__ */ ir(or), cr = {
406
406
  negative: a,
407
407
  ...i
408
408
  }) => {
409
- const s = lr(n, ie, {
410
- [`${ie}--disabled`]: e,
411
- [`${ie}--negative`]: a
409
+ const s = fr(n, se, {
410
+ [`${se}--disabled`]: e,
411
+ [`${se}--negative`]: a
412
412
  });
413
413
  return /* @__PURE__ */ p("span", { id: r, className: s, ...i, children: t });
414
414
  };
415
- function fr(t) {
415
+ function hr(t) {
416
416
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
417
417
  }
418
- var $e = { exports: {} };
418
+ var je = { exports: {} };
419
419
  /*!
420
420
  Copyright (c) 2018 Jed Watson.
421
421
  Licensed under the MIT License (MIT), see
422
422
  http://jedwatson.github.io/classnames
423
423
  */
424
- var je;
425
- function pr() {
426
- return je || (je = 1, (function(t) {
424
+ var He;
425
+ function mr() {
426
+ return He || (He = 1, (function(t) {
427
427
  (function() {
428
428
  var n = {}.hasOwnProperty;
429
429
  function e() {
@@ -452,10 +452,10 @@ function pr() {
452
452
  }
453
453
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
454
454
  })();
455
- })($e)), $e.exports;
455
+ })(je)), je.exports;
456
456
  }
457
- var hr = pr();
458
- const mr = /* @__PURE__ */ fr(hr), wr = {
457
+ var wr = mr();
458
+ const yr = /* @__PURE__ */ hr(wr), _r = {
459
459
  "purpur-icon": "_purpur-icon_8u1lq_1",
460
460
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
461
461
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -463,86 +463,95 @@ const mr = /* @__PURE__ */ fr(hr), wr = {
463
463
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
464
464
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
465
465
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
466
- }, yr = mr.bind(wr), He = "purpur-icon", _r = "md", gr = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), br = ({ content: t = "", title: n } = {}) => {
466
+ }, gr = yr.bind(_r), Ce = "purpur-icon", br = "md", xr = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), vr = ({ content: t = "", title: n } = {}) => {
467
467
  const e = [
468
468
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
469
469
  { name: "fill", value: "currentColor" },
470
470
  { name: "viewBox", value: "0 0 24 24" },
471
471
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
472
472
  ], r = n ? `<title>${n}</title>` : "";
473
- return `<svg ${gr(e)}>${r}${t}</svg>`;
474
- }, xr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), me = ({ svg: t, allyTitle: n, className: e, size: r = _r, ...a }) => {
475
- const i = br({
476
- content: xr(t.svg),
473
+ return `<svg ${xr(e)}>${r}${t}</svg>`;
474
+ }, Pr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), we = ({ svg: t, allyTitle: n, className: e, size: r = br, ...a }) => {
475
+ const i = vr({
476
+ content: Pr(t.svg),
477
477
  title: n
478
- }), s = yr(He, `${He}--${r}`, e);
478
+ }), s = gr(Ce, `${Ce}--${r}`, e);
479
479
  return /* @__PURE__ */ p("span", { className: s, dangerouslySetInnerHTML: { __html: i }, ...a });
480
480
  };
481
- me.displayName = "Icon";
482
- const vr = {
481
+ we.displayName = "Icon";
482
+ const Or = {
483
483
  name: "check-circle-filled",
484
484
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
485
485
  keywords: ["check-circle-filled"],
486
486
  category: "status"
487
- }, nt = (t) => /* @__PURE__ */ p(me, { ...t, svg: vr });
488
- nt.displayName = "IconCheckCircleFilled";
489
- const Pr = {
487
+ }, at = (t) => /* @__PURE__ */ p(we, { ...t, svg: Or });
488
+ at.displayName = "IconCheckCircleFilled";
489
+ const Mr = {
490
490
  name: "close",
491
491
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
492
492
  keywords: ["close"],
493
493
  category: "utility"
494
- }, at = (t) => /* @__PURE__ */ p(me, { ...t, svg: Pr });
495
- at.displayName = "IconClose";
496
- function Ce(t, n) {
494
+ }, it = (t) => /* @__PURE__ */ p(we, { ...t, svg: Mr });
495
+ it.displayName = "IconClose";
496
+ function Le(t, n) {
497
497
  if (typeof t == "function")
498
498
  return t(n);
499
499
  t != null && (t.current = n);
500
500
  }
501
- function Or(...t) {
501
+ function kr(...t) {
502
502
  return (n) => {
503
503
  let e = !1;
504
504
  const r = t.map((a) => {
505
- const i = Ce(a, n);
505
+ const i = Le(a, n);
506
506
  return !e && typeof i == "function" && (e = !0), i;
507
507
  });
508
508
  if (e)
509
509
  return () => {
510
510
  for (let a = 0; a < r.length; a++) {
511
511
  const i = r[a];
512
- typeof i == "function" ? i() : Ce(t[a], null);
512
+ typeof i == "function" ? i() : Le(t[a], null);
513
513
  }
514
514
  };
515
515
  };
516
516
  }
517
+ var Dr = Symbol.for("react.lazy"), te = N[" use ".trim().toString()];
518
+ function Tr(t) {
519
+ return typeof t == "object" && t !== null && "then" in t;
520
+ }
521
+ function st(t) {
522
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Dr && "_payload" in t && Tr(t._payload);
523
+ }
517
524
  // @__NO_SIDE_EFFECTS__
518
- function Mr(t) {
519
- const n = /* @__PURE__ */ kr(t), e = q.forwardRef((r, a) => {
520
- const { children: i, ...s } = r, o = q.Children.toArray(i), d = o.find(Tr);
525
+ function Nr(t) {
526
+ const n = /* @__PURE__ */ Yr(t), e = N.forwardRef((r, a) => {
527
+ let { children: i, ...s } = r;
528
+ st(i) && typeof te == "function" && (i = te(i._payload));
529
+ const o = N.Children.toArray(i), d = o.find(qr);
521
530
  if (d) {
522
- const c = d.props.children, w = o.map((_) => _ === d ? q.Children.count(c) > 1 ? q.Children.only(null) : q.isValidElement(c) ? c.props.children : null : _);
523
- return /* @__PURE__ */ p(n, { ...s, ref: a, children: q.isValidElement(c) ? q.cloneElement(c, void 0, w) : null });
531
+ const c = d.props.children, w = o.map((_) => _ === d ? N.Children.count(c) > 1 ? N.Children.only(null) : N.isValidElement(c) ? c.props.children : null : _);
532
+ return /* @__PURE__ */ p(n, { ...s, ref: a, children: N.isValidElement(c) ? N.cloneElement(c, void 0, w) : null });
524
533
  }
525
534
  return /* @__PURE__ */ p(n, { ...s, ref: a, children: i });
526
535
  });
527
536
  return e.displayName = `${t}.Slot`, e;
528
537
  }
529
538
  // @__NO_SIDE_EFFECTS__
530
- function kr(t) {
531
- const n = q.forwardRef((e, r) => {
532
- const { children: a, ...i } = e;
533
- if (q.isValidElement(a)) {
534
- const s = Yr(a), o = Nr(i, a.props);
535
- return a.type !== q.Fragment && (o.ref = r ? Or(r, s) : s), q.cloneElement(a, o);
539
+ function Yr(t) {
540
+ const n = N.forwardRef((e, r) => {
541
+ let { children: a, ...i } = e;
542
+ if (st(a) && typeof te == "function" && (a = te(a._payload)), N.isValidElement(a)) {
543
+ const s = $r(a), o = Wr(i, a.props);
544
+ return a.type !== N.Fragment && (o.ref = r ? kr(r, s) : s), N.cloneElement(a, o);
536
545
  }
537
- return q.Children.count(a) > 1 ? q.Children.only(null) : null;
546
+ return N.Children.count(a) > 1 ? N.Children.only(null) : null;
538
547
  });
539
548
  return n.displayName = `${t}.SlotClone`, n;
540
549
  }
541
- var Dr = Symbol("radix.slottable");
542
- function Tr(t) {
543
- return q.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Dr;
550
+ var Er = Symbol("radix.slottable");
551
+ function qr(t) {
552
+ return N.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Er;
544
553
  }
545
- function Nr(t, n) {
554
+ function Wr(t, n) {
546
555
  const e = { ...n };
547
556
  for (const r in n) {
548
557
  const a = t[r], i = n[r];
@@ -553,12 +562,12 @@ function Nr(t, n) {
553
562
  }
554
563
  return { ...t, ...e };
555
564
  }
556
- function Yr(t) {
565
+ function $r(t) {
557
566
  var n, e;
558
567
  let r = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, a = r && "isReactWarning" in r && r.isReactWarning;
559
568
  return a ? t.ref : (r = (e = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : e.get, a = r && "isReactWarning" in r && r.isReactWarning, a ? t.props.ref : t.props.ref || t.ref);
560
569
  }
561
- var Er = [
570
+ var jr = [
562
571
  "a",
563
572
  "button",
564
573
  "div",
@@ -576,14 +585,14 @@ var Er = [
576
585
  "span",
577
586
  "svg",
578
587
  "ul"
579
- ], qr = Er.reduce((t, n) => {
580
- const e = /* @__PURE__ */ Mr(`Primitive.${n}`), r = q.forwardRef((a, i) => {
588
+ ], Hr = jr.reduce((t, n) => {
589
+ const e = /* @__PURE__ */ Nr(`Primitive.${n}`), r = N.forwardRef((a, i) => {
581
590
  const { asChild: s, ...o } = a, d = s ? e : n;
582
591
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(d, { ...o, ref: i });
583
592
  });
584
593
  return r.displayName = `Primitive.${n}`, { ...t, [n]: r };
585
- }, {}), Wr = "Label", it = q.forwardRef((t, n) => /* @__PURE__ */ p(
586
- qr.label,
594
+ }, {}), Cr = "Label", ot = N.forwardRef((t, n) => /* @__PURE__ */ p(
595
+ Hr.label,
587
596
  {
588
597
  ...t,
589
598
  ref: n,
@@ -593,20 +602,20 @@ var Er = [
593
602
  }
594
603
  }
595
604
  ));
596
- it.displayName = Wr;
597
- var $r = it;
598
- function jr(t) {
605
+ ot.displayName = Cr;
606
+ var Lr = ot;
607
+ function Ir(t) {
599
608
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
600
609
  }
601
- var Le = { exports: {} };
610
+ var Ie = { exports: {} };
602
611
  /*!
603
612
  Copyright (c) 2018 Jed Watson.
604
613
  Licensed under the MIT License (MIT), see
605
614
  http://jedwatson.github.io/classnames
606
615
  */
607
- var Ie;
608
- function Hr() {
609
- return Ie || (Ie = 1, (function(t) {
616
+ var Fe;
617
+ function Fr() {
618
+ return Fe || (Fe = 1, (function(t) {
610
619
  (function() {
611
620
  var n = {}.hasOwnProperty;
612
621
  function e() {
@@ -635,38 +644,38 @@ function Hr() {
635
644
  }
636
645
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
637
646
  })();
638
- })(Le)), Le.exports;
647
+ })(Ie)), Ie.exports;
639
648
  }
640
- var Cr = Hr();
641
- const Lr = /* @__PURE__ */ jr(Cr), Ir = {
649
+ var Rr = Fr();
650
+ const Ar = /* @__PURE__ */ Ir(Rr), Qr = {
642
651
  "purpur-label": "_purpur-label_1x80u_1",
643
652
  "purpur-label--negative": "_purpur-label--negative_1x80u_8",
644
653
  "purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
645
- }, Fr = Lr.bind(Ir), se = "purpur-label", Rr = ({
654
+ }, Br = Ar.bind(Qr), oe = "purpur-label", Sr = ({
646
655
  children: t,
647
656
  className: n,
648
657
  disabled: e,
649
658
  negative: r = !1,
650
659
  ...a
651
660
  }) => {
652
- const i = Fr(n, se, {
653
- [`${se}--disabled`]: e,
654
- [`${se}--negative`]: r
661
+ const i = Br(n, oe, {
662
+ [`${oe}--disabled`]: e,
663
+ [`${oe}--negative`]: r
655
664
  });
656
- return /* @__PURE__ */ p($r, { className: i, ...a, children: t });
665
+ return /* @__PURE__ */ p(Lr, { className: i, ...a, children: t });
657
666
  };
658
- function Ar(t) {
667
+ function Xr(t) {
659
668
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
660
669
  }
661
- var Fe = { exports: {} };
670
+ var Re = { exports: {} };
662
671
  /*!
663
672
  Copyright (c) 2018 Jed Watson.
664
673
  Licensed under the MIT License (MIT), see
665
674
  http://jedwatson.github.io/classnames
666
675
  */
667
- var Re;
668
- function Qr() {
669
- return Re || (Re = 1, (function(t) {
676
+ var Ae;
677
+ function Gr() {
678
+ return Ae || (Ae = 1, (function(t) {
670
679
  (function() {
671
680
  var n = {}.hasOwnProperty;
672
681
  function e() {
@@ -695,33 +704,33 @@ function Qr() {
695
704
  }
696
705
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
697
706
  })();
698
- })(Fe)), Fe.exports;
707
+ })(Re)), Re.exports;
699
708
  }
700
- var Br = Qr();
701
- const Sr = /* @__PURE__ */ Ar(Br), Gr = "_rotate_12t9p_1", Xr = "_dash_12t9p_1", Vr = {
709
+ var Vr = Gr();
710
+ const zr = /* @__PURE__ */ Xr(Vr), Zr = "_rotate_12t9p_1", Jr = "_dash_12t9p_1", Kr = {
702
711
  "purpur-spinner": "_purpur-spinner_12t9p_2",
703
- rotate: Gr,
712
+ rotate: Zr,
704
713
  "purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
705
714
  "purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
706
715
  "purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
707
716
  "purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
708
717
  "purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
709
718
  "purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
710
- dash: Xr,
719
+ dash: Jr,
711
720
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
712
721
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
713
- }, Ae = Sr.bind(Vr), Z = "purpur-spinner", zr = {
722
+ }, Qe = zr.bind(Kr), Z = "purpur-spinner", Ur = {
714
723
  SM: "sm"
715
- }, st = ({
724
+ }, ut = ({
716
725
  disabled: t = !1,
717
726
  negative: n = !1,
718
- size: e = zr.SM,
727
+ size: e = Ur.SM,
719
728
  className: r,
720
729
  ...a
721
- }) => /* @__PURE__ */ p("div", { className: Ae(Z, `${Z}--${e}`, r), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
730
+ }) => /* @__PURE__ */ p("div", { className: Qe(Z, `${Z}--${e}`, r), ...a, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
722
731
  "circle",
723
732
  {
724
- className: Ae(`${Z}__circle`, {
733
+ className: Qe(`${Z}__circle`, {
725
734
  [`${Z}__circle--disabled`]: t,
726
735
  [`${Z}__circle--negative`]: n
727
736
  }),
@@ -730,19 +739,19 @@ const Sr = /* @__PURE__ */ Ar(Br), Gr = "_rotate_12t9p_1", Xr = "_dash_12t9p_1",
730
739
  r: "20"
731
740
  }
732
741
  ) }) });
733
- st.displayName = "Spinner";
734
- function Zr(t) {
742
+ ut.displayName = "Spinner";
743
+ function en(t) {
735
744
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
736
745
  }
737
- var Qe = { exports: {} };
746
+ var Be = { exports: {} };
738
747
  /*!
739
748
  Copyright (c) 2018 Jed Watson.
740
749
  Licensed under the MIT License (MIT), see
741
750
  http://jedwatson.github.io/classnames
742
751
  */
743
- var Be;
744
- function Jr() {
745
- return Be || (Be = 1, (function(t) {
752
+ var Se;
753
+ function tn() {
754
+ return Se || (Se = 1, (function(t) {
746
755
  (function() {
747
756
  var n = {}.hasOwnProperty;
748
757
  function e() {
@@ -771,10 +780,10 @@ function Jr() {
771
780
  }
772
781
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
773
782
  })();
774
- })(Qe)), Qe.exports;
783
+ })(Be)), Be.exports;
775
784
  }
776
- var Kr = Jr();
777
- const Ur = /* @__PURE__ */ Zr(Kr), en = {
785
+ var rn = tn();
786
+ const nn = /* @__PURE__ */ en(rn), an = {
778
787
  "purpur-text-field": "_purpur-text-field_3gl1k_1",
779
788
  "purpur-text-field__label": "_purpur-text-field__label_3gl1k_7",
780
789
  "purpur-text-field__label-text": "_purpur-text-field__label-text_3gl1k_12",
@@ -791,7 +800,7 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
791
800
  "purpur-text-field__input--error": "_purpur-text-field__input--error_3gl1k_94",
792
801
  "purpur-text-field__adornment-container": "_purpur-text-field__adornment-container_3gl1k_106",
793
802
  "purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_3gl1k_111"
794
- }, tn = (t) => Ue(t), L = Ur.bind(en), E = "purpur-text-field", ot = he(
803
+ }, sn = (t) => et(t), L = nn.bind(an), q = "purpur-text-field", ct = me(
795
804
  ({
796
805
  ["data-testid"]: t,
797
806
  className: n,
@@ -806,18 +815,18 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
806
815
  loading: w = !1,
807
816
  onClear: _,
808
817
  startAdornment: k,
809
- valid: N = !1,
818
+ valid: Y = !1,
810
819
  ...l
811
820
  }, y) => {
812
821
  var b;
813
- const D = Mt(), Y = l.id ?? D, W = (j) => t ? `${t}-${j}` : void 0, f = N && !s, g = o ? `${Y}-helper-text` : void 0, $ = [k].filter((j) => !!j), V = (typeof l.value == "number" ? l.value !== void 0 : (b = l.value) == null ? void 0 : b.length) && !l.disabled && !l.readOnly && !w && _ && e, B = tn(null), U = (j) => {
822
+ const D = Dt(), E = l.id ?? D, W = (j) => t ? `${t}-${j}` : void 0, f = Y && !s, g = o ? `${E}-helper-text` : void 0, $ = [k].filter((j) => !!j), V = (typeof l.value == "number" ? l.value !== void 0 : (b = l.value) == null ? void 0 : b.length) && !l.disabled && !l.readOnly && !w && _ && e, B = sn(null), U = (j) => {
814
823
  B.current = j, typeof y == "function" ? y(j) : y && (y.current = j);
815
824
  }, ee = () => {
816
825
  var j;
817
826
  _ == null || _(), (j = B.current) == null || j.focus();
818
- }, ne = [
827
+ }, ae = [
819
828
  w && /* @__PURE__ */ p(
820
- st,
829
+ ut,
821
830
  {
822
831
  disabled: l.disabled,
823
832
  size: "xs",
@@ -826,7 +835,7 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
826
835
  "spinner"
827
836
  ),
828
837
  V && /* @__PURE__ */ p(
829
- tt,
838
+ rt,
830
839
  {
831
840
  variant: "tertiary-purple",
832
841
  onClick: ee,
@@ -834,31 +843,31 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
834
843
  "aria-label": e ?? "",
835
844
  "data-testid": W("clear-button"),
836
845
  tabIndex: -1,
837
- children: /* @__PURE__ */ p(at, { size: "xs" })
846
+ children: /* @__PURE__ */ p(it, { size: "xs" })
838
847
  },
839
848
  "clear-button"
840
849
  ),
841
850
  f && /* @__PURE__ */ p(
842
- nt,
851
+ at,
843
852
  {
844
853
  "data-testid": W("valid-icon"),
845
- className: L(`${E}__valid-icon`)
854
+ className: L(`${q}__valid-icon`)
846
855
  },
847
856
  "valid-icon"
848
857
  )
849
- ].filter((j) => !!j), vt = L(`${E}__input-container`, {
850
- [`${E}__input-container--start-adornment`]: $.length,
851
- [`${E}__input-container--end-adornment`]: ne.length || i,
852
- [`${E}__input-container--disabled`]: l.disabled,
853
- [`${E}__input-container--has-clear-button`]: V,
854
- [`${E}__input-container--readonly`]: l.readOnly && !l.disabled
858
+ ].filter((j) => !!j), Ot = L(`${q}__input-container`, {
859
+ [`${q}__input-container--start-adornment`]: $.length,
860
+ [`${q}__input-container--end-adornment`]: ae.length || i,
861
+ [`${q}__input-container--disabled`]: l.disabled,
862
+ [`${q}__input-container--has-clear-button`]: V,
863
+ [`${q}__input-container--readonly`]: l.readOnly && !l.disabled
855
864
  });
856
- return /* @__PURE__ */ R("div", { className: L(n, E), children: [
865
+ return /* @__PURE__ */ R("div", { className: L(n, q), children: [
857
866
  c && /* @__PURE__ */ R(
858
- Rr,
867
+ Sr,
859
868
  {
860
- htmlFor: Y,
861
- className: L(`${E}__label`),
869
+ htmlFor: E,
870
+ className: L(`${q}__label`),
862
871
  "data-testid": W("label"),
863
872
  disabled: l.disabled,
864
873
  children: [
@@ -867,14 +876,14 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
867
876
  ]
868
877
  }
869
878
  ),
870
- /* @__PURE__ */ R("div", { className: L(`${E}__field-row`), children: [
879
+ /* @__PURE__ */ R("div", { className: L(`${q}__field-row`), children: [
871
880
  !!r && r,
872
- /* @__PURE__ */ R("div", { className: vt, children: [
881
+ /* @__PURE__ */ R("div", { className: Ot, children: [
873
882
  !!$.length && /* @__PURE__ */ p(
874
883
  "div",
875
884
  {
876
885
  "data-testid": W("start-adornments"),
877
- className: L(`${E}__adornment-container`),
886
+ className: L(`${q}__adornment-container`),
878
887
  children: $
879
888
  }
880
889
  ),
@@ -882,28 +891,28 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
882
891
  "input",
883
892
  {
884
893
  ...l,
885
- id: Y,
894
+ id: E,
886
895
  ref: U,
887
896
  "data-testid": W("input"),
888
897
  "aria-describedby": l["aria-describedby"] || g,
889
898
  "aria-invalid": l["aria-invalid"] || !!s,
890
899
  className: L([
891
- `${E}__input`,
900
+ `${q}__input`,
892
901
  {
893
- [`${E}__input--valid`]: f,
894
- [`${E}__input--error`]: !!s
902
+ [`${q}__input--valid`]: f,
903
+ [`${q}__input--error`]: !!s
895
904
  }
896
905
  ])
897
906
  }
898
907
  ),
899
- /* @__PURE__ */ p("div", { className: L(`${E}__frame`) }),
900
- (!!ne.length || i) && /* @__PURE__ */ R(
908
+ /* @__PURE__ */ p("div", { className: L(`${q}__frame`) }),
909
+ (!!ae.length || i) && /* @__PURE__ */ R(
901
910
  "div",
902
911
  {
903
912
  "data-testid": W("end-adornments"),
904
- className: L(`${E}__adornment-container`),
913
+ className: L(`${q}__adornment-container`),
905
914
  children: [
906
- ne,
915
+ ae,
907
916
  i
908
917
  ]
909
918
  }
@@ -911,24 +920,24 @@ const Ur = /* @__PURE__ */ Zr(Kr), en = {
911
920
  ] }),
912
921
  !!a && a
913
922
  ] }),
914
- g && /* @__PURE__ */ p(dr, { "data-testid": W("helper-text"), id: g, children: o }),
915
- s && /* @__PURE__ */ p(ar, { "data-testid": W("error-text"), children: s })
923
+ g && /* @__PURE__ */ p(pr, { "data-testid": W("helper-text"), id: g, children: o }),
924
+ s && /* @__PURE__ */ p(sr, { "data-testid": W("error-text"), children: s })
916
925
  ] });
917
926
  }
918
927
  );
919
- ot.displayName = "TextField";
920
- function rn(t) {
928
+ ct.displayName = "TextField";
929
+ function on(t) {
921
930
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
922
931
  }
923
- var oe = { exports: {} };
932
+ var ue = { exports: {} };
924
933
  /*!
925
934
  Copyright (c) 2018 Jed Watson.
926
935
  Licensed under the MIT License (MIT), see
927
936
  http://jedwatson.github.io/classnames
928
937
  */
929
- var Se;
930
- function nn() {
931
- return Se || (Se = 1, (function(t) {
938
+ var Xe;
939
+ function un() {
940
+ return Xe || (Xe = 1, (function(t) {
932
941
  (function() {
933
942
  var n = {}.hasOwnProperty;
934
943
  function e() {
@@ -957,41 +966,41 @@ function nn() {
957
966
  }
958
967
  t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
959
968
  })();
960
- })(oe)), oe.exports;
969
+ })(ue)), ue.exports;
961
970
  }
962
- var an = nn();
963
- const sn = /* @__PURE__ */ rn(an), ut = 6048e5, on = 864e5, un = 6e4, cn = 36e5, ln = 1e3, Ge = Symbol.for("constructDateFrom");
971
+ var cn = un();
972
+ const ln = /* @__PURE__ */ on(cn), lt = 6048e5, dn = 864e5, fn = 6e4, pn = 36e5, hn = 1e3, Ge = Symbol.for("constructDateFrom");
964
973
  function T(t, n) {
965
974
  return typeof t == "function" ? t(n) : t && typeof t == "object" && Ge in t ? t[Ge](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
966
975
  }
967
976
  function M(t, n) {
968
977
  return T(n || t, t);
969
978
  }
970
- function ct(t, n, e) {
979
+ function dt(t, n, e) {
971
980
  const r = M(t, e == null ? void 0 : e.in);
972
981
  return isNaN(n) ? T((e == null ? void 0 : e.in) || t, NaN) : (n && r.setDate(r.getDate() + n), r);
973
982
  }
974
- let dn = {};
975
- function X() {
976
- return dn;
983
+ let mn = {};
984
+ function G() {
985
+ return mn;
977
986
  }
978
987
  function A(t, n) {
979
988
  var o, d, c, w;
980
- const e = X(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((d = (o = n == null ? void 0 : n.locale) == null ? void 0 : o.options) == null ? void 0 : d.weekStartsOn) ?? e.weekStartsOn ?? ((w = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : w.weekStartsOn) ?? 0, a = M(t, n == null ? void 0 : n.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
989
+ const e = G(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((d = (o = n == null ? void 0 : n.locale) == null ? void 0 : o.options) == null ? void 0 : d.weekStartsOn) ?? e.weekStartsOn ?? ((w = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : w.weekStartsOn) ?? 0, a = M(t, n == null ? void 0 : n.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
981
990
  return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
982
991
  }
983
- function G(t, n) {
992
+ function X(t, n) {
984
993
  return A(t, { ...n, weekStartsOn: 1 });
985
994
  }
986
- function lt(t, n) {
995
+ function ft(t, n) {
987
996
  const e = M(t, n == null ? void 0 : n.in), r = e.getFullYear(), a = T(e, 0);
988
997
  a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
989
- const i = G(a), s = T(e, 0);
998
+ const i = X(a), s = T(e, 0);
990
999
  s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
991
- const o = G(s);
1000
+ const o = X(s);
992
1001
  return e.getTime() >= i.getTime() ? r + 1 : e.getTime() >= o.getTime() ? r : r - 1;
993
1002
  }
994
- function te(t) {
1003
+ function re(t) {
995
1004
  const n = M(t), e = new Date(
996
1005
  Date.UTC(
997
1006
  n.getFullYear(),
@@ -1005,40 +1014,40 @@ function te(t) {
1005
1014
  );
1006
1015
  return e.setUTCFullYear(n.getFullYear()), +t - +e;
1007
1016
  }
1008
- function fn(t, ...n) {
1017
+ function wn(t, ...n) {
1009
1018
  const e = T.bind(
1010
1019
  null,
1011
1020
  n.find((r) => typeof r == "object")
1012
1021
  );
1013
1022
  return n.map(e);
1014
1023
  }
1015
- function Xe(t, n) {
1024
+ function Ve(t, n) {
1016
1025
  const e = M(t, n == null ? void 0 : n.in);
1017
1026
  return e.setHours(0, 0, 0, 0), e;
1018
1027
  }
1019
- function pn(t, n, e) {
1020
- const [r, a] = fn(
1028
+ function yn(t, n, e) {
1029
+ const [r, a] = wn(
1021
1030
  e == null ? void 0 : e.in,
1022
1031
  t,
1023
1032
  n
1024
- ), i = Xe(r), s = Xe(a), o = +i - te(i), d = +s - te(s);
1025
- return Math.round((o - d) / on);
1033
+ ), i = Ve(r), s = Ve(a), o = +i - re(i), d = +s - re(s);
1034
+ return Math.round((o - d) / dn);
1026
1035
  }
1027
- function hn(t, n) {
1028
- const e = lt(t, n), r = T(t, 0);
1029
- return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), G(r);
1036
+ function _n(t, n) {
1037
+ const e = ft(t, n), r = T(t, 0);
1038
+ return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), X(r);
1030
1039
  }
1031
- function mn(t) {
1040
+ function gn(t) {
1032
1041
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
1033
1042
  }
1034
- function dt(t) {
1035
- return !(!mn(t) && typeof t != "number" || isNaN(+M(t)));
1043
+ function pt(t) {
1044
+ return !(!gn(t) && typeof t != "number" || isNaN(+M(t)));
1036
1045
  }
1037
- function wn(t, n) {
1046
+ function bn(t, n) {
1038
1047
  const e = M(t, n == null ? void 0 : n.in);
1039
1048
  return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
1040
1049
  }
1041
- const yn = {
1050
+ const xn = {
1042
1051
  lessThanXSeconds: {
1043
1052
  one: "less than a second",
1044
1053
  other: "less than {{count}} seconds"
@@ -1100,53 +1109,53 @@ const yn = {
1100
1109
  one: "almost 1 year",
1101
1110
  other: "almost {{count}} years"
1102
1111
  }
1103
- }, _n = (t, n, e) => {
1112
+ }, vn = (t, n, e) => {
1104
1113
  let r;
1105
- const a = yn[t];
1114
+ const a = xn[t];
1106
1115
  return typeof a == "string" ? r = a : n === 1 ? r = a.one : r = a.other.replace("{{count}}", n.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + r : r + " ago" : r;
1107
1116
  };
1108
- function ue(t) {
1117
+ function ce(t) {
1109
1118
  return (n = {}) => {
1110
1119
  const e = n.width ? String(n.width) : t.defaultWidth;
1111
1120
  return t.formats[e] || t.formats[t.defaultWidth];
1112
1121
  };
1113
1122
  }
1114
- const gn = {
1123
+ const Pn = {
1115
1124
  full: "EEEE, MMMM do, y",
1116
1125
  long: "MMMM do, y",
1117
1126
  medium: "MMM d, y",
1118
1127
  short: "MM/dd/yyyy"
1119
- }, bn = {
1128
+ }, On = {
1120
1129
  full: "h:mm:ss a zzzz",
1121
1130
  long: "h:mm:ss a z",
1122
1131
  medium: "h:mm:ss a",
1123
1132
  short: "h:mm a"
1124
- }, xn = {
1133
+ }, Mn = {
1125
1134
  full: "{{date}} 'at' {{time}}",
1126
1135
  long: "{{date}} 'at' {{time}}",
1127
1136
  medium: "{{date}}, {{time}}",
1128
1137
  short: "{{date}}, {{time}}"
1129
- }, vn = {
1130
- date: ue({
1131
- formats: gn,
1138
+ }, kn = {
1139
+ date: ce({
1140
+ formats: Pn,
1132
1141
  defaultWidth: "full"
1133
1142
  }),
1134
- time: ue({
1135
- formats: bn,
1143
+ time: ce({
1144
+ formats: On,
1136
1145
  defaultWidth: "full"
1137
1146
  }),
1138
- dateTime: ue({
1139
- formats: xn,
1147
+ dateTime: ce({
1148
+ formats: Mn,
1140
1149
  defaultWidth: "full"
1141
1150
  })
1142
- }, Pn = {
1151
+ }, Dn = {
1143
1152
  lastWeek: "'last' eeee 'at' p",
1144
1153
  yesterday: "'yesterday at' p",
1145
1154
  today: "'today at' p",
1146
1155
  tomorrow: "'tomorrow at' p",
1147
1156
  nextWeek: "eeee 'at' p",
1148
1157
  other: "P"
1149
- }, On = (t, n, e, r) => Pn[t];
1158
+ }, Tn = (t, n, e, r) => Dn[t];
1150
1159
  function J(t) {
1151
1160
  return (n, e) => {
1152
1161
  const r = e != null && e.context ? String(e.context) : "standalone";
@@ -1162,15 +1171,15 @@ function J(t) {
1162
1171
  return a[i];
1163
1172
  };
1164
1173
  }
1165
- const Mn = {
1174
+ const Nn = {
1166
1175
  narrow: ["B", "A"],
1167
1176
  abbreviated: ["BC", "AD"],
1168
1177
  wide: ["Before Christ", "Anno Domini"]
1169
- }, kn = {
1178
+ }, Yn = {
1170
1179
  narrow: ["1", "2", "3", "4"],
1171
1180
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1172
1181
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1173
- }, Dn = {
1182
+ }, En = {
1174
1183
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1175
1184
  abbreviated: [
1176
1185
  "Jan",
@@ -1200,7 +1209,7 @@ const Mn = {
1200
1209
  "November",
1201
1210
  "December"
1202
1211
  ]
1203
- }, Tn = {
1212
+ }, qn = {
1204
1213
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
1205
1214
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1206
1215
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -1213,7 +1222,7 @@ const Mn = {
1213
1222
  "Friday",
1214
1223
  "Saturday"
1215
1224
  ]
1216
- }, Nn = {
1225
+ }, Wn = {
1217
1226
  narrow: {
1218
1227
  am: "a",
1219
1228
  pm: "p",
@@ -1244,7 +1253,7 @@ const Mn = {
1244
1253
  evening: "evening",
1245
1254
  night: "night"
1246
1255
  }
1247
- }, Yn = {
1256
+ }, $n = {
1248
1257
  narrow: {
1249
1258
  am: "a",
1250
1259
  pm: "p",
@@ -1275,7 +1284,7 @@ const Mn = {
1275
1284
  evening: "in the evening",
1276
1285
  night: "at night"
1277
1286
  }
1278
- }, En = (t, n) => {
1287
+ }, jn = (t, n) => {
1279
1288
  const e = Number(t), r = e % 100;
1280
1289
  if (r > 20 || r < 10)
1281
1290
  switch (r % 10) {
@@ -1287,29 +1296,29 @@ const Mn = {
1287
1296
  return e + "rd";
1288
1297
  }
1289
1298
  return e + "th";
1290
- }, qn = {
1291
- ordinalNumber: En,
1299
+ }, Hn = {
1300
+ ordinalNumber: jn,
1292
1301
  era: J({
1293
- values: Mn,
1302
+ values: Nn,
1294
1303
  defaultWidth: "wide"
1295
1304
  }),
1296
1305
  quarter: J({
1297
- values: kn,
1306
+ values: Yn,
1298
1307
  defaultWidth: "wide",
1299
1308
  argumentCallback: (t) => t - 1
1300
1309
  }),
1301
1310
  month: J({
1302
- values: Dn,
1311
+ values: En,
1303
1312
  defaultWidth: "wide"
1304
1313
  }),
1305
1314
  day: J({
1306
- values: Tn,
1315
+ values: qn,
1307
1316
  defaultWidth: "wide"
1308
1317
  }),
1309
1318
  dayPeriod: J({
1310
- values: Nn,
1319
+ values: Wn,
1311
1320
  defaultWidth: "wide",
1312
- formattingValues: Yn,
1321
+ formattingValues: $n,
1313
1322
  defaultFormattingWidth: "wide"
1314
1323
  })
1315
1324
  };
@@ -1318,9 +1327,9 @@ function K(t) {
1318
1327
  const r = e.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = n.match(a);
1319
1328
  if (!i)
1320
1329
  return null;
1321
- const s = i[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(o) ? $n(o, (_) => _.test(s)) : (
1330
+ const s = i[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(o) ? Ln(o, (_) => _.test(s)) : (
1322
1331
  // [TODO] -- I challenge you to fix the type
1323
- Wn(o, (_) => _.test(s))
1332
+ Cn(o, (_) => _.test(s))
1324
1333
  );
1325
1334
  let c;
1326
1335
  c = t.valueCallback ? t.valueCallback(d) : d, c = e.valueCallback ? (
@@ -1331,17 +1340,17 @@ function K(t) {
1331
1340
  return { value: c, rest: w };
1332
1341
  };
1333
1342
  }
1334
- function Wn(t, n) {
1343
+ function Cn(t, n) {
1335
1344
  for (const e in t)
1336
1345
  if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
1337
1346
  return e;
1338
1347
  }
1339
- function $n(t, n) {
1348
+ function Ln(t, n) {
1340
1349
  for (let e = 0; e < t.length; e++)
1341
1350
  if (n(t[e]))
1342
1351
  return e;
1343
1352
  }
1344
- function jn(t) {
1353
+ function In(t) {
1345
1354
  return (n, e = {}) => {
1346
1355
  const r = n.match(t.matchPattern);
1347
1356
  if (!r) return null;
@@ -1353,23 +1362,23 @@ function jn(t) {
1353
1362
  return { value: s, rest: o };
1354
1363
  };
1355
1364
  }
1356
- const Hn = /^(\d+)(th|st|nd|rd)?/i, Cn = /\d+/i, Ln = {
1365
+ const Fn = /^(\d+)(th|st|nd|rd)?/i, Rn = /\d+/i, An = {
1357
1366
  narrow: /^(b|a)/i,
1358
1367
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1359
1368
  wide: /^(before christ|before common era|anno domini|common era)/i
1360
- }, In = {
1369
+ }, Qn = {
1361
1370
  any: [/^b/i, /^(a|c)/i]
1362
- }, Fn = {
1371
+ }, Bn = {
1363
1372
  narrow: /^[1234]/i,
1364
1373
  abbreviated: /^q[1234]/i,
1365
1374
  wide: /^[1234](th|st|nd|rd)? quarter/i
1366
- }, Rn = {
1375
+ }, Sn = {
1367
1376
  any: [/1/i, /2/i, /3/i, /4/i]
1368
- }, An = {
1377
+ }, Xn = {
1369
1378
  narrow: /^[jfmasond]/i,
1370
1379
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1371
1380
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1372
- }, Qn = {
1381
+ }, Gn = {
1373
1382
  narrow: [
1374
1383
  /^j/i,
1375
1384
  /^f/i,
@@ -1398,18 +1407,18 @@ const Hn = /^(\d+)(th|st|nd|rd)?/i, Cn = /\d+/i, Ln = {
1398
1407
  /^n/i,
1399
1408
  /^d/i
1400
1409
  ]
1401
- }, Bn = {
1410
+ }, Vn = {
1402
1411
  narrow: /^[smtwf]/i,
1403
1412
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1404
1413
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1405
1414
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1406
- }, Sn = {
1415
+ }, zn = {
1407
1416
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1408
1417
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1409
- }, Gn = {
1418
+ }, Zn = {
1410
1419
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1411
1420
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1412
- }, Xn = {
1421
+ }, Jn = {
1413
1422
  any: {
1414
1423
  am: /^a/i,
1415
1424
  pm: /^p/i,
@@ -1420,80 +1429,80 @@ const Hn = /^(\d+)(th|st|nd|rd)?/i, Cn = /\d+/i, Ln = {
1420
1429
  evening: /evening/i,
1421
1430
  night: /night/i
1422
1431
  }
1423
- }, Vn = {
1424
- ordinalNumber: jn({
1425
- matchPattern: Hn,
1426
- parsePattern: Cn,
1432
+ }, Kn = {
1433
+ ordinalNumber: In({
1434
+ matchPattern: Fn,
1435
+ parsePattern: Rn,
1427
1436
  valueCallback: (t) => parseInt(t, 10)
1428
1437
  }),
1429
1438
  era: K({
1430
- matchPatterns: Ln,
1439
+ matchPatterns: An,
1431
1440
  defaultMatchWidth: "wide",
1432
- parsePatterns: In,
1441
+ parsePatterns: Qn,
1433
1442
  defaultParseWidth: "any"
1434
1443
  }),
1435
1444
  quarter: K({
1436
- matchPatterns: Fn,
1445
+ matchPatterns: Bn,
1437
1446
  defaultMatchWidth: "wide",
1438
- parsePatterns: Rn,
1447
+ parsePatterns: Sn,
1439
1448
  defaultParseWidth: "any",
1440
1449
  valueCallback: (t) => t + 1
1441
1450
  }),
1442
1451
  month: K({
1443
- matchPatterns: An,
1452
+ matchPatterns: Xn,
1444
1453
  defaultMatchWidth: "wide",
1445
- parsePatterns: Qn,
1454
+ parsePatterns: Gn,
1446
1455
  defaultParseWidth: "any"
1447
1456
  }),
1448
1457
  day: K({
1449
- matchPatterns: Bn,
1458
+ matchPatterns: Vn,
1450
1459
  defaultMatchWidth: "wide",
1451
- parsePatterns: Sn,
1460
+ parsePatterns: zn,
1452
1461
  defaultParseWidth: "any"
1453
1462
  }),
1454
1463
  dayPeriod: K({
1455
- matchPatterns: Gn,
1464
+ matchPatterns: Zn,
1456
1465
  defaultMatchWidth: "any",
1457
- parsePatterns: Xn,
1466
+ parsePatterns: Jn,
1458
1467
  defaultParseWidth: "any"
1459
1468
  })
1460
- }, ft = {
1469
+ }, ht = {
1461
1470
  code: "en-US",
1462
- formatDistance: _n,
1463
- formatLong: vn,
1464
- formatRelative: On,
1465
- localize: qn,
1466
- match: Vn,
1471
+ formatDistance: vn,
1472
+ formatLong: kn,
1473
+ formatRelative: Tn,
1474
+ localize: Hn,
1475
+ match: Kn,
1467
1476
  options: {
1468
1477
  weekStartsOn: 0,
1469
1478
  firstWeekContainsDate: 1
1470
1479
  }
1471
1480
  };
1472
- function zn(t, n) {
1481
+ function Un(t, n) {
1473
1482
  const e = M(t, n == null ? void 0 : n.in);
1474
- return pn(e, wn(e)) + 1;
1483
+ return yn(e, bn(e)) + 1;
1475
1484
  }
1476
- function pt(t, n) {
1477
- const e = M(t, n == null ? void 0 : n.in), r = +G(e) - +hn(e);
1478
- return Math.round(r / ut) + 1;
1485
+ function mt(t, n) {
1486
+ const e = M(t, n == null ? void 0 : n.in), r = +X(e) - +_n(e);
1487
+ return Math.round(r / lt) + 1;
1479
1488
  }
1480
- function we(t, n) {
1481
- var w, _, k, N;
1482
- const e = M(t, n == null ? void 0 : n.in), r = e.getFullYear(), a = X(), i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((_ = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((N = (k = a.locale) == null ? void 0 : k.options) == null ? void 0 : N.firstWeekContainsDate) ?? 1, s = T((n == null ? void 0 : n.in) || t, 0);
1489
+ function ye(t, n) {
1490
+ var w, _, k, Y;
1491
+ const e = M(t, n == null ? void 0 : n.in), r = e.getFullYear(), a = G(), i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((_ = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((Y = (k = a.locale) == null ? void 0 : k.options) == null ? void 0 : Y.firstWeekContainsDate) ?? 1, s = T((n == null ? void 0 : n.in) || t, 0);
1483
1492
  s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
1484
1493
  const o = A(s, n), d = T((n == null ? void 0 : n.in) || t, 0);
1485
1494
  d.setFullYear(r, 0, i), d.setHours(0, 0, 0, 0);
1486
1495
  const c = A(d, n);
1487
1496
  return +e >= +o ? r + 1 : +e >= +c ? r : r - 1;
1488
1497
  }
1489
- function Zn(t, n) {
1498
+ function ea(t, n) {
1490
1499
  var o, d, c, w;
1491
- const e = X(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (o = n == null ? void 0 : n.locale) == null ? void 0 : o.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((w = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, a = we(t, n), i = T((n == null ? void 0 : n.in) || t, 0);
1500
+ const e = G(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (o = n == null ? void 0 : n.locale) == null ? void 0 : o.options) == null ? void 0 : d.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((w = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, a = ye(t, n), i = T((n == null ? void 0 : n.in) || t, 0);
1492
1501
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), A(i, n);
1493
1502
  }
1494
- function ht(t, n) {
1495
- const e = M(t, n == null ? void 0 : n.in), r = +A(e, n) - +Zn(e, n);
1496
- return Math.round(r / ut) + 1;
1503
+ function wt(t, n) {
1504
+ const e = M(t, n == null ? void 0 : n.in), r = +A(e, n) - +ea(e, n);
1505
+ return Math.round(r / lt) + 1;
1497
1506
  }
1498
1507
  function m(t, n) {
1499
1508
  const e = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(n, "0");
@@ -1560,7 +1569,7 @@ const F = {
1560
1569
  afternoon: "afternoon",
1561
1570
  evening: "evening",
1562
1571
  night: "night"
1563
- }, Ve = {
1572
+ }, ze = {
1564
1573
  // Era
1565
1574
  G: function(t, n, e) {
1566
1575
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -1589,7 +1598,7 @@ const F = {
1589
1598
  },
1590
1599
  // Local week-numbering year
1591
1600
  Y: function(t, n, e, r) {
1592
- const a = we(t, r), i = a > 0 ? a : 1 - a;
1601
+ const a = ye(t, r), i = a > 0 ? a : 1 - a;
1593
1602
  if (n === "YY") {
1594
1603
  const s = i % 100;
1595
1604
  return m(s, 2);
@@ -1598,7 +1607,7 @@ const F = {
1598
1607
  },
1599
1608
  // ISO week-numbering year
1600
1609
  R: function(t, n) {
1601
- const e = lt(t);
1610
+ const e = ft(t);
1602
1611
  return m(e, n.length);
1603
1612
  },
1604
1613
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1743,12 +1752,12 @@ const F = {
1743
1752
  },
1744
1753
  // Local week of year
1745
1754
  w: function(t, n, e, r) {
1746
- const a = ht(t, r);
1755
+ const a = wt(t, r);
1747
1756
  return n === "wo" ? e.ordinalNumber(a, { unit: "week" }) : m(a, n.length);
1748
1757
  },
1749
1758
  // ISO week of year
1750
1759
  I: function(t, n, e) {
1751
- const r = pt(t);
1760
+ const r = mt(t);
1752
1761
  return n === "Io" ? e.ordinalNumber(r, { unit: "week" }) : m(r, n.length);
1753
1762
  },
1754
1763
  // Day of the month
@@ -1757,7 +1766,7 @@ const F = {
1757
1766
  },
1758
1767
  // Day of year
1759
1768
  D: function(t, n, e) {
1760
- const r = zn(t);
1769
+ const r = Un(t);
1761
1770
  return n === "Do" ? e.ordinalNumber(r, { unit: "dayOfYear" }) : m(r, n.length);
1762
1771
  },
1763
1772
  // Day of week
@@ -2035,7 +2044,7 @@ const F = {
2035
2044
  switch (n) {
2036
2045
  // Hours and optional minutes
2037
2046
  case "X":
2038
- return Ze(r);
2047
+ return Je(r);
2039
2048
  // Hours, minutes and optional seconds without `:` delimiter
2040
2049
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2041
2050
  // so this token always has the same output as `XX`
@@ -2058,7 +2067,7 @@ const F = {
2058
2067
  switch (n) {
2059
2068
  // Hours and optional minutes
2060
2069
  case "x":
2061
- return Ze(r);
2070
+ return Je(r);
2062
2071
  // Hours, minutes and optional seconds without `:` delimiter
2063
2072
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2064
2073
  // so this token always has the same output as `xx`
@@ -2083,7 +2092,7 @@ const F = {
2083
2092
  case "O":
2084
2093
  case "OO":
2085
2094
  case "OOO":
2086
- return "GMT" + ze(r, ":");
2095
+ return "GMT" + Ze(r, ":");
2087
2096
  // Long
2088
2097
  case "OOOO":
2089
2098
  default:
@@ -2098,7 +2107,7 @@ const F = {
2098
2107
  case "z":
2099
2108
  case "zz":
2100
2109
  case "zzz":
2101
- return "GMT" + ze(r, ":");
2110
+ return "GMT" + Ze(r, ":");
2102
2111
  // Long
2103
2112
  case "zzzz":
2104
2113
  default:
@@ -2115,18 +2124,18 @@ const F = {
2115
2124
  return m(+t, n.length);
2116
2125
  }
2117
2126
  };
2118
- function ze(t, n = "") {
2127
+ function Ze(t, n = "") {
2119
2128
  const e = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
2120
2129
  return i === 0 ? e + String(a) : e + String(a) + n + m(i, 2);
2121
2130
  }
2122
- function Ze(t, n) {
2131
+ function Je(t, n) {
2123
2132
  return t % 60 === 0 ? (t > 0 ? "-" : "+") + m(Math.abs(t) / 60, 2) : Q(t, n);
2124
2133
  }
2125
2134
  function Q(t, n = "") {
2126
2135
  const e = t > 0 ? "-" : "+", r = Math.abs(t), a = m(Math.trunc(r / 60), 2), i = m(r % 60, 2);
2127
2136
  return e + a + n + i;
2128
2137
  }
2129
- const Je = (t, n) => {
2138
+ const Ke = (t, n) => {
2130
2139
  switch (t) {
2131
2140
  case "P":
2132
2141
  return n.date({ width: "short" });
@@ -2138,7 +2147,7 @@ const Je = (t, n) => {
2138
2147
  default:
2139
2148
  return n.date({ width: "full" });
2140
2149
  }
2141
- }, mt = (t, n) => {
2150
+ }, yt = (t, n) => {
2142
2151
  switch (t) {
2143
2152
  case "p":
2144
2153
  return n.time({ width: "short" });
@@ -2150,10 +2159,10 @@ const Je = (t, n) => {
2150
2159
  default:
2151
2160
  return n.time({ width: "full" });
2152
2161
  }
2153
- }, Jn = (t, n) => {
2162
+ }, ta = (t, n) => {
2154
2163
  const e = t.match(/(P+)(p+)?/) || [], r = e[1], a = e[2];
2155
2164
  if (!a)
2156
- return Je(t, n);
2165
+ return Ke(t, n);
2157
2166
  let i;
2158
2167
  switch (r) {
2159
2168
  case "P":
@@ -2170,47 +2179,47 @@ const Je = (t, n) => {
2170
2179
  i = n.dateTime({ width: "full" });
2171
2180
  break;
2172
2181
  }
2173
- return i.replace("{{date}}", Je(r, n)).replace("{{time}}", mt(a, n));
2174
- }, fe = {
2175
- p: mt,
2176
- P: Jn
2177
- }, Kn = /^D+$/, Un = /^Y+$/, ea = ["D", "DD", "YY", "YYYY"];
2178
- function wt(t) {
2179
- return Kn.test(t);
2182
+ return i.replace("{{date}}", Ke(r, n)).replace("{{time}}", yt(a, n));
2183
+ }, pe = {
2184
+ p: yt,
2185
+ P: ta
2186
+ }, ra = /^D+$/, na = /^Y+$/, aa = ["D", "DD", "YY", "YYYY"];
2187
+ function _t(t) {
2188
+ return ra.test(t);
2180
2189
  }
2181
- function yt(t) {
2182
- return Un.test(t);
2190
+ function gt(t) {
2191
+ return na.test(t);
2183
2192
  }
2184
- function pe(t, n, e) {
2185
- const r = ta(t, n, e);
2186
- if (console.warn(r), ea.includes(t)) throw new RangeError(r);
2193
+ function he(t, n, e) {
2194
+ const r = ia(t, n, e);
2195
+ if (console.warn(r), aa.includes(t)) throw new RangeError(r);
2187
2196
  }
2188
- function ta(t, n, e) {
2197
+ function ia(t, n, e) {
2189
2198
  const r = t[0] === "Y" ? "years" : "days of the month";
2190
2199
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2191
2200
  }
2192
- const ra = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, na = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, aa = /^'([^]*?)'?$/, ia = /''/g, sa = /[a-zA-Z]/;
2193
- function oa(t, n, e) {
2194
- var w, _, k, N;
2195
- const r = X(), a = r.locale ?? ft, i = r.firstWeekContainsDate ?? ((_ = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((N = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : N.weekStartsOn) ?? 0, o = M(t, e == null ? void 0 : e.in);
2196
- if (!dt(o))
2201
+ const sa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, oa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ua = /^'([^]*?)'?$/, ca = /''/g, la = /[a-zA-Z]/;
2202
+ function da(t, n, e) {
2203
+ var w, _, k, Y;
2204
+ const r = G(), a = r.locale ?? ht, i = r.firstWeekContainsDate ?? ((_ = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((Y = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : Y.weekStartsOn) ?? 0, o = M(t, e == null ? void 0 : e.in);
2205
+ if (!pt(o))
2197
2206
  throw new RangeError("Invalid time value");
2198
- let d = n.match(na).map((l) => {
2207
+ let d = n.match(oa).map((l) => {
2199
2208
  const y = l[0];
2200
2209
  if (y === "p" || y === "P") {
2201
- const b = fe[y];
2210
+ const b = pe[y];
2202
2211
  return b(l, a.formatLong);
2203
2212
  }
2204
2213
  return l;
2205
- }).join("").match(ra).map((l) => {
2214
+ }).join("").match(sa).map((l) => {
2206
2215
  if (l === "''")
2207
2216
  return { isToken: !1, value: "'" };
2208
2217
  const y = l[0];
2209
2218
  if (y === "'")
2210
- return { isToken: !1, value: ua(l) };
2211
- if (Ve[y])
2219
+ return { isToken: !1, value: fa(l) };
2220
+ if (ze[y])
2212
2221
  return { isToken: !0, value: l };
2213
- if (y.match(sa))
2222
+ if (y.match(la))
2214
2223
  throw new RangeError(
2215
2224
  "Format string contains an unescaped latin alphabet character `" + y + "`"
2216
2225
  );
@@ -2225,24 +2234,24 @@ function oa(t, n, e) {
2225
2234
  return d.map((l) => {
2226
2235
  if (!l.isToken) return l.value;
2227
2236
  const y = l.value;
2228
- (yt(y) || wt(y)) && pe(y, n, String(t));
2229
- const b = Ve[y[0]];
2237
+ (gt(y) || _t(y)) && he(y, n, String(t));
2238
+ const b = ze[y[0]];
2230
2239
  return b(o, y, a.localize, c);
2231
2240
  }).join("");
2232
2241
  }
2233
- function ua(t) {
2234
- const n = t.match(aa);
2235
- return n ? n[1].replace(ia, "'") : t;
2242
+ function fa(t) {
2243
+ const n = t.match(ua);
2244
+ return n ? n[1].replace(ca, "'") : t;
2236
2245
  }
2237
- function ca() {
2238
- return Object.assign({}, X());
2246
+ function pa() {
2247
+ return Object.assign({}, G());
2239
2248
  }
2240
- function la(t, n) {
2249
+ function ha(t, n) {
2241
2250
  const e = M(t, n == null ? void 0 : n.in).getDay();
2242
2251
  return e === 0 ? 7 : e;
2243
2252
  }
2244
- function da(t, n) {
2245
- const e = fa(n) ? new n(0) : T(n, 0);
2253
+ function ma(t, n) {
2254
+ const e = wa(n) ? new n(0) : T(n, 0);
2246
2255
  return e.setFullYear(t.getFullYear(), t.getMonth(), t.getDate()), e.setHours(
2247
2256
  t.getHours(),
2248
2257
  t.getMinutes(),
@@ -2250,12 +2259,12 @@ function da(t, n) {
2250
2259
  t.getMilliseconds()
2251
2260
  ), e;
2252
2261
  }
2253
- function fa(t) {
2262
+ function wa(t) {
2254
2263
  var n;
2255
2264
  return typeof t == "function" && ((n = t.prototype) == null ? void 0 : n.constructor) === t;
2256
2265
  }
2257
- const pa = 10;
2258
- class _t {
2266
+ const ya = 10;
2267
+ class bt {
2259
2268
  constructor() {
2260
2269
  u(this, "subPriority", 0);
2261
2270
  }
@@ -2263,7 +2272,7 @@ class _t {
2263
2272
  return !0;
2264
2273
  }
2265
2274
  }
2266
- class ha extends _t {
2275
+ class _a extends bt {
2267
2276
  constructor(n, e, r, a, i) {
2268
2277
  super(), this.value = n, this.validateValue = e, this.setValue = r, this.priority = a, i && (this.subPriority = i);
2269
2278
  }
@@ -2274,22 +2283,22 @@ class ha extends _t {
2274
2283
  return this.setValue(n, e, this.value, r);
2275
2284
  }
2276
2285
  }
2277
- class ma extends _t {
2286
+ class ga extends bt {
2278
2287
  constructor(e, r) {
2279
2288
  super();
2280
- u(this, "priority", pa);
2289
+ u(this, "priority", ya);
2281
2290
  u(this, "subPriority", -1);
2282
2291
  this.context = e || ((a) => T(r, a));
2283
2292
  }
2284
2293
  set(e, r) {
2285
- return r.timestampIsSet ? e : T(e, da(e, this.context));
2294
+ return r.timestampIsSet ? e : T(e, ma(e, this.context));
2286
2295
  }
2287
2296
  }
2288
2297
  class h {
2289
2298
  run(n, e, r, a) {
2290
2299
  const i = this.parse(n, e, r, a);
2291
2300
  return i ? {
2292
- setter: new ha(
2301
+ setter: new _a(
2293
2302
  i.value,
2294
2303
  this.validate,
2295
2304
  this.set,
@@ -2303,7 +2312,7 @@ class h {
2303
2312
  return !0;
2304
2313
  }
2305
2314
  }
2306
- class wa extends h {
2315
+ class ba extends h {
2307
2316
  constructor() {
2308
2317
  super(...arguments);
2309
2318
  u(this, "priority", 140);
@@ -2398,11 +2407,11 @@ function C(t, n) {
2398
2407
  };
2399
2408
  const r = e[1] === "+" ? 1 : -1, a = e[2] ? parseInt(e[2], 10) : 0, i = e[3] ? parseInt(e[3], 10) : 0, s = e[5] ? parseInt(e[5], 10) : 0;
2400
2409
  return {
2401
- value: r * (a * cn + i * un + s * ln),
2410
+ value: r * (a * pn + i * fn + s * hn),
2402
2411
  rest: n.slice(e[0].length)
2403
2412
  };
2404
2413
  }
2405
- function gt(t) {
2414
+ function xt(t) {
2406
2415
  return x(P.anyDigitsSigned, t);
2407
2416
  }
2408
2417
  function v(t, n) {
@@ -2419,7 +2428,7 @@ function v(t, n) {
2419
2428
  return x(new RegExp("^\\d{1," + t + "}"), n);
2420
2429
  }
2421
2430
  }
2422
- function re(t, n) {
2431
+ function ne(t, n) {
2423
2432
  switch (t) {
2424
2433
  case 1:
2425
2434
  return x(P.singleDigitSigned, n);
@@ -2433,7 +2442,7 @@ function re(t, n) {
2433
2442
  return x(new RegExp("^-?\\d{1," + t + "}"), n);
2434
2443
  }
2435
2444
  }
2436
- function ye(t) {
2445
+ function _e(t) {
2437
2446
  switch (t) {
2438
2447
  case "morning":
2439
2448
  return 4;
@@ -2450,7 +2459,7 @@ function ye(t) {
2450
2459
  return 0;
2451
2460
  }
2452
2461
  }
2453
- function bt(t, n) {
2462
+ function vt(t, n) {
2454
2463
  const e = n > 0, r = e ? n : 1 - n;
2455
2464
  let a;
2456
2465
  if (r <= 50)
@@ -2461,10 +2470,10 @@ function bt(t, n) {
2461
2470
  }
2462
2471
  return e ? a : 1 - a;
2463
2472
  }
2464
- function xt(t) {
2473
+ function Pt(t) {
2465
2474
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
2466
2475
  }
2467
- class ya extends h {
2476
+ class xa extends h {
2468
2477
  constructor() {
2469
2478
  super(...arguments);
2470
2479
  u(this, "priority", 130);
@@ -2495,7 +2504,7 @@ class ya extends h {
2495
2504
  set(e, r, a) {
2496
2505
  const i = e.getFullYear();
2497
2506
  if (a.isTwoDigitYear) {
2498
- const o = bt(
2507
+ const o = vt(
2499
2508
  a.year,
2500
2509
  i
2501
2510
  );
@@ -2505,7 +2514,7 @@ class ya extends h {
2505
2514
  return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
2506
2515
  }
2507
2516
  }
2508
- class _a extends h {
2517
+ class va extends h {
2509
2518
  constructor() {
2510
2519
  super(...arguments);
2511
2520
  u(this, "priority", 130);
@@ -2548,9 +2557,9 @@ class _a extends h {
2548
2557
  return r.isTwoDigitYear || r.year > 0;
2549
2558
  }
2550
2559
  set(e, r, a, i) {
2551
- const s = we(e, i);
2560
+ const s = ye(e, i);
2552
2561
  if (a.isTwoDigitYear) {
2553
- const d = bt(
2562
+ const d = vt(
2554
2563
  a.year,
2555
2564
  s
2556
2565
  );
@@ -2564,7 +2573,7 @@ class _a extends h {
2564
2573
  return e.setFullYear(o, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0), A(e, i);
2565
2574
  }
2566
2575
  }
2567
- class ga extends h {
2576
+ class Pa extends h {
2568
2577
  constructor() {
2569
2578
  super(...arguments);
2570
2579
  u(this, "priority", 130);
@@ -2587,27 +2596,27 @@ class ga extends h {
2587
2596
  ]);
2588
2597
  }
2589
2598
  parse(e, r) {
2590
- return re(r === "R" ? 4 : r.length, e);
2599
+ return ne(r === "R" ? 4 : r.length, e);
2591
2600
  }
2592
2601
  set(e, r, a) {
2593
2602
  const i = T(e, 0);
2594
- return i.setFullYear(a, 0, 4), i.setHours(0, 0, 0, 0), G(i);
2603
+ return i.setFullYear(a, 0, 4), i.setHours(0, 0, 0, 0), X(i);
2595
2604
  }
2596
2605
  }
2597
- class ba extends h {
2606
+ class Oa extends h {
2598
2607
  constructor() {
2599
2608
  super(...arguments);
2600
2609
  u(this, "priority", 130);
2601
2610
  u(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
2602
2611
  }
2603
2612
  parse(e, r) {
2604
- return re(r === "u" ? 4 : r.length, e);
2613
+ return ne(r === "u" ? 4 : r.length, e);
2605
2614
  }
2606
2615
  set(e, r, a) {
2607
2616
  return e.setFullYear(a, 0, 1), e.setHours(0, 0, 0, 0), e;
2608
2617
  }
2609
2618
  }
2610
- class xa extends h {
2619
+ class Ma extends h {
2611
2620
  constructor() {
2612
2621
  super(...arguments);
2613
2622
  u(this, "priority", 120);
@@ -2674,7 +2683,7 @@ class xa extends h {
2674
2683
  return e.setMonth((a - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
2675
2684
  }
2676
2685
  }
2677
- class va extends h {
2686
+ class ka extends h {
2678
2687
  constructor() {
2679
2688
  super(...arguments);
2680
2689
  u(this, "priority", 120);
@@ -2741,7 +2750,7 @@ class va extends h {
2741
2750
  return e.setMonth((a - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
2742
2751
  }
2743
2752
  }
2744
- class Pa extends h {
2753
+ class Da extends h {
2745
2754
  constructor() {
2746
2755
  super(...arguments);
2747
2756
  u(this, "incompatibleTokens", [
@@ -2809,7 +2818,7 @@ class Pa extends h {
2809
2818
  return e.setMonth(a, 1), e.setHours(0, 0, 0, 0), e;
2810
2819
  }
2811
2820
  }
2812
- class Oa extends h {
2821
+ class Ta extends h {
2813
2822
  constructor() {
2814
2823
  super(...arguments);
2815
2824
  u(this, "priority", 110);
@@ -2877,11 +2886,11 @@ class Oa extends h {
2877
2886
  return e.setMonth(a, 1), e.setHours(0, 0, 0, 0), e;
2878
2887
  }
2879
2888
  }
2880
- function Ma(t, n, e) {
2881
- const r = M(t, e == null ? void 0 : e.in), a = ht(r, e) - n;
2889
+ function Na(t, n, e) {
2890
+ const r = M(t, e == null ? void 0 : e.in), a = wt(r, e) - n;
2882
2891
  return r.setDate(r.getDate() - a * 7), M(r, e == null ? void 0 : e.in);
2883
2892
  }
2884
- class ka extends h {
2893
+ class Ya extends h {
2885
2894
  constructor() {
2886
2895
  super(...arguments);
2887
2896
  u(this, "priority", 100);
@@ -2915,14 +2924,14 @@ class ka extends h {
2915
2924
  return r >= 1 && r <= 53;
2916
2925
  }
2917
2926
  set(e, r, a, i) {
2918
- return A(Ma(e, a, i), i);
2927
+ return A(Na(e, a, i), i);
2919
2928
  }
2920
2929
  }
2921
- function Da(t, n, e) {
2922
- const r = M(t, e == null ? void 0 : e.in), a = pt(r, e) - n;
2930
+ function Ea(t, n, e) {
2931
+ const r = M(t, e == null ? void 0 : e.in), a = mt(r, e) - n;
2923
2932
  return r.setDate(r.getDate() - a * 7), r;
2924
2933
  }
2925
- class Ta extends h {
2934
+ class qa extends h {
2926
2935
  constructor() {
2927
2936
  super(...arguments);
2928
2937
  u(this, "priority", 100);
@@ -2957,10 +2966,10 @@ class Ta extends h {
2957
2966
  return r >= 1 && r <= 53;
2958
2967
  }
2959
2968
  set(e, r, a) {
2960
- return G(Da(e, a));
2969
+ return X(Ea(e, a));
2961
2970
  }
2962
2971
  }
2963
- const Na = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ya = [
2972
+ const Wa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $a = [
2964
2973
  31,
2965
2974
  29,
2966
2975
  31,
@@ -2974,7 +2983,7 @@ const Na = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ya = [
2974
2983
  30,
2975
2984
  31
2976
2985
  ];
2977
- class Ea extends h {
2986
+ class ja extends h {
2978
2987
  constructor() {
2979
2988
  super(...arguments);
2980
2989
  u(this, "priority", 90);
@@ -3005,14 +3014,14 @@ class Ea extends h {
3005
3014
  }
3006
3015
  }
3007
3016
  validate(e, r) {
3008
- const a = e.getFullYear(), i = xt(a), s = e.getMonth();
3009
- return i ? r >= 1 && r <= Ya[s] : r >= 1 && r <= Na[s];
3017
+ const a = e.getFullYear(), i = Pt(a), s = e.getMonth();
3018
+ return i ? r >= 1 && r <= $a[s] : r >= 1 && r <= Wa[s];
3010
3019
  }
3011
3020
  set(e, r, a) {
3012
3021
  return e.setDate(a), e.setHours(0, 0, 0, 0), e;
3013
3022
  }
3014
3023
  }
3015
- class qa extends h {
3024
+ class Ha extends h {
3016
3025
  constructor() {
3017
3026
  super(...arguments);
3018
3027
  u(this, "priority", 90);
@@ -3048,18 +3057,18 @@ class qa extends h {
3048
3057
  }
3049
3058
  validate(e, r) {
3050
3059
  const a = e.getFullYear();
3051
- return xt(a) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
3060
+ return Pt(a) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
3052
3061
  }
3053
3062
  set(e, r, a) {
3054
3063
  return e.setMonth(0, a), e.setHours(0, 0, 0, 0), e;
3055
3064
  }
3056
3065
  }
3057
- function _e(t, n, e) {
3058
- var _, k, N, l;
3059
- const r = X(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((k = (_ = e == null ? void 0 : e.locale) == null ? void 0 : _.options) == null ? void 0 : k.weekStartsOn) ?? r.weekStartsOn ?? ((l = (N = r.locale) == null ? void 0 : N.options) == null ? void 0 : l.weekStartsOn) ?? 0, i = M(t, e == null ? void 0 : e.in), s = i.getDay(), d = (n % 7 + 7) % 7, c = 7 - a, w = n < 0 || n > 6 ? n - (s + c) % 7 : (d + c) % 7 - (s + c) % 7;
3060
- return ct(i, w, e);
3066
+ function ge(t, n, e) {
3067
+ var _, k, Y, l;
3068
+ const r = G(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((k = (_ = e == null ? void 0 : e.locale) == null ? void 0 : _.options) == null ? void 0 : k.weekStartsOn) ?? r.weekStartsOn ?? ((l = (Y = r.locale) == null ? void 0 : Y.options) == null ? void 0 : l.weekStartsOn) ?? 0, i = M(t, e == null ? void 0 : e.in), s = i.getDay(), d = (n % 7 + 7) % 7, c = 7 - a, w = n < 0 || n > 6 ? n - (s + c) % 7 : (d + c) % 7 - (s + c) % 7;
3069
+ return dt(i, w, e);
3061
3070
  }
3062
- class Wa extends h {
3071
+ class Ca extends h {
3063
3072
  constructor() {
3064
3073
  super(...arguments);
3065
3074
  u(this, "priority", 90);
@@ -3097,10 +3106,10 @@ class Wa extends h {
3097
3106
  return r >= 0 && r <= 6;
3098
3107
  }
3099
3108
  set(e, r, a, i) {
3100
- return e = _e(e, a, i), e.setHours(0, 0, 0, 0), e;
3109
+ return e = ge(e, a, i), e.setHours(0, 0, 0, 0), e;
3101
3110
  }
3102
3111
  }
3103
- class $a extends h {
3112
+ class La extends h {
3104
3113
  constructor() {
3105
3114
  super(...arguments);
3106
3115
  u(this, "priority", 90);
@@ -3168,10 +3177,10 @@ class $a extends h {
3168
3177
  return r >= 0 && r <= 6;
3169
3178
  }
3170
3179
  set(e, r, a, i) {
3171
- return e = _e(e, a, i), e.setHours(0, 0, 0, 0), e;
3180
+ return e = ge(e, a, i), e.setHours(0, 0, 0, 0), e;
3172
3181
  }
3173
3182
  }
3174
- class ja extends h {
3183
+ class Ia extends h {
3175
3184
  constructor() {
3176
3185
  super(...arguments);
3177
3186
  u(this, "priority", 90);
@@ -3239,14 +3248,14 @@ class ja extends h {
3239
3248
  return r >= 0 && r <= 6;
3240
3249
  }
3241
3250
  set(e, r, a, i) {
3242
- return e = _e(e, a, i), e.setHours(0, 0, 0, 0), e;
3251
+ return e = ge(e, a, i), e.setHours(0, 0, 0, 0), e;
3243
3252
  }
3244
3253
  }
3245
- function Ha(t, n, e) {
3246
- const r = M(t, e == null ? void 0 : e.in), a = la(r, e), i = n - a;
3247
- return ct(r, i, e);
3254
+ function Fa(t, n, e) {
3255
+ const r = M(t, e == null ? void 0 : e.in), a = ha(r, e), i = n - a;
3256
+ return dt(r, i, e);
3248
3257
  }
3249
- class Ca extends h {
3258
+ class Ra extends h {
3250
3259
  constructor() {
3251
3260
  super(...arguments);
3252
3261
  u(this, "priority", 90);
@@ -3339,10 +3348,10 @@ class Ca extends h {
3339
3348
  return r >= 1 && r <= 7;
3340
3349
  }
3341
3350
  set(e, r, a) {
3342
- return e = Ha(e, a), e.setHours(0, 0, 0, 0), e;
3351
+ return e = Fa(e, a), e.setHours(0, 0, 0, 0), e;
3343
3352
  }
3344
3353
  }
3345
- class La extends h {
3354
+ class Aa extends h {
3346
3355
  constructor() {
3347
3356
  super(...arguments);
3348
3357
  u(this, "priority", 80);
@@ -3380,10 +3389,10 @@ class La extends h {
3380
3389
  }
3381
3390
  }
3382
3391
  set(e, r, a) {
3383
- return e.setHours(ye(a), 0, 0, 0), e;
3392
+ return e.setHours(_e(a), 0, 0, 0), e;
3384
3393
  }
3385
3394
  }
3386
- class Ia extends h {
3395
+ class Qa extends h {
3387
3396
  constructor() {
3388
3397
  super(...arguments);
3389
3398
  u(this, "priority", 80);
@@ -3421,10 +3430,10 @@ class Ia extends h {
3421
3430
  }
3422
3431
  }
3423
3432
  set(e, r, a) {
3424
- return e.setHours(ye(a), 0, 0, 0), e;
3433
+ return e.setHours(_e(a), 0, 0, 0), e;
3425
3434
  }
3426
3435
  }
3427
- class Fa extends h {
3436
+ class Ba extends h {
3428
3437
  constructor() {
3429
3438
  super(...arguments);
3430
3439
  u(this, "priority", 80);
@@ -3462,10 +3471,10 @@ class Fa extends h {
3462
3471
  }
3463
3472
  }
3464
3473
  set(e, r, a) {
3465
- return e.setHours(ye(a), 0, 0, 0), e;
3474
+ return e.setHours(_e(a), 0, 0, 0), e;
3466
3475
  }
3467
3476
  }
3468
- class Ra extends h {
3477
+ class Sa extends h {
3469
3478
  constructor() {
3470
3479
  super(...arguments);
3471
3480
  u(this, "priority", 70);
@@ -3489,7 +3498,7 @@ class Ra extends h {
3489
3498
  return i && a < 12 ? e.setHours(a + 12, 0, 0, 0) : !i && a === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(a, 0, 0, 0), e;
3490
3499
  }
3491
3500
  }
3492
- class Aa extends h {
3501
+ class Xa extends h {
3493
3502
  constructor() {
3494
3503
  super(...arguments);
3495
3504
  u(this, "priority", 70);
@@ -3512,7 +3521,7 @@ class Aa extends h {
3512
3521
  return e.setHours(a, 0, 0, 0), e;
3513
3522
  }
3514
3523
  }
3515
- class Qa extends h {
3524
+ class Ga extends h {
3516
3525
  constructor() {
3517
3526
  super(...arguments);
3518
3527
  u(this, "priority", 70);
@@ -3535,7 +3544,7 @@ class Qa extends h {
3535
3544
  return e.getHours() >= 12 && a < 12 ? e.setHours(a + 12, 0, 0, 0) : e.setHours(a, 0, 0, 0), e;
3536
3545
  }
3537
3546
  }
3538
- class Ba extends h {
3547
+ class Va extends h {
3539
3548
  constructor() {
3540
3549
  super(...arguments);
3541
3550
  u(this, "priority", 70);
@@ -3559,7 +3568,7 @@ class Ba extends h {
3559
3568
  return e.setHours(i, 0, 0, 0), e;
3560
3569
  }
3561
3570
  }
3562
- class Sa extends h {
3571
+ class za extends h {
3563
3572
  constructor() {
3564
3573
  super(...arguments);
3565
3574
  u(this, "priority", 60);
@@ -3582,7 +3591,7 @@ class Sa extends h {
3582
3591
  return e.setMinutes(a, 0, 0), e;
3583
3592
  }
3584
3593
  }
3585
- class Ga extends h {
3594
+ class Za extends h {
3586
3595
  constructor() {
3587
3596
  super(...arguments);
3588
3597
  u(this, "priority", 50);
@@ -3605,7 +3614,7 @@ class Ga extends h {
3605
3614
  return e.setSeconds(a, 0), e;
3606
3615
  }
3607
3616
  }
3608
- class Xa extends h {
3617
+ class Ja extends h {
3609
3618
  constructor() {
3610
3619
  super(...arguments);
3611
3620
  u(this, "priority", 30);
@@ -3619,7 +3628,7 @@ class Xa extends h {
3619
3628
  return e.setMilliseconds(a), e;
3620
3629
  }
3621
3630
  }
3622
- class Va extends h {
3631
+ class Ka extends h {
3623
3632
  constructor() {
3624
3633
  super(...arguments);
3625
3634
  u(this, "priority", 10);
@@ -3652,11 +3661,11 @@ class Va extends h {
3652
3661
  set(e, r, a) {
3653
3662
  return r.timestampIsSet ? e : T(
3654
3663
  e,
3655
- e.getTime() - te(e) - a
3664
+ e.getTime() - re(e) - a
3656
3665
  );
3657
3666
  }
3658
3667
  }
3659
- class za extends h {
3668
+ class Ua extends h {
3660
3669
  constructor() {
3661
3670
  super(...arguments);
3662
3671
  u(this, "priority", 10);
@@ -3689,86 +3698,86 @@ class za extends h {
3689
3698
  set(e, r, a) {
3690
3699
  return r.timestampIsSet ? e : T(
3691
3700
  e,
3692
- e.getTime() - te(e) - a
3701
+ e.getTime() - re(e) - a
3693
3702
  );
3694
3703
  }
3695
3704
  }
3696
- class Za extends h {
3705
+ class ei extends h {
3697
3706
  constructor() {
3698
3707
  super(...arguments);
3699
3708
  u(this, "priority", 40);
3700
3709
  u(this, "incompatibleTokens", "*");
3701
3710
  }
3702
3711
  parse(e) {
3703
- return gt(e);
3712
+ return xt(e);
3704
3713
  }
3705
3714
  set(e, r, a) {
3706
3715
  return [T(e, a * 1e3), { timestampIsSet: !0 }];
3707
3716
  }
3708
3717
  }
3709
- class Ja extends h {
3718
+ class ti extends h {
3710
3719
  constructor() {
3711
3720
  super(...arguments);
3712
3721
  u(this, "priority", 20);
3713
3722
  u(this, "incompatibleTokens", "*");
3714
3723
  }
3715
3724
  parse(e) {
3716
- return gt(e);
3725
+ return xt(e);
3717
3726
  }
3718
3727
  set(e, r, a) {
3719
3728
  return [T(e, a), { timestampIsSet: !0 }];
3720
3729
  }
3721
3730
  }
3722
- const Ka = {
3723
- G: new wa(),
3724
- y: new ya(),
3725
- Y: new _a(),
3726
- R: new ga(),
3727
- u: new ba(),
3728
- Q: new xa(),
3729
- q: new va(),
3730
- M: new Pa(),
3731
- L: new Oa(),
3732
- w: new ka(),
3733
- I: new Ta(),
3734
- d: new Ea(),
3735
- D: new qa(),
3736
- E: new Wa(),
3737
- e: new $a(),
3738
- c: new ja(),
3739
- i: new Ca(),
3740
- a: new La(),
3741
- b: new Ia(),
3742
- B: new Fa(),
3743
- h: new Ra(),
3744
- H: new Aa(),
3745
- K: new Qa(),
3746
- k: new Ba(),
3747
- m: new Sa(),
3748
- s: new Ga(),
3749
- S: new Xa(),
3750
- X: new Va(),
3751
- x: new za(),
3752
- t: new Za(),
3753
- T: new Ja()
3754
- }, Ua = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ei = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ti = /^'([^]*?)'?$/, ri = /''/g, ni = /\S/, ai = /[a-zA-Z]/;
3755
- function ii(t, n, e, r) {
3756
- var b, D, Y, W;
3757
- const a = () => T(e, NaN), i = ca(), s = i.locale ?? ft, o = i.firstWeekContainsDate ?? ((D = (b = i.locale) == null ? void 0 : b.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, d = i.weekStartsOn ?? ((W = (Y = i.locale) == null ? void 0 : Y.options) == null ? void 0 : W.weekStartsOn) ?? 0, c = {
3731
+ const ri = {
3732
+ G: new ba(),
3733
+ y: new xa(),
3734
+ Y: new va(),
3735
+ R: new Pa(),
3736
+ u: new Oa(),
3737
+ Q: new Ma(),
3738
+ q: new ka(),
3739
+ M: new Da(),
3740
+ L: new Ta(),
3741
+ w: new Ya(),
3742
+ I: new qa(),
3743
+ d: new ja(),
3744
+ D: new Ha(),
3745
+ E: new Ca(),
3746
+ e: new La(),
3747
+ c: new Ia(),
3748
+ i: new Ra(),
3749
+ a: new Aa(),
3750
+ b: new Qa(),
3751
+ B: new Ba(),
3752
+ h: new Sa(),
3753
+ H: new Xa(),
3754
+ K: new Ga(),
3755
+ k: new Va(),
3756
+ m: new za(),
3757
+ s: new Za(),
3758
+ S: new Ja(),
3759
+ X: new Ka(),
3760
+ x: new Ua(),
3761
+ t: new ei(),
3762
+ T: new ti()
3763
+ }, ni = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ai = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ii = /^'([^]*?)'?$/, si = /''/g, oi = /\S/, ui = /[a-zA-Z]/;
3764
+ function ci(t, n, e, r) {
3765
+ var b, D, E, W;
3766
+ const a = () => T(e, NaN), i = pa(), s = i.locale ?? ht, o = i.firstWeekContainsDate ?? ((D = (b = i.locale) == null ? void 0 : b.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, d = i.weekStartsOn ?? ((W = (E = i.locale) == null ? void 0 : E.options) == null ? void 0 : W.weekStartsOn) ?? 0, c = {
3758
3767
  firstWeekContainsDate: o,
3759
3768
  weekStartsOn: d,
3760
3769
  locale: s
3761
- }, w = [new ma(r == null ? void 0 : r.in, e)], _ = n.match(ei).map((f) => {
3770
+ }, w = [new ga(r == null ? void 0 : r.in, e)], _ = n.match(ai).map((f) => {
3762
3771
  const g = f[0];
3763
- if (g in fe) {
3764
- const $ = fe[g];
3772
+ if (g in pe) {
3773
+ const $ = pe[g];
3765
3774
  return $(f, s.formatLong);
3766
3775
  }
3767
3776
  return f;
3768
- }).join("").match(Ua), k = [];
3777
+ }).join("").match(ni), k = [];
3769
3778
  for (let f of _) {
3770
- yt(f) && pe(f, n, t), wt(f) && pe(f, n, t);
3771
- const g = f[0], $ = Ka[g];
3779
+ gt(f) && he(f, n, t), _t(f) && he(f, n, t);
3780
+ const g = f[0], $ = ri[g];
3772
3781
  if ($) {
3773
3782
  const { incompatibleTokens: V } = $;
3774
3783
  if (Array.isArray(V)) {
@@ -3794,25 +3803,25 @@ function ii(t, n, e, r) {
3794
3803
  return a();
3795
3804
  w.push(B.setter), t = B.rest;
3796
3805
  } else {
3797
- if (g.match(ai))
3806
+ if (g.match(ui))
3798
3807
  throw new RangeError(
3799
3808
  "Format string contains an unescaped latin alphabet character `" + g + "`"
3800
3809
  );
3801
- if (f === "''" ? f = "'" : g === "'" && (f = si(f)), t.indexOf(f) === 0)
3810
+ if (f === "''" ? f = "'" : g === "'" && (f = li(f)), t.indexOf(f) === 0)
3802
3811
  t = t.slice(f.length);
3803
3812
  else
3804
3813
  return a();
3805
3814
  }
3806
3815
  }
3807
- if (t.length > 0 && ni.test(t))
3816
+ if (t.length > 0 && oi.test(t))
3808
3817
  return a();
3809
- const N = w.map((f) => f.priority).sort((f, g) => g - f).filter((f, g, $) => $.indexOf(f) === g).map(
3818
+ const Y = w.map((f) => f.priority).sort((f, g) => g - f).filter((f, g, $) => $.indexOf(f) === g).map(
3810
3819
  (f) => w.filter((g) => g.priority === f).sort((g, $) => $.subPriority - g.subPriority)
3811
3820
  ).map((f) => f[0]);
3812
3821
  let l = M(e, r == null ? void 0 : r.in);
3813
3822
  if (isNaN(+l)) return a();
3814
3823
  const y = {};
3815
- for (const f of N) {
3824
+ for (const f of Y) {
3816
3825
  if (!f.validate(l, c))
3817
3826
  return a();
3818
3827
  const g = f.set(l, y, c);
@@ -3820,52 +3829,52 @@ function ii(t, n, e, r) {
3820
3829
  }
3821
3830
  return l;
3822
3831
  }
3823
- function si(t) {
3824
- return t.match(ti)[1].replace(ri, "'");
3832
+ function li(t) {
3833
+ return t.match(ii)[1].replace(si, "'");
3825
3834
  }
3826
- const oi = {
3835
+ const di = {
3827
3836
  "purpur-date-field__container": "_purpur-date-field__container_ci2f4_1",
3828
3837
  "purpur-date-field__overlay": "_purpur-date-field__overlay_ci2f4_5",
3829
3838
  "purpur-date-field__start-adornment": "_purpur-date-field__start-adornment_ci2f4_16"
3830
- }, ui = (t) => ii(t, "yyyy-MM-dd", /* @__PURE__ */ new Date()), Ke = (t) => t ? oa(t, "yyyy-MM-dd") : "", ci = (...t) => {
3839
+ }, fi = (t) => ci(t, "yyyy-MM-dd", /* @__PURE__ */ new Date()), Ue = (t) => t ? da(t, "yyyy-MM-dd") : "", pi = (...t) => {
3831
3840
  const n = t.filter(Boolean);
3832
3841
  return n.length <= 1 ? n[0] || null : (e) => {
3833
3842
  for (const r of n)
3834
3843
  typeof r == "function" ? r(e) : r && (r.current = e);
3835
3844
  };
3836
- }, ce = sn.bind(oi), le = "purpur-date-field", de = "YYYY-MM-DD", li = he(
3845
+ }, le = ln.bind(di), de = "purpur-date-field", fe = "YYYY-MM-DD", hi = me(
3837
3846
  ({ id: t, value: n, label: e, onChange: r, startAdornment: a, ...i }, s) => {
3838
- const [o, d] = ge(Ke(n));
3839
- kt(() => {
3840
- d(n ? Ke(n) : "");
3847
+ const [o, d] = be(Ue(n));
3848
+ Tt(() => {
3849
+ d(n ? Ue(n) : "");
3841
3850
  }, [n]);
3842
- const c = Ue(null), w = ci(s, c), [_, k] = ge({});
3843
- Dt(() => {
3851
+ const c = et(null), w = pi(s, c), [_, k] = be({});
3852
+ Nt(() => {
3844
3853
  if (c.current) {
3845
3854
  const b = window.document.querySelector(
3846
3855
  `label[for="${c.current.id}"]`
3847
- ), D = b ? b.offsetHeight + 4 : 0, Y = window.getComputedStyle(c.current);
3856
+ ), D = b ? b.offsetHeight + 4 : 0, E = window.getComputedStyle(c.current);
3848
3857
  k({
3849
3858
  position: "absolute",
3850
3859
  top: c.current.offsetTop + D,
3851
3860
  left: c.current.offsetLeft,
3852
- padding: Y.padding,
3861
+ padding: E.padding,
3853
3862
  width: c.current.offsetWidth,
3854
3863
  height: c.current.offsetHeight
3855
3864
  });
3856
3865
  }
3857
3866
  }, [o, e, c]);
3858
- const N = (b) => {
3859
- if (b.length === 0 && (r == null || r(void 0)), b.length !== de.length)
3867
+ const Y = (b) => {
3868
+ if (b.length === 0 && (r == null || r(void 0)), b.length !== fe.length)
3860
3869
  return;
3861
- const D = ui(b);
3862
- dt(D) && (r == null || r(D));
3870
+ const D = fi(b);
3871
+ pt(D) && (r == null || r(D));
3863
3872
  }, l = (b) => {
3864
3873
  const D = b.target.value.replace(/\D/g, "");
3865
- let Y = "";
3866
- D.length > 0 && (Y += D.slice(0, 4)), D.length > 4 && (Y += "-" + D.slice(4, 6)), D.length > 6 && (Y += "-" + D.slice(6, 8)), d(Y), N(b.target.value);
3867
- }, y = () => de.split("").map((D, Y) => {
3868
- const W = o[Y];
3874
+ let E = "";
3875
+ D.length > 0 && (E += D.slice(0, 4)), D.length > 4 && (E += "-" + D.slice(4, 6)), D.length > 6 && (E += "-" + D.slice(6, 8)), d(E), Y(b.target.value);
3876
+ }, y = () => fe.split("").map((D, E) => {
3877
+ const W = o[E];
3869
3878
  return /* @__PURE__ */ p(
3870
3879
  "span",
3871
3880
  {
@@ -3874,30 +3883,30 @@ const oi = {
3874
3883
  },
3875
3884
  children: W || D
3876
3885
  },
3877
- Y
3886
+ E
3878
3887
  );
3879
3888
  });
3880
- return /* @__PURE__ */ R("div", { className: ce(`${le}__container`), children: [
3889
+ return /* @__PURE__ */ R("div", { className: le(`${de}__container`), children: [
3881
3890
  /* @__PURE__ */ p(
3882
- ot,
3891
+ ct,
3883
3892
  {
3884
3893
  ...i,
3885
- startAdornment: a && /* @__PURE__ */ p("span", { className: ce(`${le}__start-adornment`), children: a }, t),
3894
+ startAdornment: a && /* @__PURE__ */ p("span", { className: le(`${de}__start-adornment`), children: a }, t),
3886
3895
  ref: w,
3887
3896
  value: o,
3888
3897
  onChange: l,
3889
3898
  type: "text",
3890
- maxLength: de.length,
3899
+ maxLength: fe.length,
3891
3900
  inputMode: "numeric",
3892
3901
  label: e
3893
3902
  }
3894
3903
  ),
3895
- /* @__PURE__ */ p("div", { role: "presentation", style: _, className: ce(`${le}__overlay`), children: y() })
3904
+ /* @__PURE__ */ p("div", { role: "presentation", style: _, className: le(`${de}__overlay`), children: y() })
3896
3905
  ] });
3897
3906
  }
3898
3907
  );
3899
- li.displayName = "DateField";
3908
+ hi.displayName = "DateField";
3900
3909
  export {
3901
- li as DateField
3910
+ hi as DateField
3902
3911
  };
3903
3912
  //# sourceMappingURL=date-field.es.js.map