@pismo/marola 2.1.28 → 2.1.29

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,11 +1,11 @@
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";
1
+ import { jsx as Y, jsxs as Ae } from "react/jsx-runtime";
2
+ import * as U from "react";
3
+ import { useState as ce, useRef as pt, useEffect as Ue, useCallback as Ut } from "react";
4
+ import { c as ut } from "../../clsx-OuTLNxxd.js";
5
5
  import { r as zt, d as X } from "../../dayjs.min-ClQKmc--.js";
6
- import { g as Be } from "../../_commonjsHelpers-C6fGbg64.js";
6
+ import { g as We } from "../../_commonjsHelpers-C6fGbg64.js";
7
7
  import { DoubleInput as Xt } from "../DoubleInput/DoubleInput.js";
8
- import { Icon as Fe } from "../Icon/Icon.js";
8
+ import { Icon as ze } from "../Icon/Icon.js";
9
9
  import { Input as Jt } from "../Input/Input.js";
10
10
  import { isDisabled as Kt, getPreviousMonth as Gt, getNextMonth as Zt } from "./dateUtils.js";
11
11
  import { handleDatePickerKeyDown as Qt } from "./keyboardNavigation.js";
@@ -14,22 +14,22 @@ import { renderDualCalendarHeader as tr } from "./renderDualCalendarHeader.js";
14
14
  import { renderHeader as rr } from "./renderHeader.js";
15
15
  import { renderNavigatorInput as nr } from "./renderNavigatorInput.js";
16
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";
17
+ import { s as ue } from "../../DatePicker.module-CFu_FsW6.js";
18
+ import { P as b, g as ar, a as ir, b as _t, _ as Be, u as dt, c as sr, d as lr, e as cr } from "../../useSlotProps-CYHDC4TN.js";
19
+ import { o as vt, c as fr } from "../../ownerDocument-By592Iy6.js";
20
+ import { P as pr, H as mt } from "../../Portal-DJapUCn6.js";
21
+ import { u as ht } from "../../useEnhancedEffect-CJGo-L3B.js";
22
22
  import { C as ur } from "../../ClickAwayListener-Z08peX_P.js";
