@pismo/marola 2.1.27 → 2.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,35 @@
1
- import { jsx as S, jsxs as Ne } from "react/jsx-runtime";
2
- import * as V from "react";
3
- import { useState as se, useRef as st, useEffect as We, useCallback as Ft } from "react";
4
- import { c as lt } from "../../clsx-OuTLNxxd.js";
5
- import { r as Ut, d as U } from "../../dayjs.min-ClQKmc--.js";
6
- import { g as Ye } from "../../_commonjsHelpers-C6fGbg64.js";
7
- import { DoubleInput as zt } from "../DoubleInput/DoubleInput.js";
8
- import { Icon as qe } from "../Icon/Icon.js";
9
- import { Input as Xt } from "../Input/Input.js";
10
- import { isDisabled as Jt, getPreviousMonth as Kt, getNextMonth as Gt } from "./dateUtils.js";
11
- import { handleDatePickerKeyDown as Zt } from "./keyboardNavigation.js";
12
- import { renderCalendarDays as Qt } from "./renderCalendarDays.js";
13
- import { renderDualCalendarHeader as er } from "./renderDualCalendarHeader.js";
14
- import { renderHeader as tr } from "./renderHeader.js";
15
- import { renderNavigatorInput as rr } from "./renderNavigatorInput.js";
16
- import { renderPeriodSelection as nr } from "./renderPeriodSelection.js";
17
- import { s as he } from "../../DatePicker.module-CnuDEiKF.js";
18
- import { P as h, g as or, a as ar, b as Tt, _ as je, u as ct, c as ir, d as sr, e as lr } from "../../useSlotProps-CYHDC4TN.js";
19
- import { o as ft, c as cr } from "../../ownerDocument-By592Iy6.js";
20
- import { P as fr, H as pt } from "../../Portal-DJapUCn6.js";
21
- import { u as ut } from "../../useEnhancedEffect-CJGo-L3B.js";
22
- import { C as pr } from "../../ClickAwayListener-Z08peX_P.js";
23
- const ur = h.oneOfType([h.func, h.object]);
24
- var Y = "top", W = "bottom", q = "right", $ = "left", Fe = "auto", Oe = [Y, W, q, $], ue = "start", xe = "end", dr = "clippingParents", At = "viewport", ye = "popper", vr = "reference", dt = /* @__PURE__ */ Oe.reduce(function(t, e) {
25
- return t.concat([e + "-" + ue, e + "-" + xe]);
26
- }, []), kt = /* @__PURE__ */ [].concat(Oe, [Fe]).reduce(function(t, e) {
27
- return t.concat([e, e + "-" + ue, e + "-" + xe]);
28
- }, []), mr = "beforeRead", hr = "read", yr = "afterRead", gr = "beforeMain", br = "main", xr = "afterMain", wr = "beforeWrite", Or = "write", Pr = "afterWrite", Er = [mr, hr, yr, gr, br, xr, wr, Or, Pr];
29
- function X(t) {
1
+ import { jsx as Y, jsxs as Ie } from "react/jsx-runtime";
2
+ import * as F from "react";
3
+ import { useState as ce, useRef as ft, useEffect as Ve, useCallback as Ut } from "react";
4
+ import { c as pt } from "../../clsx-OuTLNxxd.js";
5
+ import { r as zt, d as X } from "../../dayjs.min-ClQKmc--.js";
6
+ import { g as Be } from "../../_commonjsHelpers-C6fGbg64.js";
7
+ import { DoubleInput as Xt } from "../DoubleInput/DoubleInput.js";
8
+ import { Icon as Fe } from "../Icon/Icon.js";
9
+ import { Input as Jt } from "../Input/Input.js";
10
+ import { isDisabled as Kt, getPreviousMonth as Gt, getNextMonth as Zt } from "./dateUtils.js";
11
+ import { handleDatePickerKeyDown as Qt } from "./keyboardNavigation.js";
12
+ import { renderCalendarDays as er } from "./renderCalendarDays.js";
13
+ import { renderDualCalendarHeader as tr } from "./renderDualCalendarHeader.js";
14
+ import { renderHeader as rr } from "./renderHeader.js";
15
+ import { renderNavigatorInput as nr } from "./renderNavigatorInput.js";
16
+ import { renderPeriodSelection as or } from "./renderPeriodSelection.js";
17
+ import { s as ye } from "../../DatePicker.module-CnuDEiKF.js";
18
+ import { P as b, g as ar, a as ir, b as Ct, _ as Se, u as ut, c as sr, d as lr, e as cr } from "../../useSlotProps-CYHDC4TN.js";
19
+ import { o as dt, c as fr } from "../../ownerDocument-By592Iy6.js";
20
+ import { P as pr, H as vt } from "../../Portal-DJapUCn6.js";
21
+ import { u as mt } from "../../useEnhancedEffect-CJGo-L3B.js";
22
+ import { C as ur } from "../../ClickAwayListener-Z08peX_P.js";
23
+ const dr = b.oneOfType([b.func, b.object]);
24
+ var $ = "top", q = "bottom", I = "right", B = "left", Je = "auto", Pe = [$, q, I, B], ue = "start", we = "end", vr = "clippingParents", _t = "viewport", ge = "popper", mr = "reference", ht = /* @__PURE__ */ Pe.reduce(function(t, e) {
25
+ return t.concat([e + "-" + ue, e + "-" + we]);
26
+ }, []), jt = /* @__PURE__ */ [].concat(Pe, [Je]).reduce(function(t, e) {
27
+ return t.concat([e, e + "-" + ue, e + "-" + we]);
28
+ }, []), hr = "beforeRead", yr = "read", gr = "afterRead", br = "beforeMain", xr = "main", wr = "afterMain", Or = "beforeWrite", Pr = "write", Er = "afterWrite", Mr = [hr, yr, gr, br, xr, wr, Or, Pr, Er];
29
+ function K(t) {
30
30
  return t ? (t.nodeName || "").toLowerCase() : null;
31
31
  }
32
- function H(t) {
32
+ function N(t) {
33
33
  if (t == null)
34
34
  return window;
35
35
  if (t.toString() !== "[object Window]") {
@@ -38,31 +38,31 @@ function H(t) {
38
38
  }
39
39
  return t;
40
40
  }
41
- function ce(t) {
42
- var e = H(t).Element;
41
+ function pe(t) {
42
+ var e = N(t).Element;
43
43
  return t instanceof e || t instanceof Element;
44
44
  }
45
- function N(t) {
46
- var e = H(t).HTMLElement;
45
+ function W(t) {
46
+ var e = N(t).HTMLElement;
47
47
  return t instanceof e || t instanceof HTMLElement;
48
48
  }
49
- function Ue(t) {
49
+ function Ke(t) {
50
50
  if (typeof ShadowRoot > "u")
51
51
  return !1;
52
- var e = H(t).ShadowRoot;
52
+ var e = N(t).ShadowRoot;
53
53
  return t instanceof e || t instanceof ShadowRoot;
54
54
  }
55
- function Mr(t) {
55
+ function Dr(t) {
56
56
  var e = t.state;
57
57
  Object.keys(e.elements).forEach(function(r) {
58
58
  var n = e.styles[r] || {}, o = e.attributes[r] || {}, a = e.elements[r];
59
- !N(a) || !X(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
59
+ !W(a) || !K(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
60
60
  var i = o[l];
61
61
  i === !1 ? a.removeAttribute(l) : a.setAttribute(l, i === !0 ? "" : i);
62
62
  }));
63
63
  });
64
64
  }
65
- function Dr(t) {
65
+ function Rr(t) {
66
66
  var e = t.state, r = {
67
67
  popper: {
68
68
  position: e.options.strategy,
@@ -80,50 +80,50 @@ function Dr(t) {
80
80
  var o = e.elements[n], a = e.attributes[n] || {}, l = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), i = l.reduce(function(s, f) {
81
81
  return s[f] = "", s;
82
82
  }, {});
83
- !N(o) || !X(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
83
+ !W(o) || !K(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
84
84
  o.removeAttribute(s);
85
85
  }));
86
86
  });
87
87
  };
88
88
  }
89
- const Rr = {
89
+ const Tr = {
90
90
  name: "applyStyles",
91
91
  enabled: !0,
92
92
  phase: "write",
93
- fn: Mr,
94
- effect: Dr,
93
+ fn: Dr,
94
+ effect: Rr,
95
95
  requires: ["computeStyles"]
96
96
  };
97
- function z(t) {
97
+ function J(t) {
98
98
  return t.split("-")[0];
99
99
  }
100
- var le = Math.max, Le = Math.min, de = Math.round;
101
- function Ie() {
100
+ var fe = Math.max, Ye = Math.min, de = Math.round;
101
+ function ze() {
102
102
  var t = navigator.userAgentData;
103
103
  return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
104
104
  return e.brand + "/" + e.version;
105
105
  }).join(" ") : navigator.userAgent;
106
106
  }
107
- function Ct() {
108
- return !/^((?!chrome|android).)*safari/i.test(Ie());
107
+ function Lt() {
108
+ return !/^((?!chrome|android).)*safari/i.test(ze());
109
109
  }
110
110
  function ve(t, e, r) {
111
111
  e === void 0 && (e = !1), r === void 0 && (r = !1);
112
112
  var n = t.getBoundingClientRect(), o = 1, a = 1;
113
- e && N(t) && (o = t.offsetWidth > 0 && de(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && de(n.height) / t.offsetHeight || 1);
114
- var l = ce(t) ? H(t) : window, i = l.visualViewport, s = !Ct() && r, f = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, m = n.width / o, b = n.height / a;
113
+ e && W(t) && (o = t.offsetWidth > 0 && de(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && de(n.height) / t.offsetHeight || 1);
114
+ var l = pe(t) ? N(t) : window, i = l.visualViewport, s = !Lt() && r, f = (n.left + (s && i ? i.offsetLeft : 0)) / o, c = (n.top + (s && i ? i.offsetTop : 0)) / a, m = n.width / o, h = n.height / a;
115
115
  return {
116
116
  width: m,
117
- height: b,
117
+ height: h,
118
118
  top: c,
119
119
  right: f + m,
120
- bottom: c + b,
120
+ bottom: c + h,
121
121
  left: f,
122
122
  x: f,
123
123
  y: c
124
124
  };
125
125
  }
126
- function ze(t) {
126
+ function Ge(t) {
127
127
  var e = ve(t), r = t.offsetWidth, n = t.offsetHeight;
128
128
  return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
129
129
  x: t.offsetLeft,
@@ -132,11 +132,11 @@ function ze(t) {
132
132
  height: n
133
133
  };
134
134
  }
135
- function _t(t, e) {
135
+ function St(t, e) {
136
136
  var r = e.getRootNode && e.getRootNode();
137
137
  if (t.contains(e))
138
138
  return !0;
139
- if (r && Ue(r)) {
139
+ if (r && Ke(r)) {
140
140
  var n = e;
141
141
  do {
142
142
  if (n && t.isSameNode(n))
@@ -146,66 +146,66 @@ function _t(t, e) {
146
146
  }
147
147
  return !1;
148
148
  }
149
- function Q(t) {
150
- return H(t).getComputedStyle(t);
149
+ function Z(t) {
150
+ return N(t).getComputedStyle(t);
151
151
  }
152
- function Tr(t) {
153
- return ["table", "td", "th"].indexOf(X(t)) >= 0;
152
+ function Ar(t) {
153
+ return ["table", "td", "th"].indexOf(K(t)) >= 0;
154
154
  }
155
- function te(t) {
156
- return ((ce(t) ? t.ownerDocument : (
155
+ function re(t) {
156
+ return ((pe(t) ? t.ownerDocument : (
157
157
  // $FlowFixMe[prop-missing]
158
158
  t.document
159
159
  )) || window.document).documentElement;
160
160
  }
161
- function $e(t) {
162
- return X(t) === "html" ? t : (
161
+ function He(t) {
162
+ return K(t) === "html" ? t : (
163
163
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
164
164
  // $FlowFixMe[incompatible-return]
165
165
  // $FlowFixMe[prop-missing]
166
166
  t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
167
167
  t.parentNode || // DOM Element detected
168
- (Ue(t) ? t.host : null) || // ShadowRoot detected
168
+ (Ke(t) ? t.host : null) || // ShadowRoot detected
169
169
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
170
- te(t)
170
+ re(t)
171
171
  );
172
172
  }
173
- function vt(t) {
174
- return !N(t) || // https://github.com/popperjs/popper-core/issues/837
175
- Q(t).position === "fixed" ? null : t.offsetParent;
173
+ function yt(t) {
174
+ return !W(t) || // https://github.com/popperjs/popper-core/issues/837
175
+ Z(t).position === "fixed" ? null : t.offsetParent;
176
176
  }
177
- function Ar(t) {
178
- var e = /firefox/i.test(Ie()), r = /Trident/i.test(Ie());
179
- if (r && N(t)) {
180
- var n = Q(t);
177
+ function kr(t) {
178
+ var e = /firefox/i.test(ze()), r = /Trident/i.test(ze());
179
+ if (r && W(t)) {
180
+ var n = Z(t);
181
181
  if (n.position === "fixed")
182
182
  return null;
183
183
  }
184
- var o = $e(t);
185
- for (Ue(o) && (o = o.host); N(o) && ["html", "body"].indexOf(X(o)) < 0; ) {
186
- var a = Q(o);
184
+ var o = He(t);
185
+ for (Ke(o) && (o = o.host); W(o) && ["html", "body"].indexOf(K(o)) < 0; ) {
186
+ var a = Z(o);
187
187
  if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
188
188
  return o;
189
189
  o = o.parentNode;
190
190
  }
191
191
  return null;
192
192
  }
193
- function Pe(t) {
194
- for (var e = H(t), r = vt(t); r && Tr(r) && Q(r).position === "static"; )
195
- r = vt(r);
196
- return r && (X(r) === "html" || X(r) === "body" && Q(r).position === "static") ? e : r || Ar(t) || e;
193
+ function Ee(t) {
194
+ for (var e = N(t), r = yt(t); r && Ar(r) && Z(r).position === "static"; )
195
+ r = yt(r);
196
+ return r && (K(r) === "html" || K(r) === "body" && Z(r).position === "static") ? e : r || kr(t) || e;
197
197
  }
198
- function Xe(t) {
198
+ function Ze(t) {
199
199
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
200
200
  }
201
- function ge(t, e, r) {
202
- return le(t, Le(e, r));
201
+ function be(t, e, r) {
202
+ return fe(t, Ye(e, r));
203
203
  }
204
- function kr(t, e, r) {
205
- var n = ge(t, e, r);
204
+ function Cr(t, e, r) {
205
+ var n = be(t, e, r);
206
206
  return n > r ? r : n;
207
207
  }
208
- function jt() {
208
+ function Yt() {
209
209
  return {
210
210
  top: 0,
211
211
  right: 0,
@@ -213,114 +213,114 @@ function jt() {
213
213
  left: 0
214
214
  };
215
215
  }
216
- function Lt(t) {
217
- return Object.assign({}, jt(), t);
216
+ function $t(t) {
217
+ return Object.assign({}, Yt(), t);
218
218
  }
219
- function St(t, e) {
219
+ function Bt(t, e) {
220
220
  return e.reduce(function(r, n) {
221
221
  return r[n] = t, r;
222
222
  }, {});
223
223
  }
224
- var Cr = function(e, r) {
224
+ var _r = function(e, r) {
225
225
  return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
226
226
  placement: r.placement
227
- })) : e, Lt(typeof e != "number" ? e : St(e, Oe));
227
+ })) : e, $t(typeof e != "number" ? e : Bt(e, Pe));
228
228
  };
229
- function _r(t) {
230
- var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = z(r.placement), s = Xe(i), f = [$, q].indexOf(i) >= 0, c = f ? "height" : "width";
229
+ function jr(t) {
230
+ var e, r = t.state, n = t.name, o = t.options, a = r.elements.arrow, l = r.modifiersData.popperOffsets, i = J(r.placement), s = Ze(i), f = [B, I].indexOf(i) >= 0, c = f ? "height" : "width";
231
231
  if (!(!a || !l)) {
232
- var m = Cr(o.padding, r), b = ze(a), u = s === "y" ? Y : $, E = s === "y" ? W : q, d = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], y = l[s] - r.rects.reference[s], D = Pe(a), M = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, O = d / 2 - y / 2, p = m[u], x = M - b[c] - m[E], v = M / 2 - b[c] / 2 + O, w = ge(p, v, x), P = s;
233
- r.modifiersData[n] = (e = {}, e[P] = w, e.centerOffset = w - v, e);
232
+ var m = _r(o.padding, r), h = Ge(a), p = s === "y" ? $ : B, O = s === "y" ? q : I, u = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], x = l[s] - r.rects.reference[s], D = Ee(a), R = D ? s === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, E = u / 2 - x / 2, d = m[p], y = R - h[c] - m[O], w = R / 2 - h[c] / 2 + E, v = be(d, w, y), A = s;
233
+ r.modifiersData[n] = (e = {}, e[A] = v, e.centerOffset = v - w, e);
234
234
  }
235
235
  }
236
- function jr(t) {
236
+ function Lr(t) {
237
237
  var e = t.state, r = t.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
238
- o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || _t(e.elements.popper, o) && (e.elements.arrow = o));
238
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || St(e.elements.popper, o) && (e.elements.arrow = o));
239
239
  }
240
- const Lr = {
240
+ const Sr = {
241
241
  name: "arrow",
242
242
  enabled: !0,
243
243
  phase: "main",
244
- fn: _r,
245
- effect: jr,
244
+ fn: jr,
245
+ effect: Lr,
246
246
  requires: ["popperOffsets"],
247
247
  requiresIfExists: ["preventOverflow"]
248
248
  };
249
249
  function me(t) {
250
250
  return t.split("-")[1];
251
251
  }
252
- var Sr = {
252
+ var Yr = {
253
253
  top: "auto",
254
254
  right: "auto",
255
255
  bottom: "auto",
256
256
  left: "auto"
257
257
  };
258
- function Yr(t, e) {
258
+ function $r(t, e) {
259
259
  var r = t.x, n = t.y, o = e.devicePixelRatio || 1;
260
260
  return {
261
261
  x: de(r * o) / o || 0,
262
262
  y: de(n * o) / o || 0
263
263
  };
264
264
  }
265
- function mt(t) {
266
- var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, f = t.adaptive, c = t.roundOffsets, m = t.isFixed, b = l.x, u = b === void 0 ? 0 : b, E = l.y, d = E === void 0 ? 0 : E, y = typeof c == "function" ? c({
267
- x: u,
268
- y: d
265
+ function gt(t) {
266
+ var e, r = t.popper, n = t.popperRect, o = t.placement, a = t.variation, l = t.offsets, i = t.position, s = t.gpuAcceleration, f = t.adaptive, c = t.roundOffsets, m = t.isFixed, h = l.x, p = h === void 0 ? 0 : h, O = l.y, u = O === void 0 ? 0 : O, x = typeof c == "function" ? c({
267
+ x: p,
268
+ y: u
269
269
  }) : {
270
- x: u,
271
- y: d
270
+ x: p,
271
+ y: u
272
272
  };
273
- u = y.x, d = y.y;
274
- var D = l.hasOwnProperty("x"), M = l.hasOwnProperty("y"), O = $, p = Y, x = window;
273
+ p = x.x, u = x.y;
274
+ var D = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), E = B, d = $, y = window;
275
275
  if (f) {
276
- var v = Pe(r), w = "clientHeight", P = "clientWidth";
277
- if (v === H(r) && (v = te(r), Q(v).position !== "static" && i === "absolute" && (w = "scrollHeight", P = "scrollWidth")), v = v, o === Y || (o === $ || o === q) && a === xe) {
278
- p = W;
279
- var g = m && v === x && x.visualViewport ? x.visualViewport.height : (
276
+ var w = Ee(r), v = "clientHeight", A = "clientWidth";
277
+ if (w === N(r) && (w = re(r), Z(w).position !== "static" && i === "absolute" && (v = "scrollHeight", A = "scrollWidth")), w = w, o === $ || (o === B || o === I) && a === we) {
278
+ d = q;
279
+ var g = m && w === y && y.visualViewport ? y.visualViewport.height : (
280
280
  // $FlowFixMe[prop-missing]
281
- v[w]
281
+ w[v]
282
282
  );
283
- d -= g - n.height, d *= s ? 1 : -1;
283
+ u -= g - n.height, u *= s ? 1 : -1;
284
284
  }
285
- if (o === $ || (o === Y || o === W) && a === xe) {
286
- O = q;
287
- var T = m && v === x && x.visualViewport ? x.visualViewport.width : (
285
+ if (o === B || (o === $ || o === q) && a === we) {
286
+ E = I;
287
+ var P = m && w === y && y.visualViewport ? y.visualViewport.width : (
288
288
  // $FlowFixMe[prop-missing]
289
- v[P]
289
+ w[A]
290
290
  );
291
- u -= T - n.width, u *= s ? 1 : -1;
291
+ p -= P - n.width, p *= s ? 1 : -1;
292
292
  }
293
293
  }
294
- var k = Object.assign({
294
+ var M = Object.assign({
295
295
  position: i
296
- }, f && Sr), A = c === !0 ? Yr({
297
- x: u,
298
- y: d
299
- }, H(r)) : {
300
- x: u,
301
- y: d
296
+ }, f && Yr), k = c === !0 ? $r({
297
+ x: p,
298
+ y: u
299
+ }, N(r)) : {
300
+ x: p,
301
+ y: u
302
302
  };
303
- if (u = A.x, d = A.y, s) {
304
- var C;
305
- return Object.assign({}, k, (C = {}, C[p] = M ? "0" : "", C[O] = D ? "0" : "", C.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + d + "px)" : "translate3d(" + u + "px, " + d + "px, 0)", C));
303
+ if (p = k.x, u = k.y, s) {
304
+ var j;
305
+ return Object.assign({}, M, (j = {}, j[d] = R ? "0" : "", j[E] = D ? "0" : "", j.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + u + "px)" : "translate3d(" + p + "px, " + u + "px, 0)", j));
306
306
  }
307
- return Object.assign({}, k, (e = {}, e[p] = M ? d + "px" : "", e[O] = D ? u + "px" : "", e.transform = "", e));
307
+ return Object.assign({}, M, (e = {}, e[d] = R ? u + "px" : "", e[E] = D ? p + "px" : "", e.transform = "", e));
308
308
  }
309
- function $r(t) {
309
+ function Br(t) {
310
310
  var e = t.state, r = t.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, l = a === void 0 ? !0 : a, i = r.roundOffsets, s = i === void 0 ? !0 : i, f = {
311
- placement: z(e.placement),
311
+ placement: J(e.placement),
312
312
  variation: me(e.placement),
313
313
  popper: e.elements.popper,
314
314
  popperRect: e.rects.popper,
315
315
  gpuAcceleration: o,
316
316
  isFixed: e.options.strategy === "fixed"
317
317
  };
318
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, mt(Object.assign({}, f, {
318
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, gt(Object.assign({}, f, {
319
319
  offsets: e.modifiersData.popperOffsets,
320
320
  position: e.options.strategy,
321
321
  adaptive: l,
322
322
  roundOffsets: s
323
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, mt(Object.assign({}, f, {
323
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, gt(Object.assign({}, f, {
324
324
  offsets: e.modifiersData.arrow,
325
325
  position: "absolute",
326
326
  adaptive: !1,
@@ -329,105 +329,105 @@ function $r(t) {
329
329
  "data-popper-placement": e.placement
330
330
  });
331
331
  }
332
- const Br = {
332
+ const Hr = {
333
333
  name: "computeStyles",
334
334
  enabled: !0,
335
335
  phase: "beforeWrite",
336
- fn: $r,
336
+ fn: Br,
337
337
  data: {}
338
338
  };
339
- var Me = {
339
+ var Re = {
340
340
  passive: !0
341
341
  };
342
- function Hr(t) {
343
- var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = H(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
342
+ function Nr(t) {
343
+ var e = t.state, r = t.instance, n = t.options, o = n.scroll, a = o === void 0 ? !0 : o, l = n.resize, i = l === void 0 ? !0 : l, s = N(e.elements.popper), f = [].concat(e.scrollParents.reference, e.scrollParents.popper);
344
344
  return a && f.forEach(function(c) {
345
- c.addEventListener("scroll", r.update, Me);
346
- }), i && s.addEventListener("resize", r.update, Me), function() {
345
+ c.addEventListener("scroll", r.update, Re);
346
+ }), i && s.addEventListener("resize", r.update, Re), function() {
347
347
  a && f.forEach(function(c) {
348
- c.removeEventListener("scroll", r.update, Me);
349
- }), i && s.removeEventListener("resize", r.update, Me);
348
+ c.removeEventListener("scroll", r.update, Re);
349
+ }), i && s.removeEventListener("resize", r.update, Re);
350
350
  };
351
351
  }
352
- const Nr = {
352
+ const Wr = {
353
353
  name: "eventListeners",
354
354
  enabled: !0,
355
355
  phase: "write",
356
356
  fn: function() {
357
357
  },
358
- effect: Hr,
358
+ effect: Nr,
359
359
  data: {}
360
360
  };
361
- var Wr = {
361
+ var qr = {
362
362
  left: "right",
363
363
  right: "left",
364
364
  bottom: "top",
365
365
  top: "bottom"
366
366
  };
367
- function De(t) {
367
+ function Te(t) {
368
368
  return t.replace(/left|right|bottom|top/g, function(e) {
369
- return Wr[e];
369
+ return qr[e];
370
370
  });
371
371
  }
372
- var qr = {
372
+ var Ir = {
373
373
  start: "end",
374
374
  end: "start"
375
375
  };
376
- function ht(t) {
376
+ function bt(t) {
377
377
  return t.replace(/start|end/g, function(e) {
378
- return qr[e];
378
+ return Ir[e];
379
379
  });
380
380
  }
381
- function Je(t) {
382
- var e = H(t), r = e.pageXOffset, n = e.pageYOffset;
381
+ function Qe(t) {
382
+ var e = N(t), r = e.pageXOffset, n = e.pageYOffset;
383
383
  return {
384
384
  scrollLeft: r,
385
385
  scrollTop: n
386
386
  };
387
387
  }
388
- function Ke(t) {
389
- return ve(te(t)).left + Je(t).scrollLeft;
388
+ function et(t) {
389
+ return ve(re(t)).left + Qe(t).scrollLeft;
390
390
  }
391
- function Ir(t, e) {
392
- var r = H(t), n = te(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
391
+ function Vr(t, e) {
392
+ var r = N(t), n = re(t), o = r.visualViewport, a = n.clientWidth, l = n.clientHeight, i = 0, s = 0;
393
393
  if (o) {
394
394
  a = o.width, l = o.height;
395
- var f = Ct();
395
+ var f = Lt();
396
396
  (f || !f && e === "fixed") && (i = o.offsetLeft, s = o.offsetTop);
397
397
  }
398
398
  return {
399
399
  width: a,
400
400
  height: l,
401
- x: i + Ke(t),
401
+ x: i + et(t),
402
402
  y: s
403
403
  };
404
404
  }
405
- function Vr(t) {
406
- var e, r = te(t), n = Je(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = le(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = le(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + Ke(t), s = -n.scrollTop;
407
- return Q(o || r).direction === "rtl" && (i += le(r.clientWidth, o ? o.clientWidth : 0) - a), {
405
+ function Fr(t) {
406
+ var e, r = re(t), n = Qe(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = fe(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = fe(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -n.scrollLeft + et(t), s = -n.scrollTop;
407
+ return Z(o || r).direction === "rtl" && (i += fe(r.clientWidth, o ? o.clientWidth : 0) - a), {
408
408
  width: a,
409
409
  height: l,
410
410
  x: i,
411
411
  y: s
412
412
  };
413
413
  }
414
- function Ge(t) {
415
- var e = Q(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
414
+ function tt(t) {
415
+ var e = Z(t), r = e.overflow, n = e.overflowX, o = e.overflowY;
416
416
  return /auto|scroll|overlay|hidden/.test(r + o + n);
417
417
  }
418
- function Yt(t) {
419
- return ["html", "body", "#document"].indexOf(X(t)) >= 0 ? t.ownerDocument.body : N(t) && Ge(t) ? t : Yt($e(t));
418
+ function Ht(t) {
419
+ return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : W(t) && tt(t) ? t : Ht(He(t));
420
420
  }
421
- function be(t, e) {
421
+ function xe(t, e) {
422
422
  var r;
423
423
  e === void 0 && (e = []);
424
- var n = Yt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = H(n), l = o ? [a].concat(a.visualViewport || [], Ge(n) ? n : []) : n, i = e.concat(l);
424
+ var n = Ht(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = N(n), l = o ? [a].concat(a.visualViewport || [], tt(n) ? n : []) : n, i = e.concat(l);
425
425
  return o ? i : (
426
426
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
427
- i.concat(be($e(l)))
427
+ i.concat(xe(He(l)))
428
428
  );
429
429
  }
430
- function Ve(t) {
430
+ function Xe(t) {
431
431
  return Object.assign({}, t, {
432
432
  left: t.x,
433
433
  top: t.y,
@@ -435,48 +435,48 @@ function Ve(t) {
435
435
  bottom: t.y + t.height
436
436
  });
437
437
  }
438
- function Fr(t, e) {
438
+ function Ur(t, e) {
439
439
  var r = ve(t, !1, e === "fixed");
440
440
  return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
441
441
  }
442
- function yt(t, e, r) {
443
- return e === At ? Ve(Ir(t, r)) : ce(e) ? Fr(e, r) : Ve(Vr(te(t)));
442
+ function xt(t, e, r) {
443
+ return e === _t ? Xe(Vr(t, r)) : pe(e) ? Ur(e, r) : Xe(Fr(re(t)));
444
444
  }
445
- function Ur(t) {
446
- var e = be($e(t)), r = ["absolute", "fixed"].indexOf(Q(t).position) >= 0, n = r && N(t) ? Pe(t) : t;
447
- return ce(n) ? e.filter(function(o) {
448
- return ce(o) && _t(o, n) && X(o) !== "body";
445
+ function zr(t) {
446
+ var e = xe(He(t)), r = ["absolute", "fixed"].indexOf(Z(t).position) >= 0, n = r && W(t) ? Ee(t) : t;
447
+ return pe(n) ? e.filter(function(o) {
448
+ return pe(o) && St(o, n) && K(o) !== "body";
449
449
  }) : [];
450
450
  }
451
- function zr(t, e, r, n) {
452
- var o = e === "clippingParents" ? Ur(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, f) {
453
- var c = yt(t, f, n);
454
- return s.top = le(c.top, s.top), s.right = Le(c.right, s.right), s.bottom = Le(c.bottom, s.bottom), s.left = le(c.left, s.left), s;
455
- }, yt(t, l, n));
451
+ function Xr(t, e, r, n) {
452
+ var o = e === "clippingParents" ? zr(t) : [].concat(e), a = [].concat(o, [r]), l = a[0], i = a.reduce(function(s, f) {
453
+ var c = xt(t, f, n);
454
+ return s.top = fe(c.top, s.top), s.right = Ye(c.right, s.right), s.bottom = Ye(c.bottom, s.bottom), s.left = fe(c.left, s.left), s;
455
+ }, xt(t, l, n));
456
456
  return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
457
457
  }
458
- function $t(t) {
459
- var e = t.reference, r = t.element, n = t.placement, o = n ? z(n) : null, a = n ? me(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
458
+ function Nt(t) {
459
+ var e = t.reference, r = t.element, n = t.placement, o = n ? J(n) : null, a = n ? me(n) : null, l = e.x + e.width / 2 - r.width / 2, i = e.y + e.height / 2 - r.height / 2, s;
460
460
  switch (o) {
461
- case Y:
461
+ case $:
462
462
  s = {
463
463
  x: l,
464
464
  y: e.y - r.height
465
465
  };
466
466
  break;
467
- case W:
467
+ case q:
468
468
  s = {
469
469
  x: l,
470
470
  y: e.y + e.height
471
471
  };
472
472
  break;
473
- case q:
473
+ case I:
474
474
  s = {
475
475
  x: e.x + e.width,
476
476
  y: i
477
477
  };
478
478
  break;
479
- case $:
479
+ case B:
480
480
  s = {
481
481
  x: e.x - r.width,
482
482
  y: i
@@ -488,126 +488,126 @@ function $t(t) {
488
488
  y: e.y
489
489
  };
490
490
  }
491
- var f = o ? Xe(o) : null;
491
+ var f = o ? Ze(o) : null;
492
492
  if (f != null) {
493
493
  var c = f === "y" ? "height" : "width";
494
494
  switch (a) {
495
495
  case ue:
496
496
  s[f] = s[f] - (e[c] / 2 - r[c] / 2);
497
497
  break;
498
- case xe:
498
+ case we:
499
499
  s[f] = s[f] + (e[c] / 2 - r[c] / 2);
500
500
  break;
501
501
  }
502
502
  }
503
503
  return s;
504
504
  }
505
- function we(t, e) {
505
+ function Oe(t, e) {
506
506
  e === void 0 && (e = {});
507
- var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? dr : i, f = r.rootBoundary, c = f === void 0 ? At : f, m = r.elementContext, b = m === void 0 ? ye : m, u = r.altBoundary, E = u === void 0 ? !1 : u, d = r.padding, y = d === void 0 ? 0 : d, D = Lt(typeof y != "number" ? y : St(y, Oe)), M = b === ye ? vr : ye, O = t.rects.popper, p = t.elements[E ? M : b], x = zr(ce(p) ? p : p.contextElement || te(t.elements.popper), s, c, l), v = ve(t.elements.reference), w = $t({
508
- reference: v,
509
- element: O,
507
+ var r = e, n = r.placement, o = n === void 0 ? t.placement : n, a = r.strategy, l = a === void 0 ? t.strategy : a, i = r.boundary, s = i === void 0 ? vr : i, f = r.rootBoundary, c = f === void 0 ? _t : f, m = r.elementContext, h = m === void 0 ? ge : m, p = r.altBoundary, O = p === void 0 ? !1 : p, u = r.padding, x = u === void 0 ? 0 : u, D = $t(typeof x != "number" ? x : Bt(x, Pe)), R = h === ge ? mr : ge, E = t.rects.popper, d = t.elements[O ? R : h], y = Xr(pe(d) ? d : d.contextElement || re(t.elements.popper), s, c, l), w = ve(t.elements.reference), v = Nt({
508
+ reference: w,
509
+ element: E,
510
510
  placement: o
511
- }), P = Ve(Object.assign({}, O, w)), g = b === ye ? P : v, T = {
512
- top: x.top - g.top + D.top,
513
- bottom: g.bottom - x.bottom + D.bottom,
514
- left: x.left - g.left + D.left,
515
- right: g.right - x.right + D.right
516
- }, k = t.modifiersData.offset;
517
- if (b === ye && k) {
518
- var A = k[o];
519
- Object.keys(T).forEach(function(C) {
520
- var I = [q, W].indexOf(C) >= 0 ? 1 : -1, B = [Y, W].indexOf(C) >= 0 ? "y" : "x";
521
- T[C] += A[B] * I;
511
+ }), A = Xe(Object.assign({}, E, v)), g = h === ge ? A : w, P = {
512
+ top: y.top - g.top + D.top,
513
+ bottom: g.bottom - y.bottom + D.bottom,
514
+ left: y.left - g.left + D.left,
515
+ right: g.right - y.right + D.right
516
+ }, M = t.modifiersData.offset;
517
+ if (h === ge && M) {
518
+ var k = M[o];
519
+ Object.keys(P).forEach(function(j) {
520
+ var H = [I, q].indexOf(j) >= 0 ? 1 : -1, C = [$, q].indexOf(j) >= 0 ? "y" : "x";
521
+ P[j] += k[C] * H;
522
522
  });
523
523
  }
524
- return T;
524
+ return P;
525
525
  }
526
- function Xr(t, e) {
526
+ function Jr(t, e) {
527
527
  e === void 0 && (e = {});
528
- var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? kt : s, c = me(n), m = c ? i ? dt : dt.filter(function(E) {
529
- return me(E) === c;
530
- }) : Oe, b = m.filter(function(E) {
531
- return f.indexOf(E) >= 0;
528
+ var r = e, n = r.placement, o = r.boundary, a = r.rootBoundary, l = r.padding, i = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? jt : s, c = me(n), m = c ? i ? ht : ht.filter(function(O) {
529
+ return me(O) === c;
530
+ }) : Pe, h = m.filter(function(O) {
531
+ return f.indexOf(O) >= 0;
532
532
  });
533
- b.length === 0 && (b = m);
534
- var u = b.reduce(function(E, d) {
535
- return E[d] = we(t, {
536
- placement: d,
533
+ h.length === 0 && (h = m);
534
+ var p = h.reduce(function(O, u) {
535
+ return O[u] = Oe(t, {
536
+ placement: u,
537
537
  boundary: o,
538
538
  rootBoundary: a,
539
539
  padding: l
540
- })[z(d)], E;
540
+ })[J(u)], O;
541
541
  }, {});
542
- return Object.keys(u).sort(function(E, d) {
543
- return u[E] - u[d];
542
+ return Object.keys(p).sort(function(O, u) {
543
+ return p[O] - p[u];
544
544
  });
545
545
  }
546
- function Jr(t) {
547
- if (z(t) === Fe)
546
+ function Kr(t) {
547
+ if (J(t) === Je)
548
548
  return [];
549
- var e = De(t);
550
- return [ht(t), e, ht(e)];
549
+ var e = Te(t);
550
+ return [bt(t), e, bt(e)];
551
551
  }
552
- function Kr(t) {
552
+ function Gr(t) {
553
553
  var e = t.state, r = t.options, n = t.name;
554
554
  if (!e.modifiersData[n]._skip) {
555
- for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, f = r.padding, c = r.boundary, m = r.rootBoundary, b = r.altBoundary, u = r.flipVariations, E = u === void 0 ? !0 : u, d = r.allowedAutoPlacements, y = e.options.placement, D = z(y), M = D === y, O = s || (M || !E ? [De(y)] : Jr(y)), p = [y].concat(O).reduce(function(K, F) {
556
- return K.concat(z(F) === Fe ? Xr(e, {
557
- placement: F,
555
+ for (var o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !0 : l, s = r.fallbackPlacements, f = r.padding, c = r.boundary, m = r.rootBoundary, h = r.altBoundary, p = r.flipVariations, O = p === void 0 ? !0 : p, u = r.allowedAutoPlacements, x = e.options.placement, D = J(x), R = D === x, E = s || (R || !O ? [Te(x)] : Kr(x)), d = [x].concat(E).reduce(function(z, V) {
556
+ return z.concat(J(V) === Je ? Jr(e, {
557
+ placement: V,
558
558
  boundary: c,
559
559
  rootBoundary: m,
560
560
  padding: f,
561
- flipVariations: E,
562
- allowedAutoPlacements: d
563
- }) : F);
564
- }, []), x = e.rects.reference, v = e.rects.popper, w = /* @__PURE__ */ new Map(), P = !0, g = p[0], T = 0; T < p.length; T++) {
565
- var k = p[T], A = z(k), C = me(k) === ue, I = [Y, W].indexOf(A) >= 0, B = I ? "width" : "height", _ = we(e, {
566
- placement: k,
561
+ flipVariations: O,
562
+ allowedAutoPlacements: u
563
+ }) : V);
564
+ }, []), y = e.rects.reference, w = e.rects.popper, v = /* @__PURE__ */ new Map(), A = !0, g = d[0], P = 0; P < d.length; P++) {
565
+ var M = d[P], k = J(M), j = me(M) === ue, H = [$, q].indexOf(k) >= 0, C = H ? "width" : "height", _ = Oe(e, {
566
+ placement: M,
567
567
  boundary: c,
568
568
  rootBoundary: m,
569
- altBoundary: b,
569
+ altBoundary: h,
570
570
  padding: f
571
- }), j = I ? C ? q : $ : C ? W : Y;
572
- x[B] > v[B] && (j = De(j));
573
- var L = De(j), J = [];
574
- if (a && J.push(_[A] <= 0), i && J.push(_[j] <= 0, _[L] <= 0), J.every(function(K) {
575
- return K;
571
+ }), S = H ? j ? I : B : j ? q : $;
572
+ y[C] > w[C] && (S = Te(S));
573
+ var L = Te(S), U = [];
574
+ if (a && U.push(_[k] <= 0), i && U.push(_[S] <= 0, _[L] <= 0), U.every(function(z) {
575
+ return z;
576
576
  })) {
577
- g = k, P = !1;
577
+ g = M, A = !1;
578
578
  break;
579
579
  }
580
- w.set(k, J);
580
+ v.set(M, U);
581
581
  }
582
- if (P)
583
- for (var re = E ? 3 : 1, ne = function(F) {
584
- var G = p.find(function(fe) {
585
- var R = w.get(fe);
586
- if (R)
587
- return R.slice(0, F).every(function(Z) {
588
- return Z;
582
+ if (A)
583
+ for (var Q = O ? 3 : 1, he = function(V) {
584
+ var ee = d.find(function(ae) {
585
+ var G = v.get(ae);
586
+ if (G)
587
+ return G.slice(0, V).every(function(ie) {
588
+ return ie;
589
589
  });
590
590
  });
591
- if (G)
592
- return g = G, "break";
593
- }, ee = re; ee > 0; ee--) {
594
- var oe = ne(ee);
591
+ if (ee)
592
+ return g = ee, "break";
593
+ }, ne = Q; ne > 0; ne--) {
594
+ var oe = he(ne);
595
595
  if (oe === "break") break;
596
596
  }
597
597
  e.placement !== g && (e.modifiersData[n]._skip = !0, e.placement = g, e.reset = !0);
598
598
  }
599
599
  }
600
- const Gr = {
600
+ const Zr = {
601
601
  name: "flip",
602
602
  enabled: !0,
603
603
  phase: "main",
604
- fn: Kr,
604
+ fn: Gr,
605
605
  requiresIfExists: ["offset"],
606
606
  data: {
607
607
  _skip: !1
608
608
  }
609
609
  };
610
- function gt(t, e, r) {
610
+ function wt(t, e, r) {
611
611
  return r === void 0 && (r = {
612
612
  x: 0,
613
613
  y: 0
@@ -618,17 +618,17 @@ function gt(t, e, r) {
618
618
  left: t.left - e.width - r.x
619
619
  };
620
620
  }
621
- function bt(t) {
622
- return [Y, q, W, $].some(function(e) {
621
+ function Ot(t) {
622
+ return [$, I, q, B].some(function(e) {
623
623
  return t[e] >= 0;
624
624
  });
625
625
  }
626
- function Zr(t) {
627
- var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, l = we(e, {
626
+ function Qr(t) {
627
+ var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, l = Oe(e, {
628
628
  elementContext: "reference"
629
- }), i = we(e, {
629
+ }), i = Oe(e, {
630
630
  altBoundary: !0
631
- }), s = gt(l, n), f = gt(i, o, a), c = bt(s), m = bt(f);
631
+ }), s = wt(l, n), f = wt(i, o, a), c = Ot(s), m = Ot(f);
632
632
  e.modifiersData[r] = {
633
633
  referenceClippingOffsets: s,
634
634
  popperEscapeOffsets: f,
@@ -639,18 +639,18 @@ function Zr(t) {
639
639
  "data-popper-escaped": m
640
640
  });
641
641
  }
642
- const Qr = {
642
+ const en = {
643
643
  name: "hide",
644
644
  enabled: !0,
645
645
  phase: "main",
646
646
  requiresIfExists: ["preventOverflow"],
647
- fn: Zr
647
+ fn: Qr
648
648
  };
649
- function en(t, e, r) {
650
- var n = z(t), o = [$, Y].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
649
+ function tn(t, e, r) {
650
+ var n = J(t), o = [B, $].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, e, {
651
651
  placement: t
652
652
  })) : r, l = a[0], i = a[1];
653
- return l = l || 0, i = (i || 0) * o, [$, q].indexOf(n) >= 0 ? {
653
+ return l = l || 0, i = (i || 0) * o, [B, I].indexOf(n) >= 0 ? {
654
654
  x: i,
655
655
  y: l
656
656
  } : {
@@ -658,108 +658,108 @@ function en(t, e, r) {
658
658
  y: i
659
659
  };
660
660
  }
661
- function tn(t) {
662
- var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = kt.reduce(function(c, m) {
663
- return c[m] = en(m, e.rects, a), c;
661
+ function rn(t) {
662
+ var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = jt.reduce(function(c, m) {
663
+ return c[m] = tn(m, e.rects, a), c;
664
664
  }, {}), i = l[e.placement], s = i.x, f = i.y;
665
665
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += f), e.modifiersData[n] = l;
666
666
  }
667
- const rn = {
667
+ const nn = {
668
668
  name: "offset",
669
669
  enabled: !0,
670
670
  phase: "main",
671
671
  requires: ["popperOffsets"],
672
- fn: tn
672
+ fn: rn
673
673
  };
674
- function nn(t) {
674
+ function on(t) {
675
675
  var e = t.state, r = t.name;
676
- e.modifiersData[r] = $t({
676
+ e.modifiersData[r] = Nt({
677
677
  reference: e.rects.reference,
678
678
  element: e.rects.popper,
679
679
  placement: e.placement
680
680
  });
681
681
  }
682
- const on = {
682
+ const an = {
683
683
  name: "popperOffsets",
684
684
  enabled: !0,
685
685
  phase: "read",
686
- fn: nn,
686
+ fn: on,
687
687
  data: {}
688
688
  };
689
- function an(t) {
689
+ function sn(t) {
690
690
  return t === "x" ? "y" : "x";
691
691
  }
692
- function sn(t) {
693
- var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, f = r.rootBoundary, c = r.altBoundary, m = r.padding, b = r.tether, u = b === void 0 ? !0 : b, E = r.tetherOffset, d = E === void 0 ? 0 : E, y = we(e, {
692
+ function ln(t) {
693
+ var e = t.state, r = t.options, n = t.name, o = r.mainAxis, a = o === void 0 ? !0 : o, l = r.altAxis, i = l === void 0 ? !1 : l, s = r.boundary, f = r.rootBoundary, c = r.altBoundary, m = r.padding, h = r.tether, p = h === void 0 ? !0 : h, O = r.tetherOffset, u = O === void 0 ? 0 : O, x = Oe(e, {
694
694
  boundary: s,
695
695
  rootBoundary: f,
696
696
  padding: m,
697
697
  altBoundary: c
698
- }), D = z(e.placement), M = me(e.placement), O = !M, p = Xe(D), x = an(p), v = e.modifiersData.popperOffsets, w = e.rects.reference, P = e.rects.popper, g = typeof d == "function" ? d(Object.assign({}, e.rects, {
698
+ }), D = J(e.placement), R = me(e.placement), E = !R, d = Ze(D), y = sn(d), w = e.modifiersData.popperOffsets, v = e.rects.reference, A = e.rects.popper, g = typeof u == "function" ? u(Object.assign({}, e.rects, {
699
699
  placement: e.placement
700
- })) : d, T = typeof g == "number" ? {
700
+ })) : u, P = typeof g == "number" ? {
701
701
  mainAxis: g,
702
702
  altAxis: g
703
703
  } : Object.assign({
704
704
  mainAxis: 0,
705
705
  altAxis: 0
706
- }, g), k = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, A = {
706
+ }, g), M = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
707
707
  x: 0,
708
708
  y: 0
709
709
  };
710
- if (v) {
710
+ if (w) {
711
711
  if (a) {
712
- var C, I = p === "y" ? Y : $, B = p === "y" ? W : q, _ = p === "y" ? "height" : "width", j = v[p], L = j + y[I], J = j - y[B], re = u ? -P[_] / 2 : 0, ne = M === ue ? w[_] : P[_], ee = M === ue ? -P[_] : -w[_], oe = e.elements.arrow, K = u && oe ? ze(oe) : {
712
+ var j, H = d === "y" ? $ : B, C = d === "y" ? q : I, _ = d === "y" ? "height" : "width", S = w[d], L = S + x[H], U = S - x[C], Q = p ? -A[_] / 2 : 0, he = R === ue ? v[_] : A[_], ne = R === ue ? -A[_] : -v[_], oe = e.elements.arrow, z = p && oe ? Ge(oe) : {
713
713
  width: 0,
714
714
  height: 0
715
- }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : jt(), G = F[I], fe = F[B], R = ge(0, w[_], K[_]), Z = O ? w[_] / 2 - re - R - G - T.mainAxis : ne - R - G - T.mainAxis, ae = O ? -w[_] / 2 + re + R + fe + T.mainAxis : ee + R + fe + T.mainAxis, pe = e.elements.arrow && Pe(e.elements.arrow), Nt = pe ? p === "y" ? pe.clientTop || 0 : pe.clientLeft || 0 : 0, Ze = (C = k == null ? void 0 : k[p]) != null ? C : 0, Wt = j + Z - Ze - Nt, qt = j + ae - Ze, Qe = ge(u ? Le(L, Wt) : L, j, u ? le(J, qt) : J);
716
- v[p] = Qe, A[p] = Qe - j;
715
+ }, V = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Yt(), ee = V[H], ae = V[C], G = be(0, v[_], z[_]), ie = E ? v[_] / 2 - Q - G - ee - P.mainAxis : he - G - ee - P.mainAxis, We = E ? -v[_] / 2 + Q + G + ae + P.mainAxis : ne + G + ae + P.mainAxis, T = e.elements.arrow && Ee(e.elements.arrow), se = T ? d === "y" ? T.clientTop || 0 : T.clientLeft || 0 : 0, te = (j = M == null ? void 0 : M[d]) != null ? j : 0, Me = S + ie - te - se, It = S + We - te, rt = be(p ? Ye(L, Me) : L, S, p ? fe(U, It) : U);
716
+ w[d] = rt, k[d] = rt - S;
717
717
  }
718
718
  if (i) {
719
- var et, It = p === "x" ? Y : $, Vt = p === "x" ? W : q, ie = v[x], Ee = x === "y" ? "height" : "width", tt = ie + y[It], rt = ie - y[Vt], He = [Y, $].indexOf(D) !== -1, nt = (et = k == null ? void 0 : k[x]) != null ? et : 0, ot = He ? tt : ie - w[Ee] - P[Ee] - nt + T.altAxis, at = He ? ie + w[Ee] + P[Ee] - nt - T.altAxis : rt, it = u && He ? kr(ot, ie, at) : ge(u ? ot : tt, ie, u ? at : rt);
720
- v[x] = it, A[x] = it - ie;
719
+ var nt, Vt = d === "x" ? $ : B, Ft = d === "x" ? q : I, le = w[y], De = y === "y" ? "height" : "width", ot = le + x[Vt], at = le - x[Ft], qe = [$, B].indexOf(D) !== -1, it = (nt = M == null ? void 0 : M[y]) != null ? nt : 0, st = qe ? ot : le - v[De] - A[De] - it + P.altAxis, lt = qe ? le + v[De] + A[De] - it - P.altAxis : at, ct = p && qe ? Cr(st, le, lt) : be(p ? st : ot, le, p ? lt : at);
720
+ w[y] = ct, k[y] = ct - le;
721
721
  }
722
- e.modifiersData[n] = A;
722
+ e.modifiersData[n] = k;
723
723
  }
724
724
  }
725
- const ln = {
725
+ const cn = {
726
726
  name: "preventOverflow",
727
727
  enabled: !0,
728
728
  phase: "main",
729
- fn: sn,
729
+ fn: ln,
730
730
  requiresIfExists: ["offset"]
731
731
  };
732
- function cn(t) {
732
+ function fn(t) {
733
733
  return {
734
734
  scrollLeft: t.scrollLeft,
735
735
  scrollTop: t.scrollTop
736
736
  };
737
737
  }
738
- function fn(t) {
739
- return t === H(t) || !N(t) ? Je(t) : cn(t);
740
- }
741
738
  function pn(t) {
739
+ return t === N(t) || !W(t) ? Qe(t) : fn(t);
740
+ }
741
+ function un(t) {
742
742
  var e = t.getBoundingClientRect(), r = de(e.width) / t.offsetWidth || 1, n = de(e.height) / t.offsetHeight || 1;
743
743
  return r !== 1 || n !== 1;
744
744
  }
745
- function un(t, e, r) {
745
+ function dn(t, e, r) {
746
746
  r === void 0 && (r = !1);
747
- var n = N(e), o = N(e) && pn(e), a = te(e), l = ve(t, o, r), i = {
747
+ var n = W(e), o = W(e) && un(e), a = re(e), l = ve(t, o, r), i = {
748
748
  scrollLeft: 0,
749
749
  scrollTop: 0
750
750
  }, s = {
751
751
  x: 0,
752
752
  y: 0
753
753
  };
754
- return (n || !n && !r) && ((X(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
- Ge(a)) && (i = fn(e)), N(e) ? (s = ve(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = Ke(a))), {
754
+ return (n || !n && !r) && ((K(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
755
+ tt(a)) && (i = pn(e)), W(e) ? (s = ve(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = et(a))), {
756
756
  x: l.left + i.scrollLeft - s.x,
757
757
  y: l.top + i.scrollTop - s.y,
758
758
  width: l.width,
759
759
  height: l.height
760
760
  };
761
761
  }
762
- function dn(t) {
762
+ function vn(t) {
763
763
  var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
764
764
  t.forEach(function(a) {
765
765
  e.set(a.name, a);
@@ -778,15 +778,15 @@ function dn(t) {
778
778
  r.has(a.name) || o(a);
779
779
  }), n;
780
780
  }
781
- function vn(t) {
782
- var e = dn(t);
783
- return Er.reduce(function(r, n) {
781
+ function mn(t) {
782
+ var e = vn(t);
783
+ return Mr.reduce(function(r, n) {
784
784
  return r.concat(e.filter(function(o) {
785
785
  return o.phase === n;
786
786
  }));
787
787
  }, []);
788
788
  }
789
- function mn(t) {
789
+ function hn(t) {
790
790
  var e;
791
791
  return function() {
792
792
  return e || (e = new Promise(function(r) {
@@ -796,7 +796,7 @@ function mn(t) {
796
796
  })), e;
797
797
  };
798
798
  }
799
- function hn(t) {
799
+ function yn(t) {
800
800
  var e = t.reduce(function(r, n) {
801
801
  var o = r[n.name];
802
802
  return r[n.name] = o ? Object.assign({}, o, n, {
@@ -808,27 +808,27 @@ function hn(t) {
808
808
  return e[r];
809
809
  });
810
810
  }
811
- var xt = {
811
+ var Pt = {
812
812
  placement: "bottom",
813
813
  modifiers: [],
814
814
  strategy: "absolute"
815
815
  };
816
- function wt() {
816
+ function Et() {
817
817
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
818
818
  e[r] = arguments[r];
819
819
  return !e.some(function(n) {
820
820
  return !(n && typeof n.getBoundingClientRect == "function");
821
821
  });
822
822
  }
823
- function yn(t) {
823
+ function gn(t) {
824
824
  t === void 0 && (t = {});
825
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? xt : o;
825
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? Pt : o;
826
826
  return function(i, s, f) {
827
827
  f === void 0 && (f = a);
828
828
  var c = {
829
829
  placement: "bottom",
830
830
  orderedModifiers: [],
831
- options: Object.assign({}, xt, a),
831
+ options: Object.assign({}, Pt, a),
832
832
  modifiersData: {},
833
833
  elements: {
834
834
  reference: i,
@@ -836,18 +836,18 @@ function yn(t) {
836
836
  },
837
837
  attributes: {},
838
838
  styles: {}
839
- }, m = [], b = !1, u = {
839
+ }, m = [], h = !1, p = {
840
840
  state: c,
841
841
  setOptions: function(D) {
842
- var M = typeof D == "function" ? D(c.options) : D;
843
- d(), c.options = Object.assign({}, a, c.options, M), c.scrollParents = {
844
- reference: ce(i) ? be(i) : i.contextElement ? be(i.contextElement) : [],
845
- popper: be(s)
842
+ var R = typeof D == "function" ? D(c.options) : D;
843
+ u(), c.options = Object.assign({}, a, c.options, R), c.scrollParents = {
844
+ reference: pe(i) ? xe(i) : i.contextElement ? xe(i.contextElement) : [],
845
+ popper: xe(s)
846
846
  };
847
- var O = vn(hn([].concat(n, c.options.modifiers)));
848
- return c.orderedModifiers = O.filter(function(p) {
849
- return p.enabled;
850
- }), E(), u.update();
847
+ var E = mn(yn([].concat(n, c.options.modifiers)));
848
+ return c.orderedModifiers = E.filter(function(d) {
849
+ return d.enabled;
850
+ }), O(), p.update();
851
851
  },
852
852
  // Sync update – it will always be executed, even if not necessary. This
853
853
  // is useful for low frequency updates where sync behavior simplifies the
@@ -855,26 +855,26 @@ function yn(t) {
855
855
  // For high frequency updates (e.g. `resize` and `scroll` events), always
856
856
  // prefer the async Popper#update method
857
857
  forceUpdate: function() {
858
- if (!b) {
859
- var D = c.elements, M = D.reference, O = D.popper;
860
- if (wt(M, O)) {
858
+ if (!h) {
859
+ var D = c.elements, R = D.reference, E = D.popper;
860
+ if (Et(R, E)) {
861
861
  c.rects = {
862
- reference: un(M, Pe(O), c.options.strategy === "fixed"),
863
- popper: ze(O)
864
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(T) {
865
- return c.modifiersData[T.name] = Object.assign({}, T.data);
862
+ reference: dn(R, Ee(E), c.options.strategy === "fixed"),
863
+ popper: Ge(E)
864
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
865
+ return c.modifiersData[P.name] = Object.assign({}, P.data);
866
866
  });
867
- for (var p = 0; p < c.orderedModifiers.length; p++) {
867
+ for (var d = 0; d < c.orderedModifiers.length; d++) {
868
868
  if (c.reset === !0) {
869
- c.reset = !1, p = -1;
869
+ c.reset = !1, d = -1;
870
870
  continue;
871
871
  }
872
- var x = c.orderedModifiers[p], v = x.fn, w = x.options, P = w === void 0 ? {} : w, g = x.name;
873
- typeof v == "function" && (c = v({
872
+ var y = c.orderedModifiers[d], w = y.fn, v = y.options, A = v === void 0 ? {} : v, g = y.name;
873
+ typeof w == "function" && (c = w({
874
874
  state: c,
875
- options: P,
875
+ options: A,
876
876
  name: g,
877
- instance: u
877
+ instance: p
878
878
  }) || c);
879
879
  }
880
880
  }
@@ -882,53 +882,53 @@ function yn(t) {
882
882
  },
883
883
  // Async and optimistically optimized update – it will not be executed if
884
884
  // not necessary (debounced to run at most once-per-tick)
885
- update: mn(function() {
886
- return new Promise(function(y) {
887
- u.forceUpdate(), y(c);
885
+ update: hn(function() {
886
+ return new Promise(function(x) {
887
+ p.forceUpdate(), x(c);
888
888
  });
889
889
  }),
890
890
  destroy: function() {
891
- d(), b = !0;
891
+ u(), h = !0;
892
892
  }
893
893
  };
894
- if (!wt(i, s))
895
- return u;
896
- u.setOptions(f).then(function(y) {
897
- !b && f.onFirstUpdate && f.onFirstUpdate(y);
894
+ if (!Et(i, s))
895
+ return p;
896
+ p.setOptions(f).then(function(x) {
897
+ !h && f.onFirstUpdate && f.onFirstUpdate(x);
898
898
  });
899
- function E() {
900
- c.orderedModifiers.forEach(function(y) {
901
- var D = y.name, M = y.options, O = M === void 0 ? {} : M, p = y.effect;
902
- if (typeof p == "function") {
903
- var x = p({
899
+ function O() {
900
+ c.orderedModifiers.forEach(function(x) {
901
+ var D = x.name, R = x.options, E = R === void 0 ? {} : R, d = x.effect;
902
+ if (typeof d == "function") {
903
+ var y = d({
904
904
  state: c,
905
905
  name: D,
906
- instance: u,
907
- options: O
908
- }), v = function() {
906
+ instance: p,
907
+ options: E
908
+ }), w = function() {
909
909
  };
910
- m.push(x || v);
910
+ m.push(y || w);
911
911
  }
912
912
  });
913
913
  }
914
- function d() {
915
- m.forEach(function(y) {
916
- return y();
914
+ function u() {
915
+ m.forEach(function(x) {
916
+ return x();
917
917
  }), m = [];
918
918
  }
919
- return u;
919
+ return p;
920
920
  };
921
921
  }
922
- var gn = [Nr, on, Br, Rr, rn, Gr, ln, Lr, Qr], bn = /* @__PURE__ */ yn({
923
- defaultModifiers: gn
922
+ var bn = [Wr, an, Hr, Tr, nn, Zr, cn, Sr, en], xn = /* @__PURE__ */ gn({
923
+ defaultModifiers: bn
924
924
  });
925
- const Bt = "Popper";
926
- function xn(t) {
927
- return or(Bt, t);
925
+ const Wt = "Popper";
926
+ function wn(t) {
927
+ return ar(Wt, t);
928
928
  }
929
- ar(Bt, ["root"]);
930
- const wn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], On = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
931
- function Pn(t, e) {
929
+ ir(Wt, ["root"]);
930
+ const On = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Pn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
931
+ function En(t, e) {
932
932
  if (e === "ltr")
933
933
  return t;
934
934
  switch (t) {
@@ -944,18 +944,18 @@ function Pn(t, e) {
944
944
  return t;
945
945
  }
946
946
  }
947
- function Se(t) {
947
+ function $e(t) {
948
948
  return typeof t == "function" ? t() : t;
949
949
  }
950
- function Be(t) {
950
+ function Ne(t) {
951
951
  return t.nodeType !== void 0;
952
952
  }
953
- function En(t) {
954
- return !Be(t);
953
+ function Mn(t) {
954
+ return !Ne(t);
955
955
  }
956
- const Mn = () => sr({
956
+ const Dn = () => lr({
957
957
  root: ["root"]
958
- }, lr(xn)), Dn = {}, Rn = /* @__PURE__ */ V.forwardRef(function(e, r) {
958
+ }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ F.forwardRef(function(e, r) {
959
959
  var n;
960
960
  const {
961
961
  anchorEl: o,
@@ -966,28 +966,28 @@ const Mn = () => sr({
966
966
  open: f,
967
967
  placement: c,
968
968
  popperOptions: m,
969
- popperRef: b,
970
- slotProps: u = {},
971
- slots: E = {},
972
- TransitionProps: d
969
+ popperRef: h,
970
+ slotProps: p = {},
971
+ slots: O = {},
972
+ TransitionProps: u
973
973
  // @ts-ignore internal logic
974
974
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
975
- } = e, y = Tt(e, wn), D = V.useRef(null), M = ct(D, r), O = V.useRef(null), p = ct(O, b), x = V.useRef(p);
976
- ut(() => {
977
- x.current = p;
978
- }, [p]), V.useImperativeHandle(b, () => O.current, []);
979
- const v = Pn(c, l), [w, P] = V.useState(v), [g, T] = V.useState(Se(o));
980
- V.useEffect(() => {
981
- O.current && O.current.forceUpdate();
982
- }), V.useEffect(() => {
983
- o && T(Se(o));
984
- }, [o]), ut(() => {
975
+ } = e, x = Ct(e, On), D = F.useRef(null), R = ut(D, r), E = F.useRef(null), d = ut(E, h), y = F.useRef(d);
976
+ mt(() => {
977
+ y.current = d;
978
+ }, [d]), F.useImperativeHandle(h, () => E.current, []);
979
+ const w = En(c, l), [v, A] = F.useState(w), [g, P] = F.useState($e(o));
980
+ F.useEffect(() => {
981
+ E.current && E.current.forceUpdate();
982
+ }), F.useEffect(() => {
983
+ o && P($e(o));
984
+ }, [o]), mt(() => {
985
985
  if (!g || !f)
986
986
  return;
987
- const B = (L) => {
988
- P(L.placement);
987
+ const C = (L) => {
988
+ A(L.placement);
989
989
  };
990
- if (process.env.NODE_ENV !== "production" && g && Be(g) && g.nodeType === 1) {
990
+ if (process.env.NODE_ENV !== "production" && g && Ne(g) && g.nodeType === 1) {
991
991
  const L = g.getBoundingClientRect();
992
992
  process.env.NODE_ENV !== "test" && L.top === 0 && L.left === 0 && L.right === 0 && L.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
993
993
  `));
@@ -1009,38 +1009,38 @@ const Mn = () => sr({
1009
1009
  fn: ({
1010
1010
  state: L
1011
1011
  }) => {
1012
- B(L);
1012
+ C(L);
1013
1013
  }
1014
1014
  }];
1015
1015
  s != null && (_ = _.concat(s)), m && m.modifiers != null && (_ = _.concat(m.modifiers));
1016
- const j = bn(g, D.current, je({
1017
- placement: v
1016
+ const S = xn(g, D.current, Se({
1017
+ placement: w
1018
1018
  }, m, {
1019
1019
  modifiers: _
1020
1020
  }));
1021
- return x.current(j), () => {
1022
- j.destroy(), x.current(null);
1021
+ return y.current(S), () => {
1022
+ S.destroy(), y.current(null);
1023
1023
  };
1024
- }, [g, i, s, f, m, v]);
1025
- const k = {
1026
- placement: w
1024
+ }, [g, i, s, f, m, w]);
1025
+ const M = {
1026
+ placement: v
1027
1027
  };
1028
- d !== null && (k.TransitionProps = d);
1029
- const A = Mn(), C = (n = E.root) != null ? n : "div", I = ir({
1030
- elementType: C,
1031
- externalSlotProps: u.root,
1032
- externalForwardedProps: y,
1028
+ u !== null && (M.TransitionProps = u);
1029
+ const k = Dn(), j = (n = O.root) != null ? n : "div", H = sr({
1030
+ elementType: j,
1031
+ externalSlotProps: p.root,
1032
+ externalForwardedProps: x,
1033
1033
  additionalProps: {
1034
1034
  role: "tooltip",
1035
- ref: M
1035
+ ref: R
1036
1036
  },
1037
1037
  ownerState: e,
1038
- className: A.root
1038
+ className: k.root
1039
1039
  });
1040
- return /* @__PURE__ */ S(C, je({}, I, {
1041
- children: typeof a == "function" ? a(k) : a
1040
+ return /* @__PURE__ */ Y(j, Se({}, H, {
1041
+ children: typeof a == "function" ? a(M) : a
1042
1042
  }));
1043
- }), Ht = /* @__PURE__ */ V.forwardRef(function(e, r) {
1043
+ }), qt = /* @__PURE__ */ F.forwardRef(function(e, r) {
1044
1044
  const {
1045
1045
  anchorEl: n,
1046
1046
  children: o,
@@ -1051,61 +1051,61 @@ const Mn = () => sr({
1051
1051
  modifiers: f,
1052
1052
  open: c,
1053
1053
  placement: m = "bottom",
1054
- popperOptions: b = Dn,
1055
- popperRef: u,
1056
- style: E,
1057
- transition: d = !1,
1058
- slotProps: y = {},
1054
+ popperOptions: h = Rn,
1055
+ popperRef: p,
1056
+ style: O,
1057
+ transition: u = !1,
1058
+ slotProps: x = {},
1059
1059
  slots: D = {}
1060
- } = e, M = Tt(e, On), [O, p] = V.useState(!0), x = () => {
1061
- p(!1);
1062
- }, v = () => {
1063
- p(!0);
1060
+ } = e, R = Ct(e, Pn), [E, d] = F.useState(!0), y = () => {
1061
+ d(!1);
1062
+ }, w = () => {
1063
+ d(!0);
1064
1064
  };
1065
- if (!s && !c && (!d || O))
1065
+ if (!s && !c && (!u || E))
1066
1066
  return null;
1067
- let w;
1067
+ let v;
1068
1068
  if (a)
1069
- w = a;
1069
+ v = a;
1070
1070
  else if (n) {
1071
- const T = Se(n);
1072
- w = T && Be(T) ? ft(T).body : ft(null).body;
1071
+ const P = $e(n);
1072
+ v = P && Ne(P) ? dt(P).body : dt(null).body;
1073
1073
  }
1074
- const P = !c && s && (!d || O) ? "none" : void 0, g = d ? {
1074
+ const A = !c && s && (!u || E) ? "none" : void 0, g = u ? {
1075
1075
  in: c,
1076
- onEnter: x,
1077
- onExited: v
1076
+ onEnter: y,
1077
+ onExited: w
1078
1078
  } : void 0;
1079
- return /* @__PURE__ */ S(fr, {
1079
+ return /* @__PURE__ */ Y(pr, {
1080
1080
  disablePortal: i,
1081
- container: w,
1082
- children: /* @__PURE__ */ S(Rn, je({
1081
+ container: v,
1082
+ children: /* @__PURE__ */ Y(Tn, Se({
1083
1083
  anchorEl: n,
1084
1084
  direction: l,
1085
1085
  disablePortal: i,
1086
1086
  modifiers: f,
1087
1087
  ref: r,
1088
- open: d ? !O : c,
1088
+ open: u ? !E : c,
1089
1089
  placement: m,
1090
- popperOptions: b,
1091
- popperRef: u,
1092
- slotProps: y,
1090
+ popperOptions: h,
1091
+ popperRef: p,
1092
+ slotProps: x,
1093
1093
  slots: D
1094
- }, M, {
1095
- style: je({
1094
+ }, R, {
1095
+ style: Se({
1096
1096
  // Prevents scroll issue, waiting for Popper.js to add this style once initiated.
1097
1097
  position: "fixed",
1098
1098
  // Fix Popper.js display issue
1099
1099
  top: 0,
1100
1100
  left: 0,
1101
- display: P
1102
- }, E),
1101
+ display: A
1102
+ }, O),
1103
1103
  TransitionProps: g,
1104
1104
  children: o
1105
1105
  }))
1106
1106
  });
1107
1107
  });
1108
- process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1108
+ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1109
1109
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1110
1110
  // │ These PropTypes are generated from the TypeScript type definitions. │
1111
1111
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -1116,15 +1116,15 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1116
1116
  * It's used to set the position of the popper.
1117
1117
  * The return value will passed as the reference object of the Popper instance.
1118
1118
  */
1119
- anchorEl: cr(h.oneOfType([pt, h.object, h.func]), (t) => {
1119
+ anchorEl: fr(b.oneOfType([vt, b.object, b.func]), (t) => {
1120
1120
  if (t.open) {
1121
- const e = Se(t.anchorEl);
1122
- if (e && Be(e) && e.nodeType === 1) {
1121
+ const e = $e(t.anchorEl);
1122
+ if (e && Ne(e) && e.nodeType === 1) {
1123
1123
  const r = e.getBoundingClientRect();
1124
1124
  if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
1125
1125
  return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
1126
1126
  `));
1127
- } else if (!e || typeof e.getBoundingClientRect != "function" || En(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1127
+ } else if (!e || typeof e.getBoundingClientRect != "function" || Mn(e) && e.contextElement != null && e.contextElement.nodeType !== 1)
1128
1128
  return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
1129
1129
  `));
1130
1130
  }
@@ -1133,7 +1133,7 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1133
1133
  /**
1134
1134
  * Popper render function or node.
1135
1135
  */
1136
- children: h.oneOfType([h.node, h.func]),
1136
+ children: b.oneOfType([b.node, b.func]),
1137
1137
  /**
1138
1138
  * An HTML element or function that returns one.
1139
1139
  * The `container` will have the portal children appended to it.
@@ -1144,24 +1144,24 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1144
1144
  * By default, it uses the body of the top-level document object,
1145
1145
  * so it's simply `document.body` most of the time.
1146
1146
  */
1147
- container: h.oneOfType([pt, h.func]),
1147
+ container: b.oneOfType([vt, b.func]),
1148
1148
  /**
1149
1149
  * Direction of the text.
1150
1150
  * @default 'ltr'
1151
1151
  */
1152
- direction: h.oneOf(["ltr", "rtl"]),
1152
+ direction: b.oneOf(["ltr", "rtl"]),
1153
1153
  /**
1154
1154
  * The `children` will be under the DOM hierarchy of the parent component.
1155
1155
  * @default false
1156
1156
  */
1157
- disablePortal: h.bool,
1157
+ disablePortal: b.bool,
1158
1158
  /**
1159
1159
  * Always keep the children in the DOM.
1160
1160
  * This prop can be useful in SEO situation or
1161
1161
  * when you want to maximize the responsiveness of the Popper.
1162
1162
  * @default false
1163
1163
  */
1164
- keepMounted: h.bool,
1164
+ keepMounted: b.bool,
1165
1165
  /**
1166
1166
  * Popper.js is based on a "plugin-like" architecture,
1167
1167
  * most of its features are fully encapsulated "modifiers".
@@ -1171,84 +1171,84 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1171
1171
  * For this reason, modifiers should be very performant to avoid bottlenecks.
1172
1172
  * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
1173
1173
  */
1174
- modifiers: h.arrayOf(h.shape({
1175
- data: h.object,
1176
- effect: h.func,
1177
- enabled: h.bool,
1178
- fn: h.func,
1179
- name: h.any,
1180
- options: h.object,
1181
- phase: h.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1182
- requires: h.arrayOf(h.string),
1183
- requiresIfExists: h.arrayOf(h.string)
1174
+ modifiers: b.arrayOf(b.shape({
1175
+ data: b.object,
1176
+ effect: b.func,
1177
+ enabled: b.bool,
1178
+ fn: b.func,
1179
+ name: b.any,
1180
+ options: b.object,
1181
+ phase: b.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
1182
+ requires: b.arrayOf(b.string),
1183
+ requiresIfExists: b.arrayOf(b.string)
1184
1184
  })),
1185
1185
  /**
1186
1186
  * If `true`, the component is shown.
1187
1187
  */
1188
- open: h.bool.isRequired,
1188
+ open: b.bool.isRequired,
1189
1189
  /**
1190
1190
  * Popper placement.
1191
1191
  * @default 'bottom'
1192
1192
  */
1193
- placement: h.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1193
+ placement: b.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1194
1194
  /**
1195
1195
  * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
1196
1196
  * @default {}
1197
1197
  */
1198
- popperOptions: h.shape({
1199
- modifiers: h.array,
1200
- onFirstUpdate: h.func,
1201
- placement: h.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1202
- strategy: h.oneOf(["absolute", "fixed"])
1198
+ popperOptions: b.shape({
1199
+ modifiers: b.array,
1200
+ onFirstUpdate: b.func,
1201
+ placement: b.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
1202
+ strategy: b.oneOf(["absolute", "fixed"])
1203
1203
  }),
1204
1204
  /**
1205
1205
  * A ref that points to the used popper instance.
1206
1206
  */
1207
- popperRef: ur,
1207
+ popperRef: dr,
1208
1208
  /**
1209
1209
  * The props used for each slot inside the Popper.
1210
1210
  * @default {}
1211
1211
  */
1212
- slotProps: h.shape({
1213
- root: h.oneOfType([h.func, h.object])
1212
+ slotProps: b.shape({
1213
+ root: b.oneOfType([b.func, b.object])
1214
1214
  }),
1215
1215
  /**
1216
1216
  * The components used for each slot inside the Popper.
1217
1217
  * Either a string to use a HTML element or a component.
1218
1218
  * @default {}
1219
1219
  */
1220
- slots: h.shape({
1221
- root: h.elementType
1220
+ slots: b.shape({
1221
+ root: b.elementType
1222
1222
  }),
1223
1223
  /**
1224
1224
  * Help supporting a react-transition-group/Transition component.
1225
1225
  * @default false
1226
1226
  */
1227
- transition: h.bool
1227
+ transition: b.bool
1228
1228
  });
1229
- var Re = { exports: {} }, Tn = Re.exports, Ot;
1230
- function An() {
1231
- return Ot || (Ot = 1, function(t, e) {
1229
+ var Ae = { exports: {} }, An = Ae.exports, Mt;
1230
+ function kn() {
1231
+ return Mt || (Mt = 1, function(t, e) {
1232
1232
  (function(r, n) {
1233
1233
  t.exports = n();
1234
- })(Tn, function() {
1234
+ })(An, function() {
1235
1235
  return function(r, n, o) {
1236
1236
  n.prototype.isBetween = function(a, l, i, s) {
1237
- var f = o(a), c = o(l), m = (s = s || "()")[0] === "(", b = s[1] === ")";
1238
- return (m ? this.isAfter(f, i) : !this.isBefore(f, i)) && (b ? this.isBefore(c, i) : !this.isAfter(c, i)) || (m ? this.isBefore(f, i) : !this.isAfter(f, i)) && (b ? this.isAfter(c, i) : !this.isBefore(c, i));
1237
+ var f = o(a), c = o(l), m = (s = s || "()")[0] === "(", h = s[1] === ")";
1238
+ return (m ? this.isAfter(f, i) : !this.isBefore(f, i)) && (h ? this.isBefore(c, i) : !this.isAfter(c, i)) || (m ? this.isBefore(f, i) : !this.isAfter(f, i)) && (h ? this.isAfter(c, i) : !this.isBefore(c, i));
1239
1239
  };
1240
1240
  };
1241
1241
  });
1242
- }(Re)), Re.exports;
1242
+ }(Ae)), Ae.exports;
1243
1243
  }
1244
- var kn = An();
1245
- const Cn = /* @__PURE__ */ Ye(kn);
1246
- var Te = { exports: {} }, _n = Te.exports, Pt;
1247
- function jn() {
1248
- return Pt || (Pt = 1, function(t, e) {
1244
+ var Cn = kn();
1245
+ const _n = /* @__PURE__ */ Be(Cn);
1246
+ var ke = { exports: {} }, jn = ke.exports, Dt;
1247
+ function Ln() {
1248
+ return Dt || (Dt = 1, function(t, e) {
1249
1249
  (function(r, n) {
1250
1250
  t.exports = n();
1251
- })(_n, function() {
1251
+ })(jn, function() {
1252
1252
  return function(r, n, o) {
1253
1253
  n.prototype.isToday = function() {
1254
1254
  var a = "YYYY-MM-DD", l = o();
@@ -1256,26 +1256,26 @@ function jn() {
1256
1256
  };
1257
1257
  };
1258
1258
  });
1259
- }(Te)), Te.exports;
1259
+ }(ke)), ke.exports;
1260
1260
  }
1261
- var Ln = jn();
1262
- const Sn = /* @__PURE__ */ Ye(Ln);
1263
- var Ae = { exports: {} }, Yn = Ae.exports, Et;
1264
- function $n() {
1265
- return Et || (Et = 1, function(t, e) {
1261
+ var Sn = Ln();
1262
+ const Yn = /* @__PURE__ */ Be(Sn);
1263
+ var Ce = { exports: {} }, $n = Ce.exports, Rt;
1264
+ function Bn() {
1265
+ return Rt || (Rt = 1, function(t, e) {
1266
1266
  (function(r, n) {
1267
1267
  t.exports = n();
1268
- })(Yn, function() {
1268
+ })($n, function() {
1269
1269
  var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
1270
1270
  return function(n, o, a) {
1271
1271
  var l = o.prototype, i = l.format;
1272
1272
  a.en.formats = r, l.format = function(s) {
1273
1273
  s === void 0 && (s = "YYYY-MM-DDTHH:mm:ssZ");
1274
- var f = this.$locale().formats, c = function(m, b) {
1275
- return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(u, E, d) {
1276
- var y = d && d.toUpperCase();
1277
- return E || b[d] || r[d] || b[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, M, O) {
1278
- return M || O.slice(1);
1274
+ var f = this.$locale().formats, c = function(m, h) {
1275
+ return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, O, u) {
1276
+ var x = u && u.toUpperCase();
1277
+ return O || h[u] || r[u] || h[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(D, R, E) {
1278
+ return R || E.slice(1);
1279
1279
  });
1280
1280
  });
1281
1281
  }(s, f === void 0 ? {} : f);
@@ -1283,16 +1283,16 @@ function $n() {
1283
1283
  };
1284
1284
  };
1285
1285
  });
1286
- }(Ae)), Ae.exports;
1286
+ }(Ce)), Ce.exports;
1287
1287
  }
1288
- var Bn = $n();
1289
- const Hn = /* @__PURE__ */ Ye(Bn);
1290
- var ke = { exports: {} }, Nn = ke.exports, Mt;
1291
- function Wn() {
1292
- return Mt || (Mt = 1, function(t, e) {
1288
+ var Hn = Bn();
1289
+ const Nn = /* @__PURE__ */ Be(Hn);
1290
+ var _e = { exports: {} }, Wn = _e.exports, Tt;
1291
+ function qn() {
1292
+ return Tt || (Tt = 1, function(t, e) {
1293
1293
  (function(r, n) {
1294
1294
  t.exports = n();
1295
- })(Nn, function() {
1295
+ })(Wn, function() {
1296
1296
  return function(r, n) {
1297
1297
  n.prototype.weekday = function(o) {
1298
1298
  var a = this.$locale().weekStart || 0, l = this.$W, i = (l < a ? l + 7 : l) - a;
@@ -1300,30 +1300,30 @@ function Wn() {
1300
1300
  };
1301
1301
  };
1302
1302
  });
1303
- }(ke)), ke.exports;
1303
+ }(_e)), _e.exports;
1304
1304
  }
1305
- var qn = Wn();
1306
- const In = /* @__PURE__ */ Ye(qn);
1307
- var Ce = { exports: {} }, Vn = Ce.exports, Dt;
1308
- function Fn() {
1309
- return Dt || (Dt = 1, function(t, e) {
1305
+ var In = qn();
1306
+ const Vn = /* @__PURE__ */ Be(In);
1307
+ var je = { exports: {} }, Fn = je.exports, At;
1308
+ function Un() {
1309
+ return At || (At = 1, function(t, e) {
1310
1310
  (function(r, n) {
1311
1311
  t.exports = n();
1312
- })(Vn, function() {
1312
+ })(Fn, function() {
1313
1313
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
1314
1314
  var n = ["th", "st", "nd", "rd"], o = r % 100;
1315
1315
  return "[" + r + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
1316
1316
  } };
1317
1317
  });
1318
- }(Ce)), Ce.exports;
1318
+ }(je)), je.exports;
1319
1319
  }
1320
- Fn();
1321
- var _e = { exports: {} }, Un = _e.exports, Rt;
1322
- function zn() {
1323
- return Rt || (Rt = 1, function(t, e) {
1320
+ Un();
1321
+ var Le = { exports: {} }, zn = Le.exports, kt;
1322
+ function Xn() {
1323
+ return kt || (kt = 1, function(t, e) {
1324
1324
  (function(r, n) {
1325
- t.exports = n(Ut());
1326
- })(Un, function(r) {
1325
+ t.exports = n(zt());
1326
+ })(zn, function(r) {
1327
1327
  function n(l) {
1328
1328
  return l && typeof l == "object" && "default" in l ? l : { default: l };
1329
1329
  }
@@ -1332,14 +1332,14 @@ function zn() {
1332
1332
  }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
1333
1333
  return o.default.locale(a, null, !0), a;
1334
1334
  });
1335
- }(_e)), _e.exports;
1336
- }
1337
- zn();
1338
- U.extend(Cn);
1339
- U.extend(In);
1340
- U.extend(Hn);
1341
- U.extend(Sn);
1342
- const Xn = (t) => {
1335
+ }(Le)), Le.exports;
1336
+ }
1337
+ Xn();
1338
+ X.extend(_n);
1339
+ X.extend(Vn);
1340
+ X.extend(Nn);
1341
+ X.extend(Yn);
1342
+ const Ue = (t) => {
1343
1343
  switch (t) {
1344
1344
  case "pt":
1345
1345
  return "Selecionar data";
@@ -1351,186 +1351,188 @@ const Xn = (t) => {
1351
1351
  mode: e,
1352
1352
  viewMode: r,
1353
1353
  locale: n = "en",
1354
- placeholder: o,
1355
- format: a = "YYYY-MM-DD",
1356
- minDate: l,
1357
- maxDate: i,
1358
- disableDates: s,
1359
- onChange: f,
1360
- placement: c = "bottom-start",
1361
- navigatorInput: m = !1,
1362
- className: b,
1363
- "data-testid": u = "date-picker"
1364
- } = t, E = e === "single" ? t.value : void 0, d = e === "range" ? t.values : void 0, y = E ? U(E).locale(n) : d ? U(d[1]).locale(n) : U().locale(n), D = o || Xn(n), [M, O] = se(E ? U(E) : null), [p, x] = se(
1365
- d ? [U(d[0]), U(d[1])] : [null, null]
1366
- ), [v, w] = se(y), [P, g] = se(!1), [T, k] = se(!1), [A, C] = se(r), [I, B] = se(null), _ = st(null), j = st(null);
1367
- We(() => {
1368
- P || C(r);
1369
- }, [P, r]), We(() => {
1370
- P || B(null);
1371
- }, [P]);
1372
- const L = (R) => {
1373
- if (e === "range" && T && R.key === "Escape") {
1374
- x([null, null]), k(!1);
1354
+ format: o = "YYYY-MM-DD",
1355
+ minDate: a,
1356
+ maxDate: l,
1357
+ disableDates: i,
1358
+ onChange: s,
1359
+ placement: f = "bottom-start",
1360
+ navigatorInput: c = !1,
1361
+ className: m,
1362
+ "data-testid": h = "date-picker"
1363
+ } = t, p = e === "single" ? t.value : void 0, O = e === "range" ? t.values : void 0, u = e === "single" ? t.placeholder : void 0, x = e === "range" ? t.placeholders : void 0, D = e === "range" ? t.limit : void 0, R = p ? X(p).locale(n) : O ? X(O[1]).locale(n) : X().locale(n), E = u || Ue(n), d = x || [Ue(n), Ue(n)], [y, w] = ce(p ? X(p) : null), [v, A] = ce(
1364
+ O ? [X(O[0]), X(O[1])] : [null, null]
1365
+ ), [g, P] = ce(R), [M, k] = ce(!1), [j, H] = ce(!1), [C, _] = ce(r), [S, L] = ce(null), U = ft(null), Q = ft(null);
1366
+ Ve(() => {
1367
+ M || _(r);
1368
+ }, [M, r]), Ve(() => {
1369
+ M || L(null);
1370
+ }, [M]);
1371
+ const he = (T) => {
1372
+ if (e === "range" && j && T.key === "Escape") {
1373
+ A([null, null]), H(!1);
1375
1374
  return;
1376
1375
  }
1377
- Zt(
1378
- R,
1376
+ Qt(
1377
+ T,
1378
+ M,
1379
+ C,
1380
+ g,
1379
1381
  P,
1380
- A,
1381
- v,
1382
- w,
1383
1382
  e,
1384
- re,
1385
- g
1383
+ oe,
1384
+ k
1386
1385
  );
1387
- }, J = Ft(
1388
- (R) => {
1389
- if (!T) {
1390
- x([R, null]), k(!0);
1386
+ }, ne = Ut(
1387
+ (T) => {
1388
+ if (!j) {
1389
+ A([T, null]), H(!0);
1391
1390
  return;
1392
1391
  }
1393
- if (!p[0]) {
1394
- x([R, null]);
1392
+ if (!v[0]) {
1393
+ A([T, null]);
1395
1394
  return;
1396
1395
  }
1397
- if (R.isSame(p[0], "day")) return;
1398
- const [Z, ae] = R.isAfter(p[0]) ? [p[0], R] : [R, p[0]];
1399
- x([Z, ae]), k(!1), B(null), f([Z, ae]), g(!1);
1396
+ if (T.isSame(v[0], "day")) return;
1397
+ const [se, te] = T.isAfter(v[0]) ? [v[0], T] : [T, v[0]];
1398
+ A([se, te]), H(!1), L(null), s([se, te]), k(!1);
1400
1399
  },
1401
- [T, p, f]
1402
- ), re = (R) => {
1403
- Jt(R, l, i, s, e, p) || (e === "single" ? (O(R), w(R), f(R), g(!1)) : J(R));
1404
- }, ne = () => {
1405
- var R, Z, ae, pe;
1406
- return e === "single" ? M ? r === "month" && !m ? M.locale(n).format("MMM") : r === "year" && !m ? M.locale(n).format("YYYY") : M.locale(n).format(a) : "" : e === "range" ? p[0] && p[1] && p[0].isSame(p[1], "day") ? p[0].locale(n).format(a) : [
1407
- ((Z = (R = p[0]) == null ? void 0 : R.locale(n)) == null ? void 0 : Z.format(a)) || "--",
1408
- ((pe = (ae = p[1]) == null ? void 0 : ae.locale(n)) == null ? void 0 : pe.format(a)) || "--"
1409
- ] : p[0] ? p[0].locale(n).format(a) : "";
1400
+ [j, v, s]
1401
+ ), oe = (T) => {
1402
+ Kt(T, a, l, i, e, v) || (e === "single" ? (w(T), P(T), s(T), k(!1)) : ne(T));
1403
+ }, z = () => {
1404
+ var T, se, te, Me;
1405
+ return e === "single" ? y ? r === "month" && !c ? y.locale(n).format("MMM") : r === "year" && !c ? y.locale(n).format("YYYY") : y.locale(n).format(o) : "" : e === "range" ? v[0] && v[1] && v[0].isSame(v[1], "day") ? v[0].locale(n).format(o) : [
1406
+ ((se = (T = v[0]) == null ? void 0 : T.locale(n)) == null ? void 0 : se.format(o)) || "",
1407
+ ((Me = (te = v[1]) == null ? void 0 : te.locale(n)) == null ? void 0 : Me.format(o)) || ""
1408
+ ] : v[0] ? v[0].locale(n).format(o) : "";
1409
+ }, V = () => {
1410
+ P(C === "day" ? Gt(g) : C === "month" ? g.subtract(1, "year") : g.subtract(12, "years"));
1410
1411
  }, ee = () => {
1411
- w(A === "day" ? Kt(v) : A === "month" ? v.subtract(1, "year") : v.subtract(12, "years"));
1412
- }, oe = () => {
1413
- w(A === "day" ? Gt(v) : A === "month" ? v.add(1, "year") : v.add(12, "years"));
1414
- }, K = () => tr({
1415
- currentViewMode: A,
1416
- currentMonth: v,
1412
+ P(C === "day" ? Zt(g) : C === "month" ? g.add(1, "year") : g.add(12, "years"));
1413
+ }, ae = () => rr({
1414
+ currentViewMode: C,
1415
+ currentMonth: g,
1417
1416
  locale: n,
1418
- navigateToPrevious: ee,
1419
- navigateToNext: oe,
1420
- setCurrentViewMode: C
1421
- }), F = () => er({
1422
- currentMonth: v,
1417
+ navigateToPrevious: V,
1418
+ navigateToNext: ee,
1419
+ setCurrentViewMode: _
1420
+ }), G = () => tr({
1421
+ currentMonth: g,
1423
1422
  locale: n,
1424
- setCurrentMonth: w
1425
- }), G = (R = 0) => Qt({
1426
- currentMonth: R === 0 ? v : v.add(1, "month"),
1427
- selectedDate: M,
1428
- selectedRange: p,
1423
+ setCurrentMonth: P
1424
+ }), ie = (T = 0) => er({
1425
+ currentMonth: T === 0 ? g : g.add(1, "month"),
1426
+ selectedDate: y,
1427
+ selectedRange: v,
1429
1428
  locale: n,
1430
1429
  mode: e,
1431
- isSelectingRange: T,
1432
- hoverDate: I,
1433
- minDate: l,
1434
- maxDate: i,
1435
- disableDates: s,
1436
- handleSelect: re,
1437
- setHoverDate: B
1438
- }), fe = () => /* @__PURE__ */ Ne(
1430
+ isSelectingRange: j,
1431
+ hoverDate: S,
1432
+ minDate: a,
1433
+ maxDate: l,
1434
+ disableDates: i,
1435
+ handleSelect: oe,
1436
+ setHoverDate: L,
1437
+ limit: D
1438
+ }), We = () => /* @__PURE__ */ Ie(
1439
1439
  "div",
1440
1440
  {
1441
- ref: j,
1442
- className: lt(he["datepicker-container"], e === "range" && he["range-mode"]),
1443
- "data-testid": `${u}-content`,
1441
+ ref: Q,
1442
+ className: pt(ye["datepicker-container"], e === "range" && ye["range-mode"]),
1443
+ "data-testid": `${h}-content`,
1444
1444
  children: [
1445
- e === "single" && K(),
1446
- e === "range" && A === "day" && F(),
1447
- e === "range" && A !== "day" && K(),
1448
- A === "day" && e === "single" && G(),
1449
- (A === "month" || A === "year") && nr({
1450
- currentViewMode: A,
1451
- currentMonth: v,
1452
- selectedDate: M,
1445
+ e === "single" && ae(),
1446
+ e === "range" && C === "day" && G(),
1447
+ e === "range" && C !== "day" && ae(),
1448
+ C === "day" && e === "single" && ie(),
1449
+ (C === "month" || C === "year") && or({
1450
+ currentViewMode: C,
1451
+ currentMonth: g,
1452
+ selectedDate: y,
1453
1453
  locale: n,
1454
1454
  mode: e,
1455
1455
  initialViewMode: r,
1456
- navigatorInput: m,
1457
- setCurrentMonth: w,
1458
- setSelectedDate: O,
1459
- onChange: f,
1460
- setCurrentViewMode: C,
1461
- setIsOpen: g
1456
+ navigatorInput: c,
1457
+ setCurrentMonth: P,
1458
+ setSelectedDate: w,
1459
+ onChange: s,
1460
+ setCurrentViewMode: _,
1461
+ setIsOpen: k
1462
1462
  }),
1463
- e === "range" && A === "day" && /* @__PURE__ */ Ne("div", { className: he["dual-calendar-container"], children: [
1464
- G(0),
1465
- G(1)
1463
+ e === "range" && C === "day" && /* @__PURE__ */ Ie("div", { className: ye["dual-calendar-container"], children: [
1464
+ ie(0),
1465
+ ie(1)
1466
1466
  ] })
1467
1467
  ]
1468
1468
  }
1469
1469
  );
1470
- return We(() => {
1471
- if (P && j.current) {
1472
- const R = j.current.querySelector("button");
1473
- R && R.focus();
1470
+ return Ve(() => {
1471
+ if (M && Q.current) {
1472
+ const T = Q.current.querySelector("button");
1473
+ T && T.focus();
1474
1474
  }
1475
- }, [P]), /* @__PURE__ */ S(pr, { onClickAway: () => g(!1), children: /* @__PURE__ */ Ne(
1475
+ }, [M]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ie(
1476
1476
  "div",
1477
1477
  {
1478
- ref: _,
1479
- onKeyDown: L,
1480
- className: lt(he["datepicker-wrapper"], b),
1481
- "data-testid": u,
1478
+ ref: U,
1479
+ onKeyDown: he,
1480
+ className: pt(ye["datepicker-wrapper"], m),
1481
+ "data-testid": h,
1482
1482
  children: [
1483
- m ? rr({
1484
- navigateToPrevious: ee,
1485
- navigateToNext: oe,
1486
- currentMonth: v,
1487
- selectedDate: M,
1483
+ c ? nr({
1484
+ navigateToPrevious: V,
1485
+ navigateToNext: ee,
1486
+ currentMonth: g,
1487
+ selectedDate: y,
1488
1488
  locale: n,
1489
- currentViewMode: A,
1489
+ currentViewMode: C,
1490
1490
  mode: e,
1491
- setCurrentViewMode: C,
1492
- setIsOpen: g,
1493
- setSelectedDate: O,
1494
- onChange: f
1495
- }) : /* @__PURE__ */ S("div", { className: he["datepicker-input-container"], "data-testid": `${u}-input-container`, children: e === "range" ? /* @__PURE__ */ S("div", { style: { display: "flex" }, children: /* @__PURE__ */ S(
1496
- zt,
1491
+ setCurrentViewMode: _,
1492
+ setIsOpen: k,
1493
+ setSelectedDate: w,
1494
+ onChange: s
1495
+ }) : /* @__PURE__ */ Y("div", { className: ye["datepicker-input-container"], "data-testid": `${h}-input-container`, children: e === "range" ? /* @__PURE__ */ Y("div", { style: { display: "flex" }, children: /* @__PURE__ */ Y(
1496
+ Xt,
1497
1497
  {
1498
1498
  leftInputProps: {
1499
- value: ne()[0],
1500
- onClick: () => g(!P)
1499
+ value: z()[0],
1500
+ onClick: () => k(!M),
1501
+ placeholder: d[0]
1501
1502
  },
1502
1503
  rightInputProps: {
1503
- value: ne()[1],
1504
- rightIcon: /* @__PURE__ */ S("span", { onClick: () => g(!P), "data-testid": `${u}-toggle-icon`, children: /* @__PURE__ */ S(qe, { icon: "calendar-days" }) }),
1505
- onClick: () => g(!P)
1504
+ value: z()[1],
1505
+ rightIcon: /* @__PURE__ */ Y("span", { onClick: () => k(!M), "data-testid": `${h}-toggle-icon`, children: /* @__PURE__ */ Y(Fe, { icon: "calendar-days" }) }),
1506
+ onClick: () => k(!M),
1507
+ placeholder: d[1]
1506
1508
  },
1507
- separator: /* @__PURE__ */ S(qe, { icon: "arrow-right" })
1509
+ separator: /* @__PURE__ */ Y(Fe, { icon: "arrow-right" })
1508
1510
  }
1509
- ) }) : /* @__PURE__ */ S(
1510
- Xt,
1511
+ ) }) : /* @__PURE__ */ Y(
1512
+ Jt,
1511
1513
  {
1512
- placeholder: D,
1513
- value: ne(),
1514
- onClick: () => g(!P),
1514
+ placeholder: E,
1515
+ value: z(),
1516
+ onClick: () => k(!M),
1515
1517
  "aria-label": "Date Picker Input",
1516
1518
  "aria-haspopup": "dialog",
1517
- "aria-expanded": P,
1519
+ "aria-expanded": M,
1518
1520
  "aria-controls": "date-picker-calendar",
1519
- rightIcon: /* @__PURE__ */ S("span", { onClick: () => g(!P), "data-testid": `${u}-toggle-icon`, children: /* @__PURE__ */ S(qe, { icon: "calendar-days" }) })
1521
+ rightIcon: /* @__PURE__ */ Y("span", { onClick: () => k(!M), "data-testid": `${h}-toggle-icon`, children: /* @__PURE__ */ Y(Fe, { icon: "calendar-days" }) })
1520
1522
  }
1521
1523
  ) }),
1522
- /* @__PURE__ */ S(
1523
- Ht,
1524
+ /* @__PURE__ */ Y(
1525
+ qt,
1524
1526
  {
1525
- open: P,
1526
- anchorEl: _.current,
1527
- placement: c,
1527
+ open: M,
1528
+ anchorEl: U.current,
1529
+ placement: f,
1528
1530
  id: "date-picker-calendar",
1529
1531
  role: "dialog",
1530
1532
  "aria-modal": "true",
1531
1533
  "aria-label": "Date selection calendar",
1532
- "data-testid": `${u}-popper`,
1533
- children: fe()
1534
+ "data-testid": `${h}-popper`,
1535
+ children: We()
1534
1536
  }
1535
1537
  )
1536
1538
  ]