@raspberrypifoundation/design-system-react 2.10.4 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { jsxs as B, jsx as w, Fragment as ke } from "react/jsx-runtime";
1
+ import { jsxs as W, jsx as y, Fragment as Pe } from "react/jsx-runtime";
2
2
  import * as E from "react";
3
3
  import or, { useState as On, forwardRef as It, useRef as Rt, useEffect as We, useLayoutEffect as An, createElement as Tt } from "react";
4
4
  import * as ir from "react-dom";
@@ -45,8 +45,8 @@ function sr() {
45
45
  })(at)), at.exports;
46
46
  }
47
47
  var ar = sr();
48
- const K = /* @__PURE__ */ Pn(ar);
49
- var Me = { exports: {} }, De = { exports: {} }, Y = {};
48
+ const Z = /* @__PURE__ */ Pn(ar);
49
+ var Me = { exports: {} }, De = { exports: {} }, U = {};
50
50
  /** @license React v16.13.1
51
51
  * react-is.production.min.js
52
52
  *
@@ -57,16 +57,16 @@ var Me = { exports: {} }, De = { exports: {} }, Y = {};
57
57
  */
58
58
  var Yt;
59
59
  function cr() {
60
- if (Yt) return Y;
60
+ if (Yt) return U;
61
61
  Yt = 1;
62
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
63
- function y(b) {
62
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
63
+ function g(b) {
64
64
  if (typeof b == "object" && b !== null) {
65
- var I = b.$$typeof;
66
- switch (I) {
65
+ var F = b.$$typeof;
66
+ switch (F) {
67
67
  case t:
68
68
  switch (b = b.type, b) {
69
- case l:
69
+ case u:
70
70
  case c:
71
71
  case n:
72
72
  case i:
@@ -78,50 +78,50 @@ function cr() {
78
78
  case a:
79
79
  case f:
80
80
  case v:
81
- case u:
81
+ case l:
82
82
  case s:
83
83
  return b;
84
84
  default:
85
- return I;
85
+ return F;
86
86
  }
87
87
  }
88
88
  case r:
89
- return I;
89
+ return F;
90
90
  }
91
91
  }
92
92
  }
93
93
  function T(b) {
94
- return y(b) === c;
94
+ return g(b) === c;
95
95
  }
96
- return Y.AsyncMode = l, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = u, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
97
- return T(b) || y(b) === l;
98
- }, Y.isConcurrentMode = T, Y.isContextConsumer = function(b) {
99
- return y(b) === a;
100
- }, Y.isContextProvider = function(b) {
101
- return y(b) === s;
102
- }, Y.isElement = function(b) {
96
+ return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = a, U.ContextProvider = s, U.Element = t, U.ForwardRef = f, U.Fragment = n, U.Lazy = v, U.Memo = l, U.Portal = r, U.Profiler = i, U.StrictMode = o, U.Suspense = d, U.isAsyncMode = function(b) {
97
+ return T(b) || g(b) === u;
98
+ }, U.isConcurrentMode = T, U.isContextConsumer = function(b) {
99
+ return g(b) === a;
100
+ }, U.isContextProvider = function(b) {
101
+ return g(b) === s;
102
+ }, U.isElement = function(b) {
103
103
  return typeof b == "object" && b !== null && b.$$typeof === t;
104
- }, Y.isForwardRef = function(b) {
105
- return y(b) === f;
106
- }, Y.isFragment = function(b) {
107
- return y(b) === n;
108
- }, Y.isLazy = function(b) {
109
- return y(b) === v;
110
- }, Y.isMemo = function(b) {
111
- return y(b) === u;
112
- }, Y.isPortal = function(b) {
113
- return y(b) === r;
114
- }, Y.isProfiler = function(b) {
115
- return y(b) === i;
116
- }, Y.isStrictMode = function(b) {
117
- return y(b) === o;
118
- }, Y.isSuspense = function(b) {
119
- return y(b) === d;
120
- }, Y.isValidElementType = function(b) {
121
- return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === u || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === k || b.$$typeof === p);
122
- }, Y.typeOf = y, Y;
123
- }
124
- var U = {};
104
+ }, U.isForwardRef = function(b) {
105
+ return g(b) === f;
106
+ }, U.isFragment = function(b) {
107
+ return g(b) === n;
108
+ }, U.isLazy = function(b) {
109
+ return g(b) === v;
110
+ }, U.isMemo = function(b) {
111
+ return g(b) === l;
112
+ }, U.isPortal = function(b) {
113
+ return g(b) === r;
114
+ }, U.isProfiler = function(b) {
115
+ return g(b) === i;
116
+ }, U.isStrictMode = function(b) {
117
+ return g(b) === o;
118
+ }, U.isSuspense = function(b) {
119
+ return g(b) === d;
120
+ }, U.isValidElementType = function(b) {
121
+ return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === l || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === N || b.$$typeof === p);
122
+ }, U.typeOf = g, U;
123
+ }
124
+ var H = {};
125
125
  /** @license React v16.13.1
126
126
  * react-is.development.js
127
127
  *
@@ -133,19 +133,19 @@ var U = {};
133
133
  var Ut;
134
134
  function lr() {
135
135
  return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
136
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
137
- function y(C) {
138
- return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
- C === n || C === c || C === i || C === o || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === u || C.$$typeof === s || C.$$typeof === a || C.$$typeof === f || C.$$typeof === O || C.$$typeof === A || C.$$typeof === k || C.$$typeof === p);
140
- }
141
- function T(C) {
142
- if (typeof C == "object" && C !== null) {
143
- var re = C.$$typeof;
136
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
137
+ function g(S) {
138
+ return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
+ S === n || S === c || S === i || S === o || S === d || S === h || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === l || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === O || S.$$typeof === A || S.$$typeof === N || S.$$typeof === p);
140
+ }
141
+ function T(S) {
142
+ if (typeof S == "object" && S !== null) {
143
+ var re = S.$$typeof;
144
144
  switch (re) {
145
145
  case t:
146
- var fe = C.type;
146
+ var fe = S.type;
147
147
  switch (fe) {
148
- case l:
148
+ case u:
149
149
  case c:
150
150
  case n:
151
151
  case i:
@@ -158,7 +158,7 @@ function lr() {
158
158
  case a:
159
159
  case f:
160
160
  case v:
161
- case u:
161
+ case l:
162
162
  case s:
163
163
  return ae;
164
164
  default:
@@ -170,48 +170,48 @@ function lr() {
170
170
  }
171
171
  }
172
172
  }
173
- var b = l, I = c, H = a, z = s, Q = t, J = f, Z = n, q = v, te = u, X = r, L = i, j = o, V = d, M = !1;
174
- function R(C) {
175
- return M || (M = !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(C) || T(C) === l;
173
+ var b = u, F = c, Y = a, K = s, Q = t, X = f, z = n, B = v, te = l, G = r, I = i, L = o, V = d, M = !1;
174
+ function R(S) {
175
+ return M || (M = !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(S) || T(S) === u;
176
176
  }
177
- function m(C) {
178
- return T(C) === c;
177
+ function m(S) {
178
+ return T(S) === c;
179
179
  }
180
- function x(C) {
181
- return T(C) === a;
180
+ function x(S) {
181
+ return T(S) === a;
182
182
  }
183
- function F(C) {
184
- return T(C) === s;
183
+ function $(S) {
184
+ return T(S) === s;
185
185
  }
186
- function W(C) {
187
- return typeof C == "object" && C !== null && C.$$typeof === t;
186
+ function q(S) {
187
+ return typeof S == "object" && S !== null && S.$$typeof === t;
188
188
  }
189
- function S(C) {
190
- return T(C) === f;
189
+ function C(S) {
190
+ return T(S) === f;
191
191
  }
192
- function P(C) {
193
- return T(C) === n;
192
+ function P(S) {
193
+ return T(S) === n;
194
194
  }
195
- function g(C) {
196
- return T(C) === v;
195
+ function w(S) {
196
+ return T(S) === v;
197
197
  }
198
- function _(C) {
199
- return T(C) === u;
198
+ function _(S) {
199
+ return T(S) === l;
200
200
  }
201
- function N(C) {
202
- return T(C) === r;
201
+ function k(S) {
202
+ return T(S) === r;
203
203
  }
204
- function $(C) {
205
- return T(C) === i;
204
+ function j(S) {
205
+ return T(S) === i;
206
206
  }
207
- function D(C) {
208
- return T(C) === o;
207
+ function D(S) {
208
+ return T(S) === o;
209
209
  }
210
- function G(C) {
211
- return T(C) === d;
210
+ function J(S) {
211
+ return T(S) === d;
212
212
  }
213
- U.AsyncMode = b, U.ConcurrentMode = I, U.ContextConsumer = H, U.ContextProvider = z, U.Element = Q, U.ForwardRef = J, U.Fragment = Z, U.Lazy = q, U.Memo = te, U.Portal = X, U.Profiler = L, U.StrictMode = j, U.Suspense = V, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = x, U.isContextProvider = F, U.isElement = W, U.isForwardRef = S, U.isFragment = P, U.isLazy = g, U.isMemo = _, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = G, U.isValidElementType = y, U.typeOf = T;
214
- })()), U;
213
+ H.AsyncMode = b, H.ConcurrentMode = F, H.ContextConsumer = Y, H.ContextProvider = K, H.Element = Q, H.ForwardRef = X, H.Fragment = z, H.Lazy = B, H.Memo = te, H.Portal = G, H.Profiler = I, H.StrictMode = L, H.Suspense = V, H.isAsyncMode = R, H.isConcurrentMode = m, H.isContextConsumer = x, H.isContextProvider = $, H.isElement = q, H.isForwardRef = C, H.isFragment = P, H.isLazy = w, H.isMemo = _, H.isPortal = k, H.isProfiler = j, H.isStrictMode = D, H.isSuspense = J, H.isValidElementType = g, H.typeOf = T;
214
+ })()), H;
215
215
  }
216
216
  var Ht;
217
217
  function Nn() {
@@ -241,10 +241,10 @@ function ur() {
241
241
  return !1;
242
242
  for (var s = {}, a = 0; a < 10; a++)
243
243
  s["_" + String.fromCharCode(a)] = a;
244
- var l = Object.getOwnPropertyNames(s).map(function(f) {
244
+ var u = Object.getOwnPropertyNames(s).map(function(f) {
245
245
  return s[f];
246
246
  });
247
- if (l.join("") !== "0123456789")
247
+ if (u.join("") !== "0123456789")
248
248
  return !1;
249
249
  var c = {};
250
250
  return "abcdefghijklmnopqrst".split("").forEach(function(f) {
@@ -255,17 +255,17 @@ function ur() {
255
255
  }
256
256
  }
257
257
  return ct = o() ? Object.assign : function(i, s) {
258
- for (var a, l = n(i), c, f = 1; f < arguments.length; f++) {
258
+ for (var a, u = n(i), c, f = 1; f < arguments.length; f++) {
259
259
  a = Object(arguments[f]);
260
260
  for (var d in a)
261
- t.call(a, d) && (l[d] = a[d]);
261
+ t.call(a, d) && (u[d] = a[d]);
262
262
  if (e) {
263
263
  c = e(a);
264
264
  for (var h = 0; h < c.length; h++)
265
- r.call(a, c[h]) && (l[c[h]] = a[c[h]]);
265
+ r.call(a, c[h]) && (u[c[h]] = a[c[h]]);
266
266
  }
267
267
  }
268
- return l;
268
+ return u;
269
269
  }, ct;
270
270
  }
271
271
  var lt, zt;
@@ -296,7 +296,7 @@ function fr() {
296
296
  }
297
297
  };
298
298
  }
299
- function o(i, s, a, l, c) {
299
+ function o(i, s, a, u, c) {
300
300
  if (process.env.NODE_ENV !== "production") {
301
301
  for (var f in i)
302
302
  if (n(i, f)) {
@@ -304,21 +304,21 @@ function fr() {
304
304
  try {
305
305
  if (typeof i[f] != "function") {
306
306
  var h = Error(
307
- (l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
307
+ (u || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
308
308
  );
309
309
  throw h.name = "Invariant Violation", h;
310
310
  }
311
- d = i[f](s, f, l, a, null, t);
311
+ d = i[f](s, f, u, a, null, t);
312
312
  } catch (v) {
313
313
  d = v;
314
314
  }
315
315
  if (d && !(d instanceof Error) && e(
316
- (l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
316
+ (u || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
317
317
  ), d instanceof Error && !(d.message in r)) {
318
318
  r[d.message] = !0;
319
- var u = c ? c() : "";
319
+ var l = c ? c() : "";
320
320
  e(
321
- "Failed " + a + " type: " + d.message + (u ?? "")
321
+ "Failed " + a + " type: " + d.message + (l ?? "")
322
322
  );
323
323
  }
324
324
  }
@@ -335,24 +335,24 @@ function dr() {
335
335
  var e = Nn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ kn(), o = /* @__PURE__ */ fr(), i = function() {
336
336
  };
337
337
  process.env.NODE_ENV !== "production" && (i = function(a) {
338
- var l = "Warning: " + a;
339
- typeof console < "u" && console.error(l);
338
+ var u = "Warning: " + a;
339
+ typeof console < "u" && console.error(u);
340
340
  try {
341
- throw new Error(l);
341
+ throw new Error(u);
342
342
  } catch {
343
343
  }
344
344
  });
345
345
  function s() {
346
346
  return null;
347
347
  }
