@hybridcore/ui 1.6.11 → 1.6.13

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 (150) hide show
  1. package/dist/{AnimatedTheme-D3VZKKNV.js → AnimatedTheme-ktdO3Bel.js} +6 -6
  2. package/dist/{AxisRenderer-Doyw-FTI.js → AxisRenderer-BCQoUJw6.js} +6 -6
  3. package/dist/{AxisRendererY-BylCU67e.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-C6357hTv.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-DGOT8RcT.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-B5uTZjhL.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-DhzVdFBd.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/{ColorSet-DGLMpbL3.js → ColorSet-cyPmWGwh.js} +1 -1
  9. package/dist/{ColumnSeries-CqJ-563p.js → ColumnSeries-CtRTsn-E.js} +28 -28
  10. package/dist/{DateAxis-lJZjbAS-.js → DateAxis-DEXKps1S.js} +4 -4
  11. package/dist/{Entity-4Lr2piVN.js → Entity-BJCuhdq_.js} +14 -14
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-DPEcTr0v.js → Hierarchy-CEOK8Gzh.js} +4 -4
  14. package/dist/{Legend-CTb6rZz_.js → Legend-CFvQiIfn.js} +4 -4
  15. package/dist/{LineSeries-Dg1aytHA.js → LineSeries-D_IL2qGF.js} +4 -4
  16. package/dist/{LinearGradient-D1hzMjaW.js → LinearGradient-CxQyCSEB.js} +2 -2
  17. package/dist/{PieSeries-C9YUWMnA.js → PieSeries-CMH0Z7pz.js} +8 -8
  18. package/dist/{RoundedRectangle-B23Oh_r6.js → RoundedRectangle-BKLX1LKM.js} +2 -2
  19. package/dist/{Scrollbar-CSoXoZSe.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-CIP7Vmzu.js → Slice-BUncQh1B.js} +11 -11
  21. package/dist/{Tick-CRu6rQQy.js → Tick--VhF0xlz.js} +2 -2
  22. package/dist/{Tooltip-RhAldW7s.js → Tooltip-vyZRZWih.js} +1 -1
  23. package/dist/{XYCursor-Z-Ral42q.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-D1laxHnA.js → ZoomableContainer-Ca_pDVYQ.js} +2 -2
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/index2.css +1 -1
  27. package/dist/components/button/styled.js +1 -1
  28. package/dist/components/charts/_common/format.js +149 -41
  29. package/dist/components/charts/_common/tooltip.js +2 -2
  30. package/dist/components/charts/_common/utils.js +16 -11
  31. package/dist/components/charts/candlestick/logic.js +34 -35
  32. package/dist/components/charts/column-line-mix/logic.js +40 -41
  33. package/dist/components/charts/donut-chart/logic.js +4 -4
  34. package/dist/components/charts/drill-down-treemap/logic.js +5 -5
  35. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
  36. package/dist/components/charts/forecast-cone/logic.js +134 -120
  37. package/dist/components/charts/heatmap/logic.js +9 -9
  38. package/dist/components/charts/highlighting-line-data/logic.js +10 -10
  39. package/dist/components/charts/line/logic.js +19 -20
  40. package/dist/components/charts/logaritmic-scale/logic.js +30 -31
  41. package/dist/components/charts/multiple-value-axes/logic.js +18 -19
  42. package/dist/components/charts/nested-pie/logic.js +3 -3
  43. package/dist/components/charts/packed-circles/logic.js +7 -7
  44. package/dist/components/charts/pie-chart/logic.js +4 -4
  45. package/dist/components/charts/stacked-area-radar/logic.js +9 -9
  46. package/dist/components/charts/stacked-column-chart/logic.js +10 -10
  47. package/dist/components/charts/xy-chart/logic.js +28 -29
  48. package/dist/components/collapsible-card/index.js +21 -30
  49. package/dist/components/collapsible-card/styled.js +16 -14
  50. package/dist/components/color-picker/index.js +2227 -3357
  51. package/dist/components/color-picker/styled.js +87 -7
  52. package/dist/components/confirm/dialog.js +89 -8
  53. package/dist/components/confirm/index.js +1 -1
  54. package/dist/components/data-map/index.js +1 -1
  55. package/dist/components/data-map/logic.js +20 -20
  56. package/dist/components/data-security-selectors/dissemination-list/index.js +32 -3117
  57. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  58. package/dist/components/date-range-picker/index.js +464 -452
  59. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  60. package/dist/components/duration-select/index.js +10 -10
  61. package/dist/components/duration-select/styled.js +1 -1
  62. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  63. package/dist/components/geometry-picker/edit/index.js +1 -1
  64. package/dist/components/geometry-picker/geometry/index.js +1 -1
  65. package/dist/components/geometry-picker/kml/index.js +11 -11
  66. package/dist/components/geometry-picker/map/logic.js +145 -3656
  67. package/dist/components/geometry-picker/map/style.js +18 -17
  68. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
  69. package/dist/components/heat-map/index.js +1 -1
  70. package/dist/components/heat-map/logic.js +77 -1924
  71. package/dist/components/instance-hierarchy-table/styled.js +18 -16
  72. package/dist/components/map/helpers/mapbox.js +17 -15
  73. package/dist/components/map/helpers/ol.js +386 -27
  74. package/dist/components/map/index.js +11 -10
  75. package/dist/components/map/logic.js +22 -22
  76. package/dist/components/map/styled.js +31 -27
  77. package/dist/components/metric-card/MetricChart.js +9 -9
  78. package/dist/components/metric-card/logic.js +46 -49
  79. package/dist/components/phone-input/index.js +10 -9
  80. package/dist/components/property-mapping/index.js +1 -1
  81. package/dist/components/prr-map/index.js +1 -1
  82. package/dist/components/prr-map/logic.js +27 -26
  83. package/dist/components/range-selector/styled.js +65 -4228
  84. package/dist/components/raster-grid-map/index.js +1 -1
  85. package/dist/components/raster-grid-map/logic.js +60 -57
  86. package/dist/components/simple-pivot-table/index.js +17 -17
  87. package/dist/components/simple-pivot-table/logic.js +67 -76
  88. package/dist/components/sortable-list/index.js +1091 -1264
  89. package/dist/components/template-form/components/property-list/index.js +36 -33
  90. package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
  91. package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
  92. package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
  93. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
  94. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
  95. package/dist/components/tree-select/index.js +16 -16
  96. package/dist/index.esm-UfGMjYOL.js +197 -0
  97. package/dist/main.d.ts +67 -8
  98. package/dist/main.js +176 -175
  99. package/package.json +1 -1
  100. package/dist/AccordionSummary-CJppWeqF.js +0 -781
  101. package/dist/Add-CqcD1PWb.js +0 -403
  102. package/dist/Box-DqUMmZjL.js +0 -31
  103. package/dist/Button-C5yquWAB.js +0 -357
  104. package/dist/ButtonBase-BEF7oTOe.js +0 -887
  105. package/dist/DataProcessor-WXzhvIg6.js +0 -83
  106. package/dist/Delete-BdyYpINH.js +0 -23
  107. package/dist/DialogContent-BvVjD9z3.js +0 -523
  108. package/dist/FormGroup-CpBsIyYR.js +0 -89
  109. package/dist/GaplessDateAxis-DowssQ6y.js +0 -296
  110. package/dist/IconButton-BoGwbvrP.js +0 -184
  111. package/dist/InputLabel-Dd8RrneV.js +0 -341
  112. package/dist/MenuItem-DwqJqzuM.js +0 -233
  113. package/dist/Modal-MUZygjmQ.js +0 -1158
  114. package/dist/Paper-BkQLdsCI.js +0 -582
  115. package/dist/Select-DHUl_uG3.js +0 -3916
  116. package/dist/Source-BSZST_GH.js +0 -4410
  117. package/dist/SwitchBase-DTndTqI8.js +0 -235
  118. package/dist/Text-ChJRuaD8.js +0 -2197
  119. package/dist/TextField-e2oKaUN1.js +0 -669
  120. package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
  121. package/dist/Typography-DgsSLCFC.js +0 -178
  122. package/dist/Vector-BmuhQO4p.js +0 -3606
  123. package/dist/Vector-DfTqQEln.js +0 -1735
  124. package/dist/WKT-2wsDT-nq.js +0 -2310
  125. package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
  126. package/dist/assets/index3.css +0 -1
  127. package/dist/assets/index4.css +0 -1
  128. package/dist/clsx-OuTLNxxd.js +0 -16
  129. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  130. package/dist/createSvgIcon-Ch_cT8az.js +0 -185
  131. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  132. package/dist/debounce-46wSf_lW.js +0 -15
  133. package/dist/dialog-BYRnCztH.js +0 -154
  134. package/dist/formControlState-vgaj2ksH.js +0 -10
  135. package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
  136. package/dist/index-DH6qsPBn.js +0 -153
  137. package/dist/index-e9xTIYWt.js +0 -1934
  138. package/dist/index.esm-BLLrbTzY.js +0 -318
  139. package/dist/math-Bvt2Ubuz.js +0 -704
  140. package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
  141. package/dist/ol-yOE-NV0X.js +0 -7465
  142. package/dist/ownerWindow-wg6foiOE.js +0 -10
  143. package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
  144. package/dist/styled-SoqbyrkW.js +0 -350
  145. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  146. package/dist/useControlled-BYdyS7Pn.js +0 -31
  147. package/dist/useFormControl-CatNKXAi.js +0 -10
  148. package/dist/useId-BW-oWmul.js +0 -19
  149. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  150. package/dist/useSlot-B_Q4vnX5.js +0 -42
@@ -1,28 +1,27 @@
1
- import { jsxs as ga, jsx as _t } from "react/jsx-runtime";
2
- import f, { useMemo as sn, forwardRef as ba, useState as Pe, useCallback as Ae, useImperativeHandle as pa, Component as wa, useLayoutEffect as Da, useEffect as yt, useRef as Ke } from "react";
3
- import { findDOMNode as Oa, createPortal as xa } from "react-dom";
1
+ import { jsxs as ba, jsx as _t } from "react/jsx-runtime";
2
+ import f, { useMemo as sn, forwardRef as pa, useState as Pe, useCallback as Ae, useImperativeHandle as wa, Component as Da, useLayoutEffect as Oa, useEffect as yt, useRef as Ke } from "react";
3
+ import { findDOMNode as xa, createPortal as Ea } from "react-dom";
4
4
  import { P as l } from "../../index-C__OZmYy.js";
5
- import { c as We } from "../../clsx-OuTLNxxd.js";
6
5
  import { c as At, a as Er } from "../../_commonjsHelpers-BVfed4GL.js";
7
- import { DateRangePickerRoot as Ea, DateRangePickerLabel as Sa } from "./styled.js";
8
- import { c as Ca } from "../../createReactComponent-C7L-DMHj.js";
9
- import { I as _a } from "../../IconX-C2wmVYSK.js";
10
- import '../../assets/index4.css';/**
6
+ import { DateRangePickerRoot as Sa, DateRangePickerLabel as Ca } from "./styled.js";
7
+ import { c as _a } from "../../createReactComponent-C7L-DMHj.js";
8
+ import { I as Aa } from "../../IconX-C2wmVYSK.js";
9
+ import '../../assets/index2.css';/**
11
10
  * @license @tabler/icons-react v3.44.0 - MIT
12
11
  *
13
12
  * This source code is licensed under the MIT license.
14
13
  * See the LICENSE file in the root directory of this source tree.
15
14
  */
16
- const Aa = [["path", { d: "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12", key: "svg-0" }], ["path", { d: "M16 3v4", key: "svg-1" }], ["path", { d: "M8 3v4", key: "svg-2" }], ["path", { d: "M4 11h16", key: "svg-3" }], ["path", { d: "M11 15h1", key: "svg-4" }], ["path", { d: "M12 15v3", key: "svg-5" }]], Pa = Ca("outline", "calendar", "Calendar", Aa);
15
+ const Pa = [["path", { d: "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12", key: "svg-0" }], ["path", { d: "M16 3v4", key: "svg-1" }], ["path", { d: "M8 3v4", key: "svg-2" }], ["path", { d: "M4 11h16", key: "svg-3" }], ["path", { d: "M11 15h1", key: "svg-4" }], ["path", { d: "M12 15v3", key: "svg-5" }]], Na = _a("outline", "calendar", "Calendar", Pa);
17
16
  var X = function(e, t, r) {
18
17
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
19
18
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
20
19
  return e.concat(o || Array.prototype.slice.call(t));
21
- }, Na = ["onCopy", "onCut", "onPaste"], ka = [
20
+ }, ka = ["onCopy", "onCut", "onPaste"], La = [
22
21
  "onCompositionEnd",
23
22
  "onCompositionStart",
24
23
  "onCompositionUpdate"
25
- ], La = ["onFocus", "onBlur"], Ta = ["onInput", "onInvalid", "onReset", "onSubmit"], Ia = ["onLoad", "onError"], Ma = ["onKeyDown", "onKeyPress", "onKeyUp"], ja = [
24
+ ], Ta = ["onFocus", "onBlur"], Ia = ["onInput", "onInvalid", "onReset", "onSubmit"], Ma = ["onLoad", "onError"], ja = ["onKeyDown", "onKeyPress", "onKeyUp"], Fa = [
26
25
  "onAbort",
27
26
  "onCanPlay",
28
27
  "onCanPlayThrough",
@@ -46,7 +45,7 @@ var X = function(e, t, r) {
46
45
  "onTimeUpdate",
47
46
  "onVolumeChange",
48
47
  "onWaiting"
49
- ], Fa = [
48
+ ], Wa = [
50
49
  "onClick",
51
50
  "onContextMenu",
52
51
  "onDoubleClick",
@@ -57,7 +56,7 @@ var X = function(e, t, r) {
57
56
  "onMouseOut",
58
57
  "onMouseOver",
59
58
  "onMouseUp"
60
- ], Wa = [
59
+ ], Va = [
61
60
  "onDrag",
62
61
  "onDragEnd",
63
62
  "onDragEnter",
@@ -66,7 +65,7 @@ var X = function(e, t, r) {
66
65
  "onDragOver",
67
66
  "onDragStart",
68
67
  "onDrop"
69
- ], Va = ["onSelect"], Ra = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"], $a = [
68
+ ], Ra = ["onSelect"], $a = ["onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"], Ya = [
70
69
  "onPointerDown",
71
70
  "onPointerMove",
72
71
  "onPointerUp",
@@ -77,39 +76,52 @@ var X = function(e, t, r) {
77
76
  "onPointerLeave",
78
77
  "onPointerOver",
79
78
  "onPointerOut"
80
- ], Ya = ["onScroll"], Ba = ["onWheel"], qa = [
79
+ ], Ba = ["onScroll"], qa = ["onWheel"], Ua = [
81
80
  "onAnimationStart",
82
81
  "onAnimationEnd",
83
82
  "onAnimationIteration"
84
- ], Ua = ["onTransitionEnd"], Ha = ["onToggle"], Ga = ["onChange"], Ka = X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X([], Na, !0), ka, !0), La, !0), Ta, !0), Ia, !0), Ma, !0), ja, !0), Fa, !0), Wa, !0), Va, !0), Ra, !0), $a, !0), Ya, !0), Ba, !0), qa, !0), Ua, !0), Ga, !0), Ha, !0);
85
- function Za(e, t) {
83
+ ], Ha = ["onTransitionEnd"], Ga = ["onToggle"], Ka = ["onChange"], Za = X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X([], ka, !0), La, !0), Ta, !0), Ia, !0), Ma, !0), ja, !0), Fa, !0), Wa, !0), Va, !0), Ra, !0), $a, !0), Ya, !0), Ba, !0), qa, !0), Ua, !0), Ha, !0), Ka, !0), Ga, !0);
84
+ function za(e, t) {
86
85
  var r = {};
87
- return Ka.forEach(function(n) {
86
+ return Za.forEach(function(n) {
88
87
  var a = e[n];
89
88
  a && (r[n] = a);
90
89
  }), r;
91
90
  }
92
- const za = (e, t, r, n) => {
91
+ function Sr(e) {
92
+ var t, r, n = "";
93
+ if (typeof e == "string" || typeof e == "number") n += e;
94
+ else if (typeof e == "object") if (Array.isArray(e)) {
95
+ var a = e.length;
96
+ for (t = 0; t < a; t++) e[t] && (r = Sr(e[t])) && (n && (n += " "), n += r);
97
+ } else for (r in e) e[r] && (n && (n += " "), n += r);
98
+ return n;
99
+ }
100
+ function We() {
101
+ for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Sr(e)) && (n && (n += " "), n += t);
102
+ return n;
103
+ }
104
+ const Xa = (e, t, r, n) => {
93
105
  if (r === "length" || r === "prototype" || r === "arguments" || r === "caller")
94
106
  return;
95
107
  const a = Object.getOwnPropertyDescriptor(e, r), o = Object.getOwnPropertyDescriptor(t, r);
96
- !Xa(a, o) && n || Object.defineProperty(e, r, o);
97
- }, Xa = function(e, t) {
108
+ !Ja(a, o) && n || Object.defineProperty(e, r, o);
109
+ }, Ja = function(e, t) {
98
110
  return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
99
- }, Ja = (e, t) => {
111
+ }, Qa = (e, t) => {
100
112
  const r = Object.getPrototypeOf(t);
101
113
  r !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, r);
102
- }, Qa = (e, t) => `/* Wrapped ${e}*/
103
- ${t}`, eo = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), to = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), no = (e, t, r) => {
104
- const n = r === "" ? "" : `with ${r.trim()}() `, a = Qa.bind(null, n, t.toString());
105
- Object.defineProperty(a, "name", to), Object.defineProperty(e, "toString", { ...eo, value: a });
106
- }, ro = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
114
+ }, eo = (e, t) => `/* Wrapped ${e}*/
115
+ ${t}`, to = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), no = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), ro = (e, t, r) => {
116
+ const n = r === "" ? "" : `with ${r.trim()}() `, a = eo.bind(null, n, t.toString());
117
+ Object.defineProperty(a, "name", no), Object.defineProperty(e, "toString", { ...to, value: a });
118
+ }, ao = (e, t, { ignoreNonConfigurable: r = !1 } = {}) => {
107
119
  const { name: n } = e;
108
120
  for (const a of Reflect.ownKeys(t))
109
- za(e, t, a, r);
110
- return Ja(e, t), no(e, t, n), e;
121
+ Xa(e, t, a, r);
122
+ return Qa(e, t), ro(e, t, n), e;
111
123
  };