23
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]);
24
+ var $ = "top", I = "bottom", V = "right", B = "left", Ge = "auto", Me = [$, I, V, B], de = "start", Pe = "end", vr = "clippingParents", jt = "viewport", xe = "popper", mr = "reference", yt = /* @__PURE__ */ Me.reduce(function(t, e) {
25
+ return t.concat([e + "-" + de, e + "-" + Pe]);
26
+ }, []), Lt = /* @__PURE__ */ [].concat(Me, [Ge]).reduce(function(t, e) {
27
+ return t.concat([e, e + "-" + de, e + "-" + Pe]);
28
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
29
  function K(t) {
30
30
  return t ? (t.nodeName || "").toLowerCase() : null;
31
31
  }
32
- function N(t) {
32
+ function W(t) {
33
33
  if (t == null)
34
34
  return window;
35
35
  if (t.toString() !== "[object Window]") {
@@ -39,24 +39,24 @@ function N(t) {
39
39
  return t;
40
40
  }
41
41
  function pe(t) {
42
- var e = N(t).Element;
42
+ var e = W(t).Element;
43
43
  return t instanceof e || t instanceof Element;
44
44
  }
45
- function W(t) {
46
- var e = N(t).HTMLElement;
45
+ function q(t) {
46
+ var e = W(t).HTMLElement;
47
47
  return t instanceof e || t instanceof HTMLElement;
48
48
  }
49
- function Ke(t) {
49
+ function Ze(t) {
50
50
  if (typeof ShadowRoot > "u")
51
51
  return !1;
52
- var e = N(t).ShadowRoot;
52
+ var e = W(t).ShadowRoot;
53
53
  return t instanceof e || t instanceof ShadowRoot;
54
54
  }
55
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
- !W(a) || !K(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(l) {
59
+ !q(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
  }));
@@ -80,7 +80,7 @@ function Rr(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
- !W(o) || !K(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
83
+ !q(o) || !K(o) || (Object.assign(o.style, i), Object.keys(a).forEach(function(s) {
84
84
  o.removeAttribute(s);
85
85
  }));
86
86
  });
@@ -97,21 +97,21 @@ const Tr = {
97
97
  function J(t) {
98
98
  return t.split("-")[0];
99
99
  }
100
- var fe = Math.max, Ye = Math.min, de = Math.round;
101
- function ze() {
100
+ var fe = Math.max, He = Math.min, ve = Math.round;
101
+ function Je() {
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 Lt() {
108
- return !/^((?!chrome|android).)*safari/i.test(ze());
107
+ function St() {
108
+ return !/^((?!chrome|android).)*safari/i.test(Je());
109
109
  }
110
- function ve(t, e, r) {
110
+ function me(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 && 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;
113
+ e && q(t) && (o = t.offsetWidth > 0 && ve(n.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && ve(n.height) / t.offsetHeight || 1);
114
+ var l = pe(t) ? W(t) : window, i = l.visualViewport, s = !St() && 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
117
  height: h,
@@ -123,8 +123,8 @@ function ve(t, e, r) {
123
123
  y: c
124
124
  };
125
125
  }
126
- function Ge(t) {
127
- var e = ve(t), r = t.offsetWidth, n = t.offsetHeight;
126
+ function Qe(t) {
127
+ var e = me(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,
130
130
  y: t.offsetTop,
@@ -132,11 +132,11 @@ function Ge(t) {
132
132
  height: n
133
133
  };
134
134
  }
135
- function St(t, e) {
135
+ function Yt(t, e) {
136
136
  var r = e.getRootNode && e.getRootNode();
137
137
  if (t.contains(e))
138
138
  return !0;
139
- if (r && Ke(r)) {
139
+ if (r && Ze(r)) {
140
140
  var n = e;
141
141
  do {
142
142
  if (n && t.isSameNode(n))
@@ -147,42 +147,42 @@ function St(t, e) {
147
147
  return !1;
148
148
  }
149
149
  function Z(t) {
150
- return N(t).getComputedStyle(t);
150
+ return W(t).getComputedStyle(t);
151
151
  }
152
152
  function Ar(t) {
153
153
  return ["table", "td", "th"].indexOf(K(t)) >= 0;
154
154
  }
155
- function re(t) {
155
+ function te(t) {
156
156
  return ((pe(t) ? t.ownerDocument : (
157
157
  // $FlowFixMe[prop-missing]
158
158
  t.document
159
159
  )) || window.document).documentElement;
160
160
  }
161
- function He(t) {
161
+ function qe(t) {
162
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
- (Ke(t) ? t.host : null) || // ShadowRoot detected
168
+ (Ze(t) ? t.host : null) || // ShadowRoot detected
169
169
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
170
- re(t)
170
+ te(t)
171
171
  );
172
172
  }
173
- function yt(t) {
174
- return !W(t) || // https://github.com/popperjs/popper-core/issues/837
173
+ function gt(t) {
174
+ return !q(t) || // https://github.com/popperjs/popper-core/issues/837
175
175
  Z(t).position === "fixed" ? null : t.offsetParent;
176
176
  }
177
177
  function kr(t) {
178
- var e = /firefox/i.test(ze()), r = /Trident/i.test(ze());
179
- if (r && W(t)) {
178
+ var e = /firefox/i.test(Je()), r = /Trident/i.test(Je());
179
+ if (r && q(t)) {
180
180
  var n = Z(t);
181
181
  if (n.position === "fixed")
182
182
  return null;
183
183
  }
184
- var o = He(t);
185
- for (Ke(o) && (o = o.host); W(o) && ["html", "body"].indexOf(K(o)) < 0; ) {
184
+ var o = qe(t);
185
+ for (Ze(o) && (o = o.host); q(o) && ["html", "body"].indexOf(K(o)) < 0; ) {
186
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;
@@ -190,22 +190,22 @@ function kr(t) {
190
190
  }
191
191
  return null;
192
192
  }
193
- function Ee(t) {
194
- for (var e = N(t), r = yt(t); r && Ar(r) && Z(r).position === "static"; )
195
- r = yt(r);
193
+ function De(t) {
194
+ for (var e = W(t), r = gt(t); r && Ar(r) && Z(r).position === "static"; )
195
+ r = gt(r);
196
196
  return r && (K(r) === "html" || K(r) === "body" && Z(r).position === "static") ? e : r || kr(t) || e;
197
197
  }
198
- function Ze(t) {
198
+ function et(t) {
199
199
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
200
200
  }
201
- function be(t, e, r) {
202
- return fe(t, Ye(e, r));
201
+ function we(t, e, r) {
202
+ return fe(t, He(e, r));
203
203
  }
204
204
  function Cr(t, e, r) {
205
- var n = be(t, e, r);
205
+ var n = we(t, e, r);
206
206
  return n > r ? r : n;
207
207
  }
208
- function Yt() {
208
+ function $t() {
209
209
  return {
210
210
  top: 0,
211
211
  right: 0,
@@ -213,10 +213,10 @@ function Yt() {
213
213
  left: 0
214
214
  };
215
215
  }
216
- function $t(t) {
217
- return Object.assign({}, Yt(), t);
216
+ function Bt(t) {
217
+ return Object.assign({}, $t(), t);
218
218
  }
219
- function Bt(t, e) {
219
+ function Ht(t, e) {
220
220
  return e.reduce(function(r, n) {
221
221
  return r[n] = t, r;
222
222
  }, {});
@@ -224,18 +224,18 @@ function Bt(t, e) {
224
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, $t(typeof e != "number" ? e : Bt(e, Pe));
227
+ })) : e, Bt(typeof e != "number" ? e : Ht(e, Me));
228
228
  };
229
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";
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 = et(i), f = [B, V].indexOf(i) >= 0, c = f ? "height" : "width";
231
231
  if (!(!a || !l)) {
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;
232
+ var m = _r(o.padding, r), h = Qe(a), p = s === "y" ? $ : B, O = s === "y" ? I : V, u = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], x = l[s] - r.rects.reference[s], M = De(a), R = M ? s === "y" ? M.clientHeight || 0 : M.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 = we(d, w, y), A = s;
233
233
  r.modifiersData[n] = (e = {}, e[A] = v, e.centerOffset = v - w, e);
234
234
  }
235
235
  }
236
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) || St(e.elements.popper, o) && (e.elements.arrow = o));
238
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Yt(e.elements.popper, o) && (e.elements.arrow = o));
239
239
  }
240
240
  const Sr = {
241
241
  name: "arrow",
@@ -246,7 +246,7 @@ const Sr = {
246
246
  requires: ["popperOffsets"],
247
247
  requiresIfExists: ["preventOverflow"]
248
248
  };
249
- function me(t) {
249
+ function he(t) {
250
250
  return t.split("-")[1];
251
251
  }
252
252
  var Yr = {
@@ -258,11 +258,11 @@ var Yr = {
258
258
  function $r(t, e) {
259
259
  var r = t.x, n = t.y, o = e.devicePixelRatio || 1;
260
260
  return {
261
- x: de(r * o) / o || 0,
262
- y: de(n * o) / o || 0
261
+ x: ve(r * o) / o || 0,
262
+ y: ve(n * o) / o || 0
263
263
  };
264
264
  }
265
- function gt(t) {
265
+ function bt(t) {
266
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
267
  x: p,
268
268
  y: u
@@ -271,19 +271,19 @@ function gt(t) {
271
271
  y: u
272
272
  };
273
273
  p = x.x, u = x.y;
274
- var D = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), E = B, d = $, y = window;
274
+ var M = l.hasOwnProperty("x"), R = l.hasOwnProperty("y"), E = B, d = $, y = window;
275
275
  if (f) {
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;
276
+ var w = De(r), v = "clientHeight", A = "clientWidth";
277
+ if (w === W(r) && (w = te(r), Z(w).position !== "static" && i === "absolute" && (v = "scrollHeight", A = "scrollWidth")), w = w, o === $ || (o === B || o === V) && a === Pe) {
278
+ d = I;
279
279
  var g = m && w === y && y.visualViewport ? y.visualViewport.height : (
280
280
  // $FlowFixMe[prop-missing]
281
281
  w[v]
282
282
  );
283
283
  u -= g - n.height, u *= s ? 1 : -1;
284
284
  }
285
- if (o === B || (o === $ || o === q) && a === we) {
286
- E = I;
285
+ if (o === B || (o === $ || o === I) && a === Pe) {
286
+ E = V;
287
287
  var P = m && w === y && y.visualViewport ? y.visualViewport.width : (
288
288
  // $FlowFixMe[prop-missing]
289
289
  w[A]
@@ -291,36 +291,36 @@ function gt(t) {
291
291
  p -= P - n.width, p *= s ? 1 : -1;
292
292
  }
293
293
  }
294
- var M = Object.assign({
294
+ var D = Object.assign({
295
295
  position: i
296
296
  }, f && Yr), k = c === !0 ? $r({
297
297
  x: p,
298
298
  y: u
299
- }, N(r)) : {
299
+ }, W(r)) : {
300
300
  x: p,
301
301
  y: u
302
302
  };
303
303
  if (p = k.x, u = k.y, s) {
304
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));
305
+ return Object.assign({}, D, (j = {}, j[d] = R ? "0" : "", j[E] = M ? "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({}, M, (e = {}, e[d] = R ? u + "px" : "", e[E] = D ? p + "px" : "", e.transform = "", e));
307
+ return Object.assign({}, D, (e = {}, e[d] = R ? u + "px" : "", e[E] = M ? p + "px" : "", e.transform = "", e));
308
308
  }
309
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
311
  placement: J(e.placement),
312
- variation: me(e.placement),
312
+ variation: he(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, gt(Object.assign({}, f, {
318
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, bt(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, gt(Object.assign({}, f, {
323
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, bt(Object.assign({}, f, {
324
324
  offsets: e.modifiersData.arrow,
325
325
  position: "absolute",
326
326
  adaptive: !1,
@@ -336,17 +336,17 @@ const Hr = {
336
336
  fn: Br,
337
337
  data: {}
338
338
  };
339
- var Re = {
339
+ var ke = {
340
340
  passive: !0
341
341
  };
342
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);
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 = W(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, Re);
346
- }), i && s.addEventListener("resize", r.update, Re), function() {
345
+ c.addEventListener("scroll", r.update, ke);
346
+ }), i && s.addEventListener("resize", r.update, ke), function() {
347
347
  a && f.forEach(function(c) {
348
- c.removeEventListener("scroll", r.update, Re);
349
- }), i && s.removeEventListener("resize", r.update, Re);
348
+ c.removeEventListener("scroll", r.update, ke);
349
+ }), i && s.removeEventListener("resize", r.update, ke);
350
350
  };
351
351
  }
352
352
  const Wr = {
@@ -364,7 +364,7 @@ var qr = {
364
364
  bottom: "top",
365
365
  top: "bottom"
366
366
  };
367
- function Te(t) {
367
+ function Ce(t) {
368
368
  return t.replace(/left|right|bottom|top/g, function(e) {
369
369
  return qr[e];
370
370
  });
@@ -373,37 +373,37 @@ var Ir = {
373
373
  start: "end",
374
374
  end: "start"
375
375
  };
376
- function bt(t) {
376
+ function xt(t) {
377
377
  return t.replace(/start|end/g, function(e) {
378
378
  return Ir[e];
379
379
  });
380
380
  }
381
- function Qe(t) {
382
- var e = N(t), r = e.pageXOffset, n = e.pageYOffset;
381
+ function tt(t) {
382
+ var e = W(t), r = e.pageXOffset, n = e.pageYOffset;
383
383
  return {
384
384
  scrollLeft: r,
385
385
  scrollTop: n
386
386
  };
387
387
  }
388
- function et(t) {
389
- return ve(re(t)).left + Qe(t).scrollLeft;
388
+ function rt(t) {
389
+ return me(te(t)).left + tt(t).scrollLeft;
390
390
  }
391
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;
392
+ var r = W(t), n = te(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 = Lt();
395
+ var f = St();
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 + et(t),
401
+ x: i + rt(t),
402
402
  y: s
403
403
  };
404
404
  }
405
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;
406
+ var e, r = te(t), n = tt(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 + rt(t), s = -n.scrollTop;
407
407
  return Z(o || r).direction === "rtl" && (i += fe(r.clientWidth, o ? o.clientWidth : 0) - a), {
408
408
  width: a,
409
409
  height: l,
@@ -411,23 +411,23 @@ function Fr(t) {
411
411
  y: s
412
412
  };
413
413
  }
414
- function tt(t) {
414
+ function nt(t) {
415
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 Ht(t) {
419
- return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : W(t) && tt(t) ? t : Ht(He(t));
418
+ function Nt(t) {
419
+ return ["html", "body", "#document"].indexOf(K(t)) >= 0 ? t.ownerDocument.body : q(t) && nt(t) ? t : Nt(qe(t));
420
420
  }
421
- function xe(t, e) {
421
+ function Oe(t, e) {
422
422
  var r;
423
423
  e === void 0 && (e = []);
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);
424
+ var n = Nt(t), o = n === ((r = t.ownerDocument) == null ? void 0 : r.body), a = W(n), l = o ? [a].concat(a.visualViewport || [], nt(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(xe(He(l)))
427
+ i.concat(Oe(qe(l)))
428
428
  );
429
429
  }
430
- function Xe(t) {
430
+ function Ke(t) {
431
431
  return Object.assign({}, t, {
432
432
  left: t.x,
433
433
  top: t.y,
@@ -436,27 +436,27 @@ function Xe(t) {
436
436
  });
437
437
  }
438
438
  function Ur(t, e) {
439
- var r = ve(t, !1, e === "fixed");
439
+ var r = me(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 xt(t, e, r) {
443
- return e === _t ? Xe(Vr(t, r)) : pe(e) ? Ur(e, r) : Xe(Fr(re(t)));
442
+ function wt(t, e, r) {
443
+ return e === jt ? Ke(Vr(t, r)) : pe(e) ? Ur(e, r) : Ke(Fr(te(t)));
444
444
  }
445
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;
446
+ var e = Oe(qe(t)), r = ["absolute", "fixed"].indexOf(Z(t).position) >= 0, n = r && q(t) ? De(t) : t;
447
447
  return pe(n) ? e.filter(function(o) {
448
- return pe(o) && St(o, n) && K(o) !== "body";
448
+ return pe(o) && Yt(o, n) && K(o) !== "body";
449
449
  }) : [];
450
450
  }
451
451
  function Xr(t, e, r, n) {
452
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));
453
+ var c = wt(t, f, n);
454
+ return s.top = fe(c.top, s.top), s.right = He(c.right, s.right), s.bottom = He(c.bottom, s.bottom), s.left = fe(c.left, s.left), s;
455
+ }, wt(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 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;
458
+ function Wt(t) {
459
+ var e = t.reference, r = t.element, n = t.placement, o = n ? J(n) : null, a = n ? he(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
461
  case $:
462
462
  s = {
@@ -464,13 +464,13 @@ function Nt(t) {
464
464
  y: e.y - r.height
465
465
  };
466
466
  break;
467
- case q:
467
+ case I:
468
468
  s = {
469
469
  x: l,
470
470
  y: e.y + e.height
471
471
  };
472
472
  break;
473
- case I:
473
+ case V:
474
474
  s = {
475
475
  x: e.x + e.width,
476
476
  y: i
@@ -488,36 +488,36 @@ function Nt(t) {
488
488
  y: e.y
489
489
  };
490
490
  }
491
- var f = o ? Ze(o) : null;
491
+ var f = o ? et(o) : null;
492
492
  if (f != null) {
493
493
  var c = f === "y" ? "height" : "width";
494
494
  switch (a) {
495
- case ue:
495
+ case de:
496
496
  s[f] = s[f] - (e[c] / 2 - r[c] / 2);
497
497
  break;
498
- case we:
498
+ case Pe:
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 Oe(t, e) {
505
+ function Ee(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 ? 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({
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 ? jt : f, m = r.elementContext, h = m === void 0 ? xe : m, p = r.altBoundary, O = p === void 0 ? !1 : p, u = r.padding, x = u === void 0 ? 0 : u, M = Bt(typeof x != "number" ? x : Ht(x, Me)), R = h === xe ? mr : xe, E = t.rects.popper, d = t.elements[O ? R : h], y = Xr(pe(d) ? d : d.contextElement || te(t.elements.popper), s, c, l), w = me(t.elements.reference), v = Wt({
508
508
  reference: w,
509
509
  element: E,
510
510
  placement: o
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];
511
+ }), A = Ke(Object.assign({}, E, v)), g = h === xe ? A : w, P = {
512
+ top: y.top - g.top + M.top,
513
+ bottom: g.bottom - y.bottom + M.bottom,
514
+ left: y.left - g.left + M.left,
515
+ right: g.right - y.right + M.right
516
+ }, D = t.modifiersData.offset;
517
+ if (h === xe && D) {
518
+ var k = D[o];
519
519
  Object.keys(P).forEach(function(j) {
520
- var H = [I, q].indexOf(j) >= 0 ? 1 : -1, C = [$, q].indexOf(j) >= 0 ? "y" : "x";
520
+ var H = [V, I].indexOf(j) >= 0 ? 1 : -1, C = [$, I].indexOf(j) >= 0 ? "y" : "x";
521
521
  P[j] += k[C] * H;
522
522
  });
523
523
  }
@@ -525,14 +525,14 @@ function Oe(t, e) {
525
525
  }
526
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 ? 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) {
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 ? Lt : s, c = he(n), m = c ? i ? yt : yt.filter(function(O) {
529
+ return he(O) === c;
530
+ }) : Me, h = m.filter(function(O) {
531
531
  return f.indexOf(O) >= 0;
532
532
  });
533
533
  h.length === 0 && (h = m);
534
534
  var p = h.reduce(function(O, u) {
535
- return O[u] = Oe(t, {
535
+ return O[u] = Ee(t, {
536
536
  placement: u,
537
537
  boundary: o,
538
538
  rootBoundary: a,
@@ -544,55 +544,55 @@ function Jr(t, e) {
544
544
  });
545
545
  }
546
546
  function Kr(t) {
547
- if (J(t) === Je)
547
+ if (J(t) === Ge)
548
548
  return [];
549
- var e = Te(t);
550
- return [bt(t), e, bt(e)];
549
+ var e = Ce(t);
550
+ return [xt(t), e, xt(e)];
551
551
  }
552
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, 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,
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, M = J(x), R = M === x, E = s || (R || !O ? [Ce(x)] : Kr(x)), d = [x].concat(E).reduce(function(N, F) {
556
+ return N.concat(J(F) === Ge ? Jr(e, {
557
+ placement: F,
558
558
  boundary: c,
559
559
  rootBoundary: m,
560
560
  padding: f,
561
561
  flipVariations: O,
562
562
  allowedAutoPlacements: u
563
- }) : V);
563
+ }) : F);
564
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,
565
+ var D = d[P], k = J(D), j = he(D) === de, H = [$, I].indexOf(k) >= 0, C = H ? "width" : "height", _ = Ee(e, {
566
+ placement: D,
567
567
  boundary: c,
568
568
  rootBoundary: m,
569
569
  altBoundary: h,
570
570
  padding: f
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;
571
+ }), S = H ? j ? V : B : j ? I : $;
572
+ y[C] > w[C] && (S = Ce(S));
573
+ var L = Ce(S), z = [];
574
+ if (a && z.push(_[k] <= 0), i && z.push(_[S] <= 0, _[L] <= 0), z.every(function(N) {
575
+ return N;
576
576
  })) {
577
- g = M, A = !1;
577
+ g = D, A = !1;
578
578
  break;
579
579
  }
580
- v.set(M, U);
580
+ v.set(D, z);
581
581
  }
582
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);
583
+ for (var Q = O ? 3 : 1, ye = function(F) {
584
+ var ee = d.find(function(oe) {
585
+ var G = v.get(oe);
586
586
  if (G)
587
- return G.slice(0, V).every(function(ie) {
588
- return ie;
587
+ return G.slice(0, F).every(function(ae) {
588
+ return ae;
589
589
  });
590
590
  });
591
591
  if (ee)
592
592
  return g = ee, "break";
593
- }, ne = Q; ne > 0; ne--) {
594
- var oe = he(ne);
595
- if (oe === "break") break;
593
+ }, re = Q; re > 0; re--) {
594
+ var ne = ye(re);
595
+ if (ne === "break") break;
596
596
  }
597
597
  e.placement !== g && (e.modifiersData[n]._skip = !0, e.placement = g, e.reset = !0);
598
598
  }
@@ -607,7 +607,7 @@ const Zr = {
607
607
  _skip: !1
608
608
  }
609
609
  };
610
- function wt(t, e, r) {
610
+ function Ot(t, e, r) {
611
611
  return r === void 0 && (r = {
612
612
  x: 0,
613
613
  y: 0
@@ -618,17 +618,17 @@ function wt(t, e, r) {
618
618
  left: t.left - e.width - r.x
619
619
  };
620
620
  }
621
- function Ot(t) {
622
- return [$, I, q, B].some(function(e) {
621
+ function Pt(t) {
622
+ return [$, V, I, B].some(function(e) {
623
623
  return t[e] >= 0;
624
624
  });
625
625
  }
626
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, {
627
+ var e = t.state, r = t.name, n = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, l = Ee(e, {
628
628
  elementContext: "reference"
629
- }), i = Oe(e, {
629
+ }), i = Ee(e, {
630
630
  altBoundary: !0
631
- }), s = wt(l, n), f = wt(i, o, a), c = Ot(s), m = Ot(f);
631
+ }), s = Ot(l, n), f = Ot(i, o, a), c = Pt(s), m = Pt(f);
632
632
  e.modifiersData[r] = {
633
633
  referenceClippingOffsets: s,
634
634
  popperEscapeOffsets: f,
@@ -650,7 +650,7 @@ function tn(t, e, r) {
650
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, [B, I].indexOf(n) >= 0 ? {
653
+ return l = l || 0, i = (i || 0) * o, [B, V].indexOf(n) >= 0 ? {
654
654
  x: i,
655
655
  y: l
656
656
  } : {
@@ -659,7 +659,7 @@ function tn(t, e, r) {
659
659
  };
660
660
  }
661
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) {
662
+ var e = t.state, r = t.options, n = t.name, o = r.offset, a = o === void 0 ? [0, 0] : o, l = Lt.reduce(function(c, m) {
663
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;
@@ -673,7 +673,7 @@ const nn = {
673
673
  };
674
674
  function on(t) {
675
675
  var e = t.state, r = t.name;
676
- e.modifiersData[r] = Nt({
676
+ e.modifiersData[r] = Wt({
677
677
  reference: e.rects.reference,
678
678
  element: e.rects.popper,
679
679
  placement: e.placement
@@ -690,12 +690,12 @@ function sn(t) {
690
690
  return t === "x" ? "y" : "x";
691
691
  }
692
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, {
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 = Ee(e, {
694
694
  boundary: s,
695
695
  rootBoundary: f,
696
696
  padding: m,
697
697
  altBoundary: c
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, {
698
+ }), M = J(e.placement), R = he(e.placement), E = !R, d = et(M), 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
700
  })) : u, P = typeof g == "number" ? {
701
701
  mainAxis: g,
@@ -703,21 +703,21 @@ function ln(t) {
703
703
  } : Object.assign({
704
704
  mainAxis: 0,
705
705
  altAxis: 0
706
- }, g), M = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
706
+ }, g), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, k = {
707
707
  x: 0,
708
708
  y: 0
709
709
  };
710
710
  if (w) {
711
711
  if (a) {
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) : {
712
+ var j, H = d === "y" ? $ : B, C = d === "y" ? I : V, _ = d === "y" ? "height" : "width", S = w[d], L = S + x[H], z = S - x[C], Q = p ? -A[_] / 2 : 0, ye = R === de ? v[_] : A[_], re = R === de ? -A[_] : -v[_], ne = e.elements.arrow, N = p && ne ? Qe(ne) : {
713
713
  width: 0,
714
714
  height: 0
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;
715
+ }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $t(), ee = F[H], oe = F[C], G = we(0, v[_], N[_]), ae = E ? v[_] / 2 - Q - G - ee - P.mainAxis : ye - G - ee - P.mainAxis, Ve = E ? -v[_] / 2 + Q + G + oe + P.mainAxis : re + G + oe + P.mainAxis, ge = e.elements.arrow && De(e.elements.arrow), Re = ge ? d === "y" ? ge.clientTop || 0 : ge.clientLeft || 0 : 0, T = (j = D == null ? void 0 : D[d]) != null ? j : 0, ie = S + ae - T - Re, se = S + Ve - T, be = we(p ? He(L, ie) : L, S, p ? fe(z, se) : z);
716
+ w[d] = be, k[d] = be - S;
717
717
  }
718
718
  if (i) {
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;
719
+ var ot, Vt = d === "x" ? $ : B, Ft = d === "x" ? I : V, le = w[y], Te = y === "y" ? "height" : "width", at = le + x[Vt], it = le - x[Ft], Fe = [$, B].indexOf(M) !== -1, st = (ot = D == null ? void 0 : D[y]) != null ? ot : 0, lt = Fe ? at : le - v[Te] - A[Te] - st + P.altAxis, ct = Fe ? le + v[Te] + A[Te] - st - P.altAxis : it, ft = p && Fe ? Cr(lt, le, ct) : we(p ? lt : at, le, p ? ct : it);
720
+ w[y] = ft, k[y] = ft - le;
721
721
  }
722
722
  e.modifiersData[n] = k;
723
723
  }
@@ -736,15 +736,15 @@ function fn(t) {
736
736
  };
737
737
  }
738
738
  function pn(t) {
739
- return t === N(t) || !W(t) ? Qe(t) : fn(t);
739
+ return t === W(t) || !q(t) ? tt(t) : fn(t);
740
740
  }
741
741
  function un(t) {
742
- var e = t.getBoundingClientRect(), r = de(e.width) / t.offsetWidth || 1, n = de(e.height) / t.offsetHeight || 1;
742
+ var e = t.getBoundingClientRect(), r = ve(e.width) / t.offsetWidth || 1, n = ve(e.height) / t.offsetHeight || 1;
743
743
  return r !== 1 || n !== 1;
744
744
  }
745
745
  function dn(t, e, r) {
746
746
  r === void 0 && (r = !1);
747
- var n = W(e), o = W(e) && un(e), a = re(e), l = ve(t, o, r), i = {
747
+ var n = q(e), o = q(e) && un(e), a = te(e), l = me(t, o, r), i = {
748
748
  scrollLeft: 0,
749
749
  scrollTop: 0
750
750
  }, s = {
@@ -752,7 +752,7 @@ function dn(t, e, r) {
752
752
  y: 0
753
753
  };
754
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))), {
755
+ nt(a)) && (i = pn(e)), q(e) ? (s = me(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = rt(a))), {
756
756
  x: l.left + i.scrollLeft - s.x,
757
757
  y: l.top + i.scrollTop - s.y,
758
758
  width: l.width,
@@ -808,12 +808,12 @@ function yn(t) {
808
808
  return e[r];
809
809
  });
810
810
  }
811
- var Pt = {
811
+ var Et = {
812
812
  placement: "bottom",
813
813
  modifiers: [],
814
814
  strategy: "absolute"
815
815
  };
816
- function Et() {
816
+ function Mt() {
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) {
@@ -822,13 +822,13 @@ function Et() {
822
822
  }
823
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 ? Pt : o;
825
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, o = e.defaultOptions, a = o === void 0 ? Et : 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({}, Pt, a),
831
+ options: Object.assign({}, Et, a),
832
832
  modifiersData: {},
833
833
  elements: {
834
834
  reference: i,
@@ -838,11 +838,11 @@ function gn(t) {
838
838
  styles: {}
839
839
  }, m = [], h = !1, p = {
840
840
  state: c,
841
- setOptions: function(D) {
842
- var R = typeof D == "function" ? D(c.options) : D;
841
+ setOptions: function(M) {
842
+ var R = typeof M == "function" ? M(c.options) : M;
843
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)
844
+ reference: pe(i) ? Oe(i) : i.contextElement ? Oe(i.contextElement) : [],
845
+ popper: Oe(s)
846
846
  };
847
847
  var E = mn(yn([].concat(n, c.options.modifiers)));
848
848
  return c.orderedModifiers = E.filter(function(d) {
@@ -856,11 +856,11 @@ function gn(t) {
856
856
  // prefer the async Popper#update method
857
857
  forceUpdate: function() {
858
858
  if (!h) {
859
- var D = c.elements, R = D.reference, E = D.popper;
860
- if (Et(R, E)) {
859
+ var M = c.elements, R = M.reference, E = M.popper;
860
+ if (Mt(R, E)) {
861
861
  c.rects = {
862
- reference: dn(R, Ee(E), c.options.strategy === "fixed"),
863
- popper: Ge(E)
862
+ reference: dn(R, De(E), c.options.strategy === "fixed"),
863
+ popper: Qe(E)
864
864
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
865
865
  return c.modifiersData[P.name] = Object.assign({}, P.data);
866
866
  });
@@ -891,18 +891,18 @@ function gn(t) {
891
891
  u(), h = !0;
892
892
  }
893
893
  };
894
- if (!Et(i, s))
894
+ if (!Mt(i, s))
895
895
  return p;
896
896
  p.setOptions(f).then(function(x) {
897
897
  !h && f.onFirstUpdate && f.onFirstUpdate(x);
898
898
  });
899
899
  function O() {
900
900
  c.orderedModifiers.forEach(function(x) {
901
- var D = x.name, R = x.options, E = R === void 0 ? {} : R, d = x.effect;
901
+ var M = x.name, R = x.options, E = R === void 0 ? {} : R, d = x.effect;
902
902
  if (typeof d == "function") {
903
903
  var y = d({
904
904
  state: c,
905
- name: D,
905
+ name: M,
906
906
  instance: p,
907
907
  options: E
908
908
  }), w = function() {
@@ -922,11 +922,11 @@ function gn(t) {
922
922
  var bn = [Wr, an, Hr, Tr, nn, Zr, cn, Sr, en], xn = /* @__PURE__ */ gn({
923
923
  defaultModifiers: bn
924
924
  });
925
- const Wt = "Popper";
925
+ const qt = "Popper";
926
926
  function wn(t) {
927
- return ar(Wt, t);
927
+ return ar(qt, t);
928
928
  }
929
- ir(Wt, ["root"]);
929
+ ir(qt, ["root"]);
930
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
931
  function En(t, e) {
932
932
  if (e === "ltr")
@@ -944,18 +944,18 @@ function En(t, e) {
944
944
  return t;
945
945
  }
946
946
  }
947
- function $e(t) {
947
+ function Ne(t) {
948
948
  return typeof t == "function" ? t() : t;
949
949
  }
950
- function Ne(t) {
950
+ function Ie(t) {
951
951
  return t.nodeType !== void 0;
952
952
  }
953
953
  function Mn(t) {
954
- return !Ne(t);
954
+ return !Ie(t);
955
955
  }
956
956
  const Dn = () => lr({
957
957
  root: ["root"]
958
- }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ F.forwardRef(function(e, r) {
958
+ }, cr(wn)), Rn = {}, Tn = /* @__PURE__ */ U.forwardRef(function(e, r) {
959
959
  var n;
960
960
  const {
961
961
  anchorEl: o,
@@ -972,22 +972,22 @@ const Dn = () => lr({
972
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, 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(() => {
975
+ } = e, x = _t(e, On), M = U.useRef(null), R = dt(M, r), E = U.useRef(null), d = dt(E, h), y = U.useRef(d);
976
+ ht(() => {
977
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(() => {
978
+ }, [d]), U.useImperativeHandle(h, () => E.current, []);
979
+ const w = En(c, l), [v, A] = U.useState(w), [g, P] = U.useState(Ne(o));
980
+ U.useEffect(() => {
981
981
  E.current && E.current.forceUpdate();
982
- }), F.useEffect(() => {
983
- o && P($e(o));
984
- }, [o]), mt(() => {
982
+ }), U.useEffect(() => {
983
+ o && P(Ne(o));
984
+ }, [o]), ht(() => {
985
985
  if (!g || !f)
986
986
  return;
987
987
  const C = (L) => {
988
988
  A(L.placement);
989
989
  };
990
- if (process.env.NODE_ENV !== "production" && g && Ne(g) && g.nodeType === 1) {
990
+ if (process.env.NODE_ENV !== "production" && g && Ie(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
  `));
@@ -1013,7 +1013,7 @@ const Dn = () => lr({
1013
1013
  }
1014
1014
  }];
1015
1015
  s != null && (_ = _.concat(s)), m && m.modifiers != null && (_ = _.concat(m.modifiers));
1016
- const S = xn(g, D.current, Se({
1016
+ const S = xn(g, M.current, Be({
1017
1017
  placement: w
1018
1018
  }, m, {
1019
1019
  modifiers: _
@@ -1022,10 +1022,10 @@ const Dn = () => lr({
1022
1022
  S.destroy(), y.current(null);
1023
1023
  };
1024
1024
  }, [g, i, s, f, m, w]);
1025
- const M = {
1025
+ const D = {
1026
1026
  placement: v
1027
1027
  };
1028
- u !== null && (M.TransitionProps = u);
1028
+ u !== null && (D.TransitionProps = u);
1029
1029
  const k = Dn(), j = (n = O.root) != null ? n : "div", H = sr({
1030
1030
  elementType: j,
1031
1031
  externalSlotProps: p.root,
@@ -1037,10 +1037,10 @@ const Dn = () => lr({
1037
1037
  ownerState: e,
1038
1038
  className: k.root
1039
1039
  });
1040
- return /* @__PURE__ */ Y(j, Se({}, H, {
1041
- children: typeof a == "function" ? a(M) : a
1040
+ return /* @__PURE__ */ Y(j, Be({}, H, {
1041
+ children: typeof a == "function" ? a(D) : a
1042
1042
  }));
1043
- }), qt = /* @__PURE__ */ F.forwardRef(function(e, r) {
1043
+ }), It = /* @__PURE__ */ U.forwardRef(function(e, r) {
1044
1044
  const {
1045
1045
  anchorEl: n,
1046
1046
  children: o,
@@ -1056,8 +1056,8 @@ const Dn = () => lr({
1056
1056
  style: O,
1057
1057
  transition: u = !1,
1058
1058
  slotProps: x = {},
1059
- slots: D = {}
1060
- } = e, R = Ct(e, Pn), [E, d] = F.useState(!0), y = () => {
1059
+ slots: M = {}
1060
+ } = e, R = _t(e, Pn), [E, d] = U.useState(!0), y = () => {
1061
1061
  d(!1);
1062
1062
  }, w = () => {
1063
1063
  d(!0);
@@ -1068,8 +1068,8 @@ const Dn = () => lr({
1068
1068
  if (a)
1069
1069
  v = a;
1070
1070
  else if (n) {
1071
- const P = $e(n);
1072
- v = P && Ne(P) ? dt(P).body : dt(null).body;
1071
+ const P = Ne(n);
1072
+ v = P && Ie(P) ? vt(P).body : vt(null).body;
1073
1073
  }
1074
1074
  const A = !c && s && (!u || E) ? "none" : void 0, g = u ? {
1075
1075
  in: c,
@@ -1079,7 +1079,7 @@ const Dn = () => lr({
1079
1079
  return /* @__PURE__ */ Y(pr, {
1080
1080
  disablePortal: i,
1081
1081
  container: v,
1082
- children: /* @__PURE__ */ Y(Tn, Se({
1082
+ children: /* @__PURE__ */ Y(Tn, Be({
1083
1083
  anchorEl: n,
1084
1084
  direction: l,
1085
1085
  disablePortal: i,
@@ -1090,9 +1090,9 @@ const Dn = () => lr({
1090
1090
  popperOptions: h,
1091
1091
  popperRef: p,
1092
1092
  slotProps: x,
1093
- slots: D
1093
+ slots: M
1094
1094
  }, R, {
1095
- style: Se({
1095
+ style: Be({
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
@@ -1105,7 +1105,7 @@ const Dn = () => lr({
1105
1105
  }))
1106
1106
  });
1107
1107
  });
1108
- process.env.NODE_ENV !== "production" && (qt.propTypes = {
1108
+ process.env.NODE_ENV !== "production" && (It.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,10 +1116,10 @@ process.env.NODE_ENV !== "production" && (qt.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: fr(b.oneOfType([vt, b.object, b.func]), (t) => {
1119
+ anchorEl: fr(b.oneOfType([mt, b.object, b.func]), (t) => {
1120
1120
  if (t.open) {
1121
- const e = $e(t.anchorEl);
1122
- if (e && Ne(e) && e.nodeType === 1) {
1121
+ const e = Ne(t.anchorEl);
1122
+ if (e && Ie(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(`
@@ -1144,7 +1144,7 @@ process.env.NODE_ENV !== "production" && (qt.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: b.oneOfType([vt, b.func]),
1147
+ container: b.oneOfType([mt, b.func]),
1148
1148
  /**
1149
1149
  * Direction of the text.
1150
1150
  * @default 'ltr'
@@ -1226,9 +1226,9 @@ process.env.NODE_ENV !== "production" && (qt.propTypes = {
1226
1226
  */
1227
1227
  transition: b.bool
1228
1228
  });
1229
- var Ae = { exports: {} }, An = Ae.exports, Mt;
1229
+ var _e = { exports: {} }, An = _e.exports, Dt;
1230
1230
  function kn() {
1231
- return Mt || (Mt = 1, function(t, e) {
1231
+ return Dt || (Dt = 1, function(t, e) {
1232
1232
  (function(r, n) {
1233
1233
  t.exports = n();
1234
1234
  })(An, function() {
@@ -1239,13 +1239,13 @@ function kn() {
1239
1239
  };
1240
1240
  };
1241
1241
  });
1242
- }(Ae)), Ae.exports;
1242
+ }(_e)), _e.exports;
1243
1243
  }
1244
1244
  var Cn = kn();
1245
- const _n = /* @__PURE__ */ Be(Cn);
1246
- var ke = { exports: {} }, jn = ke.exports, Dt;
1245
+ const _n = /* @__PURE__ */ We(Cn);
1246
+ var je = { exports: {} }, jn = je.exports, Rt;
1247
1247
  function Ln() {
1248
- return Dt || (Dt = 1, function(t, e) {
1248
+ return Rt || (Rt = 1, function(t, e) {
1249
1249
  (function(r, n) {
1250
1250
  t.exports = n();
1251
1251
  })(jn, function() {
@@ -1256,13 +1256,13 @@ function Ln() {
1256
1256
  };
1257
1257
  };
1258
1258
  });
1259
- }(ke)), ke.exports;
1259
+ }(je)), je.exports;
1260
1260
  }
1261
1261
  var Sn = Ln();
1262
- const Yn = /* @__PURE__ */ Be(Sn);
1263
- var Ce = { exports: {} }, $n = Ce.exports, Rt;
1262
+ const Yn = /* @__PURE__ */ We(Sn);
1263
+ var Le = { exports: {} }, $n = Le.exports, Tt;
1264
1264
  function Bn() {
1265
- return Rt || (Rt = 1, function(t, e) {
1265
+ return Tt || (Tt = 1, function(t, e) {
1266
1266
  (function(r, n) {
1267
1267
  t.exports = n();
1268
1268
  })($n, function() {
@@ -1274,7 +1274,7 @@ function Bn() {
1274
1274
  var f = this.$locale().formats, c = function(m, h) {
1275
1275
  return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, O, u) {
1276
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) {
1277
+ return O || h[u] || r[u] || h[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, R, E) {
1278
1278
  return R || E.slice(1);
1279
1279
  });
1280
1280
  });
@@ -1283,13 +1283,13 @@ function Bn() {
1283
1283
  };
1284
1284
  };
1285
1285
  });
1286
- }(Ce)), Ce.exports;
1286
+ }(Le)), Le.exports;
1287
1287
  }
1288
1288
  var Hn = Bn();
1289
- const Nn = /* @__PURE__ */ Be(Hn);
1290
- var _e = { exports: {} }, Wn = _e.exports, Tt;
1289
+ const Nn = /* @__PURE__ */ We(Hn);
1290
+ var Se = { exports: {} }, Wn = Se.exports, At;
1291
1291
  function qn() {
1292
- return Tt || (Tt = 1, function(t, e) {
1292
+ return At || (At = 1, function(t, e) {
1293
1293
  (function(r, n) {
1294
1294
  t.exports = n();
1295
1295
  })(Wn, function() {
@@ -1300,13 +1300,13 @@ function qn() {
1300
1300
  };
1301
1301
  };
1302
1302
  });
1303
- }(_e)), _e.exports;
1303
+ }(Se)), Se.exports;
1304
1304
  }
1305
1305
  var In = qn();
1306
- const Vn = /* @__PURE__ */ Be(In);
1307
- var je = { exports: {} }, Fn = je.exports, At;
1306
+ const Vn = /* @__PURE__ */ We(In);
1307
+ var Ye = { exports: {} }, Fn = Ye.exports, kt;
1308
1308
  function Un() {
1309
- return At || (At = 1, function(t, e) {
1309
+ return kt || (kt = 1, function(t, e) {
1310
1310
  (function(r, n) {
1311
1311
  t.exports = n();
1312
1312
  })(Fn, function() {
@@ -1315,12 +1315,12 @@ function Un() {
1315
1315
  return "[" + r + (n[(o - 20) % 10] || n[o] || n[0]) + "]";
1316
1316
  } };
1317
1317
  });
1318
- }(je)), je.exports;
1318
+ }(Ye)), Ye.exports;
1319
1319
  }
1320
1320
  Un();
1321
- var Le = { exports: {} }, zn = Le.exports, kt;
1321
+ var $e = { exports: {} }, zn = $e.exports, Ct;
1322
1322
  function Xn() {
1323
- return kt || (kt = 1, function(t, e) {
1323
+ return Ct || (Ct = 1, function(t, e) {
1324
1324
  (function(r, n) {
1325
1325
  t.exports = n(zt());
1326
1326
  })(zn, function(r) {
@@ -1332,14 +1332,14 @@ function Xn() {
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
- }(Le)), Le.exports;
1335
+ }($e)), $e.exports;
1336
1336
  }
1337
1337
  Xn();
1338
1338
  X.extend(_n);
1339
1339
  X.extend(Vn);
1340
1340
  X.extend(Nn);
1341
1341
  X.extend(Yn);
1342
- const Ue = (t) => {
1342
+ const Xe = (t) => {
1343
1343
  switch (t) {
1344
1344
  case "pt":
1345
1345
  return "Selecionar data";
@@ -1360,30 +1360,30 @@ const Ue = (t) => {
1360
1360
  navigatorInput: c = !1,
1361
1361
  className: m,
1362
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(
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, M = e === "range" ? t.limit : void 0, R = p ? X(p).locale(n) : O ? X(O[1]).locale(n) : X().locale(n), E = u || Xe(n), d = x || [Xe(n), Xe(n)], [y, w] = ce(p ? X(p) : null), [v, A] = ce(
1364
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) => {
1365
+ ), [g, P] = ce(R), [D, k] = ce(!1), [j, H] = ce(!1), [C, _] = ce(r), [S, L] = ce(null), z = pt(null), Q = pt(null);
1366
+ Ue(() => {
1367
+ D || _(r);
1368
+ }, [D, r]), Ue(() => {
1369
+ D || L(null);
1370
+ }, [D]);
1371
+ const ye = (T) => {
1372
1372
  if (e === "range" && j && T.key === "Escape") {
1373
1373
  A([null, null]), H(!1);
1374
1374
  return;
1375
1375
  }
1376
1376
  Qt(
1377
1377
  T,
1378
- M,
1378
+ D,
1379
1379
  C,
1380
1380
  g,
1381
1381
  P,
1382
1382
  e,
1383
- oe,
1383
+ ne,
1384
1384
  k
1385
1385
  );
1386
- }, ne = Ut(
1386
+ }, re = Ut(
1387
1387
  (T) => {
1388
1388
  if (!j) {
1389
1389
  A([T, null]), H(!0);
@@ -1394,34 +1394,34 @@ const Ue = (t) => {
1394
1394
  return;
1395
1395
  }
1396
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);
1397
+ const [ie, se] = T.isAfter(v[0]) ? [v[0], T] : [T, v[0]];
1398
+ A([ie, se]), H(!1), L(null), s([ie, se]), k(!1);
1399
1399
  },
1400
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;
1401
+ ), ne = (T) => {
1402
+ Kt(T, a, l, i, e, v) || (e === "single" ? (w(T), P(T), s(T), k(!1)) : re(T));
1403
+ }, N = () => {
1404
+ var T, ie, se, be;
1405
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)) || ""
1406
+ ((ie = (T = v[0]) == null ? void 0 : T.locale(n)) == null ? void 0 : ie.format(o)) || "",
1407
+ ((be = (se = v[1]) == null ? void 0 : se.locale(n)) == null ? void 0 : be.format(o)) || ""
1408
1408
  ] : v[0] ? v[0].locale(n).format(o) : "";
1409
- }, V = () => {
1409
+ }, F = () => {
1410
1410
  P(C === "day" ? Gt(g) : C === "month" ? g.subtract(1, "year") : g.subtract(12, "years"));
1411
1411
  }, ee = () => {
1412
1412
  P(C === "day" ? Zt(g) : C === "month" ? g.add(1, "year") : g.add(12, "years"));
1413
- }, ae = () => rr({
1413
+ }, oe = () => rr({
1414
1414
  currentViewMode: C,
1415
1415
  currentMonth: g,
1416
1416
  locale: n,
1417
- navigateToPrevious: V,
1417
+ navigateToPrevious: F,
1418
1418
  navigateToNext: ee,
1419
1419
  setCurrentViewMode: _
1420
1420
  }), G = () => tr({
1421
1421
  currentMonth: g,
1422
1422
  locale: n,
1423
1423
  setCurrentMonth: P
1424
- }), ie = (T = 0) => er({
1424
+ }), ae = (T = 0) => er({
1425
1425
  currentMonth: T === 0 ? g : g.add(1, "month"),
1426
1426
  selectedDate: y,
1427
1427
  selectedRange: v,
@@ -1432,20 +1432,20 @@ const Ue = (t) => {
1432
1432
  minDate: a,
1433
1433
  maxDate: l,
1434
1434
  disableDates: i,
1435
- handleSelect: oe,
1435
+ handleSelect: ne,
1436
1436
  setHoverDate: L,
1437
- limit: D
1438
- }), We = () => /* @__PURE__ */ Ie(
1437
+ limit: M
1438
+ }), Ve = () => /* @__PURE__ */ Ae(
1439
1439
  "div",
1440
1440
  {
1441
1441
  ref: Q,
1442
- className: pt(ye["datepicker-container"], e === "range" && ye["range-mode"]),
1442
+ className: ut(ue["datepicker-container"], e === "range" && ue["range-mode"]),
1443
1443
  "data-testid": `${h}-content`,
1444
1444
  children: [
1445
- e === "single" && ae(),
1445
+ e === "single" && oe(),
1446
1446
  e === "range" && C === "day" && G(),
1447
- e === "range" && C !== "day" && ae(),
1448
- C === "day" && e === "single" && ie(),
1447
+ e === "range" && C !== "day" && oe(),
1448
+ C === "day" && e === "single" && ae(),
1449
1449
  (C === "month" || C === "year") && or({
1450
1450
  currentViewMode: C,
1451
1451
  currentMonth: g,
@@ -1460,28 +1460,33 @@ const Ue = (t) => {
1460
1460
  setCurrentViewMode: _,
1461
1461
  setIsOpen: k
1462
1462
  }),
1463
- e === "range" && C === "day" && /* @__PURE__ */ Ie("div", { className: ye["dual-calendar-container"], children: [
1464
- ie(0),
1465
- ie(1)
1463
+ e === "range" && C === "day" && /* @__PURE__ */ Ae("div", { className: ue["dual-calendar-container"], children: [
1464
+ ae(0),
1465
+ ae(1)
1466
1466
  ] })
1467
1467
  ]
1468
1468
  }
1469
- );
1470
- return Ve(() => {
1471
- if (M && Q.current) {
1469
+ ), ge = () => {
1470
+ e === "range" ? (A([null, null]), s([null, null])) : (w(null), s(null));
1471
+ }, Re = (T) => /* @__PURE__ */ Ae("span", { className: ue["datepicker-buttons-container"], children: [
1472
+ T && /* @__PURE__ */ Y("span", { onClick: () => ge(), "data-testid": `${h}-toggle-icon-remove`, children: /* @__PURE__ */ Y(ze, { icon: "circle-xmark" }) }),
1473
+ /* @__PURE__ */ Y("span", { onClick: () => k(!D), "data-testid": `${h}-toggle-icon`, children: /* @__PURE__ */ Y(ze, { icon: "calendar-days" }) })
1474
+ ] });
1475
+ return Ue(() => {
1476
+ if (D && Q.current) {
1472
1477
  const T = Q.current.querySelector("button");
1473
1478
  T && T.focus();
1474
1479
  }
1475
- }, [M]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ie(
1480
+ }, [D]), /* @__PURE__ */ Y(ur, { onClickAway: () => k(!1), children: /* @__PURE__ */ Ae(
1476
1481
  "div",
1477
1482
  {
1478
- ref: U,
1479
- onKeyDown: he,
1480
- className: pt(ye["datepicker-wrapper"], m),
1483
+ ref: z,
1484
+ onKeyDown: ye,
1485
+ className: ut(ue["datepicker-wrapper"], m),
1481
1486
  "data-testid": h,
1482
1487
  children: [
1483
1488
  c ? nr({
1484
- navigateToPrevious: V,
1489
+ navigateToPrevious: F,
1485
1490
  navigateToNext: ee,
1486
1491
  currentMonth: g,
1487
1492
  selectedDate: y,
@@ -1492,47 +1497,47 @@ const Ue = (t) => {
1492
1497
  setIsOpen: k,
1493
1498
  setSelectedDate: w,
1494
1499
  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(
1500
+ }) : /* @__PURE__ */ Y("div", { className: ue["datepicker-input-container"], "data-testid": `${h}-input-container`, children: e === "range" ? /* @__PURE__ */ Y("div", { style: { display: "flex" }, children: /* @__PURE__ */ Y(
1496
1501
  Xt,
1497
1502
  {
1498
1503
  leftInputProps: {
1499
- value: z()[0],
1500
- onClick: () => k(!M),
1504
+ value: N()[0],
1505
+ onClick: () => k(!D),
1501
1506
  placeholder: d[0]
1502
1507
  },
1503
1508
  rightInputProps: {
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),
1509
+ value: N()[1],
1510
+ rightIcon: Re(!!(N()[0] && N()[1])),
1511
+ onClick: () => k(!D),
1507
1512
  placeholder: d[1]
1508
1513
  },
1509
- separator: /* @__PURE__ */ Y(Fe, { icon: "arrow-right" })
1514
+ separator: /* @__PURE__ */ Y(ze, { icon: "arrow-right" })
1510
1515
  }
1511
1516
  ) }) : /* @__PURE__ */ Y(
1512
1517
  Jt,
1513
1518
  {
1514
1519
  placeholder: E,
1515
- value: z(),
1516
- onClick: () => k(!M),
1520
+ value: N(),
1521
+ onClick: () => k(!D),
1517
1522
  "aria-label": "Date Picker Input",
1518
1523
  "aria-haspopup": "dialog",
1519
- "aria-expanded": M,
1524
+ "aria-expanded": D,
1520
1525
  "aria-controls": "date-picker-calendar",
1521
- rightIcon: /* @__PURE__ */ Y("span", { onClick: () => k(!M), "data-testid": `${h}-toggle-icon`, children: /* @__PURE__ */ Y(Fe, { icon: "calendar-days" }) })
1526
+ rightIcon: Re(!!N())
1522
1527
  }
1523
1528
  ) }),
1524
1529
  /* @__PURE__ */ Y(
1525
- qt,
1530
+ It,
1526
1531
  {
1527
- open: M,
1528
- anchorEl: U.current,
1532
+ open: D,
1533
+ anchorEl: z.current,
1529
1534
  placement: f,
1530
1535
  id: "date-picker-calendar",
1531
1536
  role: "dialog",
1532
1537
  "aria-modal": "true",
1533
1538
  "aria-label": "Date selection calendar",
1534
1539
  "data-testid": `${h}-popper`,
1535
- children: We()
1540
+ children: Ve()
1536
1541
  }
1537
1542
  )
1538
1543
  ]