@grasp-labs/ds-react-components 1.7.0 → 1.8.0

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.
@@ -35,12 +35,12 @@ var hr = {};
35
35
  var Qa;
36
36
  function bm() {
37
37
  return Qa || (Qa = 1, process.env.NODE_ENV !== "production" && (function() {
38
- function e(I) {
39
- if (I == null) return null;
40
- if (typeof I == "function")
41
- return I.$$typeof === N ? null : I.displayName || I.name || null;
42
- if (typeof I == "string") return I;
43
- switch (I) {
38
+ function e(S) {
39
+ if (S == null) return null;
40
+ if (typeof S == "function")
41
+ return S.$$typeof === N ? null : S.displayName || S.name || null;
42
+ if (typeof S == "string") return S;
43
+ switch (S) {
44
44
  case p:
45
45
  return "Fragment";
46
46
  case g:
@@ -54,156 +54,156 @@ function bm() {
54
54
  case T:
55
55
  return "Activity";
56
56
  }
57
- if (typeof I == "object")
58
- switch (typeof I.tag == "number" && console.error(
57
+ if (typeof S == "object")
58
+ switch (typeof S.tag == "number" && console.error(
59
59
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
60
- ), I.$$typeof) {
60
+ ), S.$$typeof) {
61
61
  case b:
62
62
  return "Portal";
63
63
  case k:
64
- return I.displayName || "Context";
64
+ return S.displayName || "Context";
65
65
  case x:
66
- return (I._context.displayName || "Context") + ".Consumer";
66
+ return (S._context.displayName || "Context") + ".Consumer";
67
67
  case m:
68
- var Y = I.render;
69
- return I = I.displayName, I || (I = Y.displayName || Y.name || "", I = I !== "" ? "ForwardRef(" + I + ")" : "ForwardRef"), I;
68
+ var Y = S.render;
69
+ return S = S.displayName, S || (S = Y.displayName || Y.name || "", S = S !== "" ? "ForwardRef(" + S + ")" : "ForwardRef"), S;
70
70
  case O:
71
- return Y = I.displayName || null, Y !== null ? Y : e(I.type) || "Memo";
72
- case S:
73
- Y = I._payload, I = I._init;
71
+ return Y = S.displayName || null, Y !== null ? Y : e(S.type) || "Memo";
72
+ case I:
73
+ Y = S._payload, S = S._init;
74
74
  try {
75
- return e(I(Y));
75
+ return e(S(Y));
76
76
  } catch {
77
77
  }
78
78
  }
79
79
  return null;
80
80
  }
81
- function t(I) {
82
- return "" + I;
81
+ function t(S) {
82
+ return "" + S;
83
83
  }
84
- function n(I) {
84
+ function n(S) {
85
85
  try {
86
- t(I);
86
+ t(S);
87
87
  var Y = !1;
88
88
  } catch {
89
89
  Y = !0;
90
90
  }
91
91
  if (Y) {
92
92
  Y = console;
93
- var Z = Y.error, L = typeof Symbol == "function" && Symbol.toStringTag && I[Symbol.toStringTag] || I.constructor.name || "Object";
93
+ var Z = Y.error, A = typeof Symbol == "function" && Symbol.toStringTag && S[Symbol.toStringTag] || S.constructor.name || "Object";
94
94
  return Z.call(
95
95
  Y,
96
96
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
97
- L
98
- ), t(I);
97
+ A
98
+ ), t(S);
99
99
  }
100
100
  }
101
- function r(I) {
102
- if (I === p) return "<>";
103
- if (typeof I == "object" && I !== null && I.$$typeof === S)
101
+ function r(S) {
102
+ if (S === p) return "<>";
103
+ if (typeof S == "object" && S !== null && S.$$typeof === I)
104
104
  return "<...>";
105
105
  try {
106
- var Y = e(I);
106
+ var Y = e(S);
107
107
  return Y ? "<" + Y + ">" : "<...>";
108
108
  } catch {
109
109
  return "<...>";
110
110
  }
111
111
  }
112
112
  function o() {
113
- var I = j.A;
114
- return I === null ? null : I.getOwner();
113
+ var S = j.A;
114
+ return S === null ? null : S.getOwner();
115
115
  }
116
116
  function s() {
117
117
  return Error("react-stack-top-frame");
118
118
  }
119
- function i(I) {
120
- if (A.call(I, "key")) {
121
- var Y = Object.getOwnPropertyDescriptor(I, "key").get;
119
+ function i(S) {
120
+ if (L.call(S, "key")) {
121
+ var Y = Object.getOwnPropertyDescriptor(S, "key").get;
122
122
  if (Y && Y.isReactWarning) return !1;
123
123
  }
124
- return I.key !== void 0;
124
+ return S.key !== void 0;
125
125
  }
126
- function a(I, Y) {
126
+ function a(S, Y) {
127
127
  function Z() {
128
128
  H || (H = !0, console.error(
129
129
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
130
130
  Y
131
131
  ));
132
132
  }
133
- Z.isReactWarning = !0, Object.defineProperty(I, "key", {
133
+ Z.isReactWarning = !0, Object.defineProperty(S, "key", {
134
134
  get: Z,
135
135
  configurable: !0
136
136
  });
137
137
  }
138
138
  function c() {
139
- var I = e(this.type);
140
- return W[I] || (W[I] = !0, console.error(
139
+ var S = e(this.type);
140
+ return W[S] || (W[S] = !0, console.error(
141
141
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
142
- )), I = this.props.ref, I !== void 0 ? I : null;
142
+ )), S = this.props.ref, S !== void 0 ? S : null;
143
143
  }
144
- function l(I, Y, Z, L, B, D) {
144
+ function l(S, Y, Z, A, B, D) {
145
145
  var F = Z.ref;
146
- return I = {
146
+ return S = {
147
147
  $$typeof: v,
148
- type: I,
148
+ type: S,
149
149
  key: Y,
150
150
  props: Z,
151
- _owner: L
152
- }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(I, "ref", {
151
+ _owner: A
152
+ }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(S, "ref", {
153
153
  enumerable: !1,
154
154
  get: c
155
- }) : Object.defineProperty(I, "ref", { enumerable: !1, value: null }), I._store = {}, Object.defineProperty(I._store, "validated", {
155
+ }) : Object.defineProperty(S, "ref", { enumerable: !1, value: null }), S._store = {}, Object.defineProperty(S._store, "validated", {
156
156
  configurable: !1,
157
157
  enumerable: !1,
158
158
  writable: !0,
159
159
  value: 0
160
- }), Object.defineProperty(I, "_debugInfo", {
160
+ }), Object.defineProperty(S, "_debugInfo", {
161
161
  configurable: !1,
162
162
  enumerable: !1,
163
163
  writable: !0,
164
164
  value: null
165
- }), Object.defineProperty(I, "_debugStack", {
165
+ }), Object.defineProperty(S, "_debugStack", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
168
168
  writable: !0,
169
169
  value: B
170
- }), Object.defineProperty(I, "_debugTask", {
170
+ }), Object.defineProperty(S, "_debugTask", {
171
171
  configurable: !1,
172
172
  enumerable: !1,
173
173
  writable: !0,
174
174
  value: D
175
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
175
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
176
176
  }
177
- function d(I, Y, Z, L, B, D) {
177
+ function d(S, Y, Z, A, B, D) {
178
178
  var F = Y.children;
179
179
  if (F !== void 0)
180
- if (L)
180
+ if (A)
181
181
  if (P(F)) {
182
- for (L = 0; L < F.length; L++)
183
- u(F[L]);
182
+ for (A = 0; A < F.length; A++)
183
+ u(F[A]);
184
184
  Object.freeze && Object.freeze(F);
185
185
  } else
186
186
  console.error(
187
187
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
188
188
  );
189
189
  else u(F);
190
- if (A.call(Y, "key")) {
191
- F = e(I);
190
+ if (L.call(Y, "key")) {
191
+ F = e(S);
192
192
  var z = Object.keys(Y).filter(function(G) {
193
193
  return G !== "key";
194
194
  });
195
- L = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", M[F + L] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
195
+ A = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", M[F + A] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
196
196
  `A props object containing a "key" prop is being spread into JSX:
197
197
  let props = %s;
198
198
  <%s {...props} />
199
199
  React keys must be passed directly to JSX without using spread:
200
200
  let props = %s;
201
201
  <%s key={someKey} {...props} />`,
202
- L,
202
+ A,
203
203
  F,
204
204
  z,
205
205
  F
206
- ), M[F + L] = !0);
206
+ ), M[F + A] = !0);
207
207
  }
208
208
  if (F = null, Z !== void 0 && (n(Z), F = "" + Z), i(Y) && (n(Y.key), F = "" + Y.key), "key" in Y) {
209
209
  Z = {};
@@ -212,9 +212,9 @@ React keys must be passed directly to JSX without using spread:
212
212
  } else Z = Y;
213
213
  return F && a(
214
214
  Z,
215
- typeof I == "function" ? I.displayName || I.name || "Unknown" : I
215
+ typeof S == "function" ? S.displayName || S.name || "Unknown" : S
216
216
  ), l(
217
- I,
217
+ S,
218
218
  F,
219
219
  Z,
220
220
  o(),
@@ -222,43 +222,43 @@ React keys must be passed directly to JSX without using spread:
222
222
  D
223
223
  );
224
224
  }
225
- function u(I) {
226
- y(I) ? I._store && (I._store.validated = 1) : typeof I == "object" && I !== null && I.$$typeof === S && (I._payload.status === "fulfilled" ? y(I._payload.value) && I._payload.value._store && (I._payload.value._store.validated = 1) : I._store && (I._store.validated = 1));
225
+ function u(S) {
226
+ y(S) ? S._store && (S._store.validated = 1) : typeof S == "object" && S !== null && S.$$typeof === I && (S._payload.status === "fulfilled" ? y(S._payload.value) && S._payload.value._store && (S._payload.value._store.validated = 1) : S._store && (S._store.validated = 1));
227
227
  }
228
- function y(I) {
229
- return typeof I == "object" && I !== null && I.$$typeof === v;
228
+ function y(S) {
229
+ return typeof S == "object" && S !== null && S.$$typeof === v;
230
230
  }
231
- var h = ie, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), m = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), S = /* @__PURE__ */ Symbol.for("react.lazy"), T = /* @__PURE__ */ Symbol.for("react.activity"), N = /* @__PURE__ */ Symbol.for("react.client.reference"), j = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, P = Array.isArray, R = console.createTask ? console.createTask : function() {
231
+ var h = ie, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), x = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), m = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), I = /* @__PURE__ */ Symbol.for("react.lazy"), T = /* @__PURE__ */ Symbol.for("react.activity"), N = /* @__PURE__ */ Symbol.for("react.client.reference"), j = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, P = Array.isArray, R = console.createTask ? console.createTask : function() {
232
232
  return null;
233
233
  };
234
234
  h = {
235
- react_stack_bottom_frame: function(I) {
236
- return I();
235
+ react_stack_bottom_frame: function(S) {
236
+ return S();
237
237
  }
238
238
  };
239
239
  var H, W = {}, $ = h.react_stack_bottom_frame.bind(
240
240
  h,
241
241
  s
242
242
  )(), K = R(r(s)), M = {};
243
- hr.Fragment = p, hr.jsx = function(I, Y, Z) {
244
- var L = 1e4 > j.recentlyCreatedOwnerStacks++;
243
+ hr.Fragment = p, hr.jsx = function(S, Y, Z) {
244
+ var A = 1e4 > j.recentlyCreatedOwnerStacks++;
245
245
  return d(
246
- I,
246
+ S,
247
247
  Y,
248
248
  Z,
249
249
  !1,
250
- L ? Error("react-stack-top-frame") : $,
251
- L ? R(r(I)) : K
250
+ A ? Error("react-stack-top-frame") : $,
251
+ A ? R(r(S)) : K
252
252
  );
253
- }, hr.jsxs = function(I, Y, Z) {
254
- var L = 1e4 > j.recentlyCreatedOwnerStacks++;
253
+ }, hr.jsxs = function(S, Y, Z) {
254
+ var A = 1e4 > j.recentlyCreatedOwnerStacks++;
255
255
  return d(
256
- I,
256
+ S,
257
257
  Y,
258
258
  Z,
259
259
  !0,
260
- L ? Error("react-stack-top-frame") : $,
261
- L ? R(r(I)) : K
260
+ A ? Error("react-stack-top-frame") : $,
261
+ A ? R(r(S)) : K
262
262
  );
263
263
  };
264
264
  })()), hr;
@@ -572,15 +572,15 @@ const wm = (e, t) => {
572
572
  "bottom-left",
573
573
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
574
574
  "left-bottom"
575
- ], m = () => [...k(), ue, le], w = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], O = () => [ue, le, c], S = () => [an, "full", "auto", ...O()], T = () => [cn, "none", "subgrid", ue, le], N = () => ["auto", {
575
+ ], m = () => [...k(), ue, le], w = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], O = () => [ue, le, c], I = () => [an, "full", "auto", ...O()], T = () => [cn, "none", "subgrid", ue, le], N = () => ["auto", {
576
576
  span: ["full", cn, ue, le]
577
- }, cn, ue, le], j = () => [cn, "auto", ue, le], A = () => ["auto", "min", "max", "fr", ue, le], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...O()], W = () => [an, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], $ = () => [an, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], K = () => [an, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], M = () => [e, ue, le], I = () => [...k(), sc, oc, {
577
+ }, cn, ue, le], j = () => [cn, "auto", ue, le], L = () => ["auto", "min", "max", "fr", ue, le], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], R = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...O()], W = () => [an, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], $ = () => [an, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], K = () => [an, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], M = () => [e, ue, le], S = () => [...k(), sc, oc, {
578
578
  position: [ue, le]
579
579
  }], Y = () => ["no-repeat", {
580
580
  repeat: ["", "x", "y", "space", "round"]
581
581
  }], Z = () => ["auto", "cover", "contain", ng, Zm, {
582
582
  size: [ue, le]
583
- }], L = () => [ls, mr, xn], B = () => [
583
+ }], A = () => [ls, mr, xn], B = () => [
584
584
  // Deprecated since Tailwind CSS v4.0.0
585
585
  "",
586
586
  "none",
@@ -773,21 +773,21 @@ const wm = (e, t) => {
773
773
  * @see https://tailwindcss.com/docs/top-right-bottom-left
774
774
  */
775
775
  inset: [{
776
- inset: S()
776
+ inset: I()
777
777
  }],
778
778
  /**
779
779
  * Inset Inline
780
780
  * @see https://tailwindcss.com/docs/top-right-bottom-left
781
781
  */
782
782
  "inset-x": [{
783
- "inset-x": S()
783
+ "inset-x": I()
784
784
  }],
785
785
  /**
786
786
  * Inset Block
787
787
  * @see https://tailwindcss.com/docs/top-right-bottom-left
788
788
  */
789
789
  "inset-y": [{
790
- "inset-y": S()
790
+ "inset-y": I()
791
791
  }],
792
792
  /**
793
793
  * Inset Inline Start
@@ -795,12 +795,12 @@ const wm = (e, t) => {
795
795
  * @todo class group will be renamed to `inset-s` in next major release
796
796
  */
797
797
  start: [{
798
- "inset-s": S(),
798
+ "inset-s": I(),
799
799
  /**
800
800
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
801
801
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
802
802
  */
803
- start: S()
803
+ start: I()
804
804
  }],
805
805
  /**
806
806
  * Inset Inline End
@@ -808,54 +808,54 @@ const wm = (e, t) => {
808
808
  * @todo class group will be renamed to `inset-e` in next major release
809
809
  */
810
810
  end: [{
811
- "inset-e": S(),
811
+ "inset-e": I(),
812
812
  /**
813
813
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
814
814
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
815
815
  */
816
- end: S()
816
+ end: I()
817
817
  }],
818
818
  /**
819
819
  * Inset Block Start
820
820
  * @see https://tailwindcss.com/docs/top-right-bottom-left
821
821
  */
822
822
  "inset-bs": [{
823
- "inset-bs": S()
823
+ "inset-bs": I()
824
824
  }],
825
825
  /**
826
826
  * Inset Block End
827
827
  * @see https://tailwindcss.com/docs/top-right-bottom-left
828
828
  */
829
829
  "inset-be": [{
830
- "inset-be": S()
830
+ "inset-be": I()
831
831
  }],
832
832
  /**
833
833
  * Top
834
834
  * @see https://tailwindcss.com/docs/top-right-bottom-left
835
835
  */
836
836
  top: [{
837
- top: S()
837
+ top: I()
838
838
  }],
839
839
  /**
840
840
  * Right
841
841
  * @see https://tailwindcss.com/docs/top-right-bottom-left
842
842
  */
843
843
  right: [{
844
- right: S()
844
+ right: I()
845
845
  }],
846
846
  /**
847
847
  * Bottom
848
848
  * @see https://tailwindcss.com/docs/top-right-bottom-left
849
849
  */
850
850
  bottom: [{
851
- bottom: S()
851
+ bottom: I()
852
852
  }],
853
853
  /**
854
854
  * Left
855
855
  * @see https://tailwindcss.com/docs/top-right-bottom-left
856
856
  */
857
857
  left: [{
858
- left: S()
858
+ left: I()
859
859
  }],
860
860
  /**
861
861
  * Visibility
@@ -989,14 +989,14 @@ const wm = (e, t) => {
989
989
  * @see https://tailwindcss.com/docs/grid-auto-columns
990
990
  */
991
991
  "auto-cols": [{
992
- "auto-cols": A()
992
+ "auto-cols": L()
993
993
  }],
994
994
  /**
995
995
  * Grid Auto Rows
996
996
  * @see https://tailwindcss.com/docs/grid-auto-rows
997
997
  */
998
998
  "auto-rows": [{
999
- "auto-rows": A()
999
+ "auto-rows": L()
1000
1000
  }],
1001
1001
  /**
1002
1002
  * Gap
@@ -1650,7 +1650,7 @@ const wm = (e, t) => {
1650
1650
  * @see https://tailwindcss.com/docs/background-position
1651
1651
  */
1652
1652
  "bg-position": [{
1653
- bg: I()
1653
+ bg: S()
1654
1654
  }],
1655
1655
  /**
1656
1656
  * Background Repeat
@@ -1691,21 +1691,21 @@ const wm = (e, t) => {
1691
1691
  * @see https://tailwindcss.com/docs/gradient-color-stops
1692
1692
  */
1693
1693
  "gradient-from-pos": [{
1694
- from: L()
1694
+ from: A()
1695
1695
  }],
1696
1696
  /**
1697
1697
  * Gradient Color Stops Via Position
1698
1698
  * @see https://tailwindcss.com/docs/gradient-color-stops
1699
1699
  */
1700
1700
  "gradient-via-pos": [{
1701
- via: L()
1701
+ via: A()
1702
1702
  }],
1703
1703
  /**
1704
1704
  * Gradient Color Stops To Position
1705
1705
  * @see https://tailwindcss.com/docs/gradient-color-stops
1706
1706
  */
1707
1707
  "gradient-to-pos": [{
1708
- to: L()
1708
+ to: A()
1709
1709
  }],
1710
1710
  /**
1711
1711
  * Gradient Color Stops From
@@ -2355,7 +2355,7 @@ const wm = (e, t) => {
2355
2355
  * @see https://tailwindcss.com/docs/mask-position
2356
2356
  */
2357
2357
  "mask-position": [{
2358
- mask: I()
2358
+ mask: S()
2359
2359
  }],
2360
2360
  /**
2361
2361
  * Mask Repeat
@@ -4665,11 +4665,11 @@ function Ld(e = {}) {
4665
4665
  onKeyDown(m) {
4666
4666
  if (t || (Hs(m), E?.(m), m.baseUIHandlerPrevented))
4667
4667
  return;
4668
- const w = m.target === m.currentTarget, _ = m.currentTarget, O = Qr(_), S = !o && Mb(_), T = w && (o ? O : !S), N = m.key === "Enter", j = m.key === " ", A = _.getAttribute("role"), P = A?.startsWith("menuitem") || A === "option" || A === "gridcell";
4668
+ const w = m.target === m.currentTarget, _ = m.currentTarget, O = Qr(_), I = !o && Mb(_), T = w && (o ? O : !I), N = m.key === "Enter", j = m.key === " ", L = _.getAttribute("role"), P = L?.startsWith("menuitem") || L === "option" || L === "gridcell";
4669
4669
  if (w && c && j) {
4670
4670
  if (m.defaultPrevented && P)
4671
4671
  return;
4672
- m.preventDefault(), S || o && O ? (_.click(), m.preventBaseUIHandler()) : T && (v?.(m), m.preventBaseUIHandler());
4672
+ m.preventDefault(), I || o && O ? (_.click(), m.preventBaseUIHandler()) : T && (v?.(m), m.preventBaseUIHandler());
4673
4673
  return;
4674
4674
  }
4675
4675
  T && (!o && (j || N) && m.preventDefault(), !o && N && v?.(m));
@@ -5412,29 +5412,29 @@ function e1(e, {
5412
5412
  const h = [], v = [];
5413
5413
  let b = !1, p = 0;
5414
5414
  {
5415
- let O = null, S = -1;
5415
+ let O = null, I = -1;
5416
5416
  e.current.forEach((T, N) => {
5417
5417
  if (T == null)
5418
5418
  return;
5419
5419
  p += 1;
5420
5420
  const j = T.closest('[role="row"]');
5421
- j && (b = !0), (j !== O || S === -1) && (O = j, S += 1, h[S] = []), h[S].push(N), v[N] = S;
5421
+ j && (b = !0), (j !== O || I === -1) && (O = j, I += 1, h[I] = []), h[I].push(N), v[N] = I;
5422
5422
  });
5423
5423
  }
5424
5424
  let E = !1, g = 0;
5425
5425
  if (b)
5426
5426
  for (const O of h) {
5427
- const S = O.length;
5428
- S > g && (g = S), S !== s && (E = !0);
5427
+ const I = O.length;
5428
+ I > g && (g = I), I !== s && (E = !0);
5429
5429
  }
5430
5430
  const x = E && p < e.current.length, k = g || s, m = (O) => {
5431
5431
  if (!E || l === -1)
5432
5432
  return;
5433
- const S = v[l];
5434
- if (S == null)
5433
+ const I = v[l];
5434
+ if (I == null)
5435
5435
  return;
5436
- const T = h[S].indexOf(l), N = O === "up" ? -1 : 1;
5437
- for (let j = S + N, A = 0; A < h.length; A += 1, j += N) {
5436
+ const T = h[I].indexOf(l), N = O === "up" ? -1 : 1;
5437
+ for (let j = I + N, L = 0; L < h.length; L += 1, j += N) {
5438
5438
  if (j < 0 || j >= h.length) {
5439
5439
  if (!r || x)
5440
5440
  return;
@@ -5450,15 +5450,15 @@ function e1(e, {
5450
5450
  }, w = (O) => {
5451
5451
  if (!x || l === -1)
5452
5452
  return;
5453
- const S = l % k, T = O === "up" ? -k : k, N = c - c % k, j = _n(c / k) + 1;
5454
- for (let A = l - S + T, P = 0; P < j; P += 1, A += T) {
5455
- if (A < 0 || A > c) {
5453
+ const I = l % k, T = O === "up" ? -k : k, N = c - c % k, j = _n(c / k) + 1;
5454
+ for (let L = l - I + T, P = 0; P < j; P += 1, L += T) {
5455
+ if (L < 0 || L > c) {
5456
5456
  if (!r)
5457
5457
  return;
5458
- A = A < 0 ? N : 0;
5458
+ L = L < 0 ? N : 0;
5459
5459
  }
5460
- const R = Math.min(A + k - 1, c);
5461
- for (let H = Math.min(A + S, R); H >= A; H -= 1)
5460
+ const R = Math.min(L + k - 1, c);
5461
+ for (let H = Math.min(L + I, R); H >= L; H -= 1)
5462
5462
  if (!Yn(e, H, i))
5463
5463
  return H;
5464
5464
  }
@@ -5476,8 +5476,8 @@ function e1(e, {
5476
5476
  disabledIndices: i
5477
5477
  }), r) {
5478
5478
  if (y === "up" && (l - k < a || u < 0)) {
5479
- const O = l % k, S = c % k, T = c - (S - O);
5480
- S === O ? u = c : u = S > O ? T : T - k;
5479
+ const O = l % k, I = c % k, T = c - (I - O);
5480
+ I === O ? u = c : u = I > O ? T : T - k;
5481
5481
  }
5482
5482
  y === "down" && l + k > c && (u = pt(e, {
5483
5483
  startingIndex: l % k - k,
@@ -6215,7 +6215,7 @@ function L1(e) {
6215
6215
  } = e, b = "rootStore" in t ? t.rootStore : t, p = b.useState("open"), E = b.useState("domReferenceElement"), g = b.useState("floatingElement"), {
6216
6216
  events: x,
6217
6217
  dataRef: k
6218
- } = b.context, m = we(() => k.current.floatingContext?.nodeId), w = o === !1, _ = Us(E) && w, O = f.useRef(["content"]), S = mt(o), T = mt(s), N = mt(l), j = vn(h), A = mf(), P = f.useRef(!1), R = f.useRef(!1), H = f.useRef(!1), W = f.useRef(-1), $ = f.useRef(""), K = f.useRef(""), M = f.useRef(null), I = f.useRef(null), Y = Xn(M, y, A?.beforeInsideRef), Z = Xn(I, A?.afterInsideRef), L = _t(), B = _t(), D = Li(), F = A != null, z = Mo(g), Q = we((re = z) => re ? zr(re, ir()) : []), G = we(() => v?.().filter((re) => re != null) ?? []), ae = we((re) => {
6218
+ } = b.context, m = we(() => k.current.floatingContext?.nodeId), w = o === !1, _ = Us(E) && w, O = f.useRef(["content"]), I = mt(o), T = mt(s), N = mt(l), j = vn(h), L = mf(), P = f.useRef(!1), R = f.useRef(!1), H = f.useRef(!1), W = f.useRef(-1), $ = f.useRef(""), K = f.useRef(""), M = f.useRef(null), S = f.useRef(null), Y = Xn(M, y, L?.beforeInsideRef), Z = Xn(S, L?.afterInsideRef), A = _t(), B = _t(), D = Li(), F = L != null, z = Mo(g), Q = we((re = z) => re ? zr(re, ir()) : []), G = we(() => v?.().filter((re) => re != null) ?? []), ae = we((re) => {
6219
6219
  const q = Q(re);
6220
6220
  return O.current.map(() => q).filter(Boolean).flat();
6221
6221
  });
@@ -6237,7 +6237,7 @@ function L1(e) {
6237
6237
  H.current = !1;
6238
6238
  }
6239
6239
  function de(se) {
6240
- const oe = kt(se), J = G(), ee = Ee(g, oe) || Ee(E, oe) || Ee(A?.portalNode, oe) || J.some((V) => V === oe || Ee(V, oe));
6240
+ const oe = kt(se), J = G(), ee = Ee(g, oe) || Ee(E, oe) || Ee(L?.portalNode, oe) || J.some((V) => V === oe || Ee(V, oe));
6241
6241
  H.current = !ee, K.current = se.pointerType || "keyboard", oe?.closest(`[${nb}]`) && (R.current = !0);
6242
6242
  }
6243
6243
  function ye() {
@@ -6246,7 +6246,7 @@ function L1(e) {
6246
6246
  return re.addEventListener("pointerdown", de, !0), re.addEventListener("pointerup", q, !0), re.addEventListener("pointercancel", q, !0), re.addEventListener("keydown", ye, !0), () => {
6247
6247
  re.removeEventListener("pointerdown", de, !0), re.removeEventListener("pointerup", q, !0), re.removeEventListener("pointercancel", q, !0), re.removeEventListener("keydown", ye, !0);
6248
6248
  };
6249
- }, [r, g, E, z, p, A, G]), f.useEffect(() => {
6249
+ }, [r, g, E, z, p, L, G]), f.useEffect(() => {
6250
6250
  if (r || !c)
6251
6251
  return;
6252
6252
  const re = He(z);
@@ -6262,7 +6262,7 @@ function L1(e) {
6262
6262
  function ye(ee) {
6263
6263
  const V = ee.relatedTarget, te = ee.currentTarget, ce = kt(ee);
6264
6264
  queueMicrotask(() => {
6265
- const me = m(), Ue = b.context.triggerElements, et = G(), ze = V?.hasAttribute(Ar("focus-guard")) && [M.current, I.current, A?.beforeInsideRef.current, A?.afterInsideRef.current, A?.beforeOutsideRef.current, A?.afterOutsideRef.current, Zt(u), Zt(d)].includes(V), Ke = !(Ee(E, V) || Ee(g, V) || Ee(V, g) || Ee(A?.portalNode, V) || et.some((Se) => Se === V || Ee(Se, V)) || V != null && Ue.hasElement(V) || Ue.hasMatchingElement((Se) => Ee(Se, V)) || ze || j && (en(j.nodesRef.current, me).find((Se) => Ee(Se.context?.elements.floating, V) || Ee(Se.context?.elements.domReference, V)) || mc(j.nodesRef.current, me).find((Se) => [Se.context?.elements.floating, Mo(Se.context?.elements.floating)].includes(V) || Se.context?.elements.domReference === V)));
6265
+ const me = m(), Ue = b.context.triggerElements, et = G(), ze = V?.hasAttribute(Ar("focus-guard")) && [M.current, S.current, L?.beforeInsideRef.current, L?.afterInsideRef.current, L?.beforeOutsideRef.current, L?.afterOutsideRef.current, Zt(u), Zt(d)].includes(V), Ke = !(Ee(E, V) || Ee(g, V) || Ee(V, g) || Ee(L?.portalNode, V) || et.some((Se) => Se === V || Ee(Se, V)) || V != null && Ue.hasElement(V) || Ue.hasMatchingElement((Se) => Ee(Se, V)) || ze || j && (en(j.nodesRef.current, me).find((Se) => Ee(Se.context?.elements.floating, V) || Ee(Se.context?.elements.domReference, V)) || mc(j.nodesRef.current, me).find((Se) => [Se.context?.elements.floating, Mo(Se.context?.elements.floating)].includes(V) || Se.context?.elements.domReference === V)));
6266
6266
  if (te === E && z && Ic(z, O), i && te !== E && !j1(ce) && Mt(re) === re.body) {
6267
6267
  if (Qe(z) && (z.focus(), i === "popup")) {
6268
6268
  D.request(() => {
@@ -6288,7 +6288,7 @@ function L1(e) {
6288
6288
  });
6289
6289
  }
6290
6290
  function se() {
6291
- H.current || (k.current.insideReactTree = !0, L.start(0, () => {
6291
+ H.current || (k.current.insideReactTree = !0, A.start(0, () => {
6292
6292
  k.current.insideReactTree = !1;
6293
6293
  }));
6294
6294
  }
@@ -6296,7 +6296,7 @@ function L1(e) {
6296
6296
  if (!(!g && !oe))
6297
6297
  return oe && (oe.addEventListener("focusout", ye), oe.addEventListener("pointerdown", q), J.push(() => {
6298
6298
  oe.removeEventListener("focusout", ye), oe.removeEventListener("pointerdown", q);
6299
- })), g && (g.addEventListener("focusin", de), g.addEventListener("focusout", ye), A && (g.addEventListener("focusout", se, !0), J.push(() => {
6299
+ })), g && (g.addEventListener("focusin", de), g.addEventListener("focusout", ye), L && (g.addEventListener("focusout", se, !0), J.push(() => {
6300
6300
  g.removeEventListener("focusout", se, !0);
6301
6301
  })), J.push(() => {
6302
6302
  g.removeEventListener("focusin", de), g.removeEventListener("focusout", ye);
@@ -6305,22 +6305,22 @@ function L1(e) {
6305
6305
  ee();
6306
6306
  });
6307
6307
  };
6308
- }, [r, E, g, z, a, j, A, b, c, i, Q, _, m, O, k, L, B, D, d, u, G]), f.useEffect(() => {
6308
+ }, [r, E, g, z, a, j, L, b, c, i, Q, _, m, O, k, A, B, D, d, u, G]), f.useEffect(() => {
6309
6309
  if (r || !g || !p)
6310
6310
  return;
6311
- const re = Array.from(A?.portalNode?.querySelectorAll(`[${Ar("portal")}]`) || []), de = (j ? mc(j.nodesRef.current, m()) : []).find((V) => Us(V.context?.elements.domReference || null))?.context?.elements.domReference, se = [...[g, ...re, M.current, I.current, A?.beforeOutsideRef.current, A?.afterOutsideRef.current, ...G()], de, Zt(u), Zt(d), _ ? E : null].filter((V) => V != null), oe = _c(se, {
6311
+ const re = Array.from(L?.portalNode?.querySelectorAll(`[${Ar("portal")}]`) || []), de = (j ? mc(j.nodesRef.current, m()) : []).find((V) => Us(V.context?.elements.domReference || null))?.context?.elements.domReference, se = [...[g, ...re, M.current, S.current, L?.beforeOutsideRef.current, L?.afterOutsideRef.current, ...G()], de, Zt(u), Zt(d), _ ? E : null].filter((V) => V != null), oe = _c(se, {
6312
6312
  ariaHidden: a || _,
6313
6313
  mark: !1
6314
6314
  }), J = [g, ...re].filter((V) => V != null), ee = _c(J);
6315
6315
  return () => {
6316
6316
  ee(), oe();
6317
6317
  };
6318
- }, [p, r, E, g, a, O, A, _, j, m, d, u, G]), ge(() => {
6318
+ }, [p, r, E, g, a, O, L, _, j, m, d, u, G]), ge(() => {
6319
6319
  if (!p || r || !Qe(z))
6320
6320
  return;
6321
6321
  const re = He(z), q = Mt(re);
6322
6322
  queueMicrotask(() => {
6323
- const de = ae(z), ye = S.current, se = typeof ye == "function" ? ye(N.current || "") : ye;
6323
+ const de = ae(z), ye = I.current, se = typeof ye == "function" ? ye(N.current || "") : ye;
6324
6324
  if (se === void 0 || se === !1)
6325
6325
  return;
6326
6326
  let oe;
@@ -6328,7 +6328,7 @@ function L1(e) {
6328
6328
  preventScroll: oe === z
6329
6329
  });
6330
6330
  });
6331
- }, [r, p, z, w, ae, S, N]), ge(() => {
6331
+ }, [r, p, z, w, ae, I, N]), ge(() => {
6332
6332
  if (r || !z)
6333
6333
  return;
6334
6334
  const re = He(z), q = Mt(re);
@@ -6381,17 +6381,17 @@ function L1(e) {
6381
6381
  const re = Mt(He(g));
6382
6382
  !Qe(re) || !Jo(re) || Ee(g, re) && re.blur();
6383
6383
  }, [p, g]), ge(() => {
6384
- if (!(r || !A))
6385
- return A.setFocusManagerState({
6384
+ if (!(r || !L))
6385
+ return L.setFocusManagerState({
6386
6386
  modal: a,
6387
6387
  closeOnFocusOut: c,
6388
6388
  open: p,
6389
6389
  onOpenChange: b.setOpen,
6390
6390
  domReference: E
6391
6391
  }), () => {
6392
- A.setFocusManagerState(null);
6392
+ L.setFocusManagerState(null);
6393
6393
  };
6394
- }, [r, A, a, p, b, c, E]), ge(() => {
6394
+ }, [r, L, a, p, b, c, E]), ge(() => {
6395
6395
  if (!(r || !z))
6396
6396
  return Ic(z, O), () => {
6397
6397
  queueMicrotask(qi);
@@ -6406,13 +6406,13 @@ function L1(e) {
6406
6406
  if (a) {
6407
6407
  const q = ae();
6408
6408
  Cr(q[q.length - 1]);
6409
- } else A?.portalNode && (P.current = !1, zn(re, A.portalNode) ? Bi(E)?.focus() : Zt(u ?? A.beforeOutsideRef)?.focus());
6409
+ } else L?.portalNode && (P.current = !1, zn(re, L.portalNode) ? Bi(E)?.focus() : Zt(u ?? L.beforeOutsideRef)?.focus());
6410
6410
  }
6411
6411
  }), n, X && /* @__PURE__ */ C.jsx(Rn, {
6412
6412
  "data-type": "inside",
6413
6413
  ref: Z,
6414
6414
  onFocus: (re) => {
6415
- a ? Cr(ae()[0]) : A?.portalNode && (c && (P.current = !0), zn(re, A.portalNode) ? df(E)?.focus() : Zt(d ?? A.afterOutsideRef)?.focus());
6415
+ a ? Cr(ae()[0]) : L?.portalNode && (c && (P.current = !0), zn(re, L.portalNode) ? df(E)?.focus() : Zt(d ?? L.afterOutsideRef)?.focus());
6416
6416
  }
6417
6417
  })]
6418
6418
  });
@@ -6501,10 +6501,10 @@ function H1(e, t = {}) {
6501
6501
  } = t, v = vn(h), b = we(typeof c == "function" ? c : () => !1), p = typeof c == "function" ? b : c, E = p !== !1, g = we(() => l), x = f.useRef(!1), k = f.useRef(!1), m = f.useRef(!1), {
6502
6502
  escapeKey: w,
6503
6503
  outsidePress: _
6504
- } = F1(y), O = f.useRef(null), S = _t(), T = _t(), N = we(() => {
6504
+ } = F1(y), O = f.useRef(null), I = _t(), T = _t(), N = we(() => {
6505
6505
  T.clear(), s.current.insideReactTree = !1;
6506
- }), j = f.useRef(!1), A = f.useRef(""), P = we(d), R = we((I) => {
6507
- if (!r || !i || !a || I.key !== "Escape" || j.current)
6506
+ }), j = f.useRef(!1), L = f.useRef(""), P = we(d), R = we((S) => {
6507
+ if (!r || !i || !a || S.key !== "Escape" || j.current)
6508
6508
  return;
6509
6509
  const Y = s.current.floatingContext?.nodeId, Z = v ? en(v.nodesRef.current, Y) : [];
6510
6510
  if (!w && Z.length > 0) {
@@ -6514,8 +6514,8 @@ function H1(e, t = {}) {
6514
6514
  }), !D)
6515
6515
  return;
6516
6516
  }
6517
- const L = Yb(I) ? I.nativeEvent : I, B = Ne(Ti, L);
6518
- n.setOpen(!1, B), !w && !B.isPropagationAllowed && I.stopPropagation();
6517
+ const A = Yb(S) ? S.nativeEvent : S, B = Ne(Ti, A);
6518
+ n.setOpen(!1, B), !w && !B.isPropagationAllowed && S.stopPropagation();
6519
6519
  }), H = we(() => {
6520
6520
  s.current.insideReactTree = !0, T.start(0, N);
6521
6521
  });
@@ -6523,12 +6523,12 @@ function H1(e, t = {}) {
6523
6523
  if (!r || !i)
6524
6524
  return;
6525
6525
  s.current.__escapeKeyBubbles = w, s.current.__outsidePressBubbles = _;
6526
- const I = new qt(), Y = new qt();
6526
+ const S = new qt(), Y = new qt();
6527
6527
  function Z() {
6528
- I.clear(), j.current = !0;
6528
+ S.clear(), j.current = !0;
6529
6529
  }
6530
- function L() {
6531
- I.start(
6530
+ function A() {
6531
+ S.start(
6532
6532
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
6533
6533
  // Only apply to WebKit for the test to remain 0ms.
6534
6534
  Zo() ? 5 : 0,
@@ -6546,7 +6546,7 @@ function H1(e, t = {}) {
6546
6546
  x.current = !1, k.current = !1;
6547
6547
  }
6548
6548
  function F() {
6549
- const V = A.current, te = V === "pen" || !V ? "mouse" : V, ce = g(), me = typeof ce == "function" ? ce() : ce;
6549
+ const V = L.current, te = V === "pen" || !V ? "mouse" : V, ce = g(), me = typeof ce == "function" ? ce() : ce;
6550
6550
  return typeof me == "string" ? me : me[te];
6551
6551
  }
6552
6552
  function z(V) {
@@ -6621,12 +6621,12 @@ function H1(e, t = {}) {
6621
6621
  startY: te.clientY,
6622
6622
  dismissOnTouchEnd: !1,
6623
6623
  dismissOnMouseDown: !0
6624
- }, S.start(1e3, () => {
6624
+ }, I.start(1e3, () => {
6625
6625
  O.current && (O.current.dismissOnTouchEnd = !1, O.current.dismissOnMouseDown = !1);
6626
6626
  }));
6627
6627
  }
6628
6628
  function re(V) {
6629
- A.current = "touch";
6629
+ L.current = "touch";
6630
6630
  const te = kt(V);
6631
6631
  function ce() {
6632
6632
  X(V), te?.removeEventListener(V.type, ce);
@@ -6634,7 +6634,7 @@ function H1(e, t = {}) {
6634
6634
  te?.addEventListener(V.type, ce);
6635
6635
  }
6636
6636
  function q(V) {
6637
- if (S.clear(), V.type === "pointerdown" && (A.current = V.pointerType), V.type === "mousedown" && O.current && !O.current.dismissOnMouseDown)
6637
+ if (I.clear(), V.type === "pointerdown" && (L.current = V.pointerType), V.type === "mousedown" && O.current && !O.current.dismissOnMouseDown)
6638
6638
  return;
6639
6639
  const te = kt(V);
6640
6640
  function ce() {
@@ -6667,7 +6667,7 @@ function H1(e, t = {}) {
6667
6667
  if (!te)
6668
6668
  return;
6669
6669
  const ce = Math.abs(te.clientX - O.current.startX), me = Math.abs(te.clientY - O.current.startY), Ue = Math.sqrt(ce * ce + me * me);
6670
- Ue > 5 && (O.current.dismissOnTouchEnd = !0), Ue > 10 && (G(V), S.clear(), O.current = null);
6670
+ Ue > 5 && (O.current.dismissOnTouchEnd = !0), Ue > 10 && (G(V), I.clear(), O.current = null);
6671
6671
  }
6672
6672
  function se(V) {
6673
6673
  const te = kt(V);
@@ -6677,7 +6677,7 @@ function H1(e, t = {}) {
6677
6677
  te?.addEventListener(V.type, ce);
6678
6678
  }
6679
6679
  function oe(V) {
6680
- F() !== "sloppy" || !O.current || Dt(V, n.select("floatingElement")) || Dt(V, n.select("domReferenceElement")) || (O.current.dismissOnTouchEnd && G(V), S.clear(), O.current = null);
6680
+ F() !== "sloppy" || !O.current || Dt(V, n.select("floatingElement")) || Dt(V, n.select("domReferenceElement")) || (O.current.dismissOnTouchEnd && G(V), I.clear(), O.current = null);
6681
6681
  }
6682
6682
  function J(V) {
6683
6683
  const te = kt(V);
@@ -6687,27 +6687,27 @@ function H1(e, t = {}) {
6687
6687
  te?.addEventListener(V.type, ce);
6688
6688
  }
6689
6689
  const ee = He(o);
6690
- return a && (ee.addEventListener("keydown", R), ee.addEventListener("compositionstart", Z), ee.addEventListener("compositionend", L)), E && (ee.addEventListener("click", q, !0), ee.addEventListener("pointerdown", q, !0), ee.addEventListener("pointerup", de, !0), ee.addEventListener("pointercancel", de, !0), ee.addEventListener("mousedown", q, !0), ee.addEventListener("mouseup", de, !0), ee.addEventListener("touchstart", re, !0), ee.addEventListener("touchmove", se, !0), ee.addEventListener("touchend", J, !0)), () => {
6691
- a && (ee.removeEventListener("keydown", R), ee.removeEventListener("compositionstart", Z), ee.removeEventListener("compositionend", L)), E && (ee.removeEventListener("click", q, !0), ee.removeEventListener("pointerdown", q, !0), ee.removeEventListener("pointerup", de, !0), ee.removeEventListener("pointercancel", de, !0), ee.removeEventListener("mousedown", q, !0), ee.removeEventListener("mouseup", de, !0), ee.removeEventListener("touchstart", re, !0), ee.removeEventListener("touchmove", se, !0), ee.removeEventListener("touchend", J, !0)), I.clear(), Y.clear(), D(), m.current = !1;
6690
+ return a && (ee.addEventListener("keydown", R), ee.addEventListener("compositionstart", Z), ee.addEventListener("compositionend", A)), E && (ee.addEventListener("click", q, !0), ee.addEventListener("pointerdown", q, !0), ee.addEventListener("pointerup", de, !0), ee.addEventListener("pointercancel", de, !0), ee.addEventListener("mousedown", q, !0), ee.addEventListener("mouseup", de, !0), ee.addEventListener("touchstart", re, !0), ee.addEventListener("touchmove", se, !0), ee.addEventListener("touchend", J, !0)), () => {
6691
+ a && (ee.removeEventListener("keydown", R), ee.removeEventListener("compositionstart", Z), ee.removeEventListener("compositionend", A)), E && (ee.removeEventListener("click", q, !0), ee.removeEventListener("pointerdown", q, !0), ee.removeEventListener("pointerup", de, !0), ee.removeEventListener("pointercancel", de, !0), ee.removeEventListener("mousedown", q, !0), ee.removeEventListener("mouseup", de, !0), ee.removeEventListener("touchstart", re, !0), ee.removeEventListener("touchmove", se, !0), ee.removeEventListener("touchend", J, !0)), S.clear(), Y.clear(), D(), m.current = !1;
6692
6692
  };
6693
- }, [s, o, a, E, p, r, i, w, _, R, N, g, v, n, S]), f.useEffect(N, [p, N]);
6693
+ }, [s, o, a, E, p, r, i, w, _, R, N, g, v, n, I]), f.useEffect(N, [p, N]);
6694
6694
  const W = f.useMemo(() => ({
6695
6695
  onKeyDown: R,
6696
- [W1[u]]: (I) => {
6697
- P() && n.setOpen(!1, Ne(Dr, I.nativeEvent));
6696
+ [W1[u]]: (S) => {
6697
+ P() && n.setOpen(!1, Ne(Dr, S.nativeEvent));
6698
6698
  },
6699
6699
  ...u !== "intentional" && {
6700
- onClick(I) {
6701
- P() && n.setOpen(!1, Ne(Dr, I.nativeEvent));
6700
+ onClick(S) {
6701
+ P() && n.setOpen(!1, Ne(Dr, S.nativeEvent));
6702
6702
  }
6703
6703
  }
6704
- }), [R, n, u, P]), $ = we((I) => {
6705
- if (!r || !i || I.button !== 0)
6704
+ }), [R, n, u, P]), $ = we((S) => {
6705
+ if (!r || !i || S.button !== 0)
6706
6706
  return;
6707
- const Y = kt(I.nativeEvent);
6707
+ const Y = kt(S.nativeEvent);
6708
6708
  Ee(n.select("floatingElement"), Y) && (x.current || (x.current = !0, k.current = !1));
6709
- }), K = we((I) => {
6710
- !r || !i || (I.defaultPrevented || I.nativeEvent.defaultPrevented) && x.current && (k.current = !0);
6709
+ }), K = we((S) => {
6710
+ !r || !i || (S.defaultPrevented || S.nativeEvent.defaultPrevented) && x.current && (k.current = !0);
6711
6711
  }), M = f.useMemo(() => ({
6712
6712
  onKeyDown: R,
6713
6713
  // `onMouseDown` may be blocked if `event.preventDefault()` is called in
@@ -6716,11 +6716,11 @@ function H1(e, t = {}) {
6716
6716
  onPointerDown: K,
6717
6717
  onMouseDown: K,
6718
6718
  onClickCapture: H,
6719
- onMouseDownCapture(I) {
6720
- H(), $(I);
6719
+ onMouseDownCapture(S) {
6720
+ H(), $(S);
6721
6721
  },
6722
- onPointerDownCapture(I) {
6723
- H(), $(I);
6722
+ onPointerDownCapture(S) {
6723
+ H(), $(S);
6724
6724
  },
6725
6725
  onMouseUpCapture: H,
6726
6726
  onTouchEndCapture: H,
@@ -6915,16 +6915,16 @@ const $1 = 50, Y1 = async (e, t, n) => {
6915
6915
  return {};
6916
6916
  const E = yt(o), g = Rt(a), x = yt(a) === a, k = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), m = y || (x || !b ? [Ro(a)] : Ub(a)), w = v !== "none";
6917
6917
  !y && w && m.push(...Qb(a, b, v, k));
6918
- const _ = [a, ...m], O = await c.detectOverflow(t, p), S = [];
6918
+ const _ = [a, ...m], O = await c.detectOverflow(t, p), I = [];
6919
6919
  let T = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6920
- if (d && S.push(O[E]), u) {
6920
+ if (d && I.push(O[E]), u) {
6921
6921
  const P = qb(o, i, k);
6922
- S.push(O[P[0]], O[P[1]]);
6922
+ I.push(O[P[0]], O[P[1]]);
6923
6923
  }
6924
6924
  if (T = [...T, {
6925
6925
  placement: o,
6926
- overflows: S
6927
- }], !S.every((P) => P <= 0)) {
6926
+ overflows: I
6927
+ }], !I.every((P) => P <= 0)) {
6928
6928
  var N, j;
6929
6929
  const P = (((N = s.flip) == null ? void 0 : N.index) || 0) + 1, R = _[P];
6930
6930
  if (R && (!(u === "alignment" ? g !== Rt(R) : !1) || // We leave the current main axis only if every placement on that axis
@@ -6943,8 +6943,8 @@ const $1 = 50, Y1 = async (e, t, n) => {
6943
6943
  if (!H)
6944
6944
  switch (h) {
6945
6945
  case "bestFit": {
6946
- var A;
6947
- const W = (A = T.filter(($) => {
6946
+ var L;
6947
+ const W = (L = T.filter(($) => {
6948
6948
  if (w) {
6949
6949
  const K = Rt($.placement);
6950
6950
  return K === g || // Create a bias to the `y` side axis due to horizontal
@@ -6952,7 +6952,7 @@ const $1 = 50, Y1 = async (e, t, n) => {
6952
6952
  K === "y";
6953
6953
  }
6954
6954
  return !0;
6955
- }).map(($) => [$.placement, $.overflows.filter((K) => K > 0).reduce((K, M) => K + M, 0)]).sort(($, K) => $[1] - K[1])[0]) == null ? void 0 : A[0];
6955
+ }).map(($) => [$.placement, $.overflows.filter((K) => K > 0).reduce((K, M) => K + M, 0)]).sort(($, K) => $[1] - K[1])[0]) == null ? void 0 : L[0];
6956
6956
  W && (H = W);
6957
6957
  break;
6958
6958
  }
@@ -7197,16 +7197,16 @@ const U1 = function(e) {
7197
7197
  const g = b - d.top - d.bottom, x = v - d.left - d.right, k = Qn(b - d[p], g), m = Qn(v - d[E], x), w = !t.middlewareData.shift;
7198
7198
  let _ = k, O = m;
7199
7199
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = x), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = g), w && !y) {
7200
- const T = Et(d.left, 0), N = Et(d.right, 0), j = Et(d.top, 0), A = Et(d.bottom, 0);
7201
- h ? O = v - 2 * (T !== 0 || N !== 0 ? T + N : Et(d.left, d.right)) : _ = b - 2 * (j !== 0 || A !== 0 ? j + A : Et(d.top, d.bottom));
7200
+ const T = Et(d.left, 0), N = Et(d.right, 0), j = Et(d.top, 0), L = Et(d.bottom, 0);
7201
+ h ? O = v - 2 * (T !== 0 || N !== 0 ? T + N : Et(d.left, d.right)) : _ = b - 2 * (j !== 0 || L !== 0 ? j + L : Et(d.top, d.bottom));
7202
7202
  }
7203
7203
  await c({
7204
7204
  ...t,
7205
7205
  availableWidth: O,
7206
7206
  availableHeight: _
7207
7207
  });
7208
- const S = await i.getDimensions(a.floating);
7209
- return v !== S.width || b !== S.height ? {
7208
+ const I = await i.getDimensions(a.floating);
7209
+ return v !== I.width || b !== I.height ? {
7210
7210
  reset: {
7211
7211
  rects: !0
7212
7212
  }
@@ -7673,7 +7673,7 @@ function kv(e) {
7673
7673
  $ !== w.current && (w.current = $, b($));
7674
7674
  }, []), x = f.useCallback(($) => {
7675
7675
  $ !== _.current && (_.current = $, E($));
7676
- }, []), k = s || v, m = i || p, w = f.useRef(null), _ = f.useRef(null), O = f.useRef(d), S = c != null, T = vs(c), N = vs(o), j = vs(l), A = f.useCallback(() => {
7676
+ }, []), k = s || v, m = i || p, w = f.useRef(null), _ = f.useRef(null), O = f.useRef(d), I = c != null, T = vs(c), N = vs(o), j = vs(l), L = f.useCallback(() => {
7677
7677
  if (!w.current || !_.current)
7678
7678
  return;
7679
7679
  const $ = {
@@ -7707,10 +7707,10 @@ function kv(e) {
7707
7707
  }), []), Eo(() => {
7708
7708
  if (k && (w.current = k), m && (_.current = m), k && m) {
7709
7709
  if (T.current)
7710
- return T.current(k, m, A);
7711
- A();
7710
+ return T.current(k, m, L);
7711
+ L();
7712
7712
  }
7713
- }, [k, m, A, T, S]);
7713
+ }, [k, m, L, T, I]);
7714
7714
  const R = f.useMemo(() => ({
7715
7715
  reference: w,
7716
7716
  floating: _,
@@ -7742,11 +7742,11 @@ function kv(e) {
7742
7742
  }, [n, a, H.floating, d.x, d.y]);
7743
7743
  return f.useMemo(() => ({
7744
7744
  ...d,
7745
- update: A,
7745
+ update: L,
7746
7746
  refs: R,
7747
7747
  elements: H,
7748
7748
  floatingStyles: W
7749
- }), [d, A, R, H, W]);
7749
+ }), [d, L, R, H, W]);
7750
7750
  }
7751
7751
  const Ev = (e, t) => {
7752
7752
  const n = pv(e);
@@ -8046,17 +8046,17 @@ function If(e, ...t) {
8046
8046
  arguments
8047
8047
  );
8048
8048
  if (a = x.apply(null, _), process.env.NODE_ENV !== "production") {
8049
- const { identityFunctionCheck: O, inputStabilityCheck: S } = Lv(k, b);
8049
+ const { identityFunctionCheck: O, inputStabilityCheck: I } = Lv(k, b);
8050
8050
  if (O.shouldRun && O.run(
8051
8051
  l,
8052
8052
  _,
8053
8053
  a
8054
- ), S.shouldRun) {
8054
+ ), I.shouldRun) {
8055
8055
  const T = Wc(
8056
8056
  g,
8057
8057
  arguments
8058
8058
  );
8059
- S.run(
8059
+ I.run(
8060
8060
  { inputSelectorResults: _, inputSelectorResultsCopy: T },
8061
8061
  { memoize: u, memoizeOptions: p },
8062
8062
  arguments
@@ -9225,25 +9225,25 @@ function _0(e, t = {}) {
9225
9225
  getHandleCloseContext: v
9226
9226
  } = t, b = vn(y), p = Df(n), E = mt(a), g = mt(i), x = mt(l), k = mt(s);
9227
9227
  h && (p.handleCloseOptions = E.current?.__options);
9228
- const m = we(() => pf(r.current.openEvent?.type, p.interactedInside)), w = we((N) => Io(N, n.context.triggerElements)), _ = we((N, j, A) => {
9228
+ const m = we(() => pf(r.current.openEvent?.type, p.interactedInside)), w = we((N) => Io(N, n.context.triggerElements)), _ = we((N, j, L) => {
9229
9229
  const P = n.context.triggerElements;
9230
9230
  if (P.hasElement(j))
9231
9231
  return !N || !Ee(N, j);
9232
- if (!je(A))
9232
+ if (!je(L))
9233
9233
  return !1;
9234
- const R = A;
9234
+ const R = L;
9235
9235
  return P.hasMatchingElement((H) => Ee(H, R)) && (!N || !Ee(N, R));
9236
9236
  }), O = f.useCallback((N, j = !0) => {
9237
- const A = ko(g.current, "close", p.pointerType);
9238
- A ? p.openChangeTimeout.start(A, () => {
9237
+ const L = ko(g.current, "close", p.pointerType);
9238
+ L ? p.openChangeTimeout.start(L, () => {
9239
9239
  n.setOpen(!1, Ne(xt, N)), b?.events.emit("floating.closed", N);
9240
9240
  }) : j && (p.openChangeTimeout.clear(), n.setOpen(!1, Ne(xt, N)), b?.events.emit("floating.closed", N));
9241
- }, [g, n, p, b]), S = we(() => {
9241
+ }, [g, n, p, b]), I = we(() => {
9242
9242
  if (!p.handler)
9243
9243
  return;
9244
9244
  He(n.select("domReferenceElement")).removeEventListener("mousemove", p.handler), p.handler = void 0;
9245
9245
  });
9246
- f.useEffect(() => S, [S]);
9246
+ f.useEffect(() => I, [I]);
9247
9247
  const T = we(() => {
9248
9248
  Ji(p);
9249
9249
  });
@@ -9251,12 +9251,12 @@ function _0(e, t = {}) {
9251
9251
  if (!s)
9252
9252
  return;
9253
9253
  function N(j) {
9254
- j.open || (S(), p.openChangeTimeout.clear(), p.restTimeout.clear(), p.blockMouseMove = !0, p.restTimeoutPending = !1);
9254
+ j.open || (I(), p.openChangeTimeout.clear(), p.restTimeout.clear(), p.blockMouseMove = !0, p.restTimeoutPending = !1);
9255
9255
  }
9256
9256
  return o.on("openchange", N), () => {
9257
9257
  o.off("openchange", N);
9258
9258
  };
9259
- }, [s, o, p, S]), f.useEffect(() => {
9259
+ }, [s, o, p, I]), f.useEffect(() => {
9260
9260
  if (!s)
9261
9261
  return;
9262
9262
  const N = u.current ?? (h ? n.select("domReferenceElement") : null);
@@ -9265,17 +9265,17 @@ function _0(e, t = {}) {
9265
9265
  function j(P) {
9266
9266
  if (p.openChangeTimeout.clear(), p.blockMouseMove = !1, c && !Lr(p.pointerType) || xc(x.current) > 0 && !ko(g.current, "open"))
9267
9267
  return;
9268
- const H = ko(g.current, "open", p.pointerType), W = P.currentTarget ?? null, $ = n.select("domReferenceElement"), K = W == null ? !1 : _($, W, P.target), M = n.select("open"), I = !M || K;
9268
+ const H = ko(g.current, "open", p.pointerType), W = P.currentTarget ?? null, $ = n.select("domReferenceElement"), K = W == null ? !1 : _($, W, P.target), M = n.select("open"), S = !M || K;
9269
9269
  K && M ? n.setOpen(!0, Ne(xt, P, W)) : H ? p.openChangeTimeout.start(H, () => {
9270
- I && n.setOpen(!0, Ne(xt, P, W));
9271
- }) : I && n.setOpen(!0, Ne(xt, P, W));
9270
+ S && n.setOpen(!0, Ne(xt, P, W));
9271
+ }) : S && n.setOpen(!0, Ne(xt, P, W));
9272
9272
  }
9273
- function A(P) {
9273
+ function L(P) {
9274
9274
  if (m()) {
9275
9275
  T();
9276
9276
  return;
9277
9277
  }
9278
- S();
9278
+ I();
9279
9279
  const R = n.select("domReferenceElement"), H = He(R);
9280
9280
  p.restTimeout.clear(), p.restTimeoutPending = !1;
9281
9281
  const W = r.current.floatingContext ?? v?.();
@@ -9290,7 +9290,7 @@ function _0(e, t = {}) {
9290
9290
  x: P.clientX,
9291
9291
  y: P.clientY,
9292
9292
  onClose() {
9293
- T(), S(), k.current && !m() && M === n.select("domReferenceElement") && O(P, !0);
9293
+ T(), I(), k.current && !m() && M === n.select("domReferenceElement") && O(P, !0);
9294
9294
  }
9295
9295
  }), H.addEventListener("mousemove", p.handler), p.handler(P);
9296
9296
  return;
@@ -9299,10 +9299,10 @@ function _0(e, t = {}) {
9299
9299
  }
9300
9300
  return d && N.addEventListener("mousemove", j, {
9301
9301
  once: !0
9302
- }), N.addEventListener("mouseenter", j), N.addEventListener("mouseleave", A), () => {
9303
- d && N.removeEventListener("mousemove", j), N.removeEventListener("mouseenter", j), N.removeEventListener("mouseleave", A);
9302
+ }), N.addEventListener("mouseenter", j), N.addEventListener("mouseleave", L), () => {
9303
+ d && N.removeEventListener("mousemove", j), N.removeEventListener("mouseenter", j), N.removeEventListener("mouseleave", L);
9304
9304
  };
9305
- }, [S, T, r, g, O, n, s, E, p, h, _, m, w, c, d, x, u, b, k, v]), f.useMemo(() => {
9305
+ }, [I, T, r, g, O, n, s, E, p, h, _, m, w, c, d, x, u, b, k, v]), f.useMemo(() => {
9306
9306
  if (!s)
9307
9307
  return;
9308
9308
  function N(j) {
@@ -9313,7 +9313,7 @@ function _0(e, t = {}) {
9313
9313
  onPointerEnter: N,
9314
9314
  onMouseMove(j) {
9315
9315
  const {
9316
- nativeEvent: A
9316
+ nativeEvent: L
9317
9317
  } = j, P = j.currentTarget, R = n.select("domReferenceElement"), H = n.select("open"), W = _(R, P, j.target);
9318
9318
  if (c && !Lr(p.pointerType))
9319
9319
  return;
@@ -9325,7 +9325,7 @@ function _0(e, t = {}) {
9325
9325
  if (p.restTimeoutPending = !1, m())
9326
9326
  return;
9327
9327
  const M = n.select("open");
9328
- !p.blockMouseMove && (!M || W) && n.setOpen(!0, Ne(xt, A, P));
9328
+ !p.blockMouseMove && (!M || W) && n.setOpen(!0, Ne(xt, L, P));
9329
9329
  }
9330
9330
  p.pointerType === "touch" ? Tn.flushSync(() => {
9331
9331
  K();
@@ -9422,25 +9422,25 @@ function T0(e, t) {
9422
9422
  parentOrientation: w,
9423
9423
  cols: _ = 1,
9424
9424
  id: O,
9425
- resetOnPointerLeave: S = !0,
9425
+ resetOnPointerLeave: I = !0,
9426
9426
  externalTree: T
9427
9427
  } = t;
9428
9428
  process.env.NODE_ENV !== "production" && (y && (h || console.warn("`useListNavigation` looping must be enabled to allow escaping."), p || console.warn("`useListNavigation` must be virtual to allow escaping.")), m === "vertical" && _ > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
9429
- const N = Mo(o), j = mt(N), A = on(), P = vn(T);
9429
+ const N = Mo(o), j = mt(N), L = on(), P = vn(T);
9430
9430
  ge(() => {
9431
9431
  i.current.orientation = m;
9432
9432
  }, [i, m]);
9433
9433
  const R = Us(s), H = f.useRef(E), W = f.useRef(u ?? -1), $ = f.useRef(null), K = f.useRef(!0), M = we((J) => {
9434
9434
  l(W.current === -1 ? null : W.current, J);
9435
- }), I = f.useRef(M), Y = f.useRef(!!o), Z = f.useRef(r), L = f.useRef(!1), B = f.useRef(!1), D = mt(k), F = mt(r), z = mt(u), Q = mt(S), G = we(() => {
9435
+ }), S = f.useRef(M), Y = f.useRef(!!o), Z = f.useRef(r), A = f.useRef(!1), B = f.useRef(!1), D = mt(k), F = mt(r), z = mt(u), Q = mt(I), G = we(() => {
9436
9436
  function J(ce) {
9437
9437
  p ? P?.events.emit("virtualfocus", ce) : Cr(ce, {
9438
- sync: L.current,
9438
+ sync: A.current,
9439
9439
  preventScroll: !0
9440
9440
  });
9441
9441
  }
9442
9442
  const ee = a.current[W.current], V = B.current;
9443
- ee && J(ee), (L.current ? (ce) => ce() : requestAnimationFrame)(() => {
9443
+ ee && J(ee), (A.current ? (ce) => ce() : requestAnimationFrame)(() => {
9444
9444
  const ce = a.current[W.current] || ee;
9445
9445
  if (!ce)
9446
9446
  return;
@@ -9452,16 +9452,16 @@ function T0(e, t) {
9452
9452
  });
9453
9453
  });
9454
9454
  ge(() => {
9455
- d && (r && o ? (W.current = u ?? -1, H.current && u != null && (B.current = !0, M())) : Y.current && (W.current = -1, I.current()));
9455
+ d && (r && o ? (W.current = u ?? -1, H.current && u != null && (B.current = !0, M())) : Y.current && (W.current = -1, S.current()));
9456
9456
  }, [d, r, o, u, M]), ge(() => {
9457
9457
  if (d) {
9458
9458
  if (!r) {
9459
- L.current = !1;
9459
+ A.current = !1;
9460
9460
  return;
9461
9461
  }
9462
9462
  if (o)
9463
9463
  if (c == null) {
9464
- if (L.current = !1, z.current != null)
9464
+ if (A.current = !1, z.current != null)
9465
9465
  return;
9466
9466
  if (Y.current && (W.current = -1, G()), (!Z.current || !Y.current) && H.current && ($.current != null || H.current === !0 && $.current == null)) {
9467
9467
  let J = 0;
@@ -9475,12 +9475,12 @@ function T0(e, t) {
9475
9475
  }, [d, r, o, c, z, v, a, m, b, M, G, D]), ge(() => {
9476
9476
  if (!d || o || !P || p || !Y.current)
9477
9477
  return;
9478
- const J = P.nodesRef.current, ee = J.find((ce) => ce.id === A)?.context?.elements.floating, V = Mt(He(o)), te = J.some((ce) => ce.context && Ee(ce.context.elements.floating, V));
9478
+ const J = P.nodesRef.current, ee = J.find((ce) => ce.id === L)?.context?.elements.floating, V = Mt(He(o)), te = J.some((ce) => ce.context && Ee(ce.context.elements.floating, V));
9479
9479
  ee && !te && K.current && ee.focus({
9480
9480
  preventScroll: !0
9481
9481
  });
9482
- }, [d, o, P, A, p]), ge(() => {
9483
- I.current = M, Z.current = r, Y.current = !!o;
9482
+ }, [d, o, P, L, p]), ge(() => {
9483
+ S.current = M, Z.current = r, Y.current = !!o;
9484
9484
  }), ge(() => {
9485
9485
  r || ($.current = null, H.current = E);
9486
9486
  }, [r, E]);
@@ -9493,7 +9493,7 @@ function T0(e, t) {
9493
9493
  }
9494
9494
  return {
9495
9495
  onFocus(V) {
9496
- L.current = !0, J(V);
9496
+ A.current = !0, J(V);
9497
9497
  },
9498
9498
  onClick: ({
9499
9499
  currentTarget: V
@@ -9502,12 +9502,12 @@ function T0(e, t) {
9502
9502
  }),
9503
9503
  // Safari
9504
9504
  onMouseMove(V) {
9505
- L.current = !0, B.current = !1, g && J(V);
9505
+ A.current = !0, B.current = !1, g && J(V);
9506
9506
  },
9507
9507
  onPointerLeave(V) {
9508
9508
  if (!F.current || !K.current || V.pointerType === "touch")
9509
9509
  return;
9510
- L.current = !0;
9510
+ A.current = !0;
9511
9511
  const te = V.relatedTarget;
9512
9512
  if (!(!g || a.current.includes(te)) && Q.current && (Cr(null, {
9513
9513
  sync: !0
@@ -9519,8 +9519,8 @@ function T0(e, t) {
9519
9519
  }
9520
9520
  }
9521
9521
  };
9522
- }, [F, j, g, a, M, Q, p]), re = f.useCallback(() => w ?? P?.nodesRef.current.find((J) => J.id === A)?.context?.dataRef?.current.orientation, [A, P, w]), q = we((J) => {
9523
- if (K.current = !1, L.current = !0, J.which === 229 || !F.current && J.currentTarget === j.current)
9522
+ }, [F, j, g, a, M, Q, p]), re = f.useCallback(() => w ?? P?.nodesRef.current.find((J) => J.id === L)?.context?.dataRef?.current.orientation, [L, P, w]), q = we((J) => {
9523
+ if (K.current = !1, A.current = !0, J.which === 229 || !F.current && J.currentTarget === j.current)
9524
9524
  return;
9525
9525
  if (v && M0(J.key, m, b, _)) {
9526
9526
  ao(J.key, re()) || wt(J), n.setOpen(!1, Ne(xo, J.nativeEvent)), Qe(s) && (p ? P?.events.emit("virtualfocus", s) : s.focus());
@@ -9567,13 +9567,13 @@ function T0(e, t) {
9567
9567
  W.current = Os(J.key, m, b) ? V : te, M(J);
9568
9568
  return;
9569
9569
  }
9570
- Os(J.key, m, b) ? h ? ee >= te ? y && ee !== a.current.length ? W.current = -1 : (L.current = !1, W.current = V) : W.current = pt(a, {
9570
+ Os(J.key, m, b) ? h ? ee >= te ? y && ee !== a.current.length ? W.current = -1 : (A.current = !1, W.current = V) : W.current = pt(a, {
9571
9571
  startingIndex: ee,
9572
9572
  disabledIndices: k
9573
9573
  }) : W.current = Math.min(te, pt(a, {
9574
9574
  startingIndex: ee,
9575
9575
  disabledIndices: k
9576
- })) : h ? ee <= V ? y && ee !== -1 ? W.current = a.current.length : (L.current = !1, W.current = te) : W.current = pt(a, {
9576
+ })) : h ? ee <= V ? y && ee !== -1 ? W.current = a.current.length : (A.current = !1, W.current = te) : W.current = pt(a, {
9577
9577
  startingIndex: ee,
9578
9578
  decrement: !0,
9579
9579
  disabledIndices: k
@@ -9742,26 +9742,26 @@ function D0(e, t) {
9742
9742
  return -1;
9743
9743
  const $ = (W % R.length + R.length) % R.length, K = H.toLocaleLowerCase();
9744
9744
  for (let M = 0; M < R.length; M += 1) {
9745
- const I = ($ + M) % R.length;
9746
- if (!(!R[I]?.toLocaleLowerCase().startsWith(K) || !_(I)))
9747
- return I;
9745
+ const S = ($ + M) % R.length;
9746
+ if (!(!R[S]?.toLocaleLowerCase().startsWith(K) || !_(S)))
9747
+ return S;
9748
9748
  }
9749
9749
  return -1;
9750
9750
  }
9751
- const S = s.current;
9752
- if (v.current.length > 0 && w.key === " " && (wt(w), E(!0)), v.current.length > 0 && v.current[0] !== " " && O(S, v.current) === -1 && w.key !== " " && E(!1), S == null || // Character key.
9751
+ const I = s.current;
9752
+ if (v.current.length > 0 && w.key === " " && (wt(w), E(!0)), v.current.length > 0 && v.current[0] !== " " && O(I, v.current) === -1 && w.key !== " " && E(!1), I == null || // Character key.
9753
9753
  w.key.length !== 1 || // Modifier key.
9754
9754
  w.ctrlKey || w.metaKey || w.altKey)
9755
9755
  return;
9756
9756
  o && w.key !== " " && (wt(w), E(!0));
9757
9757
  const T = v.current === "";
9758
- T && (b.current = y ?? a ?? -1), S.every((R) => R ? R[0]?.toLocaleLowerCase() !== R[1]?.toLocaleLowerCase() : !0) && v.current === w.key && (v.current = "", b.current = p.current), v.current += w.key, h.start(u, () => {
9758
+ T && (b.current = y ?? a ?? -1), I.every((R) => R ? R[0]?.toLocaleLowerCase() !== R[1]?.toLocaleLowerCase() : !0) && v.current === w.key && (v.current = "", b.current = p.current), v.current += w.key, h.start(u, () => {
9759
9759
  v.current = "", b.current = p.current, E(!1);
9760
9760
  });
9761
- const A = ((T ? y ?? a ?? -1 : b.current) ?? 0) + 1, P = O(S, v.current, A);
9761
+ const L = ((T ? y ?? a ?? -1 : b.current) ?? 0) + 1, P = O(I, v.current, L);
9762
9762
  P !== -1 ? (c?.(P), p.current = P) : w.key !== " " && (v.current = "", E(!1));
9763
9763
  }), x = we((w) => {
9764
- const _ = w.relatedTarget, O = n.select("domReferenceElement"), S = n.select("floatingElement"), T = Ee(O, _), N = Ee(S, _);
9764
+ const _ = w.relatedTarget, O = n.select("domReferenceElement"), I = n.select("floatingElement"), T = Ee(O, _), N = Ee(I, _);
9765
9765
  T || N || (h.clear(), v.current = "", b.current = p.current, E(!1));
9766
9766
  }), k = f.useMemo(() => ({
9767
9767
  onKeyDown: g,
@@ -9808,8 +9808,8 @@ function L0(e = {}) {
9808
9808
  const k = performance.now(), m = k - b;
9809
9809
  if (h === null || v === null || m === 0)
9810
9810
  return h = g, v = x, b = k, !1;
9811
- const w = g - h, _ = x - v, O = w * w + _ * _, S = m * m * N0;
9812
- return h = g, v = x, b = k, O < S;
9811
+ const w = g - h, _ = x - v, O = w * w + _ * _, I = m * m * N0;
9812
+ return h = g, v = x, b = k, O < I;
9813
9813
  }
9814
9814
  function E() {
9815
9815
  n.clear(), c();
@@ -9822,51 +9822,51 @@ function L0(e = {}) {
9822
9822
  const {
9823
9823
  clientX: w,
9824
9824
  clientY: _
9825
- } = x, O = kt(x), S = x.type === "mouseleave", T = Ee(m, O), N = Ee(k, O);
9826
- if (T && (y = !0, !S))
9825
+ } = x, O = kt(x), I = x.type === "mouseleave", T = Ee(m, O), N = Ee(k, O);
9826
+ if (T && (y = !0, !I))
9827
9827
  return;
9828
- if (N && (y = !1, !S)) {
9828
+ if (N && (y = !1, !I)) {
9829
9829
  y = !0;
9830
9830
  return;
9831
9831
  }
9832
- if (S && je(x.relatedTarget) && Ee(m, x.relatedTarget))
9832
+ if (I && je(x.relatedTarget) && Ee(m, x.relatedTarget))
9833
9833
  return;
9834
9834
  function j() {
9835
9835
  return !!(d && en(d.nodesRef.current, l).length > 0);
9836
9836
  }
9837
- function A() {
9837
+ function L() {
9838
9838
  j() || E();
9839
9839
  }
9840
9840
  if (j())
9841
9841
  return;
9842
- const P = k.getBoundingClientRect(), R = m.getBoundingClientRect(), H = o > R.right - R.width / 2, W = s > R.bottom - R.height / 2, $ = R.width > P.width, K = R.height > P.height, M = ($ ? P : R).left, I = ($ ? P : R).right, Y = (K ? P : R).top, Z = (K ? P : R).bottom;
9842
+ const P = k.getBoundingClientRect(), R = m.getBoundingClientRect(), H = o > R.right - R.width / 2, W = s > R.bottom - R.height / 2, $ = R.width > P.width, K = R.height > P.height, M = ($ ? P : R).left, S = ($ ? P : R).right, Y = (K ? P : R).top, Z = (K ? P : R).bottom;
9843
9843
  if (u === "top" && s >= P.bottom - 1 || u === "bottom" && s <= P.top + 1 || u === "left" && o >= P.right - 1 || u === "right" && o <= P.left + 1) {
9844
- A();
9844
+ L();
9845
9845
  return;
9846
9846
  }
9847
- let L = !1;
9847
+ let A = !1;
9848
9848
  switch (u) {
9849
9849
  case "top":
9850
- L = uo(w, _, M, P.top + 1, I, R.bottom - 1);
9850
+ A = uo(w, _, M, P.top + 1, S, R.bottom - 1);
9851
9851
  break;
9852
9852
  case "bottom":
9853
- L = uo(w, _, M, R.top + 1, I, P.bottom - 1);
9853
+ A = uo(w, _, M, R.top + 1, S, P.bottom - 1);
9854
9854
  break;
9855
9855
  case "left":
9856
- L = uo(w, _, R.right - 1, Z, P.left + 1, Y);
9856
+ A = uo(w, _, R.right - 1, Z, P.left + 1, Y);
9857
9857
  break;
9858
9858
  case "right":
9859
- L = uo(w, _, P.right - 1, Z, R.left + 1, Y);
9859
+ A = uo(w, _, P.right - 1, Z, R.left + 1, Y);
9860
9860
  break;
9861
9861
  }
9862
- if (L)
9862
+ if (A)
9863
9863
  return;
9864
9864
  if (y && !j0(w, _, P)) {
9865
- A();
9865
+ L();
9866
9866
  return;
9867
9867
  }
9868
- if (!S && p(w, _)) {
9869
- A();
9868
+ if (!I && p(w, _)) {
9869
+ L();
9870
9870
  return;
9871
9871
  }
9872
9872
  let B = !1;
@@ -9892,7 +9892,7 @@ function L0(e = {}) {
9892
9892
  break;
9893
9893
  }
9894
9894
  }
9895
- B ? y || n.start(40, A) : A();
9895
+ B ? y || n.start(40, L) : L();
9896
9896
  };
9897
9897
  };
9898
9898
  return r.__options = {
@@ -9939,9 +9939,9 @@ const B0 = {
9939
9939
  m.events.off("close", R);
9940
9940
  };
9941
9941
  }, [m.events, a]);
9942
- const S = a.useState("hoverEnabled"), T = a.useState("disabled");
9942
+ const I = a.useState("hoverEnabled"), T = a.useState("disabled");
9943
9943
  C0(k, {
9944
- enabled: S && !T && !O && E.type !== "menubar",
9944
+ enabled: I && !T && !O && E.type !== "menubar",
9945
9945
  closeDelay: w
9946
9946
  });
9947
9947
  const N = {
@@ -9953,7 +9953,7 @@ const B0 = {
9953
9953
  instant: b
9954
9954
  }, j = f.useCallback((R) => {
9955
9955
  a.set("popupElement", R);
9956
- }, [a]), A = or("div", t, {
9956
+ }, [a]), L = or("div", t, {
9957
9957
  state: N,
9958
9958
  ref: [n, a.context.popupRef, j],
9959
9959
  stateAttributesMapping: B0,
@@ -9977,7 +9977,7 @@ const B0 = {
9977
9977
  previousFocusableElement: _,
9978
9978
  nextFocusableElement: E.type === void 0 ? a.context.triggerFocusTargetRef : void 0,
9979
9979
  beforeContentFocusGuardRef: E.type === void 0 ? a.context.beforeContentFocusGuardRef : void 0,
9980
- children: A
9980
+ children: L
9981
9981
  });
9982
9982
  });
9983
9983
  process.env.NODE_ENV !== "production" && ($f.displayName = "MenuPopup");
@@ -10038,7 +10038,7 @@ const z0 = (e) => ({
10038
10038
  }, v = Fi(o), b = Vi(v), p = await i.getDimensions(l), E = v === "y", g = E ? "top" : "left", x = E ? "bottom" : "right", k = E ? "clientHeight" : "clientWidth", m = s.reference[b] + s.reference[v] - h[v] - s.floating[b], w = h[v] - s.reference[v], _ = u === "real" ? await i.getOffsetParent?.(l) : a.floating;
10039
10039
  let O = a.floating[k] || s.floating[b];
10040
10040
  (!O || !await i.isElement?.(_)) && (O = a.floating[k] || s.floating[b]);
10041
- const S = m / 2 - w / 2, T = O / 2 - p[b] / 2 - 1, N = Math.min(y[g], T), j = Math.min(y[x], T), A = N, P = O - p[b] - j, R = O / 2 - p[b] / 2 + S, H = Gs(A, R, P), W = !c.arrow && bn(o) != null && R !== H && s.reference[b] / 2 - (R < A ? N : j) - p[b] / 2 < 0, $ = W ? R < A ? R - A : R - P : 0;
10041
+ const I = m / 2 - w / 2, T = O / 2 - p[b] / 2 - 1, N = Math.min(y[g], T), j = Math.min(y[x], T), L = N, P = O - p[b] - j, R = O / 2 - p[b] / 2 + I, H = Gs(L, R, P), W = !c.arrow && bn(o) != null && R !== H && s.reference[b] / 2 - (R < L ? N : j) - p[b] / 2 < 0, $ = W ? R < L ? R - L : R - P : 0;
10042
10042
  return {
10043
10043
  [v]: h[v] + $,
10044
10044
  data: {
@@ -10178,7 +10178,7 @@ function G0(e) {
10178
10178
  externalTree: k
10179
10179
  } = e, [m, w] = f.useState(null);
10180
10180
  !v && m !== null && w(null);
10181
- const _ = b.side || "flip", O = b.align || "flip", S = b.fallbackAxisSide || "end", T = typeof t == "function" ? t : void 0, N = we(T), j = T ? N : t, A = mt(t), R = Kf() === "rtl", H = m || {
10181
+ const _ = b.side || "flip", O = b.align || "flip", I = b.fallbackAxisSide || "end", T = typeof t == "function" ? t : void 0, N = we(T), j = T ? N : t, L = mt(t), R = Kf() === "rtl", H = m || {
10182
10182
  top: "top",
10183
10183
  right: "right",
10184
10184
  bottom: "bottom",
@@ -10187,19 +10187,19 @@ function G0(e) {
10187
10187
  "inline-start": R ? "right" : "left"
10188
10188
  }[r], W = s === "center" ? H : `${H}-${s}`;
10189
10189
  let $ = c;
10190
- const K = 1, M = r === "bottom" ? K : 0, I = r === "top" ? K : 0, Y = r === "right" ? K : 0, Z = r === "left" ? K : 0;
10190
+ const K = 1, M = r === "bottom" ? K : 0, S = r === "top" ? K : 0, Y = r === "right" ? K : 0, Z = r === "left" ? K : 0;
10191
10191
  typeof $ == "number" ? $ = {
10192
10192
  top: $ + M,
10193
10193
  right: $ + Z,
10194
- bottom: $ + I,
10194
+ bottom: $ + S,
10195
10195
  left: $ + Y
10196
10196
  } : $ && ($ = {
10197
10197
  top: ($.top || 0) + M,
10198
10198
  right: ($.right || 0) + Z,
10199
- bottom: ($.bottom || 0) + I,
10199
+ bottom: ($.bottom || 0) + S,
10200
10200
  left: ($.left || 0) + Y
10201
10201
  });
10202
- const L = {
10202
+ const A = {
10203
10203
  boundary: a === "clipping-ancestors" ? "clippingAncestors" : a,
10204
10204
  padding: $
10205
10205
  }, B = f.useRef(null), D = mt(o), F = mt(i), G = [Ev((Re) => {
@@ -10210,7 +10210,7 @@ function G0(e) {
10210
10210
  alignmentAxis: ve
10211
10211
  };
10212
10212
  }, [typeof o != "function" ? o : 0, typeof i != "function" ? i : 0, R, r])], ae = O === "none" && _ !== "shift", X = !ae && (l || p || _ === "shift"), re = _ === "none" ? null : _v({
10213
- ...L,
10213
+ ...A,
10214
10214
  // Ensure the popup flips if it's been limited by its --available-height and it resizes.
10215
10215
  // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
10216
10216
  padding: {
@@ -10221,11 +10221,11 @@ function G0(e) {
10221
10221
  },
10222
10222
  mainAxis: !p && _ === "flip",
10223
10223
  crossAxis: O === "flip" ? "alignment" : !1,
10224
- fallbackAxisSideDirection: S
10224
+ fallbackAxisSideDirection: I
10225
10225
  }), q = ae ? null : Cv((Re) => {
10226
10226
  const it = He(Re.elements.floating).documentElement;
10227
10227
  return {
10228
- ...L,
10228
+ ...A,
10229
10229
  // Use the Layout Viewport to avoid shifting around when pinch-zooming
10230
10230
  // for context menus.
10231
10231
  rootBoundary: p ? {
@@ -10248,9 +10248,9 @@ function G0(e) {
10248
10248
  };
10249
10249
  })
10250
10250
  };
10251
- }, [L, l, p, $, O]);
10251
+ }, [A, l, p, $, O]);
10252
10252
  _ === "shift" || O === "shift" || s === "center" ? G.push(q, re) : G.push(re, q), G.push(Sv({
10253
- ...L,
10253
+ ...A,
10254
10254
  apply({
10255
10255
  elements: {
10256
10256
  floating: Re
@@ -10338,14 +10338,14 @@ function G0(e) {
10338
10338
  ge(() => {
10339
10339
  if (!v)
10340
10340
  return;
10341
- const Re = A.current, it = typeof Re == "function" ? Re() : Re, ve = (Gc(it) ? it.current : it) || null || null;
10341
+ const Re = L.current, it = typeof Re == "function" ? Re() : Re, ve = (Gc(it) ? it.current : it) || null || null;
10342
10342
  ve !== Ce.current && (ye.setPositionReference(ve), Ce.current = ve);
10343
- }, [v, ye, j, A]), f.useEffect(() => {
10343
+ }, [v, ye, j, L]), f.useEffect(() => {
10344
10344
  if (!v)
10345
10345
  return;
10346
- const Re = A.current;
10346
+ const Re = L.current;
10347
10347
  typeof Re != "function" && Gc(Re) && Re.current !== Ce.current && (ye.setPositionReference(Re.current), Ce.current = Re.current);
10348
- }, [v, ye, j, A]), f.useEffect(() => {
10348
+ }, [v, ye, j, L]), f.useEffect(() => {
10349
10349
  if (y && v && se.domReference && se.floating)
10350
10350
  return jc(se.domReference, se.floating, V, de);
10351
10351
  }, [y, v, se, V, de]);
@@ -10503,9 +10503,9 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10503
10503
  ...E
10504
10504
  } = t, {
10505
10505
  store: g
10506
- } = An(), x = $0(), k = Uo(!0), m = g.useState("parent"), w = g.useState("floatingRootContext"), _ = g.useState("floatingTreeRoot"), O = g.useState("mounted"), S = g.useState("open"), T = g.useState("modal"), N = g.useState("activeTriggerElement"), j = g.useState("transitionStatus"), A = g.useState("positionerElement"), P = g.useState("instantType"), R = g.useState("hasViewport"), H = g.useState("lastOpenChangeReason"), W = g.useState("floatingNodeId"), $ = g.useState("floatingParentNodeId"), K = w.useState("domReferenceElement"), M = f.useRef(null), I = Kd(A, !1, !1);
10507
- let Y = r, Z = l, L = d, B = c, D = p;
10508
- m.type === "context-menu" && (Y = r ?? m.context?.anchor, B = B ?? "start", !a && B !== "center" && (L = t.alignOffset ?? 2, Z = t.sideOffset ?? -5));
10506
+ } = An(), x = $0(), k = Uo(!0), m = g.useState("parent"), w = g.useState("floatingRootContext"), _ = g.useState("floatingTreeRoot"), O = g.useState("mounted"), I = g.useState("open"), T = g.useState("modal"), N = g.useState("activeTriggerElement"), j = g.useState("transitionStatus"), L = g.useState("positionerElement"), P = g.useState("instantType"), R = g.useState("hasViewport"), H = g.useState("lastOpenChangeReason"), W = g.useState("floatingNodeId"), $ = g.useState("floatingParentNodeId"), K = w.useState("domReferenceElement"), M = f.useRef(null), S = Kd(L, !1, !1);
10507
+ let Y = r, Z = l, A = d, B = c, D = p;
10508
+ m.type === "context-menu" && (Y = r ?? m.context?.anchor, B = B ?? "start", !a && B !== "center" && (A = t.alignOffset ?? 2, Z = t.sideOffset ?? -5));
10509
10509
  let F = a, z = B;
10510
10510
  m.type === "menu" ? (F = F ?? "inline-end", z = z ?? "start", D = t.collisionAvoidance ?? ob) : m.type === "menubar" && (F = F ?? "bottom", z = z ?? "start");
10511
10511
  const Q = m.type === "context-menu", G = G0({
@@ -10516,7 +10516,7 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10516
10516
  side: F,
10517
10517
  sideOffset: Z,
10518
10518
  align: z,
10519
- alignOffset: L,
10519
+ alignOffset: A,
10520
10520
  arrowPadding: Q ? 0 : h,
10521
10521
  collisionBoundary: u,
10522
10522
  collisionPadding: y,
@@ -10530,7 +10530,7 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10530
10530
  adaptiveOrigin: R ? U0 : void 0
10531
10531
  }), ae = f.useMemo(() => {
10532
10532
  const oe = {};
10533
- return S || (oe.pointerEvents = "none"), {
10533
+ return I || (oe.pointerEvents = "none"), {
10534
10534
  role: "presentation",
10535
10535
  hidden: !O,
10536
10536
  style: {
@@ -10538,7 +10538,7 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10538
10538
  ...oe
10539
10539
  }
10540
10540
  };
10541
- }, [S, O, G.positionerStyles]);
10541
+ }, [I, O, G.positionerStyles]);
10542
10542
  f.useEffect(() => {
10543
10543
  function oe(J) {
10544
10544
  J.open && (J.parentNodeId === W && g.set("hoverEnabled", !1), J.nodeId !== W && J.parentNodeId === g.select("floatingParentNodeId") && g.setOpen(!1, Ne(wr)));
@@ -10561,10 +10561,10 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10561
10561
  }, [_.events, g]);
10562
10562
  const X = _t();
10563
10563
  f.useEffect(() => {
10564
- S || X.clear();
10565
- }, [S, X]), f.useEffect(() => {
10564
+ I || X.clear();
10565
+ }, [I, X]), f.useEffect(() => {
10566
10566
  function oe(J) {
10567
- if (!(!S || J.nodeId !== g.select("floatingParentNodeId")))
10567
+ if (!(!I || J.nodeId !== g.select("floatingParentNodeId")))
10568
10568
  if (J.target && N && N !== J.target) {
10569
10569
  const ee = g.select("closeDelay");
10570
10570
  ee > 0 ? X.isStarted() || X.start(ee, () => {
@@ -10576,28 +10576,28 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10576
10576
  return _.events.on("itemhover", oe), () => {
10577
10577
  _.events.off("itemhover", oe);
10578
10578
  };
10579
- }, [_.events, S, N, g, X]), f.useEffect(() => {
10579
+ }, [_.events, I, N, g, X]), f.useEffect(() => {
10580
10580
  const oe = {
10581
- open: S,
10581
+ open: I,
10582
10582
  nodeId: W,
10583
10583
  parentNodeId: $,
10584
10584
  reason: g.select("lastOpenChangeReason")
10585
10585
  };
10586
10586
  _.events.emit("menuopenchange", oe);
10587
- }, [_.events, S, g, W, $]), ge(() => {
10587
+ }, [_.events, I, g, W, $]), ge(() => {
10588
10588
  const oe = K, J = M.current;
10589
10589
  if (oe && (M.current = oe), J && oe && oe !== J) {
10590
10590
  g.set("instantType", void 0);
10591
10591
  const ee = new AbortController();
10592
- return I(() => {
10592
+ return S(() => {
10593
10593
  g.set("instantType", "trigger-change");
10594
10594
  }, ee.signal), () => {
10595
10595
  ee.abort();
10596
10596
  };
10597
10597
  }
10598
- }, [K, I, g]);
10598
+ }, [K, S, g]);
10599
10599
  const re = {
10600
- open: S,
10600
+ open: I,
10601
10601
  side: G.side,
10602
10602
  align: G.align,
10603
10603
  anchorHidden: G.anchorHidden,
@@ -10621,7 +10621,7 @@ const Gf = /* @__PURE__ */ f.forwardRef(function(t, n) {
10621
10621
  value: q,
10622
10622
  children: [ye && /* @__PURE__ */ C.jsx(Uf, {
10623
10623
  ref: m.type === "context-menu" || m.type === "nested-context-menu" ? m.context.internalBackdropRef : null,
10624
- inert: Y0(!S),
10624
+ inert: Y0(!I),
10625
10625
  cutout: se
10626
10626
  }), /* @__PURE__ */ C.jsx(T1, {
10627
10627
  id: W,
@@ -10689,9 +10689,9 @@ function ow(e) {
10689
10689
  overflowX: r.style.overflowX,
10690
10690
  scrollBehavior: r.style.scrollBehavior
10691
10691
  };
10692
- const E = n.scrollHeight > n.clientHeight, g = n.scrollWidth > n.clientWidth, x = y.overflowY === "scroll" || h.overflowY === "scroll", k = y.overflowX === "scroll" || h.overflowX === "scroll", m = Math.max(0, o.innerWidth - r.clientWidth), w = Math.max(0, o.innerHeight - r.clientHeight), _ = parseFloat(h.marginTop) + parseFloat(h.marginBottom), O = parseFloat(h.marginLeft) + parseFloat(h.marginRight), S = yn(n) ? n : r;
10692
+ const E = n.scrollHeight > n.clientHeight, g = n.scrollWidth > n.clientWidth, x = y.overflowY === "scroll" || h.overflowY === "scroll", k = y.overflowX === "scroll" || h.overflowX === "scroll", m = Math.max(0, o.innerWidth - r.clientWidth), w = Math.max(0, o.innerHeight - r.clientHeight), _ = parseFloat(h.marginTop) + parseFloat(h.marginBottom), O = parseFloat(h.marginLeft) + parseFloat(h.marginRight), I = yn(n) ? n : r;
10693
10693
  if (a = nw(e), a) {
10694
- n.style.scrollbarGutter = p, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
10694
+ n.style.scrollbarGutter = p, I.style.overflowY = "hidden", I.style.overflowX = "hidden";
10695
10695
  return;
10696
10696
  }
10697
10697
  Object.assign(n.style, {
@@ -10944,7 +10944,7 @@ const Jf = Tf(function(t) {
10944
10944
  activeTriggerId: b
10945
10945
  });
10946
10946
  }), w.useControlledProp("openProp", r), w.useControlledProp("triggerIdProp", v), w.useContextCallback("onOpenChangeComplete", s);
10947
- const _ = w.useState("floatingTreeRoot"), O = bf(_), S = on();
10947
+ const _ = w.useState("floatingTreeRoot"), O = bf(_), I = on();
10948
10948
  ge(() => {
10949
10949
  E && !g ? w.update({
10950
10950
  parent: {
@@ -10952,13 +10952,13 @@ const Jf = Tf(function(t) {
10952
10952
  context: E
10953
10953
  },
10954
10954
  floatingNodeId: O,
10955
- floatingParentNodeId: S
10955
+ floatingParentNodeId: I
10956
10956
  }) : g && w.update({
10957
10957
  floatingNodeId: O,
10958
- floatingParentNodeId: S
10958
+ floatingParentNodeId: I
10959
10959
  });
10960
- }, [E, g, O, S, w]);
10961
- const T = w.useState("open"), N = w.useState("activeTriggerElement"), j = w.useState("positionerElement"), A = w.useState("hoverEnabled"), P = w.useState("modal"), R = w.useState("disabled"), H = w.useState("lastOpenChangeReason"), W = w.useState("parent"), $ = w.useState("activeIndex"), K = w.useState("payload"), M = w.useState("floatingParentNodeId"), I = f.useRef(null), Y = M != null;
10960
+ }, [E, g, O, I, w]);
10961
+ const T = w.useState("open"), N = w.useState("activeTriggerElement"), j = w.useState("positionerElement"), L = w.useState("hoverEnabled"), P = w.useState("modal"), R = w.useState("disabled"), H = w.useState("lastOpenChangeReason"), W = w.useState("parent"), $ = w.useState("activeIndex"), K = w.useState("payload"), M = w.useState("floatingParentNodeId"), S = f.useRef(null), Y = M != null;
10962
10962
  let Z;
10963
10963
  process.env.NODE_ENV !== "production" && W.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored."), w.useSyncedValues({
10964
10964
  disabled: a,
@@ -10966,7 +10966,7 @@ const Jf = Tf(function(t) {
10966
10966
  rootId: Wn()
10967
10967
  });
10968
10968
  const {
10969
- openMethod: L,
10969
+ openMethod: A,
10970
10970
  triggerProps: B
10971
10971
  } = uw(T);
10972
10972
  f0(w);
@@ -10979,7 +10979,7 @@ const Jf = Tf(function(t) {
10979
10979
  });
10980
10980
  }), F = f.useRef(W.type !== "context-menu"), z = _t();
10981
10981
  f.useEffect(() => {
10982
- if (T || (I.current = null), W.type === "context-menu") {
10982
+ if (T || (S.current = null), W.type === "context-menu") {
10983
10983
  if (!T) {
10984
10984
  z.clear(), F.current = !1;
10985
10985
  return;
@@ -10988,9 +10988,9 @@ const Jf = Tf(function(t) {
10988
10988
  F.current = !0;
10989
10989
  });
10990
10990
  }
10991
- }, [z, T, W.type]), aw(T && P && H !== xt && L !== "touch", j), ge(() => {
10992
- !T && !A && w.set("hoverEnabled", !0);
10993
- }, [T, A, w]);
10991
+ }, [z, T, W.type]), aw(T && P && H !== xt && A !== "touch", j), ge(() => {
10992
+ !T && !L && w.set("hoverEnabled", !0);
10993
+ }, [T, L, w]);
10994
10994
  const Q = f.useRef(!0), G = _t(), ae = we((Oe, De) => {
10995
10995
  const nt = De.reason;
10996
10996
  if (T === Oe && De.trigger === N && H === nt || (De.preventUnmountOnClose = () => {
@@ -11020,7 +11020,7 @@ const Jf = Tf(function(t) {
11020
11020
  open: Oe,
11021
11021
  openChangeReason: nt
11022
11022
  };
11023
- I.current = De.event ?? null;
11023
+ S.current = De.event ?? null;
11024
11024
  const fe = De.trigger?.id ?? null;
11025
11025
  (fe || Oe) && (ve.activeTriggerId = fe, ve.activeTriggerElement = De.trigger ?? null), w.update(ve), W.type === "menubar" && (nt === Er || nt === Zn || nt === xt || nt === xo || nt === wr) ? w.set("instantType", "group") : it || pe ? w.set("instantType", it ? "click" : "dismiss") : w.set("instantType", void 0);
11026
11026
  }), X = f.useCallback((Oe) => {
@@ -11058,7 +11058,7 @@ const Jf = Tf(function(t) {
11058
11058
  escapeKey: y && W.type === "menu"
11059
11059
  },
11060
11060
  outsidePress() {
11061
- return W.type !== "context-menu" || I.current?.type === "contextmenu" ? !0 : F.current;
11061
+ return W.type !== "context-menu" || S.current?.type === "contextmenu" ? !0 : F.current;
11062
11062
  },
11063
11063
  externalTree: Y ? _ : void 0
11064
11064
  }), se = P0(de, {
@@ -11249,7 +11249,7 @@ const fo = 2, tp = t0(function(t, n) {
11249
11249
  } = t, v = An(!0), b = u?.store ?? v?.store;
11250
11250
  if (!b)
11251
11251
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : mn(85));
11252
- const p = zd(a), E = b.useState("isTriggerActive", p), g = b.useState("floatingRootContext"), x = b.useState("isOpenedByTrigger", p), k = f.useRef(null), m = vw(), w = Di(!0), _ = vn(), O = f.useMemo(() => _ ?? new Yi(), [_]), S = bf(O), T = on(), {
11252
+ const p = zd(a), E = b.useState("isTriggerActive", p), g = b.useState("floatingRootContext"), x = b.useState("isOpenedByTrigger", p), k = f.useRef(null), m = vw(), w = Di(!0), _ = vn(), O = f.useMemo(() => _ ?? new Yi(), [_]), I = bf(O), T = on(), {
11253
11253
  registerTrigger: N,
11254
11254
  isMountedByThisTrigger: j
11255
11255
  } = d0(p, k, b, {
@@ -11257,10 +11257,10 @@ const fo = 2, tp = t0(function(t, n) {
11257
11257
  closeDelay: d,
11258
11258
  parent: m,
11259
11259
  floatingTreeRoot: O,
11260
- floatingNodeId: S,
11260
+ floatingNodeId: I,
11261
11261
  floatingParentNodeId: T,
11262
11262
  keyboardEventRelay: w?.relayKeyboardEvent
11263
- }), A = m.type === "menubar", P = b.useState("disabled"), R = s || P || A && m.context.disabled, {
11263
+ }), L = m.type === "menubar", P = b.useState("disabled"), R = s || P || L && m.context.disabled, {
11264
11264
  getButtonProps: H,
11265
11265
  buttonRef: W
11266
11266
  } = Ld({
@@ -11288,10 +11288,10 @@ const fo = 2, tp = t0(function(t, n) {
11288
11288
  once: !0
11289
11289
  });
11290
11290
  }, [x, M, b]);
11291
- const I = A && m.context.hasSubmenuOpen, Z = _0(g, {
11292
- enabled: (c ?? I) && !R && m.type !== "context-menu" && (!A || I && !j),
11291
+ const S = L && m.context.hasSubmenuOpen, Z = _0(g, {
11292
+ enabled: (c ?? S) && !R && m.type !== "context-menu" && (!L || S && !j),
11293
11293
  handleClose: L0({
11294
- blockPointerEvents: !A
11294
+ blockPointerEvents: !L
11295
11295
  }),
11296
11296
  mouseOnly: !0,
11297
11297
  move: !1,
@@ -11302,17 +11302,17 @@ const fo = 2, tp = t0(function(t, n) {
11302
11302
  triggerElementRef: k,
11303
11303
  externalTree: O,
11304
11304
  isActiveTrigger: E
11305
- }), L = bw(x, b.select("lastOpenChangeReason")), B = A1(g, {
11305
+ }), A = bw(x, b.select("lastOpenChangeReason")), B = A1(g, {
11306
11306
  enabled: !R && m.type !== "context-menu",
11307
- event: x && A ? "click" : "mousedown",
11307
+ event: x && L ? "click" : "mousedown",
11308
11308
  toggle: !0,
11309
11309
  ignoreMouse: !1,
11310
- stickIfOpen: m.type === void 0 ? L : !1
11310
+ stickIfOpen: m.type === void 0 ? A : !1
11311
11311
  }), D = w0(g, {
11312
- enabled: !R && I
11312
+ enabled: !R && S
11313
11313
  }), F = yw({
11314
11314
  open: x,
11315
- enabled: A,
11315
+ enabled: L,
11316
11316
  mouseDownAction: "open"
11317
11317
  }), z = Nf([B, D]), Q = {
11318
11318
  disabled: R,
@@ -11329,7 +11329,7 @@ const fo = 2, tp = t0(function(t, n) {
11329
11329
  once: !0
11330
11330
  });
11331
11331
  }
11332
- }, A ? {
11332
+ }, L ? {
11333
11333
  role: "menuitem"
11334
11334
  } : {}, F, h, H], re = f.useRef(null), q = we((se) => {
11335
11335
  Tn.flushSync(() => {
@@ -11352,13 +11352,13 @@ const fo = 2, tp = t0(function(t, n) {
11352
11352
  J?.focus();
11353
11353
  }
11354
11354
  }), ye = or("button", t, {
11355
- enabled: !A,
11355
+ enabled: !L,
11356
11356
  stateAttributesMapping: uc,
11357
11357
  state: Q,
11358
11358
  ref: ae,
11359
11359
  props: X
11360
11360
  });
11361
- return A ? /* @__PURE__ */ C.jsx(gw, {
11361
+ return L ? /* @__PURE__ */ C.jsx(gw, {
11362
11362
  tag: "button",
11363
11363
  render: r,
11364
11364
  className: o,
@@ -11662,7 +11662,7 @@ const Z_ = ({
11662
11662
  k.current && (k.current.value = ""), x(null), y?.(null), h?.();
11663
11663
  }, _ = (T) => {
11664
11664
  x(T.currentTarget.files), y?.(T.currentTarget.files), u?.(T);
11665
- }, O = g?.length === 1 ? g[0].name : g && g.length > 1 ? s(g.length) : o, S = !!g && g.length > 0;
11665
+ }, O = g?.length === 1 ? g[0].name : g && g.length > 1 ? s(g.length) : o, I = !!g && g.length > 0;
11666
11666
  return /* @__PURE__ */ C.jsxs("div", { className: U("flex items-center gap-3", t), children: [
11667
11667
  /* @__PURE__ */ C.jsx(
11668
11668
  At,
@@ -11699,7 +11699,7 @@ const Z_ = ({
11699
11699
  children: O
11700
11700
  }
11701
11701
  ),
11702
- i && S && /* @__PURE__ */ C.jsx(
11702
+ i && I && /* @__PURE__ */ C.jsx(
11703
11703
  At,
11704
11704
  {
11705
11705
  type: "button",
@@ -11803,7 +11803,7 @@ const sS = ({
11803
11803
  iconCancel: "var(--error)"
11804
11804
  }
11805
11805
  }, _w = Xl(
11806
- () => import("./index.esm-DXlFhov2.js").then((e) => ({
11806
+ () => import("./index.esm-DDQACc5W.js").then((e) => ({
11807
11807
  default: e.JsonEditor
11808
11808
  }))
11809
11809
  );
@@ -12293,14 +12293,14 @@ function jw() {
12293
12293
  }
12294
12294
  }
12295
12295
  }
12296
- var m = c, w = l, _ = a, O = i, S = t, T = d, N = r, j = v, A = h, P = n, R = s, H = o, W = u, $ = !1;
12296
+ var m = c, w = l, _ = a, O = i, I = t, T = d, N = r, j = v, L = h, P = n, R = s, H = o, W = u, $ = !1;
12297
12297
  function K(X) {
12298
12298
  return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), M(X) || k(X) === c;
12299
12299
  }
12300
12300
  function M(X) {
12301
12301
  return k(X) === l;
12302
12302
  }
12303
- function I(X) {
12303
+ function S(X) {
12304
12304
  return k(X) === a;
12305
12305
  }
12306
12306
  function Y(X) {
@@ -12309,7 +12309,7 @@ function jw() {
12309
12309
  function Z(X) {
12310
12310
  return typeof X == "object" && X !== null && X.$$typeof === t;
12311
12311
  }
12312
- function L(X) {
12312
+ function A(X) {
12313
12313
  return k(X) === d;
12314
12314
  }
12315
12315
  function B(X) {
@@ -12333,7 +12333,7 @@ function jw() {
12333
12333
  function ae(X) {
12334
12334
  return k(X) === u;
12335
12335
  }
12336
- We.AsyncMode = m, We.ConcurrentMode = w, We.ContextConsumer = _, We.ContextProvider = O, We.Element = S, We.ForwardRef = T, We.Fragment = N, We.Lazy = j, We.Memo = A, We.Portal = P, We.Profiler = R, We.StrictMode = H, We.Suspense = W, We.isAsyncMode = K, We.isConcurrentMode = M, We.isContextConsumer = I, We.isContextProvider = Y, We.isElement = Z, We.isForwardRef = L, We.isFragment = B, We.isLazy = D, We.isMemo = F, We.isPortal = z, We.isProfiler = Q, We.isStrictMode = G, We.isSuspense = ae, We.isValidElementType = x, We.typeOf = k;
12336
+ We.AsyncMode = m, We.ConcurrentMode = w, We.ContextConsumer = _, We.ContextProvider = O, We.Element = I, We.ForwardRef = T, We.Fragment = N, We.Lazy = j, We.Memo = L, We.Portal = P, We.Profiler = R, We.StrictMode = H, We.Suspense = W, We.isAsyncMode = K, We.isConcurrentMode = M, We.isContextConsumer = S, We.isContextProvider = Y, We.isElement = Z, We.isForwardRef = A, We.isFragment = B, We.isLazy = D, We.isMemo = F, We.isPortal = z, We.isProfiler = Q, We.isStrictMode = G, We.isSuspense = ae, We.isValidElementType = x, We.typeOf = k;
12337
12337
  })()), We;
12338
12338
  }
12339
12339
  var tl;
@@ -12466,9 +12466,9 @@ function Ww() {
12466
12466
  return Ts = function(a, c) {
12467
12467
  var l = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
12468
12468
  function u(M) {
12469
- var I = M && (l && M[l] || M[d]);
12470
- if (typeof I == "function")
12471
- return I;
12469
+ var S = M && (l && M[l] || M[d]);
12470
+ if (typeof S == "function")
12471
+ return S;
12472
12472
  }
12473
12473
  var y = "<<anonymous>>", h = {
12474
12474
  array: E("array"),
@@ -12487,20 +12487,20 @@ function Ww() {
12487
12487
  node: T(),
12488
12488
  objectOf: O,
12489
12489
  oneOf: _,
12490
- oneOfType: S,
12490
+ oneOfType: I,
12491
12491
  shape: j,
12492
- exact: A
12492
+ exact: L
12493
12493
  };
12494
- function v(M, I) {
12495
- return M === I ? M !== 0 || 1 / M === 1 / I : M !== M && I !== I;
12494
+ function v(M, S) {
12495
+ return M === S ? M !== 0 || 1 / M === 1 / S : M !== M && S !== S;
12496
12496
  }
12497
- function b(M, I) {
12498
- this.message = M, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
12497
+ function b(M, S) {
12498
+ this.message = M, this.data = S && typeof S == "object" ? S : {}, this.stack = "";
12499
12499
  }
12500
12500
  b.prototype = Error.prototype;
12501
12501
  function p(M) {
12502
12502
  if (process.env.NODE_ENV !== "production")
12503
- var I = {}, Y = 0;
12503
+ var S = {}, Y = 0;
12504
12504
  function Z(B, D, F, z, Q, G, ae) {
12505
12505
  if (z = z || y, G = G || F, ae !== n) {
12506
12506
  if (c) {
@@ -12510,90 +12510,90 @@ function Ww() {
12510
12510
  throw X.name = "Invariant Violation", X;
12511
12511
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
12512
12512
  var re = z + ":" + F;
12513
- !I[re] && // Avoid spamming the console because they are often not actionable except for lib authors
12513
+ !S[re] && // Avoid spamming the console because they are often not actionable except for lib authors
12514
12514
  Y < 3 && (s(
12515
12515
  "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
12516
- ), I[re] = !0, Y++);
12516
+ ), S[re] = !0, Y++);
12517
12517
  }
12518
12518
  }
12519
12519
  return D[F] == null ? B ? D[F] === null ? new b("The " + Q + " `" + G + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new b("The " + Q + " `" + G + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : M(D, F, z, Q, G);
12520
12520
  }
12521
- var L = Z.bind(null, !1);
12522
- return L.isRequired = Z.bind(null, !0), L;
12521
+ var A = Z.bind(null, !1);
12522
+ return A.isRequired = Z.bind(null, !0), A;
12523
12523
  }
12524
12524
  function E(M) {
12525
- function I(Y, Z, L, B, D, F) {
12525
+ function S(Y, Z, A, B, D, F) {
12526
12526
  var z = Y[Z], Q = H(z);
12527
12527
  if (Q !== M) {
12528
12528
  var G = W(z);
12529
12529
  return new b(
12530
- "Invalid " + B + " `" + D + "` of type " + ("`" + G + "` supplied to `" + L + "`, expected ") + ("`" + M + "`."),
12530
+ "Invalid " + B + " `" + D + "` of type " + ("`" + G + "` supplied to `" + A + "`, expected ") + ("`" + M + "`."),
12531
12531
  { expectedType: M }
12532
12532
  );
12533
12533
  }
12534
12534
  return null;
12535
12535
  }
12536
- return p(I);
12536
+ return p(S);
12537
12537
  }
12538
12538
  function g() {
12539
12539
  return p(i);
12540
12540
  }
12541
12541
  function x(M) {
12542
- function I(Y, Z, L, B, D) {
12542
+ function S(Y, Z, A, B, D) {
12543
12543
  if (typeof M != "function")
12544
- return new b("Property `" + D + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
12544
+ return new b("Property `" + D + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
12545
12545
  var F = Y[Z];
12546
12546
  if (!Array.isArray(F)) {
12547
12547
  var z = H(F);
12548
- return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + L + "`, expected an array."));
12548
+ return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + A + "`, expected an array."));
12549
12549
  }
12550
12550
  for (var Q = 0; Q < F.length; Q++) {
12551
- var G = M(F, Q, L, B, D + "[" + Q + "]", n);
12551
+ var G = M(F, Q, A, B, D + "[" + Q + "]", n);
12552
12552
  if (G instanceof Error)
12553
12553
  return G;
12554
12554
  }
12555
12555
  return null;
12556
12556
  }
12557
- return p(I);
12557
+ return p(S);
12558
12558
  }
12559
12559
  function k() {
12560
- function M(I, Y, Z, L, B) {
12561
- var D = I[Y];
12560
+ function M(S, Y, Z, A, B) {
12561
+ var D = S[Y];
12562
12562
  if (!a(D)) {
12563
12563
  var F = H(D);
12564
- return new b("Invalid " + L + " `" + B + "` of type " + ("`" + F + "` supplied to `" + Z + "`, expected a single ReactElement."));
12564
+ return new b("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + Z + "`, expected a single ReactElement."));
12565
12565
  }
12566
12566
  return null;
12567
12567
  }
12568
12568
  return p(M);
12569
12569
  }
12570
12570
  function m() {
12571
- function M(I, Y, Z, L, B) {
12572
- var D = I[Y];
12571
+ function M(S, Y, Z, A, B) {
12572
+ var D = S[Y];
12573
12573
  if (!e.isValidElementType(D)) {
12574
12574
  var F = H(D);
12575
- return new b("Invalid " + L + " `" + B + "` of type " + ("`" + F + "` supplied to `" + Z + "`, expected a single ReactElement type."));
12575
+ return new b("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + Z + "`, expected a single ReactElement type."));
12576
12576
  }
12577
12577
  return null;
12578
12578
  }
12579
12579
  return p(M);
12580
12580
  }
12581
12581
  function w(M) {
12582
- function I(Y, Z, L, B, D) {
12582
+ function S(Y, Z, A, B, D) {
12583
12583
  if (!(Y[Z] instanceof M)) {
12584
12584
  var F = M.name || y, z = K(Y[Z]);
12585
- return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + L + "`, expected ") + ("instance of `" + F + "`."));
12585
+ return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + A + "`, expected ") + ("instance of `" + F + "`."));
12586
12586
  }
12587
12587
  return null;
12588
12588
  }
12589
- return p(I);
12589
+ return p(S);
12590
12590
  }
12591
12591
  function _(M) {
12592
12592
  if (!Array.isArray(M))
12593
12593
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
12594
12594
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
12595
12595
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
12596
- function I(Y, Z, L, B, D) {
12596
+ function S(Y, Z, A, B, D) {
12597
12597
  for (var F = Y[Z], z = 0; z < M.length; z++)
12598
12598
  if (v(F, M[z]))
12599
12599
  return null;
@@ -12601,40 +12601,40 @@ function Ww() {
12601
12601
  var re = W(X);
12602
12602
  return re === "symbol" ? String(X) : X;
12603
12603
  });
12604
- return new b("Invalid " + B + " `" + D + "` of value `" + String(F) + "` " + ("supplied to `" + L + "`, expected one of " + Q + "."));
12604
+ return new b("Invalid " + B + " `" + D + "` of value `" + String(F) + "` " + ("supplied to `" + A + "`, expected one of " + Q + "."));
12605
12605
  }
12606
- return p(I);
12606
+ return p(S);
12607
12607
  }
12608
12608
  function O(M) {
12609
- function I(Y, Z, L, B, D) {
12609
+ function S(Y, Z, A, B, D) {
12610
12610
  if (typeof M != "function")
12611
- return new b("Property `" + D + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
12611
+ return new b("Property `" + D + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
12612
12612
  var F = Y[Z], z = H(F);
12613
12613
  if (z !== "object")
12614
- return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + L + "`, expected an object."));
12614
+ return new b("Invalid " + B + " `" + D + "` of type " + ("`" + z + "` supplied to `" + A + "`, expected an object."));
12615
12615
  for (var Q in F)
12616
12616
  if (r(F, Q)) {
12617
- var G = M(F, Q, L, B, D + "." + Q, n);
12617
+ var G = M(F, Q, A, B, D + "." + Q, n);
12618
12618
  if (G instanceof Error)
12619
12619
  return G;
12620
12620
  }
12621
12621
  return null;
12622
12622
  }
12623
- return p(I);
12623
+ return p(S);
12624
12624
  }
12625
- function S(M) {
12625
+ function I(M) {
12626
12626
  if (!Array.isArray(M))
12627
12627
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
12628
- for (var I = 0; I < M.length; I++) {
12629
- var Y = M[I];
12628
+ for (var S = 0; S < M.length; S++) {
12629
+ var Y = M[S];
12630
12630
  if (typeof Y != "function")
12631
12631
  return s(
12632
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(Y) + " at index " + I + "."
12632
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(Y) + " at index " + S + "."
12633
12633
  ), i;
12634
12634
  }
12635
- function Z(L, B, D, F, z) {
12635
+ function Z(A, B, D, F, z) {
12636
12636
  for (var Q = [], G = 0; G < M.length; G++) {
12637
- var ae = M[G], X = ae(L, B, D, F, z, n);
12637
+ var ae = M[G], X = ae(A, B, D, F, z, n);
12638
12638
  if (X == null)
12639
12639
  return null;
12640
12640
  X.data && r(X.data, "expectedType") && Q.push(X.data.expectedType);
@@ -12645,55 +12645,55 @@ function Ww() {
12645
12645
  return p(Z);
12646
12646
  }
12647
12647
  function T() {
12648
- function M(I, Y, Z, L, B) {
12649
- return P(I[Y]) ? null : new b("Invalid " + L + " `" + B + "` supplied to " + ("`" + Z + "`, expected a ReactNode."));
12648
+ function M(S, Y, Z, A, B) {
12649
+ return P(S[Y]) ? null : new b("Invalid " + A + " `" + B + "` supplied to " + ("`" + Z + "`, expected a ReactNode."));
12650
12650
  }
12651
12651
  return p(M);
12652
12652
  }
12653
- function N(M, I, Y, Z, L) {
12653
+ function N(M, S, Y, Z, A) {
12654
12654
  return new b(
12655
- (M || "React class") + ": " + I + " type `" + Y + "." + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
12655
+ (M || "React class") + ": " + S + " type `" + Y + "." + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
12656
12656
  );
12657
12657
  }
12658
12658
  function j(M) {
12659
- function I(Y, Z, L, B, D) {
12659
+ function S(Y, Z, A, B, D) {
12660
12660
  var F = Y[Z], z = H(F);
12661
12661
  if (z !== "object")
12662
- return new b("Invalid " + B + " `" + D + "` of type `" + z + "` " + ("supplied to `" + L + "`, expected `object`."));
12662
+ return new b("Invalid " + B + " `" + D + "` of type `" + z + "` " + ("supplied to `" + A + "`, expected `object`."));
12663
12663
  for (var Q in M) {
12664
12664
  var G = M[Q];
12665
12665
  if (typeof G != "function")
12666
- return N(L, B, D, Q, W(G));
12667
- var ae = G(F, Q, L, B, D + "." + Q, n);
12666
+ return N(A, B, D, Q, W(G));
12667
+ var ae = G(F, Q, A, B, D + "." + Q, n);
12668
12668
  if (ae)
12669
12669
  return ae;
12670
12670
  }
12671
12671
  return null;
12672
12672
  }
12673
- return p(I);
12673
+ return p(S);
12674
12674
  }
12675
- function A(M) {
12676
- function I(Y, Z, L, B, D) {
12675
+ function L(M) {
12676
+ function S(Y, Z, A, B, D) {
12677
12677
  var F = Y[Z], z = H(F);
12678
12678
  if (z !== "object")
12679
- return new b("Invalid " + B + " `" + D + "` of type `" + z + "` " + ("supplied to `" + L + "`, expected `object`."));
12679
+ return new b("Invalid " + B + " `" + D + "` of type `" + z + "` " + ("supplied to `" + A + "`, expected `object`."));
12680
12680
  var Q = t({}, Y[Z], M);
12681
12681
  for (var G in Q) {
12682
12682
  var ae = M[G];
12683
12683
  if (r(M, G) && typeof ae != "function")
12684
- return N(L, B, D, G, W(ae));
12684
+ return N(A, B, D, G, W(ae));
12685
12685
  if (!ae)
12686
12686
  return new b(
12687
- "Invalid " + B + " `" + D + "` key `" + G + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(Y[Z], null, " ") + `
12687
+ "Invalid " + B + " `" + D + "` key `" + G + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(Y[Z], null, " ") + `
12688
12688
  Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
12689
12689
  );
12690
- var X = ae(F, G, L, B, D + "." + G, n);
12690
+ var X = ae(F, G, A, B, D + "." + G, n);
12691
12691
  if (X)
12692
12692
  return X;
12693
12693
  }
12694
12694
  return null;
12695
12695
  }
12696
- return p(I);
12696
+ return p(S);
12697
12697
  }
12698
12698
  function P(M) {
12699
12699
  switch (typeof M) {
@@ -12708,17 +12708,17 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
12708
12708
  return M.every(P);
12709
12709
  if (M === null || a(M))
12710
12710
  return !0;
12711
- var I = u(M);
12712
- if (I) {
12713
- var Y = I.call(M), Z;
12714
- if (I !== M.entries) {
12711
+ var S = u(M);
12712
+ if (S) {
12713
+ var Y = S.call(M), Z;
12714
+ if (S !== M.entries) {
12715
12715
  for (; !(Z = Y.next()).done; )
12716
12716
  if (!P(Z.value))
12717
12717
  return !1;
12718
12718
  } else
12719
12719
  for (; !(Z = Y.next()).done; ) {
12720
- var L = Z.value;
12721
- if (L && !P(L[1]))
12720
+ var A = Z.value;
12721
+ if (A && !P(A[1]))
12722
12722
  return !1;
12723
12723
  }
12724
12724
  } else
@@ -12728,37 +12728,37 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
12728
12728
  return !1;
12729
12729
  }
12730
12730
  }
12731
- function R(M, I) {
12732
- return M === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
12731
+ function R(M, S) {
12732
+ return M === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
12733
12733
  }
12734
12734
  function H(M) {
12735
- var I = typeof M;
12736
- return Array.isArray(M) ? "array" : M instanceof RegExp ? "object" : R(I, M) ? "symbol" : I;
12735
+ var S = typeof M;
12736
+ return Array.isArray(M) ? "array" : M instanceof RegExp ? "object" : R(S, M) ? "symbol" : S;
12737
12737
  }
12738
12738
  function W(M) {
12739
12739
  if (typeof M > "u" || M === null)
12740
12740
  return "" + M;
12741
- var I = H(M);
12742
- if (I === "object") {
12741
+ var S = H(M);
12742
+ if (S === "object") {
12743
12743
  if (M instanceof Date)
12744
12744
  return "date";
12745
12745
  if (M instanceof RegExp)
12746
12746
  return "regexp";
12747
12747
  }
12748
- return I;
12748
+ return S;
12749
12749
  }
12750
12750
  function $(M) {
12751
- var I = W(M);
12752
- switch (I) {
12751
+ var S = W(M);
12752
+ switch (S) {
12753
12753
  case "array":
12754
12754
  case "object":
12755
- return "an " + I;
12755
+ return "an " + S;
12756
12756
  case "boolean":
12757
12757
  case "date":
12758
12758
  case "regexp":
12759
- return "a " + I;
12759
+ return "a " + S;
12760
12760
  default:
12761
- return I;
12761
+ return S;
12762
12762
  }
12763
12763
  }
12764
12764
  function K(M) {
@@ -12941,11 +12941,11 @@ function $w() {
12941
12941
  }
12942
12942
  }
12943
12943
  }
12944
- var w = i, _ = s, O = e, S = c, T = n, N = y, j = u, A = t, P = o, R = r, H = l, W = d, $ = !1, K = !1;
12944
+ var w = i, _ = s, O = e, I = c, T = n, N = y, j = u, L = t, P = o, R = r, H = l, W = d, $ = !1, K = !1;
12945
12945
  function M(q) {
12946
12946
  return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
12947
12947
  }
12948
- function I(q) {
12948
+ function S(q) {
12949
12949
  return K || (K = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
12950
12950
  }
12951
12951
  function Y(q) {
@@ -12954,7 +12954,7 @@ function $w() {
12954
12954
  function Z(q) {
12955
12955
  return m(q) === s;
12956
12956
  }
12957
- function L(q) {
12957
+ function A(q) {
12958
12958
  return typeof q == "object" && q !== null && q.$$typeof === e;
12959
12959
  }
12960
12960
  function B(q) {
@@ -12984,7 +12984,7 @@ function $w() {
12984
12984
  function re(q) {
12985
12985
  return m(q) === d;
12986
12986
  }
12987
- Fe.ContextConsumer = w, Fe.ContextProvider = _, Fe.Element = O, Fe.ForwardRef = S, Fe.Fragment = T, Fe.Lazy = N, Fe.Memo = j, Fe.Portal = A, Fe.Profiler = P, Fe.StrictMode = R, Fe.Suspense = H, Fe.SuspenseList = W, Fe.isAsyncMode = M, Fe.isConcurrentMode = I, Fe.isContextConsumer = Y, Fe.isContextProvider = Z, Fe.isElement = L, Fe.isForwardRef = B, Fe.isFragment = D, Fe.isLazy = F, Fe.isMemo = z, Fe.isPortal = Q, Fe.isProfiler = G, Fe.isStrictMode = ae, Fe.isSuspense = X, Fe.isSuspenseList = re, Fe.isValidElementType = k, Fe.typeOf = m;
12987
+ Fe.ContextConsumer = w, Fe.ContextProvider = _, Fe.Element = O, Fe.ForwardRef = I, Fe.Fragment = T, Fe.Lazy = N, Fe.Memo = j, Fe.Portal = L, Fe.Profiler = P, Fe.StrictMode = R, Fe.Suspense = H, Fe.SuspenseList = W, Fe.isAsyncMode = M, Fe.isConcurrentMode = S, Fe.isContextConsumer = Y, Fe.isContextProvider = Z, Fe.isElement = A, Fe.isForwardRef = B, Fe.isFragment = D, Fe.isLazy = F, Fe.isMemo = z, Fe.isPortal = Q, Fe.isProfiler = G, Fe.isStrictMode = ae, Fe.isSuspense = X, Fe.isSuspenseList = re, Fe.isValidElementType = k, Fe.typeOf = m;
12988
12988
  })()), Fe;
12989
12989
  }
12990
12990
  var dl;
@@ -13014,7 +13014,7 @@ const pl = (e) => typeof e == "object" && e != null && e.nodeType === 1, hl = (e
13014
13014
  }, Kw = (e, t) => {
13015
13015
  var n, r, o, s;
13016
13016
  if (typeof document > "u") return [];
13017
- const { inline: i, boundary: a, skipOverflowHiddenElements: c } = t, l = typeof a == "function" ? a : (A) => A !== a;
13017
+ const { inline: i, boundary: a, skipOverflowHiddenElements: c } = t, l = typeof a == "function" ? a : (L) => L !== a;
13018
13018
  if (!pl(e)) throw new TypeError("Invalid target");
13019
13019
  const d = document.scrollingElement || document.documentElement, u = [];
13020
13020
  let y = e;
@@ -13025,21 +13025,21 @@ const pl = (e) => typeof e == "object" && e != null && e.nodeType === 1, hl = (e
13025
13025
  }
13026
13026
  y != null && y === document.body && go(y) && !go(document.documentElement) || y != null && go(y, c) && u.push(y);
13027
13027
  }
13028
- const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: b, scrollY: p } = window, { height: E, width: g, top: x, right: k, bottom: m, left: w } = e.getBoundingClientRect(), { top: _, right: O, left: S } = ((A) => {
13029
- const P = window.getComputedStyle(A);
13028
+ const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, v = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: b, scrollY: p } = window, { height: E, width: g, top: x, right: k, bottom: m, left: w } = e.getBoundingClientRect(), { top: _, right: O, left: I } = ((L) => {
13029
+ const P = window.getComputedStyle(L);
13030
13030
  return { top: parseFloat(P.scrollMarginTop) || 0, right: parseFloat(P.scrollMarginRight) || 0, bottom: parseFloat(P.scrollMarginBottom) || 0, left: parseFloat(P.scrollMarginLeft) || 0 };
13031
13031
  })(e);
13032
- let T = x - _, N = i === "center" ? w + g / 2 - S + O : i === "end" ? k + O : w - S;
13032
+ let T = x - _, N = i === "center" ? w + g / 2 - I + O : i === "end" ? k + O : w - I;
13033
13033
  const j = [];
13034
- for (let A = 0; A < u.length; A++) {
13035
- const P = u[A], { height: R, width: H, top: W, right: $, bottom: K, left: M } = P.getBoundingClientRect();
13034
+ for (let L = 0; L < u.length; L++) {
13035
+ const P = u[L], { height: R, width: H, top: W, right: $, bottom: K, left: M } = P.getBoundingClientRect();
13036
13036
  if (x >= 0 && w >= 0 && m <= v && k <= h && (P === d && !go(P) || x >= W && m <= K && w >= M && k <= $)) return j;
13037
- const I = getComputedStyle(P), Y = parseInt(I.borderLeftWidth, 10), Z = parseInt(I.borderTopWidth, 10), L = parseInt(I.borderRightWidth, 10), B = parseInt(I.borderBottomWidth, 10);
13037
+ const S = getComputedStyle(P), Y = parseInt(S.borderLeftWidth, 10), Z = parseInt(S.borderTopWidth, 10), A = parseInt(S.borderRightWidth, 10), B = parseInt(S.borderBottomWidth, 10);
13038
13038
  let D = 0, F = 0;
13039
- const z = "offsetWidth" in P ? P.offsetWidth - P.clientWidth - Y - L : 0, Q = "offsetHeight" in P ? P.offsetHeight - P.clientHeight - Z - B : 0, G = "offsetWidth" in P ? P.offsetWidth === 0 ? 0 : H / P.offsetWidth : 0, ae = "offsetHeight" in P ? P.offsetHeight === 0 ? 0 : R / P.offsetHeight : 0;
13040
- if (d === P) D = yo(p, p + v, v, Z, B, p + T, p + T + E, E), F = i === "start" ? N : i === "center" ? N - h / 2 : i === "end" ? N - h : yo(b, b + h, h, Y, L, b + N, b + N + g, g), D = Math.max(0, D + p), F = Math.max(0, F + b);
13039
+ const z = "offsetWidth" in P ? P.offsetWidth - P.clientWidth - Y - A : 0, Q = "offsetHeight" in P ? P.offsetHeight - P.clientHeight - Z - B : 0, G = "offsetWidth" in P ? P.offsetWidth === 0 ? 0 : H / P.offsetWidth : 0, ae = "offsetHeight" in P ? P.offsetHeight === 0 ? 0 : R / P.offsetHeight : 0;
13040
+ if (d === P) D = yo(p, p + v, v, Z, B, p + T, p + T + E, E), F = i === "start" ? N : i === "center" ? N - h / 2 : i === "end" ? N - h : yo(b, b + h, h, Y, A, b + N, b + N + g, g), D = Math.max(0, D + p), F = Math.max(0, F + b);
13041
13041
  else {
13042
- D = yo(W, K, R, Z, B + Q, T, T + E, E), F = i === "start" ? N - M - Y : i === "center" ? N - (M + H / 2) + z / 2 : i === "end" ? N - $ + L + z : yo(M, $, H, Y, L + z, N, N + g, g);
13042
+ D = yo(W, K, R, Z, B + Q, T, T + E, E), F = i === "start" ? N - M - Y : i === "center" ? N - (M + H / 2) + z / 2 : i === "end" ? N - $ + A + z : yo(M, $, H, Y, A + z, N, N + g, g);
13043
13043
  const { scrollLeft: X, scrollTop: re } = P;
13044
13044
  D = ae === 0 ? 0 : Math.max(0, Math.min(re + D / ae, P.scrollHeight - R / ae + Q)), F = G === 0 ? 0 : Math.max(0, Math.min(X + F / G, P.scrollWidth - H / G + z)), T += re - D, N += X - F;
13045
13045
  }
@@ -13299,12 +13299,12 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13299
13299
  }, s.internalSetState = function(g, x) {
13300
13300
  var k, m, w = {}, _ = typeof g == "function";
13301
13301
  return !_ && g.hasOwnProperty("inputValue") && s.props.onInputValueChange(g.inputValue, be({}, s.getStateAndHelpers(), g)), s.setState(function(O) {
13302
- var S;
13302
+ var I;
13303
13303
  O = s.getState(O);
13304
13304
  var T = _ ? g(O) : g;
13305
13305
  T = s.props.stateReducer(O, T), k = T.hasOwnProperty("selectedItem");
13306
13306
  var N = {};
13307
- return k && T.selectedItem !== O.selectedItem && (m = T.selectedItem), (S = T).type || (S.type = lp), Object.keys(T).forEach(function(j) {
13307
+ return k && T.selectedItem !== O.selectedItem && (m = T.selectedItem), (I = T).type || (I.type = lp), Object.keys(T).forEach(function(j) {
13308
13308
  O[j] !== T[j] && (w[j] = T[j]), j !== "type" && (T[j], oi(s.props, j) || (N[j] = T[j]));
13309
13309
  }), _ && T.hasOwnProperty("inputValue") && s.props.onInputValueChange(T.inputValue, be({}, s.getStateAndHelpers(), T)), N;
13310
13310
  }, function() {
@@ -13315,10 +13315,10 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13315
13315
  }, s.rootRef = function(g) {
13316
13316
  return s._rootNode = g;
13317
13317
  }, s.getRootProps = function(g, x) {
13318
- var k, m = g === void 0 ? {} : g, w = m.refKey, _ = w === void 0 ? "ref" : w, O = m.ref, S = jt(m, n2), T = x === void 0 ? {} : x, N = T.suppressRefError, j = N === void 0 ? !1 : N;
13318
+ var k, m = g === void 0 ? {} : g, w = m.refKey, _ = w === void 0 ? "ref" : w, O = m.ref, I = jt(m, n2), T = x === void 0 ? {} : x, N = T.suppressRefError, j = N === void 0 ? !1 : N;
13319
13319
  s.getRootProps.called = !0, s.getRootProps.refKey = _, s.getRootProps.suppressRefError = j;
13320
- var A = s.getState(), P = A.isOpen;
13321
- return be((k = {}, k[_] = dn(O, s.rootRef), k.role = "combobox", k["aria-expanded"] = P, k["aria-haspopup"] = "listbox", k["aria-owns"] = P ? s.menuId : void 0, k["aria-labelledby"] = s.labelId, k), S);
13320
+ var L = s.getState(), P = L.isOpen;
13321
+ return be((k = {}, k[_] = dn(O, s.rootRef), k.role = "combobox", k["aria-expanded"] = P, k["aria-haspopup"] = "listbox", k["aria-owns"] = P ? s.menuId : void 0, k["aria-labelledby"] = s.labelId, k), I);
13322
13322
  }, s.keyDownHandlers = {
13323
13323
  ArrowDown: function(x) {
13324
13324
  var k = this;
@@ -13334,10 +13334,10 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13334
13334
  }, function() {
13335
13335
  var w = k.getItemCount();
13336
13336
  if (w > 0) {
13337
- var _ = k.getState(), O = _.highlightedIndex, S = Sn(O, 1, {
13337
+ var _ = k.getState(), O = _.highlightedIndex, I = Sn(O, 1, {
13338
13338
  length: w
13339
13339
  }, k.isItemDisabled, !0);
13340
- k.setHighlightedIndex(S, {
13340
+ k.setHighlightedIndex(I, {
13341
13341
  type: _o
13342
13342
  });
13343
13343
  }
@@ -13357,10 +13357,10 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13357
13357
  }, function() {
13358
13358
  var w = k.getItemCount();
13359
13359
  if (w > 0) {
13360
- var _ = k.getState(), O = _.highlightedIndex, S = Sn(O, -1, {
13360
+ var _ = k.getState(), O = _.highlightedIndex, I = Sn(O, -1, {
13361
13361
  length: w
13362
13362
  }, k.isItemDisabled, !0);
13363
- k.setHighlightedIndex(S, {
13363
+ k.setHighlightedIndex(I, {
13364
13364
  type: Oo
13365
13365
  });
13366
13366
  }
@@ -13428,7 +13428,7 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13428
13428
  }), s.getToggleButtonProps = function(g) {
13429
13429
  var x = g === void 0 ? {} : g, k = x.onClick;
13430
13430
  x.onPress;
13431
- var m = x.onKeyDown, w = x.onKeyUp, _ = x.onBlur, O = jt(x, r2), S = s.getState(), T = S.isOpen, N = {
13431
+ var m = x.onKeyDown, w = x.onKeyUp, _ = x.onBlur, O = jt(x, r2), I = s.getState(), T = I.isOpen, N = {
13432
13432
  onClick: Ge(k, s.buttonHandleClick),
13433
13433
  onKeyDown: Ge(m, s.buttonHandleKeyDown),
13434
13434
  onKeyUp: Ge(w, s.buttonHandleKeyUp),
@@ -13476,17 +13476,17 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13476
13476
  }, s.getInputProps = function(g) {
13477
13477
  var x = g === void 0 ? {} : g, k = x.onKeyDown, m = x.onBlur, w = x.onChange, _ = x.onInput;
13478
13478
  x.onChangeText;
13479
- var O = jt(x, o2), S, T = {};
13480
- S = "onChange";
13481
- var N = s.getState(), j = N.inputValue, A = N.isOpen, P = N.highlightedIndex;
13479
+ var O = jt(x, o2), I, T = {};
13480
+ I = "onChange";
13481
+ var N = s.getState(), j = N.inputValue, L = N.isOpen, P = N.highlightedIndex;
13482
13482
  if (!O.disabled) {
13483
13483
  var R;
13484
- T = (R = {}, R[S] = Ge(w, _, s.inputHandleChange), R.onKeyDown = Ge(k, s.inputHandleKeyDown), R.onBlur = Ge(m, s.inputHandleBlur), R);
13484
+ T = (R = {}, R[I] = Ge(w, _, s.inputHandleChange), R.onKeyDown = Ge(k, s.inputHandleKeyDown), R.onBlur = Ge(m, s.inputHandleBlur), R);
13485
13485
  }
13486
13486
  return be({
13487
13487
  "aria-autocomplete": "list",
13488
- "aria-activedescendant": A && typeof P == "number" && P >= 0 ? s.getItemId(P) : void 0,
13489
- "aria-controls": A ? s.menuId : void 0,
13488
+ "aria-activedescendant": L && typeof P == "number" && P >= 0 ? s.getItemId(P) : void 0,
13489
+ "aria-controls": L ? s.menuId : void 0,
13490
13490
  "aria-labelledby": O && O["aria-label"] ? void 0 : s.labelId,
13491
13491
  // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
13492
13492
  // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
@@ -13517,17 +13517,17 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13517
13517
  }, s.menuRef = function(g) {
13518
13518
  s._menuNode = g;
13519
13519
  }, s.getMenuProps = function(g, x) {
13520
- var k, m = g === void 0 ? {} : g, w = m.refKey, _ = w === void 0 ? "ref" : w, O = m.ref, S = jt(m, s2), T = x === void 0 ? {} : x, N = T.suppressRefError, j = N === void 0 ? !1 : N;
13521
- return s.getMenuProps.called = !0, s.getMenuProps.refKey = _, s.getMenuProps.suppressRefError = j, be((k = {}, k[_] = dn(O, s.menuRef), k.role = "listbox", k["aria-labelledby"] = S && S["aria-label"] ? void 0 : s.labelId, k.id = s.menuId, k), S);
13520
+ var k, m = g === void 0 ? {} : g, w = m.refKey, _ = w === void 0 ? "ref" : w, O = m.ref, I = jt(m, s2), T = x === void 0 ? {} : x, N = T.suppressRefError, j = N === void 0 ? !1 : N;
13521
+ return s.getMenuProps.called = !0, s.getMenuProps.refKey = _, s.getMenuProps.suppressRefError = j, be((k = {}, k[_] = dn(O, s.menuRef), k.role = "listbox", k["aria-labelledby"] = I && I["aria-label"] ? void 0 : s.labelId, k.id = s.menuId, k), I);
13522
13522
  }, s.getItemProps = function(g) {
13523
13523
  var x, k = g === void 0 ? {} : g, m = k.onMouseMove, w = k.onMouseDown, _ = k.onClick;
13524
13524
  k.onPress;
13525
- var O = k.index, S = k.item, T = S === void 0 ? process.env.NODE_ENV === "production" ? (
13525
+ var O = k.index, I = k.item, T = I === void 0 ? process.env.NODE_ENV === "production" ? (
13526
13526
  /* istanbul ignore next */
13527
13527
  void 0
13528
- ) : Jw("getItemProps", "item") : S, N = jt(k, i2);
13528
+ ) : Jw("getItemProps", "item") : I, N = jt(k, i2);
13529
13529
  O === void 0 ? (s.items.push(T), O = s.items.indexOf(T)) : s.items[O] = T;
13530
- var j = "onClick", A = _, P = (x = {
13530
+ var j = "onClick", L = _, P = (x = {
13531
13531
  // onMouseMove is used over onMouseEnter here. onMouseMove
13532
13532
  // is only triggered on actual mouse movement while onMouseEnter
13533
13533
  // can fire on DOM changes, interrupting keyboard navigation
@@ -13541,7 +13541,7 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13541
13541
  onMouseDown: Ge(w, function(H) {
13542
13542
  H.preventDefault();
13543
13543
  })
13544
- }, x[j] = Ge(A, function() {
13544
+ }, x[j] = Ge(L, function() {
13545
13545
  s.selectItemAtIndex(O, {
13546
13546
  type: gp
13547
13547
  });
@@ -13631,7 +13631,7 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13631
13631
  this.setHighlightedIndex(d, i);
13632
13632
  }
13633
13633
  }, r.getStateAndHelpers = function() {
13634
- var s = this.getState(), i = s.highlightedIndex, a = s.inputValue, c = s.selectedItem, l = s.isOpen, d = this.props.itemToString, u = this.id, y = this.getRootProps, h = this.getToggleButtonProps, v = this.getLabelProps, b = this.getMenuProps, p = this.getInputProps, E = this.getItemProps, g = this.openMenu, x = this.closeMenu, k = this.toggleMenu, m = this.selectItem, w = this.selectItemAtIndex, _ = this.selectHighlightedItem, O = this.setHighlightedIndex, S = this.clearSelection, T = this.clearItems, N = this.reset, j = this.setItemCount, A = this.unsetItemCount, P = this.internalSetState;
13634
+ var s = this.getState(), i = s.highlightedIndex, a = s.inputValue, c = s.selectedItem, l = s.isOpen, d = this.props.itemToString, u = this.id, y = this.getRootProps, h = this.getToggleButtonProps, v = this.getLabelProps, b = this.getMenuProps, p = this.getInputProps, E = this.getItemProps, g = this.openMenu, x = this.closeMenu, k = this.toggleMenu, m = this.selectItem, w = this.selectItemAtIndex, _ = this.selectHighlightedItem, O = this.setHighlightedIndex, I = this.clearSelection, T = this.clearItems, N = this.reset, j = this.setItemCount, L = this.unsetItemCount, P = this.internalSetState;
13635
13635
  return {
13636
13636
  // prop getters
13637
13637
  getRootProps: y,
@@ -13649,10 +13649,10 @@ var n2 = ["refKey", "ref"], r2 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
13649
13649
  selectItemAtIndex: w,
13650
13650
  selectHighlightedItem: _,
13651
13651
  setHighlightedIndex: O,
13652
- clearSelection: S,
13652
+ clearSelection: I,
13653
13653
  clearItems: T,
13654
13654
  setItemCount: j,
13655
- unsetItemCount: A,
13655
+ unsetItemCount: L,
13656
13656
  setState: P,
13657
13657
  // props
13658
13658
  itemToString: d,
@@ -14351,8 +14351,8 @@ function ht(e) {
14351
14351
  var t = be({}, I2, e), n = t.items, r = t.scrollIntoView, o = t.environment, s = t.getA11yStatusMessage, i = S2(M2, t, O2, b2), a = i[0], c = i[1], l = a.isOpen, d = a.highlightedIndex, u = a.selectedItem, y = a.inputValue, h = $e(null), v = $e({}), b = $e(null), p = $e(null), E = Kr(), g = k2(t), x = $e(), k = ra({
14352
14352
  state: a,
14353
14353
  props: t
14354
- }), m = Me(function(L) {
14355
- return v.current[g.getItemId(L)];
14354
+ }), m = Me(function(A) {
14355
+ return v.current[g.getItemId(A)];
14356
14356
  }, [g]);
14357
14357
  Dp(s, a, [l, d, u, y], o);
14358
14358
  var w = y2({
@@ -14367,8 +14367,8 @@ function ht(e) {
14367
14367
  props: t,
14368
14368
  state: a
14369
14369
  }), ut(function() {
14370
- var L = qn(t, "isOpen", Pt);
14371
- L && b.current && b.current.focus();
14370
+ var A = qn(t, "isOpen", Pt);
14371
+ A && b.current && b.current.focus();
14372
14372
  }, []), ut(function() {
14373
14373
  E || (x.current = n.length);
14374
14374
  });
@@ -14378,12 +14378,12 @@ function ht(e) {
14378
14378
  });
14379
14379
  }, [c, k]), O = dt(function() {
14380
14380
  return [h, p, b];
14381
- }, []), S = g2(o, _, O), T = ia("getInputProps", "getMenuProps");
14381
+ }, []), I = g2(o, _, O), T = ia("getInputProps", "getMenuProps");
14382
14382
  ut(function() {
14383
14383
  l || (v.current = {});
14384
14384
  }, [l]), ut(function() {
14385
- var L;
14386
- !l || !(o != null && o.document) || !(b != null && (L = b.current) != null && L.focus) || o.document.activeElement !== b.current && b.current.focus();
14385
+ var A;
14386
+ !l || !(o != null && o.document) || !(b != null && (A = b.current) != null && A.focus) || o.document.activeElement !== b.current && b.current.focus();
14387
14387
  }, [l, o]);
14388
14388
  var N = dt(function() {
14389
14389
  return {
@@ -14432,13 +14432,13 @@ function ht(e) {
14432
14432
  }));
14433
14433
  }
14434
14434
  };
14435
- }, [c, k]), j = Me(function(L) {
14435
+ }, [c, k]), j = Me(function(A) {
14436
14436
  return be({
14437
14437
  id: g.labelId,
14438
14438
  htmlFor: g.inputId
14439
- }, L);
14440
- }, [g]), A = Me(function(L, B) {
14441
- var D, F = L === void 0 ? {} : L, z = F.onMouseLeave, Q = F.refKey, G = Q === void 0 ? "ref" : Q, ae = F.ref, X = jt(F, T2), re = B === void 0 ? {} : B, q = re.suppressRefError, de = q === void 0 ? !1 : q;
14439
+ }, A);
14440
+ }, [g]), L = Me(function(A, B) {
14441
+ var D, F = A === void 0 ? {} : A, z = F.onMouseLeave, Q = F.refKey, G = Q === void 0 ? "ref" : Q, ae = F.ref, X = jt(F, T2), re = B === void 0 ? {} : B, q = re.suppressRefError, de = q === void 0 ? !1 : q;
14442
14442
  return T("getMenuProps", de, G, h), be((D = {}, D[G] = dn(ae, function(ye) {
14443
14443
  h.current = ye;
14444
14444
  }), D.id = g.menuId, D.role = "listbox", D["aria-labelledby"] = X && X["aria-label"] ? void 0 : "" + g.labelId, D.onMouseLeave = Ge(z, function() {
@@ -14446,13 +14446,13 @@ function ht(e) {
14446
14446
  type: jp
14447
14447
  });
14448
14448
  }), D), X);
14449
- }, [c, T, g]), P = Me(function(L) {
14450
- var B, D, F = L === void 0 ? {} : L, z = F.item, Q = F.index, G = F.refKey, ae = G === void 0 ? "ref" : G, X = F.ref, re = F.onMouseMove, q = F.onMouseDown, de = F.onClick;
14449
+ }, [c, T, g]), P = Me(function(A) {
14450
+ var B, D, F = A === void 0 ? {} : A, z = F.item, Q = F.index, G = F.refKey, ae = G === void 0 ? "ref" : G, X = F.ref, re = F.onMouseMove, q = F.onMouseDown, de = F.onClick;
14451
14451
  F.onPress;
14452
14452
  var ye = F.disabled, se = jt(F, R2);
14453
14453
  ye !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
14454
14454
  var oe = k.current, J = oe.props, ee = oe.state, V = Pp(z, Q, J.items, "Pass either item or index to getItemProps!"), te = V[0], ce = V[1], me = J.isItemDisabled(te, ce), Ue = "onClick", et = de, ze = function() {
14455
- S.isTouchEnd || ce === ee.highlightedIndex || (w.current = !1, c({
14455
+ I.isTouchEnd || ce === ee.highlightedIndex || (w.current = !1, c({
14456
14456
  type: Lp,
14457
14457
  index: ce,
14458
14458
  disabled: me
@@ -14471,8 +14471,8 @@ function ht(e) {
14471
14471
  onMouseMove: Ge(re, ze),
14472
14472
  onMouseDown: Ge(q, Se)
14473
14473
  }, se);
14474
- }, [c, g, k, S, w]), R = Me(function(L) {
14475
- var B, D = L === void 0 ? {} : L, F = D.onClick;
14474
+ }, [c, g, k, I, w]), R = Me(function(A) {
14475
+ var B, D = A === void 0 ? {} : A, F = D.onClick;
14476
14476
  D.onPress;
14477
14477
  var z = D.refKey, Q = z === void 0 ? "ref" : z, G = D.ref, ae = jt(D, P2), X = k.current.state, re = function() {
14478
14478
  c({
@@ -14484,8 +14484,8 @@ function ht(e) {
14484
14484
  }), B["aria-controls"] = g.menuId, B["aria-expanded"] = X.isOpen, B.id = g.toggleButtonId, B.tabIndex = -1, B), !ae.disabled && be({}, {
14485
14485
  onClick: Ge(F, re)
14486
14486
  }), ae);
14487
- }, [c, k, g]), H = Me(function(L, B) {
14488
- var D, F = L === void 0 ? {} : L, z = F.onKeyDown, Q = F.onChange, G = F.onInput, ae = F.onBlur;
14487
+ }, [c, k, g]), H = Me(function(A, B) {
14488
+ var D, F = A === void 0 ? {} : A, z = F.onKeyDown, Q = F.onChange, G = F.onInput, ae = F.onBlur;
14489
14489
  F.onChangeText;
14490
14490
  var X = F.onClick, re = F.refKey, q = re === void 0 ? "ref" : re, de = F.ref, ye = jt(F, D2), se = B === void 0 ? {} : B, oe = se.suppressRefError, J = oe === void 0 ? !1 : oe;
14491
14491
  T("getInputProps", J, q, b);
@@ -14498,7 +14498,7 @@ function ht(e) {
14498
14498
  inputValue: Se.target.value
14499
14499
  });
14500
14500
  }, ce = function(Se) {
14501
- if (o != null && o.document && ee.isOpen && !S.isMouseDown) {
14501
+ if (o != null && o.document && ee.isOpen && !I.isMouseDown) {
14502
14502
  var Ce = Se.relatedTarget === null && o.document.activeElement !== o.document.body;
14503
14503
  c({
14504
14504
  type: Ho,
@@ -14517,7 +14517,7 @@ function ht(e) {
14517
14517
  return be((D = {}, D[q] = dn(de, function(Ke) {
14518
14518
  b.current = Ke;
14519
14519
  }), D["aria-activedescendant"] = ee.isOpen && ee.highlightedIndex > -1 ? g.getItemId(ee.highlightedIndex) : "", D["aria-autocomplete"] = "list", D["aria-controls"] = g.menuId, D["aria-expanded"] = ee.isOpen, D["aria-labelledby"] = ye && ye["aria-label"] ? void 0 : g.labelId, D.autoComplete = "off", D.id = g.inputId, D.role = "combobox", D.value = ee.inputValue, D), et, ye);
14520
- }, [c, g, o, N, k, S, T]), W = Me(function() {
14520
+ }, [c, g, o, N, k, I, T]), W = Me(function() {
14521
14521
  c({
14522
14522
  type: Wp
14523
14523
  });
@@ -14529,20 +14529,20 @@ function ht(e) {
14529
14529
  c({
14530
14530
  type: Vp
14531
14531
  });
14532
- }, [c]), M = Me(function(L) {
14532
+ }, [c]), M = Me(function(A) {
14533
14533
  c({
14534
14534
  type: Hp,
14535
- highlightedIndex: L
14535
+ highlightedIndex: A
14536
14536
  });
14537
- }, [c]), I = Me(function(L) {
14537
+ }, [c]), S = Me(function(A) {
14538
14538
  c({
14539
14539
  type: va,
14540
- selectedItem: L
14540
+ selectedItem: A
14541
14541
  });
14542
- }, [c]), Y = Me(function(L) {
14542
+ }, [c]), Y = Me(function(A) {
14543
14543
  c({
14544
14544
  type: Bp,
14545
- inputValue: L
14545
+ inputValue: A
14546
14546
  });
14547
14547
  }, [c]), Z = Me(function() {
14548
14548
  c({
@@ -14553,7 +14553,7 @@ function ht(e) {
14553
14553
  // prop getters.
14554
14554
  getItemProps: P,
14555
14555
  getLabelProps: j,
14556
- getMenuProps: A,
14556
+ getMenuProps: L,
14557
14557
  getInputProps: H,
14558
14558
  getToggleButtonProps: R,
14559
14559
  // actions.
@@ -14562,7 +14562,7 @@ function ht(e) {
14562
14562
  closeMenu: $,
14563
14563
  setHighlightedIndex: M,
14564
14564
  setInputValue: Y,
14565
- selectItem: I,
14565
+ selectItem: S,
14566
14566
  reset: Z,
14567
14567
  // state.
14568
14568
  highlightedIndex: d,
@@ -14745,37 +14745,37 @@ function Cn(e) {
14745
14745
  state: a
14746
14746
  });
14747
14747
  var b = ia("getDropdownProps"), p = dt(function() {
14748
- var S;
14749
- return S = {}, S[s] = function() {
14748
+ var I;
14749
+ return I = {}, I[s] = function() {
14750
14750
  c({
14751
14751
  type: Oa
14752
14752
  });
14753
- }, S[o] = function() {
14753
+ }, I[o] = function() {
14754
14754
  c({
14755
14755
  type: Ca
14756
14756
  });
14757
- }, S.Delete = function() {
14757
+ }, I.Delete = function() {
14758
14758
  c({
14759
14759
  type: ka
14760
14760
  });
14761
- }, S.Backspace = function() {
14761
+ }, I.Backspace = function() {
14762
14762
  c({
14763
14763
  type: Ea
14764
14764
  });
14765
- }, S;
14765
+ }, I;
14766
14766
  }, [c, o, s]), E = dt(function() {
14767
- var S;
14768
- return S = {}, S[s] = function(T) {
14767
+ var I;
14768
+ return I = {}, I[s] = function(T) {
14769
14769
  El(T) && c({
14770
14770
  type: _a
14771
14771
  });
14772
- }, S.Backspace = function(N) {
14772
+ }, I.Backspace = function(N) {
14773
14773
  El(N) && c({
14774
14774
  type: Sa
14775
14775
  });
14776
- }, S;
14777
- }, [c, s]), g = Me(function(S) {
14778
- var T, N = S === void 0 ? {} : S, j = N.refKey, A = j === void 0 ? "ref" : j, P = N.ref, R = N.onClick, H = N.onKeyDown, W = N.selectedItem, $ = N.index, K = jt(N, F2), M = v.current.state, I = Pp(W, $, M.selectedItems, "Pass either item or index to getSelectedItemProps!"), Y = I[1], Z = Y > -1 && Y === M.activeIndex, L = function() {
14776
+ }, I;
14777
+ }, [c, s]), g = Me(function(I) {
14778
+ var T, N = I === void 0 ? {} : I, j = N.refKey, L = j === void 0 ? "ref" : j, P = N.ref, R = N.onClick, H = N.onKeyDown, W = N.selectedItem, $ = N.index, K = jt(N, F2), M = v.current.state, S = Pp(W, $, M.selectedItems, "Pass either item or index to getSelectedItemProps!"), Y = S[1], Z = Y > -1 && Y === M.activeIndex, A = function() {
14779
14779
  c({
14780
14780
  type: xa,
14781
14781
  index: Y
@@ -14784,13 +14784,13 @@ function Cn(e) {
14784
14784
  var z = Fr(F);
14785
14785
  z && p[z] && p[z](F);
14786
14786
  };
14787
- return be((T = {}, T[A] = dn(P, function(D) {
14787
+ return be((T = {}, T[L] = dn(P, function(D) {
14788
14788
  D && h.current.push(D);
14789
- }), T.tabIndex = Z ? 0 : -1, T.onClick = Ge(R, L), T.onKeyDown = Ge(H, B), T), K);
14790
- }, [c, v, p]), x = Me(function(S, T) {
14791
- var N, j = S === void 0 ? {} : S, A = j.refKey, P = A === void 0 ? "ref" : A, R = j.ref, H = j.onKeyDown, W = j.onClick, $ = j.preventKeyAction, K = $ === void 0 ? !1 : $, M = jt(j, H2), I = T === void 0 ? {} : T, Y = I.suppressRefError, Z = Y === void 0 ? !1 : Y;
14789
+ }), T.tabIndex = Z ? 0 : -1, T.onClick = Ge(R, A), T.onKeyDown = Ge(H, B), T), K);
14790
+ }, [c, v, p]), x = Me(function(I, T) {
14791
+ var N, j = I === void 0 ? {} : I, L = j.refKey, P = L === void 0 ? "ref" : L, R = j.ref, H = j.onKeyDown, W = j.onClick, $ = j.preventKeyAction, K = $ === void 0 ? !1 : $, M = jt(j, H2), S = T === void 0 ? {} : T, Y = S.suppressRefError, Z = Y === void 0 ? !1 : Y;
14792
14792
  b("getDropdownProps", Z, P, y);
14793
- var L = function(F) {
14793
+ var A = function(F) {
14794
14794
  var z = Fr(F);
14795
14795
  z && E[z] && E[z](F);
14796
14796
  }, B = function() {
@@ -14801,28 +14801,28 @@ function Cn(e) {
14801
14801
  return be((N = {}, N[P] = dn(R, function(D) {
14802
14802
  D && (y.current = D);
14803
14803
  }), N), !K && {
14804
- onKeyDown: Ge(H, L),
14804
+ onKeyDown: Ge(H, A),
14805
14805
  onClick: Ge(W, B)
14806
14806
  }, M);
14807
- }, [c, E, b]), k = Me(function(S) {
14807
+ }, [c, E, b]), k = Me(function(I) {
14808
14808
  c({
14809
14809
  type: Ma,
14810
- selectedItem: S
14810
+ selectedItem: I
14811
14811
  });
14812
- }, [c]), m = Me(function(S) {
14812
+ }, [c]), m = Me(function(I) {
14813
14813
  c({
14814
14814
  type: Ta,
14815
- selectedItem: S
14815
+ selectedItem: I
14816
14816
  });
14817
- }, [c]), w = Me(function(S) {
14817
+ }, [c]), w = Me(function(I) {
14818
14818
  c({
14819
14819
  type: Ra,
14820
- selectedItems: S
14820
+ selectedItems: I
14821
14821
  });
14822
- }, [c]), _ = Me(function(S) {
14822
+ }, [c]), _ = Me(function(I) {
14823
14823
  c({
14824
14824
  type: Pa,
14825
- activeIndex: S
14825
+ activeIndex: I
14826
14826
  });
14827
14827
  }, [c]), O = Me(function() {
14828
14828
  c({
@@ -15054,7 +15054,7 @@ const qp = ({
15054
15054
  isOpen: w,
15055
15055
  getToggleButtonProps: _,
15056
15056
  getMenuProps: O,
15057
- openMenu: S,
15057
+ openMenu: I,
15058
15058
  getInputProps: T,
15059
15059
  highlightedIndex: N,
15060
15060
  getItemProps: j
@@ -15108,7 +15108,7 @@ const qp = ({
15108
15108
  break;
15109
15109
  }
15110
15110
  }
15111
- }), A = qp({
15111
+ }), L = qp({
15112
15112
  isOpen: w,
15113
15113
  triggerRef: E,
15114
15114
  maxHeight: h
@@ -15124,7 +15124,7 @@ const qp = ({
15124
15124
  o && "border-error-contrast text-error-contrast focus-within:border-error stroke-error-contrast",
15125
15125
  a && "bg-background-disabled text-text-disabled"
15126
15126
  ),
15127
- onClick: () => !w && !a && S(),
15127
+ onClick: () => !w && !a && I(),
15128
15128
  children: [
15129
15129
  s ? /* @__PURE__ */ C.jsx("div", { className: "mx-4 size-4 [&>svg]:size-full", children: s }) : /* @__PURE__ */ C.jsx("div", { className: "ml-4" }),
15130
15130
  !w && e.length > 0 && /* @__PURE__ */ C.jsx(
@@ -15186,10 +15186,10 @@ const qp = ({
15186
15186
  v
15187
15187
  ),
15188
15188
  style: {
15189
- top: A.top,
15190
- bottom: A.bottom,
15191
- left: A.left,
15192
- width: A.width,
15189
+ top: L.top,
15190
+ bottom: L.bottom,
15191
+ left: L.left,
15192
+ width: L.width,
15193
15193
  maxHeight: h
15194
15194
  },
15195
15195
  ...O({}, { suppressRefError: !0 }),
@@ -15359,7 +15359,7 @@ const qp = ({
15359
15359
  initialFocusRef: E,
15360
15360
  returnFocusOnClose: g = !0
15361
15361
  }) => {
15362
- const x = $e(null), k = $e(null), [m, w] = Pe({}), [_, O] = Pe({}), S = $e(null), T = Nn(), N = (y ?? `popover-${T}`).replace(/:/g, "-"), j = Me(() => {
15362
+ const x = $e(null), k = $e(null), [m, w] = Pe({}), [_, O] = Pe({}), I = $e(null), T = Nn(), N = (y ?? `popover-${T}`).replace(/:/g, "-"), j = Me(() => {
15363
15363
  if (!n || !x.current || !k.current) return;
15364
15364
  const P = x.current.getBoundingClientRect(), R = k.current.getBoundingClientRect(), { styles: H, axis: W } = G2(
15365
15365
  i,
@@ -15413,9 +15413,9 @@ const qp = ({
15413
15413
  P.forEach((R) => R());
15414
15414
  };
15415
15415
  }, [n, o, s, r]), ut(() => {
15416
- n ? (S.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, h !== "tooltip" && (E?.current ?? k.current)?.focus({ preventScroll: !0 })) : !n && g && (S.current?.focus({ preventScroll: !0 }), S.current = null);
15416
+ n ? (I.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, h !== "tooltip" && (E?.current ?? k.current)?.focus({ preventScroll: !0 })) : !n && g && (I.current?.focus({ preventScroll: !0 }), I.current = null);
15417
15417
  }, [n, E, g, h]);
15418
- const A = /* @__PURE__ */ C.jsxs(
15418
+ const L = /* @__PURE__ */ C.jsxs(
15419
15419
  "div",
15420
15420
  {
15421
15421
  ref: k,
@@ -15458,7 +15458,7 @@ const qp = ({
15458
15458
  children: e
15459
15459
  }
15460
15460
  ),
15461
- n && /* @__PURE__ */ C.jsx(rr, { children: A })
15461
+ n && /* @__PURE__ */ C.jsx(rr, { children: L })
15462
15462
  ] });
15463
15463
  }, Q2 = [
15464
15464
  "string",
@@ -19138,9 +19138,9 @@ function nC(e, t, n, r, o) {
19138
19138
  [Xe.today]: []
19139
19139
  }, k = {};
19140
19140
  for (const m of e) {
19141
- const { date: w, displayMonth: _ } = m, O = !!(_ && !y(w, _)), S = !!(E && v(w, E)), T = !!(g && p(w, g)), N = !!(s && Jt(w, s, o)), j = !!(i && Jt(w, i, o)) || S || T || // Broadcast calendar will show outside days as default
19142
- !l && !c && O || l && c === !1 && O, A = u(w, d);
19143
- O && x.outside.push(m), N && x.disabled.push(m), j && x.hidden.push(m), A && x.today.push(m), a && Object.keys(a).forEach((P) => {
19141
+ const { date: w, displayMonth: _ } = m, O = !!(_ && !y(w, _)), I = !!(E && v(w, E)), T = !!(g && p(w, g)), N = !!(s && Jt(w, s, o)), j = !!(i && Jt(w, i, o)) || I || T || // Broadcast calendar will show outside days as default
19142
+ !l && !c && O || l && c === !1 && O, L = u(w, d);
19143
+ O && x.outside.push(m), N && x.disabled.push(m), j && x.hidden.push(m), L && x.today.push(m), a && Object.keys(a).forEach((P) => {
19144
19144
  const R = a?.[P];
19145
19145
  R && Jt(w, R, o) && (k[P] ? k[P].push(m) : k[P] = [m]);
19146
19146
  });
@@ -19154,11 +19154,11 @@ function nC(e, t, n, r, o) {
19154
19154
  [Xe.today]: !1
19155
19155
  }, _ = {};
19156
19156
  for (const O in x) {
19157
- const S = x[O];
19158
- w[O] = S.some((T) => T === m);
19157
+ const I = x[O];
19158
+ w[O] = I.some((T) => T === m);
19159
19159
  }
19160
19160
  for (const O in k)
19161
- _[O] = k[O].some((S) => S === m);
19161
+ _[O] = k[O].some((I) => I === m);
19162
19162
  return {
19163
19163
  ...w,
19164
19164
  // custom modifiers should override all the previous ones
@@ -19488,8 +19488,8 @@ function MC(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
19488
19488
  c.current = !1, e.current && (e.current.style.isolation = ""), g && (g.style.zIndex = ""), w && w.classList.remove(y), _ && _.classList.remove(h), x.style.position = "", x.style.overflow = "", x.contains(m) && x.removeChild(m);
19489
19489
  };
19490
19490
  m.style.pointerEvents = "none", m.style.position = "absolute", m.style.overflow = "hidden", m.setAttribute("aria-hidden", "true");
19491
- const S = IC(m);
19492
- S && (S.style.opacity = "0");
19491
+ const I = IC(m);
19492
+ I && (I.style.opacity = "0");
19493
19493
  const T = Ds(m);
19494
19494
  T && (T.classList.add(u ? n[vt.caption_before_exit] : n[vt.caption_after_exit]), T.addEventListener("animationend", O));
19495
19495
  const N = Ns(m);
@@ -19499,15 +19499,15 @@ function MC(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
19499
19499
  });
19500
19500
  }
19501
19501
  function TC(e, t, n, r) {
19502
- const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: l, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: y, endOfISOWeek: h, endOfMonth: v, endOfWeek: b, isAfter: p, startOfBroadcastWeek: E, startOfISOWeek: g, startOfWeek: x } = r, k = c ? E(o, r) : i ? g(o) : x(o), m = c ? y(s) : i ? h(v(s)) : b(v(s)), w = t && (c ? y(t) : i ? h(t) : b(t)), _ = w && p(m, w) ? w : m, O = d(_, k), S = u(s, o) + 1, T = [];
19503
- for (let A = 0; A <= O; A++) {
19504
- const P = l(k, A);
19502
+ const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: l, differenceInCalendarDays: d, differenceInCalendarMonths: u, endOfBroadcastWeek: y, endOfISOWeek: h, endOfMonth: v, endOfWeek: b, isAfter: p, startOfBroadcastWeek: E, startOfISOWeek: g, startOfWeek: x } = r, k = c ? E(o, r) : i ? g(o) : x(o), m = c ? y(s) : i ? h(v(s)) : b(v(s)), w = t && (c ? y(t) : i ? h(t) : b(t)), _ = w && p(m, w) ? w : m, O = d(_, k), I = u(s, o) + 1, T = [];
19503
+ for (let L = 0; L <= O; L++) {
19504
+ const P = l(k, L);
19505
19505
  T.push(P);
19506
19506
  }
19507
- const j = (c ? 35 : 42) * S;
19507
+ const j = (c ? 35 : 42) * I;
19508
19508
  if (a && T.length < j) {
19509
- const A = j - T.length;
19510
- for (let P = 0; P < A; P++) {
19509
+ const L = j - T.length;
19510
+ for (let P = 0; P < L; P++) {
19511
19511
  const R = l(T[T.length - 1], 1);
19512
19512
  T.push(R);
19513
19513
  }
@@ -19546,14 +19546,14 @@ function DC(e, t, n, r) {
19546
19546
  const E = n.broadcastCalendar ? u(p, r) : n.ISOWeek ? y(p) : h(p), g = n.broadcastCalendar ? s(p) : n.ISOWeek ? i(a(p)) : c(a(p)), x = t.filter((_) => _ >= E && _ <= g), k = n.broadcastCalendar ? 35 : 42;
19547
19547
  if (n.fixedWeeks && x.length < k) {
19548
19548
  const _ = t.filter((O) => {
19549
- const S = k - x.length;
19550
- return O > g && O <= o(g, S);
19549
+ const I = k - x.length;
19550
+ return O > g && O <= o(g, I);
19551
19551
  });
19552
19552
  x.push(..._);
19553
19553
  }
19554
19554
  const m = x.reduce((_, O) => {
19555
- const S = n.ISOWeek ? l(O) : d(O), T = _.find((j) => j.weekNumber === S), N = new Oh(O, p, r);
19556
- return T ? T.days.push(N) : _.push(new IE(S, [N])), _;
19555
+ const I = n.ISOWeek ? l(O) : d(O), T = _.find((j) => j.weekNumber === I), N = new Oh(O, p, r);
19556
+ return T ? T.days.push(N) : _.push(new IE(I, [N])), _;
19557
19557
  }, []), w = new SE(p, m);
19558
19558
  return b.push(w), b;
19559
19559
  }, []);
@@ -19615,12 +19615,12 @@ function WC(e, t) {
19615
19615
  fixedWeeks: e.fixedWeeks,
19616
19616
  ISOWeek: e.ISOWeek,
19617
19617
  reverseMonths: e.reverseMonths
19618
- }, t), _ = AC(w), O = RC(w), S = LC(a, n, e, t), T = jC(a, r, e, t);
19618
+ }, t), _ = AC(w), O = RC(w), I = LC(a, n, e, t), T = jC(a, r, e, t);
19619
19619
  return {
19620
19620
  months: w,
19621
19621
  weeks: _,
19622
19622
  days: O,
19623
- previousMonth: S,
19623
+ previousMonth: I,
19624
19624
  nextMonth: T
19625
19625
  };
19626
19626
  }, [
@@ -19900,13 +19900,13 @@ function GC(e) {
19900
19900
  t.classNames
19901
19901
  ]);
19902
19902
  t.today || (t = { ...t, today: i.today() });
19903
- const { captionLayout: l, mode: d, navLayout: u, numberOfMonths: y = 1, onDayBlur: h, onDayClick: v, onDayFocus: b, onDayKeyDown: p, onDayMouseEnter: E, onDayMouseLeave: g, onNextClick: x, onPrevClick: k, showWeekNumber: m, styles: w } = t, { formatCaption: _, formatDay: O, formatMonthDropdown: S, formatWeekNumber: T, formatWeekNumberHeader: N, formatWeekdayName: j, formatYearDropdown: A } = o, P = WC(t, i), { days: R, months: H, navStart: W, navEnd: $, previousMonth: K, nextMonth: M, goToMonth: I } = P, Y = nC(R, t, W, $, i), { isSelected: Z, select: L, selected: B } = UC(t, i) ?? {}, { blur: D, focused: F, isFocusTarget: z, moveFocus: Q, setFocused: G } = HC(t, P, Y, Z ?? (() => !1), i), { labelDayButton: ae, labelGridcell: X, labelGrid: re, labelMonthDropdown: q, labelNav: de, labelPrevious: ye, labelNext: se, labelWeekday: oe, labelWeekNumber: J, labelWeekNumberHeader: ee, labelYearDropdown: V } = s, te = dt(() => EC(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, me = Me(() => {
19904
- K && (I(K), k?.(K));
19905
- }, [K, I, k]), Ue = Me(() => {
19906
- M && (I(M), x?.(M));
19907
- }, [I, M, x]), et = Me((pe, ve) => (fe) => {
19908
- fe.preventDefault(), fe.stopPropagation(), G(pe), !ve.disabled && (L?.(pe.date, ve, fe), v?.(pe.date, ve, fe));
19909
- }, [L, v, G]), ze = Me((pe, ve) => (fe) => {
19903
+ const { captionLayout: l, mode: d, navLayout: u, numberOfMonths: y = 1, onDayBlur: h, onDayClick: v, onDayFocus: b, onDayKeyDown: p, onDayMouseEnter: E, onDayMouseLeave: g, onNextClick: x, onPrevClick: k, showWeekNumber: m, styles: w } = t, { formatCaption: _, formatDay: O, formatMonthDropdown: I, formatWeekNumber: T, formatWeekNumberHeader: N, formatWeekdayName: j, formatYearDropdown: L } = o, P = WC(t, i), { days: R, months: H, navStart: W, navEnd: $, previousMonth: K, nextMonth: M, goToMonth: S } = P, Y = nC(R, t, W, $, i), { isSelected: Z, select: A, selected: B } = UC(t, i) ?? {}, { blur: D, focused: F, isFocusTarget: z, moveFocus: Q, setFocused: G } = HC(t, P, Y, Z ?? (() => !1), i), { labelDayButton: ae, labelGridcell: X, labelGrid: re, labelMonthDropdown: q, labelNav: de, labelPrevious: ye, labelNext: se, labelWeekday: oe, labelWeekNumber: J, labelWeekNumberHeader: ee, labelYearDropdown: V } = s, te = dt(() => EC(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), ce = d !== void 0 || v !== void 0, me = Me(() => {
19904
+ K && (S(K), k?.(K));
19905
+ }, [K, S, k]), Ue = Me(() => {
19906
+ M && (S(M), x?.(M));
19907
+ }, [S, M, x]), et = Me((pe, ve) => (fe) => {
19908
+ fe.preventDefault(), fe.stopPropagation(), G(pe), !ve.disabled && (A?.(pe.date, ve, fe), v?.(pe.date, ve, fe));
19909
+ }, [A, v, G]), ze = Me((pe, ve) => (fe) => {
19910
19910
  G(pe), b?.(pe.date, ve, fe);
19911
19911
  }, [b, G]), Ke = Me((pe, ve) => (fe) => {
19912
19912
  D(), h?.(pe.date, ve, fe);
@@ -19939,11 +19939,11 @@ function GC(e) {
19939
19939
  g?.(pe.date, ve, fe);
19940
19940
  }, [g]), Wt = Me((pe) => (ve) => {
19941
19941
  const fe = Number(ve.target.value), xe = i.setMonth(i.startOfMonth(pe), fe);
19942
- I(xe);
19943
- }, [i, I]), Oe = Me((pe) => (ve) => {
19942
+ S(xe);
19943
+ }, [i, S]), Oe = Me((pe) => (ve) => {
19944
19944
  const fe = Number(ve.target.value), xe = i.setYear(i.startOfMonth(pe), fe);
19945
- I(xe);
19946
- }, [i, I]), { className: De, style: nt } = dt(() => ({
19945
+ S(xe);
19946
+ }, [i, S]), { className: De, style: nt } = dt(() => ({
19947
19947
  className: [c[he.Root], t.className].filter(Boolean).join(" "),
19948
19948
  style: { ...w?.[he.Root], ...t.style }
19949
19949
  }), [c, t.className, t.style, w]), sn = sC(t), Re = $e(null);
@@ -19956,12 +19956,12 @@ function GC(e) {
19956
19956
  const it = {
19957
19957
  dayPickerProps: t,
19958
19958
  selected: B,
19959
- select: L,
19959
+ select: A,
19960
19960
  isSelected: Z,
19961
19961
  months: H,
19962
19962
  nextMonth: M,
19963
19963
  previousMonth: K,
19964
- goToMonth: I,
19964
+ goToMonth: S,
19965
19965
  getModifiers: Y,
19966
19966
  components: r,
19967
19967
  classNames: c,
@@ -19999,7 +19999,7 @@ function GC(e) {
19999
19999
  r.DropdownNav,
20000
20000
  { className: c[he.Dropdowns], style: w?.[he.Dropdowns] },
20001
20001
  (() => {
20002
- const fe = l === "dropdown" || l === "dropdown-months" ? ie.createElement(r.MonthsDropdown, { key: "month", className: c[he.MonthsDropdown], "aria-label": q(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Wt(pe.date), options: xC(pe.date, W, $, o, i), style: w?.[he.Dropdown], value: i.getMonth(pe.date) }) : ie.createElement("span", { key: "month" }, S(pe.date, i)), xe = l === "dropdown" || l === "dropdown-years" ? ie.createElement(r.YearsDropdown, { key: "year", className: c[he.YearsDropdown], "aria-label": V(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Oe(pe.date), options: CC(W, $, o, i, !!t.reverseYears), style: w?.[he.Dropdown], value: i.getYear(pe.date) }) : ie.createElement("span", { key: "year" }, A(pe.date, i));
20002
+ const fe = l === "dropdown" || l === "dropdown-months" ? ie.createElement(r.MonthsDropdown, { key: "month", className: c[he.MonthsDropdown], "aria-label": q(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Wt(pe.date), options: xC(pe.date, W, $, o, i), style: w?.[he.Dropdown], value: i.getMonth(pe.date) }) : ie.createElement("span", { key: "month" }, I(pe.date, i)), xe = l === "dropdown" || l === "dropdown-years" ? ie.createElement(r.YearsDropdown, { key: "year", className: c[he.YearsDropdown], "aria-label": V(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: Oe(pe.date), options: CC(W, $, o, i, !!t.reverseYears), style: w?.[he.Dropdown], value: i.getYear(pe.date) }) : ie.createElement("span", { key: "year" }, L(pe.date, i));
20003
20003
  return i.getMonthYearOrder() === "year-first" ? [xe, fe] : [fe, xe];
20004
20004
  })(),
20005
20005
  ie.createElement("span", { role: "status", "aria-live": "polite", style: {
@@ -20434,19 +20434,19 @@ var Mr = (function(e) {
20434
20434
  var _, O;
20435
20435
  if (p.cachedId === p.id) throw new Mr("The input selection has not been updated.");
20436
20436
  p.cachedId = p.id;
20437
- var S = s.value, T = s.selectionStart, N = s.selectionEnd;
20437
+ var I = s.value, T = s.selectionStart, N = s.selectionEnd;
20438
20438
  if (T === null || N === null) throw new Mr("The selection attributes have not been initialized.");
20439
- var j, A = E.value;
20440
- if (w.inputType === void 0 && (E.selectionStart = 0, E.selectionEnd = A.length), T > E.selectionStart ? j = "insert" : T <= E.selectionStart && T < E.selectionEnd ? j = "deleteBackward" : T === E.selectionEnd && S.length < A.length && (j = "deleteForward"), j === void 0 || (j === "deleteBackward" || j === "deleteForward") && S.length > A.length) throw new Mr("Input type detection error.");
20439
+ var j, L = E.value;
20440
+ if (w.inputType === void 0 && (E.selectionStart = 0, E.selectionEnd = L.length), T > E.selectionStart ? j = "insert" : T <= E.selectionStart && T < E.selectionEnd ? j = "deleteBackward" : T === E.selectionEnd && I.length < L.length && (j = "deleteForward"), j === void 0 || (j === "deleteBackward" || j === "deleteForward") && I.length > L.length) throw new Mr("Input type detection error.");
20441
20441
  var P = "", R = E.selectionStart, H = E.selectionEnd;
20442
- if (j === "insert") P = S.slice(E.selectionStart, T);
20442
+ if (j === "insert") P = I.slice(E.selectionStart, T);
20443
20443
  else {
20444
- var W = A.length - S.length;
20444
+ var W = L.length - I.length;
20445
20445
  R = T, H = T + W;
20446
20446
  }
20447
- b.value !== A ? b.options = b.fallbackOptions : b.fallbackOptions = b.options;
20448
- var $ = b.options, K = r({ inputType: j, previousValue: A, previousOptions: $, value: S, addedValue: P, changeStart: R, changeEnd: H, selectionStart: T, selectionEnd: N }), M = K.options, I = cO(K, lO);
20449
- s.value = I.value, s.setSelectionRange(I.selectionStart, I.selectionEnd), b.value = I.value, b.options = M, E.selectionStart = I.selectionStart, E.selectionEnd = I.selectionEnd, (_ = s._valueTracker) === null || _ === void 0 || (O = _.setValue) === null || O === void 0 || O.call(_, A);
20447
+ b.value !== L ? b.options = b.fallbackOptions : b.fallbackOptions = b.options;
20448
+ var $ = b.options, K = r({ inputType: j, previousValue: L, previousOptions: $, value: I, addedValue: P, changeStart: R, changeEnd: H, selectionStart: T, selectionEnd: N }), M = K.options, S = cO(K, lO);
20449
+ s.value = S.value, s.setSelectionRange(S.selectionStart, S.selectionEnd), b.value = S.value, b.options = M, E.selectionStart = S.selectionStart, E.selectionEnd = S.selectionEnd, (_ = s._valueTracker) === null || _ === void 0 || (O = _.setValue) === null || O === void 0 || O.call(_, L);
20450
20450
  } catch (Y) {
20451
20451
  if (s.value = E.value, s.setSelectionRange(E.selectionStart, E.selectionEnd), w.preventDefault(), w.stopPropagation(), Y.name !== "SyntheticChangeError") throw Y;
20452
20452
  }
@@ -20504,18 +20504,18 @@ var Zh = (function(e) {
20504
20504
  k === null ? c = "" : k !== !0 && k !== void 0 && (c = k);
20505
20505
  var m = h?.(x);
20506
20506
  m?.mask !== void 0 && (b = m.mask), m?.replacement !== void 0 && (p = typeof m?.replacement == "string" ? cr(m?.replacement) : m.replacement), m?.showMask !== void 0 && (E = m.showMask), m?.separate !== void 0 && (g = m.separate);
20507
- var w = ui(i, vo({ end: l }, a)), _ = ui(i, vo({ start: d }, a)), O = RegExp("[^".concat(Object.keys(p).join(""), "]"), "g"), S = b.replace(O, "");
20508
- if (w && (w = Ir(w, { replacementChars: S, replacement: p, separate: g }), S = S.slice(w.length)), c && (c = Ir(c, { replacementChars: S, replacement: p, separate: !1 }), S = S.slice(c.length)), s === "insert" && c === "") throw new Mr("The character does not match the key value of the `replacement` object.");
20507
+ var w = ui(i, vo({ end: l }, a)), _ = ui(i, vo({ start: d }, a)), O = RegExp("[^".concat(Object.keys(p).join(""), "]"), "g"), I = b.replace(O, "");
20508
+ if (w && (w = Ir(w, { replacementChars: I, replacement: p, separate: g }), I = I.slice(w.length)), c && (c = Ir(c, { replacementChars: I, replacement: p, separate: !1 }), I = I.slice(c.length)), s === "insert" && c === "") throw new Mr("The character does not match the key value of the `replacement` object.");
20509
20509
  if (g) {
20510
20510
  var T = b.slice(l, d).replace(O, ""), N = T.length - c.length;
20511
20511
  N < 0 ? _ = _.slice(-N) : N > 0 && (_ = T.slice(-N) + _);
20512
20512
  }
20513
- _ && (_ = Ir(_, { replacementChars: S, replacement: p, separate: g }));
20514
- var j = zh(w + c + _, { mask: b, replacement: p, separate: g, showMask: E }), A = (function(P) {
20515
- var R, H, W, $ = P.inputType, K = P.value, M = P.addedValue, I = P.beforeChangeValue, Y = P.mask, Z = P.replacement, L = P.separate, B = Kh(K, { mask: Y, replacement: Z }).filter((function(G) {
20513
+ _ && (_ = Ir(_, { replacementChars: I, replacement: p, separate: g }));
20514
+ var j = zh(w + c + _, { mask: b, replacement: p, separate: g, showMask: E }), L = (function(P) {
20515
+ var R, H, W, $ = P.inputType, K = P.value, M = P.addedValue, S = P.beforeChangeValue, Y = P.mask, Z = P.replacement, A = P.separate, B = Kh(K, { mask: Y, replacement: Z }).filter((function(G) {
20516
20516
  var ae = G.type;
20517
- return ae === "input" || L && ae === "replacement";
20518
- })), D = (R = B[I.length + M.length - 1]) === null || R === void 0 ? void 0 : R.index, F = (H = B[I.length - 1]) === null || H === void 0 ? void 0 : H.index, z = (W = B[I.length + M.length]) === null || W === void 0 ? void 0 : W.index;
20517
+ return ae === "input" || A && ae === "replacement";
20518
+ })), D = (R = B[S.length + M.length - 1]) === null || R === void 0 ? void 0 : R.index, F = (H = B[S.length - 1]) === null || H === void 0 ? void 0 : H.index, z = (W = B[S.length + M.length]) === null || W === void 0 ? void 0 : W.index;
20519
20519
  if ($ === "insert") {
20520
20520
  if (D !== void 0) return D + 1;
20521
20521
  if (z !== void 0) return z;
@@ -20534,7 +20534,7 @@ var Zh = (function(e) {
20534
20534
  }));
20535
20535
  return Q !== -1 ? Q : K.length;
20536
20536
  })({ inputType: s, value: j, addedValue: c, beforeChangeValue: w, mask: b, replacement: p, separate: g });
20537
- return { value: j, selectionStart: A, selectionEnd: A, options: { mask: b, replacement: p, separate: g } };
20537
+ return { value: j, selectionStart: L, selectionEnd: L, options: { mask: b, replacement: p, separate: g } };
20538
20538
  } }])).format = function(o) {
20539
20539
  return qh(o, $n(r));
20540
20540
  }, n.formatToParts = function(o) {
@@ -20657,9 +20657,9 @@ const Tr = "_", tr = {
20657
20657
  );
20658
20658
  ut(() => {
20659
20659
  if (r) {
20660
- const S = Mn(r, b);
20660
+ const I = Mn(r, b);
20661
20661
  x(
20662
- (T) => T === S ? T : S
20662
+ (T) => T === I ? T : I
20663
20663
  ), m(r);
20664
20664
  return;
20665
20665
  }
@@ -20694,8 +20694,8 @@ const Tr = "_", tr = {
20694
20694
  animate: !0,
20695
20695
  mode: "single",
20696
20696
  selected: r || void 0,
20697
- onSelect: (S) => {
20698
- w.current = "calendar", d(S ?? null), S && m(S);
20697
+ onSelect: (I) => {
20698
+ w.current = "calendar", d(I ?? null), I && m(I);
20699
20699
  },
20700
20700
  onMonthChange: m,
20701
20701
  disabled: _,
@@ -20717,10 +20717,10 @@ const Tr = "_", tr = {
20717
20717
  ...v ? { name: v } : {},
20718
20718
  component: vO,
20719
20719
  "aria-invalid": !!u["aria-invalid"],
20720
- onCalendarToggle: () => E((S) => !S),
20721
- onChange: (S) => {
20720
+ onCalendarToggle: () => E((I) => !I),
20721
+ onChange: (I) => {
20722
20722
  w.current = "text-input";
20723
- const T = S.target.value;
20723
+ const T = I.target.value;
20724
20724
  x(T);
20725
20725
  const N = wO(T, b);
20726
20726
  N ? (m(N), d(N)) : d(null);
@@ -20948,7 +20948,7 @@ function Jh({
20948
20948
  expandState: _,
20949
20949
  onToggleExpand: () => g(m.id),
20950
20950
  texts: o
20951
- }, S = () => {
20951
+ }, I = () => {
20952
20952
  const T = {
20953
20953
  onChange: (N) => p(m.id, N),
20954
20954
  disabled: n,
@@ -20966,7 +20966,7 @@ function Jh({
20966
20966
  };
20967
20967
  return /* @__PURE__ */ C.jsxs("div", { className: "flex flex-col", children: [
20968
20968
  /* @__PURE__ */ C.jsx(Qh, { ...O }),
20969
- _ === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: S() })
20969
+ _ === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: I() })
20970
20970
  ] }, m.id);
20971
20971
  };
20972
20972
  return /* @__PURE__ */ C.jsxs("div", { className: U("flex flex-col", r), children: [
@@ -21028,12 +21028,12 @@ function em({
21028
21028
  s.duplicateKeyError
21029
21029
  ), b = (O) => {
21030
21030
  l(O);
21031
- const { hasEmptyKeys: S, hasDuplicateKeys: T } = _l(
21031
+ const { hasEmptyKeys: I, hasDuplicateKeys: T } = _l(
21032
21032
  O,
21033
21033
  s.keyRequiredError,
21034
21034
  s.duplicateKeyError
21035
21035
  );
21036
- !S && !T && t(ex(O));
21036
+ !I && !T && t(ex(O));
21037
21037
  }, p = () => {
21038
21038
  const O = {
21039
21039
  id: crypto.randomUUID(),
@@ -21041,22 +21041,22 @@ function em({
21041
21041
  ...ja(i)
21042
21042
  };
21043
21043
  b([...c, O]);
21044
- }, E = (O, S) => {
21044
+ }, E = (O, I) => {
21045
21045
  b(
21046
21046
  c.map(
21047
- (T) => T.id === O ? { ...T, key: S } : T
21047
+ (T) => T.id === O ? { ...T, key: I } : T
21048
21048
  )
21049
21049
  );
21050
- }, g = (O, S) => {
21051
- b(Xp(c, O, S));
21052
- }, x = (O, S) => {
21053
- b(Zp(c, O, S));
21050
+ }, g = (O, I) => {
21051
+ b(Xp(c, O, I));
21052
+ }, x = (O, I) => {
21053
+ b(Zp(c, O, I));
21054
21054
  }, k = (O) => {
21055
- h((S) => Qp(S, O)), b(c.filter((S) => S.id !== O));
21055
+ h((I) => Qp(I, O)), b(c.filter((I) => I.id !== O));
21056
21056
  }, m = (O) => {
21057
- h((S) => Jp(S, O));
21057
+ h((I) => Jp(I, O));
21058
21058
  }, w = (O) => O.type !== "object" && O.type !== "array" ? "static" : y.has(O.id) ? "collapsed" : "expanded", _ = (O) => {
21059
- const S = w(O), { key: T, ...N } = O;
21059
+ const I = w(O), { key: T, ...N } = O;
21060
21060
  return /* @__PURE__ */ C.jsxs("div", { className: "flex flex-col", children: [
21061
21061
  /* @__PURE__ */ C.jsx(
21062
21062
  Qh,
@@ -21072,12 +21072,12 @@ function em({
21072
21072
  onTypeChange: (j) => g(O.id, j),
21073
21073
  onDelete: () => k(O.id),
21074
21074
  onValueChange: (j) => x(O.id, j),
21075
- expandState: S,
21075
+ expandState: I,
21076
21076
  onToggleExpand: () => m(O.id),
21077
21077
  texts: s
21078
21078
  }
21079
21079
  ),
21080
- O.type === "object" && S === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: /* @__PURE__ */ C.jsx(
21080
+ O.type === "object" && I === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: /* @__PURE__ */ C.jsx(
21081
21081
  em,
21082
21082
  {
21083
21083
  value: O.value,
@@ -21086,7 +21086,7 @@ function em({
21086
21086
  texts: s
21087
21087
  }
21088
21088
  ) }),
21089
- O.type === "array" && S === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: /* @__PURE__ */ C.jsx(
21089
+ O.type === "array" && I === "expanded" && /* @__PURE__ */ C.jsx("div", { className: "pl-10", children: /* @__PURE__ */ C.jsx(
21090
21090
  Jh,
21091
21091
  {
21092
21092
  value: O.value,
@@ -21268,28 +21268,28 @@ const CO = ({
21268
21268
  }) => {
21269
21269
  const [w, _] = Pe(
21270
21270
  e ? Tt(e) : ""
21271
- ), O = $e(null), S = $e(!1);
21271
+ ), O = $e(null), I = $e(!1);
21272
21272
  ut(() => {
21273
21273
  if (!E) return;
21274
- const L = setTimeout(() => {
21274
+ const A = setTimeout(() => {
21275
21275
  E(w);
21276
21276
  }, g);
21277
- return () => clearTimeout(L);
21277
+ return () => clearTimeout(A);
21278
21278
  }, [w, g, E]), ut(() => {
21279
21279
  if (e) {
21280
- S.current = !1, _(Tt(e));
21280
+ I.current = !1, _(Tt(e));
21281
21281
  return;
21282
21282
  }
21283
- if (S.current) {
21284
- S.current = !1;
21283
+ if (I.current) {
21284
+ I.current = !1;
21285
21285
  return;
21286
21286
  }
21287
21287
  _("");
21288
21288
  }, [e]);
21289
21289
  const T = dt(() => {
21290
- const L = e ? Tt(e) : "";
21291
- return y || !w || w === L ? n : Iw(n, w);
21292
- }, [n, w, y, e]), N = E ? n : T, { flatOptions: j, rows: A } = dt(
21290
+ const A = e ? Tt(e) : "";
21291
+ return y || !w || w === A ? n : Iw(n, w);
21292
+ }, [n, w, y, e]), N = E ? n : T, { flatOptions: j, rows: L } = dt(
21293
21293
  () => rp(N),
21294
21294
  [N]
21295
21295
  ), {
@@ -21300,14 +21300,14 @@ const CO = ({
21300
21300
  highlightedIndex: $,
21301
21301
  getItemProps: K,
21302
21302
  openMenu: M,
21303
- selectedItem: I
21303
+ selectedItem: S
21304
21304
  } = ht({
21305
21305
  id: r,
21306
21306
  items: j,
21307
- itemToString: (L) => L ? Tt(L) : "",
21308
- isItemDisabled: (L) => a || !!L?.disabled,
21307
+ itemToString: (A) => A ? Tt(A) : "",
21308
+ isItemDisabled: (A) => a || !!A?.disabled,
21309
21309
  selectedItem: e,
21310
- stateReducer(L, B) {
21310
+ stateReducer(A, B) {
21311
21311
  const { changes: D, type: F } = B;
21312
21312
  switch (F) {
21313
21313
  case ht.stateChangeTypes.InputKeyDownEnter:
@@ -21322,7 +21322,7 @@ const CO = ({
21322
21322
  },
21323
21323
  inputValue: w,
21324
21324
  onStateChange({
21325
- inputValue: L,
21325
+ inputValue: A,
21326
21326
  type: B,
21327
21327
  selectedItem: D
21328
21328
  }) {
@@ -21335,14 +21335,14 @@ const CO = ({
21335
21335
  break;
21336
21336
  case ht.stateChangeTypes.InputChange:
21337
21337
  {
21338
- const F = L ?? "";
21339
- _(F), e && F !== Tt(e) && (S.current = !0, t(null));
21338
+ const F = A ?? "";
21339
+ _(F), e && F !== Tt(e) && (I.current = !0, t(null));
21340
21340
  }
21341
21341
  break;
21342
21342
  }
21343
21343
  }
21344
- }), Y = (L) => {
21345
- const B = L.currentTarget;
21344
+ }), Y = (A) => {
21345
+ const B = A.currentTarget;
21346
21346
  B.scrollHeight - B.scrollTop <= B.clientHeight + 1 && m?.();
21347
21347
  }, Z = qp({
21348
21348
  isOpen: P,
@@ -21417,26 +21417,26 @@ const CO = ({
21417
21417
  { onScroll: Y },
21418
21418
  { suppressRefError: !0 }
21419
21419
  ),
21420
- children: P && (j.length > 0 && !x ? A.map(
21421
- (L) => L.kind === "section" ? /* @__PURE__ */ C.jsx(
21420
+ children: P && (j.length > 0 && !x ? L.map(
21421
+ (A) => A.kind === "section" ? /* @__PURE__ */ C.jsx(
21422
21422
  sp,
21423
21423
  {
21424
- label: L.section.label
21424
+ label: A.section.label
21425
21425
  },
21426
- L.key
21426
+ A.key
21427
21427
  ) : /* @__PURE__ */ C.jsx(
21428
21428
  Wr,
21429
21429
  {
21430
- option: L.option,
21430
+ option: A.option,
21431
21431
  type: "single",
21432
- selected: I?.id === L.option.id,
21433
- highlighted: $ === L.optionIndex,
21432
+ selected: S?.id === A.option.id,
21433
+ highlighted: $ === A.optionIndex,
21434
21434
  ...K({
21435
- item: L.option,
21436
- index: L.optionIndex
21435
+ item: A.option,
21436
+ index: A.optionIndex
21437
21437
  })
21438
21438
  },
21439
- L.key
21439
+ A.key
21440
21440
  )
21441
21441
  ) : /* @__PURE__ */ C.jsx(
21442
21442
  Wr,
@@ -21691,41 +21691,42 @@ function gS({
21691
21691
  enableRowSelection: c = !1,
21692
21692
  enableMultiRowSelection: l = !1,
21693
21693
  enablePagination: d = !1,
21694
- paginationProps: u,
21695
- ...y
21694
+ emptyStateText: u,
21695
+ paginationProps: y,
21696
+ ...h
21696
21697
  }) {
21697
- const { mode: h, totalItems: v, itemsPerPageOptions: b, fromText: p } = u ?? {}, E = d && !y.initialState?.pagination && !y.state?.pagination ? { ...y.initialState, pagination: { pageIndex: 0, pageSize: 20 } } : y.initialState, g = lm({
21698
+ const { mode: v, totalItems: b, itemsPerPageOptions: p, fromText: E } = y ?? {}, g = d && !h.initialState?.pagination && !h.state?.pagination ? { ...h.initialState, pagination: { pageIndex: 0, pageSize: 20 } } : h.initialState, x = lm({
21698
21699
  data: e,
21699
21700
  columns: t,
21700
21701
  getCoreRowModel: a,
21701
21702
  getSortedRowModel: dm(),
21702
21703
  getPaginationRowModel: d ? um() : void 0,
21703
- manualPagination: h === "server",
21704
- pageCount: h === "server" && y.state?.pagination ? Math.ceil(v / y.state.pagination.pageSize) : void 0,
21704
+ manualPagination: v === "server",
21705
+ pageCount: v === "server" && h.state?.pagination ? Math.ceil(b / h.state.pagination.pageSize) : void 0,
21705
21706
  autoResetPageIndex: !1,
21706
21707
  enableRowSelection: c,
21707
21708
  enableMultiRowSelection: l,
21708
- ...y,
21709
- initialState: E
21710
- }), x = h === "server" ? Math.ceil(v / g.getState().pagination.pageSize) : g.getPageCount(), k = g.getRowModel().rows, m = c || l, w = !!i?.trim(), _ = i?.trim() || "Loading", O = /* @__PURE__ */ C.jsxs(
21709
+ ...h,
21710
+ initialState: g
21711
+ }), k = v === "server" ? Math.ceil(b / x.getState().pagination.pageSize) : x.getPageCount(), m = x.getRowModel().rows, w = c || l, _ = !!i?.trim(), O = i?.trim() || "Loading", I = /* @__PURE__ */ C.jsxs(
21711
21712
  "div",
21712
21713
  {
21713
21714
  className: U(
21714
21715
  "text-text-disabled flex items-center",
21715
- w && "gap-2"
21716
+ _ && "gap-2"
21716
21717
  ),
21717
21718
  role: "status",
21718
21719
  "aria-live": "polite",
21719
21720
  "aria-atomic": "true",
21720
- "aria-label": _,
21721
+ "aria-label": O,
21721
21722
  children: [
21722
21723
  /* @__PURE__ */ C.jsx(qo, { size: 16, "aria-hidden": "true" }),
21723
- w && /* @__PURE__ */ C.jsx("span", { className: "text-sm font-medium", children: i }),
21724
- !w && /* @__PURE__ */ C.jsx("span", { className: "sr-only", children: _ })
21724
+ _ && /* @__PURE__ */ C.jsx("span", { className: "text-sm font-medium", children: i }),
21725
+ !_ && /* @__PURE__ */ C.jsx("span", { className: "sr-only", children: O })
21725
21726
  ]
21726
21727
  }
21727
21728
  );
21728
- return /* @__PURE__ */ C.jsxs("div", { className: U("flex flex-col gap-3", n), children: [
21729
+ return console.log(m), /* @__PURE__ */ C.jsxs("div", { className: U("flex flex-col gap-3", n), children: [
21729
21730
  /* @__PURE__ */ C.jsxs(
21730
21731
  "div",
21731
21732
  {
@@ -21733,56 +21734,56 @@ function gS({
21733
21734
  "aria-busy": s,
21734
21735
  children: [
21735
21736
  /* @__PURE__ */ C.jsxs("table", { className: U("w-full border-collapse", r), children: [
21736
- /* @__PURE__ */ C.jsx("thead", { children: g.getHeaderGroups().map((S) => /* @__PURE__ */ C.jsx("tr", { children: S.headers.map((T) => /* @__PURE__ */ C.jsx(
21737
+ /* @__PURE__ */ C.jsx("thead", { children: x.getHeaderGroups().map((T) => /* @__PURE__ */ C.jsx("tr", { children: T.headers.map((N) => /* @__PURE__ */ C.jsx(
21737
21738
  jO,
21738
21739
  {
21739
- header: T,
21740
+ header: N,
21740
21741
  disabled: s
21741
21742
  },
21742
- T.id
21743
- )) }, S.id)) }),
21743
+ N.id
21744
+ )) }, T.id)) }),
21744
21745
  /* @__PURE__ */ C.jsxs("tbody", { children: [
21745
- s && k.length === 0 && /* @__PURE__ */ C.jsx("tr", { className: "border-secondary-contrast border-b", children: /* @__PURE__ */ C.jsx(
21746
+ !m?.length && /* @__PURE__ */ C.jsx("tr", { className: "border-secondary-contrast border-b", children: /* @__PURE__ */ C.jsx(
21746
21747
  "td",
21747
21748
  {
21748
- colSpan: Math.max(g.getVisibleLeafColumns().length, 1),
21749
+ colSpan: Math.max(x.getVisibleLeafColumns().length, 1),
21749
21750
  className: "p-6 text-sm",
21750
- children: /* @__PURE__ */ C.jsx("div", { className: "flex justify-center", children: O })
21751
+ children: /* @__PURE__ */ C.jsx("div", { className: "flex justify-center", children: s ? I : /* @__PURE__ */ C.jsx("div", { className: "text-secondary-dark p-2 text-center text-sm", children: u }) })
21751
21752
  }
21752
21753
  ) }),
21753
- k.map((S) => {
21754
- const T = S.getIsSelected?.() ?? !1, N = U(
21755
- !s && m && "cursor-pointer hover:bg-secondary-contrast",
21754
+ m.map((T) => {
21755
+ const N = T.getIsSelected?.() ?? !1, j = U(
21756
+ !s && w && "cursor-pointer hover:bg-secondary-contrast",
21756
21757
  "border-b border-secondary-contrast",
21757
- T && "bg-secondary hover:bg-secondary-light"
21758
+ N && "bg-secondary hover:bg-secondary-light"
21758
21759
  );
21759
21760
  return /* @__PURE__ */ C.jsx(
21760
21761
  "tr",
21761
21762
  {
21762
- className: N,
21763
- onClick: !s && m ? S.getToggleSelectedHandler?.() : void 0,
21764
- children: S.getVisibleCells().map((j) => /* @__PURE__ */ C.jsx(NO, { cell: j }, j.id))
21763
+ className: j,
21764
+ onClick: !s && w ? T.getToggleSelectedHandler?.() : void 0,
21765
+ children: T.getVisibleCells().map((L) => /* @__PURE__ */ C.jsx(NO, { cell: L }, L.id))
21765
21766
  },
21766
- S.id
21767
+ T.id
21767
21768
  );
21768
21769
  })
21769
21770
  ] })
21770
21771
  ] }),
21771
- s && k.length > 0 && /* @__PURE__ */ C.jsx("div", { className: "bg-background/75 absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ C.jsx("div", { className: "rounded-md px-3 py-2", children: O }) })
21772
+ s && m.length > 0 && /* @__PURE__ */ C.jsx("div", { className: "bg-background/75 absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ C.jsx("div", { className: "rounded-md px-3 py-2", children: I }) })
21772
21773
  ]
21773
21774
  }
21774
21775
  ),
21775
21776
  d && /* @__PURE__ */ C.jsx(
21776
21777
  DO,
21777
21778
  {
21778
- currentPage: g.getState().pagination.pageIndex + 1,
21779
- totalPages: x,
21780
- totalItems: h === "server" ? v : e.length,
21781
- itemsPerPage: g.getState().pagination.pageSize,
21782
- itemsPerPageOptions: b,
21783
- onPageChange: (S) => g.setPageIndex(S - 1),
21784
- onItemsPerPageChange: (S) => g.setPageSize(S),
21785
- fromText: p,
21779
+ currentPage: x.getState().pagination.pageIndex + 1,
21780
+ totalPages: k,
21781
+ totalItems: v === "server" ? b : e.length,
21782
+ itemsPerPage: x.getState().pagination.pageSize,
21783
+ itemsPerPageOptions: p,
21784
+ onPageChange: (T) => x.setPageIndex(T - 1),
21785
+ onItemsPerPageChange: (T) => x.setPageSize(T),
21786
+ fromText: E,
21786
21787
  disabled: s
21787
21788
  }
21788
21789
  )