348
- return dt = function(a, l) {
348
+ return dt = function(a, u) {
349
349
  var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
350
350
  function d(m) {
351
351
  var x = m && (c && m[c] || m[f]);
352
352
  if (typeof x == "function")
353
353
  return x;
354
354
  }
355
- var h = "<<anonymous>>", u = {
355
+ var h = "<<anonymous>>", l = {
356
356
  array: A("array"),
357
357
  bigint: A("bigint"),
358
358
  bool: A("boolean"),
@@ -361,16 +361,16 @@ function dr() {
361
361
  object: A("object"),
362
362
  string: A("string"),
363
363
  symbol: A("symbol"),
364
- any: k(),
365
- arrayOf: y,
364
+ any: N(),
365
+ arrayOf: g,
366
366
  element: T(),
367
367
  elementType: b(),
368
- instanceOf: I,
369
- node: J(),
370
- objectOf: z,
371
- oneOf: H,
368
+ instanceOf: F,
369
+ node: X(),
370
+ objectOf: K,
371
+ oneOf: Y,
372
372
  oneOfType: Q,
373
- shape: q,
373
+ shape: B,
374
374
  exact: te
375
375
  };
376
376
  function v(m, x) {
@@ -382,34 +382,34 @@ function dr() {
382
382
  p.prototype = Error.prototype;
383
383
  function O(m) {
384
384
  if (process.env.NODE_ENV !== "production")
385
- var x = {}, F = 0;
386
- function W(P, g, _, N, $, D, G) {
387
- if (N = N || h, D = D || _, G !== r) {
388
- if (l) {
389
- var C = new Error(
385
+ var x = {}, $ = 0;
386
+ function q(P, w, _, k, j, D, J) {
387
+ if (k = k || h, D = D || _, J !== r) {
388
+ if (u) {
389
+ var S = new Error(
390
390
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
391
391
  );
392
- throw C.name = "Invariant Violation", C;
392
+ throw S.name = "Invariant Violation", S;
393
393
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
394
- var re = N + ":" + _;
394
+ var re = k + ":" + _;
395
395
  !x[re] && // Avoid spamming the console because they are often not actionable except for lib authors
396
- F < 3 && (i(
397
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. 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."
398
- ), x[re] = !0, F++);
396
+ $ < 3 && (i(
397
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + k + "`. 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."
398
+ ), x[re] = !0, $++);
399
399
  }
400
400
  }
401
- return g[_] == null ? P ? g[_] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(g, _, N, $, D);
401
+ return w[_] == null ? P ? w[_] === null ? new p("The " + j + " `" + D + "` is marked as required " + ("in `" + k + "`, but its value is `null`.")) : new p("The " + j + " `" + D + "` is marked as required in " + ("`" + k + "`, but its value is `undefined`.")) : null : m(w, _, k, j, D);
402
402
  }
403
- var S = W.bind(null, !1);
404
- return S.isRequired = W.bind(null, !0), S;
403
+ var C = q.bind(null, !1);
404
+ return C.isRequired = q.bind(null, !0), C;
405
405
  }
406
406
  function A(m) {
407
- function x(F, W, S, P, g, _) {
408
- var N = F[W], $ = j(N);
409
- if ($ !== m) {
410
- var D = V(N);
407
+ function x($, q, C, P, w, _) {
408
+ var k = $[q], j = L(k);
409
+ if (j !== m) {
410
+ var D = V(k);
411
411
  return new p(
412
- "Invalid " + P + " `" + g + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + m + "`."),
412
+ "Invalid " + P + " `" + w + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
413
413
  { expectedType: m }
414
414
  );
415
415
  }
@@ -417,20 +417,20 @@ function dr() {
417
417
  }
418
418
  return O(x);
419
419
  }
420
- function k() {
420
+ function N() {
421
421
  return O(s);
422
422
  }
423
- function y(m) {
424
- function x(F, W, S, P, g) {
423
+ function g(m) {
424
+ function x($, q, C, P, w) {
425
425
  if (typeof m != "function")
426
- return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
427
- var _ = F[W];
426
+ return new p("Property `" + w + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
427
+ var _ = $[q];
428
428
  if (!Array.isArray(_)) {
429
- var N = j(_);
430
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an array."));
429
+ var k = L(_);
430
+ return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected an array."));
431
431
  }
432
- for (var $ = 0; $ < _.length; $++) {
433
- var D = m(_, $, S, P, g + "[" + $ + "]", r);
432
+ for (var j = 0; j < _.length; j++) {
433
+ var D = m(_, j, C, P, w + "[" + j + "]", r);
434
434
  if (D instanceof Error)
435
435
  return D;
436
436
  }
@@ -439,64 +439,64 @@ function dr() {
439
439
  return O(x);
440
440
  }
441
441
  function T() {
442
- function m(x, F, W, S, P) {
443
- var g = x[F];
444
- if (!a(g)) {
445
- var _ = j(g);
446
- return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement."));
442
+ function m(x, $, q, C, P) {
443
+ var w = x[$];
444
+ if (!a(w)) {
445
+ var _ = L(w);
446
+ return new p("Invalid " + C + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + q + "`, expected a single ReactElement."));
447
447
  }
448
448
  return null;
449
449
  }
450
450
  return O(m);
451
451
  }
452
452
  function b() {
453
- function m(x, F, W, S, P) {
454
- var g = x[F];
455
- if (!e.isValidElementType(g)) {
456
- var _ = j(g);
457
- return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement type."));
453
+ function m(x, $, q, C, P) {
454
+ var w = x[$];
455
+ if (!e.isValidElementType(w)) {
456
+ var _ = L(w);
457
+ return new p("Invalid " + C + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + q + "`, expected a single ReactElement type."));
458
458
  }
459
459
  return null;
460
460
  }
461
461
  return O(m);
462
462
  }
463
- function I(m) {
464
- function x(F, W, S, P, g) {
465
- if (!(F[W] instanceof m)) {
466
- var _ = m.name || h, N = R(F[W]);
467
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + _ + "`."));
463
+ function F(m) {
464
+ function x($, q, C, P, w) {
465
+ if (!($[q] instanceof m)) {
466
+ var _ = m.name || h, k = R($[q]);
467
+ return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
468
468
  }
469
469
  return null;
470
470
  }
471
471
  return O(x);
472
472
  }
473
- function H(m) {
473
+ function Y(m) {
474
474
  if (!Array.isArray(m))
475
475
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
476
476
  "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])."
477
477
  ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
478
- function x(F, W, S, P, g) {
479
- for (var _ = F[W], N = 0; N < m.length; N++)
480
- if (v(_, m[N]))
478
+ function x($, q, C, P, w) {
479
+ for (var _ = $[q], k = 0; k < m.length; k++)
480
+ if (v(_, m[k]))
481
481
  return null;
482
- var $ = JSON.stringify(m, function(G, C) {
483
- var re = V(C);
484
- return re === "symbol" ? String(C) : C;
482
+ var j = JSON.stringify(m, function(J, S) {
483
+ var re = V(S);
484
+ return re === "symbol" ? String(S) : S;
485
485
  });
486
- return new p("Invalid " + P + " `" + g + "` of value `" + String(_) + "` " + ("supplied to `" + S + "`, expected one of " + $ + "."));
486
+ return new p("Invalid " + P + " `" + w + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + j + "."));
487
487
  }
488
488
  return O(x);
489
489
  }
490
- function z(m) {
491
- function x(F, W, S, P, g) {
490
+ function K(m) {
491
+ function x($, q, C, P, w) {
492
492
  if (typeof m != "function")
493
- return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
494
- var _ = F[W], N = j(_);
495
- if (N !== "object")
496
- return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an object."));
497
- for (var $ in _)
498
- if (n(_, $)) {
499
- var D = m(_, $, S, P, g + "." + $, r);
493
+ return new p("Property `" + w + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
494
+ var _ = $[q], k = L(_);
495
+ if (k !== "object")
496
+ return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected an object."));
497
+ for (var j in _)
498
+ if (n(_, j)) {
499
+ var D = m(_, j, C, P, w + "." + j, r);
500
500
  if (D instanceof Error)
501
501
  return D;
502
502
  }
@@ -508,76 +508,76 @@ function dr() {
508
508
  if (!Array.isArray(m))
509
509
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
510
510
  for (var x = 0; x < m.length; x++) {
511
- var F = m[x];
512
- if (typeof F != "function")
511
+ var $ = m[x];
512
+ if (typeof $ != "function")
513
513
  return i(
514
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + x + "."
514
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M($) + " at index " + x + "."
515
515
  ), s;
516
516
  }
517
- function W(S, P, g, _, N) {
518
- for (var $ = [], D = 0; D < m.length; D++) {
519
- var G = m[D], C = G(S, P, g, _, N, r);
520
- if (C == null)
517
+ function q(C, P, w, _, k) {
518
+ for (var j = [], D = 0; D < m.length; D++) {
519
+ var J = m[D], S = J(C, P, w, _, k, r);
520
+ if (S == null)
521
521
  return null;
522
- C.data && n(C.data, "expectedType") && $.push(C.data.expectedType);
522
+ S.data && n(S.data, "expectedType") && j.push(S.data.expectedType);
523
523
  }
524
- var re = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
525
- return new p("Invalid " + _ + " `" + N + "` supplied to " + ("`" + g + "`" + re + "."));
524
+ var re = j.length > 0 ? ", expected one of type [" + j.join(", ") + "]" : "";
525
+ return new p("Invalid " + _ + " `" + k + "` supplied to " + ("`" + w + "`" + re + "."));
526
526
  }
527
- return O(W);
527
+ return O(q);
528
528
  }
529
- function J() {
530
- function m(x, F, W, S, P) {
531
- return X(x[F]) ? null : new p("Invalid " + S + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
529
+ function X() {
530
+ function m(x, $, q, C, P) {
531
+ return G(x[$]) ? null : new p("Invalid " + C + " `" + P + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
532
532
  }
533
533
  return O(m);
534
534
  }
535
- function Z(m, x, F, W, S) {
535
+ function z(m, x, $, q, C) {
536
536
  return new p(
537
- (m || "React class") + ": " + x + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
537
+ (m || "React class") + ": " + x + " type `" + $ + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
538
538
  );
539
539
  }
540
- function q(m) {
541
- function x(F, W, S, P, g) {
542
- var _ = F[W], N = j(_);
543
- if (N !== "object")
544
- return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
545
- for (var $ in m) {
546
- var D = m[$];
540
+ function B(m) {
541
+ function x($, q, C, P, w) {
542
+ var _ = $[q], k = L(_);
543
+ if (k !== "object")
544
+ return new p("Invalid " + P + " `" + w + "` of type `" + k + "` " + ("supplied to `" + C + "`, expected `object`."));
545
+ for (var j in m) {
546
+ var D = m[j];
547
547
  if (typeof D != "function")
548
- return Z(S, P, g, $, V(D));
549
- var G = D(_, $, S, P, g + "." + $, r);
550
- if (G)
551
- return G;
548
+ return z(C, P, w, j, V(D));
549
+ var J = D(_, j, C, P, w + "." + j, r);
550
+ if (J)
551
+ return J;
552
552
  }
553
553
  return null;
554
554
  }
555
555
  return O(x);
556
556
  }
557
557
  function te(m) {
558
- function x(F, W, S, P, g) {
559
- var _ = F[W], N = j(_);
560
- if (N !== "object")
561
- return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
562
- var $ = t({}, F[W], m);
563
- for (var D in $) {
564
- var G = m[D];
565
- if (n(m, D) && typeof G != "function")
566
- return Z(S, P, g, D, V(G));
567
- if (!G)
558
+ function x($, q, C, P, w) {
559
+ var _ = $[q], k = L(_);
560
+ if (k !== "object")
561
+ return new p("Invalid " + P + " `" + w + "` of type `" + k + "` " + ("supplied to `" + C + "`, expected `object`."));
562
+ var j = t({}, $[q], m);
563
+ for (var D in j) {
564
+ var J = m[D];
565
+ if (n(m, D) && typeof J != "function")
566
+ return z(C, P, w, D, V(J));
567
+ if (!J)
568
568
  return new p(
569
- "Invalid " + P + " `" + g + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
569
+ "Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify($[q], null, " ") + `
570
570
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
571
571
  );
572
- var C = G(_, D, S, P, g + "." + D, r);
573
- if (C)
574
- return C;
572
+ var S = J(_, D, C, P, w + "." + D, r);
573
+ if (S)
574
+ return S;
575
575
  }
576
576
  return null;
577
577
  }
578
578
  return O(x);
579
579
  }
580
- function X(m) {
580
+ function G(m) {
581
581
  switch (typeof m) {
582
582
  case "number":
583
583
  case "string":
@@ -587,20 +587,20 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
587
587
  return !m;
588
588
  case "object":
589
589
  if (Array.isArray(m))
590
- return m.every(X);
590
+ return m.every(G);
591
591
  if (m === null || a(m))
592
592
  return !0;
593
593
  var x = d(m);
594
594
  if (x) {
595
- var F = x.call(m), W;
595
+ var $ = x.call(m), q;
596
596
  if (x !== m.entries) {
597
- for (; !(W = F.next()).done; )
598
- if (!X(W.value))
597
+ for (; !(q = $.next()).done; )
598
+ if (!G(q.value))
599
599
  return !1;
600
600
  } else
601
- for (; !(W = F.next()).done; ) {
602
- var S = W.value;
603
- if (S && !X(S[1]))
601
+ for (; !(q = $.next()).done; ) {
602
+ var C = q.value;
603
+ if (C && !G(C[1]))
604
604
  return !1;
605
605
  }
606
606
  } else
@@ -610,17 +610,17 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
610
610
  return !1;
611
611
  }
612
612
  }
613
- function L(m, x) {
613
+ function I(m, x) {
614
614
  return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
615
615
  }
616
- function j(m) {
616
+ function L(m) {
617
617
  var x = typeof m;
618
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(x, m) ? "symbol" : x;
618
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : I(x, m) ? "symbol" : x;
619
619
  }
620
620
  function V(m) {
621
621
  if (typeof m > "u" || m === null)
622
622
  return "" + m;
623
- var x = j(m);
623
+ var x = L(m);
624
624
  if (x === "object") {
625
625
  if (m instanceof Date)
626
626
  return "date";
@@ -646,7 +646,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
646
646
  function R(m) {
647
647
  return !m.constructor || !m.constructor.name ? h : m.constructor.name;
648
648
  }
649
- return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
649
+ return l.checkPropTypes = o, l.resetWarningCache = o.resetWarningCache, l.PropTypes = l, l;
650
650
  }, dt;
651
651
  }
652
652
  var pt, Jt;
@@ -659,7 +659,7 @@ function pr() {
659
659
  function r() {
660
660
  }
661
661
  return r.resetWarningCache = t, pt = function() {
662
- function n(s, a, l, c, f, d) {
662
+ function n(s, a, u, c, f, d) {
663
663
  if (d !== e) {
664
664
  var h = new Error(
665
665
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -709,13 +709,13 @@ function mr() {
709
709
  }
710
710
  var hr = /* @__PURE__ */ mr();
711
711
  const Le = /* @__PURE__ */ Pn(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
712
- const o = K("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
713
- return /* @__PURE__ */ B("details", { className: o, id: `${n}`, children: [
714
- /* @__PURE__ */ B("summary", { className: "rpf-accordion__title", role: "button", children: [
712
+ const o = Z("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
713
+ return /* @__PURE__ */ W("details", { className: o, id: `${n}`, children: [
714
+ /* @__PURE__ */ W("summary", { className: "rpf-accordion__title", role: "button", children: [
715
715
  t,
716
- /* @__PURE__ */ w("span", { className: "rpf-accordion__icon" })
716
+ /* @__PURE__ */ y("span", { className: "rpf-accordion__icon" })
717
717
  ] }),
718
- /* @__PURE__ */ w(i, { className: "rpf-accordion__text", children: e })
718
+ /* @__PURE__ */ y(i, { className: "rpf-accordion__text", children: e })
719
719
  ] });
720
720
  };
721
721
  vr.propTypes = {
@@ -733,17 +733,25 @@ const Re = ({
733
733
  variant: i = "",
734
734
  size: s = "default",
735
735
  icon: a = "",
736
- iconOnly: l = !1,
736
+ iconOnly: u = !1,
737
737
  iconPosition: c = "left",
738
738
  fullWidth: f = !1,
739
739
  disabled: d = !1,
740
- onClick: h = () => {
740
+ loading: h,
741
+ loadingText: l = "Loading",
742
+ onClick: v = () => {
741
743
  },
742
- "aria-label": u = "",
743
- linkComponent: v
744
+ "aria-label": p = "",
745
+ linkComponent: O
744
746
  // to pass in react-router-dom Link component
745
747
  }) => {
746
- const p = a && l, O = K(
748
+ const A = a && u, N = !!h, g = h !== void 0, T = (L) => {
749
+ if (N) {
750
+ L.preventDefault();
751
+ return;
752
+ }
753
+ v == null || v(L);
754
+ }, b = Z(
747
755
  // Static classes
748
756
  "rpf-button",
749
757
  // Conditional classes
@@ -751,39 +759,53 @@ const Re = ({
751
759
  [`rpf-button--${o}`]: o,
752
760
  "rpf-button--danger": i === "danger",
753
761
  "rpf-button--sm": s === "small",
754
- "rpf-button--icon-only": p,
762
+ "rpf-button--icon-only": A,
755
763
  "rpf-button--full-width": f,
764
+ "rpf-button--loading": N,
756
765
  disabled: d
757
766
  },
758
767
  n
759
768
  );
760
- let A = "rpf-button__icon";
761
- or.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
762
- const k = (b, I) => !I || c !== b ? null : typeof I == "string" ? /* @__PURE__ */ w("span", { className: A, children: I }) : I, y = () => e && !p && /* @__PURE__ */ w("span", { className: "text", children: e }), T = /* @__PURE__ */ B(ke, { children: [
763
- k("left", a),
764
- y(),
765
- k("right", a)
766
- ] });
767
- return t ? /* @__PURE__ */ w(
768
- v || "a",
769
+ let F = "rpf-button__icon";
770
+ or.isValidElement(a) ? F += " icon" : F += " material-symbols-sharp";
771
+ const Y = (L, V) => !V || c !== L ? null : typeof V == "string" ? /* @__PURE__ */ y("span", { className: F, children: V }) : V, K = /* @__PURE__ */ y("span", { className: "rpf-button__spinner", "aria-hidden": "true" }), Q = () => A || !e && !N ? null : /* @__PURE__ */ W("span", { className: "text", children: [
772
+ /* @__PURE__ */ y("span", { className: N ? "text__idle--hidden" : void 0, children: e }),
773
+ N && /* @__PURE__ */ W("span", { className: "text__loading", children: [
774
+ K,
775
+ l
776
+ ] })
777
+ ] }), X = /* @__PURE__ */ W(Pe, { children: [
778
+ N ? A ? K : null : Y("left", a),
779
+ Q(),
780
+ !N && Y("right", a)
781
+ ] }), z = N && (A || p) ? [p, l].filter(Boolean).join(", ") : p, B = N ? !0 : void 0, te = N ? !0 : void 0, I = t ? /* @__PURE__ */ y(
782
+ O || "a",
769
783
  {
770
- className: O,
771
- ...v ? { to: t } : { href: t, role: "button" },
772
- onClick: h,
773
- "aria-label": u,
774
- children: T
775
- }
776
- ) : /* @__PURE__ */ w(
784
+ className: b,
785
+ ...O ? { to: t } : { href: t, role: "button" },
786
+ onClick: T,
787
+ "aria-label": z,
788
+ "aria-disabled": B,
789
+ "aria-busy": te,
790
+ children: X
791
+ }
792
+ ) : /* @__PURE__ */ y(
777
793
  "button",
778
794
  {
779
- className: O,
795
+ className: b,
780
796
  title: r,
781
- onClick: h,
797
+ onClick: T,
782
798
  disabled: d,
783
- "aria-label": u,
784
- children: T
799
+ "aria-label": z,
800
+ "aria-disabled": B,
801
+ "aria-busy": te,
802
+ children: X
785
803
  }
786
804
  );
805
+ return g ? /* @__PURE__ */ W(Pe, { children: [
806
+ I,
807
+ /* @__PURE__ */ y("span", { className: "rpf-visually-hidden", role: "status", children: N ? l : "" })
808
+ ] }) : I;
787
809
  }, Ni = ({
788
810
  title: e,
789
811
  text: t,
@@ -792,11 +814,11 @@ const Re = ({
792
814
  type: o,
793
815
  actions: i,
794
816
  onClose: s
795
- }) => /* @__PURE__ */ B("div", { className: `rpf-alert rpf-alert--${o}`, children: [
796
- /* @__PURE__ */ B("div", { className: "rpf-alert__header", children: [
797
- /* @__PURE__ */ w("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
- r ? /* @__PURE__ */ w("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ w("p", { className: "rpf-alert__title", children: e }) : null,
799
- !!s && /* @__PURE__ */ w("div", { className: "rpf-alert__close", children: /* @__PURE__ */ w(
817
+ }) => /* @__PURE__ */ W("div", { className: `rpf-alert rpf-alert--${o}`, children: [
818
+ /* @__PURE__ */ W("div", { className: "rpf-alert__header", children: [
819
+ /* @__PURE__ */ y("span", { className: "rpf-alert__icon material-symbols-sharp" }),
820
+ r ? /* @__PURE__ */ y("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ y("p", { className: "rpf-alert__title", children: e }) : null,
821
+ !!s && /* @__PURE__ */ y("div", { className: "rpf-alert__close", children: /* @__PURE__ */ y(
800
822
  Re,
801
823
  {
802
824
  type: "tertiary",
@@ -807,9 +829,9 @@ const Re = ({
807
829
  }
808
830
  ) })
809
831
  ] }),
810
- (t || n || i) && /* @__PURE__ */ B("div", { className: "rpf-alert__body", children: [
811
- t ? /* @__PURE__ */ w("p", { children: t }) : n ? /* @__PURE__ */ w("div", { children: n }) : null,
812
- i && i.length > 0 && /* @__PURE__ */ w("div", { className: "rpf-alert__actions", children: i.map((a, l) => /* @__PURE__ */ w(
832
+ (t || n || i) && /* @__PURE__ */ W("div", { className: "rpf-alert__body", children: [
833
+ t ? /* @__PURE__ */ y("p", { children: t }) : n ? /* @__PURE__ */ y("div", { children: n }) : null,
834
+ i && i.length > 0 && /* @__PURE__ */ y("div", { className: "rpf-alert__actions", children: i.map((a, u) => /* @__PURE__ */ y(
813
835
  Re,
814
836
  {
815
837
  text: a.label,
@@ -818,7 +840,7 @@ const Re = ({
818
840
  href: a.href,
819
841
  onClick: a.onClick
820
842
  },
821
- l
843
+ u
822
844
  )) })
823
845
  ] })
824
846
  ] }), ki = ({
@@ -829,22 +851,22 @@ const Re = ({
829
851
  ...o
830
852
  }) => {
831
853
  const { className: i, ...s } = o;
832
- return /* @__PURE__ */ B(ke, { children: [
833
- /* @__PURE__ */ B(
854
+ return /* @__PURE__ */ W(Pe, { children: [
855
+ /* @__PURE__ */ W(
834
856
  "label",
835
857
  {
836
- className: K("rpf-input-checkbox", {
858
+ className: Z("rpf-input-checkbox", {
837
859
  "rpf-input-checkbox--error": n,
838
860
  className: i
839
861
  }),
840
862
  children: [
841
- /* @__PURE__ */ w("input", { id: t, name: r, type: "checkbox", ...s }),
863
+ /* @__PURE__ */ y("input", { id: t, name: r, type: "checkbox", ...s }),
842
864
  e
843
865
  ]
844
866
  }
845
867
  ),
846
- n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
847
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
868
+ n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
869
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
848
870
  n
849
871
  ] })
850
872
  ] });
@@ -855,23 +877,23 @@ const Re = ({
855
877
  legendText: n,
856
878
  legendHintText: o = "",
857
879
  children: i
858
- }) => /* @__PURE__ */ B(
880
+ }) => /* @__PURE__ */ W(
859
881
  "fieldset",
860
882
  {
861
- className: K("rpf-fieldset", {
883
+ className: Z("rpf-fieldset", {
862
884
  "rpf-fieldset--disabled": e,
863
885
  "rpf-fieldset--full-width": r,
864
886
  "rpf-fieldset--error": t
865
887
  }),
866
888
  disabled: e,
867
889
  children: [
868
- /* @__PURE__ */ B("legend", { className: "rpf-label", children: [
890
+ /* @__PURE__ */ W("legend", { className: "rpf-label", children: [
869
891
  n,
870
- o.length > 0 ? /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o }) : null
892
+ o.length > 0 ? /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: o }) : null
871
893
  ] }),
872
- /* @__PURE__ */ w("div", { className: "rpf-fieldset__inputs", children: i }),
873
- t.length > 0 ? /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
874
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
894
+ /* @__PURE__ */ y("div", { className: "rpf-fieldset__inputs", children: i }),
895
+ t.length > 0 ? /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
896
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
875
897
  t
876
898
  ] }) : null
877
899
  ]
@@ -883,23 +905,23 @@ const Re = ({
883
905
  disabled: n = !1,
884
906
  error: o = "",
885
907
  hint: i = ""
886
- }) => /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
887
- (t || i) && /* @__PURE__ */ B(
908
+ }) => /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
909
+ (t || i) && /* @__PURE__ */ W(
888
910
  "label",
889
911
  {
890
912
  htmlFor: e,
891
- className: K("rpf-label", {
913
+ className: Z("rpf-label", {
892
914
  "rpf-label--disabled": n
893
915
  }),
894
916
  children: [
895
917
  t,
896
- /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: i })
918
+ /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: i })
897
919
  ]
898
920
  }
899
921
  ),
900
922
  r,
901
- o && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
902
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
923
+ o && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
924
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
903
925
  o
904
926
  ] })
905
927
  ] }), Mi = ({
@@ -907,16 +929,16 @@ const Re = ({
907
929
  inputFieldId: t,
908
930
  disabled: r = !1,
909
931
  hint: n = ""
910
- }) => /* @__PURE__ */ w("div", { className: "rpf-label", children: /* @__PURE__ */ B(
932
+ }) => /* @__PURE__ */ y("div", { className: "rpf-label", children: /* @__PURE__ */ W(
911
933
  "label",
912
934
  {
913
935
  htmlFor: t,
914
- className: K("rpf-label", {
936
+ className: Z("rpf-label", {
915
937
  "rpf-label--disabled": r
916
938
  }),
917
939
  children: [
918
940
  e,
919
- n && /* @__PURE__ */ w("div", { className: "rpf-label__hint", children: n })
941
+ n && /* @__PURE__ */ y("div", { className: "rpf-label__hint", children: n })
920
942
  ]
921
943
  }
922
944
  ) }), Di = ({
@@ -928,41 +950,41 @@ const Re = ({
928
950
  id: i,
929
951
  hint: s = "",
930
952
  showPasswordLabel: a = "Show",
931
- hidePasswordLabel: l = "Hide",
953
+ hidePasswordLabel: u = "Hide",
932
954
  forgotPasswordLabel: c = "Forgot password?",
933
955
  forgotPasswordHref: f,
934
956
  ...d
935
957
  }) => {
936
- const [h, u] = On(!1);
937
- return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
938
- /* @__PURE__ */ B(
958
+ const [h, l] = On(!1);
959
+ return /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
960
+ /* @__PURE__ */ W(
939
961
  "label",
940
962
  {
941
963
  htmlFor: i,
942
- className: K("rpf-label", {
964
+ className: Z("rpf-label", {
943
965
  "rpf-label--disabled": e,
944
966
  "rpf-label--readonly": t
945
967
  }),
946
968
  children: [
947
969
  o,
948
- s && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: s })
970
+ s && /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: s })
949
971
  ]
950
972
  }
951
973
  ),
952
- /* @__PURE__ */ B(
974
+ /* @__PURE__ */ W(
953
975
  "div",
954
976
  {
955
- className: K("rpf-input-password__container", {
977
+ className: Z("rpf-input-password__container", {
956
978
  "rpf-input-password__container--full-width": r,
957
979
  "rpf-input-password__container--error": n,
958
980
  "rpf-input-password__container--disabled": e,
959
981
  "rpf-input-password__container--readonly": t
960
982
  }),
961
983
  children: [
962
- /* @__PURE__ */ w(
984
+ /* @__PURE__ */ y(
963
985
  "input",
964
986
  {
965
- className: K("rpf-input rpf-input-password", {
987
+ className: Z("rpf-input rpf-input-password", {
966
988
  "rpf-input--disabled": e,
967
989
  "rpf-input--readonly": t,
968
990
  "rpf-input--error": n,
@@ -975,11 +997,11 @@ const Re = ({
975
997
  ...d
976
998
  }
977
999
  ),
978
- /* @__PURE__ */ w(
1000
+ /* @__PURE__ */ y(
979
1001
  "button",
980
1002
  {
981
1003
  type: "button",
982
- className: K(
1004
+ className: Z(
983
1005
  "rpf-button rpf-button--tertiary rpf-input-password__button",
984
1006
  {
985
1007
  "rpf-button--disabled": e,
@@ -987,18 +1009,18 @@ const Re = ({
987
1009
  }
988
1010
  ),
989
1011
  disabled: e,
990
- onClick: () => u((v) => !v),
991
- children: h ? l : a
1012
+ onClick: () => l((v) => !v),
1013
+ children: h ? u : a
992
1014
  }
993
1015
  )
994
1016
  ]
995
1017
  }
996
1018
  ),
997
- n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
998
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1019
+ n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
1020
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
999
1021
  n
1000
1022
  ] }),
1001
- f && /* @__PURE__ */ w("a", { href: f, className: "rpf-link rpf-link--block", children: c })
1023
+ f && /* @__PURE__ */ y("a", { href: f, className: "rpf-link rpf-link--block", children: c })
1002
1024
  ] });
1003
1025
  }, Li = ({
1004
1026
  label: e,
@@ -1006,15 +1028,15 @@ const Re = ({
1006
1028
  name: r,
1007
1029
  fullWidth: n = !1,
1008
1030
  ...o
1009
- }) => /* @__PURE__ */ B(
1031
+ }) => /* @__PURE__ */ W(
1010
1032
  "label",
1011
1033
  {
1012
- className: K("rpf-input-radio", {
1034
+ className: Z("rpf-input-radio", {
1013
1035
  "rpf-input-radio--disabled": o.disabled,
1014
1036
  "rpf-input--full-width": n
1015
1037
  }),
1016
1038
  children: [
1017
- /* @__PURE__ */ w("input", { type: "radio", id: t, name: r, ...o }),
1039
+ /* @__PURE__ */ y("input", { type: "radio", id: t, name: r, ...o }),
1018
1040
  e
1019
1041
  ]
1020
1042
  }
@@ -1028,27 +1050,27 @@ const Re = ({
1028
1050
  defaultValue: s = "",
1029
1051
  onClick: a = () => {
1030
1052
  },
1031
- onChange: l = () => {
1053
+ onChange: u = () => {
1032
1054
  }
1033
- }) => /* @__PURE__ */ w("search", { children: /* @__PURE__ */ B("form", { className: "rpf-input-field", onSubmit: a, children: [
1034
- /* @__PURE__ */ B(
1055
+ }) => /* @__PURE__ */ y("search", { children: /* @__PURE__ */ W("form", { className: "rpf-input-field", onSubmit: a, children: [
1056
+ /* @__PURE__ */ W(
1035
1057
  "label",
1036
1058
  {
1037
1059
  htmlFor: t,
1038
- className: K("rpf-label", {
1060
+ className: Z("rpf-label", {
1039
1061
  "rpf-label--disabled": r
1040
1062
  }),
1041
1063
  children: [
1042
1064
  e,
1043
- o && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o })
1065
+ o && /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: o })
1044
1066
  ]
1045
1067
  }
1046
1068
  ),
1047
- /* @__PURE__ */ B("div", { className: "rpf-input-search-container", children: [
1048
- /* @__PURE__ */ w(
1069
+ /* @__PURE__ */ W("div", { className: "rpf-input-search-container", children: [
1070
+ /* @__PURE__ */ y(
1049
1071
  "input",
1050
1072
  {
1051
- className: K("rpf-input rpf-input-search", {
1073
+ className: Z("rpf-input rpf-input-search", {
1052
1074
  "rpf-input--disabled": r,
1053
1075
  "rpf-input--error": n
1054
1076
  }),
@@ -1059,25 +1081,25 @@ const Re = ({
1059
1081
  "aria-label": "Search",
1060
1082
  defaultValue: s,
1061
1083
  placeholder: i,
1062
- onChange: l
1084
+ onChange: u
1063
1085
  }
1064
1086
  ),
1065
- /* @__PURE__ */ w(
1087
+ /* @__PURE__ */ y(
1066
1088
  "button",
1067
1089
  {
1068
1090
  type: "submit",
1069
- className: K("rpf-button rpf-button-search", {
1091
+ className: Z("rpf-button rpf-button-search", {
1070
1092
  "rpf-button--disabled": r,
1071
1093
  "rpf-button--error": n
1072
1094
  }),
1073
1095
  disabled: r,
1074
1096
  onClick: a,
1075
- children: /* @__PURE__ */ w("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1097
+ children: /* @__PURE__ */ y("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1076
1098
  }
1077
1099
  )
1078
1100
  ] }),
1079
- n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
1080
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1101
+ n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
1102
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1081
1103
  n
1082
1104
  ] })
1083
1105
  ] }) }), $i = ({
@@ -1089,12 +1111,12 @@ const Re = ({
1089
1111
  error: i = "",
1090
1112
  fullWidth: s = !1,
1091
1113
  hint: a = "",
1092
- onChange: l = () => {
1114
+ onChange: u = () => {
1093
1115
  },
1094
1116
  placeholder: c = "",
1095
1117
  value: f = "",
1096
1118
  ...d
1097
- }) => /* @__PURE__ */ w(
1119
+ }) => /* @__PURE__ */ y(
1098
1120
  Dt,
1099
1121
  {
1100
1122
  id: e,
@@ -1102,22 +1124,22 @@ const Re = ({
1102
1124
  error: i,
1103
1125
  hint: a,
1104
1126
  label: t,
1105
- children: /* @__PURE__ */ B(
1127
+ children: /* @__PURE__ */ W(
1106
1128
  "select",
1107
1129
  {
1108
- className: K("rpf-input rpf-input-select", {
1130
+ className: Z("rpf-input rpf-input-select", {
1109
1131
  "rpf-input--error": i,
1110
1132
  "rpf-input--full-width": s
1111
1133
  }),
1112
1134
  disabled: o,
1113
1135
  id: e,
1114
1136
  name: r,
1115
- onChange: l,
1137
+ onChange: u,
1116
1138
  value: f,
1117
1139
  ...d,
1118
1140
  children: [
1119
- !f && !!c && /* @__PURE__ */ w("option", { value: "", disabled: !0, children: c }),
1120
- n.map((h) => /* @__PURE__ */ w("option", { value: h.key, children: h.value }, h.key))
1141
+ !f && !!c && /* @__PURE__ */ y("option", { value: "", disabled: !0, children: c }),
1142
+ n.map((h) => /* @__PURE__ */ y("option", { value: h.key, children: h.value }, h.key))
1121
1143
  ]
1122
1144
  }
1123
1145
  )
@@ -1132,19 +1154,19 @@ const Re = ({
1132
1154
  reverse: i = !1,
1133
1155
  hint: s = "",
1134
1156
  alignStart: a = !1,
1135
- hideLabel: l = !1,
1157
+ hideLabel: u = !1,
1136
1158
  icon: c = !1,
1137
1159
  className: f,
1138
1160
  disabled: d = !1,
1139
1161
  "aria-describedby": h,
1140
- ...u
1162
+ ...l
1141
1163
  }, v) => {
1142
1164
  const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
1143
- return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
1144
- /* @__PURE__ */ B(
1165
+ return /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
1166
+ /* @__PURE__ */ W(
1145
1167
  "label",
1146
1168
  {
1147
- className: K(
1169
+ className: Z(
1148
1170
  "rpf-switch",
1149
1171
  {
1150
1172
  "rpf-switch--full-width": o,
@@ -1157,8 +1179,8 @@ const Re = ({
1157
1179
  f
1158
1180
  ),
1159
1181
  children: [
1160
- /* @__PURE__ */ B("span", { className: "rpf-switch__track", children: [
1161
- /* @__PURE__ */ w(
1182
+ /* @__PURE__ */ W("span", { className: "rpf-switch__track", children: [
1183
+ /* @__PURE__ */ y(
1162
1184
  "input",
1163
1185
  {
1164
1186
  ref: v,
@@ -1170,29 +1192,29 @@ const Re = ({
1170
1192
  disabled: d,
1171
1193
  "aria-invalid": n ? !0 : void 0,
1172
1194
  "aria-describedby": O,
1173
- ...u
1195
+ ...l
1174
1196
  }
1175
1197
  ),
1176
- /* @__PURE__ */ w("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ w("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1198
+ /* @__PURE__ */ y("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ y("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1177
1199
  ] }),
1178
- /* @__PURE__ */ B(
1200
+ /* @__PURE__ */ W(
1179
1201
  "span",
1180
1202
  {
1181
- className: K("rpf-label", "rpf-switch__label", {
1203
+ className: Z("rpf-label", "rpf-switch__label", {
1182
1204
  "rpf-label--disabled": d,
1183
- "rpf-visually-hidden": l
1205
+ "rpf-visually-hidden": u
1184
1206
  }),
1185
1207
  children: [
1186
- /* @__PURE__ */ w("span", { children: e }),
1187
- s ? /* @__PURE__ */ w("span", { className: "rpf-label__hint", children: s }) : null
1208
+ /* @__PURE__ */ y("span", { children: e }),
1209
+ s ? /* @__PURE__ */ y("span", { className: "rpf-label__hint", children: s }) : null
1188
1210
  ]
1189
1211
  }
1190
1212
  )
1191
1213
  ]
1192
1214
  }
1193
1215
  ),
1194
- n ? /* @__PURE__ */ B("div", { id: p, className: "rpf-error-message", children: [
1195
- /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
1216
+ n ? /* @__PURE__ */ W("div", { id: p, className: "rpf-error-message", children: [
1217
+ /* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
1196
1218
  n
1197
1219
  ] }) : null
1198
1220
  ] });
@@ -1208,21 +1230,21 @@ const ji = ({
1208
1230
  readOnly: i = !1,
1209
1231
  error: s = "",
1210
1232
  fullWidth: a = !1,
1211
- hint: l = "",
1233
+ hint: u = "",
1212
1234
  onChange: c = () => {
1213
1235
  }
1214
- }) => /* @__PURE__ */ w(
1236
+ }) => /* @__PURE__ */ y(
1215
1237
  Dt,
1216
1238
  {
1217
1239
  id: e,
1218
1240
  disabled: o,
1219
1241
  error: s,
1220
- hint: l,
1242
+ hint: u,
1221
1243
  label: t,
1222
- children: /* @__PURE__ */ w(
1244
+ children: /* @__PURE__ */ y(
1223
1245
  "textarea",
1224
1246
  {
1225
- className: K("rpf-input rpf-input-textarea", {
1247
+ className: Z("rpf-input rpf-input-textarea", {
1226
1248
  "rpf-input--error": s,
1227
1249
  "rpf-input--full-width": a,
1228
1250
  "rpf-input--disabled": o
@@ -1245,7 +1267,7 @@ const ji = ({
1245
1267
  hint: i = "",
1246
1268
  type: s = "text",
1247
1269
  ...a
1248
- }) => /* @__PURE__ */ w(
1270
+ }) => /* @__PURE__ */ y(
1249
1271
  Dt,
1250
1272
  {
1251
1273
  id: e,
@@ -1253,10 +1275,10 @@ const ji = ({
1253
1275
  error: n,
1254
1276
  hint: i,
1255
1277
  label: r,
1256
- children: /* @__PURE__ */ w(
1278
+ children: /* @__PURE__ */ y(
1257
1279
  "input",
1258
1280
  {
1259
- className: K("rpf-input rpf-input-text", {
1281
+ className: Z("rpf-input rpf-input-text", {
1260
1282
  "rpf-input--error": n,
1261
1283
  "rpf-input--full-width": o
1262
1284
  }),
@@ -1300,25 +1322,25 @@ const Bi = ({
1300
1322
  primaryButtonText: i,
1301
1323
  onClickPrimaryButton: s,
1302
1324
  secondaryButtonText: a,
1303
- secondaryButtonLink: l,
1325
+ secondaryButtonLink: u,
1304
1326
  onClickSecondaryButton: c,
1305
1327
  tertiaryButtonText: f,
1306
1328
  tertiaryButtonLink: d,
1307
1329
  onClickTertiaryButton: h,
1308
- showCloseButton: u = !0
1330
+ showCloseButton: l = !0
1309
1331
  }) => {
1310
1332
  const { dialogRef: v, contentRef: p } = yr(e, t);
1311
- return /* @__PURE__ */ w(
1333
+ return /* @__PURE__ */ y(
1312
1334
  "dialog",
1313
1335
  {
1314
1336
  ref: v,
1315
1337
  className: "rpf-modal",
1316
1338
  "aria-labelledby": "modal-heading",
1317
1339
  "aria-describedby": "modal-description",
1318
- children: /* @__PURE__ */ B("div", { ref: p, className: "rpf-modal__wrapper", children: [
1319
- /* @__PURE__ */ B("div", { className: "rpf-modal__header", children: [
1320
- /* @__PURE__ */ w("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1321
- u && /* @__PURE__ */ w(
1340
+ children: /* @__PURE__ */ W("div", { ref: p, className: "rpf-modal__wrapper", children: [
1341
+ /* @__PURE__ */ W("div", { className: "rpf-modal__header", children: [
1342
+ /* @__PURE__ */ y("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1343
+ l && /* @__PURE__ */ y(
1322
1344
  Re,
1323
1345
  {
1324
1346
  icon: "close",
@@ -1329,9 +1351,9 @@ const Bi = ({
1329
1351
  }
1330
1352
  )
1331
1353
  ] }),
1332
- /* @__PURE__ */ w("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1333
- /* @__PURE__ */ B("div", { className: "rpf-modal__buttons", children: [
1334
- /* @__PURE__ */ w(
1354
+ /* @__PURE__ */ y("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1355
+ /* @__PURE__ */ W("div", { className: "rpf-modal__buttons", children: [
1356
+ /* @__PURE__ */ y(
1335
1357
  Re,
1336
1358
  {
1337
1359
  text: i,
@@ -1340,16 +1362,16 @@ const Bi = ({
1340
1362
  type: "primary"
1341
1363
  }
1342
1364
  ),
1343
- a && /* @__PURE__ */ w(
1365
+ a && /* @__PURE__ */ y(
1344
1366
  Re,
1345
1367
  {
1346
1368
  text: a,
1347
- href: l,
1369
+ href: u,
1348
1370
  onClick: c,
1349
1371
  type: "secondary"
1350
1372
  }
1351
1373
  ),
1352
- f && /* @__PURE__ */ w(
1374
+ f && /* @__PURE__ */ y(
1353
1375
  Re,
1354
1376
  {
1355
1377
  text: f,
@@ -1363,8 +1385,8 @@ const Bi = ({
1363
1385
  }
1364
1386
  );
1365
1387
  }, gr = ({ className: e, children: t }) => {
1366
- const r = K("rpf-menu", e);
1367
- return /* @__PURE__ */ w("ul", { className: r, children: t });
1388
+ const r = Z("rpf-menu", e);
1389
+ return /* @__PURE__ */ y("ul", { className: r, children: t });
1368
1390
  };
1369
1391
  function Qe() {
1370
1392
  return typeof window < "u";
@@ -1389,7 +1411,7 @@ function ee(e) {
1389
1411
  function ne(e) {
1390
1412
  return Qe() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
1391
1413
  }
1392
- function St(e) {
1414
+ function Ct(e) {
1393
1415
  return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
1394
1416
  }
1395
1417
  function Ie(e) {
@@ -1458,10 +1480,10 @@ function pe(e) {
1458
1480
  // Step into the shadow DOM of the parent of a slotted node.
1459
1481
  e.assignedSlot || // DOM Element detected.
1460
1482
  e.parentNode || // ShadowRoot detected.
1461
- St(e) && e.host || // Fallback.
1483
+ Ct(e) && e.host || // Fallback.
1462
1484
  ue(e)
1463
1485
  );
1464
- return St(t) ? t.host : t;
1486
+ return Ct(t) ? t.host : t;
1465
1487
  }
1466
1488
  function Mn(e) {
1467
1489
  const t = pe(e);
@@ -1472,12 +1494,12 @@ function ve(e, t, r) {
1472
1494
  t === void 0 && (t = []), r === void 0 && (r = !0);
1473
1495
  const o = Mn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
1474
1496
  if (i) {
1475
- const a = Ct(s);
1497
+ const a = St(s);
1476
1498
  return t.concat(s, s.visualViewport || [], Ie(o) ? o : [], a && r ? ve(a) : []);
1477
1499
  } else
1478
1500
  return t.concat(o, ve(o, [], r));
1479
1501
  }
1480
- function Ct(e) {
1502
+ function St(e) {
1481
1503
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1482
1504
  }
1483
1505
  function we(e) {
@@ -1494,7 +1516,7 @@ function oe(e, t) {
1494
1516
  const r = t.getRootNode == null ? void 0 : t.getRootNode();
1495
1517
  if (e.contains(t))
1496
1518
  return !0;
1497
- if (r && St(r)) {
1519
+ if (r && Ct(r)) {
1498
1520
  let n = t;
1499
1521
  for (; n; ) {
1500
1522
  if (e === n)
@@ -1518,10 +1540,10 @@ function Dn() {
1518
1540
  return r + "/" + n;
1519
1541
  }).join(" ") : navigator.userAgent;
1520
1542
  }
1521
- function Sr(e) {
1543
+ function Cr(e) {
1522
1544
  return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
1523
1545
  }
1524
- function Cr(e) {
1546
+ function Sr(e) {
1525
1547
  return Or() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
1526
1548
  e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
1527
1549
  }
@@ -1583,7 +1605,7 @@ function tn(e, t, r) {
1583
1605
  function rt(e, t) {
1584
1606
  return typeof e == "function" ? e(t) : e;
1585
1607
  }
1586
- function Se(e) {
1608
+ function Ce(e) {
1587
1609
  return e.split("-")[0];
1588
1610
  }
1589
1611
  function ot(e) {
@@ -1630,11 +1652,11 @@ function $r(e, t, r) {
1630
1652
  }
1631
1653
  function jr(e, t, r, n) {
1632
1654
  const o = ot(e);
1633
- let i = $r(Se(e), r === "start", n);
1655
+ let i = $r(Ce(e), r === "start", n);
1634
1656
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
1635
1657
  }
1636
1658
  function Ye(e) {
1637
- const t = Se(e);
1659
+ const t = Ce(e);
1638
1660
  return Ir[t] + e.slice(t.length);
1639
1661
  }
1640
1662
  function Wr(e) {
@@ -1676,7 +1698,7 @@ function Ue(e) {
1676
1698
  * tabbable 6.4.0
1677
1699
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1678
1700
  */
1679
- var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), Wn = typeof Element > "u", Pe = Wn ? function() {
1701
+ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), Wn = typeof Element > "u", Ne = Wn ? function() {
1680
1702
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !Wn && Element.prototype.getRootNode ? function(e) {
1681
1703
  var t;
1682
1704
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -1696,27 +1718,27 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1696
1718
  if (ze(t))
1697
1719
  return [];
1698
1720
  var o = Array.prototype.slice.apply(t.querySelectorAll(He));
1699
- return r && Pe.call(t, He) && o.unshift(t), o = o.filter(n), o;
1721
+ return r && Ne.call(t, He) && o.unshift(t), o = o.filter(n), o;
1700
1722
  }, At = function(t, r, n) {
1701
1723
  for (var o = [], i = Array.from(t); i.length; ) {
1702
1724
  var s = i.shift();
1703
1725
  if (!ze(s, !1))
1704
1726
  if (s.tagName === "SLOT") {
1705
- var a = s.assignedElements(), l = a.length ? a : s.children, c = At(l, !0, n);
1727
+ var a = s.assignedElements(), u = a.length ? a : s.children, c = At(u, !0, n);
1706
1728
  n.flatten ? o.push.apply(o, c) : o.push({
1707
1729
  scopeParent: s,
1708
1730
  candidates: c
1709
1731
  });
1710
1732
  } else {
1711
- var f = Pe.call(s, He);
1733
+ var f = Ne.call(s, He);
1712
1734
  f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
1713
1735
  var d = s.shadowRoot || // check for an undisclosed shadow
1714
1736
  typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !ze(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
1715
1737
  if (d && h) {
1716
- var u = At(d === !0 ? s.children : d.children, !0, n);
1717
- n.flatten ? o.push.apply(o, u) : o.push({
1738
+ var l = At(d === !0 ? s.children : d.children, !0, n);
1739
+ n.flatten ? o.push.apply(o, l) : o.push({
1718
1740
  scopeParent: s,
1719
- candidates: u
1741
+ candidates: l
1720
1742
  });
1721
1743
  } else
1722
1744
  i.unshift.apply(i, s.children);
@@ -1770,8 +1792,8 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1770
1792
  }, Qr = function(t) {
1771
1793
  var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
1772
1794
  if (n && n !== t) {
1773
- var s, a, l;
1774
- for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && o; ) {
1795
+ var s, a, u;
1796
+ for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (u = t.ownerDocument) !== null && u !== void 0 && u.contains(t)); !i && o; ) {
1775
1797
  var c, f, d;
1776
1798
  n = Ke(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
1777
1799
  }
@@ -1800,20 +1822,20 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1800
1822
  }
1801
1823
  if (getComputedStyle(t).visibility === "hidden")
1802
1824
  return !0;
1803
- var s = Pe.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
1804
- if (Pe.call(a, "details:not([open]) *"))
1825
+ var s = Ne.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
1826
+ if (Ne.call(a, "details:not([open]) *"))
1805
1827
  return !0;
1806
1828
  if (!n || n === "full" || // full-native can run this branch when it falls through in case
1807
1829
  // Element#checkVisibility is unsupported
1808
1830
  n === "full-native" || n === "legacy-full") {
1809
1831
  if (typeof o == "function") {
1810
- for (var l = t; t; ) {
1832
+ for (var u = t; t; ) {
1811
1833
  var c = t.parentElement, f = Ke(t);
1812
1834
  if (c && !c.shadowRoot && o(c) === !0)
1813
1835
  return on(t);
1814
1836
  t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c;
1815
1837
  }
1816
- t = l;
1838
+ t = u;
1817
1839
  }
1818
1840
  if (Qr(t))
1819
1841
  return !t.getClientRects().length;
@@ -1829,7 +1851,7 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1829
1851
  for (var n = 0; n < r.children.length; n++) {
1830
1852
  var o = r.children.item(n);
1831
1853
  if (o.tagName === "LEGEND")
1832
- return Pe.call(r, "fieldset[disabled] *") ? !0 : !o.contains(t);
1854
+ return Ne.call(r, "fieldset[disabled] *") ? !0 : !o.contains(t);
1833
1855
  }
1834
1856
  return !0;
1835
1857
  }
@@ -1847,10 +1869,10 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1847
1869
  }, Yn = function(t) {
1848
1870
  var r = [], n = [];
1849
1871
  return t.forEach(function(o, i) {
1850
- var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Yn(o.candidates) : a;
1851
- l === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1872
+ var s = !!o.scopeParent, a = s ? o.scopeParent : o, u = Ur(a, s), c = s ? Yn(o.candidates) : a;
1873
+ u === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1852
1874
  documentOrder: i,
1853
- tabIndex: l,
1875
+ tabIndex: u,
1854
1876
  item: o,
1855
1877
  isScope: s,
1856
1878
  content: c
@@ -1870,55 +1892,55 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1870
1892
  }, oo = function(t, r) {
1871
1893
  if (r = r || {}, !t)
1872
1894
  throw new Error("No node provided");
1873
- return Pe.call(t, He) === !1 ? !1 : Pt(r, t);
1895
+ return Ne.call(t, He) === !1 ? !1 : Pt(r, t);
1874
1896
  };
1875
1897
  function sn(e, t, r) {
1876
1898
  let {
1877
1899
  reference: n,
1878
1900
  floating: o
1879
1901
  } = e;
1880
- const i = he(t), s = jn(t), a = $n(s), l = Se(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
1881
- let u;
1882
- switch (l) {
1902
+ const i = he(t), s = jn(t), a = $n(s), u = Ce(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
1903
+ let l;
1904
+ switch (u) {
1883
1905
  case "top":
1884
- u = {
1906
+ l = {
1885
1907
  x: f,
1886
1908
  y: n.y - o.height
1887
1909
  };
1888
1910
  break;
1889
1911
  case "bottom":
1890
- u = {
1912
+ l = {
1891
1913
  x: f,
1892
1914
  y: n.y + n.height
1893
1915
  };
1894
1916
  break;
1895
1917
  case "right":
1896
- u = {
1918
+ l = {
1897
1919
  x: n.x + n.width,
1898
1920
  y: d
1899
1921
  };
1900
1922
  break;
1901
1923
  case "left":
1902
- u = {
1924
+ l = {
1903
1925
  x: n.x - o.width,
1904
1926
  y: d
1905
1927
  };
1906
1928
  break;
1907
1929
  default:
1908
- u = {
1930
+ l = {
1909
1931
  x: n.x,
1910
1932
  y: n.y
1911
1933
  };
1912
1934
  }
1913
1935
  switch (ot(t)) {
1914
1936
  case "start":
1915
- u[s] -= h * (r && c ? -1 : 1);
1937
+ l[s] -= h * (r && c ? -1 : 1);
1916
1938
  break;
1917
1939
  case "end":
1918
- u[s] += h * (r && c ? -1 : 1);
1940
+ l[s] += h * (r && c ? -1 : 1);
1919
1941
  break;
1920
1942
  }
1921
- return u;
1943
+ return l;
1922
1944
  }
1923
1945
  async function io(e, t) {
1924
1946
  var r;
@@ -1929,24 +1951,24 @@ async function io(e, t) {
1929
1951
  platform: i,
1930
1952
  rects: s,
1931
1953
  elements: a,
1932
- strategy: l
1954
+ strategy: u
1933
1955
  } = e, {
1934
1956
  boundary: c = "clippingAncestors",
1935
1957
  rootBoundary: f = "viewport",
1936
1958
  elementContext: d = "floating",
1937
1959
  altBoundary: h = !1,
1938
- padding: u = 0
1939
- } = rt(t, e), v = Br(u), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
1960
+ padding: l = 0
1961
+ } = rt(t, e), v = Br(l), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
1940
1962
  element: (r = await (i.isElement == null ? void 0 : i.isElement(O))) == null || r ? O : O.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
1941
1963
  boundary: c,
1942
1964
  rootBoundary: f,
1943
- strategy: l
1944
- })), k = d === "floating" ? {
1965
+ strategy: u
1966
+ })), N = d === "floating" ? {
1945
1967
  x: n,
1946
1968
  y: o,
1947
1969
  width: s.floating.width,
1948
1970
  height: s.floating.height
1949
- } : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
1971
+ } : s.reference, g = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(g)) ? await (i.getScale == null ? void 0 : i.getScale(g)) || {
1950
1972
  x: 1,
1951
1973
  y: 1
1952
1974
  } : {
@@ -1954,10 +1976,10 @@ async function io(e, t) {
1954
1976
  y: 1
1955
1977
  }, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1956
1978
  elements: a,
1957
- rect: k,
1958
- offsetParent: y,
1959
- strategy: l
1960
- }) : k);
1979
+ rect: N,
1980
+ offsetParent: g,
1981
+ strategy: u
1982
+ }) : N);
1961
1983
  return {
1962
1984
  top: (A.top - b.top + v.top) / T.y,
1963
1985
  bottom: (b.bottom - A.bottom + v.bottom) / T.y,
@@ -1974,7 +1996,7 @@ const so = 50, ao = async (e, t, r) => {
1974
1996
  } = r, a = s.detectOverflow ? s : {
1975
1997
  ...s,
1976
1998
  detectOverflow: io
1977
- }, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
1999
+ }, u = await (s.isRTL == null ? void 0 : s.isRTL(t));
1978
2000
  let c = await s.getElementRects({
1979
2001
  reference: e,
1980
2002
  floating: t,
@@ -1982,7 +2004,7 @@ const so = 50, ao = async (e, t, r) => {
1982
2004
  }), {
1983
2005
  x: f,
1984
2006
  y: d
1985
- } = sn(c, n, l), h = n, u = 0;
2007
+ } = sn(c, n, u), h = n, l = 0;
1986
2008
  const v = {};
1987
2009
  for (let p = 0; p < i.length; p++) {
1988
2010
  const O = i[p];
@@ -1990,13 +2012,13 @@ const so = 50, ao = async (e, t, r) => {
1990
2012
  continue;
1991
2013
  const {
1992
2014
  name: A,
1993
- fn: k
2015
+ fn: N
1994
2016
  } = O, {
1995
- x: y,
2017
+ x: g,
1996
2018
  y: T,
1997
2019
  data: b,
1998
- reset: I
1999
- } = await k({
2020
+ reset: F
2021
+ } = await N({
2000
2022
  x: f,
2001
2023
  y: d,
2002
2024
  initialPlacement: n,
@@ -2010,17 +2032,17 @@ const so = 50, ao = async (e, t, r) => {
2010
2032
  floating: t
2011
2033
  }
2012
2034
  });
2013
- f = y ?? f, d = T ?? d, v[A] = {
2035
+ f = g ?? f, d = T ?? d, v[A] = {
2014
2036
  ...v[A],
2015
2037
  ...b
2016
- }, I && u < so && (u++, typeof I == "object" && (I.placement && (h = I.placement), I.rects && (c = I.rects === !0 ? await s.getElementRects({
2038
+ }, F && l < so && (l++, typeof F == "object" && (F.placement && (h = F.placement), F.rects && (c = F.rects === !0 ? await s.getElementRects({
2017
2039
  reference: e,
2018
2040
  floating: t,
2019
2041
  strategy: o
2020
- }) : I.rects), {
2042
+ }) : F.rects), {
2021
2043
  x: f,
2022
2044
  y: d
2023
- } = sn(c, h, l)), p = -1);
2045
+ } = sn(c, h, u)), p = -1);
2024
2046
  }
2025
2047
  return {
2026
2048
  x: f,
@@ -2040,70 +2062,70 @@ const so = 50, ao = async (e, t, r) => {
2040
2062
  middlewareData: i,
2041
2063
  rects: s,
2042
2064
  initialPlacement: a,
2043
- platform: l,
2065
+ platform: u,
2044
2066
  elements: c
2045
2067
  } = t, {
2046
2068
  mainAxis: f = !0,
2047
2069
  crossAxis: d = !0,
2048
2070
  fallbackPlacements: h,
2049
- fallbackStrategy: u = "bestFit",
2071
+ fallbackStrategy: l = "bestFit",
2050
2072
  fallbackAxisSideDirection: v = "none",
2051
2073
  flipAlignment: p = !0,
2052
2074
  ...O
2053
2075
  } = rt(e, t);
2054
2076
  if ((r = i.arrow) != null && r.alignmentOffset)
2055
2077
  return {};
2056
- const A = Se(o), k = he(a), y = Se(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = h || (y || !p ? [Ye(a)] : Dr(a)), I = v !== "none";
2057
- !h && I && b.push(...jr(a, p, v, T));
2058
- const H = [a, ...b], z = await l.detectOverflow(t, O), Q = [];
2059
- let J = ((n = i.flip) == null ? void 0 : n.overflows) || [];
2060
- if (f && Q.push(z[A]), d) {
2061
- const X = Mr(o, s, T);
2062
- Q.push(z[X[0]], z[X[1]]);
2078
+ const A = Ce(o), N = he(a), g = Ce(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), b = h || (g || !p ? [Ye(a)] : Dr(a)), F = v !== "none";
2079
+ !h && F && b.push(...jr(a, p, v, T));
2080
+ const Y = [a, ...b], K = await u.detectOverflow(t, O), Q = [];
2081
+ let X = ((n = i.flip) == null ? void 0 : n.overflows) || [];
2082
+ if (f && Q.push(K[A]), d) {
2083
+ const G = Mr(o, s, T);
2084
+ Q.push(K[G[0]], K[G[1]]);
2063
2085
  }
2064
- if (J = [...J, {
2086
+ if (X = [...X, {
2065
2087
  placement: o,
2066
2088
  overflows: Q
2067
- }], !Q.every((X) => X <= 0)) {
2068
- var Z, q;
2069
- const X = (((Z = i.flip) == null ? void 0 : Z.index) || 0) + 1, L = H[X];
2070
- if (L && (!(d === "alignment" ? k !== he(L) : !1) || // We leave the current main axis only if every placement on that axis
2089
+ }], !Q.every((G) => G <= 0)) {
2090
+ var z, B;
2091
+ const G = (((z = i.flip) == null ? void 0 : z.index) || 0) + 1, I = Y[G];
2092
+ if (I && (!(d === "alignment" ? N !== he(I) : !1) || // We leave the current main axis only if every placement on that axis
2071
2093
  // overflows the main axis.
2072
- J.every((M) => he(M.placement) === k ? M.overflows[0] > 0 : !0)))
2094
+ X.every((M) => he(M.placement) === N ? M.overflows[0] > 0 : !0)))
2073
2095
  return {
2074
2096
  data: {
2075
- index: X,
2076
- overflows: J
2097
+ index: G,
2098
+ overflows: X
2077
2099
  },
2078
2100
  reset: {
2079
- placement: L
2101
+ placement: I
2080
2102
  }
2081
2103
  };
2082
- let j = (q = J.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : q.placement;
2083
- if (!j)
2084
- switch (u) {
2104
+ let L = (B = X.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : B.placement;
2105
+ if (!L)
2106
+ switch (l) {
2085
2107
  case "bestFit": {
2086
2108
  var te;
2087
- const V = (te = J.filter((M) => {
2088
- if (I) {
2109
+ const V = (te = X.filter((M) => {
2110
+ if (F) {
2089
2111
  const R = he(M.placement);
2090
- return R === k || // Create a bias to the `y` side axis due to horizontal
2112
+ return R === N || // Create a bias to the `y` side axis due to horizontal
2091
2113
  // reading directions favoring greater width.
2092
2114
  R === "y";
2093
2115
  }
2094
2116
  return !0;
2095
2117
  }).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, m) => R + m, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : te[0];
2096
- V && (j = V);
2118
+ V && (L = V);
2097
2119
  break;
2098
2120
  }
2099
2121
  case "initialPlacement":
2100
- j = a;
2122
+ L = a;
2101
2123
  break;
2102
2124
  }
2103
- if (o !== j)
2125
+ if (o !== L)
2104
2126
  return {
2105
2127
  reset: {
2106
- placement: j
2128
+ placement: L
2107
2129
  }
2108
2130
  };
2109
2131
  }
@@ -2116,10 +2138,10 @@ async function uo(e, t) {
2116
2138
  placement: r,
2117
2139
  platform: n,
2118
2140
  elements: o
2119
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Se(r), a = ot(r), l = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = rt(t, e);
2141
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ce(r), a = ot(r), u = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = rt(t, e);
2120
2142
  let {
2121
2143
  mainAxis: h,
2122
- crossAxis: u,
2144
+ crossAxis: l,
2123
2145
  alignmentAxis: v
2124
2146
  } = typeof d == "number" ? {
2125
2147
  mainAxis: d,
@@ -2130,12 +2152,12 @@ async function uo(e, t) {
2130
2152
  crossAxis: d.crossAxis || 0,
2131
2153
  alignmentAxis: d.alignmentAxis
2132
2154
  };
2133
- return a && typeof v == "number" && (u = a === "end" ? v * -1 : v), l ? {
2134
- x: u * f,
2155
+ return a && typeof v == "number" && (l = a === "end" ? v * -1 : v), u ? {
2156
+ x: l * f,
2135
2157
  y: h * c
2136
2158
  } : {
2137
2159
  x: h * c,
2138
- y: u * f
2160
+ y: l * f
2139
2161
  };
2140
2162
  }
2141
2163
  const fo = function(e) {
@@ -2149,12 +2171,12 @@ const fo = function(e) {
2149
2171
  y: i,
2150
2172
  placement: s,
2151
2173
  middlewareData: a
2152
- } = t, l = await uo(t, e);
2174
+ } = t, u = await uo(t, e);
2153
2175
  return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
2154
- x: o + l.x,
2155
- y: i + l.y,
2176
+ x: o + u.x,
2177
+ y: i + u.y,
2156
2178
  data: {
2157
- ...l,
2179
+ ...u,
2158
2180
  placement: s
2159
2181
  }
2160
2182
  };
@@ -2173,15 +2195,15 @@ const fo = function(e) {
2173
2195
  } = t, {
2174
2196
  mainAxis: s = !0,
2175
2197
  crossAxis: a = !1,
2176
- limiter: l = {
2198
+ limiter: u = {
2177
2199
  fn: (A) => {
2178
2200
  let {
2179
- x: k,
2180
- y
2201
+ x: N,
2202
+ y: g
2181
2203
  } = A;
2182
2204
  return {
2183
- x: k,
2184
- y
2205
+ x: N,
2206
+ y: g
2185
2207
  };
2186
2208
  }
2187
2209
  },
@@ -2189,19 +2211,19 @@ const fo = function(e) {
2189
2211
  } = rt(e, t), f = {
2190
2212
  x: r,
2191
2213
  y: n
2192
- }, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Fn(h);
2193
- let v = f[u], p = f[h];
2214
+ }, d = await i.detectOverflow(t, c), h = he(Ce(o)), l = Fn(h);
2215
+ let v = f[l], p = f[h];
2194
2216
  if (s) {
2195
- const A = u === "y" ? "top" : "left", k = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[k];
2196
- v = tn(y, v, T);
2217
+ const A = l === "y" ? "top" : "left", N = l === "y" ? "bottom" : "right", g = v + d[A], T = v - d[N];
2218
+ v = tn(g, v, T);
2197
2219
  }
2198
2220
  if (a) {
2199
- const A = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[k];
2200
- p = tn(y, p, T);
2221
+ const A = h === "y" ? "top" : "left", N = h === "y" ? "bottom" : "right", g = p + d[A], T = p - d[N];
2222
+ p = tn(g, p, T);
2201
2223
  }
2202
- const O = l.fn({
2224
+ const O = u.fn({
2203
2225
  ...t,
2204
- [u]: v,
2226
+ [l]: v,
2205
2227
  [h]: p
2206
2228
  });
2207
2229
  return {
@@ -2210,7 +2232,7 @@ const fo = function(e) {
2210
2232
  x: O.x - r,
2211
2233
  y: O.y - n,
2212
2234
  enabled: {
2213
- [u]: s,
2235
+ [l]: s,
2214
2236
  [h]: a
2215
2237
  }
2216
2238
  }
@@ -2257,31 +2279,31 @@ function Hn(e) {
2257
2279
  function ho(e, t, r) {
2258
2280
  return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
2259
2281
  }
2260
- function Ce(e, t, r, n) {
2282
+ function Se(e, t, r, n) {
2261
2283
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2262
2284
  const o = e.getBoundingClientRect(), i = $t(e);
2263
2285
  let s = le(1);
2264
2286
  t && (n ? ee(n) && (s = Ae(n)) : s = Ae(e));
2265
2287
  const a = ho(i, r, n) ? Hn(i) : le(0);
2266
- let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
2288
+ let u = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
2267
2289
  if (i) {
2268
- const h = ie(i), u = n && ee(n) ? ie(n) : n;
2269
- let v = h, p = Ct(v);
2270
- for (; p && n && u !== v; ) {
2271
- const O = Ae(p), A = p.getBoundingClientRect(), k = se(p), y = A.left + (p.clientLeft + parseFloat(k.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(k.paddingTop)) * O.y;
2272
- l *= O.x, c *= O.y, f *= O.x, d *= O.y, l += y, c += T, v = ie(p), p = Ct(v);
2290
+ const h = ie(i), l = n && ee(n) ? ie(n) : n;
2291
+ let v = h, p = St(v);
2292
+ for (; p && n && l !== v; ) {
2293
+ const O = Ae(p), A = p.getBoundingClientRect(), N = se(p), g = A.left + (p.clientLeft + parseFloat(N.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(N.paddingTop)) * O.y;
2294
+ u *= O.x, c *= O.y, f *= O.x, d *= O.y, u += g, c += T, v = ie(p), p = St(v);
2273
2295
  }
2274
2296
  }
2275
2297
  return Ue({
2276
2298
  width: f,
2277
2299
  height: d,
2278
- x: l,
2300
+ x: u,
2279
2301
  y: c
2280
2302
  });
2281
2303
  }
2282
2304
  function it(e, t) {
2283
2305
  const r = nt(e).scrollLeft;
2284
- return t ? t.left + r : Ce(ue(e)).left + r;
2306
+ return t ? t.left + r : Se(ue(e)).left + r;
2285
2307
  }
2286
2308
  function Kn(e, t) {
2287
2309
  const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
@@ -2300,21 +2322,21 @@ function vo(e) {
2300
2322
  const i = o === "fixed", s = ue(n), a = t ? et(t.floating) : !1;
2301
2323
  if (n === s || a && i)
2302
2324
  return r;
2303
- let l = {
2325
+ let u = {
2304
2326
  scrollLeft: 0,
2305
2327
  scrollTop: 0
2306
2328
  }, c = le(1);
2307
2329
  const f = le(0), d = ne(n);
2308
- if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (l = nt(n)), d)) {
2309
- const u = Ce(n);
2310
- c = Ae(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
2330
+ if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (u = nt(n)), d)) {
2331
+ const l = Se(n);
2332
+ c = Ae(n), f.x = l.x + n.clientLeft, f.y = l.y + n.clientTop;
2311
2333
  }
2312
- const h = s && !d && !i ? Kn(s, l) : le(0);
2334
+ const h = s && !d && !i ? Kn(s, u) : le(0);
2313
2335
  return {
2314
2336
  width: r.width * c.x,
2315
2337
  height: r.height * c.y,
2316
- x: r.x * c.x - l.scrollLeft * c.x + f.x + h.x,
2317
- y: r.y * c.y - l.scrollTop * c.y + f.y + h.y
2338
+ x: r.x * c.x - u.scrollLeft * c.x + f.x + h.x,
2339
+ y: r.y * c.y - u.scrollTop * c.y + f.y + h.y
2318
2340
  };
2319
2341
  }
2320
2342
  function bo(e) {
@@ -2334,30 +2356,30 @@ function yo(e) {
2334
2356
  const an = 25;
2335
2357
  function go(e, t) {
2336
2358
  const r = ie(e), n = ue(e), o = r.visualViewport;
2337
- let i = n.clientWidth, s = n.clientHeight, a = 0, l = 0;
2359
+ let i = n.clientWidth, s = n.clientHeight, a = 0, u = 0;
2338
2360
  if (o) {
2339
2361
  i = o.width, s = o.height;
2340
2362
  const f = tt();
2341
- (!f || f && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
2363
+ (!f || f && t === "fixed") && (a = o.offsetLeft, u = o.offsetTop);
2342
2364
  }
2343
2365
  const c = it(n);
2344
2366
  if (c <= 0) {
2345
- const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - u);
2367
+ const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), l = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - l);
2346
2368
  v <= an && (i -= v);
2347
2369
  } else c <= an && (i += c);
2348
2370
  return {
2349
2371
  width: i,
2350
2372
  height: s,
2351
2373
  x: a,
2352
- y: l
2374
+ y: u
2353
2375
  };
2354
2376
  }
2355
2377
  function wo(e, t) {
2356
- const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = n * i.y;
2378
+ const r = Se(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, u = o * i.x, c = n * i.y;
2357
2379
  return {
2358
2380
  width: s,
2359
2381
  height: a,
2360
- x: l,
2382
+ x: u,
2361
2383
  y: c
2362
2384
  };
2363
2385
  }
@@ -2392,8 +2414,8 @@ function xo(e, t) {
2392
2414
  const i = se(e).position === "fixed";
2393
2415
  let s = i ? pe(e) : e;
2394
2416
  for (; ee(s) && !be(s); ) {
2395
- const a = se(s), l = Lt(s);
2396
- !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ie(s) && !l && zn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
2417
+ const a = se(s), u = Lt(s);
2418
+ !u && a.position === "fixed" && (o = null), (i ? !u && !o : !u && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ie(s) && !u && zn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
2397
2419
  }
2398
2420
  return t.set(e, n), n;
2399
2421
  }
@@ -2405,16 +2427,16 @@ function Eo(e) {
2405
2427
  strategy: o
2406
2428
  } = e;
2407
2429
  const s = [...r === "clippingAncestors" ? et(t) ? [] : xo(t, this._c) : [].concat(r), n], a = cn(t, s[0], o);
2408
- let l = a.top, c = a.right, f = a.bottom, d = a.left;
2430
+ let u = a.top, c = a.right, f = a.bottom, d = a.left;
2409
2431
  for (let h = 1; h < s.length; h++) {
2410
- const u = cn(t, s[h], o);
2411
- l = Te(u.top, l), c = qe(u.right, c), f = qe(u.bottom, f), d = Te(u.left, d);
2432
+ const l = cn(t, s[h], o);
2433
+ u = Te(l.top, u), c = qe(l.right, c), f = qe(l.bottom, f), d = Te(l.left, d);
2412
2434
  }
2413
2435
  return {
2414
2436
  width: c - d,
2415
- height: f - l,
2437
+ height: f - u,
2416
2438
  x: d,
2417
- y: l
2439
+ y: u
2418
2440
  };
2419
2441
  }
2420
2442
  function Ro(e) {
@@ -2428,22 +2450,22 @@ function Ro(e) {
2428
2450
  };
2429
2451
  }
2430
2452
  function To(e, t, r) {
2431
- const n = ne(t), o = ue(t), i = r === "fixed", s = Ce(e, !0, i, t);
2453
+ const n = ne(t), o = ue(t), i = r === "fixed", s = Se(e, !0, i, t);
2432
2454
  let a = {
2433
2455
  scrollLeft: 0,
2434
2456
  scrollTop: 0
2435
2457
  };
2436
- const l = le(0);
2458
+ const u = le(0);
2437
2459
  function c() {
2438
- l.x = it(o);
2460
+ u.x = it(o);
2439
2461
  }
2440
2462
  if (n || !n && !i)
2441
2463
  if ((ye(t) !== "body" || Ie(o)) && (a = nt(t)), n) {
2442
- const u = Ce(t, !0, i, t);
2443
- l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
2464
+ const l = Se(t, !0, i, t);
2465
+ u.x = l.x + t.clientLeft, u.y = l.y + t.clientTop;
2444
2466
  } else o && c();
2445
2467
  i && !n && o && c();
2446
- const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
2468
+ const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft - u.x - f.x, h = s.top + a.scrollTop - u.y - f.y;
2447
2469
  return {
2448
2470
  x: d,
2449
2471
  y: h,
@@ -2480,7 +2502,7 @@ function Xn(e, t) {
2480
2502
  n = ln(n, t);
2481
2503
  return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
2482
2504
  }
2483
- const So = async function(e) {
2505
+ const Co = async function(e) {
2484
2506
  const t = this.getOffsetParent || Xn, r = this.getDimensions, n = await r(e.floating);
2485
2507
  return {
2486
2508
  reference: To(e.reference, await t(e.floating), e.strategy),
@@ -2492,7 +2514,7 @@ const So = async function(e) {
2492
2514
  }
2493
2515
  };
2494
2516
  };
2495
- function Co(e) {
2517
+ function So(e) {
2496
2518
  return se(e).direction === "rtl";
2497
2519
  }
2498
2520
  const _o = {
@@ -2500,12 +2522,12 @@ const _o = {
2500
2522
  getDocumentElement: ue,
2501
2523
  getClippingRect: Eo,
2502
2524
  getOffsetParent: Xn,
2503
- getElementRects: So,
2525
+ getElementRects: Co,
2504
2526
  getClientRects: bo,
2505
2527
  getDimensions: Ro,
2506
2528
  getScale: Ae,
2507
2529
  isElement: ee,
2508
- isRTL: Co
2530
+ isRTL: So
2509
2531
  };
2510
2532
  function Gn(e, t) {
2511
2533
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
@@ -2517,40 +2539,40 @@ function Oo(e, t) {
2517
2539
  var a;
2518
2540
  clearTimeout(n), (a = r) == null || a.disconnect(), r = null;
2519
2541
  }
2520
- function s(a, l) {
2521
- a === void 0 && (a = !1), l === void 0 && (l = 1), i();
2542
+ function s(a, u) {
2543
+ a === void 0 && (a = !1), u === void 0 && (u = 1), i();
2522
2544
  const c = e.getBoundingClientRect(), {
2523
2545
  left: f,
2524
2546
  top: d,
2525
2547
  width: h,
2526
- height: u
2548
+ height: l
2527
2549
  } = c;
2528
- if (a || t(), !h || !u)
2550
+ if (a || t(), !h || !l)
2529
2551
  return;
2530
- const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + u)), A = Fe(f), y = {
2552
+ const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + l)), A = Fe(f), g = {
2531
2553
  rootMargin: -v + "px " + -p + "px " + -O + "px " + -A + "px",
2532
- threshold: Te(0, qe(1, l)) || 1
2554
+ threshold: Te(0, qe(1, u)) || 1
2533
2555
  };
2534
2556
  let T = !0;
2535
- function b(I) {
2536
- const H = I[0].intersectionRatio;
2537
- if (H !== l) {
2557
+ function b(F) {
2558
+ const Y = F[0].intersectionRatio;
2559
+ if (Y !== u) {
2538
2560
  if (!T)
2539
2561
  return s();
2540
- H ? s(!1, H) : n = setTimeout(() => {
2562
+ Y ? s(!1, Y) : n = setTimeout(() => {
2541
2563
  s(!1, 1e-7);
2542
2564
  }, 1e3);
2543
2565
  }
2544
- H === 1 && !Gn(c, e.getBoundingClientRect()) && s(), T = !1;
2566
+ Y === 1 && !Gn(c, e.getBoundingClientRect()) && s(), T = !1;
2545
2567
  }
2546
2568
  try {
2547
2569
  r = new IntersectionObserver(b, {
2548
- ...y,
2570
+ ...g,
2549
2571
  // Handle <iframe>s
2550
2572
  root: o.ownerDocument
2551
2573
  });
2552
2574
  } catch {
2553
- r = new IntersectionObserver(b, y);
2575
+ r = new IntersectionObserver(b, g);
2554
2576
  }
2555
2577
  r.observe(e);
2556
2578
  }
@@ -2563,7 +2585,7 @@ function Ao(e, t, r, n) {
2563
2585
  ancestorResize: i = !0,
2564
2586
  elementResize: s = typeof ResizeObserver == "function",
2565
2587
  layoutShift: a = typeof IntersectionObserver == "function",
2566
- animationFrame: l = !1
2588
+ animationFrame: u = !1
2567
2589
  } = n, c = $t(e), f = o || i ? [...c ? ve(c) : [], ...t ? ve(t) : []] : [];
2568
2590
  f.forEach((A) => {
2569
2591
  o && A.addEventListener("scroll", r, {
@@ -2571,25 +2593,25 @@ function Ao(e, t, r, n) {
2571
2593
  }), i && A.addEventListener("resize", r);
2572
2594
  });
2573
2595
  const d = c && a ? Oo(c, r) : null;
2574
- let h = -1, u = null;
2575
- s && (u = new ResizeObserver((A) => {
2576
- let [k] = A;
2577
- k && k.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2578
- var y;
2579
- (y = u) == null || y.observe(t);
2596
+ let h = -1, l = null;
2597
+ s && (l = new ResizeObserver((A) => {
2598
+ let [N] = A;
2599
+ N && N.target === c && l && t && (l.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2600
+ var g;
2601
+ (g = l) == null || g.observe(t);
2580
2602
  })), r();
2581
- }), c && !l && u.observe(c), t && u.observe(t));
2582
- let v, p = l ? Ce(e) : null;
2583
- l && O();
2603
+ }), c && !u && l.observe(c), t && l.observe(t));
2604
+ let v, p = u ? Se(e) : null;
2605
+ u && O();
2584
2606
  function O() {
2585
- const A = Ce(e);
2607
+ const A = Se(e);
2586
2608
  p && !Gn(p, A) && r(), p = A, v = requestAnimationFrame(O);
2587
2609
  }
2588
2610
  return r(), () => {
2589
2611
  var A;
2590
- f.forEach((k) => {
2591
- o && k.removeEventListener("scroll", r), i && k.removeEventListener("resize", r);
2592
- }), d == null || d(), (A = u) == null || A.disconnect(), u = null, l && cancelAnimationFrame(v);
2612
+ f.forEach((N) => {
2613
+ o && N.removeEventListener("scroll", r), i && N.removeEventListener("resize", r);
2614
+ }), d == null || d(), (A = l) == null || A.disconnect(), l = null, u && cancelAnimationFrame(v);
2593
2615
  };
2594
2616
  }
2595
2617
  const Po = fo, No = po, ko = co, Io = (e, t, r) => {
@@ -2662,7 +2684,7 @@ function Lo(e) {
2662
2684
  floating: s
2663
2685
  } = {},
2664
2686
  transform: a = !0,
2665
- whileElementsMounted: l,
2687
+ whileElementsMounted: u,
2666
2688
  open: c
2667
2689
  } = e, [f, d] = E.useState({
2668
2690
  x: 0,
@@ -2671,56 +2693,56 @@ function Lo(e) {
2671
2693
  placement: t,
2672
2694
  middlewareData: {},
2673
2695
  isPositioned: !1
2674
- }), [h, u] = E.useState(n);
2675
- Xe(h, n) || u(n);
2676
- const [v, p] = E.useState(null), [O, A] = E.useState(null), k = E.useCallback((M) => {
2677
- M !== I.current && (I.current = M, p(M));
2678
- }, []), y = E.useCallback((M) => {
2679
- M !== H.current && (H.current = M, A(M));
2680
- }, []), T = i || v, b = s || O, I = E.useRef(null), H = E.useRef(null), z = E.useRef(f), Q = l != null, J = yt(l), Z = yt(o), q = yt(c), te = E.useCallback(() => {
2681
- if (!I.current || !H.current)
2696
+ }), [h, l] = E.useState(n);
2697
+ Xe(h, n) || l(n);
2698
+ const [v, p] = E.useState(null), [O, A] = E.useState(null), N = E.useCallback((M) => {
2699
+ M !== F.current && (F.current = M, p(M));
2700
+ }, []), g = E.useCallback((M) => {
2701
+ M !== Y.current && (Y.current = M, A(M));
2702
+ }, []), T = i || v, b = s || O, F = E.useRef(null), Y = E.useRef(null), K = E.useRef(f), Q = u != null, X = yt(u), z = yt(o), B = yt(c), te = E.useCallback(() => {
2703
+ if (!F.current || !Y.current)
2682
2704
  return;
2683
2705
  const M = {
2684
2706
  placement: t,
2685
2707
  strategy: r,
2686
2708
  middleware: h
2687
2709
  };
2688
- Z.current && (M.platform = Z.current), Io(I.current, H.current, M).then((R) => {
2710
+ z.current && (M.platform = z.current), Io(F.current, Y.current, M).then((R) => {
2689
2711
  const m = {
2690
2712
  ...R,
2691
2713
  // The floating element's position may be recomputed while it's closed
2692
2714
  // but still mounted (such as when transitioning out). To ensure
2693
2715
  // `isPositioned` will be `false` initially on the next open, avoid
2694
2716
  // setting it to `true` when `open === false` (must be specified).
2695
- isPositioned: q.current !== !1
2717
+ isPositioned: B.current !== !1
2696
2718
  };
2697
- X.current && !Xe(z.current, m) && (z.current = m, ir.flushSync(() => {
2719
+ G.current && !Xe(K.current, m) && (K.current = m, ir.flushSync(() => {
2698
2720
  d(m);
2699
2721
  }));
2700
2722
  });
2701
- }, [h, t, r, Z, q]);
2723
+ }, [h, t, r, z, B]);
2702
2724
  Be(() => {
2703
- c === !1 && z.current.isPositioned && (z.current.isPositioned = !1, d((M) => ({
2725
+ c === !1 && K.current.isPositioned && (K.current.isPositioned = !1, d((M) => ({
2704
2726
  ...M,
2705
2727
  isPositioned: !1
2706
2728
  })));
2707
2729
  }, [c]);
2708
- const X = E.useRef(!1);
2709
- Be(() => (X.current = !0, () => {
2710
- X.current = !1;
2730
+ const G = E.useRef(!1);
2731
+ Be(() => (G.current = !0, () => {
2732
+ G.current = !1;
2711
2733
  }), []), Be(() => {
2712
- if (T && (I.current = T), b && (H.current = b), T && b) {
2713
- if (J.current)
2714
- return J.current(T, b, te);
2734
+ if (T && (F.current = T), b && (Y.current = b), T && b) {
2735
+ if (X.current)
2736
+ return X.current(T, b, te);
2715
2737
  te();
2716
2738
  }
2717
- }, [T, b, te, J, Q]);
2718
- const L = E.useMemo(() => ({
2719
- reference: I,
2720
- floating: H,
2721
- setReference: k,
2722
- setFloating: y
2723
- }), [k, y]), j = E.useMemo(() => ({
2739
+ }, [T, b, te, X, Q]);
2740
+ const I = E.useMemo(() => ({
2741
+ reference: F,
2742
+ floating: Y,
2743
+ setReference: N,
2744
+ setFloating: g
2745
+ }), [N, g]), L = E.useMemo(() => ({
2724
2746
  reference: T,
2725
2747
  floating: b
2726
2748
  }), [T, b]), V = E.useMemo(() => {
@@ -2729,13 +2751,13 @@ function Lo(e) {
2729
2751
  left: 0,
2730
2752
  top: 0
2731
2753
  };
2732
- if (!j.floating)
2754
+ if (!L.floating)
2733
2755
  return M;
2734
- const R = un(j.floating, f.x), m = un(j.floating, f.y);
2756
+ const R = un(L.floating, f.x), m = un(L.floating, f.y);
2735
2757
  return a ? {
2736
2758
  ...M,
2737
2759
  transform: "translate(" + R + "px, " + m + "px)",
2738
- ...Zn(j.floating) >= 1.5 && {
2760
+ ...Zn(L.floating) >= 1.5 && {
2739
2761
  willChange: "transform"
2740
2762
  }
2741
2763
  } : {
@@ -2743,14 +2765,14 @@ function Lo(e) {
2743
2765
  left: R,
2744
2766
  top: m
2745
2767
  };
2746
- }, [r, a, j.floating, f.x, f.y]);
2768
+ }, [r, a, L.floating, f.x, f.y]);
2747
2769
  return E.useMemo(() => ({
2748
2770
  ...f,
2749
2771
  update: te,
2750
- refs: L,
2751
- elements: j,
2772
+ refs: I,
2773
+ elements: L,
2752
2774
  floatingStyles: V
2753
- }), [f, te, L, j, V]);
2775
+ }), [f, te, I, L, V]);
2754
2776
  }
2755
2777
  const Fo = (e, t) => {
2756
2778
  const r = Po(e);
@@ -2878,7 +2900,7 @@ function Xo(e, t) {
2878
2900
  }
2879
2901
  return n;
2880
2902
  }
2881
- function Ne(e, t) {
2903
+ function ke(e, t) {
2882
2904
  let r = e.filter((o) => {
2883
2905
  var i;
2884
2906
  return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
@@ -2901,28 +2923,28 @@ const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, t
2901
2923
  return e.contains(n) ? n : null;
2902
2924
  }).filter((r) => r != null);
2903
2925
  function Jo(e, t, r, n) {
2904
- const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), c = [];
2926
+ const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), u = new Set(s), c = [];
2905
2927
  je[o] || (je[o] = /* @__PURE__ */ new WeakMap());
2906
2928
  const f = je[o];
2907
2929
  s.forEach(d), h(t), a.clear();
2908
- function d(u) {
2909
- !u || a.has(u) || (a.add(u), u.parentNode && d(u.parentNode));
2930
+ function d(l) {
2931
+ !l || a.has(l) || (a.add(l), l.parentNode && d(l.parentNode));
2910
2932
  }
2911
- function h(u) {
2912
- !u || l.has(u) || [].forEach.call(u.children, (v) => {
2933
+ function h(l) {
2934
+ !l || u.has(l) || [].forEach.call(l.children, (v) => {
2913
2935
  if (ye(v) !== "script")
2914
2936
  if (a.has(v))
2915
2937
  h(v);
2916
2938
  else {
2917
- const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, k = (f.get(v) || 0) + 1;
2918
- Oe.set(v, A), f.set(v, k), c.push(v), A === 1 && O && $e.add(v), k === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
2939
+ const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, N = (f.get(v) || 0) + 1;
2940
+ Oe.set(v, A), f.set(v, N), c.push(v), A === 1 && O && $e.add(v), N === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
2919
2941
  }
2920
2942
  });
2921
2943
  }
2922
2944
  return wt++, () => {
2923
- c.forEach((u) => {
2924
- const v = (Oe.get(u) || 0) - 1, p = (f.get(u) || 0) - 1;
2925
- Oe.set(u, v), f.set(u, p), v || (!$e.has(u) && i && u.removeAttribute(i), $e.delete(u)), p || u.removeAttribute(o);
2945
+ c.forEach((l) => {
2946
+ const v = (Oe.get(l) || 0) - 1, p = (f.get(l) || 0) - 1;
2947
+ Oe.set(l, v), f.set(l, p), v || (!$e.has(l) && i && l.removeAttribute(i), $e.delete(l)), p || l.removeAttribute(o);
2926
2948
  }), wt--, wt || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {});
2927
2949
  };
2928
2950
  }
@@ -3025,161 +3047,161 @@ function si(e) {
3025
3047
  guards: i = !0,
3026
3048
  initialFocus: s = 0,
3027
3049
  returnFocus: a = !0,
3028
- restoreFocus: l = !1,
3050
+ restoreFocus: u = !1,
3029
3051
  modal: c = !0,
3030
3052
  visuallyHiddenDismiss: f = !1,
3031
3053
  closeOnFocusOut: d = !0
3032
3054
  } = e, {
3033
3055
  open: h,
3034
- refs: u,
3056
+ refs: l,
3035
3057
  nodeId: v,
3036
3058
  onOpenChange: p,
3037
3059
  events: O,
3038
3060
  dataRef: A,
3039
- floatingId: k,
3061
+ floatingId: N,
3040
3062
  elements: {
3041
- domReference: y,
3063
+ domReference: g,
3042
3064
  floating: T
3043
3065
  }
3044
- } = t, b = typeof s == "number" && s < 0, I = kr(y) && b, H = Go() ? i : !0, z = gt(o), Q = gt(s), J = gt(a), Z = jt(), q = ri(), te = E.useRef(null), X = E.useRef(null), L = E.useRef(!1), j = E.useRef(!1), V = E.useRef(-1), M = q != null, R = oi(T), m = me(function(S) {
3045
- return S === void 0 && (S = R), S ? Ft(S, Je()) : [];
3046
- }), x = me((S) => {
3047
- const P = m(S);
3048
- return z.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
3066
+ } = t, b = typeof s == "number" && s < 0, F = kr(g) && b, Y = Go() ? i : !0, K = gt(o), Q = gt(s), X = gt(a), z = jt(), B = ri(), te = E.useRef(null), G = E.useRef(null), I = E.useRef(!1), L = E.useRef(!1), V = E.useRef(-1), M = B != null, R = oi(T), m = me(function(C) {
3067
+ return C === void 0 && (C = R), C ? Ft(C, Je()) : [];
3068
+ }), x = me((C) => {
3069
+ const P = m(C);
3070
+ return K.current.map((w) => g && w === "reference" ? g : R && w === "floating" ? R : P).filter(Boolean).flat();
3049
3071
  });
3050
3072
  E.useEffect(() => {
3051
3073
  if (n || !c) return;
3052
- function S(g) {
3053
- if (g.key === "Tab") {
3054
- oe(R, we(ce(R))) && m().length === 0 && !I && vt(g);
3055
- const _ = x(), N = Ee(g);
3056
- z.current[0] === "reference" && N === y && (vt(g), g.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), z.current[1] === "floating" && N === R && g.shiftKey && (vt(g), _e(_[0]));
3074
+ function C(w) {
3075
+ if (w.key === "Tab") {
3076
+ oe(R, we(ce(R))) && m().length === 0 && !F && vt(w);
3077
+ const _ = x(), k = Ee(w);
3078
+ K.current[0] === "reference" && k === g && (vt(w), w.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), K.current[1] === "floating" && k === R && w.shiftKey && (vt(w), _e(_[0]));
3057
3079
  }
3058
3080
  }
3059
3081
  const P = ce(R);
3060
- return P.addEventListener("keydown", S), () => {
3061
- P.removeEventListener("keydown", S);
3082
+ return P.addEventListener("keydown", C), () => {
3083
+ P.removeEventListener("keydown", C);
3062
3084
  };
3063
- }, [n, y, R, c, z, I, m, x]), E.useEffect(() => {
3085
+ }, [n, g, R, c, K, F, m, x]), E.useEffect(() => {
3064
3086
  if (n || !T) return;
3065
- function S(P) {
3066
- const g = Ee(P), N = m().indexOf(g);
3067
- N !== -1 && (V.current = N);
3087
+ function C(P) {
3088
+ const w = Ee(P), k = m().indexOf(w);
3089
+ k !== -1 && (V.current = k);
3068
3090
  }
3069
- return T.addEventListener("focusin", S), () => {
3070
- T.removeEventListener("focusin", S);
3091
+ return T.addEventListener("focusin", C), () => {
3092
+ T.removeEventListener("focusin", C);
3071
3093
  };
3072
3094
  }, [n, T, m]), E.useEffect(() => {
3073
3095
  if (n || !d) return;
3074
- function S() {
3075
- j.current = !0, setTimeout(() => {
3076
- j.current = !1;
3096
+ function C() {
3097
+ L.current = !0, setTimeout(() => {
3098
+ L.current = !1;
3077
3099
  });
3078
3100
  }
3079
- function P(g) {
3080
- const _ = g.relatedTarget;
3101
+ function P(w) {
3102
+ const _ = w.relatedTarget;
3081
3103
  queueMicrotask(() => {
3082
- const N = !(oe(y, _) || oe(T, _) || oe(_, T) || oe(q == null ? void 0 : q.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || Z && (Ne(Z.nodesRef.current, v).find(($) => {
3083
- var D, G;
3084
- return oe((D = $.context) == null ? void 0 : D.elements.floating, _) || oe((G = $.context) == null ? void 0 : G.elements.domReference, _);
3085
- }) || Xo(Z.nodesRef.current, v).find(($) => {
3086
- var D, G;
3087
- return ((D = $.context) == null ? void 0 : D.elements.floating) === _ || ((G = $.context) == null ? void 0 : G.elements.domReference) === _;
3104
+ const k = !(oe(g, _) || oe(T, _) || oe(_, T) || oe(B == null ? void 0 : B.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || z && (ke(z.nodesRef.current, v).find((j) => {
3105
+ var D, J;
3106
+ return oe((D = j.context) == null ? void 0 : D.elements.floating, _) || oe((J = j.context) == null ? void 0 : J.elements.domReference, _);
3107
+ }) || Xo(z.nodesRef.current, v).find((j) => {
3108
+ var D, J;
3109
+ return ((D = j.context) == null ? void 0 : D.elements.floating) === _ || ((J = j.context) == null ? void 0 : J.elements.domReference) === _;
3088
3110
  })));
3089
- if (l && N && we(ce(R)) === ce(R).body) {
3111
+ if (u && k && we(ce(R)) === ce(R).body) {
3090
3112
  ne(R) && R.focus();
3091
- const $ = V.current, D = m(), G = D[$] || D[D.length - 1] || R;
3092
- ne(G) && G.focus();
3113
+ const j = V.current, D = m(), J = D[j] || D[D.length - 1] || R;
3114
+ ne(J) && J.focus();
3093
3115
  }
3094
- (I || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3095
- _ !== gn() && (L.current = !0, p(!1, g, "focus-out"));
3116
+ (F || !c) && _ && k && !L.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3117
+ _ !== gn() && (I.current = !0, p(!1, w, "focus-out"));
3096
3118
  });
3097
3119
  }
3098
- if (T && ne(y))
3099
- return y.addEventListener("focusout", P), y.addEventListener("pointerdown", S), T.addEventListener("focusout", P), () => {
3100
- y.removeEventListener("focusout", P), y.removeEventListener("pointerdown", S), T.removeEventListener("focusout", P);
3120
+ if (T && ne(g))
3121
+ return g.addEventListener("focusout", P), g.addEventListener("pointerdown", C), T.addEventListener("focusout", P), () => {
3122
+ g.removeEventListener("focusout", P), g.removeEventListener("pointerdown", C), T.removeEventListener("focusout", P);
3101
3123
  };
3102
- }, [n, y, T, R, c, v, Z, q, p, d, l, m, I]), E.useEffect(() => {
3103
- var S;
3124
+ }, [n, g, T, R, c, v, z, B, p, d, u, m, F]), E.useEffect(() => {
3125
+ var C;
3104
3126
  if (n) return;
3105
- const P = Array.from((q == null || (S = q.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
3127
+ const P = Array.from((B == null || (C = B.portalNode) == null ? void 0 : C.querySelectorAll("[" + Ze("portal") + "]")) || []);
3106
3128
  if (T) {
3107
- const g = [T, ...P, te.current, X.current, z.current.includes("reference") || I ? y : null].filter((N) => N != null), _ = c || I ? mn(g, H, !H) : mn(g);
3129
+ const w = [T, ...P, te.current, G.current, K.current.includes("reference") || F ? g : null].filter((k) => k != null), _ = c || F ? mn(w, Y, !Y) : mn(w);
3108
3130
  return () => {
3109
3131
  _();
3110
3132
  };
3111
3133
  }
3112
- }, [n, y, T, c, z, q, I, H]), de(() => {
3134
+ }, [n, g, T, c, K, B, F, Y]), de(() => {
3113
3135
  if (n || !ne(R)) return;
3114
- const S = ce(R), P = we(S);
3136
+ const C = ce(R), P = we(C);
3115
3137
  queueMicrotask(() => {
3116
- const g = x(R), _ = Q.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
3117
- !b && !$ && h && _e(N, {
3118
- preventScroll: N === R
3138
+ const w = x(R), _ = Q.current, k = (typeof _ == "number" ? w[_] : _.current) || R, j = oe(R, P);
3139
+ !b && !j && h && _e(k, {
3140
+ preventScroll: k === R
3119
3141
  });
3120
3142
  });
3121
3143
  }, [n, h, R, b, x, Q]), de(() => {
3122
3144
  if (n || !R) return;
3123
- let S = !1;
3124
- const P = ce(R), g = we(P);
3125
- let N = A.current.openEvent;
3126
- xt(g);
3127
- function $(C) {
3145
+ let C = !1;
3146
+ const P = ce(R), w = we(P);
3147
+ let k = A.current.openEvent;
3148
+ xt(w);
3149
+ function j(S) {
3128
3150
  let {
3129
3151
  open: re,
3130
3152
  reason: fe,
3131
3153
  event: ae,
3132
3154
  nested: st
3133
- } = C;
3134
- re && (N = ae), fe === "escape-key" && u.domReference.current && xt(u.domReference.current), fe === "hover" && ae.type === "mouseleave" && (L.current = !0), fe === "outside-press" && (st ? (L.current = !1, S = !0) : L.current = !(Sr(ae) || Cr(ae)));
3155
+ } = S;
3156
+ re && (k = ae), fe === "escape-key" && l.domReference.current && xt(l.domReference.current), fe === "hover" && ae.type === "mouseleave" && (I.current = !0), fe === "outside-press" && (st ? (I.current = !1, C = !0) : I.current = !(Cr(ae) || Sr(ae)));
3135
3157
  }
3136
- O.on("openchange", $);
3158
+ O.on("openchange", j);
3137
3159
  const D = P.createElement("span");
3138
- D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && y && y.insertAdjacentElement("afterend", D);
3139
- function G() {
3140
- return typeof J.current == "boolean" ? gn() || D : J.current.current || D;
3160
+ D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && g && g.insertAdjacentElement("afterend", D);
3161
+ function J() {
3162
+ return typeof X.current == "boolean" ? gn() || D : X.current.current || D;
3141
3163
  }
3142
3164
  return () => {
3143
- O.off("openchange", $);
3144
- const C = we(P), re = oe(T, C) || Z && Ne(Z.nodesRef.current, v).some((st) => {
3165
+ O.off("openchange", j);
3166
+ const S = we(P), re = oe(T, S) || z && ke(z.nodesRef.current, v).some((st) => {
3145
3167
  var qt;
3146
- return oe((qt = st.context) == null ? void 0 : qt.elements.floating, C);
3168
+ return oe((qt = st.context) == null ? void 0 : qt.elements.floating, S);
3147
3169
  });
3148
- (re || N && ["click", "mousedown"].includes(N.type)) && u.domReference.current && xt(u.domReference.current);
3149
- const ae = G();
3170
+ (re || k && ["click", "mousedown"].includes(k.type)) && l.domReference.current && xt(l.domReference.current);
3171
+ const ae = J();
3150
3172
  queueMicrotask(() => {
3151
3173
  // eslint-disable-next-line react-hooks/exhaustive-deps
3152
- J.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3174
+ X.current && !I.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3153
3175
  // since it likely entered a different element which should be
3154
3176
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
3155
- (!(ae !== C && C !== P.body) || re) && ae.focus({
3156
- preventScroll: S
3177
+ (!(ae !== S && S !== P.body) || re) && ae.focus({
3178
+ preventScroll: C
3157
3179
  }), D.remove();
3158
3180
  });
3159
3181
  };
3160
- }, [n, T, R, J, A, u, O, Z, v, M, y]), E.useEffect(() => {
3182
+ }, [n, T, R, X, A, l, O, z, v, M, g]), E.useEffect(() => {
3161
3183
  queueMicrotask(() => {
3162
- L.current = !1;
3184
+ I.current = !1;
3163
3185
  });
3164
3186
  }, [n]), de(() => {
3165
- if (!n && q)
3166
- return q.setFocusManagerState({
3187
+ if (!n && B)
3188
+ return B.setFocusManagerState({
3167
3189
  modal: c,
3168
3190
  closeOnFocusOut: d,
3169
3191
  open: h,
3170
3192
  onOpenChange: p,
3171
- refs: u
3193
+ refs: l
3172
3194
  }), () => {
3173
- q.setFocusManagerState(null);
3195
+ B.setFocusManagerState(null);
3174
3196
  };
3175
- }, [n, q, c, h, p, u, d]), de(() => {
3197
+ }, [n, B, c, h, p, l, d]), de(() => {
3176
3198
  if (n || !R || typeof MutationObserver != "function" || b) return;
3177
- const S = () => {
3178
- const g = R.getAttribute("tabindex"), _ = m(), N = we(ce(T)), $ = _.indexOf(N);
3179
- $ !== -1 && (V.current = $), z.current.includes("floating") || N !== u.domReference.current && _.length === 0 ? g !== "0" && R.setAttribute("tabindex", "0") : g !== "-1" && R.setAttribute("tabindex", "-1");
3199
+ const C = () => {
3200
+ const w = R.getAttribute("tabindex"), _ = m(), k = we(ce(T)), j = _.indexOf(k);
3201
+ j !== -1 && (V.current = j), K.current.includes("floating") || k !== l.domReference.current && _.length === 0 ? w !== "0" && R.setAttribute("tabindex", "0") : w !== "-1" && R.setAttribute("tabindex", "-1");
3180
3202
  };
3181
- S();
3182
- const P = new MutationObserver(S);
3203
+ C();
3204
+ const P = new MutationObserver(C);
3183
3205
  return P.observe(R, {
3184
3206
  childList: !0,
3185
3207
  subtree: !0,
@@ -3187,43 +3209,43 @@ function si(e) {
3187
3209
  }), () => {
3188
3210
  P.disconnect();
3189
3211
  };
3190
- }, [n, T, R, u, z, m, b]);
3191
- function F(S) {
3212
+ }, [n, T, R, l, K, m, b]);
3213
+ function $(C) {
3192
3214
  return n || !f || !c ? null : /* @__PURE__ */ E.createElement(ii, {
3193
- ref: S === "start" ? te : X,
3215
+ ref: C === "start" ? te : G,
3194
3216
  onClick: (P) => p(!1, P.nativeEvent)
3195
3217
  }, typeof f == "string" ? f : "Dismiss");
3196
3218
  }
3197
- const W = !n && H && (c ? !I : !0) && (M || c);
3198
- return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(bn, {
3219
+ const q = !n && Y && (c ? !F : !0) && (M || c);
3220
+ return /* @__PURE__ */ E.createElement(E.Fragment, null, q && /* @__PURE__ */ E.createElement(bn, {
3199
3221
  "data-type": "inside",
3200
- ref: q == null ? void 0 : q.beforeInsideRef,
3201
- onFocus: (S) => {
3222
+ ref: B == null ? void 0 : B.beforeInsideRef,
3223
+ onFocus: (C) => {
3202
3224
  if (c) {
3203
- const g = x();
3204
- _e(o[0] === "reference" ? g[0] : g[g.length - 1]);
3205
- } else if (q != null && q.preserveTabOrder && q.portalNode)
3206
- if (L.current = !1, hn(S, q.portalNode)) {
3207
- const g = Qo() || y;
3208
- g == null || g.focus();
3225
+ const w = x();
3226
+ _e(o[0] === "reference" ? w[0] : w[w.length - 1]);
3227
+ } else if (B != null && B.preserveTabOrder && B.portalNode)
3228
+ if (I.current = !1, hn(C, B.portalNode)) {
3229
+ const w = Qo() || g;
3230
+ w == null || w.focus();
3209
3231
  } else {
3210
3232
  var P;
3211
- (P = q.beforeOutsideRef.current) == null || P.focus();
3233
+ (P = B.beforeOutsideRef.current) == null || P.focus();
3212
3234
  }
3213
3235
  }
3214
- }), !I && F("start"), r, F("end"), W && /* @__PURE__ */ E.createElement(bn, {
3236
+ }), !F && $("start"), r, $("end"), q && /* @__PURE__ */ E.createElement(bn, {
3215
3237
  "data-type": "inside",
3216
- ref: q == null ? void 0 : q.afterInsideRef,
3217
- onFocus: (S) => {
3238
+ ref: B == null ? void 0 : B.afterInsideRef,
3239
+ onFocus: (C) => {
3218
3240
  if (c)
3219
3241
  _e(x()[0]);
3220
- else if (q != null && q.preserveTabOrder && q.portalNode)
3221
- if (d && (L.current = !0), hn(S, q.portalNode)) {
3222
- const g = ei() || y;
3223
- g == null || g.focus();
3242
+ else if (B != null && B.preserveTabOrder && B.portalNode)
3243
+ if (d && (I.current = !0), hn(C, B.portalNode)) {
3244
+ const w = ei() || g;
3245
+ w == null || w.focus();
3224
3246
  } else {
3225
3247
  var P;
3226
- (P = q.afterOutsideRef.current) == null || P.focus();
3248
+ (P = B.afterOutsideRef.current) == null || P.focus();
3227
3249
  }
3228
3250
  }
3229
3251
  }));
@@ -3246,17 +3268,17 @@ function ai(e, t) {
3246
3268
  } = e, {
3247
3269
  enabled: s = !0,
3248
3270
  event: a = "click",
3249
- toggle: l = !0,
3271
+ toggle: u = !0,
3250
3272
  ignoreMouse: c = !1,
3251
3273
  keyboardHandlers: f = !0,
3252
3274
  stickIfOpen: d = !0
3253
- } = t, h = E.useRef(), u = E.useRef(!1), v = E.useMemo(() => ({
3275
+ } = t, h = E.useRef(), l = E.useRef(!1), v = E.useMemo(() => ({
3254
3276
  onPointerDown(p) {
3255
3277
  h.current = p.pointerType;
3256
3278
  },
3257
3279
  onMouseDown(p) {
3258
3280
  const O = h.current;
3259
- p.button === 0 && a !== "click" && (en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
3281
+ p.button === 0 && a !== "click" && (en(O) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
3260
3282
  },
3261
3283
  onClick(p) {
3262
3284
  const O = h.current;
@@ -3264,15 +3286,15 @@ function ai(e, t) {
3264
3286
  h.current = void 0;
3265
3287
  return;
3266
3288
  }
3267
- en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
3289
+ en(O) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
3268
3290
  },
3269
3291
  onKeyDown(p) {
3270
- h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), u.current = !0), p.key === "Enter" && n(!(r && l), p.nativeEvent, "click"));
3292
+ h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), l.current = !0), p.key === "Enter" && n(!(r && u), p.nativeEvent, "click"));
3271
3293
  },
3272
3294
  onKeyUp(p) {
3273
- p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && u.current && (u.current = !1, n(!(r && l), p.nativeEvent, "click"));
3295
+ p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && l.current && (l.current = !1, n(!(r && u), p.nativeEvent, "click"));
3274
3296
  }
3275
- }), [o, i, a, c, f, n, r, d, l]);
3297
+ }), [o, i, a, c, f, n, r, d, u]);
3276
3298
  return E.useMemo(() => s ? {
3277
3299
  reference: v
3278
3300
  } : {}, [s, v]);
@@ -3302,25 +3324,25 @@ function ui(e, t) {
3302
3324
  } = e, {
3303
3325
  enabled: s = !0,
3304
3326
  escapeKey: a = !0,
3305
- outsidePress: l = !0,
3327
+ outsidePress: u = !0,
3306
3328
  outsidePressEvent: c = "pointerdown",
3307
3329
  referencePress: f = !1,
3308
3330
  referencePressEvent: d = "pointerdown",
3309
3331
  ancestorScroll: h = !1,
3310
- bubbles: u,
3332
+ bubbles: l,
3311
3333
  capture: v
3312
- } = t, p = jt(), O = me(typeof l == "function" ? l : () => !1), A = typeof l == "function" ? O : l, k = E.useRef(!1), y = E.useRef(!1), {
3334
+ } = t, p = jt(), O = me(typeof u == "function" ? u : () => !1), A = typeof u == "function" ? O : u, N = E.useRef(!1), g = E.useRef(!1), {
3313
3335
  escapeKey: T,
3314
3336
  outsidePress: b
3315
- } = En(u), {
3316
- escapeKey: I,
3317
- outsidePress: H
3318
- } = En(v), z = E.useRef(!1), Q = me((L) => {
3319
- var j;
3320
- if (!r || !s || !a || L.key !== "Escape" || z.current)
3337
+ } = En(l), {
3338
+ escapeKey: F,
3339
+ outsidePress: Y
3340
+ } = En(v), K = E.useRef(!1), Q = me((I) => {
3341
+ var L;
3342
+ if (!r || !s || !a || I.key !== "Escape" || K.current)
3321
3343
  return;
3322
- const V = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, V) : [];
3323
- if (!T && (L.stopPropagation(), M.length > 0)) {
3344
+ const V = (L = i.current.floatingContext) == null ? void 0 : L.nodeId, M = p ? ke(p.nodesRef.current, V) : [];
3345
+ if (!T && (I.stopPropagation(), M.length > 0)) {
3324
3346
  let R = !0;
3325
3347
  if (M.forEach((m) => {
3326
3348
  var x;
@@ -3331,82 +3353,82 @@ function ui(e, t) {
3331
3353
  }), !R)
3332
3354
  return;
3333
3355
  }
3334
- n(!1, Ar(L) ? L.nativeEvent : L, "escape-key");
3335
- }), J = me((L) => {
3336
- var j;
3356
+ n(!1, Ar(I) ? I.nativeEvent : I, "escape-key");
3357
+ }), X = me((I) => {
3358
+ var L;
3337
3359
  const V = () => {
3338
3360
  var M;
3339
- Q(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
3361
+ Q(I), (M = Ee(I)) == null || M.removeEventListener("keydown", V);
3340
3362
  };
3341
- (j = Ee(L)) == null || j.addEventListener("keydown", V);
3342
- }), Z = me((L) => {
3343
- var j;
3344
- const V = k.current;
3345
- k.current = !1;
3346
- const M = y.current;
3347
- if (y.current = !1, c === "click" && M || V || typeof A == "function" && !A(L))
3363
+ (L = Ee(I)) == null || L.addEventListener("keydown", V);
3364
+ }), z = me((I) => {
3365
+ var L;
3366
+ const V = N.current;
3367
+ N.current = !1;
3368
+ const M = g.current;
3369
+ if (g.current = !1, c === "click" && M || V || typeof A == "function" && !A(I))
3348
3370
  return;
3349
- const R = Ee(L), m = "[" + Ze("inert") + "]", x = ce(o.floating).querySelectorAll(m);
3350
- let F = ee(R) ? R : null;
3351
- for (; F && !be(F); ) {
3352
- const g = pe(F);
3353
- if (be(g) || !ee(g))
3371
+ const R = Ee(I), m = "[" + Ze("inert") + "]", x = ce(o.floating).querySelectorAll(m);
3372
+ let $ = ee(R) ? R : null;
3373
+ for (; $ && !be($); ) {
3374
+ const w = pe($);
3375
+ if (be(w) || !ee(w))
3354
3376
  break;
3355
- F = g;
3377
+ $ = w;
3356
3378
  }
3357
3379
  if (x.length && ee(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3358
3380
  !oe(R, o.floating) && // If the target root element contains none of the markers, then the
3359
3381
  // element was injected after the floating element rendered.
3360
- Array.from(x).every((g) => !oe(F, g)))
3382
+ Array.from(x).every((w) => !oe($, w)))
3361
3383
  return;
3362
- if (ne(R) && X) {
3363
- const g = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3364
- let N = _ && L.offsetX > R.clientWidth;
3365
- if (_ && se(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || g && L.offsetY > R.clientHeight)
3384
+ if (ne(R) && G) {
3385
+ const w = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3386
+ let k = _ && I.offsetX > R.clientWidth;
3387
+ if (_ && se(R).direction === "rtl" && (k = I.offsetX <= R.offsetWidth - R.clientWidth), k || w && I.offsetY > R.clientHeight)
3366
3388
  return;
3367
3389
  }
3368
- const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, S = p && Ne(p.nodesRef.current, W).some((g) => {
3390
+ const q = (L = i.current.floatingContext) == null ? void 0 : L.nodeId, C = p && ke(p.nodesRef.current, q).some((w) => {
3369
3391
  var _;
3370
- return ht(L, (_ = g.context) == null ? void 0 : _.elements.floating);
3392
+ return ht(I, (_ = w.context) == null ? void 0 : _.elements.floating);
3371
3393
  });
3372
- if (ht(L, o.floating) || ht(L, o.domReference) || S)
3394
+ if (ht(I, o.floating) || ht(I, o.domReference) || C)
3373
3395
  return;
3374
- const P = p ? Ne(p.nodesRef.current, W) : [];
3396
+ const P = p ? ke(p.nodesRef.current, q) : [];
3375
3397
  if (P.length > 0) {
3376
- let g = !0;
3398
+ let w = !0;
3377
3399
  if (P.forEach((_) => {
3378
- var N;
3379
- if ((N = _.context) != null && N.open && !_.context.dataRef.current.__outsidePressBubbles) {
3380
- g = !1;
3400
+ var k;
3401
+ if ((k = _.context) != null && k.open && !_.context.dataRef.current.__outsidePressBubbles) {
3402
+ w = !1;
3381
3403
  return;
3382
3404
  }
3383
- }), !g)
3405
+ }), !w)
3384
3406
  return;
3385
3407
  }
3386
- n(!1, L, "outside-press");
3387
- }), q = me((L) => {
3388
- var j;
3408
+ n(!1, I, "outside-press");
3409
+ }), B = me((I) => {
3410
+ var L;
3389
3411
  const V = () => {
3390
3412
  var M;
3391
- Z(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
3413
+ z(I), (M = Ee(I)) == null || M.removeEventListener(c, V);
3392
3414
  };
3393
- (j = Ee(L)) == null || j.addEventListener(c, V);
3415
+ (L = Ee(I)) == null || L.addEventListener(c, V);
3394
3416
  });
3395
3417
  E.useEffect(() => {
3396
3418
  if (!r || !s)
3397
3419
  return;
3398
3420
  i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
3399
- let L = -1;
3400
- function j(x) {
3421
+ let I = -1;
3422
+ function L(x) {
3401
3423
  n(!1, x, "ancestor-scroll");
3402
3424
  }
3403
3425
  function V() {
3404
- window.clearTimeout(L), z.current = !0;
3426
+ window.clearTimeout(I), K.current = !0;
3405
3427
  }
3406
3428
  function M() {
3407
- L = window.setTimeout(
3429
+ I = window.setTimeout(
3408
3430
  () => {
3409
- z.current = !1;
3431
+ K.current = !1;
3410
3432
  },
3411
3433
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3412
3434
  // Only apply to WebKit for the test to remain 0ms.
@@ -3414,44 +3436,44 @@ function ui(e, t) {
3414
3436
  );
3415
3437
  }
3416
3438
  const R = ce(o.floating);
3417
- a && (R.addEventListener("keydown", I ? J : Q, I), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, H ? q : Z, H);
3439
+ a && (R.addEventListener("keydown", F ? X : Q, F), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, Y ? B : z, Y);
3418
3440
  let m = [];
3419
3441
  return h && (ee(o.domReference) && (m = ve(o.domReference)), ee(o.floating) && (m = m.concat(ve(o.floating))), !ee(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((x) => {
3420
- var F;
3421
- return x !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
3442
+ var $;
3443
+ return x !== (($ = R.defaultView) == null ? void 0 : $.visualViewport);
3422
3444
  }), m.forEach((x) => {
3423
- x.addEventListener("scroll", j, {
3445
+ x.addEventListener("scroll", L, {
3424
3446
  passive: !0
3425
3447
  });
3426
3448
  }), () => {
3427
- a && (R.removeEventListener("keydown", I ? J : Q, I), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, H ? q : Z, H), m.forEach((x) => {
3428
- x.removeEventListener("scroll", j);
3429
- }), window.clearTimeout(L);
3449
+ a && (R.removeEventListener("keydown", F ? X : Q, F), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, Y ? B : z, Y), m.forEach((x) => {
3450
+ x.removeEventListener("scroll", L);
3451
+ }), window.clearTimeout(I);
3430
3452
  };
3431
- }, [i, o, a, A, c, r, n, h, s, T, b, Q, I, J, Z, H, q]), E.useEffect(() => {
3432
- k.current = !1;
3453
+ }, [i, o, a, A, c, r, n, h, s, T, b, Q, F, X, z, Y, B]), E.useEffect(() => {
3454
+ N.current = !1;
3433
3455
  }, [A, c]);
3434
3456
  const te = E.useMemo(() => ({
3435
3457
  onKeyDown: Q,
3436
- [ci[d]]: (L) => {
3437
- f && n(!1, L.nativeEvent, "reference-press");
3458
+ [ci[d]]: (I) => {
3459
+ f && n(!1, I.nativeEvent, "reference-press");
3438
3460
  }
3439
- }), [Q, n, f, d]), X = E.useMemo(() => ({
3461
+ }), [Q, n, f, d]), G = E.useMemo(() => ({
3440
3462
  onKeyDown: Q,
3441
3463
  onMouseDown() {
3442
- y.current = !0;
3464
+ g.current = !0;
3443
3465
  },
3444
3466
  onMouseUp() {
3445
- y.current = !0;
3467
+ g.current = !0;
3446
3468
  },
3447
3469
  [li[c]]: () => {
3448
- k.current = !0;
3470
+ N.current = !0;
3449
3471
  }
3450
3472
  }), [Q, c]);
3451
3473
  return E.useMemo(() => s ? {
3452
3474
  reference: te,
3453
- floating: X
3454
- } : {}, [s, te, X]);
3475
+ floating: G
3476
+ } : {}, [s, te, G]);
3455
3477
  }
3456
3478
  function fi(e) {
3457
3479
  const {
@@ -3460,23 +3482,23 @@ function fi(e) {
3460
3482
  elements: n
3461
3483
  } = e, o = Qn(), i = E.useRef({}), [s] = E.useState(() => Ho()), a = er() != null;
3462
3484
  if (process.env.NODE_ENV !== "production") {
3463
- const u = n.reference;
3464
- u && !ee(u) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3485
+ const l = n.reference;
3486
+ l && !ee(l) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
3465
3487
  }
3466
- const [l, c] = E.useState(n.reference), f = me((u, v, p) => {
3467
- i.current.openEvent = u ? v : void 0, s.emit("openchange", {
3468
- open: u,
3488
+ const [u, c] = E.useState(n.reference), f = me((l, v, p) => {
3489
+ i.current.openEvent = l ? v : void 0, s.emit("openchange", {
3490
+ open: l,
3469
3491
  event: v,
3470
3492
  reason: p,
3471
3493
  nested: a
3472
- }), r == null || r(u, v, p);
3494
+ }), r == null || r(l, v, p);
3473
3495
  }), d = E.useMemo(() => ({
3474
3496
  setPositionReference: c
3475
3497
  }), []), h = E.useMemo(() => ({
3476
- reference: l || n.reference || null,
3498
+ reference: u || n.reference || null,
3477
3499
  floating: n.floating || null,
3478
3500
  domReference: n.reference
3479
- }), [l, n.reference, n.floating]);
3501
+ }), [u, n.reference, n.floating]);
3480
3502
  return E.useMemo(() => ({
3481
3503
  dataRef: i,
3482
3504
  open: t,
@@ -3498,11 +3520,11 @@ function di(e) {
3498
3520
  floating: null,
3499
3521
  ...e.elements
3500
3522
  }
3501
- }), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a, l] = E.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = E.useRef(null), h = jt();
3523
+ }), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a, u] = E.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = E.useRef(null), h = jt();
3502
3524
  de(() => {
3503
3525
  f && (d.current = f);
3504
3526
  }, [f]);
3505
- const u = Lo({
3527
+ const l = Lo({
3506
3528
  ...e,
3507
3529
  elements: {
3508
3530
  ...o,
@@ -3510,42 +3532,42 @@ function di(e) {
3510
3532
  reference: a
3511
3533
  }
3512
3534
  }
3513
- }), v = E.useCallback((y) => {
3514
- const T = ee(y) ? {
3515
- getBoundingClientRect: () => y.getBoundingClientRect(),
3516
- contextElement: y
3517
- } : y;
3518
- l(T), u.refs.setReference(T);
3519
- }, [u.refs]), p = E.useCallback((y) => {
3520
- (ee(y) || y === null) && (d.current = y, s(y)), (ee(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3535
+ }), v = E.useCallback((g) => {
3536
+ const T = ee(g) ? {
3537
+ getBoundingClientRect: () => g.getBoundingClientRect(),
3538
+ contextElement: g
3539
+ } : g;
3540
+ u(T), l.refs.setReference(T);
3541
+ }, [l.refs]), p = E.useCallback((g) => {
3542
+ (ee(g) || g === null) && (d.current = g, s(g)), (ee(l.refs.reference.current) || l.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
3521
3543
  // `null` to support `positionReference` + an unstable `reference`
3522
3544
  // callback ref.
3523
- y !== null && !ee(y)) && u.refs.setReference(y);
3524
- }, [u.refs]), O = E.useMemo(() => ({
3525
- ...u.refs,
3545
+ g !== null && !ee(g)) && l.refs.setReference(g);
3546
+ }, [l.refs]), O = E.useMemo(() => ({
3547
+ ...l.refs,
3526
3548
  setReference: p,
3527
3549
  setPositionReference: v,
3528
3550
  domReference: d
3529
- }), [u.refs, p, v]), A = E.useMemo(() => ({
3530
- ...u.elements,
3551
+ }), [l.refs, p, v]), A = E.useMemo(() => ({
3552
+ ...l.elements,
3531
3553
  domReference: f
3532
- }), [u.elements, f]), k = E.useMemo(() => ({
3533
- ...u,
3554
+ }), [l.elements, f]), N = E.useMemo(() => ({
3555
+ ...l,
3534
3556
  ...n,
3535
3557
  refs: O,
3536
3558
  elements: A,
3537
3559
  nodeId: t
3538
- }), [u, O, A, t, n]);
3560
+ }), [l, O, A, t, n]);
3539
3561
  return de(() => {
3540
- n.dataRef.current.floatingContext = k;
3541
- const y = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
3542
- y && (y.context = k);
3562
+ n.dataRef.current.floatingContext = N;
3563
+ const g = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
3564
+ g && (g.context = N);
3543
3565
  }), E.useMemo(() => ({
3544
- ...u,
3545
- context: k,
3566
+ ...l,
3567
+ context: N,
3546
3568
  refs: O,
3547
3569
  elements: A
3548
- }), [u, O, A, k]);
3570
+ }), [l, O, A, N]);
3549
3571
  }
3550
3572
  const Rn = "active", Tn = "selected";
3551
3573
  function Et(e, t, r) {
@@ -3555,9 +3577,9 @@ function Et(e, t, r) {
3555
3577
  const {
3556
3578
  [Rn]: s,
3557
3579
  [Tn]: a,
3558
- ...l
3580
+ ...u
3559
3581
  } = e;
3560
- i = l;
3582
+ i = u;
3561
3583
  }
3562
3584
  return {
3563
3585
  ...r === "floating" && {
@@ -3568,14 +3590,14 @@ function Et(e, t, r) {
3568
3590
  ...t.map((s) => {
3569
3591
  const a = s ? s[r] : null;
3570
3592
  return typeof a == "function" ? e ? a(e) : null : a;
3571
- }).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((l) => {
3572
- let [c, f] = l;
3593
+ }).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((u) => {
3594
+ let [c, f] = u;
3573
3595
  if (!(o && [Rn, Tn].includes(c)))
3574
3596
  if (c.indexOf("on") === 0) {
3575
3597
  if (n.has(c) || n.set(c, []), typeof f == "function") {
3576
3598
  var d;
3577
3599
  (d = n.get(c)) == null || d.push(f), s[c] = function() {
3578
- for (var h, u = arguments.length, v = new Array(u), p = 0; p < u; p++)
3600
+ for (var h, l = arguments.length, v = new Array(l), p = 0; p < l; p++)
3579
3601
  v[p] = arguments[p];
3580
3602
  return (h = n.get(c)) == null ? void 0 : h.map((O) => O(...v)).find((O) => O !== void 0);
3581
3603
  };
@@ -3616,7 +3638,7 @@ function hi(e, t) {
3616
3638
  } = e, {
3617
3639
  enabled: i = !0,
3618
3640
  role: s = "dialog"
3619
- } = t, a = (r = mi.get(s)) != null ? r : s, l = Qn(), f = er() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
3641
+ } = t, a = (r = mi.get(s)) != null ? r : s, u = Qn(), f = er() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
3620
3642
  ["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
3621
3643
  } : {
3622
3644
  "aria-expanded": n ? "true" : "false",
@@ -3626,7 +3648,7 @@ function hi(e, t) {
3626
3648
  role: "combobox"
3627
3649
  },
3628
3650
  ...a === "menu" && {
3629
- id: l
3651
+ id: u
3630
3652
  },
3631
3653
  ...a === "menu" && f && {
3632
3654
  role: "menuitem"
@@ -3637,7 +3659,7 @@ function hi(e, t) {
3637
3659
  ...s === "combobox" && {
3638
3660
  "aria-autocomplete": "list"
3639
3661
  }
3640
- }, [a, o, f, n, l, s]), h = E.useMemo(() => {
3662
+ }, [a, o, f, n, u, s]), h = E.useMemo(() => {
3641
3663
  const v = {
3642
3664
  id: o,
3643
3665
  ...a && {
@@ -3647,10 +3669,10 @@ function hi(e, t) {
3647
3669
  return a === "tooltip" || s === "label" ? v : {
3648
3670
  ...v,
3649
3671
  ...a === "menu" && {
3650
- "aria-labelledby": l
3672
+ "aria-labelledby": u
3651
3673
  }
3652
3674
  };
3653
- }, [a, o, l, s]), u = E.useCallback((v) => {
3675
+ }, [a, o, u, s]), l = E.useCallback((v) => {
3654
3676
  let {
3655
3677
  active: p,
3656
3678
  selected: O
@@ -3680,8 +3702,8 @@ function hi(e, t) {
3680
3702
  return E.useMemo(() => i ? {
3681
3703
  reference: d,
3682
3704
  floating: h,
3683
- item: u
3684
- } : {}, [i, d, h, u]);
3705
+ item: l
3706
+ } : {}, [i, d, h, l]);
3685
3707
  }
3686
3708
  function vi({ className: e, children: t, buttonText: r }) {
3687
3709
  const [n, o] = On(!1), { refs: i, floatingStyles: s, context: a } = di({
@@ -3690,20 +3712,20 @@ function vi({ className: e, children: t, buttonText: r }) {
3690
3712
  middleware: [Fo(16), jo(), $o()],
3691
3713
  whileElementsMounted: Ao,
3692
3714
  placement: "right"
3693
- }), l = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
3694
- l,
3715
+ }), u = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
3716
+ u,
3695
3717
  c,
3696
3718
  f
3697
3719
  ]);
3698
- return /* @__PURE__ */ B(ke, { children: [
3699
- /* @__PURE__ */ w("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ w(Re, { text: r }) }),
3700
- n && /* @__PURE__ */ w(si, { context: a, modal: !1, children: /* @__PURE__ */ w(
3720
+ return /* @__PURE__ */ W(Pe, { children: [
3721
+ /* @__PURE__ */ y("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ y(Re, { text: r }) }),
3722
+ n && /* @__PURE__ */ y(si, { context: a, modal: !1, children: /* @__PURE__ */ y(
3701
3723
  "div",
3702
3724
  {
3703
3725
  ref: i.setFloating,
3704
3726
  style: s,
3705
3727
  ...h(),
3706
- children: /* @__PURE__ */ w(gr, { children: t })
3728
+ children: /* @__PURE__ */ y(gr, { children: t })
3707
3729
  }
3708
3730
  ) })
3709
3731
  ] });
@@ -3713,12 +3735,12 @@ const qi = ({
3713
3735
  children: t,
3714
3736
  buttonText: r = "Menu button"
3715
3737
  }) => {
3716
- const n = K("rpf-menu-button", e);
3717
- return /* @__PURE__ */ w(vi, { className: n, buttonText: r, children: t });
3718
- }, Sn = (e) => e ? /* @__PURE__ */ w("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Cn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ B(ke, { children: [
3719
- t === "left" && r !== "" ? Sn(r) : null,
3738
+ const n = Z("rpf-menu-button", e);
3739
+ return /* @__PURE__ */ y(vi, { className: n, buttonText: r, children: t });
3740
+ }, Cn = (e) => e ? /* @__PURE__ */ y("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Sn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ W(Pe, { children: [
3741
+ t === "left" && r !== "" ? Cn(r) : null,
3720
3742
  e,
3721
- t === "right" && r !== "" ? Sn(r) : null
3743
+ t === "right" && r !== "" ? Cn(r) : null
3722
3744
  ] }), Vi = ({
3723
3745
  text: e,
3724
3746
  href: t,
@@ -3728,30 +3750,30 @@ const qi = ({
3728
3750
  className: i,
3729
3751
  onClick: s
3730
3752
  }) => {
3731
- const a = K(
3753
+ const a = Z(
3732
3754
  "rpf-menu__item",
3733
3755
  { "rpf-menu__item--danger": o },
3734
3756
  i
3735
3757
  );
3736
- return /* @__PURE__ */ w("li", { className: a, children: t ? /* @__PURE__ */ w("a", { href: t, children: /* @__PURE__ */ w(Cn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ w("button", { type: "button", onClick: s, children: /* @__PURE__ */ w(Cn, { text: e, iconPosition: n, icon: r }) }) });
3737
- }, Yi = ({ text: e }) => /* @__PURE__ */ w("li", { className: "rpf-menu__title", children: /* @__PURE__ */ w("span", { children: e }) }), Ui = ({
3758
+ return /* @__PURE__ */ y("li", { className: a, children: t ? /* @__PURE__ */ y("a", { href: t, children: /* @__PURE__ */ y(Sn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ y("button", { type: "button", onClick: s, children: /* @__PURE__ */ y(Sn, { text: e, iconPosition: n, icon: r }) }) });
3759
+ }, Yi = ({ text: e }) => /* @__PURE__ */ y("li", { className: "rpf-menu__title", children: /* @__PURE__ */ y("span", { children: e }) }), Ui = ({
3738
3760
  text: e = "",
3739
3761
  percent: t,
3740
3762
  complete: r = !1,
3741
3763
  className: n
3742
- }) => /* @__PURE__ */ w(
3764
+ }) => /* @__PURE__ */ y(
3743
3765
  "div",
3744
3766
  {
3745
- className: K("rpf-progress-bar", {
3767
+ className: Z("rpf-progress-bar", {
3746
3768
  "rpf-progress-bar--complete": r,
3747
3769
  className: n
3748
3770
  }),
3749
- children: /* @__PURE__ */ B("label", { className: "rpf-progress-bar__label", children: [
3750
- /* @__PURE__ */ w("span", { children: e }),
3751
- /* @__PURE__ */ w("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
3771
+ children: /* @__PURE__ */ W("label", { className: "rpf-progress-bar__label", children: [
3772
+ /* @__PURE__ */ y("span", { children: e }),
3773
+ /* @__PURE__ */ y("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
3752
3774
  ] })
3753
3775
  }
3754
- ), Hi = ({ children: e }) => /* @__PURE__ */ w("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ w("div", { className: "rpf-table-cell__content", children: e }) });
3776
+ ), Hi = ({ children: e }) => /* @__PURE__ */ y("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ y("div", { className: "rpf-table-cell__content", children: e }) });
3755
3777
  /**
3756
3778
  * @license lucide-react v0.553.0 - ISC
3757
3779
  *
@@ -3802,10 +3824,10 @@ const xi = It(
3802
3824
  children: i,
3803
3825
  iconNode: s,
3804
3826
  ...a
3805
- }, l) => Tt(
3827
+ }, u) => Tt(
3806
3828
  "svg",
3807
3829
  {
3808
- ref: l,
3830
+ ref: u,
3809
3831
  ...wi,
3810
3832
  width: t,
3811
3833
  height: t,
@@ -3866,20 +3888,20 @@ const Ti = [
3866
3888
  ["path", { d: "M11 4h10", key: "1w87gc" }],
3867
3889
  ["path", { d: "M11 8h7", key: "djye34" }],
3868
3890
  ["path", { d: "M11 12h4", key: "q8tih4" }]
3869
- ], Si = Bt("arrow-down-wide-narrow", Ti);
3891
+ ], Ci = Bt("arrow-down-wide-narrow", Ti);
3870
3892
  /**
3871
3893
  * @license lucide-react v0.553.0 - ISC
3872
3894
  *
3873
3895
  * This source code is licensed under the ISC license.
3874
3896
  * See the LICENSE file in the root directory of this source tree.
3875
3897
  */
3876
- const Ci = [
3898
+ const Si = [
3877
3899
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
3878
3900
  ["path", { d: "M7 4v16", key: "1glfcx" }],
3879
3901
  ["path", { d: "M11 12h4", key: "q8tih4" }],
3880
3902
  ["path", { d: "M11 16h7", key: "uosisv" }],
3881
3903
  ["path", { d: "M11 20h10", key: "jvxblo" }]
3882
- ], _i = Bt("arrow-up-narrow-wide", Ci), Oi = (e, t) => {
3904
+ ], _i = Bt("arrow-up-narrow-wide", Si), Oi = (e, t) => {
3883
3905
  if (e)
3884
3906
  return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
3885
3907
  }, Ki = ({
@@ -3887,25 +3909,25 @@ const Ci = [
3887
3909
  children: t,
3888
3910
  onClick: r
3889
3911
  }) => {
3890
- const n = !!r, o = e === "up" ? _i : e === "down" ? Si : Ri, i = Oi(n, e);
3891
- return /* @__PURE__ */ w("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ w("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ B("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
3912
+ const n = !!r, o = e === "up" ? _i : e === "down" ? Ci : Ri, i = Oi(n, e);
3913
+ return /* @__PURE__ */ y("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ y("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ W("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
3892
3914
  t,
3893
- /* @__PURE__ */ w(o, { size: 20 })
3894
- ] }) : /* @__PURE__ */ w(ke, { children: t }) }) });
3895
- }, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ w(
3915
+ /* @__PURE__ */ y(o, { size: 20 })
3916
+ ] }) : /* @__PURE__ */ y(Pe, { children: t }) }) });
3917
+ }, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ y(
3896
3918
  "div",
3897
3919
  {
3898
3920
  "data-testid": "table-container",
3899
- className: K("rpf-table", { "rpf-table--full-width": r }),
3900
- children: /* @__PURE__ */ B(
3921
+ className: Z("rpf-table", { "rpf-table--full-width": r }),
3922
+ children: /* @__PURE__ */ W(
3901
3923
  "table",
3902
3924
  {
3903
- className: K("rpf-table__table", {
3925
+ className: Z("rpf-table__table", {
3904
3926
  "rpf-table__table--full-width": r
3905
3927
  }),
3906
3928
  children: [
3907
- /* @__PURE__ */ w("thead", { children: /* @__PURE__ */ w("tr", { className: "rpf-table-row", children: e }) }),
3908
- /* @__PURE__ */ w("tbody", { children: t.map((n, o) => /* @__PURE__ */ w("tr", { className: "rpf-table-row", children: n }, o)) })
3929
+ /* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { className: "rpf-table-row", children: e }) }),
3930
+ /* @__PURE__ */ y("tbody", { children: t.map((n, o) => /* @__PURE__ */ y("tr", { className: "rpf-table-row", children: n }, o)) })
3909
3931
  ]
3910
3932
  }
3911
3933
  )
@@ -3917,13 +3939,13 @@ const Ci = [
3917
3939
  icon: n,
3918
3940
  iconPosition: o
3919
3941
  }) => {
3920
- const i = n ? /* @__PURE__ */ w("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3942
+ const i = n ? /* @__PURE__ */ y("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3921
3943
  n && !o && (o = "left");
3922
3944
  const s = t && t !== "default" ? `rpf-tag--${t}` : null;
3923
- return /* @__PURE__ */ B(
3945
+ return /* @__PURE__ */ W(
3924
3946
  "span",
3925
3947
  {
3926
- className: K("rpf-tag", s, {
3948
+ className: Z("rpf-tag", s, {
3927
3949
  "rpf-tag--secondary": r
3928
3950
  }),
3929
3951
  children: [