@raspberrypifoundation/design-system-react 2.9.1 → 2.10.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,8 +1,8 @@
1
- import { jsxs as q, jsx as E, Fragment as Ie } from "react/jsx-runtime";
2
- import * as x from "react";
3
- import rr, { forwardRef as kt, useRef as Rt, useEffect as We, useLayoutEffect as On, useState as or, createElement as Tt } from "react";
1
+ import { jsxs as B, jsx as w, Fragment as ke } from "react/jsx-runtime";
2
+ import * as E from "react";
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";
5
- function An(e) {
5
+ function Pn(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var at = { exports: {} };
@@ -45,7 +45,7 @@ function sr() {
45
45
  })(at)), at.exports;
46
46
  }
47
47
  var ar = sr();
48
- const ee = /* @__PURE__ */ An(ar);
48
+ const K = /* @__PURE__ */ Pn(ar);
49
49
  var Me = { exports: {} }, De = { exports: {} }, Y = {};
50
50
  /** @license React v16.13.1
51
51
  * react-is.production.min.js
@@ -59,11 +59,11 @@ var Yt;
59
59
  function cr() {
60
60
  if (Yt) return Y;
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, I = e ? Symbol.for("react.scope") : 60119;
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
63
  function y(b) {
64
64
  if (typeof b == "object" && b !== null) {
65
- var k = b.$$typeof;
66
- switch (k) {
65
+ var I = b.$$typeof;
66
+ switch (I) {
67
67
  case t:
68
68
  switch (b = b.type, b) {
69
69
  case l:
@@ -82,11 +82,11 @@ function cr() {
82
82
  case s:
83
83
  return b;
84
84
  default:
85
- return k;
85
+ return I;
86
86
  }
87
87
  }
88
88
  case r:
89
- return k;
89
+ return I;
90
90
  }
91
91
  }
92
92
  }
@@ -118,7 +118,7 @@ function cr() {
118
118
  }, Y.isSuspense = function(b) {
119
119
  return y(b) === d;
120
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 === I || b.$$typeof === p);
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
122
  }, Y.typeOf = y, Y;
123
123
  }
124
124
  var U = {};
@@ -133,10 +133,10 @@ 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, I = e ? Symbol.for("react.scope") : 60119;
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
137
  function y(C) {
138
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 === I || C.$$typeof === p);
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
140
  }
141
141
  function T(C) {
142
142
  if (typeof C == "object" && C !== null) {
@@ -170,14 +170,14 @@ function lr() {
170
170
  }
171
171
  }
172
172
  }
173
- var b = l, k = c, H = a, K = s, J = t, Z = f, G = n, B = v, te = u, z = r, L = i, j = o, V = d, M = !1;
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
174
  function R(C) {
175
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;
176
176
  }
177
177
  function m(C) {
178
178
  return T(C) === c;
179
179
  }
180
- function w(C) {
180
+ function x(C) {
181
181
  return T(C) === a;
182
182
  }
183
183
  function F(C) {
@@ -207,14 +207,14 @@ function lr() {
207
207
  function D(C) {
208
208
  return T(C) === o;
209
209
  }
210
- function X(C) {
210
+ function G(C) {
211
211
  return T(C) === d;
212
212
  }
213
- U.AsyncMode = b, U.ConcurrentMode = k, U.ContextConsumer = H, U.ContextProvider = K, U.Element = J, U.ForwardRef = Z, U.Fragment = G, U.Lazy = B, U.Memo = te, U.Portal = z, U.Profiler = L, U.StrictMode = j, U.Suspense = V, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = w, 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 = X, U.isValidElementType = y, U.typeOf = T;
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
214
  })()), U;
215
215
  }
216
216
  var Ht;
217
- function Pn() {
217
+ function Nn() {
218
218
  return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? De.exports = cr() : De.exports = lr()), De.exports;
219
219
  }
220
220
  /*
@@ -276,7 +276,7 @@ function Mt() {
276
276
  return lt = e, lt;
277
277
  }
278
278
  var ut, Xt;
279
- function Nn() {
279
+ function kn() {
280
280
  return Xt || (Xt = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
281
281
  }
282
282
  var ft, Gt;
@@ -286,7 +286,7 @@ function fr() {
286
286
  var e = function() {
287
287
  };
288
288
  if (process.env.NODE_ENV !== "production") {
289
- var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ Nn();
289
+ var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ kn();
290
290
  e = function(i) {
291
291
  var s = "Warning: " + i;
292
292
  typeof console < "u" && console.error(s);
@@ -332,7 +332,7 @@ var dt, Zt;
332
332
  function dr() {
333
333
  if (Zt) return dt;
334
334
  Zt = 1;
335
- var e = Pn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ Nn(), o = /* @__PURE__ */ fr(), i = function() {
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
338
  var l = "Warning: " + a;
@@ -348,9 +348,9 @@ function dr() {
348
348
  return dt = function(a, l) {
349
349
  var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
350
350
  function d(m) {
351
- var w = m && (c && m[c] || m[f]);
352
- if (typeof w == "function")
353
- return w;
351
+ var x = m && (c && m[c] || m[f]);
352
+ if (typeof x == "function")
353
+ return x;
354
354
  }
355
355
  var h = "<<anonymous>>", u = {
356
356
  array: A("array"),
@@ -361,30 +361,30 @@ function dr() {
361
361
  object: A("object"),
362
362
  string: A("string"),
363
363
  symbol: A("symbol"),
364
- any: I(),
364
+ any: k(),
365
365
  arrayOf: y,
366
366
  element: T(),
367
367
  elementType: b(),
368
- instanceOf: k,
369
- node: Z(),
370
- objectOf: K,
368
+ instanceOf: I,
369
+ node: J(),
370
+ objectOf: z,
371
371
  oneOf: H,
372
- oneOfType: J,
373
- shape: B,
372
+ oneOfType: Q,
373
+ shape: q,
374
374
  exact: te
375
375
  };
376
- function v(m, w) {
377
- return m === w ? m !== 0 || 1 / m === 1 / w : m !== m && w !== w;
376
+ function v(m, x) {
377
+ return m === x ? m !== 0 || 1 / m === 1 / x : m !== m && x !== x;
378
378
  }
379
- function p(m, w) {
380
- this.message = m, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
379
+ function p(m, x) {
380
+ this.message = m, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
381
381
  }
382
382
  p.prototype = Error.prototype;
383
383
  function O(m) {
384
384
  if (process.env.NODE_ENV !== "production")
385
- var w = {}, F = 0;
386
- function W(P, g, _, N, $, D, X) {
387
- if (N = N || h, D = D || _, X !== r) {
385
+ var x = {}, F = 0;
386
+ function W(P, g, _, N, $, D, G) {
387
+ if (N = N || h, D = D || _, G !== r) {
388
388
  if (l) {
389
389
  var C = 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"
@@ -392,10 +392,10 @@ function dr() {
392
392
  throw C.name = "Invariant Violation", C;
393
393
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
394
394
  var re = N + ":" + _;
395
- !w[re] && // Avoid spamming the console because they are often not actionable except for lib authors
395
+ !x[re] && // Avoid spamming the console because they are often not actionable except for lib authors
396
396
  F < 3 && (i(
397
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
- ), w[re] = !0, F++);
398
+ ), x[re] = !0, F++);
399
399
  }
400
400
  }
401
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);
@@ -404,7 +404,7 @@ function dr() {
404
404
  return S.isRequired = W.bind(null, !0), S;
405
405
  }
406
406
  function A(m) {
407
- function w(F, W, S, P, g, _) {
407
+ function x(F, W, S, P, g, _) {
408
408
  var N = F[W], $ = j(N);
409
409
  if ($ !== m) {
410
410
  var D = V(N);
@@ -415,13 +415,13 @@ function dr() {
415
415
  }
416
416
  return null;
417
417
  }
418
- return O(w);
418
+ return O(x);
419
419
  }
420
- function I() {
420
+ function k() {
421
421
  return O(s);
422
422
  }
423
423
  function y(m) {
424
- function w(F, W, S, P, g) {
424
+ function x(F, W, S, P, g) {
425
425
  if (typeof m != "function")
426
426
  return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
427
427
  var _ = F[W];
@@ -436,11 +436,11 @@ function dr() {
436
436
  }
437
437
  return null;
438
438
  }
439
- return O(w);
439
+ return O(x);
440
440
  }
441
441
  function T() {
442
- function m(w, F, W, S, P) {
443
- var g = w[F];
442
+ function m(x, F, W, S, P) {
443
+ var g = x[F];
444
444
  if (!a(g)) {
445
445
  var _ = j(g);
446
446
  return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement."));
@@ -450,8 +450,8 @@ function dr() {
450
450
  return O(m);
451
451
  }
452
452
  function b() {
453
- function m(w, F, W, S, P) {
454
- var g = w[F];
453
+ function m(x, F, W, S, P) {
454
+ var g = x[F];
455
455
  if (!e.isValidElementType(g)) {
456
456
  var _ = j(g);
457
457
  return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement type."));
@@ -460,35 +460,35 @@ function dr() {
460
460
  }
461
461
  return O(m);
462
462
  }
463
- function k(m) {
464
- function w(F, W, S, P, g) {
463
+ function I(m) {
464
+ function x(F, W, S, P, g) {
465
465
  if (!(F[W] instanceof m)) {
466
466
  var _ = m.name || h, N = R(F[W]);
467
467
  return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + _ + "`."));
468
468
  }
469
469
  return null;
470
470
  }
471
- return O(w);
471
+ return O(x);
472
472
  }
473
473
  function H(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 w(F, W, S, P, g) {
478
+ function x(F, W, S, P, g) {
479
479
  for (var _ = F[W], N = 0; N < m.length; N++)
480
480
  if (v(_, m[N]))
481
481
  return null;
482
- var $ = JSON.stringify(m, function(X, C) {
482
+ var $ = JSON.stringify(m, function(G, C) {
483
483
  var re = V(C);
484
484
  return re === "symbol" ? String(C) : C;
485
485
  });
486
486
  return new p("Invalid " + P + " `" + g + "` of value `" + String(_) + "` " + ("supplied to `" + S + "`, expected one of " + $ + "."));
487
487
  }
488
- return O(w);
488
+ return O(x);
489
489
  }
490
- function K(m) {
491
- function w(F, W, S, P, g) {
490
+ function z(m) {
491
+ function x(F, W, S, P, g) {
492
492
  if (typeof m != "function")
493
493
  return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
494
494
  var _ = F[W], N = j(_);
@@ -502,21 +502,21 @@ function dr() {
502
502
  }
503
503
  return null;
504
504
  }
505
- return O(w);
505
+ return O(x);
506
506
  }
507
- function J(m) {
507
+ function Q(m) {
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
- for (var w = 0; w < m.length; w++) {
511
- var F = m[w];
510
+ for (var x = 0; x < m.length; x++) {
511
+ var F = m[x];
512
512
  if (typeof F != "function")
513
513
  return i(
514
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + w + "."
514
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + x + "."
515
515
  ), s;
516
516
  }
517
517
  function W(S, P, g, _, N) {
518
518
  for (var $ = [], D = 0; D < m.length; D++) {
519
- var X = m[D], C = X(S, P, g, _, N, r);
519
+ var G = m[D], C = G(S, P, g, _, N, r);
520
520
  if (C == null)
521
521
  return null;
522
522
  C.data && n(C.data, "expectedType") && $.push(C.data.expectedType);
@@ -526,58 +526,58 @@ function dr() {
526
526
  }
527
527
  return O(W);
528
528
  }
529
- function Z() {
530
- function m(w, F, W, S, P) {
531
- return z(w[F]) ? null : new p("Invalid " + S + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
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."));
532
532
  }
533
533
  return O(m);
534
534
  }
535
- function G(m, w, F, W, S) {
535
+ function Z(m, x, F, W, S) {
536
536
  return new p(
537
- (m || "React class") + ": " + w + " 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 `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
538
538
  );
539
539
  }
540
- function B(m) {
541
- function w(F, W, S, P, g) {
540
+ function q(m) {
541
+ function x(F, W, S, P, g) {
542
542
  var _ = F[W], N = j(_);
543
543
  if (N !== "object")
544
544
  return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
545
545
  for (var $ in m) {
546
546
  var D = m[$];
547
547
  if (typeof D != "function")
548
- return G(S, P, g, $, V(D));
549
- var X = D(_, $, S, P, g + "." + $, r);
550
- if (X)
551
- return X;
548
+ return Z(S, P, g, $, V(D));
549
+ var G = D(_, $, S, P, g + "." + $, r);
550
+ if (G)
551
+ return G;
552
552
  }
553
553
  return null;
554
554
  }
555
- return O(w);
555
+ return O(x);
556
556
  }
557
557
  function te(m) {
558
- function w(F, W, S, P, g) {
558
+ function x(F, W, S, P, g) {
559
559
  var _ = F[W], N = j(_);
560
560
  if (N !== "object")
561
561
  return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
562
562
  var $ = t({}, F[W], m);
563
563
  for (var D in $) {
564
- var X = m[D];
565
- if (n(m, D) && typeof X != "function")
566
- return G(S, P, g, D, V(X));
567
- if (!X)
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)
568
568
  return new p(
569
569
  "Invalid " + P + " `" + g + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
570
570
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
571
571
  );
572
- var C = X(_, D, S, P, g + "." + D, r);
572
+ var C = G(_, D, S, P, g + "." + D, r);
573
573
  if (C)
574
574
  return C;
575
575
  }
576
576
  return null;
577
577
  }
578
- return O(w);
578
+ return O(x);
579
579
  }
580
- function z(m) {
580
+ function X(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(z);
590
+ return m.every(X);
591
591
  if (m === null || a(m))
592
592
  return !0;
593
- var w = d(m);
594
- if (w) {
595
- var F = w.call(m), W;
596
- if (w !== m.entries) {
593
+ var x = d(m);
594
+ if (x) {
595
+ var F = x.call(m), W;
596
+ if (x !== m.entries) {
597
597
  for (; !(W = F.next()).done; )
598
- if (!z(W.value))
598
+ if (!X(W.value))
599
599
  return !1;
600
600
  } else
601
601
  for (; !(W = F.next()).done; ) {
602
602
  var S = W.value;
603
- if (S && !z(S[1]))
603
+ if (S && !X(S[1]))
604
604
  return !1;
605
605
  }
606
606
  } else
@@ -610,37 +610,37 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
610
610
  return !1;
611
611
  }
612
612
  }
613
- function L(m, w) {
614
- return m === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
613
+ function L(m, x) {
614
+ return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
615
615
  }
616
616
  function j(m) {
617
- var w = typeof m;
618
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(w, m) ? "symbol" : w;
617
+ var x = typeof m;
618
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(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 w = j(m);
624
- if (w === "object") {
623
+ var x = j(m);
624
+ if (x === "object") {
625
625
  if (m instanceof Date)
626
626
  return "date";
627
627
  if (m instanceof RegExp)
628
628
  return "regexp";
629
629
  }
630
- return w;
630
+ return x;
631
631
  }
632
632
  function M(m) {
633
- var w = V(m);
634
- switch (w) {
633
+ var x = V(m);
634
+ switch (x) {
635
635
  case "array":
636
636
  case "object":
637
- return "an " + w;
637
+ return "an " + x;
638
638
  case "boolean":
639
639
  case "date":
640
640
  case "regexp":
641
- return "a " + w;
641
+ return "a " + x;
642
642
  default:
643
- return w;
643
+ return x;
644
644
  }
645
645
  }
646
646
  function R(m) {
@@ -701,21 +701,21 @@ var Qt;
701
701
  function mr() {
702
702
  if (Qt) return Me.exports;
703
703
  if (Qt = 1, process.env.NODE_ENV !== "production") {
704
- var e = Pn(), t = !0;
704
+ var e = Nn(), t = !0;
705
705
  Me.exports = /* @__PURE__ */ dr()(e.isElement, t);
706
706
  } else
707
707
  Me.exports = /* @__PURE__ */ pr()();
708
708
  return Me.exports;
709
709
  }
710
710
  var hr = /* @__PURE__ */ mr();
711
- const Le = /* @__PURE__ */ An(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
712
- const o = ee("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
713
- return /* @__PURE__ */ q("details", { className: o, id: `${n}`, children: [
714
- /* @__PURE__ */ q("summary", { className: "rpf-accordion__title", role: "button", children: [
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: [
715
715
  t,
716
- /* @__PURE__ */ E("span", { className: "rpf-accordion__icon" })
716
+ /* @__PURE__ */ w("span", { className: "rpf-accordion__icon" })
717
717
  ] }),
718
- /* @__PURE__ */ E(i, { className: "rpf-accordion__text", children: e })
718
+ /* @__PURE__ */ w(i, { className: "rpf-accordion__text", children: e })
719
719
  ] });
720
720
  };
721
721
  vr.propTypes = {
@@ -743,7 +743,7 @@ const Re = ({
743
743
  linkComponent: v
744
744
  // to pass in react-router-dom Link component
745
745
  }) => {
746
- const p = a && l, O = ee(
746
+ const p = a && l, O = K(
747
747
  // Static classes
748
748
  "rpf-button",
749
749
  // Conditional classes
@@ -758,13 +758,13 @@ const Re = ({
758
758
  n
759
759
  );
760
760
  let A = "rpf-button__icon";
761
- rr.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
762
- const I = (b, k) => !k || c !== b ? null : typeof k == "string" ? /* @__PURE__ */ E("span", { className: A, children: k }) : k, y = () => e && !p && /* @__PURE__ */ E("span", { className: "text", children: e }), T = /* @__PURE__ */ q(Ie, { children: [
763
- I("left", a),
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
764
  y(),
765
- I("right", a)
765
+ k("right", a)
766
766
  ] });
767
- return t ? /* @__PURE__ */ E(
767
+ return t ? /* @__PURE__ */ w(
768
768
  v || "a",
769
769
  {
770
770
  className: O,
@@ -773,7 +773,7 @@ const Re = ({
773
773
  "aria-label": u,
774
774
  children: T
775
775
  }
776
- ) : /* @__PURE__ */ E(
776
+ ) : /* @__PURE__ */ w(
777
777
  "button",
778
778
  {
779
779
  className: O,
@@ -792,11 +792,11 @@ const Re = ({
792
792
  type: o,
793
793
  actions: i,
794
794
  onClose: s
795
- }) => /* @__PURE__ */ q("div", { className: `rpf-alert rpf-alert--${o}`, children: [
796
- /* @__PURE__ */ q("div", { className: "rpf-alert__header", children: [
797
- /* @__PURE__ */ E("span", { className: "rpf-alert__icon material-symbols-sharp" }),
798
- r ? /* @__PURE__ */ E("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ E("p", { className: "rpf-alert__title", children: e }) : null,
799
- !!s && /* @__PURE__ */ E("div", { className: "rpf-alert__close", children: /* @__PURE__ */ E(
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(
800
800
  Re,
801
801
  {
802
802
  type: "tertiary",
@@ -807,9 +807,9 @@ const Re = ({
807
807
  }
808
808
  ) })
809
809
  ] }),
810
- (t || n || i) && /* @__PURE__ */ q("div", { className: "rpf-alert__body", children: [
811
- t ? /* @__PURE__ */ E("p", { children: t }) : n ? /* @__PURE__ */ E("div", { children: n }) : null,
812
- i && i.length > 0 && /* @__PURE__ */ E("div", { className: "rpf-alert__actions", children: i.map((a, l) => /* @__PURE__ */ E(
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(
813
813
  Re,
814
814
  {
815
815
  text: a.label,
@@ -821,7 +821,7 @@ const Re = ({
821
821
  l
822
822
  )) })
823
823
  ] })
824
- ] }), Ii = ({
824
+ ] }), ki = ({
825
825
  label: e,
826
826
  id: t,
827
827
  name: r,
@@ -829,49 +829,49 @@ const Re = ({
829
829
  ...o
830
830
  }) => {
831
831
  const { className: i, ...s } = o;
832
- return /* @__PURE__ */ q(Ie, { children: [
833
- /* @__PURE__ */ q(
832
+ return /* @__PURE__ */ B(ke, { children: [
833
+ /* @__PURE__ */ B(
834
834
  "label",
835
835
  {
836
- className: ee("rpf-input-checkbox", {
836
+ className: K("rpf-input-checkbox", {
837
837
  "rpf-input-checkbox--error": n,
838
838
  className: i
839
839
  }),
840
840
  children: [
841
- /* @__PURE__ */ E("input", { id: t, name: r, type: "checkbox", ...s }),
841
+ /* @__PURE__ */ w("input", { id: t, name: r, type: "checkbox", ...s }),
842
842
  e
843
843
  ]
844
844
  }
845
845
  ),
846
- n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
847
- /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
846
+ n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
847
+ /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
848
848
  n
849
849
  ] })
850
850
  ] });
851
- }, ki = ({
851
+ }, Ii = ({
852
852
  disabled: e = !1,
853
853
  errorText: t = "",
854
854
  fullWidth: r = !1,
855
855
  legendText: n,
856
856
  legendHintText: o = "",
857
857
  children: i
858
- }) => /* @__PURE__ */ q(
858
+ }) => /* @__PURE__ */ B(
859
859
  "fieldset",
860
860
  {
861
- className: ee("rpf-fieldset", {
861
+ className: K("rpf-fieldset", {
862
862
  "rpf-fieldset--disabled": e,
863
863
  "rpf-fieldset--full-width": r,
864
864
  "rpf-fieldset--error": t
865
865
  }),
866
866
  disabled: e,
867
867
  children: [
868
- /* @__PURE__ */ q("legend", { className: "rpf-label", children: [
868
+ /* @__PURE__ */ B("legend", { className: "rpf-label", children: [
869
869
  n,
870
- o.length > 0 ? /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o }) : null
870
+ o.length > 0 ? /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o }) : null
871
871
  ] }),
872
- /* @__PURE__ */ E("div", { className: "rpf-fieldset__inputs", children: i }),
873
- t.length > 0 ? /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
874
- /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
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" }),
875
875
  t
876
876
  ] }) : null
877
877
  ]
@@ -883,23 +883,23 @@ const Re = ({
883
883
  disabled: n = !1,
884
884
  error: o = "",
885
885
  hint: i = ""
886
- }) => /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
887
- (t || i) && /* @__PURE__ */ q(
886
+ }) => /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
887
+ (t || i) && /* @__PURE__ */ B(
888
888
  "label",
889
889
  {
890
890
  htmlFor: e,
891
- className: ee("rpf-label", {
891
+ className: K("rpf-label", {
892
892
  "rpf-label--disabled": n
893
893
  }),
894
894
  children: [
895
895
  t,
896
- /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: i })
896
+ /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: i })
897
897
  ]
898
898
  }
899
899
  ),
900
900
  r,
901
- o && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
902
- /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
901
+ o && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
902
+ /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
903
903
  o
904
904
  ] })
905
905
  ] }), Mi = ({
@@ -907,37 +907,118 @@ const Re = ({
907
907
  inputFieldId: t,
908
908
  disabled: r = !1,
909
909
  hint: n = ""
910
- }) => /* @__PURE__ */ E("div", { className: "rpf-label", children: /* @__PURE__ */ q(
910
+ }) => /* @__PURE__ */ w("div", { className: "rpf-label", children: /* @__PURE__ */ B(
911
911
  "label",
912
912
  {
913
913
  htmlFor: t,
914
- className: ee("rpf-label", {
914
+ className: K("rpf-label", {
915
915
  "rpf-label--disabled": r
916
916
  }),
917
917
  children: [
918
918
  e,
919
- n && /* @__PURE__ */ E("div", { className: "rpf-label__hint", children: n })
919
+ n && /* @__PURE__ */ w("div", { className: "rpf-label__hint", children: n })
920
920
  ]
921
921
  }
922
922
  ) }), Di = ({
923
+ disabled: e = !1,
924
+ readOnly: t = !1,
925
+ fullWidth: r = !1,
926
+ error: n = "",
927
+ label: o,
928
+ id: i,
929
+ hint: s = "",
930
+ showPasswordLabel: a = "Show",
931
+ hidePasswordLabel: l = "Hide",
932
+ forgotPasswordLabel: c = "Forgot password?",
933
+ forgotPasswordHref: f,
934
+ ...d
935
+ }) => {
936
+ const [h, u] = On(!1);
937
+ return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
938
+ /* @__PURE__ */ B(
939
+ "label",
940
+ {
941
+ htmlFor: i,
942
+ className: K("rpf-label", {
943
+ "rpf-label--disabled": e,
944
+ "rpf-label--readonly": t
945
+ }),
946
+ children: [
947
+ o,
948
+ s && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: s })
949
+ ]
950
+ }
951
+ ),
952
+ /* @__PURE__ */ B(
953
+ "div",
954
+ {
955
+ className: K("rpf-input-password__container", {
956
+ "rpf-input-password__container--full-width": r,
957
+ "rpf-input-password__container--error": n,
958
+ "rpf-input-password__container--disabled": e,
959
+ "rpf-input-password__container--readonly": t
960
+ }),
961
+ children: [
962
+ /* @__PURE__ */ w(
963
+ "input",
964
+ {
965
+ className: K("rpf-input rpf-input-password", {
966
+ "rpf-input--disabled": e,
967
+ "rpf-input--readonly": t,
968
+ "rpf-input--error": n,
969
+ "rpf-input--full-width": r
970
+ }),
971
+ disabled: e,
972
+ id: i,
973
+ type: h ? "text" : "password",
974
+ readOnly: t,
975
+ ...d
976
+ }
977
+ ),
978
+ /* @__PURE__ */ w(
979
+ "button",
980
+ {
981
+ type: "button",
982
+ className: K(
983
+ "rpf-button rpf-button--tertiary rpf-input-password__button",
984
+ {
985
+ "rpf-button--disabled": e,
986
+ "rpf-input-password__button--error": n
987
+ }
988
+ ),
989
+ disabled: e,
990
+ onClick: () => u((v) => !v),
991
+ children: h ? l : a
992
+ }
993
+ )
994
+ ]
995
+ }
996
+ ),
997
+ n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
998
+ /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
999
+ n
1000
+ ] }),
1001
+ f && /* @__PURE__ */ w("a", { href: f, className: "rpf-link rpf-link--block", children: c })
1002
+ ] });
1003
+ }, Li = ({
923
1004
  label: e,
924
1005
  id: t,
925
1006
  name: r,
926
1007
  fullWidth: n = !1,
927
1008
  ...o
928
- }) => /* @__PURE__ */ q(
1009
+ }) => /* @__PURE__ */ B(
929
1010
  "label",
930
1011
  {
931
- className: ee("rpf-input-radio", {
1012
+ className: K("rpf-input-radio", {
932
1013
  "rpf-input-radio--disabled": o.disabled,
933
1014
  "rpf-input--full-width": n
934
1015
  }),
935
1016
  children: [
936
- /* @__PURE__ */ E("input", { type: "radio", id: t, name: r, ...o }),
1017
+ /* @__PURE__ */ w("input", { type: "radio", id: t, name: r, ...o }),
937
1018
  e
938
1019
  ]
939
1020
  }
940
- ), Li = ({
1021
+ ), Fi = ({
941
1022
  label: e,
942
1023
  inputFieldId: t,
943
1024
  disabled: r = !1,
@@ -949,25 +1030,25 @@ const Re = ({
949
1030
  },
950
1031
  onChange: l = () => {
951
1032
  }
952
- }) => /* @__PURE__ */ E("search", { children: /* @__PURE__ */ q("form", { className: "rpf-input-field", onSubmit: a, children: [
953
- /* @__PURE__ */ q(
1033
+ }) => /* @__PURE__ */ w("search", { children: /* @__PURE__ */ B("form", { className: "rpf-input-field", onSubmit: a, children: [
1034
+ /* @__PURE__ */ B(
954
1035
  "label",
955
1036
  {
956
1037
  htmlFor: t,
957
- className: ee("rpf-label", {
1038
+ className: K("rpf-label", {
958
1039
  "rpf-label--disabled": r
959
1040
  }),
960
1041
  children: [
961
1042
  e,
962
- o && /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o })
1043
+ o && /* @__PURE__ */ w("small", { className: "rpf-label__hint", children: o })
963
1044
  ]
964
1045
  }
965
1046
  ),
966
- /* @__PURE__ */ q("div", { className: "rpf-input-search-container", children: [
967
- /* @__PURE__ */ E(
1047
+ /* @__PURE__ */ B("div", { className: "rpf-input-search-container", children: [
1048
+ /* @__PURE__ */ w(
968
1049
  "input",
969
1050
  {
970
- className: ee("rpf-input rpf-input-search", {
1051
+ className: K("rpf-input rpf-input-search", {
971
1052
  "rpf-input--disabled": r,
972
1053
  "rpf-input--error": n
973
1054
  }),
@@ -981,25 +1062,25 @@ const Re = ({
981
1062
  onChange: l
982
1063
  }
983
1064
  ),
984
- /* @__PURE__ */ E(
1065
+ /* @__PURE__ */ w(
985
1066
  "button",
986
1067
  {
987
1068
  type: "submit",
988
- className: ee("rpf-button rpf-button-search", {
1069
+ className: K("rpf-button rpf-button-search", {
989
1070
  "rpf-button--disabled": r,
990
1071
  "rpf-button--error": n
991
1072
  }),
992
1073
  disabled: r,
993
1074
  onClick: a,
994
- children: /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
1075
+ children: /* @__PURE__ */ w("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
995
1076
  }
996
1077
  )
997
1078
  ] }),
998
- n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
999
- /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1079
+ n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
1080
+ /* @__PURE__ */ w("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
1000
1081
  n
1001
1082
  ] })
1002
- ] }) }), Fi = ({
1083
+ ] }) }), $i = ({
1003
1084
  id: e,
1004
1085
  label: t,
1005
1086
  name: r,
@@ -1013,7 +1094,7 @@ const Re = ({
1013
1094
  placeholder: c = "",
1014
1095
  value: f = "",
1015
1096
  ...d
1016
- }) => /* @__PURE__ */ E(
1097
+ }) => /* @__PURE__ */ w(
1017
1098
  Dt,
1018
1099
  {
1019
1100
  id: e,
@@ -1021,10 +1102,10 @@ const Re = ({
1021
1102
  error: i,
1022
1103
  hint: a,
1023
1104
  label: t,
1024
- children: /* @__PURE__ */ q(
1105
+ children: /* @__PURE__ */ B(
1025
1106
  "select",
1026
1107
  {
1027
- className: ee("rpf-input rpf-input-select", {
1108
+ className: K("rpf-input rpf-input-select", {
1028
1109
  "rpf-input--error": i,
1029
1110
  "rpf-input--full-width": s
1030
1111
  }),
@@ -1035,13 +1116,13 @@ const Re = ({
1035
1116
  value: f,
1036
1117
  ...d,
1037
1118
  children: [
1038
- !f && !!c && /* @__PURE__ */ E("option", { value: "", disabled: !0, children: c }),
1039
- n.map((h) => /* @__PURE__ */ E("option", { value: h.key, children: h.value }, h.key))
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))
1040
1121
  ]
1041
1122
  }
1042
1123
  )
1043
1124
  }
1044
- ), br = kt(
1125
+ ), br = It(
1045
1126
  ({
1046
1127
  label: e,
1047
1128
  id: t,
@@ -1059,11 +1140,11 @@ const Re = ({
1059
1140
  ...u
1060
1141
  }, v) => {
1061
1142
  const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
1062
- return /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
1063
- /* @__PURE__ */ q(
1143
+ return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
1144
+ /* @__PURE__ */ B(
1064
1145
  "label",
1065
1146
  {
1066
- className: ee(
1147
+ className: K(
1067
1148
  "rpf-switch",
1068
1149
  {
1069
1150
  "rpf-switch--full-width": o,
@@ -1076,8 +1157,8 @@ const Re = ({
1076
1157
  f
1077
1158
  ),
1078
1159
  children: [
1079
- /* @__PURE__ */ q("span", { className: "rpf-switch__track", children: [
1080
- /* @__PURE__ */ E(
1160
+ /* @__PURE__ */ B("span", { className: "rpf-switch__track", children: [
1161
+ /* @__PURE__ */ w(
1081
1162
  "input",
1082
1163
  {
1083
1164
  ref: v,
@@ -1092,33 +1173,33 @@ const Re = ({
1092
1173
  ...u
1093
1174
  }
1094
1175
  ),
1095
- /* @__PURE__ */ E("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ E("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1176
+ /* @__PURE__ */ w("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ w("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
1096
1177
  ] }),
1097
- /* @__PURE__ */ q(
1178
+ /* @__PURE__ */ B(
1098
1179
  "span",
1099
1180
  {
1100
- className: ee("rpf-label", "rpf-switch__label", {
1181
+ className: K("rpf-label", "rpf-switch__label", {
1101
1182
  "rpf-label--disabled": d,
1102
1183
  "rpf-visually-hidden": l
1103
1184
  }),
1104
1185
  children: [
1105
- /* @__PURE__ */ E("span", { children: e }),
1106
- s ? /* @__PURE__ */ E("span", { className: "rpf-label__hint", children: s }) : null
1186
+ /* @__PURE__ */ w("span", { children: e }),
1187
+ s ? /* @__PURE__ */ w("span", { className: "rpf-label__hint", children: s }) : null
1107
1188
  ]
1108
1189
  }
1109
1190
  )
1110
1191
  ]
1111
1192
  }
1112
1193
  ),
1113
- n ? /* @__PURE__ */ q("div", { id: p, className: "rpf-error-message", children: [
1114
- /* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
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" }),
1115
1196
  n
1116
1197
  ] }) : null
1117
1198
  ] });
1118
1199
  }
1119
1200
  );
1120
1201
  br.displayName = "Switch";
1121
- const $i = ({
1202
+ const ji = ({
1122
1203
  id: e,
1123
1204
  label: t,
1124
1205
  name: r,
@@ -1130,7 +1211,7 @@ const $i = ({
1130
1211
  hint: l = "",
1131
1212
  onChange: c = () => {
1132
1213
  }
1133
- }) => /* @__PURE__ */ E(
1214
+ }) => /* @__PURE__ */ w(
1134
1215
  Dt,
1135
1216
  {
1136
1217
  id: e,
@@ -1138,10 +1219,10 @@ const $i = ({
1138
1219
  error: s,
1139
1220
  hint: l,
1140
1221
  label: t,
1141
- children: /* @__PURE__ */ E(
1222
+ children: /* @__PURE__ */ w(
1142
1223
  "textarea",
1143
1224
  {
1144
- className: ee("rpf-input rpf-input-textarea", {
1225
+ className: K("rpf-input rpf-input-textarea", {
1145
1226
  "rpf-input--error": s,
1146
1227
  "rpf-input--full-width": a,
1147
1228
  "rpf-input--disabled": o
@@ -1155,7 +1236,7 @@ const $i = ({
1155
1236
  }
1156
1237
  )
1157
1238
  }
1158
- ), ji = ({
1239
+ ), Wi = ({
1159
1240
  id: e,
1160
1241
  name: t,
1161
1242
  label: r,
@@ -1164,7 +1245,7 @@ const $i = ({
1164
1245
  hint: i = "",
1165
1246
  type: s = "text",
1166
1247
  ...a
1167
- }) => /* @__PURE__ */ E(
1248
+ }) => /* @__PURE__ */ w(
1168
1249
  Dt,
1169
1250
  {
1170
1251
  id: e,
@@ -1172,10 +1253,10 @@ const $i = ({
1172
1253
  error: n,
1173
1254
  hint: i,
1174
1255
  label: r,
1175
- children: /* @__PURE__ */ E(
1256
+ children: /* @__PURE__ */ w(
1176
1257
  "input",
1177
1258
  {
1178
- className: ee("rpf-input rpf-input-text", {
1259
+ className: K("rpf-input rpf-input-text", {
1179
1260
  "rpf-input--error": n,
1180
1261
  "rpf-input--full-width": o
1181
1262
  }),
@@ -1210,7 +1291,7 @@ function yr(e, t) {
1210
1291
  return o.addEventListener("mousedown", s), () => o.removeEventListener("mousedown", s);
1211
1292
  }, [e, t]), { dialogRef: r, contentRef: n };
1212
1293
  }
1213
- const Wi = ({
1294
+ const Bi = ({
1214
1295
  isOpen: e,
1215
1296
  setIsOpen: t,
1216
1297
  heading: r,
@@ -1227,17 +1308,17 @@ const Wi = ({
1227
1308
  showCloseButton: u = !0
1228
1309
  }) => {
1229
1310
  const { dialogRef: v, contentRef: p } = yr(e, t);
1230
- return /* @__PURE__ */ E(
1311
+ return /* @__PURE__ */ w(
1231
1312
  "dialog",
1232
1313
  {
1233
1314
  ref: v,
1234
1315
  className: "rpf-modal",
1235
1316
  "aria-labelledby": "modal-heading",
1236
1317
  "aria-describedby": "modal-description",
1237
- children: /* @__PURE__ */ q("div", { ref: p, className: "rpf-modal__wrapper", children: [
1238
- /* @__PURE__ */ q("div", { className: "rpf-modal__header", children: [
1239
- /* @__PURE__ */ E("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
1240
- u && /* @__PURE__ */ E(
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(
1241
1322
  Re,
1242
1323
  {
1243
1324
  icon: "close",
@@ -1248,9 +1329,9 @@ const Wi = ({
1248
1329
  }
1249
1330
  )
1250
1331
  ] }),
1251
- /* @__PURE__ */ E("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
1252
- /* @__PURE__ */ q("div", { className: "rpf-modal__buttons", children: [
1253
- /* @__PURE__ */ E(
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(
1254
1335
  Re,
1255
1336
  {
1256
1337
  text: i,
@@ -1259,7 +1340,7 @@ const Wi = ({
1259
1340
  type: "primary"
1260
1341
  }
1261
1342
  ),
1262
- a && /* @__PURE__ */ E(
1343
+ a && /* @__PURE__ */ w(
1263
1344
  Re,
1264
1345
  {
1265
1346
  text: a,
@@ -1268,7 +1349,7 @@ const Wi = ({
1268
1349
  type: "secondary"
1269
1350
  }
1270
1351
  ),
1271
- f && /* @__PURE__ */ E(
1352
+ f && /* @__PURE__ */ w(
1272
1353
  Re,
1273
1354
  {
1274
1355
  text: f,
@@ -1282,8 +1363,8 @@ const Wi = ({
1282
1363
  }
1283
1364
  );
1284
1365
  }, gr = ({ className: e, children: t }) => {
1285
- const r = ee("rpf-menu", e);
1286
- return /* @__PURE__ */ E("ul", { className: r, children: t });
1366
+ const r = K("rpf-menu", e);
1367
+ return /* @__PURE__ */ w("ul", { className: r, children: t });
1287
1368
  };
1288
1369
  function Qe() {
1289
1370
  return typeof window < "u";
@@ -1302,7 +1383,7 @@ function ue(e) {
1302
1383
  function In(e) {
1303
1384
  return Qe() ? e instanceof Node || e instanceof ie(e).Node : !1;
1304
1385
  }
1305
- function Q(e) {
1386
+ function ee(e) {
1306
1387
  return Qe() ? e instanceof Element || e instanceof ie(e).Element : !1;
1307
1388
  }
1308
1389
  function ne(e) {
@@ -1311,7 +1392,7 @@ function ne(e) {
1311
1392
  function St(e) {
1312
1393
  return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
1313
1394
  }
1314
- function ke(e) {
1395
+ function Ie(e) {
1315
1396
  const {
1316
1397
  overflow: t,
1317
1398
  overflowX: r,
@@ -1338,7 +1419,7 @@ function et(e) {
1338
1419
  const xr = /transform|translate|scale|rotate|perspective|filter/, Er = /paint|layout|strict|content/, ge = (e) => !!e && e !== "none";
1339
1420
  let mt;
1340
1421
  function Lt(e) {
1341
- const t = Q(e) ? se(e) : e;
1422
+ const t = ee(e) ? se(e) : e;
1342
1423
  return ge(t.transform) || ge(t.translate) || ge(t.scale) || ge(t.rotate) || ge(t.perspective) || !tt() && (ge(t.backdropFilter) || ge(t.filter)) || xr.test(t.willChange || "") || Er.test(t.contain || "");
1343
1424
  }
1344
1425
  function Rr(e) {
@@ -1362,7 +1443,7 @@ function se(e) {
1362
1443
  return ie(e).getComputedStyle(e);
1363
1444
  }
1364
1445
  function nt(e) {
1365
- return Q(e) ? {
1446
+ return ee(e) ? {
1366
1447
  scrollLeft: e.scrollLeft,
1367
1448
  scrollTop: e.scrollTop
1368
1449
  } : {
@@ -1382,17 +1463,17 @@ function pe(e) {
1382
1463
  );
1383
1464
  return St(t) ? t.host : t;
1384
1465
  }
1385
- function kn(e) {
1466
+ function Mn(e) {
1386
1467
  const t = pe(e);
1387
- return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && ke(t) ? t : kn(t);
1468
+ return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && Ie(t) ? t : Mn(t);
1388
1469
  }
1389
1470
  function ve(e, t, r) {
1390
1471
  var n;
1391
1472
  t === void 0 && (t = []), r === void 0 && (r = !0);
1392
- const o = kn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
1473
+ const o = Mn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
1393
1474
  if (i) {
1394
1475
  const a = Ct(s);
1395
- return t.concat(s, s.visualViewport || [], ke(o) ? o : [], a && r ? ve(a) : []);
1476
+ return t.concat(s, s.visualViewport || [], Ie(o) ? o : [], a && r ? ve(a) : []);
1396
1477
  } else
1397
1478
  return t.concat(o, ve(o, [], r));
1398
1479
  }
@@ -1427,7 +1508,7 @@ function Tr() {
1427
1508
  const e = navigator.userAgentData;
1428
1509
  return e != null && e.platform ? e.platform : navigator.platform;
1429
1510
  }
1430
- function Mn() {
1511
+ function Dn() {
1431
1512
  const e = navigator.userAgentData;
1432
1513
  return e && Array.isArray(e.brands) ? e.brands.map((t) => {
1433
1514
  let {
@@ -1449,10 +1530,10 @@ function _r() {
1449
1530
  }
1450
1531
  function _t() {
1451
1532
  const e = /android/i;
1452
- return e.test(Tr()) || e.test(Mn());
1533
+ return e.test(Tr()) || e.test(Dn());
1453
1534
  }
1454
1535
  function Or() {
1455
- return Mn().includes("jsdom/");
1536
+ return Dn().includes("jsdom/");
1456
1537
  }
1457
1538
  function en(e, t) {
1458
1539
  return ["mouse", "pen"].includes(e);
@@ -1478,19 +1559,19 @@ function Ee(e) {
1478
1559
  return "composedPath" in e ? e.composedPath()[0] : e.target;
1479
1560
  }
1480
1561
  const Nr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
1481
- function Dn(e) {
1562
+ function Ln(e) {
1482
1563
  return ne(e) && e.matches(Nr);
1483
1564
  }
1484
1565
  function vt(e) {
1485
1566
  e.preventDefault(), e.stopPropagation();
1486
1567
  }
1487
- function Ir(e) {
1488
- return e ? e.getAttribute("role") === "combobox" && Dn(e) : !1;
1568
+ function kr(e) {
1569
+ return e ? e.getAttribute("role") === "combobox" && Ln(e) : !1;
1489
1570
  }
1490
1571
  const qe = Math.min, Te = Math.max, Ve = Math.round, Fe = Math.floor, le = (e) => ({
1491
1572
  x: e,
1492
1573
  y: e
1493
- }), kr = {
1574
+ }), Ir = {
1494
1575
  left: "right",
1495
1576
  right: "left",
1496
1577
  bottom: "top",
@@ -1508,22 +1589,22 @@ function Se(e) {
1508
1589
  function ot(e) {
1509
1590
  return e.split("-")[1];
1510
1591
  }
1511
- function Ln(e) {
1592
+ function Fn(e) {
1512
1593
  return e === "x" ? "y" : "x";
1513
1594
  }
1514
- function Fn(e) {
1595
+ function $n(e) {
1515
1596
  return e === "y" ? "height" : "width";
1516
1597
  }
1517
1598
  function he(e) {
1518
1599
  const t = e[0];
1519
1600
  return t === "t" || t === "b" ? "y" : "x";
1520
1601
  }
1521
- function $n(e) {
1522
- return Ln(he(e));
1602
+ function jn(e) {
1603
+ return Fn(he(e));
1523
1604
  }
1524
1605
  function Mr(e, t, r) {
1525
1606
  r === void 0 && (r = !1);
1526
- const n = ot(e), o = $n(e), i = Fn(o);
1607
+ const n = ot(e), o = jn(e), i = $n(o);
1527
1608
  let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1528
1609
  return t.reference[i] > t.floating[i] && (s = Ye(s)), [s, Ye(s)];
1529
1610
  }
@@ -1554,7 +1635,7 @@ function jr(e, t, r, n) {
1554
1635
  }
1555
1636
  function Ye(e) {
1556
1637
  const t = Se(e);
1557
- return kr[t] + e.slice(t.length);
1638
+ return Ir[t] + e.slice(t.length);
1558
1639
  }
1559
1640
  function Wr(e) {
1560
1641
  return {
@@ -1595,8 +1676,8 @@ function Ue(e) {
1595
1676
  * tabbable 6.4.0
1596
1677
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1597
1678
  */
1598
- 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(","), jn = typeof Element > "u", Pe = jn ? function() {
1599
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !jn && Element.prototype.getRootNode ? function(e) {
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() {
1680
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !Wn && Element.prototype.getRootNode ? function(e) {
1600
1681
  var t;
1601
1682
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
1602
1683
  } : function(e) {
@@ -1642,21 +1723,21 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1642
1723
  }
1643
1724
  }
1644
1725
  return o;
1645
- }, Wn = function(t) {
1646
- return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
1647
1726
  }, Bn = function(t) {
1727
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
1728
+ }, qn = function(t) {
1648
1729
  if (!t)
1649
1730
  throw new Error("No node provided");
1650
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Vr(t)) && !Wn(t) ? 0 : t.tabIndex;
1731
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Vr(t)) && !Bn(t) ? 0 : t.tabIndex;
1651
1732
  }, Ur = function(t, r) {
1652
- var n = Bn(t);
1653
- return n < 0 && r && !Wn(t) ? 0 : n;
1733
+ var n = qn(t);
1734
+ return n < 0 && r && !Bn(t) ? 0 : n;
1654
1735
  }, Hr = function(t, r) {
1655
1736
  return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
1656
- }, qn = function(t) {
1737
+ }, Vn = function(t) {
1657
1738
  return t.tagName === "INPUT";
1658
1739
  }, Kr = function(t) {
1659
- return qn(t) && t.type === "hidden";
1740
+ return Vn(t) && t.type === "hidden";
1660
1741
  }, zr = function(t) {
1661
1742
  var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
1662
1743
  return n.tagName === "SUMMARY";
@@ -1683,7 +1764,7 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1683
1764
  var i = Xr(o, t.form);
1684
1765
  return !i || i === t;
1685
1766
  }, Zr = function(t) {
1686
- return qn(t) && t.type === "radio";
1767
+ return Vn(t) && t.type === "radio";
1687
1768
  }, Jr = function(t) {
1688
1769
  return Zr(t) && !Gr(t);
1689
1770
  }, Qr = function(t) {
@@ -1759,14 +1840,14 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1759
1840
  return !(r.disabled || Kr(r) || eo(r, t) || // For a details element with a summary, the summary element gets the focus
1760
1841
  zr(r) || to(r));
1761
1842
  }, Pt = function(t, r) {
1762
- return !(Jr(r) || Bn(r) < 0 || !no(t, r));
1843
+ return !(Jr(r) || qn(r) < 0 || !no(t, r));
1763
1844
  }, ro = function(t) {
1764
1845
  var r = parseInt(t.getAttribute("tabindex"), 10);
1765
1846
  return !!(isNaN(r) || r >= 0);
1766
- }, Vn = function(t) {
1847
+ }, Yn = function(t) {
1767
1848
  var r = [], n = [];
1768
1849
  return t.forEach(function(o, i) {
1769
- var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Vn(o.candidates) : a;
1850
+ var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Yn(o.candidates) : a;
1770
1851
  l === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
1771
1852
  documentOrder: i,
1772
1853
  tabIndex: l,
@@ -1785,7 +1866,7 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
1785
1866
  flatten: !1,
1786
1867
  getShadowRoot: r.getShadowRoot,
1787
1868
  shadowRootFilter: ro
1788
- }) : n = Yr(t, r.includeContainer, Pt.bind(null, r)), Vn(n);
1869
+ }) : n = Yr(t, r.includeContainer, Pt.bind(null, r)), Yn(n);
1789
1870
  }, oo = function(t, r) {
1790
1871
  if (r = r || {}, !t)
1791
1872
  throw new Error("No node provided");
@@ -1796,7 +1877,7 @@ function sn(e, t, r) {
1796
1877
  reference: n,
1797
1878
  floating: o
1798
1879
  } = e;
1799
- const i = he(t), s = $n(t), a = Fn(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;
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;
1800
1881
  let u;
1801
1882
  switch (l) {
1802
1883
  case "top":
@@ -1860,7 +1941,7 @@ async function io(e, t) {
1860
1941
  boundary: c,
1861
1942
  rootBoundary: f,
1862
1943
  strategy: l
1863
- })), I = d === "floating" ? {
1944
+ })), k = d === "floating" ? {
1864
1945
  x: n,
1865
1946
  y: o,
1866
1947
  width: s.floating.width,
@@ -1873,10 +1954,10 @@ async function io(e, t) {
1873
1954
  y: 1
1874
1955
  }, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1875
1956
  elements: a,
1876
- rect: I,
1957
+ rect: k,
1877
1958
  offsetParent: y,
1878
1959
  strategy: l
1879
- }) : I);
1960
+ }) : k);
1880
1961
  return {
1881
1962
  top: (A.top - b.top + v.top) / T.y,
1882
1963
  bottom: (b.bottom - A.bottom + v.bottom) / T.y,
@@ -1909,13 +1990,13 @@ const so = 50, ao = async (e, t, r) => {
1909
1990
  continue;
1910
1991
  const {
1911
1992
  name: A,
1912
- fn: I
1993
+ fn: k
1913
1994
  } = O, {
1914
1995
  x: y,
1915
1996
  y: T,
1916
1997
  data: b,
1917
- reset: k
1918
- } = await I({
1998
+ reset: I
1999
+ } = await k({
1919
2000
  x: f,
1920
2001
  y: d,
1921
2002
  initialPlacement: n,
@@ -1932,11 +2013,11 @@ const so = 50, ao = async (e, t, r) => {
1932
2013
  f = y ?? f, d = T ?? d, v[A] = {
1933
2014
  ...v[A],
1934
2015
  ...b
1935
- }, k && u < so && (u++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
2016
+ }, I && u < so && (u++, typeof I == "object" && (I.placement && (h = I.placement), I.rects && (c = I.rects === !0 ? await s.getElementRects({
1936
2017
  reference: e,
1937
2018
  floating: t,
1938
2019
  strategy: o
1939
- }) : k.rects), {
2020
+ }) : I.rects), {
1940
2021
  x: f,
1941
2022
  y: d
1942
2023
  } = sn(c, h, l)), p = -1);
@@ -1972,41 +2053,41 @@ const so = 50, ao = async (e, t, r) => {
1972
2053
  } = rt(e, t);
1973
2054
  if ((r = i.arrow) != null && r.alignmentOffset)
1974
2055
  return {};
1975
- const A = Se(o), I = 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)), k = v !== "none";
1976
- !h && k && b.push(...jr(a, p, v, T));
1977
- const H = [a, ...b], K = await l.detectOverflow(t, O), J = [];
1978
- let Z = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1979
- if (f && J.push(K[A]), d) {
1980
- const z = Mr(o, s, T);
1981
- J.push(K[z[0]], K[z[1]]);
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]]);
1982
2063
  }
1983
- if (Z = [...Z, {
2064
+ if (J = [...J, {
1984
2065
  placement: o,
1985
- overflows: J
1986
- }], !J.every((z) => z <= 0)) {
1987
- var G, B;
1988
- const z = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, L = H[z];
1989
- if (L && (!(d === "alignment" ? I !== he(L) : !1) || // We leave the current main axis only if every placement on that axis
2066
+ 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
1990
2071
  // overflows the main axis.
1991
- Z.every((M) => he(M.placement) === I ? M.overflows[0] > 0 : !0)))
2072
+ J.every((M) => he(M.placement) === k ? M.overflows[0] > 0 : !0)))
1992
2073
  return {
1993
2074
  data: {
1994
- index: z,
1995
- overflows: Z
2075
+ index: X,
2076
+ overflows: J
1996
2077
  },
1997
2078
  reset: {
1998
2079
  placement: L
1999
2080
  }
2000
2081
  };
2001
- let j = (B = Z.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : B.placement;
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;
2002
2083
  if (!j)
2003
2084
  switch (u) {
2004
2085
  case "bestFit": {
2005
2086
  var te;
2006
- const V = (te = Z.filter((M) => {
2007
- if (k) {
2087
+ const V = (te = J.filter((M) => {
2088
+ if (I) {
2008
2089
  const R = he(M.placement);
2009
- return R === I || // Create a bias to the `y` side axis due to horizontal
2090
+ return R === k || // Create a bias to the `y` side axis due to horizontal
2010
2091
  // reading directions favoring greater width.
2011
2092
  R === "y";
2012
2093
  }
@@ -2095,11 +2176,11 @@ const fo = function(e) {
2095
2176
  limiter: l = {
2096
2177
  fn: (A) => {
2097
2178
  let {
2098
- x: I,
2179
+ x: k,
2099
2180
  y
2100
2181
  } = A;
2101
2182
  return {
2102
- x: I,
2183
+ x: k,
2103
2184
  y
2104
2185
  };
2105
2186
  }
@@ -2108,14 +2189,14 @@ const fo = function(e) {
2108
2189
  } = rt(e, t), f = {
2109
2190
  x: r,
2110
2191
  y: n
2111
- }, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Ln(h);
2192
+ }, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Fn(h);
2112
2193
  let v = f[u], p = f[h];
2113
2194
  if (s) {
2114
- const A = u === "y" ? "top" : "left", I = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[I];
2195
+ const A = u === "y" ? "top" : "left", k = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[k];
2115
2196
  v = tn(y, v, T);
2116
2197
  }
2117
2198
  if (a) {
2118
- const A = h === "y" ? "top" : "left", I = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[I];
2199
+ const A = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[k];
2119
2200
  p = tn(y, p, T);
2120
2201
  }
2121
2202
  const O = l.fn({
@@ -2137,7 +2218,7 @@ const fo = function(e) {
2137
2218
  }
2138
2219
  };
2139
2220
  };
2140
- function Yn(e) {
2221
+ function Un(e) {
2141
2222
  const t = se(e);
2142
2223
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
2143
2224
  const o = ne(e), i = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, a = Ve(r) !== i || Ve(n) !== s;
@@ -2148,7 +2229,7 @@ function Yn(e) {
2148
2229
  };
2149
2230
  }
2150
2231
  function $t(e) {
2151
- return Q(e) ? e : e.contextElement;
2232
+ return ee(e) ? e : e.contextElement;
2152
2233
  }
2153
2234
  function Ae(e) {
2154
2235
  const t = $t(e);
@@ -2158,7 +2239,7 @@ function Ae(e) {
2158
2239
  width: n,
2159
2240
  height: o,
2160
2241
  $: i
2161
- } = Yn(t);
2242
+ } = Un(t);
2162
2243
  let s = (i ? Ve(r.width) : r.width) / n, a = (i ? Ve(r.height) : r.height) / o;
2163
2244
  return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2164
2245
  x: s,
@@ -2166,7 +2247,7 @@ function Ae(e) {
2166
2247
  };
2167
2248
  }
2168
2249
  const mo = /* @__PURE__ */ le(0);
2169
- function Un(e) {
2250
+ function Hn(e) {
2170
2251
  const t = ie(e);
2171
2252
  return !tt() || !t.visualViewport ? mo : {
2172
2253
  x: t.visualViewport.offsetLeft,
@@ -2180,14 +2261,14 @@ function Ce(e, t, r, n) {
2180
2261
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2181
2262
  const o = e.getBoundingClientRect(), i = $t(e);
2182
2263
  let s = le(1);
2183
- t && (n ? Q(n) && (s = Ae(n)) : s = Ae(e));
2184
- const a = ho(i, r, n) ? Un(i) : le(0);
2264
+ t && (n ? ee(n) && (s = Ae(n)) : s = Ae(e));
2265
+ const a = ho(i, r, n) ? Hn(i) : le(0);
2185
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;
2186
2267
  if (i) {
2187
- const h = ie(i), u = n && Q(n) ? ie(n) : n;
2268
+ const h = ie(i), u = n && ee(n) ? ie(n) : n;
2188
2269
  let v = h, p = Ct(v);
2189
2270
  for (; p && n && u !== v; ) {
2190
- const O = Ae(p), A = p.getBoundingClientRect(), I = se(p), y = A.left + (p.clientLeft + parseFloat(I.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(I.paddingTop)) * O.y;
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;
2191
2272
  l *= O.x, c *= O.y, f *= O.x, d *= O.y, l += y, c += T, v = ie(p), p = Ct(v);
2192
2273
  }
2193
2274
  }
@@ -2202,7 +2283,7 @@ function it(e, t) {
2202
2283
  const r = nt(e).scrollLeft;
2203
2284
  return t ? t.left + r : Ce(ue(e)).left + r;
2204
2285
  }
2205
- function Hn(e, t) {
2286
+ function Kn(e, t) {
2206
2287
  const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
2207
2288
  return {
2208
2289
  x: n,
@@ -2224,11 +2305,11 @@ function vo(e) {
2224
2305
  scrollTop: 0
2225
2306
  }, c = le(1);
2226
2307
  const f = le(0), d = ne(n);
2227
- if ((d || !d && !i) && ((ye(n) !== "body" || ke(s)) && (l = nt(n)), d)) {
2308
+ if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (l = nt(n)), d)) {
2228
2309
  const u = Ce(n);
2229
2310
  c = Ae(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
2230
2311
  }
2231
- const h = s && !d && !i ? Hn(s, l) : le(0);
2312
+ const h = s && !d && !i ? Kn(s, l) : le(0);
2232
2313
  return {
2233
2314
  width: r.width * c.x,
2234
2315
  height: r.height * c.y,
@@ -2286,10 +2367,10 @@ function cn(e, t, r) {
2286
2367
  n = go(e, r);
2287
2368
  else if (t === "document")
2288
2369
  n = yo(ue(e));
2289
- else if (Q(t))
2370
+ else if (ee(t))
2290
2371
  n = wo(t, r);
2291
2372
  else {
2292
- const o = Un(e);
2373
+ const o = Hn(e);
2293
2374
  n = {
2294
2375
  x: t.x - o.x,
2295
2376
  y: t.y - o.y,
@@ -2299,20 +2380,20 @@ function cn(e, t, r) {
2299
2380
  }
2300
2381
  return Ue(n);
2301
2382
  }
2302
- function Kn(e, t) {
2383
+ function zn(e, t) {
2303
2384
  const r = pe(e);
2304
- return r === t || !Q(r) || be(r) ? !1 : se(r).position === "fixed" || Kn(r, t);
2385
+ return r === t || !ee(r) || be(r) ? !1 : se(r).position === "fixed" || zn(r, t);
2305
2386
  }
2306
2387
  function xo(e, t) {
2307
2388
  const r = t.get(e);
2308
2389
  if (r)
2309
2390
  return r;
2310
- let n = ve(e, [], !1).filter((a) => Q(a) && ye(a) !== "body"), o = null;
2391
+ let n = ve(e, [], !1).filter((a) => ee(a) && ye(a) !== "body"), o = null;
2311
2392
  const i = se(e).position === "fixed";
2312
2393
  let s = i ? pe(e) : e;
2313
- for (; Q(s) && !be(s); ) {
2394
+ for (; ee(s) && !be(s); ) {
2314
2395
  const a = se(s), l = Lt(s);
2315
- !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || ke(s) && !l && Kn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(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);
2316
2397
  }
2317
2398
  return t.set(e, n), n;
2318
2399
  }
@@ -2340,7 +2421,7 @@ function Ro(e) {
2340
2421
  const {
2341
2422
  width: t,
2342
2423
  height: r
2343
- } = Yn(e);
2424
+ } = Un(e);
2344
2425
  return {
2345
2426
  width: t,
2346
2427
  height: r
@@ -2357,12 +2438,12 @@ function To(e, t, r) {
2357
2438
  l.x = it(o);
2358
2439
  }
2359
2440
  if (n || !n && !i)
2360
- if ((ye(t) !== "body" || ke(o)) && (a = nt(t)), n) {
2441
+ if ((ye(t) !== "body" || Ie(o)) && (a = nt(t)), n) {
2361
2442
  const u = Ce(t, !0, i, t);
2362
2443
  l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
2363
2444
  } else o && c();
2364
2445
  i && !n && o && c();
2365
- const f = o && !n && !i ? Hn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
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;
2366
2447
  return {
2367
2448
  x: d,
2368
2449
  y: h,
@@ -2381,14 +2462,14 @@ function ln(e, t) {
2381
2462
  let r = e.offsetParent;
2382
2463
  return ue(e) === r && (r = r.ownerDocument.body), r;
2383
2464
  }
2384
- function zn(e, t) {
2465
+ function Xn(e, t) {
2385
2466
  const r = ie(e);
2386
2467
  if (et(e))
2387
2468
  return r;
2388
2469
  if (!ne(e)) {
2389
2470
  let o = pe(e);
2390
2471
  for (; o && !be(o); ) {
2391
- if (Q(o) && !bt(o))
2472
+ if (ee(o) && !bt(o))
2392
2473
  return o;
2393
2474
  o = pe(o);
2394
2475
  }
@@ -2400,7 +2481,7 @@ function zn(e, t) {
2400
2481
  return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
2401
2482
  }
2402
2483
  const So = async function(e) {
2403
- const t = this.getOffsetParent || zn, r = this.getDimensions, n = await r(e.floating);
2484
+ const t = this.getOffsetParent || Xn, r = this.getDimensions, n = await r(e.floating);
2404
2485
  return {
2405
2486
  reference: To(e.reference, await t(e.floating), e.strategy),
2406
2487
  floating: {
@@ -2418,15 +2499,15 @@ const _o = {
2418
2499
  convertOffsetParentRelativeRectToViewportRelativeRect: vo,
2419
2500
  getDocumentElement: ue,
2420
2501
  getClippingRect: Eo,
2421
- getOffsetParent: zn,
2502
+ getOffsetParent: Xn,
2422
2503
  getElementRects: So,
2423
2504
  getClientRects: bo,
2424
2505
  getDimensions: Ro,
2425
2506
  getScale: Ae,
2426
- isElement: Q,
2507
+ isElement: ee,
2427
2508
  isRTL: Co
2428
2509
  };
2429
- function Xn(e, t) {
2510
+ function Gn(e, t) {
2430
2511
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2431
2512
  }
2432
2513
  function Oo(e, t) {
@@ -2451,8 +2532,8 @@ function Oo(e, t) {
2451
2532
  threshold: Te(0, qe(1, l)) || 1
2452
2533
  };
2453
2534
  let T = !0;
2454
- function b(k) {
2455
- const H = k[0].intersectionRatio;
2535
+ function b(I) {
2536
+ const H = I[0].intersectionRatio;
2456
2537
  if (H !== l) {
2457
2538
  if (!T)
2458
2539
  return s();
@@ -2460,7 +2541,7 @@ function Oo(e, t) {
2460
2541
  s(!1, 1e-7);
2461
2542
  }, 1e3);
2462
2543
  }
2463
- H === 1 && !Xn(c, e.getBoundingClientRect()) && s(), T = !1;
2544
+ H === 1 && !Gn(c, e.getBoundingClientRect()) && s(), T = !1;
2464
2545
  }
2465
2546
  try {
2466
2547
  r = new IntersectionObserver(b, {
@@ -2492,8 +2573,8 @@ function Ao(e, t, r, n) {
2492
2573
  const d = c && a ? Oo(c, r) : null;
2493
2574
  let h = -1, u = null;
2494
2575
  s && (u = new ResizeObserver((A) => {
2495
- let [I] = A;
2496
- I && I.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2576
+ let [k] = A;
2577
+ k && k.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2497
2578
  var y;
2498
2579
  (y = u) == null || y.observe(t);
2499
2580
  })), r();
@@ -2502,16 +2583,16 @@ function Ao(e, t, r, n) {
2502
2583
  l && O();
2503
2584
  function O() {
2504
2585
  const A = Ce(e);
2505
- p && !Xn(p, A) && r(), p = A, v = requestAnimationFrame(O);
2586
+ p && !Gn(p, A) && r(), p = A, v = requestAnimationFrame(O);
2506
2587
  }
2507
2588
  return r(), () => {
2508
2589
  var A;
2509
- f.forEach((I) => {
2510
- o && I.removeEventListener("scroll", r), i && I.removeEventListener("resize", r);
2590
+ f.forEach((k) => {
2591
+ o && k.removeEventListener("scroll", r), i && k.removeEventListener("resize", r);
2511
2592
  }), d == null || d(), (A = u) == null || A.disconnect(), u = null, l && cancelAnimationFrame(v);
2512
2593
  };
2513
2594
  }
2514
- const Po = fo, No = po, Io = co, ko = (e, t, r) => {
2595
+ const Po = fo, No = po, ko = co, Io = (e, t, r) => {
2515
2596
  const n = /* @__PURE__ */ new Map(), o = {
2516
2597
  platform: _o,
2517
2598
  ...r
@@ -2525,7 +2606,7 @@ const Po = fo, No = po, Io = co, ko = (e, t, r) => {
2525
2606
  });
2526
2607
  };
2527
2608
  var Mo = typeof document < "u", Do = function() {
2528
- }, Be = Mo ? On : Do;
2609
+ }, Be = Mo ? An : Do;
2529
2610
  function Xe(e, t) {
2530
2611
  if (e === t)
2531
2612
  return !0;
@@ -2556,15 +2637,15 @@ function Xe(e, t) {
2556
2637
  }
2557
2638
  return e !== e && t !== t;
2558
2639
  }
2559
- function Gn(e) {
2640
+ function Zn(e) {
2560
2641
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2561
2642
  }
2562
2643
  function un(e, t) {
2563
- const r = Gn(e);
2644
+ const r = Zn(e);
2564
2645
  return Math.round(t * r) / r;
2565
2646
  }
2566
2647
  function yt(e) {
2567
- const t = x.useRef(e);
2648
+ const t = E.useRef(e);
2568
2649
  return Be(() => {
2569
2650
  t.current = e;
2570
2651
  }), t;
@@ -2583,66 +2664,66 @@ function Lo(e) {
2583
2664
  transform: a = !0,
2584
2665
  whileElementsMounted: l,
2585
2666
  open: c
2586
- } = e, [f, d] = x.useState({
2667
+ } = e, [f, d] = E.useState({
2587
2668
  x: 0,
2588
2669
  y: 0,
2589
2670
  strategy: r,
2590
2671
  placement: t,
2591
2672
  middlewareData: {},
2592
2673
  isPositioned: !1
2593
- }), [h, u] = x.useState(n);
2674
+ }), [h, u] = E.useState(n);
2594
2675
  Xe(h, n) || u(n);
2595
- const [v, p] = x.useState(null), [O, A] = x.useState(null), I = x.useCallback((M) => {
2596
- M !== k.current && (k.current = M, p(M));
2597
- }, []), y = x.useCallback((M) => {
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) => {
2598
2679
  M !== H.current && (H.current = M, A(M));
2599
- }, []), T = i || v, b = s || O, k = x.useRef(null), H = x.useRef(null), K = x.useRef(f), J = l != null, Z = yt(l), G = yt(o), B = yt(c), te = x.useCallback(() => {
2600
- if (!k.current || !H.current)
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)
2601
2682
  return;
2602
2683
  const M = {
2603
2684
  placement: t,
2604
2685
  strategy: r,
2605
2686
  middleware: h
2606
2687
  };
2607
- G.current && (M.platform = G.current), ko(k.current, H.current, M).then((R) => {
2688
+ Z.current && (M.platform = Z.current), Io(I.current, H.current, M).then((R) => {
2608
2689
  const m = {
2609
2690
  ...R,
2610
2691
  // The floating element's position may be recomputed while it's closed
2611
2692
  // but still mounted (such as when transitioning out). To ensure
2612
2693
  // `isPositioned` will be `false` initially on the next open, avoid
2613
2694
  // setting it to `true` when `open === false` (must be specified).
2614
- isPositioned: B.current !== !1
2695
+ isPositioned: q.current !== !1
2615
2696
  };
2616
- z.current && !Xe(K.current, m) && (K.current = m, ir.flushSync(() => {
2697
+ X.current && !Xe(z.current, m) && (z.current = m, ir.flushSync(() => {
2617
2698
  d(m);
2618
2699
  }));
2619
2700
  });
2620
- }, [h, t, r, G, B]);
2701
+ }, [h, t, r, Z, q]);
2621
2702
  Be(() => {
2622
- c === !1 && K.current.isPositioned && (K.current.isPositioned = !1, d((M) => ({
2703
+ c === !1 && z.current.isPositioned && (z.current.isPositioned = !1, d((M) => ({
2623
2704
  ...M,
2624
2705
  isPositioned: !1
2625
2706
  })));
2626
2707
  }, [c]);
2627
- const z = x.useRef(!1);
2628
- Be(() => (z.current = !0, () => {
2629
- z.current = !1;
2708
+ const X = E.useRef(!1);
2709
+ Be(() => (X.current = !0, () => {
2710
+ X.current = !1;
2630
2711
  }), []), Be(() => {
2631
- if (T && (k.current = T), b && (H.current = b), T && b) {
2632
- if (Z.current)
2633
- return Z.current(T, b, te);
2712
+ if (T && (I.current = T), b && (H.current = b), T && b) {
2713
+ if (J.current)
2714
+ return J.current(T, b, te);
2634
2715
  te();
2635
2716
  }
2636
- }, [T, b, te, Z, J]);
2637
- const L = x.useMemo(() => ({
2638
- reference: k,
2717
+ }, [T, b, te, J, Q]);
2718
+ const L = E.useMemo(() => ({
2719
+ reference: I,
2639
2720
  floating: H,
2640
- setReference: I,
2721
+ setReference: k,
2641
2722
  setFloating: y
2642
- }), [I, y]), j = x.useMemo(() => ({
2723
+ }), [k, y]), j = E.useMemo(() => ({
2643
2724
  reference: T,
2644
2725
  floating: b
2645
- }), [T, b]), V = x.useMemo(() => {
2726
+ }), [T, b]), V = E.useMemo(() => {
2646
2727
  const M = {
2647
2728
  position: r,
2648
2729
  left: 0,
@@ -2654,7 +2735,7 @@ function Lo(e) {
2654
2735
  return a ? {
2655
2736
  ...M,
2656
2737
  transform: "translate(" + R + "px, " + m + "px)",
2657
- ...Gn(j.floating) >= 1.5 && {
2738
+ ...Zn(j.floating) >= 1.5 && {
2658
2739
  willChange: "transform"
2659
2740
  }
2660
2741
  } : {
@@ -2663,7 +2744,7 @@ function Lo(e) {
2663
2744
  top: m
2664
2745
  };
2665
2746
  }, [r, a, j.floating, f.x, f.y]);
2666
- return x.useMemo(() => ({
2747
+ return E.useMemo(() => ({
2667
2748
  ...f,
2668
2749
  update: te,
2669
2750
  refs: L,
@@ -2686,29 +2767,29 @@ const Fo = (e, t) => {
2686
2767
  options: [e, t]
2687
2768
  };
2688
2769
  }, jo = (e, t) => {
2689
- const r = Io(e);
2770
+ const r = ko(e);
2690
2771
  return {
2691
2772
  name: r.name,
2692
2773
  fn: r.fn,
2693
2774
  options: [e, t]
2694
2775
  };
2695
- }, Zn = {
2696
- ...x
2697
- }, Wo = Zn.useInsertionEffect, Bo = Wo || ((e) => e());
2776
+ }, Jn = {
2777
+ ...E
2778
+ }, Wo = Jn.useInsertionEffect, Bo = Wo || ((e) => e());
2698
2779
  function me(e) {
2699
- const t = x.useRef(() => {
2780
+ const t = E.useRef(() => {
2700
2781
  if (process.env.NODE_ENV !== "production")
2701
2782
  throw new Error("Cannot call an event handler while rendering.");
2702
2783
  });
2703
2784
  return Bo(() => {
2704
2785
  t.current = e;
2705
- }), x.useCallback(function() {
2786
+ }), E.useCallback(function() {
2706
2787
  for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
2707
2788
  n[o] = arguments[o];
2708
2789
  return t.current == null ? void 0 : t.current(...n);
2709
2790
  }, []);
2710
2791
  }
2711
- var de = typeof document < "u" ? On : We;
2792
+ var de = typeof document < "u" ? An : We;
2712
2793
  function Ge() {
2713
2794
  return Ge = Object.assign ? Object.assign.bind() : function(e) {
2714
2795
  for (var t = 1; t < arguments.length; t++) {
@@ -2726,14 +2807,14 @@ const dn = () => (
2726
2807
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + qo++
2727
2808
  );
2728
2809
  function Vo() {
2729
- const [e, t] = x.useState(() => fn ? dn() : void 0);
2810
+ const [e, t] = E.useState(() => fn ? dn() : void 0);
2730
2811
  return de(() => {
2731
2812
  e == null && t(dn());
2732
- }, []), x.useEffect(() => {
2813
+ }, []), E.useEffect(() => {
2733
2814
  fn = !0;
2734
2815
  }, []), e;
2735
2816
  }
2736
- const Yo = Zn.useId, Jn = Yo || Vo;
2817
+ const Yo = Jn.useId, Qn = Yo || Vo;
2737
2818
  let Nt;
2738
2819
  process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
2739
2820
  function Uo() {
@@ -2761,10 +2842,10 @@ function Ho() {
2761
2842
  }
2762
2843
  };
2763
2844
  }
2764
- const Ko = /* @__PURE__ */ x.createContext(null), zo = /* @__PURE__ */ x.createContext(null), Qn = () => {
2845
+ const Ko = /* @__PURE__ */ E.createContext(null), zo = /* @__PURE__ */ E.createContext(null), er = () => {
2765
2846
  var e;
2766
- return ((e = x.useContext(Ko)) == null ? void 0 : e.id) || null;
2767
- }, jt = () => x.useContext(zo);
2847
+ return ((e = E.useContext(Ko)) == null ? void 0 : e.id) || null;
2848
+ }, jt = () => E.useContext(zo);
2768
2849
  function Ze(e) {
2769
2850
  return "data-floating-ui-" + e;
2770
2851
  }
@@ -2813,10 +2894,10 @@ function Ne(e, t) {
2813
2894
  return r;
2814
2895
  }
2815
2896
  let Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {}, wt = 0;
2816
- const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, er = (e) => e && (e.host || er(e.parentNode)), Zo = (e, t) => t.map((r) => {
2897
+ const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, tr = (e) => e && (e.host || tr(e.parentNode)), Zo = (e, t) => t.map((r) => {
2817
2898
  if (e.contains(r))
2818
2899
  return r;
2819
- const n = er(r);
2900
+ const n = tr(r);
2820
2901
  return e.contains(n) ? n : null;
2821
2902
  }).filter((r) => r != null);
2822
2903
  function Jo(e, t, r, n) {
@@ -2833,8 +2914,8 @@ function Jo(e, t, r, n) {
2833
2914
  if (a.has(v))
2834
2915
  h(v);
2835
2916
  else {
2836
- const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, I = (f.get(v) || 0) + 1;
2837
- Oe.set(v, A), f.set(v, I), c.push(v), A === 1 && O && $e.add(v), I === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
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");
2838
2919
  }
2839
2920
  });
2840
2921
  }
@@ -2859,17 +2940,17 @@ const Je = () => ({
2859
2940
  typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
2860
2941
  )
2861
2942
  });
2862
- function tr(e, t) {
2943
+ function nr(e, t) {
2863
2944
  const r = Ft(e, Je());
2864
2945
  t === "prev" && r.reverse();
2865
2946
  const n = r.indexOf(we(ce(e)));
2866
2947
  return r.slice(n + 1)[0];
2867
2948
  }
2868
2949
  function Qo() {
2869
- return tr(document.body, "next");
2950
+ return nr(document.body, "next");
2870
2951
  }
2871
2952
  function ei() {
2872
- return tr(document.body, "prev");
2953
+ return nr(document.body, "prev");
2873
2954
  }
2874
2955
  function hn(e, t) {
2875
2956
  const r = t || e.currentTarget, n = e.relatedTarget;
@@ -2892,8 +2973,8 @@ let ti;
2892
2973
  function vn(e) {
2893
2974
  e.key === "Tab" && (e.target, clearTimeout(ti));
2894
2975
  }
2895
- const bn = /* @__PURE__ */ x.forwardRef(function(t, r) {
2896
- const [n, o] = x.useState();
2976
+ const bn = /* @__PURE__ */ E.forwardRef(function(t, r) {
2977
+ const [n, o] = E.useState();
2897
2978
  de(() => (_r() && o("button"), document.addEventListener("keydown", vn), () => {
2898
2979
  document.removeEventListener("keydown", vn);
2899
2980
  }), []);
@@ -2906,10 +2987,10 @@ const bn = /* @__PURE__ */ x.forwardRef(function(t, r) {
2906
2987
  [Ze("focus-guard")]: "",
2907
2988
  style: Wt
2908
2989
  };
2909
- return /* @__PURE__ */ x.createElement("span", Ge({}, t, i));
2910
- }), ni = /* @__PURE__ */ x.createContext(null), ri = () => x.useContext(ni), It = "data-floating-ui-focusable";
2990
+ return /* @__PURE__ */ E.createElement("span", Ge({}, t, i));
2991
+ }), ni = /* @__PURE__ */ E.createContext(null), ri = () => E.useContext(ni), kt = "data-floating-ui-focusable";
2911
2992
  function oi(e) {
2912
- return e ? e.hasAttribute(It) ? e : e.querySelector("[" + It + "]") || e : null;
2993
+ return e ? e.hasAttribute(kt) ? e : e.querySelector("[" + kt + "]") || e : null;
2913
2994
  }
2914
2995
  const yn = 20;
2915
2996
  let xe = [];
@@ -2927,8 +3008,8 @@ function xt(e) {
2927
3008
  function gn() {
2928
3009
  return xe.slice().reverse().find((e) => e.isConnected);
2929
3010
  }
2930
- const ii = /* @__PURE__ */ x.forwardRef(function(t, r) {
2931
- return /* @__PURE__ */ x.createElement("button", Ge({}, t, {
3011
+ const ii = /* @__PURE__ */ E.forwardRef(function(t, r) {
3012
+ return /* @__PURE__ */ E.createElement("button", Ge({}, t, {
2932
3013
  type: "button",
2933
3014
  ref: r,
2934
3015
  tabIndex: -1,
@@ -2955,31 +3036,31 @@ function si(e) {
2955
3036
  onOpenChange: p,
2956
3037
  events: O,
2957
3038
  dataRef: A,
2958
- floatingId: I,
3039
+ floatingId: k,
2959
3040
  elements: {
2960
3041
  domReference: y,
2961
3042
  floating: T
2962
3043
  }
2963
- } = t, b = typeof s == "number" && s < 0, k = Ir(y) && b, H = Go() ? i : !0, K = gt(o), J = gt(s), Z = gt(a), G = jt(), B = ri(), te = x.useRef(null), z = x.useRef(null), L = x.useRef(!1), j = x.useRef(!1), V = x.useRef(-1), M = B != null, R = oi(T), m = me(function(S) {
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) {
2964
3045
  return S === void 0 && (S = R), S ? Ft(S, Je()) : [];
2965
- }), w = me((S) => {
3046
+ }), x = me((S) => {
2966
3047
  const P = m(S);
2967
- return K.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
3048
+ return z.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
2968
3049
  });
2969
- x.useEffect(() => {
3050
+ E.useEffect(() => {
2970
3051
  if (n || !c) return;
2971
3052
  function S(g) {
2972
3053
  if (g.key === "Tab") {
2973
- oe(R, we(ce(R))) && m().length === 0 && !k && vt(g);
2974
- const _ = w(), N = Ee(g);
2975
- K.current[0] === "reference" && N === y && (vt(g), g.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), K.current[1] === "floating" && N === R && g.shiftKey && (vt(g), _e(_[0]));
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]));
2976
3057
  }
2977
3058
  }
2978
3059
  const P = ce(R);
2979
3060
  return P.addEventListener("keydown", S), () => {
2980
3061
  P.removeEventListener("keydown", S);
2981
3062
  };
2982
- }, [n, y, R, c, K, k, m, w]), x.useEffect(() => {
3063
+ }, [n, y, R, c, z, I, m, x]), E.useEffect(() => {
2983
3064
  if (n || !T) return;
2984
3065
  function S(P) {
2985
3066
  const g = Ee(P), N = m().indexOf(g);
@@ -2988,7 +3069,7 @@ function si(e) {
2988
3069
  return T.addEventListener("focusin", S), () => {
2989
3070
  T.removeEventListener("focusin", S);
2990
3071
  };
2991
- }, [n, T, m]), x.useEffect(() => {
3072
+ }, [n, T, m]), E.useEffect(() => {
2992
3073
  if (n || !d) return;
2993
3074
  function S() {
2994
3075
  j.current = !0, setTimeout(() => {
@@ -2998,19 +3079,19 @@ function si(e) {
2998
3079
  function P(g) {
2999
3080
  const _ = g.relatedTarget;
3000
3081
  queueMicrotask(() => {
3001
- const N = !(oe(y, _) || oe(T, _) || oe(_, T) || oe(B == null ? void 0 : B.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || G && (Ne(G.nodesRef.current, v).find(($) => {
3002
- var D, X;
3003
- return oe((D = $.context) == null ? void 0 : D.elements.floating, _) || oe((X = $.context) == null ? void 0 : X.elements.domReference, _);
3004
- }) || Xo(G.nodesRef.current, v).find(($) => {
3005
- var D, X;
3006
- return ((D = $.context) == null ? void 0 : D.elements.floating) === _ || ((X = $.context) == null ? void 0 : X.elements.domReference) === _;
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) === _;
3007
3088
  })));
3008
3089
  if (l && N && we(ce(R)) === ce(R).body) {
3009
3090
  ne(R) && R.focus();
3010
- const $ = V.current, D = m(), X = D[$] || D[D.length - 1] || R;
3011
- ne(X) && X.focus();
3091
+ const $ = V.current, D = m(), G = D[$] || D[D.length - 1] || R;
3092
+ ne(G) && G.focus();
3012
3093
  }
3013
- (k || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3094
+ (I || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3014
3095
  _ !== gn() && (L.current = !0, p(!1, g, "focus-out"));
3015
3096
  });
3016
3097
  }
@@ -3018,26 +3099,26 @@ function si(e) {
3018
3099
  return y.addEventListener("focusout", P), y.addEventListener("pointerdown", S), T.addEventListener("focusout", P), () => {
3019
3100
  y.removeEventListener("focusout", P), y.removeEventListener("pointerdown", S), T.removeEventListener("focusout", P);
3020
3101
  };
3021
- }, [n, y, T, R, c, v, G, B, p, d, l, m, k]), x.useEffect(() => {
3102
+ }, [n, y, T, R, c, v, Z, q, p, d, l, m, I]), E.useEffect(() => {
3022
3103
  var S;
3023
3104
  if (n) return;
3024
- const P = Array.from((B == null || (S = B.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
3105
+ const P = Array.from((q == null || (S = q.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
3025
3106
  if (T) {
3026
- const g = [T, ...P, te.current, z.current, K.current.includes("reference") || k ? y : null].filter((N) => N != null), _ = c || k ? mn(g, H, !H) : mn(g);
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);
3027
3108
  return () => {
3028
3109
  _();
3029
3110
  };
3030
3111
  }
3031
- }, [n, y, T, c, K, B, k, H]), de(() => {
3112
+ }, [n, y, T, c, z, q, I, H]), de(() => {
3032
3113
  if (n || !ne(R)) return;
3033
3114
  const S = ce(R), P = we(S);
3034
3115
  queueMicrotask(() => {
3035
- const g = w(R), _ = J.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
3116
+ const g = x(R), _ = Q.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
3036
3117
  !b && !$ && h && _e(N, {
3037
3118
  preventScroll: N === R
3038
3119
  });
3039
3120
  });
3040
- }, [n, h, R, b, w, J]), de(() => {
3121
+ }, [n, h, R, b, x, Q]), de(() => {
3041
3122
  if (n || !R) return;
3042
3123
  let S = !1;
3043
3124
  const P = ce(R), g = we(P);
@@ -3055,20 +3136,20 @@ function si(e) {
3055
3136
  O.on("openchange", $);
3056
3137
  const D = P.createElement("span");
3057
3138
  D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && y && y.insertAdjacentElement("afterend", D);
3058
- function X() {
3059
- return typeof Z.current == "boolean" ? gn() || D : Z.current.current || D;
3139
+ function G() {
3140
+ return typeof J.current == "boolean" ? gn() || D : J.current.current || D;
3060
3141
  }
3061
3142
  return () => {
3062
3143
  O.off("openchange", $);
3063
- const C = we(P), re = oe(T, C) || G && Ne(G.nodesRef.current, v).some((st) => {
3144
+ const C = we(P), re = oe(T, C) || Z && Ne(Z.nodesRef.current, v).some((st) => {
3064
3145
  var qt;
3065
3146
  return oe((qt = st.context) == null ? void 0 : qt.elements.floating, C);
3066
3147
  });
3067
3148
  (re || N && ["click", "mousedown"].includes(N.type)) && u.domReference.current && xt(u.domReference.current);
3068
- const ae = X();
3149
+ const ae = G();
3069
3150
  queueMicrotask(() => {
3070
3151
  // eslint-disable-next-line react-hooks/exhaustive-deps
3071
- Z.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3152
+ J.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
3072
3153
  // since it likely entered a different element which should be
3073
3154
  // respected: https://github.com/floating-ui/floating-ui/issues/2607
3074
3155
  (!(ae !== C && C !== P.body) || re) && ae.focus({
@@ -3076,26 +3157,26 @@ function si(e) {
3076
3157
  }), D.remove();
3077
3158
  });
3078
3159
  };
3079
- }, [n, T, R, Z, A, u, O, G, v, M, y]), x.useEffect(() => {
3160
+ }, [n, T, R, J, A, u, O, Z, v, M, y]), E.useEffect(() => {
3080
3161
  queueMicrotask(() => {
3081
3162
  L.current = !1;
3082
3163
  });
3083
3164
  }, [n]), de(() => {
3084
- if (!n && B)
3085
- return B.setFocusManagerState({
3165
+ if (!n && q)
3166
+ return q.setFocusManagerState({
3086
3167
  modal: c,
3087
3168
  closeOnFocusOut: d,
3088
3169
  open: h,
3089
3170
  onOpenChange: p,
3090
3171
  refs: u
3091
3172
  }), () => {
3092
- B.setFocusManagerState(null);
3173
+ q.setFocusManagerState(null);
3093
3174
  };
3094
- }, [n, B, c, h, p, u, d]), de(() => {
3175
+ }, [n, q, c, h, p, u, d]), de(() => {
3095
3176
  if (n || !R || typeof MutationObserver != "function" || b) return;
3096
3177
  const S = () => {
3097
3178
  const g = R.getAttribute("tabindex"), _ = m(), N = we(ce(T)), $ = _.indexOf(N);
3098
- $ !== -1 && (V.current = $), K.current.includes("floating") || N !== u.domReference.current && _.length === 0 ? g !== "0" && R.setAttribute("tabindex", "0") : g !== "-1" && R.setAttribute("tabindex", "-1");
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");
3099
3180
  };
3100
3181
  S();
3101
3182
  const P = new MutationObserver(S);
@@ -3106,43 +3187,43 @@ function si(e) {
3106
3187
  }), () => {
3107
3188
  P.disconnect();
3108
3189
  };
3109
- }, [n, T, R, u, K, m, b]);
3190
+ }, [n, T, R, u, z, m, b]);
3110
3191
  function F(S) {
3111
- return n || !f || !c ? null : /* @__PURE__ */ x.createElement(ii, {
3112
- ref: S === "start" ? te : z,
3192
+ return n || !f || !c ? null : /* @__PURE__ */ E.createElement(ii, {
3193
+ ref: S === "start" ? te : X,
3113
3194
  onClick: (P) => p(!1, P.nativeEvent)
3114
3195
  }, typeof f == "string" ? f : "Dismiss");
3115
3196
  }
3116
- const W = !n && H && (c ? !k : !0) && (M || c);
3117
- return /* @__PURE__ */ x.createElement(x.Fragment, null, W && /* @__PURE__ */ x.createElement(bn, {
3197
+ const W = !n && H && (c ? !I : !0) && (M || c);
3198
+ return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(bn, {
3118
3199
  "data-type": "inside",
3119
- ref: B == null ? void 0 : B.beforeInsideRef,
3200
+ ref: q == null ? void 0 : q.beforeInsideRef,
3120
3201
  onFocus: (S) => {
3121
3202
  if (c) {
3122
- const g = w();
3203
+ const g = x();
3123
3204
  _e(o[0] === "reference" ? g[0] : g[g.length - 1]);
3124
- } else if (B != null && B.preserveTabOrder && B.portalNode)
3125
- if (L.current = !1, hn(S, B.portalNode)) {
3205
+ } else if (q != null && q.preserveTabOrder && q.portalNode)
3206
+ if (L.current = !1, hn(S, q.portalNode)) {
3126
3207
  const g = Qo() || y;
3127
3208
  g == null || g.focus();
3128
3209
  } else {
3129
3210
  var P;
3130
- (P = B.beforeOutsideRef.current) == null || P.focus();
3211
+ (P = q.beforeOutsideRef.current) == null || P.focus();
3131
3212
  }
3132
3213
  }
3133
- }), !k && F("start"), r, F("end"), W && /* @__PURE__ */ x.createElement(bn, {
3214
+ }), !I && F("start"), r, F("end"), W && /* @__PURE__ */ E.createElement(bn, {
3134
3215
  "data-type": "inside",
3135
- ref: B == null ? void 0 : B.afterInsideRef,
3216
+ ref: q == null ? void 0 : q.afterInsideRef,
3136
3217
  onFocus: (S) => {
3137
3218
  if (c)
3138
- _e(w()[0]);
3139
- else if (B != null && B.preserveTabOrder && B.portalNode)
3140
- if (d && (L.current = !0), hn(S, B.portalNode)) {
3219
+ _e(x()[0]);
3220
+ else if (q != null && q.preserveTabOrder && q.portalNode)
3221
+ if (d && (L.current = !0), hn(S, q.portalNode)) {
3141
3222
  const g = ei() || y;
3142
3223
  g == null || g.focus();
3143
3224
  } else {
3144
3225
  var P;
3145
- (P = B.afterOutsideRef.current) == null || P.focus();
3226
+ (P = q.afterOutsideRef.current) == null || P.focus();
3146
3227
  }
3147
3228
  }
3148
3229
  }));
@@ -3151,7 +3232,7 @@ function wn(e) {
3151
3232
  return ne(e.target) && e.target.tagName === "BUTTON";
3152
3233
  }
3153
3234
  function xn(e) {
3154
- return Dn(e);
3235
+ return Ln(e);
3155
3236
  }
3156
3237
  function ai(e, t) {
3157
3238
  t === void 0 && (t = {});
@@ -3169,7 +3250,7 @@ function ai(e, t) {
3169
3250
  ignoreMouse: c = !1,
3170
3251
  keyboardHandlers: f = !0,
3171
3252
  stickIfOpen: d = !0
3172
- } = t, h = x.useRef(), u = x.useRef(!1), v = x.useMemo(() => ({
3253
+ } = t, h = E.useRef(), u = E.useRef(!1), v = E.useMemo(() => ({
3173
3254
  onPointerDown(p) {
3174
3255
  h.current = p.pointerType;
3175
3256
  },
@@ -3192,7 +3273,7 @@ function ai(e, t) {
3192
3273
  p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && u.current && (u.current = !1, n(!(r && l), p.nativeEvent, "click"));
3193
3274
  }
3194
3275
  }), [o, i, a, c, f, n, r, d, l]);
3195
- return x.useMemo(() => s ? {
3276
+ return E.useMemo(() => s ? {
3196
3277
  reference: v
3197
3278
  } : {}, [s, v]);
3198
3279
  }
@@ -3228,22 +3309,22 @@ function ui(e, t) {
3228
3309
  ancestorScroll: h = !1,
3229
3310
  bubbles: u,
3230
3311
  capture: v
3231
- } = t, p = jt(), O = me(typeof l == "function" ? l : () => !1), A = typeof l == "function" ? O : l, I = x.useRef(!1), y = x.useRef(!1), {
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), {
3232
3313
  escapeKey: T,
3233
3314
  outsidePress: b
3234
3315
  } = En(u), {
3235
- escapeKey: k,
3316
+ escapeKey: I,
3236
3317
  outsidePress: H
3237
- } = En(v), K = x.useRef(!1), J = me((L) => {
3318
+ } = En(v), z = E.useRef(!1), Q = me((L) => {
3238
3319
  var j;
3239
- if (!r || !s || !a || L.key !== "Escape" || K.current)
3320
+ if (!r || !s || !a || L.key !== "Escape" || z.current)
3240
3321
  return;
3241
3322
  const V = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, V) : [];
3242
3323
  if (!T && (L.stopPropagation(), M.length > 0)) {
3243
3324
  let R = !0;
3244
3325
  if (M.forEach((m) => {
3245
- var w;
3246
- if ((w = m.context) != null && w.open && !m.context.dataRef.current.__escapeKeyBubbles) {
3326
+ var x;
3327
+ if ((x = m.context) != null && x.open && !m.context.dataRef.current.__escapeKeyBubbles) {
3247
3328
  R = !1;
3248
3329
  return;
3249
3330
  }
@@ -3251,34 +3332,34 @@ function ui(e, t) {
3251
3332
  return;
3252
3333
  }
3253
3334
  n(!1, Ar(L) ? L.nativeEvent : L, "escape-key");
3254
- }), Z = me((L) => {
3335
+ }), J = me((L) => {
3255
3336
  var j;
3256
3337
  const V = () => {
3257
3338
  var M;
3258
- J(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
3339
+ Q(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
3259
3340
  };
3260
3341
  (j = Ee(L)) == null || j.addEventListener("keydown", V);
3261
- }), G = me((L) => {
3342
+ }), Z = me((L) => {
3262
3343
  var j;
3263
- const V = I.current;
3264
- I.current = !1;
3344
+ const V = k.current;
3345
+ k.current = !1;
3265
3346
  const M = y.current;
3266
3347
  if (y.current = !1, c === "click" && M || V || typeof A == "function" && !A(L))
3267
3348
  return;
3268
- const R = Ee(L), m = "[" + Ze("inert") + "]", w = ce(o.floating).querySelectorAll(m);
3269
- let F = Q(R) ? R : null;
3349
+ const R = Ee(L), m = "[" + Ze("inert") + "]", x = ce(o.floating).querySelectorAll(m);
3350
+ let F = ee(R) ? R : null;
3270
3351
  for (; F && !be(F); ) {
3271
3352
  const g = pe(F);
3272
- if (be(g) || !Q(g))
3353
+ if (be(g) || !ee(g))
3273
3354
  break;
3274
3355
  F = g;
3275
3356
  }
3276
- if (w.length && Q(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3357
+ if (x.length && ee(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
3277
3358
  !oe(R, o.floating) && // If the target root element contains none of the markers, then the
3278
3359
  // element was injected after the floating element rendered.
3279
- Array.from(w).every((g) => !oe(F, g)))
3360
+ Array.from(x).every((g) => !oe(F, g)))
3280
3361
  return;
3281
- if (ne(R) && z) {
3362
+ if (ne(R) && X) {
3282
3363
  const g = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
3283
3364
  let N = _ && L.offsetX > R.clientWidth;
3284
3365
  if (_ && se(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || g && L.offsetY > R.clientHeight)
@@ -3303,29 +3384,29 @@ function ui(e, t) {
3303
3384
  return;
3304
3385
  }
3305
3386
  n(!1, L, "outside-press");
3306
- }), B = me((L) => {
3387
+ }), q = me((L) => {
3307
3388
  var j;
3308
3389
  const V = () => {
3309
3390
  var M;
3310
- G(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
3391
+ Z(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
3311
3392
  };
3312
3393
  (j = Ee(L)) == null || j.addEventListener(c, V);
3313
3394
  });
3314
- x.useEffect(() => {
3395
+ E.useEffect(() => {
3315
3396
  if (!r || !s)
3316
3397
  return;
3317
3398
  i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
3318
3399
  let L = -1;
3319
- function j(w) {
3320
- n(!1, w, "ancestor-scroll");
3400
+ function j(x) {
3401
+ n(!1, x, "ancestor-scroll");
3321
3402
  }
3322
3403
  function V() {
3323
- window.clearTimeout(L), K.current = !0;
3404
+ window.clearTimeout(L), z.current = !0;
3324
3405
  }
3325
3406
  function M() {
3326
3407
  L = window.setTimeout(
3327
3408
  () => {
3328
- K.current = !1;
3409
+ z.current = !1;
3329
3410
  },
3330
3411
  // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
3331
3412
  // Only apply to WebKit for the test to remain 0ms.
@@ -3333,30 +3414,30 @@ function ui(e, t) {
3333
3414
  );
3334
3415
  }
3335
3416
  const R = ce(o.floating);
3336
- a && (R.addEventListener("keydown", k ? Z : J, k), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, H ? B : G, H);
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);
3337
3418
  let m = [];
3338
- return h && (Q(o.domReference) && (m = ve(o.domReference)), Q(o.floating) && (m = m.concat(ve(o.floating))), !Q(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((w) => {
3419
+ 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) => {
3339
3420
  var F;
3340
- return w !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
3341
- }), m.forEach((w) => {
3342
- w.addEventListener("scroll", j, {
3421
+ return x !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
3422
+ }), m.forEach((x) => {
3423
+ x.addEventListener("scroll", j, {
3343
3424
  passive: !0
3344
3425
  });
3345
3426
  }), () => {
3346
- a && (R.removeEventListener("keydown", k ? Z : J, k), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, H ? B : G, H), m.forEach((w) => {
3347
- w.removeEventListener("scroll", j);
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);
3348
3429
  }), window.clearTimeout(L);
3349
3430
  };
3350
- }, [i, o, a, A, c, r, n, h, s, T, b, J, k, Z, G, H, B]), x.useEffect(() => {
3351
- I.current = !1;
3431
+ }, [i, o, a, A, c, r, n, h, s, T, b, Q, I, J, Z, H, q]), E.useEffect(() => {
3432
+ k.current = !1;
3352
3433
  }, [A, c]);
3353
- const te = x.useMemo(() => ({
3354
- onKeyDown: J,
3434
+ const te = E.useMemo(() => ({
3435
+ onKeyDown: Q,
3355
3436
  [ci[d]]: (L) => {
3356
3437
  f && n(!1, L.nativeEvent, "reference-press");
3357
3438
  }
3358
- }), [J, n, f, d]), z = x.useMemo(() => ({
3359
- onKeyDown: J,
3439
+ }), [Q, n, f, d]), X = E.useMemo(() => ({
3440
+ onKeyDown: Q,
3360
3441
  onMouseDown() {
3361
3442
  y.current = !0;
3362
3443
  },
@@ -3364,39 +3445,39 @@ function ui(e, t) {
3364
3445
  y.current = !0;
3365
3446
  },
3366
3447
  [li[c]]: () => {
3367
- I.current = !0;
3448
+ k.current = !0;
3368
3449
  }
3369
- }), [J, c]);
3370
- return x.useMemo(() => s ? {
3450
+ }), [Q, c]);
3451
+ return E.useMemo(() => s ? {
3371
3452
  reference: te,
3372
- floating: z
3373
- } : {}, [s, te, z]);
3453
+ floating: X
3454
+ } : {}, [s, te, X]);
3374
3455
  }
3375
3456
  function fi(e) {
3376
3457
  const {
3377
3458
  open: t = !1,
3378
3459
  onOpenChange: r,
3379
3460
  elements: n
3380
- } = e, o = Jn(), i = x.useRef({}), [s] = x.useState(() => Ho()), a = Qn() != null;
3461
+ } = e, o = Qn(), i = E.useRef({}), [s] = E.useState(() => Ho()), a = er() != null;
3381
3462
  if (process.env.NODE_ENV !== "production") {
3382
3463
  const u = n.reference;
3383
- u && !Q(u) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
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.");
3384
3465
  }
3385
- const [l, c] = x.useState(n.reference), f = me((u, v, p) => {
3466
+ const [l, c] = E.useState(n.reference), f = me((u, v, p) => {
3386
3467
  i.current.openEvent = u ? v : void 0, s.emit("openchange", {
3387
3468
  open: u,
3388
3469
  event: v,
3389
3470
  reason: p,
3390
3471
  nested: a
3391
3472
  }), r == null || r(u, v, p);
3392
- }), d = x.useMemo(() => ({
3473
+ }), d = E.useMemo(() => ({
3393
3474
  setPositionReference: c
3394
- }), []), h = x.useMemo(() => ({
3475
+ }), []), h = E.useMemo(() => ({
3395
3476
  reference: l || n.reference || null,
3396
3477
  floating: n.floating || null,
3397
3478
  domReference: n.reference
3398
3479
  }), [l, n.reference, n.floating]);
3399
- return x.useMemo(() => ({
3480
+ return E.useMemo(() => ({
3400
3481
  dataRef: i,
3401
3482
  open: t,
3402
3483
  onOpenChange: f,
@@ -3417,7 +3498,7 @@ function di(e) {
3417
3498
  floating: null,
3418
3499
  ...e.elements
3419
3500
  }
3420
- }), n = e.rootContext || r, o = n.elements, [i, s] = x.useState(null), [a, l] = x.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = x.useRef(null), h = jt();
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();
3421
3502
  de(() => {
3422
3503
  f && (d.current = f);
3423
3504
  }, [f]);
@@ -3429,26 +3510,26 @@ function di(e) {
3429
3510
  reference: a
3430
3511
  }
3431
3512
  }
3432
- }), v = x.useCallback((y) => {
3433
- const T = Q(y) ? {
3513
+ }), v = E.useCallback((y) => {
3514
+ const T = ee(y) ? {
3434
3515
  getBoundingClientRect: () => y.getBoundingClientRect(),
3435
3516
  contextElement: y
3436
3517
  } : y;
3437
3518
  l(T), u.refs.setReference(T);
3438
- }, [u.refs]), p = x.useCallback((y) => {
3439
- (Q(y) || y === null) && (d.current = y, s(y)), (Q(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
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
3440
3521
  // `null` to support `positionReference` + an unstable `reference`
3441
3522
  // callback ref.
3442
- y !== null && !Q(y)) && u.refs.setReference(y);
3443
- }, [u.refs]), O = x.useMemo(() => ({
3523
+ y !== null && !ee(y)) && u.refs.setReference(y);
3524
+ }, [u.refs]), O = E.useMemo(() => ({
3444
3525
  ...u.refs,
3445
3526
  setReference: p,
3446
3527
  setPositionReference: v,
3447
3528
  domReference: d
3448
- }), [u.refs, p, v]), A = x.useMemo(() => ({
3529
+ }), [u.refs, p, v]), A = E.useMemo(() => ({
3449
3530
  ...u.elements,
3450
3531
  domReference: f
3451
- }), [u.elements, f]), I = x.useMemo(() => ({
3532
+ }), [u.elements, f]), k = E.useMemo(() => ({
3452
3533
  ...u,
3453
3534
  ...n,
3454
3535
  refs: O,
@@ -3456,15 +3537,15 @@ function di(e) {
3456
3537
  nodeId: t
3457
3538
  }), [u, O, A, t, n]);
3458
3539
  return de(() => {
3459
- n.dataRef.current.floatingContext = I;
3540
+ n.dataRef.current.floatingContext = k;
3460
3541
  const y = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
3461
- y && (y.context = I);
3462
- }), x.useMemo(() => ({
3542
+ y && (y.context = k);
3543
+ }), E.useMemo(() => ({
3463
3544
  ...u,
3464
- context: I,
3545
+ context: k,
3465
3546
  refs: O,
3466
3547
  elements: A
3467
- }), [u, O, A, I]);
3548
+ }), [u, O, A, k]);
3468
3549
  }
3469
3550
  const Rn = "active", Tn = "selected";
3470
3551
  function Et(e, t, r) {
@@ -3481,7 +3562,7 @@ function Et(e, t, r) {
3481
3562
  return {
3482
3563
  ...r === "floating" && {
3483
3564
  tabIndex: -1,
3484
- [It]: ""
3565
+ [kt]: ""
3485
3566
  },
3486
3567
  ...i,
3487
3568
  ...t.map((s) => {
@@ -3506,20 +3587,20 @@ function Et(e, t, r) {
3506
3587
  }
3507
3588
  function pi(e) {
3508
3589
  e === void 0 && (e = []);
3509
- const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = x.useCallback(
3590
+ const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = E.useCallback(
3510
3591
  (a) => Et(a, e, "reference"),
3511
3592
  // eslint-disable-next-line react-hooks/exhaustive-deps
3512
3593
  t
3513
- ), i = x.useCallback(
3594
+ ), i = E.useCallback(
3514
3595
  (a) => Et(a, e, "floating"),
3515
3596
  // eslint-disable-next-line react-hooks/exhaustive-deps
3516
3597
  r
3517
- ), s = x.useCallback(
3598
+ ), s = E.useCallback(
3518
3599
  (a) => Et(a, e, "item"),
3519
3600
  // eslint-disable-next-line react-hooks/exhaustive-deps
3520
3601
  n
3521
3602
  );
3522
- return x.useMemo(() => ({
3603
+ return E.useMemo(() => ({
3523
3604
  getReferenceProps: o,
3524
3605
  getFloatingProps: i,
3525
3606
  getItemProps: s
@@ -3535,7 +3616,7 @@ function hi(e, t) {
3535
3616
  } = e, {
3536
3617
  enabled: i = !0,
3537
3618
  role: s = "dialog"
3538
- } = t, a = (r = mi.get(s)) != null ? r : s, l = Jn(), f = Qn() != null, d = x.useMemo(() => a === "tooltip" || s === "label" ? {
3619
+ } = t, a = (r = mi.get(s)) != null ? r : s, l = Qn(), f = er() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
3539
3620
  ["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
3540
3621
  } : {
3541
3622
  "aria-expanded": n ? "true" : "false",
@@ -3556,7 +3637,7 @@ function hi(e, t) {
3556
3637
  ...s === "combobox" && {
3557
3638
  "aria-autocomplete": "list"
3558
3639
  }
3559
- }, [a, o, f, n, l, s]), h = x.useMemo(() => {
3640
+ }, [a, o, f, n, l, s]), h = E.useMemo(() => {
3560
3641
  const v = {
3561
3642
  id: o,
3562
3643
  ...a && {
@@ -3569,7 +3650,7 @@ function hi(e, t) {
3569
3650
  "aria-labelledby": l
3570
3651
  }
3571
3652
  };
3572
- }, [a, o, l, s]), u = x.useCallback((v) => {
3653
+ }, [a, o, l, s]), u = E.useCallback((v) => {
3573
3654
  let {
3574
3655
  active: p,
3575
3656
  selected: O
@@ -3596,14 +3677,14 @@ function hi(e, t) {
3596
3677
  }
3597
3678
  return {};
3598
3679
  }, [o, s]);
3599
- return x.useMemo(() => i ? {
3680
+ return E.useMemo(() => i ? {
3600
3681
  reference: d,
3601
3682
  floating: h,
3602
3683
  item: u
3603
3684
  } : {}, [i, d, h, u]);
3604
3685
  }
3605
3686
  function vi({ className: e, children: t, buttonText: r }) {
3606
- const [n, o] = or(!1), { refs: i, floatingStyles: s, context: a } = di({
3687
+ const [n, o] = On(!1), { refs: i, floatingStyles: s, context: a } = di({
3607
3688
  open: n,
3608
3689
  onOpenChange: o,
3609
3690
  middleware: [Fo(16), jo(), $o()],
@@ -3614,31 +3695,31 @@ function vi({ className: e, children: t, buttonText: r }) {
3614
3695
  c,
3615
3696
  f
3616
3697
  ]);
3617
- return /* @__PURE__ */ q(Ie, { children: [
3618
- /* @__PURE__ */ E("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ E(Re, { text: r }) }),
3619
- n && /* @__PURE__ */ E(si, { context: a, modal: !1, children: /* @__PURE__ */ E(
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(
3620
3701
  "div",
3621
3702
  {
3622
3703
  ref: i.setFloating,
3623
3704
  style: s,
3624
3705
  ...h(),
3625
- children: /* @__PURE__ */ E(gr, { children: t })
3706
+ children: /* @__PURE__ */ w(gr, { children: t })
3626
3707
  }
3627
3708
  ) })
3628
3709
  ] });
3629
3710
  }
3630
- const Bi = ({
3711
+ const qi = ({
3631
3712
  className: e,
3632
3713
  children: t,
3633
3714
  buttonText: r = "Menu button"
3634
3715
  }) => {
3635
- const n = ee("rpf-menu-button", e);
3636
- return /* @__PURE__ */ E(vi, { className: n, buttonText: r, children: t });
3637
- }, Sn = (e) => e ? /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Cn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ q(Ie, { children: [
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: [
3638
3719
  t === "left" && r !== "" ? Sn(r) : null,
3639
3720
  e,
3640
3721
  t === "right" && r !== "" ? Sn(r) : null
3641
- ] }), qi = ({
3722
+ ] }), Vi = ({
3642
3723
  text: e,
3643
3724
  href: t,
3644
3725
  icon: r = "",
@@ -3647,30 +3728,30 @@ const Bi = ({
3647
3728
  className: i,
3648
3729
  onClick: s
3649
3730
  }) => {
3650
- const a = ee(
3731
+ const a = K(
3651
3732
  "rpf-menu__item",
3652
3733
  { "rpf-menu__item--danger": o },
3653
3734
  i
3654
3735
  );
3655
- return /* @__PURE__ */ E("li", { className: a, children: t ? /* @__PURE__ */ E("a", { href: t, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ E("button", { type: "button", onClick: s, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) });
3656
- }, Vi = ({ text: e }) => /* @__PURE__ */ E("li", { className: "rpf-menu__title", children: /* @__PURE__ */ E("span", { children: e }) }), Yi = ({
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 = ({
3657
3738
  text: e = "",
3658
3739
  percent: t,
3659
3740
  complete: r = !1,
3660
3741
  className: n
3661
- }) => /* @__PURE__ */ E(
3742
+ }) => /* @__PURE__ */ w(
3662
3743
  "div",
3663
3744
  {
3664
- className: ee("rpf-progress-bar", {
3745
+ className: K("rpf-progress-bar", {
3665
3746
  "rpf-progress-bar--complete": r,
3666
3747
  className: n
3667
3748
  }),
3668
- children: /* @__PURE__ */ q("label", { className: "rpf-progress-bar__label", children: [
3669
- /* @__PURE__ */ E("span", { children: e }),
3670
- /* @__PURE__ */ E("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
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}%` })
3671
3752
  ] })
3672
3753
  }
3673
- ), Ui = ({ children: e }) => /* @__PURE__ */ E("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: e }) });
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 }) });
3674
3755
  /**
3675
3756
  * @license lucide-react v0.553.0 - ISC
3676
3757
  *
@@ -3683,7 +3764,7 @@ const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (
3683
3764
  ), _n = (e) => {
3684
3765
  const t = yi(e);
3685
3766
  return t.charAt(0).toUpperCase() + t.slice(1);
3686
- }, nr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), gi = (e) => {
3767
+ }, rr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), gi = (e) => {
3687
3768
  for (const t in e)
3688
3769
  if (t.startsWith("aria-") || t === "role" || t === "title")
3689
3770
  return !0;
@@ -3711,7 +3792,7 @@ var wi = {
3711
3792
  * This source code is licensed under the ISC license.
3712
3793
  * See the LICENSE file in the root directory of this source tree.
3713
3794
  */
3714
- const xi = kt(
3795
+ const xi = It(
3715
3796
  ({
3716
3797
  color: e = "currentColor",
3717
3798
  size: t = 24,
@@ -3730,7 +3811,7 @@ const xi = kt(
3730
3811
  height: t,
3731
3812
  stroke: e,
3732
3813
  strokeWidth: n ? Number(r) * 24 / Number(t) : r,
3733
- className: nr("lucide", o),
3814
+ className: rr("lucide", o),
3734
3815
  ...!i && !gi(a) && { "aria-hidden": "true" },
3735
3816
  ...a
3736
3817
  },
@@ -3747,11 +3828,11 @@ const xi = kt(
3747
3828
  * See the LICENSE file in the root directory of this source tree.
3748
3829
  */
3749
3830
  const Bt = (e, t) => {
3750
- const r = kt(
3831
+ const r = It(
3751
3832
  ({ className: n, ...o }, i) => Tt(xi, {
3752
3833
  ref: i,
3753
3834
  iconNode: t,
3754
- className: nr(
3835
+ className: rr(
3755
3836
  `lucide-${bi(_n(e))}`,
3756
3837
  `lucide-${e}`,
3757
3838
  n
@@ -3801,48 +3882,48 @@ const Ci = [
3801
3882
  ], _i = Bt("arrow-up-narrow-wide", Ci), Oi = (e, t) => {
3802
3883
  if (e)
3803
3884
  return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
3804
- }, Hi = ({
3885
+ }, Ki = ({
3805
3886
  sortDirection: e,
3806
3887
  children: t,
3807
3888
  onClick: r
3808
3889
  }) => {
3809
3890
  const n = !!r, o = e === "up" ? _i : e === "down" ? Si : Ri, i = Oi(n, e);
3810
- return /* @__PURE__ */ E("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ q("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
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: [
3811
3892
  t,
3812
- /* @__PURE__ */ E(o, { size: 20 })
3813
- ] }) : /* @__PURE__ */ E(Ie, { children: t }) }) });
3814
- }, Ki = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ E(
3893
+ /* @__PURE__ */ w(o, { size: 20 })
3894
+ ] }) : /* @__PURE__ */ w(ke, { children: t }) }) });
3895
+ }, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ w(
3815
3896
  "div",
3816
3897
  {
3817
3898
  "data-testid": "table-container",
3818
- className: ee("rpf-table", { "rpf-table--full-width": r }),
3819
- children: /* @__PURE__ */ q(
3899
+ className: K("rpf-table", { "rpf-table--full-width": r }),
3900
+ children: /* @__PURE__ */ B(
3820
3901
  "table",
3821
3902
  {
3822
- className: ee("rpf-table__table", {
3903
+ className: K("rpf-table__table", {
3823
3904
  "rpf-table__table--full-width": r
3824
3905
  }),
3825
3906
  children: [
3826
- /* @__PURE__ */ E("thead", { children: /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: e }) }),
3827
- /* @__PURE__ */ E("tbody", { children: t.map((n, o) => /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: n }, o)) })
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)) })
3828
3909
  ]
3829
3910
  }
3830
3911
  )
3831
3912
  }
3832
- ), zi = ({
3913
+ ), Xi = ({
3833
3914
  text: e,
3834
3915
  variant: t,
3835
3916
  secondary: r,
3836
3917
  icon: n,
3837
3918
  iconPosition: o
3838
3919
  }) => {
3839
- const i = n ? /* @__PURE__ */ E("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3920
+ const i = n ? /* @__PURE__ */ w("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
3840
3921
  n && !o && (o = "left");
3841
3922
  const s = t && t !== "default" ? `rpf-tag--${t}` : null;
3842
- return /* @__PURE__ */ q(
3923
+ return /* @__PURE__ */ B(
3843
3924
  "span",
3844
3925
  {
3845
- className: ee("rpf-tag", s, {
3926
+ className: K("rpf-tag", s, {
3846
3927
  "rpf-tag--secondary": r
3847
3928
  }),
3848
3929
  children: [
@@ -3857,24 +3938,25 @@ export {
3857
3938
  vr as Accordion,
3858
3939
  Ni as Alert,
3859
3940
  Re as Button,
3860
- Ii as CheckboxInput,
3861
- ki as Fieldset,
3941
+ ki as CheckboxInput,
3942
+ Ii as Fieldset,
3862
3943
  Dt as InputField,
3863
3944
  Mi as InputLabel,
3864
3945
  gr as Menu,
3865
- Bi as MenuButton,
3866
- qi as MenuItem,
3867
- Vi as MenuTitle,
3868
- Wi as Modal,
3869
- Yi as ProgressBar,
3870
- Di as RadioInput,
3871
- Li as SearchInput,
3872
- Fi as SelectInput,
3946
+ qi as MenuButton,
3947
+ Vi as MenuItem,
3948
+ Yi as MenuTitle,
3949
+ Bi as Modal,
3950
+ Di as PasswordInput,
3951
+ Ui as ProgressBar,
3952
+ Li as RadioInput,
3953
+ Fi as SearchInput,
3954
+ $i as SelectInput,
3873
3955
  br as Switch,
3874
- Ki as Table,
3875
- Ui as TableBodyCell,
3876
- Hi as TableHeaderCell,
3877
- zi as Tag,
3878
- ji as TextInput,
3879
- $i as TextareaInput
3956
+ zi as Table,
3957
+ Hi as TableBodyCell,
3958
+ Ki as TableHeaderCell,
3959
+ Xi as Tag,
3960
+ Wi as TextInput,
3961
+ ji as TextareaInput
3880
3962
  };