112
- var ao = ro, fn = { exports: {} }, oo = () => {
124
+ var oo = ao, fn = { exports: {} }, io = () => {
113
125
  const e = {};
114
126
  return e.promise = new Promise((t, r) => {
115
127
  e.resolve = t, e.reject = r;
@@ -117,23 +129,23 @@ var ao = ro, fn = { exports: {} }, oo = () => {
117
129
  };
118
130
  (function(e, t) {
119
131
  var r = At && At.__awaiter || function(i, u, c, s) {
120
- return new (c || (c = Promise))(function(d, v) {
132
+ return new (c || (c = Promise))(function(v, d) {
121
133
  function m(g) {
122
134
  try {
123
135
  b(s.next(g));
124
136
  } catch (w) {
125
- v(w);
137
+ d(w);
126
138
  }
127
139
  }
128
140
  function y(g) {
129
141
  try {
130
142
  b(s.throw(g));
131
143
  } catch (w) {
132
- v(w);
144
+ d(w);
133
145
  }
134
146
  }
135
147
  function b(g) {
136
- g.done ? d(g.value) : new c(function(w) {
148
+ g.done ? v(g.value) : new c(function(w) {
137
149
  w(g.value);
138
150
  }).then(m, y);
139
151
  }
@@ -143,22 +155,22 @@ var ao = ro, fn = { exports: {} }, oo = () => {
143
155
  return i && i.__esModule ? i : { default: i };
144
156
  };
145
157
  Object.defineProperty(t, "__esModule", { value: !0 });
146
- const a = n(oo);
158
+ const a = n(io);
147
159
  function o(i, u = "maxAge") {
148
- let c, s, d;
149
- const v = () => r(this, void 0, void 0, function* () {
160
+ let c, s, v;
161
+ const d = () => r(this, void 0, void 0, function* () {
150
162
  if (c !== void 0)
151
163
  return;
152
164
  const b = (g) => r(this, void 0, void 0, function* () {
153
- d = a.default();
165
+ v = a.default();
154
166
  const w = g[1][u] - Date.now();
155
167
  if (w <= 0) {
156
- i.delete(g[0]), d.resolve();
168
+ i.delete(g[0]), v.resolve();
157
169
  return;
158
170
  }
159
171
  return c = g[0], s = setTimeout(() => {
160
- i.delete(g[0]), d && d.resolve();
161
- }, w), typeof s.unref == "function" && s.unref(), d.promise;
172
+ i.delete(g[0]), v && v.resolve();
173
+ }, w), typeof s.unref == "function" && s.unref(), v.promise;
162
174
  });
163
175
  try {
164
176
  for (const g of i)
@@ -167,19 +179,19 @@ var ao = ro, fn = { exports: {} }, oo = () => {
167
179
  }
168
180
  c = void 0;
169
181
  }), m = () => {
170
- c = void 0, s !== void 0 && (clearTimeout(s), s = void 0), d !== void 0 && (d.reject(void 0), d = void 0);
182
+ c = void 0, s !== void 0 && (clearTimeout(s), s = void 0), v !== void 0 && (v.reject(void 0), v = void 0);
171
183
  }, y = i.set.bind(i);
172
184
  return i.set = (b, g) => {
173
185
  i.has(b) && i.delete(b);
174
186
  const w = y(b, g);
175
- return c && c === b && m(), v(), w;
176
- }, v(), i;
187
+ return c && c === b && m(), d(), w;
188
+ }, d(), i;
177
189
  }
178
190
  t.default = o, e.exports = o, e.exports.default = o;
179
191
  })(fn, fn.exports);
180
- var io = fn.exports;
181
- const lo = ao, uo = io, nn = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Tt = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
182
- typeof n == "number" && uo(r);
192
+ var lo = fn.exports;
193
+ const uo = oo, co = lo, nn = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), Tt = (e, { cacheKey: t, cache: r = /* @__PURE__ */ new Map(), maxAge: n } = {}) => {
194
+ typeof n == "number" && co(r);
183
195
  const a = function(...o) {
184
196
  const i = t ? t(o) : o[0], u = r.get(i);
185
197
  if (u)
@@ -190,9 +202,9 @@ const lo = ao, uo = io, nn = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */
190
202
  maxAge: n ? Date.now() + n : Number.POSITIVE_INFINITY
191
203
  }), c;
192
204
  };
193
- return lo(a, e, {
205
+ return uo(a, e, {
194
206
  ignoreNonConfigurable: !0
195
- }), Sr.set(a, r), a;
207
+ }), Cr.set(a, r), a;
196
208
  };
197
209
  Tt.decorator = (e = {}) => (t, r, n) => {
198
210
  const a = t[r];
@@ -207,62 +219,62 @@ Tt.decorator = (e = {}) => (t, r, n) => {
207
219
  };
208
220
  };
209
221
  Tt.clear = (e) => {
210
- const t = Sr.get(e);
222
+ const t = Cr.get(e);
211
223
  if (!t)
212
224
  throw new TypeError("Can't clear a function that was not memoized!");
213
225
  if (typeof t.clear != "function")
214
226
  throw new TypeError("The cache Map can't be cleared!");
215
227
  t.clear();
216
228
  };
217
- var co = Tt;
218
- const Cr = /* @__PURE__ */ Er(co);
219
- function so(e) {
229
+ var so = Tt;
230
+ const _r = /* @__PURE__ */ Er(so);
231
+ function fo(e) {
220
232
  return typeof e == "string";
221
233
  }
222
- function fo(e, t, r) {
234
+ function vo(e, t, r) {
223
235
  return r.indexOf(e) === t;
224
236
  }
225
- function vo(e) {
237
+ function mo(e) {
226
238
  return e.toLowerCase() === e;
227
239
  }
228
240
  function Zn(e) {
229
241
  return e.indexOf(",") === -1 ? e : e.split(",");
230
242
  }
231
- function dn(e) {
243
+ function vn(e) {
232
244
  if (!e)
233
245
  return e;
234
246
  if (e === "C" || e === "posix" || e === "POSIX")
235
247
  return "en-US";
236
248
  if (e.indexOf(".") !== -1) {
237
249
  var t = e.split(".")[0], r = t === void 0 ? "" : t;
238
- return dn(r);
250
+ return vn(r);
239
251
  }
240
252
  if (e.indexOf("@") !== -1) {
241
253
  var n = e.split("@")[0], r = n === void 0 ? "" : n;
242
- return dn(r);
254
+ return vn(r);
243
255
  }
244
- if (e.indexOf("-") === -1 || !vo(e))
256
+ if (e.indexOf("-") === -1 || !mo(e))
245
257
  return e;
246
258
  var a = e.split("-"), o = a[0], i = a[1], u = i === void 0 ? "" : i;
247
259
  return "".concat(o, "-").concat(u.toUpperCase());
248
260
  }
249
- function mo(e) {
261
+ function yo(e) {
250
262
  var t = e === void 0 ? {} : e, r = t.useFallbackLocale, n = r === void 0 ? !0 : r, a = t.fallbackLocale, o = a === void 0 ? "en-US" : a, i = [];
251
263
  if (typeof navigator < "u") {
252
- for (var u = navigator.languages || [], c = [], s = 0, d = u; s < d.length; s++) {
253
- var v = d[s];
254
- c = c.concat(Zn(v));
264
+ for (var u = navigator.languages || [], c = [], s = 0, v = u; s < v.length; s++) {
265
+ var d = v[s];
266
+ c = c.concat(Zn(d));
255
267
  }
256
268
  var m = navigator.language, y = m && Zn(m);
257
269
  i = i.concat(c, y);
258
270
  }
259
- return n && i.push(o), i.filter(so).map(dn).filter(fo);
271
+ return n && i.push(o), i.filter(fo).map(vn).filter(vo);
260
272
  }
261
- var yo = Cr(mo, { cacheKey: JSON.stringify });
262
- function ho(e) {
263
- return yo(e)[0] || null;
273
+ var ho = _r(yo, { cacheKey: JSON.stringify });
274
+ function go(e) {
275
+ return ho(e)[0] || null;
264
276
  }
265
- var An = Cr(ho, { cacheKey: JSON.stringify });
277
+ var An = _r(go, { cacheKey: JSON.stringify });
266
278
  function Ie(e, t, r) {
267
279
  return function(a, o) {
268
280
  o === void 0 && (o = r);
@@ -309,17 +321,17 @@ function it(e) {
309
321
  var t = C(e), r = t + (-t + 1) % 100, n = /* @__PURE__ */ new Date();
310
322
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
311
323
  }
312
- var go = Ie(C, it, -100), _r = Ie(C, it, 100), Pn = Dt(_r), bo = Ie(C, Pn, -100), Ar = Ot(it, Pn);
324
+ var bo = Ie(C, it, -100), Ar = Ie(C, it, 100), Pn = Dt(Ar), po = Ie(C, Pn, -100), Pr = Ot(it, Pn);
313
325
  function Me(e) {
314
326
  var t = C(e), r = t + (-t + 1) % 10, n = /* @__PURE__ */ new Date();
315
327
  return n.setFullYear(r, 0, 1), n.setHours(0, 0, 0, 0), n;
316
328
  }
317
- var Pr = Ie(C, Me, -10), Nn = Ie(C, Me, 10), xt = Dt(Nn), Nr = Ie(C, xt, -10), kr = Ot(Me, xt);
329
+ var Nr = Ie(C, Me, -10), Nn = Ie(C, Me, 10), xt = Dt(Nn), kr = Ie(C, xt, -10), Lr = Ot(Me, xt);
318
330
  function ze(e) {
319
331
  var t = C(e), r = /* @__PURE__ */ new Date();
320
332
  return r.setFullYear(t, 0, 1), r.setHours(0, 0, 0, 0), r;
321
333
  }
322
- var Lr = Ie(C, ze, -1), kn = Ie(C, ze, 1), Et = Dt(kn), Tr = Ie(C, Et, -1), po = Ot(ze, Et);
334
+ var Tr = Ie(C, ze, -1), kn = Ie(C, ze, 1), Et = Dt(kn), Ir = Ie(C, Et, -1), wo = Ot(ze, Et);
323
335
  function Ln(e, t) {
324
336
  return function(n, a) {
325
337
  a === void 0 && (a = t);
@@ -331,8 +343,8 @@ function $e(e) {
331
343
  var t = C(e), r = Re(e), n = /* @__PURE__ */ new Date();
332
344
  return n.setFullYear(t, r, 1), n.setHours(0, 0, 0, 0), n;
333
345
  }
334
- var Ir = Ln($e, -1), Tn = Ln($e, 1), lt = Dt(Tn), Mr = Ln(lt, -1), wo = Ot($e, lt);
335
- function Do(e, t) {
346
+ var Mr = Ln($e, -1), Tn = Ln($e, 1), lt = Dt(Tn), jr = Ln(lt, -1), Do = Ot($e, lt);
347
+ function Oo(e, t) {
336
348
  return function(n, a) {
337
349
  a === void 0 && (a = t);
338
350
  var o = C(n), i = Re(n), u = Ve(n) + a, c = /* @__PURE__ */ new Date();
@@ -343,7 +355,7 @@ function ut(e) {
343
355
  var t = C(e), r = Re(e), n = Ve(e), a = /* @__PURE__ */ new Date();
344
356
  return a.setFullYear(t, r, n), a.setHours(0, 0, 0, 0), a;
345
357
  }
346
- var Oo = Do(ut, 1), $t = Dt(Oo), xo = Ot(ut, $t);
358
+ var xo = Oo(ut, 1), $t = Dt(xo), Eo = Ot(ut, $t);
347
359
  function In(e) {
348
360
  return Ve(lt(e));
349
361
  }
@@ -352,15 +364,15 @@ function mt(e, t) {
352
364
  var r = "".concat(e);
353
365
  return r.length >= t ? e : "0000".concat(r).slice(-t);
354
366
  }
355
- function Eo(e) {
367
+ function So(e) {
356
368
  var t = mt(C(e), 4), r = mt(Te(e));
357
369
  return "".concat(t, "-").concat(r);
358
370
  }
359
- function So(e) {
371
+ function Co(e) {
360
372
  var t = mt(C(e), 4), r = mt(Te(e)), n = mt(Ve(e));
361
373
  return "".concat(t, "-").concat(r, "-").concat(n);
362
374
  }
363
- var dt, T = {
375
+ var vt, T = {
364
376
  GREGORY: "gregory",
365
377
  HEBREW: "hebrew",
366
378
  ISLAMIC: "islamic",
@@ -370,7 +382,7 @@ var dt, T = {
370
382
  HEBREW: "Hebrew",
371
383
  ISO_8601: "ISO 8601",
372
384
  US: "US"
373
- }, Co = (dt = {}, dt[T.GREGORY] = [
385
+ }, _o = (vt = {}, vt[T.GREGORY] = [
374
386
  "en-CA",
375
387
  "en-US",
376
388
  "es-AR",
@@ -390,7 +402,7 @@ var dt, T = {
390
402
  "es-SV",
391
403
  "es-VE",
392
404
  "pt-BR"
393
- ], dt[T.HEBREW] = ["he", "he-IL"], dt[T.ISLAMIC] = [
405
+ ], vt[T.HEBREW] = ["he", "he-IL"], vt[T.ISLAMIC] = [
394
406
  // ar-LB, ar-MA intentionally missing
395
407
  "ar",
396
408
  "ar-AE",
@@ -411,8 +423,8 @@ var dt, T = {
411
423
  "dv-MV",
412
424
  "ps",
413
425
  "ps-AR"
414
- ], dt), Mn = [0, 1, 2, 3, 4, 5, 6], rn = /* @__PURE__ */ new Map();
415
- function _o(e) {
426
+ ], vt), Mn = [0, 1, 2, 3, 4, 5, 6], rn = /* @__PURE__ */ new Map();
427
+ function Ao(e) {
416
428
  return function(r, n) {
417
429
  var a = r || An();
418
430
  rn.has(a) || rn.set(a, /* @__PURE__ */ new Map());
@@ -420,23 +432,23 @@ function _o(e) {
420
432
  return o.has(e) || o.set(e, new Intl.DateTimeFormat(a || void 0, e).format), o.get(e)(n);
421
433
  };
422
434
  }
423
- function Ao(e) {
435
+ function Po(e) {
424
436
  var t = new Date(e);
425
437
  return new Date(t.setHours(12));
426
438
  }
427
439
  function Xe(e) {
428
440
  return function(t, r) {
429
- return _o(e)(t, Ao(r));
441
+ return Ao(e)(t, Po(r));
430
442
  };
431
443
  }
432
- var Po = { day: "numeric" }, No = {
444
+ var No = { day: "numeric" }, ko = {
433
445
  day: "numeric",
434
446
  month: "long",
435
447
  year: "numeric"
436
- }, ko = { month: "long" }, Lo = {
448
+ }, Lo = { month: "long" }, To = {
437
449
  month: "long",
438
450
  year: "numeric"
439
- }, To = { weekday: "short" }, Io = { weekday: "long" }, Mo = { year: "numeric" }, jo = Xe(Po), Fo = Xe(No), Wo = Xe(ko), jr = Xe(Lo), Vo = Xe(To), Ro = Xe(Io), Yt = Xe(Mo), $o = Mn[0], Yo = Mn[5], zn = Mn[6];
451
+ }, Io = { weekday: "short" }, Mo = { weekday: "long" }, jo = { year: "numeric" }, Fo = Xe(No), Wo = Xe(ko), Vo = Xe(Lo), Fr = Xe(To), Ro = Xe(Io), $o = Xe(Mo), Yt = Xe(jo), Yo = Mn[0], Bo = Mn[5], zn = Mn[6];
440
452
  function ht(e, t) {
441
453
  t === void 0 && (t = T.ISO_8601);
442
454
  var r = e.getDay();
@@ -452,24 +464,24 @@ function ht(e, t) {
452
464
  throw new Error("Unsupported calendar type.");
453
465
  }
454
466
  }
455
- function Bo(e) {
467
+ function qo(e) {
456
468
  var t = it(e);
457
469
  return C(t);
458
470
  }
459
- function qo(e) {
471
+ function Uo(e) {
460
472
  var t = Me(e);
461
473
  return C(t);
462
474
  }
463
- function vn(e, t) {
475
+ function dn(e, t) {
464
476
  t === void 0 && (t = T.ISO_8601);
465
477
  var r = C(e), n = Re(e), a = e.getDate() - ht(e, t);
466
478
  return new Date(r, n, a);
467
479
  }
468
- function Uo(e, t) {
480
+ function Ho(e, t) {
469
481
  t === void 0 && (t = T.ISO_8601);
470
- var r = t === T.GREGORY ? T.GREGORY : T.ISO_8601, n = vn(e, t), a = C(e) + 1, o, i;
482
+ var r = t === T.GREGORY ? T.GREGORY : T.ISO_8601, n = dn(e, t), a = C(e) + 1, o, i;
471
483
  do
472
- o = new Date(a, 0, r === T.ISO_8601 ? 4 : 1), i = vn(o, t), a -= 1;
484
+ o = new Date(a, 0, r === T.ISO_8601 ? 4 : 1), i = dn(o, t), a -= 1;
473
485
  while (e < i);
474
486
  return Math.round((n.getTime() - i.getTime()) / (864e5 * 7)) + 1;
475
487
  }
@@ -489,24 +501,24 @@ function Ze(e, t) {
489
501
  throw new Error("Invalid rangeType: ".concat(e));
490
502
  }
491
503
  }
492
- function Ho(e, t) {
504
+ function Go(e, t) {
493
505
  switch (e) {
494
506
  case "century":
495
- return go(t);
507
+ return bo(t);
496
508
  case "decade":
497
- return Pr(t);
509
+ return Nr(t);
498
510
  case "year":
499
- return Lr(t);
511
+ return Tr(t);
500
512
  case "month":
501
- return Ir(t);
513
+ return Mr(t);
502
514
  default:
503
515
  throw new Error("Invalid rangeType: ".concat(e));
504
516
  }
505
517
  }
506
- function Fr(e, t) {
518
+ function Wr(e, t) {
507
519
  switch (e) {
508
520
  case "century":
509
- return _r(t);
521
+ return Ar(t);
510
522
  case "decade":
511
523
  return Nn(t);
512
524
  case "year":
@@ -517,19 +529,19 @@ function Fr(e, t) {
517
529
  throw new Error("Invalid rangeType: ".concat(e));
518
530
  }
519
531
  }
520
- function Go(e, t) {
532
+ function Ko(e, t) {
521
533
  switch (e) {
522
534
  case "decade":
523
- return Pr(t, -100);
535
+ return Nr(t, -100);
524
536
  case "year":
525
- return Lr(t, -10);
537
+ return Tr(t, -10);
526
538
  case "month":
527
- return Ir(t, -12);
539
+ return Mr(t, -12);
528
540
  default:
529
541
  throw new Error("Invalid rangeType: ".concat(e));
530
542
  }
531
543
  }
532
- function Ko(e, t) {
544
+ function Zo(e, t) {
533
545
  switch (e) {
534
546
  case "decade":
535
547
  return Nn(t, 100);
@@ -541,7 +553,7 @@ function Ko(e, t) {
541
553
  throw new Error("Invalid rangeType: ".concat(e));
542
554
  }
543
555
  }
544
- function Wr(e, t) {
556
+ function Vr(e, t) {
545
557
  switch (e) {
546
558
  case "century":
547
559
  return Pn(t);
@@ -557,28 +569,28 @@ function Wr(e, t) {
557
569
  throw new Error("Invalid rangeType: ".concat(e));
558
570
  }
559
571
  }
560
- function Zo(e, t) {
572
+ function zo(e, t) {
561
573
  switch (e) {
562
574
  case "century":
563
- return bo(t);
575
+ return po(t);
564
576
  case "decade":
565
- return Nr(t);
577
+ return kr(t);
566
578
  case "year":
567
- return Tr(t);
579
+ return Ir(t);
568
580
  case "month":
569
- return Mr(t);
581
+ return jr(t);
570
582
  default:
571
583
  throw new Error("Invalid rangeType: ".concat(e));
572
584
  }
573
585
  }
574
- function zo(e, t) {
586
+ function Xo(e, t) {
575
587
  switch (e) {
576
588
  case "decade":
577
- return Nr(t, -100);
589
+ return kr(t, -100);
578
590
  case "year":
579
- return Tr(t, -10);
591
+ return Ir(t, -10);
580
592
  case "month":
581
- return Mr(t, -12);
593
+ return jr(t, -12);
582
594
  default:
583
595
  throw new Error("Invalid rangeType: ".concat(e));
584
596
  }
@@ -586,66 +598,66 @@ function zo(e, t) {
586
598
  function Xn(e, t) {
587
599
  switch (e) {
588
600
  case "century":
589
- return Ar(t);
601
+ return Pr(t);
590
602
  case "decade":
591
- return kr(t);
603
+ return Lr(t);
592
604
  case "year":
593
- return po(t);
594
- case "month":
595
605
  return wo(t);
606
+ case "month":
607
+ return Do(t);
596
608
  case "day":
597
- return xo(t);
609
+ return Eo(t);
598
610
  default:
599
611
  throw new Error("Invalid rangeType: ".concat(e));
600
612
  }
601
613
  }
602
- function Xo(e, t, r) {
614
+ function Jo(e, t, r) {
603
615
  var n = [t, r].sort(function(a, o) {
604
616
  return a.getTime() - o.getTime();
605
617
  });
606
- return [Ze(e, n[0]), Wr(e, n[1])];
618
+ return [Ze(e, n[0]), Vr(e, n[1])];
607
619
  }
608
- function Vr(e, t, r) {
620
+ function Rr(e, t, r) {
609
621
  return t === void 0 && (t = Yt), r.map(function(n) {
610
622
  return t(e, n);
611
623
  }).join(" – ");
612
624
  }
613
- function Jo(e, t, r) {
614
- return Vr(e, t, Ar(r));
625
+ function Qo(e, t, r) {
626
+ return Rr(e, t, Pr(r));
615
627
  }
616
- function Rr(e, t, r) {
617
- return Vr(e, t, kr(r));
628
+ function $r(e, t, r) {
629
+ return Rr(e, t, Lr(r));
618
630
  }
619
- function Qo(e) {
631
+ function ei(e) {
620
632
  return e.getDay() === (/* @__PURE__ */ new Date()).getDay();
621
633
  }
622
- function $r(e, t) {
634
+ function Yr(e, t) {
623
635
  t === void 0 && (t = T.ISO_8601);
624
636
  var r = e.getDay();
625
637
  switch (t) {
626
638
  case T.ISLAMIC:
627
639
  case T.HEBREW:
628
- return r === Yo || r === zn;
640
+ return r === Bo || r === zn;
629
641
  case T.ISO_8601:
630
642
  case T.GREGORY:
631
- return r === zn || r === $o;
643
+ return r === zn || r === Yo;
632
644
  default:
633
645
  throw new Error("Unsupported calendar type.");
634
646
  }
635
647
  }
636
648
  var _e = "react-calendar__navigation";
637
- function ei(e) {
638
- var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? jr : n, o = e.formatYear, i = o === void 0 ? Yt : o, u = e.locale, c = e.maxDate, s = e.minDate, d = e.navigationAriaLabel, v = d === void 0 ? "" : d, m = e.navigationAriaLive, y = e.navigationLabel, b = e.next2AriaLabel, g = b === void 0 ? "" : b, w = e.next2Label, D = w === void 0 ? "»" : w, x = e.nextAriaLabel, A = x === void 0 ? "" : x, P = e.nextLabel, $ = P === void 0 ? "›" : P, Y = e.prev2AriaLabel, H = Y === void 0 ? "" : Y, k = e.prev2Label, J = k === void 0 ? "«" : k, Q = e.prevAriaLabel, se = Q === void 0 ? "" : Q, ee = e.prevLabel, oe = ee === void 0 ? "‹" : ee, ie = e.setActiveStartDate, fe = e.showDoubleView, M = e.view, de = e.views, be = de.indexOf(M) > 0, te = M !== "century", N = Ho(M, t), G = te ? Go(M, t) : void 0, U = Fr(M, t), ve = te ? Ko(M, t) : void 0, he = function() {
649
+ function ti(e) {
650
+ var t = e.activeStartDate, r = e.drillUp, n = e.formatMonthYear, a = n === void 0 ? Fr : n, o = e.formatYear, i = o === void 0 ? Yt : o, u = e.locale, c = e.maxDate, s = e.minDate, v = e.navigationAriaLabel, d = v === void 0 ? "" : v, m = e.navigationAriaLive, y = e.navigationLabel, b = e.next2AriaLabel, g = b === void 0 ? "" : b, w = e.next2Label, D = w === void 0 ? "»" : w, x = e.nextAriaLabel, A = x === void 0 ? "" : x, P = e.nextLabel, $ = P === void 0 ? "›" : P, Y = e.prev2AriaLabel, H = Y === void 0 ? "" : Y, k = e.prev2Label, J = k === void 0 ? "«" : k, Q = e.prevAriaLabel, se = Q === void 0 ? "" : Q, ee = e.prevLabel, oe = ee === void 0 ? "‹" : ee, ie = e.setActiveStartDate, fe = e.showDoubleView, M = e.view, ve = e.views, be = ve.indexOf(M) > 0, te = M !== "century", N = Go(M, t), G = te ? Ko(M, t) : void 0, U = Wr(M, t), de = te ? Zo(M, t) : void 0, he = function() {
639
651
  if (N.getFullYear() < 0)
640
652
  return !0;
641
- var L = Zo(M, t);
653
+ var L = zo(M, t);
642
654
  return s && s >= L;
643
655
  }(), me = te && function() {
644
656
  if (G.getFullYear() < 0)
645
657
  return !0;
646
- var L = zo(M, t);
658
+ var L = Xo(M, t);
647
659
  return s && s >= L;
648
- }(), xe = c && c < U, Ee = te && c && c < ve;
660
+ }(), xe = c && c < U, Ee = te && c && c < de;
649
661
  function K() {
650
662
  ie(N, "prev");
651
663
  }
@@ -656,15 +668,15 @@ function ei(e) {
656
668
  ie(U, "next");
657
669
  }
658
670
  function Ne() {
659
- ie(ve, "next2");
671
+ ie(de, "next2");
660
672
  }
661
673
  function Se(L) {
662
674
  var ge = function() {
663
675
  switch (M) {
664
676
  case "century":
665
- return Jo(u, i, L);
677
+ return Qo(u, i, L);
666
678
  case "decade":
667
- return Rr(u, i, L);
679
+ return $r(u, i, L);
668
680
  case "year":
669
681
  return i(u, L);
670
682
  case "month":
@@ -684,7 +696,7 @@ function ei(e) {
684
696
  var L = "".concat(_e, "__label");
685
697
  return f.createElement(
686
698
  "button",
687
- { "aria-label": v, "aria-live": m, className: L, disabled: !be, onClick: r, style: { flexGrow: 1 }, type: "button" },
699
+ { "aria-label": d, "aria-live": m, className: L, disabled: !be, onClick: r, style: { flexGrow: 1 }, type: "button" },
688
700
  f.createElement("span", { className: "".concat(L, "__labelText ").concat(L, "__labelText--from") }, Se(t)),
689
701
  fe ? f.createElement(
690
702
  f.Fragment,
@@ -712,7 +724,7 @@ var nt = function() {
712
724
  }
713
725
  return e;
714
726
  }, nt.apply(this, arguments);
715
- }, ti = function(e, t) {
727
+ }, ni = function(e, t) {
716
728
  var r = {};
717
729
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
718
730
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -724,24 +736,24 @@ function Jn(e) {
724
736
  return "".concat(e, "%");
725
737
  }
726
738
  function jn(e) {
727
- var t = e.children, r = e.className, n = e.count, a = e.direction, o = e.offset, i = e.style, u = e.wrap, c = ti(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
728
- return f.createElement("div", nt({ className: r, style: nt({ display: "flex", flexDirection: a, flexWrap: u ? "wrap" : "nowrap" }, i) }, c), f.Children.map(t, function(s, d) {
729
- var v = o && d === 0 ? Jn(100 * o / n) : null;
739
+ var t = e.children, r = e.className, n = e.count, a = e.direction, o = e.offset, i = e.style, u = e.wrap, c = ni(e, ["children", "className", "count", "direction", "offset", "style", "wrap"]);
740
+ return f.createElement("div", nt({ className: r, style: nt({ display: "flex", flexDirection: a, flexWrap: u ? "wrap" : "nowrap" }, i) }, c), f.Children.map(t, function(s, v) {
741
+ var d = o && v === 0 ? Jn(100 * o / n) : null;
730
742
  return f.cloneElement(s, nt(nt({}, s.props), { style: {
731
743
  flexBasis: Jn(100 / n),
732
744
  flexShrink: 0,
733
745
  flexGrow: 0,
734
746
  overflow: "hidden",
735
- marginLeft: v,
736
- marginInlineStart: v,
747
+ marginLeft: d,
748
+ marginInlineStart: d,
737
749
  marginInlineEnd: 0
738
750
  } }));
739
751
  }));
740
752
  }
741
- var ni = process.env.NODE_ENV !== "production", Yr = function() {
753
+ var ri = process.env.NODE_ENV !== "production", Br = function() {
742
754
  };
743
- if (ni) {
744
- var ri = function(t, r) {
755
+ if (ri) {
756
+ var ai = function(t, r) {
745
757
  var n = arguments.length;
746
758
  r = new Array(n > 1 ? n - 1 : 0);
747
759
  for (var a = 1; a < n; a++)
@@ -755,7 +767,7 @@ if (ni) {
755
767
  } catch {
756
768
  }
757
769
  };
758
- Yr = function(e, t, r) {
770
+ Br = function(e, t, r) {
759
771
  var n = arguments.length;
760
772
  r = new Array(n > 2 ? n - 2 : 0);
761
773
  for (var a = 2; a < n; a++)
@@ -764,26 +776,26 @@ if (ni) {
764
776
  throw new Error(
765
777
  "`warning(condition, format, ...args)` requires a warning message argument"
766
778
  );
767
- e || ri.apply(null, [t].concat(r));
779
+ e || ai.apply(null, [t].concat(r));
768
780
  };
769
781
  }
770
- var ai = Yr;
771
- const oi = /* @__PURE__ */ Er(ai);
782
+ var oi = Br;
783
+ const ii = /* @__PURE__ */ Er(oi);
772
784
  var et;
773
- function ii(e, t, r) {
785
+ function li(e, t, r) {
774
786
  return t && t > e ? t : r && r < e ? r : e;
775
787
  }
776
788
  function gt(e, t) {
777
789
  return t[0] <= e && t[1] >= e;
778
790
  }
779
- function li(e, t) {
791
+ function ui(e, t) {
780
792
  return e[0] <= t[0] && e[1] >= t[1];
781
793
  }
782
- function Br(e, t) {
794
+ function qr(e, t) {
783
795
  return gt(e[0], t) || gt(e[1], t);
784
796
  }
785
797
  function Qn(e, t, r) {
786
- var n = Br(t, e), a = [];
798
+ var n = qr(t, e), a = [];
787
799
  if (n) {
788
800
  a.push(r);
789
801
  var o = gt(e[0], t), i = gt(e[1], t);
@@ -791,10 +803,10 @@ function Qn(e, t, r) {
791
803
  }
792
804
  return a;
793
805
  }
794
- function ui(e) {
806
+ function ci(e) {
795
807
  return Array.isArray(e) ? e[0] !== null && e[1] !== null : e !== null;
796
808
  }
797
- function ci(e) {
809
+ function si(e) {
798
810
  if (!e)
799
811
  throw new Error("args is required");
800
812
  var t = e.value, r = e.date, n = e.hover, a = "react-calendar__tile", o = [a];
@@ -808,7 +820,7 @@ function ci(e) {
808
820
  throw new Error("dateType is required when date is not an array of two dates");
809
821
  return Xn(y, r);
810
822
  }();
811
- if (gt(i, u) && o.push("".concat(a, "--now")), !t || !ui(t))
823
+ if (gt(i, u) && o.push("".concat(a, "--now")), !t || !ci(t))
812
824
  return o;
813
825
  var c = function() {
814
826
  if (Array.isArray(t))
@@ -818,33 +830,33 @@ function ci(e) {
818
830
  throw new Error("valueType is required when value is not an array of two dates");
819
831
  return Xn(y, t);
820
832
  }();
821
- li(c, u) ? o.push("".concat(a, "--active")) : Br(c, u) && o.push("".concat(a, "--hasActive"));
833
+ ui(c, u) ? o.push("".concat(a, "--active")) : qr(c, u) && o.push("".concat(a, "--hasActive"));
822
834
  var s = Qn(c, u, "".concat(a, "--range"));
823
835
  o.push.apply(o, s);
824
- var d = Array.isArray(t) ? t : [t];
825
- if (n && d.length === 1) {
826
- var v = n > c[0] ? [c[0], n] : [n, c[0]], m = Qn(v, u, "".concat(a, "--hover"));
836
+ var v = Array.isArray(t) ? t : [t];
837
+ if (n && v.length === 1) {
838
+ var d = n > c[0] ? [c[0], n] : [n, c[0]], m = Qn(d, u, "".concat(a, "--hover"));
827
839
  o.push.apply(o, m);
828
840
  }
829
841
  return o;
830
842
  }
831
- var si = (et = {}, et[tt.ARABIC] = T.ISLAMIC, et[tt.HEBREW] = T.HEBREW, et[tt.ISO_8601] = T.ISO_8601, et[tt.US] = T.GREGORY, et);
832
- function fi(e) {
843
+ var fi = (et = {}, et[tt.ARABIC] = T.ISLAMIC, et[tt.HEBREW] = T.HEBREW, et[tt.ISO_8601] = T.ISO_8601, et[tt.US] = T.GREGORY, et);
844
+ function vi(e) {
833
845
  return e !== void 0 && e in tt;
834
846
  }
835
847
  var er = !1;
836
848
  function Bt(e) {
837
- if (fi(e)) {
838
- var t = si[e];
839
- return oi(er, 'Specifying calendarType="'.concat(e, '" is deprecated. Use calendarType="').concat(t, '" instead.')), er = !0, t;
849
+ if (vi(e)) {
850
+ var t = fi[e];
851
+ return ii(er, 'Specifying calendarType="'.concat(e, '" is deprecated. Use calendarType="').concat(t, '" instead.')), er = !0, t;
840
852
  }
841
853
  return e;
842
854
  }
843
855
  function qt(e) {
844
- for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, o = e.dateType, i = e.end, u = e.hover, c = e.offset, s = e.renderTile, d = e.start, v = e.step, m = v === void 0 ? 1 : v, y = e.value, b = e.valueType, g = [], w = d; w <= i; w += m) {
856
+ for (var t = e.className, r = e.count, n = r === void 0 ? 3 : r, a = e.dateTransform, o = e.dateType, i = e.end, u = e.hover, c = e.offset, s = e.renderTile, v = e.start, d = e.step, m = d === void 0 ? 1 : d, y = e.value, b = e.valueType, g = [], w = v; w <= i; w += m) {
845
857
  var D = a(w);
846
858
  g.push(s({
847
- classes: ci({
859
+ classes: si({
848
860
  date: D,
849
861
  dateType: o,
850
862
  hover: u,
@@ -857,7 +869,7 @@ function qt(e) {
857
869
  return f.createElement(jn, { className: t, count: n, offset: c, wrap: !0 }, g);
858
870
  }
859
871
  function Ut(e) {
860
- var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, o = e.formatAbbr, i = e.locale, u = e.maxDate, c = e.maxDateTransform, s = e.minDate, d = e.minDateTransform, v = e.onClick, m = e.onMouseOver, y = e.style, b = e.tileClassName, g = e.tileContent, w = e.tileDisabled, D = e.view, x = sn(function() {
872
+ var t = e.activeStartDate, r = e.children, n = e.classes, a = e.date, o = e.formatAbbr, i = e.locale, u = e.maxDate, c = e.maxDateTransform, s = e.minDate, v = e.minDateTransform, d = e.onClick, m = e.onMouseOver, y = e.style, b = e.tileClassName, g = e.tileContent, w = e.tileDisabled, D = e.view, x = sn(function() {
861
873
  var P = { activeStartDate: t, date: a, view: D };
862
874
  return typeof b == "function" ? b(P) : b;
863
875
  }, [t, a, b, D]), A = sn(function() {
@@ -866,8 +878,8 @@ function Ut(e) {
866
878
  }, [t, a, g, D]);
867
879
  return f.createElement(
868
880
  "button",
869
- { className: We(n, x), disabled: s && d(s) > a || u && c(u) < a || w && w({ activeStartDate: t, date: a, view: D }), onClick: v ? function(P) {
870
- return v(a, P);
881
+ { className: We(n, x), disabled: s && v(s) > a || u && c(u) < a || w && w({ activeStartDate: t, date: a, view: D }), onClick: d ? function(P) {
882
+ return d(a, P);
871
883
  } : void 0, onFocus: m ? function() {
872
884
  return m(a);
873
885
  } : void 0, onMouseOver: m ? function() {
@@ -893,9 +905,9 @@ var mn = function() {
893
905
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
894
906
  return r;
895
907
  }, tr = "react-calendar__century-view__decades__decade";
896
- function vi(e) {
908
+ function mi(e) {
897
909
  var t = e.classes, r = t === void 0 ? [] : t, n = e.currentCentury, a = e.formatYear, o = a === void 0 ? Yt : a, i = di(e, ["classes", "currentCentury", "formatYear"]), u = i.date, c = i.locale, s = [];
898
- return r && s.push.apply(s, r), s.push(tr), it(u).getFullYear() !== n && s.push("".concat(tr, "--neighboringCentury")), f.createElement(Ut, mn({}, i, { classes: s, maxDateTransform: xt, minDateTransform: Me, view: "century" }), Rr(c, o, u));
910
+ return r && s.push.apply(s, r), s.push(tr), it(u).getFullYear() !== n && s.push("".concat(tr, "--neighboringCentury")), f.createElement(Ut, mn({}, i, { classes: s, maxDateTransform: xt, minDateTransform: Me, view: "century" }), $r(c, o, u));
899
911
  }
900
912
  var yn = function() {
901
913
  return yn = Object.assign || function(e) {
@@ -913,18 +925,18 @@ var yn = function() {
913
925
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
914
926
  return r;
915
927
  };
916
- function mi(e) {
917
- var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, o = e.valueType, i = nr(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), u = Bo(t), c = u + (n ? 119 : 99);
928
+ function yi(e) {
929
+ var t = e.activeStartDate, r = e.hover, n = e.showNeighboringCentury, a = e.value, o = e.valueType, i = nr(e, ["activeStartDate", "hover", "showNeighboringCentury", "value", "valueType"]), u = qo(t), c = u + (n ? 119 : 99);
918
930
  return f.createElement(qt, { className: "react-calendar__century-view__decades", dateTransform: Me, dateType: "decade", end: c, hover: r, renderTile: function(s) {
919
- var d = s.date, v = nr(s, ["date"]);
920
- return f.createElement(vi, yn({ key: d.getTime() }, i, v, { activeStartDate: t, currentCentury: u, date: d }));
931
+ var v = s.date, d = nr(s, ["date"]);
932
+ return f.createElement(mi, yn({ key: v.getTime() }, i, d, { activeStartDate: t, currentCentury: u, date: v }));
921
933
  }, start: u, step: 10, value: a, valueType: o });
922
934
  }
923
935
  var rr = function(e, t, r) {
924
936
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
925
937
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
926
938
  return e.concat(o || Array.prototype.slice.call(t));
927
- }, yi = Object.values(T), hi = Object.values(tt), hn = ["century", "decade", "year", "month"], qr = l.oneOf(rr(rr([], yi, !0), hi, !0)), It = l.oneOfType([
939
+ }, hi = Object.values(T), gi = Object.values(tt), hn = ["century", "decade", "year", "month"], Ur = l.oneOf(rr(rr([], hi, !0), gi, !0)), It = l.oneOfType([
928
940
  l.string,
929
941
  l.arrayOf(l.string)
930
942
  ]), Fn = function(t, r, n) {
@@ -943,15 +955,15 @@ var rr = function(e, t, r) {
943
955
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
944
956
  var u = t.minDate;
945
957
  return u && i < u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, maxDate cannot be smaller than minDate.")) : null;
946
- }, gi = l.oneOfType([
958
+ }, bi = l.oneOfType([
947
959
  l.func,
948
960
  l.exact({
949
961
  current: l.any
950
962
  })
951
- ]), bi = l.arrayOf(l.oneOfType([l.instanceOf(Date), l.oneOf([null])]).isRequired), pi = l.oneOfType([
963
+ ]), pi = l.arrayOf(l.oneOfType([l.instanceOf(Date), l.oneOf([null])]).isRequired), wi = l.oneOfType([
952
964
  l.instanceOf(Date),
953
965
  l.oneOf([null]),
954
- bi
966
+ pi
955
967
  ]);
956
968
  l.arrayOf(l.oneOf(hn));
957
969
  var Mt = function(t, r, n) {
@@ -964,7 +976,7 @@ Mt.isRequired = function(t, r, n, a, o) {
964
976
  var i = t, u = r, c = i[u];
965
977
  return c ? Mt(t, r, n) : new Error("The prop `".concat(r, "` is marked as required in `").concat(n, "`, but its value is `").concat(c, "`."));
966
978
  };
967
- var wi = function(e) {
979
+ var Di = function(e) {
968
980
  return l.arrayOf(e);
969
981
  }, Ht = {
970
982
  activeStartDate: l.instanceOf(Date).isRequired,
@@ -976,7 +988,7 @@ var wi = function(e) {
976
988
  onMouseOver: l.func,
977
989
  tileClassName: l.oneOfType([l.func, It]),
978
990
  tileContent: l.oneOfType([l.func, l.node]),
979
- value: pi,
991
+ value: wi,
980
992
  valueType: l.oneOf(["century", "decade", "year", "month", "day"]).isRequired
981
993
  };
982
994
  l.instanceOf(Date).isRequired, l.arrayOf(l.string.isRequired).isRequired, l.instanceOf(Date).isRequired, l.string, l.func, l.func, l.objectOf(l.oneOfType([l.string, l.number])), l.oneOfType([l.func, It]), l.oneOfType([l.func, l.node]), l.func;
@@ -988,13 +1000,13 @@ var bt = function() {
988
1000
  }
989
1001
  return e;
990
1002
  }, bt.apply(this, arguments);
991
- }, Ur = function(t) {
1003
+ }, Hr = function(t) {
992
1004
  function r() {
993
- return f.createElement(mi, bt({}, t));
1005
+ return f.createElement(yi, bt({}, t));
994
1006
  }
995
1007
  return f.createElement("div", { className: "react-calendar__century-view" }, r());
996
1008
  };
997
- Ur.propTypes = bt(bt({}, Ht), { showNeighboringCentury: l.bool });
1009
+ Hr.propTypes = bt(bt({}, Ht), { showNeighboringCentury: l.bool });
998
1010
  var gn = function() {
999
1011
  return gn = Object.assign || function(e) {
1000
1012
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1003,7 +1015,7 @@ var gn = function() {
1003
1015
  }
1004
1016
  return e;
1005
1017
  }, gn.apply(this, arguments);
1006
- }, Di = function(e, t) {
1018
+ }, Oi = function(e, t) {
1007
1019
  var r = {};
1008
1020
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1009
1021
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1011,8 +1023,8 @@ var gn = function() {
1011
1023
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1012
1024
  return r;
1013
1025
  }, ar = "react-calendar__decade-view__years__year";
1014
- function Oi(e) {
1015
- var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, o = a === void 0 ? Yt : a, i = Di(e, ["classes", "currentDecade", "formatYear"]), u = i.date, c = i.locale, s = [];
1026
+ function xi(e) {
1027
+ var t = e.classes, r = t === void 0 ? [] : t, n = e.currentDecade, a = e.formatYear, o = a === void 0 ? Yt : a, i = Oi(e, ["classes", "currentDecade", "formatYear"]), u = i.date, c = i.locale, s = [];
1016
1028
  return r && s.push.apply(s, r), s.push(ar), Me(u).getFullYear() !== n && s.push("".concat(ar, "--neighboringDecade")), f.createElement(Ut, gn({}, i, { classes: s, maxDateTransform: Et, minDateTransform: ze, view: "decade" }), o(c, u));
1017
1029
  }
1018
1030
  var bn = function() {
@@ -1031,11 +1043,11 @@ var bn = function() {
1031
1043
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1032
1044
  return r;
1033
1045
  };
1034
- function xi(e) {
1035
- var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, o = e.valueType, i = or(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), u = qo(t), c = u + (n ? 11 : 9);
1046
+ function Ei(e) {
1047
+ var t = e.activeStartDate, r = e.hover, n = e.showNeighboringDecade, a = e.value, o = e.valueType, i = or(e, ["activeStartDate", "hover", "showNeighboringDecade", "value", "valueType"]), u = Uo(t), c = u + (n ? 11 : 9);
1036
1048
  return f.createElement(qt, { className: "react-calendar__decade-view__years", dateTransform: ze, dateType: "year", end: c, hover: r, renderTile: function(s) {
1037
- var d = s.date, v = or(s, ["date"]);
1038
- return f.createElement(Oi, bn({ key: d.getTime() }, i, v, { activeStartDate: t, currentDecade: u, date: d }));
1049
+ var v = s.date, d = or(s, ["date"]);
1050
+ return f.createElement(xi, bn({ key: v.getTime() }, i, d, { activeStartDate: t, currentDecade: u, date: v }));
1039
1051
  }, start: u, value: a, valueType: o });
1040
1052
  }
1041
1053
  var pt = function() {
@@ -1046,13 +1058,13 @@ var pt = function() {
1046
1058
  }
1047
1059
  return e;
1048
1060
  }, pt.apply(this, arguments);
1049
- }, Hr = function(t) {
1061
+ }, Gr = function(t) {
1050
1062
  function r() {
1051
- return f.createElement(xi, pt({}, t));
1063
+ return f.createElement(Ei, pt({}, t));
1052
1064
  }
1053
1065
  return f.createElement("div", { className: "react-calendar__decade-view" }, r());
1054
1066
  };
1055
- Hr.propTypes = pt(pt({}, Ht), { showNeighboringDecade: l.bool });
1067
+ Gr.propTypes = pt(pt({}, Ht), { showNeighboringDecade: l.bool });
1056
1068
  var pn = function() {
1057
1069
  return pn = Object.assign || function(e) {
1058
1070
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1061,7 +1073,7 @@ var pn = function() {
1061
1073
  }
1062
1074
  return e;
1063
1075
  }, pn.apply(this, arguments);
1064
- }, Ei = function(e, t) {
1076
+ }, Si = function(e, t) {
1065
1077
  var r = {};
1066
1078
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1067
1079
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1072,10 +1084,10 @@ var pn = function() {
1072
1084
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
1073
1085
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1074
1086
  return e.concat(o || Array.prototype.slice.call(t));
1075
- }, Si = "react-calendar__year-view__months__month";
1076
- function Ci(e) {
1077
- var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Wo : n, o = e.formatMonthYear, i = o === void 0 ? jr : o, u = Ei(e, ["classes", "formatMonth", "formatMonthYear"]), c = u.date, s = u.locale;
1078
- return f.createElement(Ut, pn({}, u, { classes: ir(ir([], r, !0), [Si], !1), formatAbbr: i, maxDateTransform: lt, minDateTransform: $e, view: "year" }), a(s, c));
1087
+ }, Ci = "react-calendar__year-view__months__month";
1088
+ function _i(e) {
1089
+ var t = e.classes, r = t === void 0 ? [] : t, n = e.formatMonth, a = n === void 0 ? Vo : n, o = e.formatMonthYear, i = o === void 0 ? Fr : o, u = Si(e, ["classes", "formatMonth", "formatMonthYear"]), c = u.date, s = u.locale;
1090
+ return f.createElement(Ut, pn({}, u, { classes: ir(ir([], r, !0), [Ci], !1), formatAbbr: i, maxDateTransform: lt, minDateTransform: $e, view: "year" }), a(s, c));
1079
1091
  }
1080
1092
  var wn = function() {
1081
1093
  return wn = Object.assign || function(e) {
@@ -1093,14 +1105,14 @@ var wn = function() {
1093
1105
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1094
1106
  return r;
1095
1107
  };
1096
- function _i(e) {
1108
+ function Ai(e) {
1097
1109
  var t = e.activeStartDate, r = e.hover, n = e.value, a = e.valueType, o = lr(e, ["activeStartDate", "hover", "value", "valueType"]), i = 0, u = 11, c = C(t);
1098
1110
  return f.createElement(qt, { className: "react-calendar__year-view__months", dateTransform: function(s) {
1099
- var d = /* @__PURE__ */ new Date();
1100
- return d.setFullYear(c, s, 1), $e(d);
1111
+ var v = /* @__PURE__ */ new Date();
1112
+ return v.setFullYear(c, s, 1), $e(v);
1101
1113
  }, dateType: "month", end: u, hover: r, renderTile: function(s) {
1102
- var d = s.date, v = lr(s, ["date"]);
1103
- return f.createElement(Ci, wn({ key: d.getTime() }, o, v, { activeStartDate: t, date: d }));
1114
+ var v = s.date, d = lr(s, ["date"]);
1115
+ return f.createElement(_i, wn({ key: v.getTime() }, o, d, { activeStartDate: t, date: v }));
1104
1116
  }, start: i, value: n, valueType: a });
1105
1117
  }
1106
1118
  var jt = function() {
@@ -1111,13 +1123,13 @@ var jt = function() {
1111
1123
  }
1112
1124
  return e;
1113
1125
  }, jt.apply(this, arguments);
1114
- }, Gr = function(t) {
1126
+ }, Kr = function(t) {
1115
1127
  function r() {
1116
- return f.createElement(_i, jt({}, t));
1128
+ return f.createElement(Ai, jt({}, t));
1117
1129
  }
1118
1130
  return f.createElement("div", { className: "react-calendar__year-view" }, r());
1119
1131
  };
1120
- Gr.propTypes = jt({}, Ht);
1132
+ Kr.propTypes = jt({}, Ht);
1121
1133
  var Dn = function() {
1122
1134
  return Dn = Object.assign || function(e) {
1123
1135
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1126,7 +1138,7 @@ var Dn = function() {
1126
1138
  }
1127
1139
  return e;
1128
1140
  }, Dn.apply(this, arguments);
1129
- }, Ai = function(e, t) {
1141
+ }, Pi = function(e, t) {
1130
1142
  var r = {};
1131
1143
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1132
1144
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1134,9 +1146,9 @@ var Dn = function() {
1134
1146
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1135
1147
  return r;
1136
1148
  }, an = "react-calendar__month-view__days__day";
1137
- function Pi(e) {
1138
- var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, o = e.formatDay, i = o === void 0 ? jo : o, u = e.formatLongDate, c = u === void 0 ? Fo : u, s = Ai(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), d = Bt(t), v = s.date, m = s.locale, y = [];
1139
- return n && y.push.apply(y, n), y.push(an), $r(v, d) && y.push("".concat(an, "--weekend")), v.getMonth() !== a && y.push("".concat(an, "--neighboringMonth")), f.createElement(Ut, Dn({}, s, { classes: y, formatAbbr: c, maxDateTransform: $t, minDateTransform: ut, view: "month" }), i(m, v));
1149
+ function Ni(e) {
1150
+ var t = e.calendarType, r = e.classes, n = r === void 0 ? [] : r, a = e.currentMonthIndex, o = e.formatDay, i = o === void 0 ? Fo : o, u = e.formatLongDate, c = u === void 0 ? Wo : u, s = Pi(e, ["calendarType", "classes", "currentMonthIndex", "formatDay", "formatLongDate"]), v = Bt(t), d = s.date, m = s.locale, y = [];
1151
+ return n && y.push.apply(y, n), y.push(an), Yr(d, v) && y.push("".concat(an, "--weekend")), d.getMonth() !== a && y.push("".concat(an, "--neighboringMonth")), f.createElement(Ut, Dn({}, s, { classes: y, formatAbbr: c, maxDateTransform: $t, minDateTransform: ut, view: "month" }), i(m, d));
1140
1152
  }
1141
1153
  var On = function() {
1142
1154
  return On = Object.assign || function(e) {
@@ -1154,14 +1166,14 @@ var On = function() {
1154
1166
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1155
1167
  return r;
1156
1168
  };
1157
- function Ni(e) {
1158
- var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, o = e.showNeighboringMonth, i = e.value, u = e.valueType, c = ur(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), s = Bt(r), d = C(t), v = Re(t), m = a || o, y = ht(t, s), b = m ? 0 : y, g = (m ? -y : 0) + 1, w = function() {
1169
+ function ki(e) {
1170
+ var t = e.activeStartDate, r = e.calendarType, n = e.hover, a = e.showFixedNumberOfWeeks, o = e.showNeighboringMonth, i = e.value, u = e.valueType, c = ur(e, ["activeStartDate", "calendarType", "hover", "showFixedNumberOfWeeks", "showNeighboringMonth", "value", "valueType"]), s = Bt(r), v = C(t), d = Re(t), m = a || o, y = ht(t, s), b = m ? 0 : y, g = (m ? -y : 0) + 1, w = function() {
1159
1171
  if (a)
1160
1172
  return g + 6 * 7 - 1;
1161
1173
  var D = In(t);
1162
1174
  if (o) {
1163
1175
  var x = /* @__PURE__ */ new Date();
1164
- x.setFullYear(d, v, D), x.setHours(0, 0, 0, 0);
1176
+ x.setFullYear(v, d, D), x.setHours(0, 0, 0, 0);
1165
1177
  var A = 7 - ht(x, s) - 1;
1166
1178
  return D + A;
1167
1179
  }
@@ -1169,23 +1181,23 @@ function Ni(e) {
1169
1181
  }();
1170
1182
  return f.createElement(qt, { className: "react-calendar__month-view__days", count: 7, dateTransform: function(D) {
1171
1183
  var x = /* @__PURE__ */ new Date();
1172
- return x.setFullYear(d, v, D), ut(x);
1184
+ return x.setFullYear(v, d, D), ut(x);
1173
1185
  }, dateType: "day", hover: n, end: w, renderTile: function(D) {
1174
1186
  var x = D.date, A = ur(D, ["date"]);
1175
- return f.createElement(Pi, On({ key: x.getTime() }, c, A, { activeStartDate: t, calendarType: r, currentMonthIndex: v, date: x }));
1187
+ return f.createElement(Ni, On({ key: x.getTime() }, c, A, { activeStartDate: t, calendarType: r, currentMonthIndex: d, date: x }));
1176
1188
  }, offset: b, start: g, value: i, valueType: u });
1177
1189
  }
1178
- var Kr = "react-calendar__month-view__weekdays", on = "".concat(Kr, "__weekday");
1179
- function ki(e) {
1180
- for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Vo : r, a = e.formatWeekday, o = a === void 0 ? Ro : a, i = e.locale, u = e.onMouseLeave, c = Bt(t), s = /* @__PURE__ */ new Date(), d = $e(s), v = C(d), m = Re(d), y = [], b = 1; b <= 7; b += 1) {
1181
- var g = new Date(v, m, b - ht(d, c)), w = o(i, g);
1190
+ var Zr = "react-calendar__month-view__weekdays", on = "".concat(Zr, "__weekday");
1191
+ function Li(e) {
1192
+ for (var t = e.calendarType, r = e.formatShortWeekday, n = r === void 0 ? Ro : r, a = e.formatWeekday, o = a === void 0 ? $o : a, i = e.locale, u = e.onMouseLeave, c = Bt(t), s = /* @__PURE__ */ new Date(), v = $e(s), d = C(v), m = Re(v), y = [], b = 1; b <= 7; b += 1) {
1193
+ var g = new Date(d, m, b - ht(v, c)), w = o(i, g);
1182
1194
  y.push(f.createElement(
1183
1195
  "div",
1184
- { key: b, className: We(on, Qo(g) && "".concat(on, "--current"), $r(g, c) && "".concat(on, "--weekend")) },
1196
+ { key: b, className: We(on, ei(g) && "".concat(on, "--current"), Yr(g, c) && "".concat(on, "--weekend")) },
1185
1197
  f.createElement("abbr", { "aria-label": w, title: w }, n(i, g).replace(".", ""))
1186
1198
  ));
1187
1199
  }
1188
- return f.createElement(jn, { className: Kr, count: 7, onFocus: u, onMouseOver: u }, y);
1200
+ return f.createElement(jn, { className: Zr, count: 7, onFocus: u, onMouseOver: u }, y);
1189
1201
  }
1190
1202
  var Ft = function() {
1191
1203
  return Ft = Object.assign || function(e) {
@@ -1203,7 +1215,7 @@ var Ft = function() {
1203
1215
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1204
1216
  return r;
1205
1217
  }, sr = "react-calendar__tile";
1206
- function Li(e) {
1218
+ function Ti(e) {
1207
1219
  var t = e.onClickWeekNumber, r = e.weekNumber, n = f.createElement("span", null, r);
1208
1220
  if (t) {
1209
1221
  var a = e.date, o = e.onClickWeekNumber, i = e.weekNumber, u = cr(e, ["date", "onClickWeekNumber", "weekNumber"]);
@@ -1216,24 +1228,24 @@ function Li(e) {
1216
1228
  return f.createElement("div", Ft({}, u, { className: sr }), n);
1217
1229
  }
1218
1230
  }
1219
- function Ti(e) {
1231
+ function Ii(e) {
1220
1232
  var t = e.activeStartDate, r = e.calendarType, n = e.onClickWeekNumber, a = e.onMouseLeave, o = e.showFixedNumberOfWeeks, i = Bt(r), u = function() {
1221
1233
  if (o)
1222
1234
  return 6;
1223
- var d = In(t), v = ht(t, i), m = d - (7 - v);
1235
+ var v = In(t), d = ht(t, i), m = v - (7 - d);
1224
1236
  return 1 + Math.ceil(m / 7);
1225
1237
  }(), c = function() {
1226
- for (var d = C(t), v = Re(t), m = Ve(t), y = [], b = 0; b < u; b += 1)
1227
- y.push(vn(new Date(d, v, m + b * 7), i));
1238
+ for (var v = C(t), d = Re(t), m = Ve(t), y = [], b = 0; b < u; b += 1)
1239
+ y.push(dn(new Date(v, d, m + b * 7), i));
1228
1240
  return y;
1229
- }(), s = c.map(function(d) {
1230
- return Uo(d, i);
1241
+ }(), s = c.map(function(v) {
1242
+ return Ho(v, i);
1231
1243
  });
1232
- return f.createElement(jn, { className: "react-calendar__month-view__weekNumbers", count: u, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 } }, s.map(function(d, v) {
1233
- var m = c[v];
1244
+ return f.createElement(jn, { className: "react-calendar__month-view__weekNumbers", count: u, direction: "column", onFocus: a, onMouseOver: a, style: { flexBasis: "calc(100% * (1 / 8)", flexShrink: 0 } }, s.map(function(v, d) {
1245
+ var m = c[d];
1234
1246
  if (!m)
1235
1247
  throw new Error("date is not defined");
1236
- return f.createElement(Li, { key: d, date: m, onClickWeekNumber: n, weekNumber: d });
1248
+ return f.createElement(Ti, { key: v, date: m, onClickWeekNumber: n, weekNumber: v });
1237
1249
  }));
1238
1250
  }
1239
1251
  var wt = function() {
@@ -1244,7 +1256,7 @@ var wt = function() {
1244
1256
  }
1245
1257
  return e;
1246
1258
  }, wt.apply(this, arguments);
1247
- }, Ii = function(e, t) {
1259
+ }, Mi = function(e, t) {
1248
1260
  var r = {};
1249
1261
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1250
1262
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1252,30 +1264,30 @@ var wt = function() {
1252
1264
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1253
1265
  return r;
1254
1266
  };
1255
- function Mi(e) {
1267
+ function ji(e) {
1256
1268
  if (e)
1257
- for (var t = 0, r = Object.entries(Co); t < r.length; t++) {
1269
+ for (var t = 0, r = Object.entries(_o); t < r.length; t++) {
1258
1270
  var n = r[t], a = n[0], o = n[1];
1259
1271
  if (o.includes(e))
1260
1272
  return a;
1261
1273
  }
1262
1274
  return T.ISO_8601;
1263
1275
  }
1264
- var Zr = function(t) {
1265
- var r = t.activeStartDate, n = t.locale, a = t.onMouseLeave, o = t.showFixedNumberOfWeeks, i = t.calendarType, u = i === void 0 ? Mi(n) : i, c = t.formatShortWeekday, s = t.formatWeekday, d = t.onClickWeekNumber, v = t.showWeekNumbers, m = Ii(t, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
1276
+ var zr = function(t) {
1277
+ var r = t.activeStartDate, n = t.locale, a = t.onMouseLeave, o = t.showFixedNumberOfWeeks, i = t.calendarType, u = i === void 0 ? ji(n) : i, c = t.formatShortWeekday, s = t.formatWeekday, v = t.onClickWeekNumber, d = t.showWeekNumbers, m = Mi(t, ["calendarType", "formatShortWeekday", "formatWeekday", "onClickWeekNumber", "showWeekNumbers"]);
1266
1278
  function y() {
1267
- return f.createElement(ki, { calendarType: u, formatShortWeekday: c, formatWeekday: s, locale: n, onMouseLeave: a });
1279
+ return f.createElement(Li, { calendarType: u, formatShortWeekday: c, formatWeekday: s, locale: n, onMouseLeave: a });
1268
1280
  }
1269
1281
  function b() {
1270
- return v ? f.createElement(Ti, { activeStartDate: r, calendarType: u, onClickWeekNumber: d, onMouseLeave: a, showFixedNumberOfWeeks: o }) : null;
1282
+ return d ? f.createElement(Ii, { activeStartDate: r, calendarType: u, onClickWeekNumber: v, onMouseLeave: a, showFixedNumberOfWeeks: o }) : null;
1271
1283
  }
1272
1284
  function g() {
1273
- return f.createElement(Ni, wt({ calendarType: u }, m));
1285
+ return f.createElement(ki, wt({ calendarType: u }, m));
1274
1286
  }
1275
1287
  var w = "react-calendar__month-view";
1276
1288
  return f.createElement(
1277
1289
  "div",
1278
- { className: We(w, v ? "".concat(w, "--weekNumbers") : "") },
1290
+ { className: We(w, d ? "".concat(w, "--weekNumbers") : "") },
1279
1291
  f.createElement(
1280
1292
  "div",
1281
1293
  { style: {
@@ -1295,7 +1307,7 @@ var Zr = function(t) {
1295
1307
  )
1296
1308
  );
1297
1309
  };
1298
- Zr.propTypes = wt(wt({}, Ht), { calendarType: qr, formatDay: l.func, formatLongDate: l.func, formatShortWeekday: l.func, formatWeekday: l.func, onClickWeekNumber: l.func, onMouseLeave: l.func, showFixedNumberOfWeeks: l.bool, showNeighboringMonth: l.bool, showWeekNumbers: l.bool });
1310
+ zr.propTypes = wt(wt({}, Ht), { calendarType: Ur, formatDay: l.func, formatLongDate: l.func, formatShortWeekday: l.func, formatWeekday: l.func, onClickWeekNumber: l.func, onMouseLeave: l.func, showFixedNumberOfWeeks: l.bool, showNeighboringMonth: l.bool, showWeekNumbers: l.bool });
1299
1311
  var rt = function() {
1300
1312
  return rt = Object.assign || function(e) {
1301
1313
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -1304,62 +1316,62 @@ var rt = function() {
1304
1316
  }
1305
1317
  return e;
1306
1318
  }, rt.apply(this, arguments);
1307
- }, Pt = "react-calendar", ot = ["century", "decade", "year", "month"], ji = ["decade", "year", "month", "day"], Vn = /* @__PURE__ */ new Date();
1319
+ }, Pt = "react-calendar", ot = ["century", "decade", "year", "month"], Fi = ["decade", "year", "month", "day"], Vn = /* @__PURE__ */ new Date();
1308
1320
  Vn.setFullYear(1, 0, 1);
1309
1321
  Vn.setHours(0, 0, 0, 0);
1310
- var Fi = /* @__PURE__ */ new Date(864e13);
1311
- function vt(e) {
1322
+ var Wi = /* @__PURE__ */ new Date(864e13);
1323
+ function dt(e) {
1312
1324
  return e instanceof Date ? e : new Date(e);
1313
1325
  }
1314
- function zr(e, t) {
1326
+ function Xr(e, t) {
1315
1327
  return ot.slice(ot.indexOf(e), ot.indexOf(t) + 1);
1316
1328
  }
1317
- function Wi(e, t, r) {
1318
- var n = zr(t, r);
1329
+ function Vi(e, t, r) {
1330
+ var n = Xr(t, r);
1319
1331
  return n.indexOf(e) !== -1;
1320
1332
  }
1321
1333
  function Rn(e, t, r) {
1322
- return e && Wi(e, t, r) ? e : r;
1334
+ return e && Vi(e, t, r) ? e : r;
1323
1335
  }
1324
- function Xr(e) {
1336
+ function Jr(e) {
1325
1337
  var t = ot.indexOf(e);
1326
- return ji[t];
1338
+ return Fi[t];
1327
1339
  }
1328
- function Vi(e, t) {
1340
+ function Ri(e, t) {
1329
1341
  var r = Array.isArray(e) ? e[t] : e;
1330
1342
  if (!r)
1331
1343
  return null;
1332
- var n = vt(r);
1344
+ var n = dt(r);
1333
1345
  if (isNaN(n.getTime()))
1334
1346
  throw new Error("Invalid date: ".concat(e));
1335
1347
  return n;
1336
1348
  }
1337
- function Jr(e, t) {
1338
- var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Vi(r, t);
1349
+ function Qr(e, t) {
1350
+ var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Ri(r, t);
1339
1351
  if (!i)
1340
1352
  return null;
1341
- var u = Xr(o), c = function() {
1353
+ var u = Jr(o), c = function() {
1342
1354
  switch (t) {
1343
1355
  case 0:
1344
1356
  return Ze(u, i);
1345
1357
  case 1:
1346
- return Wr(u, i);
1358
+ return Vr(u, i);
1347
1359
  default:
1348
1360
  throw new Error("Invalid index value: ".concat(t));
1349
1361
  }
1350
1362
  }();
1351
- return ii(c, n, a);
1363
+ return li(c, n, a);
1352
1364
  }
1353
1365
  var $n = function(e) {
1354
- return Jr(e, 0);
1355
- }, Qr = function(e) {
1356
- return Jr(e, 1);
1357
- }, Ri = function(e) {
1358
- return [$n, Qr].map(function(t) {
1366
+ return Qr(e, 0);
1367
+ }, ea = function(e) {
1368
+ return Qr(e, 1);
1369
+ }, $i = function(e) {
1370
+ return [$n, ea].map(function(t) {
1359
1371
  return t(e);
1360
1372
  });
1361
1373
  };
1362
- function ea(e) {
1374
+ function ta(e) {
1363
1375
  var t = e.maxDate, r = e.maxDetail, n = e.minDate, a = e.minDetail, o = e.value, i = e.view, u = Rn(i, a, r), c = $n({
1364
1376
  value: o,
1365
1377
  minDate: n,
@@ -1368,15 +1380,15 @@ function ea(e) {
1368
1380
  }) || /* @__PURE__ */ new Date();
1369
1381
  return Ze(u, c);
1370
1382
  }
1371
- function $i(e) {
1372
- var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, o = e.maxDate, i = e.maxDetail, u = e.minDate, c = e.minDetail, s = e.value, d = e.view, v = Rn(d, c, i), m = t || r;
1373
- return m ? Ze(v, m) : ea({
1383
+ function Yi(e) {
1384
+ var t = e.activeStartDate, r = e.defaultActiveStartDate, n = e.defaultValue, a = e.defaultView, o = e.maxDate, i = e.maxDetail, u = e.minDate, c = e.minDetail, s = e.value, v = e.view, d = Rn(v, c, i), m = t || r;
1385
+ return m ? Ze(d, m) : ta({
1374
1386
  maxDate: o,
1375
1387
  maxDetail: i,
1376
1388
  minDate: u,
1377
1389
  minDetail: c,
1378
1390
  value: s || n,
1379
- view: d || a
1391
+ view: v || a
1380
1392
  });
1381
1393
  }
1382
1394
  function ln(e) {
@@ -1385,10 +1397,10 @@ function ln(e) {
1385
1397
  function Nt(e, t) {
1386
1398
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
1387
1399
  }
1388
- var ta = ba(function(t, r) {
1389
- var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, i = t.className, u = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, d = t.formatDay, v = t.formatLongDate, m = t.formatMonth, y = t.formatMonthYear, b = t.formatShortWeekday, g = t.formatWeekday, w = t.formatYear, D = t.goToRangeStartOnSelect, x = D === void 0 ? !0 : D, A = t.inputRef, P = t.locale, $ = t.maxDate, Y = $ === void 0 ? Fi : $, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = J === void 0 ? Vn : J, se = t.minDetail, ee = se === void 0 ? "century" : se, oe = t.navigationAriaLabel, ie = t.navigationAriaLive, fe = t.navigationLabel, M = t.next2AriaLabel, de = t.next2Label, be = t.nextAriaLabel, te = t.nextLabel, N = t.onActiveStartDateChange, G = t.onChange, U = t.onClickDay, ve = t.onClickDecade, he = t.onClickMonth, me = t.onClickWeekNumber, xe = t.onClickYear, Ee = t.onDrillDown, K = t.onDrillUp, ye = t.onViewChange, Ye = t.prev2AriaLabel, Ne = t.prev2Label, Se = t.prevAriaLabel, ne = t.prevLabel, L = t.returnValue, ge = L === void 0 ? "start" : L, Z = t.selectRange, ke = t.showDoubleView, pe = t.showFixedNumberOfWeeks, Je = t.showNavigation, je = Je === void 0 ? !0 : Je, ct = t.showNeighboringCentury, st = t.showNeighboringDecade, Le = t.showNeighboringMonth, Be = Le === void 0 ? !0 : Le, ft = t.showWeekNumbers, Qe = t.tileClassName, qe = t.tileContent, Ue = t.tileDisabled, h = t.value, O = t.view, _ = Pe(u), p = _[0], S = _[1], j = Pe(null), W = j[0], R = j[1], I = Pe(Array.isArray(c) ? c.map(function(E) {
1390
- return E !== null ? vt(E) : null;
1391
- }) : c != null ? vt(c) : null), z = I[0], re = I[1], B = Pe(s), He = B[0], Ge = B[1], ue = n || p || $i({
1400
+ var na = pa(function(t, r) {
1401
+ var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, i = t.className, u = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, v = t.formatDay, d = t.formatLongDate, m = t.formatMonth, y = t.formatMonthYear, b = t.formatShortWeekday, g = t.formatWeekday, w = t.formatYear, D = t.goToRangeStartOnSelect, x = D === void 0 ? !0 : D, A = t.inputRef, P = t.locale, $ = t.maxDate, Y = $ === void 0 ? Wi : $, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = J === void 0 ? Vn : J, se = t.minDetail, ee = se === void 0 ? "century" : se, oe = t.navigationAriaLabel, ie = t.navigationAriaLive, fe = t.navigationLabel, M = t.next2AriaLabel, ve = t.next2Label, be = t.nextAriaLabel, te = t.nextLabel, N = t.onActiveStartDateChange, G = t.onChange, U = t.onClickDay, de = t.onClickDecade, he = t.onClickMonth, me = t.onClickWeekNumber, xe = t.onClickYear, Ee = t.onDrillDown, K = t.onDrillUp, ye = t.onViewChange, Ye = t.prev2AriaLabel, Ne = t.prev2Label, Se = t.prevAriaLabel, ne = t.prevLabel, L = t.returnValue, ge = L === void 0 ? "start" : L, Z = t.selectRange, ke = t.showDoubleView, pe = t.showFixedNumberOfWeeks, Je = t.showNavigation, je = Je === void 0 ? !0 : Je, ct = t.showNeighboringCentury, st = t.showNeighboringDecade, Le = t.showNeighboringMonth, Be = Le === void 0 ? !0 : Le, ft = t.showWeekNumbers, Qe = t.tileClassName, qe = t.tileContent, Ue = t.tileDisabled, h = t.value, O = t.view, _ = Pe(u), p = _[0], S = _[1], j = Pe(null), W = j[0], R = j[1], I = Pe(Array.isArray(c) ? c.map(function(E) {
1402
+ return E !== null ? dt(E) : null;
1403
+ }) : c != null ? dt(c) : null), z = I[0], re = I[1], B = Pe(s), He = B[0], Ge = B[1], ue = n || p || Yi({
1392
1404
  activeStartDate: n,
1393
1405
  defaultActiveStartDate: u,
1394
1406
  defaultValue: c,
@@ -1404,17 +1416,17 @@ var ta = ba(function(t, r) {
1404
1416
  return Z && ln(z) ? z : h !== void 0 ? h : z;
1405
1417
  }();
1406
1418
  return E ? Array.isArray(E) ? E.map(function(V) {
1407
- return V !== null ? vt(V) : null;
1408
- }) : E !== null ? vt(E) : null : null;
1409
- }(), St = Xr(k), F = Rn(O || He, ee, k), Ce = zr(ee, k), fa = Z ? W : null, Zt = Ce.indexOf(F) < Ce.length - 1, Hn = Ce.indexOf(F) > 0, Gn = Ae(function(E) {
1419
+ return V !== null ? dt(V) : null;
1420
+ }) : E !== null ? dt(E) : null : null;
1421
+ }(), St = Jr(k), F = Rn(O || He, ee, k), Ce = Xr(ee, k), va = Z ? W : null, Zt = Ce.indexOf(F) < Ce.length - 1, Hn = Ce.indexOf(F) > 0, Gn = Ae(function(E) {
1410
1422
  var V = function() {
1411
1423
  switch (ge) {
1412
1424
  case "start":
1413
1425
  return $n;
1414
1426
  case "end":
1415
- return Qr;
1427
+ return ea;
1416
1428
  case "range":
1417
- return Ri;
1429
+ return $i;
1418
1430
  default:
1419
1431
  throw new Error("Invalid returnValue.");
1420
1432
  }
@@ -1438,7 +1450,7 @@ var ta = ba(function(t, r) {
1438
1450
  var q = function() {
1439
1451
  switch (F) {
1440
1452
  case "century":
1441
- return ve;
1453
+ return de;
1442
1454
  case "decade":
1443
1455
  return xe;
1444
1456
  case "year":
@@ -1450,7 +1462,7 @@ var ta = ba(function(t, r) {
1450
1462
  }
1451
1463
  }();
1452
1464
  q && q(E, V);
1453
- }, [U, ve, he, xe, F]), Xt = Ae(function(E, V) {
1465
+ }, [U, de, he, xe, F]), Xt = Ae(function(E, V) {
1454
1466
  if (Zt) {
1455
1467
  Ct(E, V);
1456
1468
  var q = Ce[Ce.indexOf(F) + 1];
@@ -1511,7 +1523,7 @@ var ta = ba(function(t, r) {
1511
1523
  throw new Error("previousValue is required");
1512
1524
  if (Array.isArray(q))
1513
1525
  throw new Error("previousValue must not be an array");
1514
- De = Xo(St, q, E);
1526
+ De = Jo(St, q, E);
1515
1527
  }
1516
1528
  else
1517
1529
  De = Gn(E);
@@ -1519,7 +1531,7 @@ var ta = ba(function(t, r) {
1519
1531
  // Range selection turned off
1520
1532
  !Z || // Range selection turned on, first value
1521
1533
  we || // Range selection turned on, second value, goToRangeStartOnSelect toggled on
1522
- x ? ea({
1534
+ x ? ta({
1523
1535
  maxDate: Y,
1524
1536
  maxDetail: k,
1525
1537
  minDate: Q,
@@ -1529,16 +1541,16 @@ var ta = ba(function(t, r) {
1529
1541
  }) : null
1530
1542
  );
1531
1543
  V.persist(), S(tn), re(De);
1532
- var ya = {
1544
+ var ha = {
1533
1545
  action: "onChange",
1534
1546
  activeStartDate: tn,
1535
1547
  value: De,
1536
1548
  view: F
1537
1549
  };
1538
- if (N && !Nt(ue, tn) && N(ya), G)
1550
+ if (N && !Nt(ue, tn) && N(ha), G)
1539
1551
  if (Z) {
1540
- var ha = ln(De);
1541
- if (!ha)
1552
+ var ga = ln(De);
1553
+ if (!ga)
1542
1554
  G(De || null, V);
1543
1555
  else if (a) {
1544
1556
  if (Array.isArray(De))
@@ -1570,7 +1582,7 @@ var ta = ba(function(t, r) {
1570
1582
  function en() {
1571
1583
  R(null);
1572
1584
  }
1573
- pa(r, function() {
1585
+ wa(r, function() {
1574
1586
  return {
1575
1587
  activeStartDate: ue,
1576
1588
  drillDown: Xt,
@@ -1582,9 +1594,9 @@ var ta = ba(function(t, r) {
1582
1594
  };
1583
1595
  }, [ue, Xt, Jt, Qt, zt, ce, F]);
1584
1596
  function Kn(E) {
1585
- var V = E ? Fr(F, ue) : Ze(F, ue), q = Zt ? Xt : Qt, we = {
1597
+ var V = E ? Wr(F, ue) : Ze(F, ue), q = Zt ? Xt : Qt, we = {
1586
1598
  activeStartDate: V,
1587
- hover: fa,
1599
+ hover: va,
1588
1600
  locale: P,
1589
1601
  maxDate: Y,
1590
1602
  minDate: Q,
@@ -1598,25 +1610,25 @@ var ta = ba(function(t, r) {
1598
1610
  };
1599
1611
  switch (F) {
1600
1612
  case "century":
1601
- return f.createElement(Ur, rt({ formatYear: w, showNeighboringCentury: ct }, we));
1613
+ return f.createElement(Hr, rt({ formatYear: w, showNeighboringCentury: ct }, we));
1602
1614
  case "decade":
1603
- return f.createElement(Hr, rt({ formatYear: w, showNeighboringDecade: st }, we));
1615
+ return f.createElement(Gr, rt({ formatYear: w, showNeighboringDecade: st }, we));
1604
1616
  case "year":
1605
- return f.createElement(Gr, rt({ formatMonth: m, formatMonthYear: y }, we));
1617
+ return f.createElement(Kr, rt({ formatMonth: m, formatMonthYear: y }, we));
1606
1618
  case "month":
1607
- return f.createElement(Zr, rt({ calendarType: o, formatDay: d, formatLongDate: v, formatShortWeekday: b, formatWeekday: g, onClickWeekNumber: me, onMouseLeave: Z ? en : void 0, showFixedNumberOfWeeks: typeof pe < "u" ? pe : ke, showNeighboringMonth: Be, showWeekNumbers: ft }, we));
1619
+ return f.createElement(zr, rt({ calendarType: o, formatDay: v, formatLongDate: d, formatShortWeekday: b, formatWeekday: g, onClickWeekNumber: me, onMouseLeave: Z ? en : void 0, showFixedNumberOfWeeks: typeof pe < "u" ? pe : ke, showNeighboringMonth: Be, showWeekNumbers: ft }, we));
1608
1620
  default:
1609
1621
  throw new Error("Invalid view: ".concat(F, "."));
1610
1622
  }
1611
1623
  }
1612
- function va() {
1613
- return je ? f.createElement(ei, { activeStartDate: ue, drillUp: Jt, formatMonthYear: y, formatYear: w, locale: P, maxDate: Y, minDate: Q, navigationAriaLabel: oe, navigationAriaLive: ie, navigationLabel: fe, next2AriaLabel: M, next2Label: de, nextAriaLabel: be, nextLabel: te, prev2AriaLabel: Ye, prev2Label: Ne, prevAriaLabel: Se, prevLabel: ne, setActiveStartDate: zt, showDoubleView: ke, view: F, views: Ce }) : null;
1624
+ function ma() {
1625
+ return je ? f.createElement(ti, { activeStartDate: ue, drillUp: Jt, formatMonthYear: y, formatYear: w, locale: P, maxDate: Y, minDate: Q, navigationAriaLabel: oe, navigationAriaLive: ie, navigationLabel: fe, next2AriaLabel: M, next2Label: ve, nextAriaLabel: be, nextLabel: te, prev2AriaLabel: Ye, prev2Label: Ne, prevAriaLabel: Se, prevLabel: ne, setActiveStartDate: zt, showDoubleView: ke, view: F, views: Ce }) : null;
1614
1626
  }
1615
- var ma = Array.isArray(ce) ? ce : [ce];
1627
+ var ya = Array.isArray(ce) ? ce : [ce];
1616
1628
  return f.createElement(
1617
1629
  "div",
1618
- { className: We(Pt, Z && ma.length === 1 && "".concat(Pt, "--selectRange"), ke && "".concat(Pt, "--doubleView"), i), ref: A },
1619
- va(),
1630
+ { className: We(Pt, Z && ya.length === 1 && "".concat(Pt, "--selectRange"), ke && "".concat(Pt, "--doubleView"), i), ref: A },
1631
+ ma(),
1620
1632
  f.createElement(
1621
1633
  "div",
1622
1634
  { className: "".concat(Pt, "__viewContainer"), onBlur: Z ? en : void 0, onMouseLeave: Z ? en : void 0 },
@@ -1624,14 +1636,14 @@ var ta = ba(function(t, r) {
1624
1636
  ke ? Kn(!0) : null
1625
1637
  )
1626
1638
  );
1627
- }), fr = l.instanceOf(Date), dr = l.oneOfType([l.string, l.instanceOf(Date)]), vr = l.oneOfType([dr, wi(dr)]);
1628
- ta.propTypes = {
1639
+ }), fr = l.instanceOf(Date), vr = l.oneOfType([l.string, l.instanceOf(Date)]), dr = l.oneOfType([vr, Di(vr)]);
1640
+ na.propTypes = {
1629
1641
  activeStartDate: fr,
1630
1642
  allowPartialRange: l.bool,
1631
- calendarType: qr,
1643
+ calendarType: Ur,
1632
1644
  className: It,
1633
1645
  defaultActiveStartDate: fr,
1634
- defaultValue: vr,
1646
+ defaultValue: dr,
1635
1647
  defaultView: Mt,
1636
1648
  formatDay: l.func,
1637
1649
  formatLongDate: l.func,
@@ -1641,7 +1653,7 @@ ta.propTypes = {
1641
1653
  formatWeekday: l.func,
1642
1654
  formatYear: l.func,
1643
1655
  goToRangeStartOnSelect: l.bool,
1644
- inputRef: gi,
1656
+ inputRef: bi,
1645
1657
  locale: l.string,
1646
1658
  maxDate: Wn,
1647
1659
  maxDetail: l.oneOf(ot),
@@ -1680,7 +1692,7 @@ ta.propTypes = {
1680
1692
  tileClassName: l.oneOfType([l.func, It]),
1681
1693
  tileContent: l.oneOfType([l.func, l.node]),
1682
1694
  tileDisabled: l.func,
1683
- value: vr,
1695
+ value: dr,
1684
1696
  view: Mt
1685
1697
  };
1686
1698
  function ae(e) {
@@ -1714,9 +1726,9 @@ function mr(e, t) {
1714
1726
  }
1715
1727
  };
1716
1728
  }
1717
- var Yi = process.env.NODE_ENV === "production";
1729
+ var Bi = process.env.NODE_ENV === "production";
1718
1730
  function yr(e, t) {
1719
- if (!Yi) {
1731
+ if (!Bi) {
1720
1732
  if (e)
1721
1733
  return;
1722
1734
  var r = "Warning: " + t;
@@ -1727,7 +1739,7 @@ function yr(e, t) {
1727
1739
  }
1728
1740
  }
1729
1741
  }
1730
- var Bi = /* @__PURE__ */ function() {
1742
+ var qi = /* @__PURE__ */ function() {
1731
1743
  var e = function(t, r) {
1732
1744
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
1733
1745
  n.__proto__ = a;
@@ -1752,14 +1764,14 @@ var Bi = /* @__PURE__ */ function() {
1752
1764
  }
1753
1765
  return e;
1754
1766
  }, Fe.apply(this, arguments);
1755
- }, qi = function(e, t) {
1767
+ }, Ui = function(e, t) {
1756
1768
  var r = {};
1757
1769
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1758
1770
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1759
1771
  for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
1760
1772
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
1761
1773
  return r;
1762
- }, na = typeof document < "u", hr = na && "CSS" in window && "supports" in window.CSS && CSS.supports("display", "contents"), Ui = na && "MutationObserver" in window;
1774
+ }, ra = typeof document < "u", hr = ra && "CSS" in window && "supports" in window.CSS && CSS.supports("display", "contents"), Hi = ra && "MutationObserver" in window;
1763
1775
  function kt(e) {
1764
1776
  return e.charAt(0).toUpperCase() + e.slice(1);
1765
1777
  }
@@ -1774,11 +1786,11 @@ function gr(e) {
1774
1786
  }
1775
1787
  return document.documentElement;
1776
1788
  }
1777
- function ra(e) {
1789
+ function aa(e) {
1778
1790
  var t = e.axis, r = e.container, n = e.element, a = e.invertAxis, o = e.scrollContainer, i = e.secondary, u = e.spacing, c = window.getComputedStyle(n), s = r.parentElement;
1779
1791
  if (!s)
1780
1792
  return;
1781
- var d = mr(s, o), v = mr(s, document.documentElement), m = t === "x", y = m ? "left" : "top", b = m ? "right" : "bottom", g = m ? "width" : "height", w = "overflow".concat(kt(y)), D = "overflow".concat(kt(b)), x = "scroll".concat(kt(y)), A = kt(g), P = "offset".concat(A), $ = "client".concat(A), Y = "min-".concat(g), H = o[P] - o[$], k = typeof u == "object" ? u[y] : u, J = -Math.max(d[w], v[w] + document.documentElement[x]) - k, Q = typeof u == "object" ? u[b] : u, se = -Math.max(d[D], v[D] - document.documentElement[x]) - Q - H;
1793
+ var v = mr(s, o), d = mr(s, document.documentElement), m = t === "x", y = m ? "left" : "top", b = m ? "right" : "bottom", g = m ? "width" : "height", w = "overflow".concat(kt(y)), D = "overflow".concat(kt(b)), x = "scroll".concat(kt(y)), A = kt(g), P = "offset".concat(A), $ = "client".concat(A), Y = "min-".concat(g), H = o[P] - o[$], k = typeof u == "object" ? u[y] : u, J = -Math.max(v[w], d[w] + document.documentElement[x]) - k, Q = typeof u == "object" ? u[b] : u, se = -Math.max(v[D], d[D] - document.documentElement[x]) - Q - H;
1782
1794
  i && (J += s[$], se += s[$]);
1783
1795
  var ee = n[P];
1784
1796
  function oe() {
@@ -1794,35 +1806,35 @@ function ra(e) {
1794
1806
  function M() {
1795
1807
  return fe(J, oe);
1796
1808
  }
1797
- function de() {
1809
+ function ve() {
1798
1810
  return fe(se, ie);
1799
1811
  }
1800
1812
  function be() {
1801
1813
  var N = J > se, G = c.getPropertyValue(Y), U = G ? parseInt(G, 10) : null;
1802
- function ve(he) {
1814
+ function de(he) {
1803
1815
  yr(!U || he >= U, "<Fit />'s child will not fit anywhere with its current ".concat(Y, " of ").concat(U, "px."));
1804
1816
  var me = Math.max(he, U || 0);
1805
1817
  yr(!1, "<Fit />'s child needed to have its ".concat(g, " decreased to ").concat(me, "px.")), n.style[g] = "".concat(me, "px");
1806
1818
  }
1807
- N ? (ve(J), oe()) : (ve(se), ie());
1819
+ N ? (de(J), oe()) : (de(se), ie());
1808
1820
  }
1809
1821
  var te;
1810
- a ? te = M() || de() : te = de() || M(), te || be();
1811
- }
1812
- function Hi(e) {
1813
- ra(e);
1822
+ a ? te = M() || ve() : te = ve() || M(), te || be();
1814
1823
  }
1815
1824
  function Gi(e) {
1816
- ra(Fe(Fe({}, e), { axis: e.axis === "x" ? "y" : "x", secondary: !0 }));
1825
+ aa(e);
1817
1826
  }
1818
1827
  function Ki(e) {
1819
- var t = e.invertAxis, r = e.invertSecondaryAxis, n = qi(e, ["invertAxis", "invertSecondaryAxis"]);
1820
- Hi(Fe(Fe({}, n), { invertAxis: t })), Gi(Fe(Fe({}, n), { invertAxis: r }));
1828
+ aa(Fe(Fe({}, e), { axis: e.axis === "x" ? "y" : "x", secondary: !0 }));
1829
+ }
1830
+ function Zi(e) {
1831
+ var t = e.invertAxis, r = e.invertSecondaryAxis, n = Ui(e, ["invertAxis", "invertSecondaryAxis"]);
1832
+ Gi(Fe(Fe({}, n), { invertAxis: t })), Ki(Fe(Fe({}, n), { invertAxis: r }));
1821
1833
  }
1822
- var Zi = (
1834
+ var zi = (
1823
1835
  /** @class */
1824
1836
  function(e) {
1825
- Bi(t, e);
1837
+ qi(t, e);
1826
1838
  function t() {
1827
1839
  var r = e !== null && e.apply(this, arguments) || this;
1828
1840
  return r.fit = function() {
@@ -1833,12 +1845,12 @@ var Zi = (
1833
1845
  r.elementWidth = u, r.elementHeight = c;
1834
1846
  var s = o.parentElement;
1835
1847
  if (s) {
1836
- var d = window.getComputedStyle(i), v = d.position;
1837
- v !== "absolute" && (i.style.position = "absolute");
1848
+ var v = window.getComputedStyle(i), d = v.position;
1849
+ d !== "absolute" && (i.style.position = "absolute");
1838
1850
  var m = window.getComputedStyle(s), y = m.position;
1839
1851
  y !== "relative" && y !== "absolute" && (s.style.position = "relative");
1840
1852
  var b = r.props, g = b.invertAxis, w = b.invertSecondaryAxis, D = b.mainAxis, x = D === void 0 ? "y" : D, A = b.spacing, P = A === void 0 ? 8 : A;
1841
- Ki({
1853
+ Zi({
1842
1854
  axis: x,
1843
1855
  container: o,
1844
1856
  element: i,
@@ -1855,7 +1867,7 @@ var Zi = (
1855
1867
  return t.prototype.componentDidMount = function() {
1856
1868
  var r = this;
1857
1869
  if (!hr) {
1858
- var n = Oa(this);
1870
+ var n = xa(this);
1859
1871
  if (!n || !(n instanceof HTMLElement))
1860
1872
  return;
1861
1873
  this.container = n, this.element = n, this.scrollContainer = gr(n);
@@ -1864,7 +1876,7 @@ var Zi = (
1864
1876
  var a = function() {
1865
1877
  r.fit();
1866
1878
  };
1867
- if (Ui && this.element) {
1879
+ if (Hi && this.element) {
1868
1880
  var o = new MutationObserver(a);
1869
1881
  o.observe(this.element, {
1870
1882
  attributes: !0,
@@ -1893,14 +1905,14 @@ var Zi = (
1893
1905
  })
1894
1906
  ])
1895
1907
  }, t;
1896
- }(wa)
1908
+ }(Da)
1897
1909
  );
1898
- function zi(e) {
1910
+ function Xi(e) {
1899
1911
  var t = e.children;
1900
1912
  return f.createElement("span", { className: "react-date-picker__inputGroup__divider" }, t);
1901
1913
  }
1902
- var Xi = ["normal", "small-caps"];
1903
- function aa(e) {
1914
+ var Ji = ["normal", "small-caps"];
1915
+ function oa(e) {
1904
1916
  if (!e)
1905
1917
  return "";
1906
1918
  var t = window.getComputedStyle(e);
@@ -1909,11 +1921,11 @@ function aa(e) {
1909
1921
  var r = t.fontFamily !== "";
1910
1922
  if (!r)
1911
1923
  return "";
1912
- var n = Xi.includes(t.fontVariant) ? t.fontVariant : "normal";
1924
+ var n = Ji.includes(t.fontVariant) ? t.fontVariant : "normal";
1913
1925
  return "".concat(t.fontStyle, " ").concat(n, " ").concat(t.fontWeight, " ").concat(t.fontSize, " / ").concat(t.lineHeight, " ").concat(t.fontFamily);
1914
1926
  }
1915
1927
  var br;
1916
- function Ji(e, t) {
1928
+ function Qi(e, t) {
1917
1929
  var r = br || (br = document.createElement("canvas")), n = r.getContext("2d");
1918
1930
  if (!n)
1919
1931
  return null;
@@ -1924,17 +1936,17 @@ function Ji(e, t) {
1924
1936
  function Wt(e) {
1925
1937
  if (typeof document > "u" || !e)
1926
1938
  return null;
1927
- var t = aa(e), r = e.value || e.placeholder, n = Ji(r, t);
1939
+ var t = oa(e), r = e.value || e.placeholder, n = Qi(r, t);
1928
1940
  return n === null ? null : (e.style.width = "".concat(n, "px"), n);
1929
1941
  }
1930
- var Yn = typeof document < "u", Qi = Yn ? Da : yt, el = Yn && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), tl = Yn && /Firefox/.test(navigator.userAgent);
1931
- function nl(e) {
1942
+ var Yn = typeof document < "u", el = Yn ? Oa : yt, tl = Yn && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), nl = Yn && /Firefox/.test(navigator.userAgent);
1943
+ function rl(e) {
1932
1944
  var t = e.target;
1933
- el ? requestAnimationFrame(function() {
1945
+ tl ? requestAnimationFrame(function() {
1934
1946
  return t.select();
1935
1947
  }) : t.select();
1936
1948
  }
1937
- function rl(e) {
1949
+ function al(e) {
1938
1950
  if (document.readyState === "complete")
1939
1951
  return;
1940
1952
  function t() {
@@ -1942,10 +1954,10 @@ function rl(e) {
1942
1954
  }
1943
1955
  window.addEventListener("load", t);
1944
1956
  }
1945
- function al(e) {
1957
+ function ol(e) {
1946
1958
  if (!document.fonts)
1947
1959
  return;
1948
- var t = aa(e);
1960
+ var t = oa(e);
1949
1961
  if (!t)
1950
1962
  return;
1951
1963
  var r = document.fonts.check(t);
@@ -1956,7 +1968,7 @@ function al(e) {
1956
1968
  }
1957
1969
  document.fonts.addEventListener("loadingdone", n);
1958
1970
  }
1959
- function ol(e) {
1971
+ function il(e) {
1960
1972
  if (e && "selectionStart" in e && e.selectionStart !== null && "selectionEnd" in e && e.selectionEnd !== null)
1961
1973
  return e.value.slice(e.selectionStart, e.selectionEnd);
1962
1974
  if ("getSelection" in window) {
@@ -1965,45 +1977,45 @@ function ol(e) {
1965
1977
  }
1966
1978
  return null;
1967
1979
  }
1968
- function il(e) {
1980
+ function ll(e) {
1969
1981
  if (e !== null)
1970
1982
  return function(r) {
1971
- if (!tl) {
1972
- var n = r.key, a = r.target, o = a.value, i = n.length === 1 && /\d/.test(n), u = ol(a);
1983
+ if (!nl) {
1984
+ var n = r.key, a = r.target, o = a.value, i = n.length === 1 && /\d/.test(n), u = il(a);
1973
1985
  (!i || !(u || o.length < e)) && r.preventDefault();
1974
1986
  }
1975
1987
  };
1976
1988
  }
1977
1989
  function Bn(e) {
1978
- var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.max, u = e.min, c = e.name, s = e.nameForClass, d = e.onChange, v = e.onKeyDown, m = e.onKeyUp, y = e.placeholder, b = y === void 0 ? "--" : y, g = e.required, w = e.showLeadingZeros, D = e.step, x = e.value;
1979
- Qi(function() {
1980
- !o || !o.current || (Wt(o.current), rl(o.current), al(o.current));
1990
+ var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.max, u = e.min, c = e.name, s = e.nameForClass, v = e.onChange, d = e.onKeyDown, m = e.onKeyUp, y = e.placeholder, b = y === void 0 ? "--" : y, g = e.required, w = e.showLeadingZeros, D = e.step, x = e.value;
1991
+ el(function() {
1992
+ !o || !o.current || (Wt(o.current), al(o.current), ol(o.current));
1981
1993
  }, [o, x]);
1982
1994
  var A = w && x && Number(x) < 10 && (x === "0" || !x.toString().startsWith("0")), P = i ? i.toString().length : null;
1983
1995
  return f.createElement(
1984
1996
  f.Fragment,
1985
1997
  null,
1986
1998
  A ? f.createElement("span", { className: "".concat(n, "__leadingZero") }, "0") : null,
1987
- f.createElement("input", { "aria-label": t, autoComplete: "off", autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat(s || c), A && "".concat(n, "__input--hasLeadingZero")), "data-input": "true", disabled: a, inputMode: "numeric", max: i, min: u, name: c, onChange: d, onFocus: nl, onKeyDown: v, onKeyPress: il(P), onKeyUp: function($) {
1999
+ f.createElement("input", { "aria-label": t, autoComplete: "off", autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat(s || c), A && "".concat(n, "__input--hasLeadingZero")), "data-input": "true", disabled: a, inputMode: "numeric", max: i, min: u, name: c, onChange: v, onFocus: rl, onKeyDown: d, onKeyPress: ll(P), onKeyUp: function($) {
1988
2000
  Wt($.target), m && m($);
1989
2001
  }, placeholder: b, ref: o, required: g, step: D, type: "number", value: x !== null ? x : "" })
1990
2002
  );
1991
2003
  }
1992
- function ll(e, t, r) {
2004
+ function ul(e, t, r) {
1993
2005
  return t && t > e ? t : r && r < e ? r : e;
1994
2006
  }
1995
- function oa(e) {
2007
+ function ia(e) {
1996
2008
  return e !== null && e !== !1 && !Number.isNaN(Number(e));
1997
2009
  }
1998
2010
  function Gt() {
1999
2011
  for (var e = [], t = 0; t < arguments.length; t++)
2000
2012
  e[t] = arguments[t];
2001
- return Math.min.apply(Math, e.filter(oa));
2013
+ return Math.min.apply(Math, e.filter(ia));
2002
2014
  }
2003
2015
  function Kt() {
2004
2016
  for (var e = [], t = 0; t < arguments.length; t++)
2005
2017
  e[t] = arguments[t];
2006
- return Math.max.apply(Math, e.filter(oa));
2018
+ return Math.max.apply(Math, e.filter(ia));
2007
2019
  }
2008
2020
  var xn = function() {
2009
2021
  return xn = Object.assign || function(e) {
@@ -2013,7 +2025,7 @@ var xn = function() {
2013
2025
  }
2014
2026
  return e;
2015
2027
  }, xn.apply(this, arguments);
2016
- }, ul = function(e, t) {
2028
+ }, cl = function(e, t) {
2017
2029
  var r = {};
2018
2030
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2019
2031
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2021,12 +2033,12 @@ var xn = function() {
2021
2033
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2022
2034
  return r;
2023
2035
  };
2024
- function cl(e) {
2025
- var t = e.maxDate, r = e.minDate, n = e.month, a = e.year, o = ul(e, ["maxDate", "minDate", "month", "year"]), i = function() {
2036
+ function sl(e) {
2037
+ var t = e.maxDate, r = e.minDate, n = e.month, a = e.year, o = cl(e, ["maxDate", "minDate", "month", "year"]), i = function() {
2026
2038
  return n ? In(new Date(Number(a), Number(n) - 1, 1)) : 31;
2027
2039
  }();
2028
- function u(d) {
2029
- return a === C(d).toString() && n === Te(d).toString();
2040
+ function u(v) {
2041
+ return a === C(v).toString() && n === Te(v).toString();
2030
2042
  }
2031
2043
  var c = Gt(i, t && u(t) && Ve(t)), s = Kt(1, r && u(r) && Ve(r));
2032
2044
  return f.createElement(Bn, xn({ max: c, min: s, name: "day" }, o));
@@ -2039,7 +2051,7 @@ var En = function() {
2039
2051
  }
2040
2052
  return e;
2041
2053
  }, En.apply(this, arguments);
2042
- }, sl = function(e, t) {
2054
+ }, fl = function(e, t) {
2043
2055
  var r = {};
2044
2056
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2045
2057
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2047,8 +2059,8 @@ var En = function() {
2047
2059
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2048
2060
  return r;
2049
2061
  };
2050
- function fl(e) {
2051
- var t = e.maxDate, r = e.minDate, n = e.year, a = sl(e, ["maxDate", "minDate", "year"]);
2062
+ function vl(e) {
2063
+ var t = e.maxDate, r = e.minDate, n = e.year, a = fl(e, ["maxDate", "minDate", "year"]);
2052
2064
  function o(c) {
2053
2065
  return c && n === C(c).toString();
2054
2066
  }
@@ -2068,27 +2080,27 @@ function dl(e) {
2068
2080
  var t = new Date(e);
2069
2081
  return new Date(t.setHours(12));
2070
2082
  }
2071
- function ia(e) {
2083
+ function la(e) {
2072
2084
  return function(t, r) {
2073
2085
  return Sn(e)(t, dl(r));
2074
2086
  };
2075
2087
  }
2076
- var vl = { month: "long" }, ml = { month: "short" }, yl = ia(vl), hl = ia(ml), gl = function(e, t, r) {
2088
+ var ml = { month: "long" }, yl = { month: "short" }, hl = la(ml), gl = la(yl), bl = function(e, t, r) {
2077
2089
  if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
2078
2090
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
2079
2091
  return e.concat(o || Array.prototype.slice.call(t));
2080
2092
  };
2081
- function bl(e) {
2082
- var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.locale, u = e.maxDate, c = e.minDate, s = e.onChange, d = e.onKeyDown, v = e.placeholder, m = v === void 0 ? "--" : v, y = e.required, b = e.short, g = e.value, w = e.year;
2093
+ function pl(e) {
2094
+ var t = e.ariaLabel, r = e.autoFocus, n = e.className, a = e.disabled, o = e.inputRef, i = e.locale, u = e.maxDate, c = e.minDate, s = e.onChange, v = e.onKeyDown, d = e.placeholder, m = d === void 0 ? "--" : d, y = e.required, b = e.short, g = e.value, w = e.year;
2083
2095
  function D(H) {
2084
2096
  return H && w === C(H).toString();
2085
2097
  }
2086
- var x = Gt(12, u && D(u) && Te(u)), A = Kt(1, c && D(c) && Te(c)), P = gl([], Array(12), !0).map(function(H, k) {
2098
+ var x = Gt(12, u && D(u) && Te(u)), A = Kt(1, c && D(c) && Te(c)), P = bl([], Array(12), !0).map(function(H, k) {
2087
2099
  return new Date(2019, k, 1);
2088
- }), $ = "month", Y = b ? hl : yl;
2100
+ }), $ = "month", Y = b ? gl : hl;
2089
2101
  return f.createElement(
2090
2102
  "select",
2091
- { "aria-label": t, autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat($)), "data-input": "true", "data-select": "true", disabled: a, name: $, onChange: s, onKeyDown: d, ref: o, required: y, value: g !== null ? g : "" },
2103
+ { "aria-label": t, autoFocus: r, className: We("".concat(n, "__input"), "".concat(n, "__").concat($)), "data-input": "true", "data-select": "true", disabled: a, name: $, onChange: s, onKeyDown: v, ref: o, required: y, value: g !== null ? g : "" },
2092
2104
  !g && f.createElement("option", { value: "" }, m),
2093
2105
  P.map(function(H) {
2094
2106
  var k = Te(H), J = k < A || k > x;
@@ -2104,7 +2116,7 @@ var Cn = function() {
2104
2116
  }
2105
2117
  return e;
2106
2118
  }, Cn.apply(this, arguments);
2107
- }, pl = function(e, t) {
2119
+ }, wl = function(e, t) {
2108
2120
  var r = {};
2109
2121
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2110
2122
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2112,14 +2124,14 @@ var Cn = function() {
2112
2124
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2113
2125
  return r;
2114
2126
  };
2115
- function wl(e) {
2116
- var t = e.maxDate, r = e.minDate, n = e.placeholder, a = n === void 0 ? "----" : n, o = e.valueType, i = pl(e, ["maxDate", "minDate", "placeholder", "valueType"]), u = Gt(275760, t && C(t)), c = Kt(1, r && C(r)), s = /* @__PURE__ */ function() {
2127
+ function Dl(e) {
2128
+ var t = e.maxDate, r = e.minDate, n = e.placeholder, a = n === void 0 ? "----" : n, o = e.valueType, i = wl(e, ["maxDate", "minDate", "placeholder", "valueType"]), u = Gt(275760, t && C(t)), c = Kt(1, r && C(r)), s = /* @__PURE__ */ function() {
2117
2129
  return o === "century" ? 10 : 1;
2118
2130
  }();
2119
2131
  return f.createElement(Bn, Cn({ max: u, min: c, name: "year", placeholder: a, step: s }, i));
2120
2132
  }
2121
- function Dl(e) {
2122
- var t = e.ariaLabel, r = e.disabled, n = e.maxDate, a = e.minDate, o = e.name, i = e.onChange, u = e.required, c = e.value, s = e.valueType, d = function() {
2133
+ function Ol(e) {
2134
+ var t = e.ariaLabel, r = e.disabled, n = e.maxDate, a = e.minDate, o = e.name, i = e.onChange, u = e.required, c = e.value, s = e.valueType, v = function() {
2123
2135
  switch (s) {
2124
2136
  case "decade":
2125
2137
  case "year":
@@ -2131,15 +2143,15 @@ function Dl(e) {
2131
2143
  default:
2132
2144
  throw new Error("Invalid valueType");
2133
2145
  }
2134
- }(), v = function() {
2146
+ }(), d = function() {
2135
2147
  switch (s) {
2136
2148
  case "decade":
2137
2149
  case "year":
2138
2150
  return C;
2139
2151
  case "month":
2140
- return Eo;
2141
- case "day":
2142
2152
  return So;
2153
+ case "day":
2154
+ return Co;
2143
2155
  default:
2144
2156
  throw new Error("Invalid valueType");
2145
2157
  }
@@ -2147,13 +2159,13 @@ function Dl(e) {
2147
2159
  function m(y) {
2148
2160
  y.stopPropagation();
2149
2161
  }
2150
- return f.createElement("input", { "aria-label": t, disabled: r, hidden: !0, max: n ? v(n) : void 0, min: a ? v(a) : void 0, name: o, onChange: i, onFocus: m, required: u, style: {
2162
+ return f.createElement("input", { "aria-label": t, disabled: r, hidden: !0, max: n ? d(n) : void 0, min: a ? d(a) : void 0, name: o, onChange: i, onFocus: m, required: u, style: {
2151
2163
  visibility: "hidden",
2152
2164
  position: "absolute",
2153
2165
  zIndex: "-999"
2154
- }, type: d, value: c ? v(c) : "" });
2166
+ }, type: v, value: c ? d(c) : "" });
2155
2167
  }
2156
- function Ol(e, t) {
2168
+ function xl(e, t) {
2157
2169
  switch (e) {
2158
2170
  case "decade":
2159
2171
  return Me(t);
@@ -2167,7 +2179,7 @@ function Ol(e, t) {
2167
2179
  throw new Error("Invalid rangeType: ".concat(e));
2168
2180
  }
2169
2181
  }
2170
- function xl(e, t) {
2182
+ function El(e, t) {
2171
2183
  switch (e) {
2172
2184
  case "decade":
2173
2185
  return xt(t);
@@ -2196,100 +2208,100 @@ var at = function() {
2196
2208
  }, Lt = {}, Rt = /* @__PURE__ */ new Date();
2197
2209
  Rt.setFullYear(1, 0, 1);
2198
2210
  Rt.setHours(0, 0, 0, 0);
2199
- var pr = /* @__PURE__ */ new Date(864e13), qn = ["century", "decade", "year", "month"], El = Vt(Vt([], qn.slice(1), !0), ["day"], !1);
2200
- function Sl(e) {
2211
+ var pr = /* @__PURE__ */ new Date(864e13), qn = ["century", "decade", "year", "month"], Sl = Vt(Vt([], qn.slice(1), !0), ["day"], !1);
2212
+ function Cl(e) {
2201
2213
  return e instanceof Date ? e : new Date(e);
2202
2214
  }
2203
- function la(e) {
2215
+ function ua(e) {
2204
2216
  var t = qn.indexOf(e);
2205
- return El[t];
2217
+ return Sl[t];
2206
2218
  }
2207
- function Cl(e, t) {
2219
+ function _l(e, t) {
2208
2220
  var r = Array.isArray(e) ? e[t] : e;
2209
2221
  if (!r)
2210
2222
  return null;
2211
- var n = Sl(r);
2223
+ var n = Cl(r);
2212
2224
  if (isNaN(n.getTime()))
2213
2225
  throw new Error("Invalid date: ".concat(e));
2214
2226
  return n;
2215
2227
  }
2216
- function ua(e, t) {
2217
- var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = Cl(r, t);
2228
+ function ca(e, t) {
2229
+ var r = e.value, n = e.minDate, a = e.maxDate, o = e.maxDetail, i = _l(r, t);
2218
2230
  if (!i)
2219
2231
  return null;
2220
- var u = la(o), c = function() {
2232
+ var u = ua(o), c = function() {
2221
2233
  switch (t) {
2222
2234
  case 0:
2223
- return Ol(u, i);
2224
- case 1:
2225
2235
  return xl(u, i);
2236
+ case 1:
2237
+ return El(u, i);
2226
2238
  default:
2227
2239
  throw new Error("Invalid index value: ".concat(t));
2228
2240
  }
2229
2241
  }();
2230
- return ll(c, n, a);
2242
+ return ul(c, n, a);
2231
2243
  }
2232
2244
  var _n = function(e) {
2233
- return ua(e, 0);
2234
- }, ca = function(e) {
2235
- return ua(e, 1);
2236
- }, _l = function(e) {
2237
- return [_n, ca].map(function(t) {
2245
+ return ca(e, 0);
2246
+ }, sa = function(e) {
2247
+ return ca(e, 1);
2248
+ }, Al = function(e) {
2249
+ return [_n, sa].map(function(t) {
2238
2250
  return t(e);
2239
2251
  });
2240
2252
  };
2241
- function Al(e) {
2253
+ function Pl(e) {
2242
2254
  return e.dataset.input === "true";
2243
2255
  }
2244
2256
  function wr(e, t) {
2245
2257
  var r = e;
2246
2258
  do
2247
2259
  r = r[t];
2248
- while (r && !Al(r));
2260
+ while (r && !Pl(r));
2249
2261
  return r;
2250
2262
  }
2251
2263
  function cn(e) {
2252
2264
  e && e.focus();
2253
2265
  }
2254
- function Pl(e, t, r) {
2266
+ function Nl(e, t, r) {
2255
2267
  var n = [], a = new RegExp(Object.keys(t).map(function(i) {
2256
2268
  return "".concat(i, "+");
2257
2269
  }).join("|"), "g"), o = e.match(a);
2258
2270
  return e.split(a).reduce(function(i, u, c) {
2259
2271
  var s = u && // eslint-disable-next-line react/no-array-index-key
2260
- f.createElement(zi, { key: "separator_".concat(c) }, u), d = Vt(Vt([], i, !0), [s], !1), v = o && o[c];
2261
- if (v) {
2262
- var m = t[v] || t[Object.keys(t).find(function(y) {
2263
- return v.match(y);
2272
+ f.createElement(Xi, { key: "separator_".concat(c) }, u), v = Vt(Vt([], i, !0), [s], !1), d = o && o[c];
2273
+ if (d) {
2274
+ var m = t[d] || t[Object.keys(t).find(function(y) {
2275
+ return d.match(y);
2264
2276
  })];
2265
2277
  if (!m)
2266
- return d;
2267
- !r && n.includes(m) ? d.push(v) : (d.push(m(v, c)), n.push(m));
2278
+ return v;
2279
+ !r && n.includes(m) ? v.push(d) : (v.push(m(d, c)), n.push(m));
2268
2280
  }
2269
- return d;
2281
+ return v;
2270
2282
  }, []);
2271
2283
  }
2272
2284
  function Dr(e) {
2273
- var t = e.autoFocus, r = e.className, n = e.dayAriaLabel, a = e.dayPlaceholder, o = e.disabled, i = e.format, u = e.isCalendarOpen, c = u === void 0 ? null : u, s = e.locale, d = e.maxDate, v = e.maxDetail, m = v === void 0 ? "month" : v, y = e.minDate, b = e.monthAriaLabel, g = e.monthPlaceholder, w = e.name, D = w === void 0 ? "date" : w, x = e.nativeInputAriaLabel, A = e.onChange, P = e.onInvalidChange, $ = e.required, Y = e.returnValue, H = Y === void 0 ? "start" : Y, k = e.showLeadingZeros, J = e.value, Q = e.yearAriaLabel, se = e.yearPlaceholder, ee = Pe(null), oe = ee[0], ie = ee[1], fe = Pe(null), M = fe[0], de = fe[1], be = Pe(null), te = be[0], N = be[1], G = Pe(null), U = G[0], ve = G[1], he = Ke(null), me = Ke(null), xe = Ke(null), Ee = Ke(null), K = Pe(c), ye = K[0], Ye = K[1], Ne = Ke();
2285
+ var t = e.autoFocus, r = e.className, n = e.dayAriaLabel, a = e.dayPlaceholder, o = e.disabled, i = e.format, u = e.isCalendarOpen, c = u === void 0 ? null : u, s = e.locale, v = e.maxDate, d = e.maxDetail, m = d === void 0 ? "month" : d, y = e.minDate, b = e.monthAriaLabel, g = e.monthPlaceholder, w = e.name, D = w === void 0 ? "date" : w, x = e.nativeInputAriaLabel, A = e.onChange, P = e.onInvalidChange, $ = e.required, Y = e.returnValue, H = Y === void 0 ? "start" : Y, k = e.showLeadingZeros, J = e.value, Q = e.yearAriaLabel, se = e.yearPlaceholder, ee = Pe(null), oe = ee[0], ie = ee[1], fe = Pe(null), M = fe[0], ve = fe[1], be = Pe(null), te = be[0], N = be[1], G = Pe(null), U = G[0], de = G[1], he = Ke(null), me = Ke(null), xe = Ke(null), Ee = Ke(null), K = Pe(c), ye = K[0], Ye = K[1], Ne = Ke();
2274
2286
  yt(function() {
2275
2287
  Ye(c);
2276
2288
  }, [c]), yt(function() {
2277
2289
  var h = _n({
2278
2290
  value: J,
2279
2291
  minDate: y,
2280
- maxDate: d,
2292
+ maxDate: v,
2281
2293
  maxDetail: m
2282
2294
  });
2283
- h ? (ie(C(h).toString()), de(Te(h).toString()), N(Ve(h).toString()), ve(h)) : (ie(null), de(null), N(null), ve(null));
2295
+ h ? (ie(C(h).toString()), ve(Te(h).toString()), N(Ve(h).toString()), de(h)) : (ie(null), ve(null), N(null), de(null));
2284
2296
  }, [
2285
2297
  J,
2286
2298
  y,
2287
- d,
2299
+ v,
2288
2300
  m,
2289
2301
  // Toggling calendar visibility resets values
2290
2302
  ye
2291
2303
  ]);
2292
- var Se = la(m), ne = function() {
2304
+ var Se = ua(m), ne = function() {
2293
2305
  var h = qn.indexOf(m), O = Lt[h] || function() {
2294
2306
  var _ = { year: "numeric" };
2295
2307
  return h >= 2 && (_.month = "numeric"), h >= 3 && (_.day = "numeric"), Lt[h] = _, _;
@@ -2302,9 +2314,9 @@ function Dr(e) {
2302
2314
  case "start":
2303
2315
  return _n;
2304
2316
  case "end":
2305
- return ca;
2317
+ return sa;
2306
2318
  case "range":
2307
- return _l;
2319
+ return Al;
2308
2320
  default:
2309
2321
  throw new Error("Invalid returnValue.");
2310
2322
  }
@@ -2312,7 +2324,7 @@ function Dr(e) {
2312
2324
  return O({
2313
2325
  value: h,
2314
2326
  minDate: y,
2315
- maxDate: d,
2327
+ maxDate: v,
2316
2328
  maxDetail: m
2317
2329
  });
2318
2330
  }
@@ -2414,7 +2426,7 @@ function Dr(e) {
2414
2426
  ie(p);
2415
2427
  break;
2416
2428
  case "month":
2417
- de(p);
2429
+ ve(p);
2418
2430
  break;
2419
2431
  case "day":
2420
2432
  N(p);
@@ -2437,7 +2449,7 @@ function Dr(e) {
2437
2449
  var Le = {
2438
2450
  className: r,
2439
2451
  disabled: o,
2440
- maxDate: d || pr,
2452
+ maxDate: v || pr,
2441
2453
  minDate: y || Rt,
2442
2454
  onChange: ct,
2443
2455
  onKeyDown: pe,
@@ -2449,7 +2461,7 @@ function Dr(e) {
2449
2461
  if (h && h.length > 2)
2450
2462
  throw new Error("Unsupported token: ".concat(h));
2451
2463
  var _ = h && h.length === 2;
2452
- return f.createElement(cl, at({ key: "day" }, Le, {
2464
+ return f.createElement(sl, at({ key: "day" }, Le, {
2453
2465
  ariaLabel: n,
2454
2466
  // eslint-disable-next-line jsx-a11y/no-autofocus
2455
2467
  autoFocus: O === 0 && t,
@@ -2465,7 +2477,7 @@ function Dr(e) {
2465
2477
  if (h && h.length > 4)
2466
2478
  throw new Error("Unsupported token: ".concat(h));
2467
2479
  if (h.length > 2)
2468
- return f.createElement(bl, at({ key: "month" }, Le, {
2480
+ return f.createElement(pl, at({ key: "month" }, Le, {
2469
2481
  ariaLabel: b,
2470
2482
  // eslint-disable-next-line jsx-a11y/no-autofocus
2471
2483
  autoFocus: O === 0 && t,
@@ -2477,7 +2489,7 @@ function Dr(e) {
2477
2489
  year: oe
2478
2490
  }));
2479
2491
  var _ = h && h.length === 2;
2480
- return f.createElement(fl, at({ key: "month" }, Le, {
2492
+ return f.createElement(vl, at({ key: "month" }, Le, {
2481
2493
  ariaLabel: b,
2482
2494
  // eslint-disable-next-line jsx-a11y/no-autofocus
2483
2495
  autoFocus: O === 0 && t,
@@ -2489,7 +2501,7 @@ function Dr(e) {
2489
2501
  }));
2490
2502
  }
2491
2503
  function Qe(h, O) {
2492
- return f.createElement(wl, at({ key: "year" }, Le, {
2504
+ return f.createElement(Dl, at({ key: "year" }, Le, {
2493
2505
  ariaLabel: Q,
2494
2506
  // eslint-disable-next-line jsx-a11y/no-autofocus
2495
2507
  autoFocus: O === 0 && t,
@@ -2505,10 +2517,10 @@ function Dr(e) {
2505
2517
  M: ft,
2506
2518
  y: Qe
2507
2519
  }, O = typeof i < "u";
2508
- return Pl(ge, h, O);
2520
+ return Nl(ge, h, O);
2509
2521
  }
2510
2522
  function Ue() {
2511
- return f.createElement(Dl, { key: "date", ariaLabel: x, disabled: o, maxDate: d || pr, minDate: y || Rt, name: D, onChange: st, required: $, value: U, valueType: Se });
2523
+ return f.createElement(Ol, { key: "date", ariaLabel: x, disabled: o, maxDate: v || pr, minDate: y || Rt, name: D, onChange: st, required: $, value: U, valueType: Se });
2512
2524
  }
2513
2525
  return (
2514
2526
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
@@ -2520,7 +2532,7 @@ function Dr(e) {
2520
2532
  )
2521
2533
  );
2522
2534
  }
2523
- var Nl = function(t, r, n) {
2535
+ var kl = function(t, r, n) {
2524
2536
  var a = t, o = r, i = a[o];
2525
2537
  if (!i)
2526
2538
  return null;
@@ -2528,7 +2540,7 @@ var Nl = function(t, r, n) {
2528
2540
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
2529
2541
  var u = t.maxDate;
2530
2542
  return u && i > u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, minDate cannot be larger than maxDate.")) : null;
2531
- }, kl = function(t, r, n) {
2543
+ }, Ll = function(t, r, n) {
2532
2544
  var a = t, o = r, i = a[o];
2533
2545
  if (!i)
2534
2546
  return null;
@@ -2536,7 +2548,7 @@ var Nl = function(t, r, n) {
2536
2548
  return new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, expected instance of `Date`."));
2537
2549
  var u = t.minDate;
2538
2550
  return u && i < u ? new Error("Invalid prop `".concat(r, "` of type `").concat(typeof i, "` supplied to `").concat(n, "`, maxDate cannot be smaller than minDate.")) : null;
2539
- }, Ll = function(e) {
2551
+ }, Tl = function(e) {
2540
2552
  return l.arrayOf(e);
2541
2553
  }, Oe = function() {
2542
2554
  return Oe = Object.assign || function(e) {
@@ -2553,26 +2565,26 @@ var Nl = function(t, r, n) {
2553
2565
  for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
2554
2566
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
2555
2567
  return r;
2556
- }, Tl = typeof document < "u", le = "react-daterange-picker", Il = ["mousedown", "focusin", "touchstart"], Ml = ["century", "decade", "year", "month"], sa = {
2568
+ }, Il = typeof document < "u", le = "react-daterange-picker", Ml = ["mousedown", "focusin", "touchstart"], jl = ["century", "decade", "year", "month"], fa = {
2557
2569
  xmlns: "http://www.w3.org/2000/svg",
2558
2570
  width: 19,
2559
2571
  height: 19,
2560
2572
  viewBox: "0 0 19 19",
2561
2573
  stroke: "black",
2562
2574
  strokeWidth: 2
2563
- }, jl = f.createElement(
2575
+ }, Fl = f.createElement(
2564
2576
  "svg",
2565
- Oe({}, sa, { className: "".concat(le, "__calendar-button__icon ").concat(le, "__button__icon") }),
2577
+ Oe({}, fa, { className: "".concat(le, "__calendar-button__icon ").concat(le, "__button__icon") }),
2566
2578
  f.createElement("rect", { fill: "none", height: "15", width: "15", x: "2", y: "2" }),
2567
2579
  f.createElement("line", { x1: "6", x2: "6", y1: "0", y2: "4" }),
2568
2580
  f.createElement("line", { x1: "13", x2: "13", y1: "0", y2: "4" })
2569
- ), Fl = f.createElement(
2581
+ ), Wl = f.createElement(
2570
2582
  "svg",
2571
- Oe({}, sa, { className: "".concat(le, "__clear-button__icon ").concat(le, "__button__icon") }),
2583
+ Oe({}, fa, { className: "".concat(le, "__clear-button__icon ").concat(le, "__button__icon") }),
2572
2584
  f.createElement("line", { x1: "4", x2: "15", y1: "4", y2: "15" }),
2573
2585
  f.createElement("line", { x1: "15", x2: "4", y1: "4", y2: "15" })
2574
2586
  ), Un = function(t) {
2575
- var r = t.autoFocus, n = t.calendarAriaLabel, a = t.calendarIcon, o = a === void 0 ? jl : a, i = t.className, u = t.clearAriaLabel, c = t.clearIcon, s = c === void 0 ? Fl : c, d = t.closeCalendar, v = d === void 0 ? !0 : d, m = t["data-testid"], y = t.dayAriaLabel, b = t.dayPlaceholder, g = t.disableCalendar, w = t.disabled, D = t.format, x = t.id, A = t.isOpen, P = A === void 0 ? null : A, $ = t.locale, Y = t.maxDate, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = t.monthAriaLabel, se = t.monthPlaceholder, ee = t.name, oe = ee === void 0 ? "daterange" : ee, ie = t.nativeInputAriaLabel, fe = t.onCalendarClose, M = t.onCalendarOpen, de = t.onChange, be = t.onFocus, te = t.onInvalidChange, N = t.openCalendarOnFocus, G = N === void 0 ? !0 : N, U = t.rangeDivider, ve = U === void 0 ? "–" : U, he = t.required, me = t.shouldCloseCalendar, xe = t.shouldOpenCalendar, Ee = t.showLeadingZeros, K = t.value, ye = t.yearAriaLabel, Ye = t.yearPlaceholder, Ne = Or(t, ["autoFocus", "calendarAriaLabel", "calendarIcon", "className", "clearAriaLabel", "clearIcon", "closeCalendar", "data-testid", "dayAriaLabel", "dayPlaceholder", "disableCalendar", "disabled", "format", "id", "isOpen", "locale", "maxDate", "maxDetail", "minDate", "monthAriaLabel", "monthPlaceholder", "name", "nativeInputAriaLabel", "onCalendarClose", "onCalendarOpen", "onChange", "onFocus", "onInvalidChange", "openCalendarOnFocus", "rangeDivider", "required", "shouldCloseCalendar", "shouldOpenCalendar", "showLeadingZeros", "value", "yearAriaLabel", "yearPlaceholder"]), Se = Pe(P), ne = Se[0], L = Se[1], ge = Ke(null), Z = Ke(null);
2587
+ var r = t.autoFocus, n = t.calendarAriaLabel, a = t.calendarIcon, o = a === void 0 ? Fl : a, i = t.className, u = t.clearAriaLabel, c = t.clearIcon, s = c === void 0 ? Wl : c, v = t.closeCalendar, d = v === void 0 ? !0 : v, m = t["data-testid"], y = t.dayAriaLabel, b = t.dayPlaceholder, g = t.disableCalendar, w = t.disabled, D = t.format, x = t.id, A = t.isOpen, P = A === void 0 ? null : A, $ = t.locale, Y = t.maxDate, H = t.maxDetail, k = H === void 0 ? "month" : H, J = t.minDate, Q = t.monthAriaLabel, se = t.monthPlaceholder, ee = t.name, oe = ee === void 0 ? "daterange" : ee, ie = t.nativeInputAriaLabel, fe = t.onCalendarClose, M = t.onCalendarOpen, ve = t.onChange, be = t.onFocus, te = t.onInvalidChange, N = t.openCalendarOnFocus, G = N === void 0 ? !0 : N, U = t.rangeDivider, de = U === void 0 ? "–" : U, he = t.required, me = t.shouldCloseCalendar, xe = t.shouldOpenCalendar, Ee = t.showLeadingZeros, K = t.value, ye = t.yearAriaLabel, Ye = t.yearPlaceholder, Ne = Or(t, ["autoFocus", "calendarAriaLabel", "calendarIcon", "className", "clearAriaLabel", "clearIcon", "closeCalendar", "data-testid", "dayAriaLabel", "dayPlaceholder", "disableCalendar", "disabled", "format", "id", "isOpen", "locale", "maxDate", "maxDetail", "minDate", "monthAriaLabel", "monthPlaceholder", "name", "nativeInputAriaLabel", "onCalendarClose", "onCalendarOpen", "onChange", "onFocus", "onInvalidChange", "openCalendarOnFocus", "rangeDivider", "required", "shouldCloseCalendar", "shouldOpenCalendar", "showLeadingZeros", "value", "yearAriaLabel", "yearPlaceholder"]), Se = Pe(P), ne = Se[0], L = Se[1], ge = Ke(null), Z = Ke(null);
2576
2588
  yt(function() {
2577
2589
  L(P);
2578
2590
  }, [P]);
@@ -2588,7 +2600,7 @@ var Nl = function(t, r, n) {
2588
2600
  ne ? pe({ reason: "buttonClick" }) : ke({ reason: "buttonClick" });
2589
2601
  }
2590
2602
  function je(p, S) {
2591
- S === void 0 && (S = v), S && pe({ reason: "select" }), de && de(p);
2603
+ S === void 0 && (S = d), S && pe({ reason: "select" }), ve && ve(p);
2592
2604
  }
2593
2605
  function ct(p, S) {
2594
2606
  var j = (Array.isArray(p) ? p : [p])[0], W = Array.isArray(K) ? K : [K], R = W[1], I = R ? new Date(R) : null;
@@ -2615,7 +2627,7 @@ var Nl = function(t, r, n) {
2615
2627
  var S = ge.current, j = Z.current, W = "composedPath" in p ? p.composedPath()[0] : p.target;
2616
2628
  W && S && !S.contains(W) && (!j || !j.contains(W)) && pe({ reason: "outsideAction" });
2617
2629
  }, [Z, pe, ge]), Ue = Ae(function(p) {
2618
- p === void 0 && (p = ne), Il.forEach(function(S) {
2630
+ p === void 0 && (p = ne), Ml.forEach(function(S) {
2619
2631
  p ? document.addEventListener(S, qe) : document.removeEventListener(S, qe);
2620
2632
  }), p ? document.addEventListener("keydown", Be) : document.removeEventListener("keydown", Be);
2621
2633
  }, [ne, qe, Be]);
@@ -2646,7 +2658,7 @@ var Nl = function(t, r, n) {
2646
2658
  returnValue: "start",
2647
2659
  value: S
2648
2660
  })),
2649
- f.createElement("span", { className: "".concat(le, "__range-divider") }, ve),
2661
+ f.createElement("span", { className: "".concat(le, "__range-divider") }, de),
2650
2662
  f.createElement(Dr, Oe({}, I, { name: "".concat(oe, "_to"), onChange: st, returnValue: "end", value: j })),
2651
2663
  s !== null && f.createElement("button", { "aria-label": u, className: "".concat(le, "__clear-button ").concat(le, "__button"), disabled: w, onClick: ft, onFocus: Qe, type: "button" }, typeof s == "function" ? f.createElement(s) : s),
2652
2664
  o !== null && !g && f.createElement("button", { "aria-label": n, className: "".concat(le, "__calendar-button ").concat(le, "__button"), disabled: w, onClick: Je, onFocus: Qe, type: "button" }, typeof o == "function" ? f.createElement(o) : o)
@@ -2657,11 +2669,11 @@ var Nl = function(t, r, n) {
2657
2669
  return null;
2658
2670
  var p = t.calendarClassName;
2659
2671
  t.className, t.onChange;
2660
- var S = t.portalContainer, j = t.value, W = Or(t, ["calendarClassName", "className", "onChange", "portalContainer", "value"]), R = "".concat(le, "__calendar"), I = We(R, "".concat(R, "--").concat(ne ? "open" : "closed")), z = f.createElement(ta, Oe({ className: p, onChange: function(re) {
2672
+ var S = t.portalContainer, j = t.value, W = Or(t, ["calendarClassName", "className", "onChange", "portalContainer", "value"]), R = "".concat(le, "__calendar"), I = We(R, "".concat(R, "--").concat(ne ? "open" : "closed")), z = f.createElement(na, Oe({ className: p, onChange: function(re) {
2661
2673
  return je(re);
2662
2674
  }, selectRange: !0, value: j }, W));
2663
- return S ? xa(f.createElement("div", { ref: Z, className: I }, z), S) : f.createElement(
2664
- Zi,
2675
+ return S ? Ea(f.createElement("div", { ref: Z, className: I }, z), S) : f.createElement(
2676
+ zi,
2665
2677
  null,
2666
2678
  f.createElement("div", { ref: function(re) {
2667
2679
  re && !ne && re.removeAttribute("style");
@@ -2669,7 +2681,7 @@ var Nl = function(t, r, n) {
2669
2681
  );
2670
2682
  }
2671
2683
  var _ = sn(function() {
2672
- return Za(Ne);
2684
+ return za(Ne);
2673
2685
  }, [Ne]);
2674
2686
  return f.createElement(
2675
2687
  "div",
@@ -2677,7 +2689,7 @@ var Nl = function(t, r, n) {
2677
2689
  h(),
2678
2690
  O()
2679
2691
  );
2680
- }, xr = l.oneOfType([l.string, l.instanceOf(Date)]), Wl = l.oneOfType([xr, Ll(xr)]);
2692
+ }, xr = l.oneOfType([l.string, l.instanceOf(Date)]), Vl = l.oneOfType([xr, Tl(xr)]);
2681
2693
  Un.propTypes = {
2682
2694
  autoFocus: l.bool,
2683
2695
  calendarAriaLabel: l.string,
@@ -2696,9 +2708,9 @@ Un.propTypes = {
2696
2708
  id: l.string,
2697
2709
  isOpen: l.bool,
2698
2710
  locale: l.string,
2699
- maxDate: kl,
2700
- maxDetail: l.oneOf(Ml),
2701
- minDate: Nl,
2711
+ maxDate: Ll,
2712
+ maxDetail: l.oneOf(jl),
2713
+ minDate: kl,
2702
2714
  monthAriaLabel: l.string,
2703
2715
  monthPlaceholder: l.string,
2704
2716
  name: l.string,
@@ -2711,16 +2723,16 @@ Un.propTypes = {
2711
2723
  rangeDivider: l.node,
2712
2724
  required: l.bool,
2713
2725
  showLeadingZeros: l.bool,
2714
- value: Wl,
2726
+ value: Vl,
2715
2727
  yearAriaLabel: l.string,
2716
2728
  yearPlaceholder: l.string
2717
2729
  };
2718
- Tl && (Un.propTypes.portalContainer = l.instanceOf(HTMLElement));
2730
+ Il && (Un.propTypes.portalContainer = l.instanceOf(HTMLElement));
2719
2731
  const Kl = ({ label: e, sx: t, ...r }) => {
2720
2732
  const n = Array.isArray(r.value) ? r.value[0] : r.value;
2721
- return /* @__PURE__ */ ga(Ea, { sx: t, children: [
2733
+ return /* @__PURE__ */ ba(Sa, { sx: t, children: [
2722
2734
  /* @__PURE__ */ _t(
2723
- Sa,
2735
+ Ca,
2724
2736
  {
2725
2737
  variant: "caption",
2726
2738
  className: "react-daterange-picker__label",
@@ -2731,8 +2743,8 @@ const Kl = ({ label: e, sx: t, ...r }) => {
2731
2743
  Un,
2732
2744
  {
2733
2745
  ...r,
2734
- calendarIcon: /* @__PURE__ */ _t(Pa, { color: "action" }),
2735
- clearIcon: n ? /* @__PURE__ */ _t(_a, { color: "error" }) : null
2746
+ calendarIcon: /* @__PURE__ */ _t(Na, { color: "action" }),
2747
+ clearIcon: n ? /* @__PURE__ */ _t(Aa, { color: "error" }) : null
2736
2748
  }
2737
2749
  )
2738
2750
  ] });