@takecasper/acuity-design-system 1.19.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./assets/index.css";
2
2
  import * as or from "react";
3
- import j, { useState as ge, useEffect as oe, useLayoutEffect as In, useRef as R, createContext as ce, useContext as ee, forwardRef as Vn, Fragment as de, isValidElement as Dn, cloneElement as Hn, createElement as Bn, useId as yr, useMemo as ae, useSyncExternalStore as zn, useReducer as Un, createRef as Gn, useCallback as mr } from "react";
4
- import { createPortal as St } from "react-dom";
5
- var _r = { exports: {} }, er = {};
3
+ import k, { useState as ge, useEffect as oe, useLayoutEffect as Dn, useRef as R, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as Bn, cloneElement as zn, createElement as Un, useId as yr, useMemo as ae, useSyncExternalStore as Gn, useReducer as Yn, createRef as Zn, useCallback as mr } from "react";
4
+ import { createPortal as Rt } from "react-dom";
5
+ var Wr = { exports: {} }, er = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -12,21 +12,21 @@ var _r = { exports: {} }, er = {};
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- var bt;
16
- function Yn() {
17
- if (bt)
15
+ var Ct;
16
+ function qn() {
17
+ if (Ct)
18
18
  return er;
19
- bt = 1;
20
- var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ Ct = 1;
20
+ var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
21
21
  function a(d, c, u) {
22
- var f, p = {}, g = null, v = null;
23
- u !== void 0 && (g = "" + u), c.key !== void 0 && (g = "" + c.key), c.ref !== void 0 && (v = c.ref);
22
+ var f, p = {}, m = null, v = null;
23
+ u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (v = c.ref);
24
24
  for (f in c)
25
25
  t.call(c, f) && !o.hasOwnProperty(f) && (p[f] = c[f]);
26
26
  if (d && d.defaultProps)
27
27
  for (f in c = d.defaultProps, c)
28
28
  p[f] === void 0 && (p[f] = c[f]);
29
- return { $$typeof: r, type: d, key: g, ref: v, props: p, _owner: s.current };
29
+ return { $$typeof: r, type: d, key: m, ref: v, props: p, _owner: s.current };
30
30
  }
31
31
  return er.Fragment = n, er.jsx = a, er.jsxs = a, er;
32
32
  }
@@ -40,10 +40,10 @@ var rr = {};
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
- var xt;
44
- function Zn() {
45
- return xt || (xt = 1, process.env.NODE_ENV !== "production" && function() {
46
- var e = j, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
43
+ var wt;
44
+ function Kn() {
45
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
46
+ var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
47
47
  function b(l) {
48
48
  if (l === null || typeof l != "object")
49
49
  return null;
@@ -51,38 +51,38 @@ function Zn() {
51
51
  return typeof h == "function" ? h : null;
52
52
  }
53
53
  var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function y(l) {
54
+ function j(l) {
55
55
  {
56
- for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), k = 1; k < h; k++)
57
- m[k - 1] = arguments[k];
58
- fe("error", l, m);
56
+ for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), y = 1; y < h; y++)
57
+ g[y - 1] = arguments[y];
58
+ fe("error", l, g);
59
59
  }
60
60
  }
61
- function fe(l, h, m) {
61
+ function fe(l, h, g) {
62
62
  {
63
- var k = w.ReactDebugCurrentFrame, M = k.getStackAddendum();
64
- M !== "" && (h += "%s", m = m.concat([M]));
65
- var S = m.map(function(T) {
66
- return String(T);
63
+ var y = w.ReactDebugCurrentFrame, T = y.getStackAddendum();
64
+ T !== "" && (h += "%s", g = g.concat([T]));
65
+ var S = g.map(function(M) {
66
+ return String(M);
67
67
  });
68
68
  S.unshift("Warning: " + h), Function.prototype.apply.call(console[l], console, S);
69
69
  }
70
70
  }
71
- var N = !1, G = !1, ke = !1, K = !1, Y = !1, J;
72
- J = Symbol.for("react.module.reference");
71
+ var N = !1, Y = !1, ke = !1, J = !1, Z = !1, X;
72
+ X = Symbol.for("react.module.reference");
73
73
  function te(l) {
74
- return !!(typeof l == "string" || typeof l == "function" || l === t || l === o || Y || l === s || l === u || l === f || K || l === v || N || G || ke || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
74
+ return !!(typeof l == "string" || typeof l == "function" || l === t || l === o || Z || l === s || l === u || l === f || J || l === v || N || Y || ke || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
78
- l.$$typeof === J || l.getModuleId !== void 0));
78
+ l.$$typeof === X || l.getModuleId !== void 0));
79
79
  }
80
- function ie(l, h, m) {
81
- var k = l.displayName;
82
- if (k)
83
- return k;
84
- var M = h.displayName || h.name || "";
85
- return M !== "" ? m + "(" + M + ")" : m;
80
+ function ie(l, h, g) {
81
+ var y = l.displayName;
82
+ if (y)
83
+ return y;
84
+ var T = h.displayName || h.name || "";
85
+ return T !== "" ? g + "(" + T + ")" : g;
86
86
  }
87
87
  function $(l) {
88
88
  return l.displayName || "Context";
@@ -90,7 +90,7 @@ function Zn() {
90
90
  function F(l) {
91
91
  if (l == null)
92
92
  return null;
93
- if (typeof l.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
93
+ if (typeof l.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
94
94
  return l.displayName || l.name || null;
95
95
  if (typeof l == "string")
96
96
  return l;
@@ -114,17 +114,17 @@ function Zn() {
114
114
  var h = l;
115
115
  return $(h) + ".Consumer";
116
116
  case a:
117
- var m = l;
118
- return $(m._context) + ".Provider";
117
+ var g = l;
118
+ return $(g._context) + ".Provider";
119
119
  case c:
120
120
  return ie(l, l.render, "ForwardRef");
121
121
  case p:
122
- var k = l.displayName || null;
123
- return k !== null ? k : F(l.type) || "Memo";
124
- case g: {
125
- var M = l, S = M._payload, T = M._init;
122
+ var y = l.displayName || null;
123
+ return y !== null ? y : F(l.type) || "Memo";
124
+ case m: {
125
+ var T = l, S = T._payload, M = T._init;
126
126
  try {
127
- return F(T(S));
127
+ return F(M(S));
128
128
  } catch (L) {
129
129
  return null;
130
130
  }
@@ -132,14 +132,14 @@ function Zn() {
132
132
  }
133
133
  return null;
134
134
  }
135
- var I = Object.assign, U = 0, pe, be, he, B, ye, me, X;
135
+ var V = Object.assign, U = 0, pe, be, he, B, ye, me, Q;
136
136
  function Se() {
137
137
  }
138
138
  Se.__reactDisabledLog = !0;
139
139
  function ne() {
140
140
  {
141
141
  if (U === 0) {
142
- pe = console.log, be = console.info, he = console.warn, B = console.error, ye = console.group, me = console.groupCollapsed, X = console.groupEnd;
142
+ pe = console.log, be = console.info, he = console.warn, B = console.error, ye = console.group, me = console.groupCollapsed, Q = console.groupEnd;
143
143
  var l = {
144
144
  configurable: !0,
145
145
  enumerable: !0,
@@ -168,44 +168,44 @@ function Zn() {
168
168
  writable: !0
169
169
  };
170
170
  Object.defineProperties(console, {
171
- log: I({}, l, {
171
+ log: V({}, l, {
172
172
  value: pe
173
173
  }),
174
- info: I({}, l, {
174
+ info: V({}, l, {
175
175
  value: be
176
176
  }),
177
- warn: I({}, l, {
177
+ warn: V({}, l, {
178
178
  value: he
179
179
  }),
180
- error: I({}, l, {
180
+ error: V({}, l, {
181
181
  value: B
182
182
  }),
183
- group: I({}, l, {
183
+ group: V({}, l, {
184
184
  value: ye
185
185
  }),
186
- groupCollapsed: I({}, l, {
186
+ groupCollapsed: V({}, l, {
187
187
  value: me
188
188
  }),
189
- groupEnd: I({}, l, {
190
- value: X
189
+ groupEnd: V({}, l, {
190
+ value: Q
191
191
  })
192
192
  });
193
193
  }
194
- U < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
+ U < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
195
  }
196
196
  }
197
- var Q = w.ReactCurrentDispatcher, V;
198
- function D(l, h, m) {
197
+ var ee = w.ReactCurrentDispatcher, D;
198
+ function H(l, h, g) {
199
199
  {
200
- if (V === void 0)
200
+ if (D === void 0)
201
201
  try {
202
202
  throw Error();
203
- } catch (M) {
204
- var k = M.stack.trim().match(/\n( *(at )?)/);
205
- V = k && k[1] || "";
203
+ } catch (T) {
204
+ var y = T.stack.trim().match(/\n( *(at )?)/);
205
+ D = y && y[1] || "";
206
206
  }
207
207
  return `
208
- ` + V + l;
208
+ ` + D + l;
209
209
  }
210
210
  }
211
211
  var Je = !1, je;
@@ -217,168 +217,168 @@ function Zn() {
217
217
  if (!l || Je)
218
218
  return "";
219
219
  {
220
- var m = je.get(l);
221
- if (m !== void 0)
222
- return m;
220
+ var g = je.get(l);
221
+ if (g !== void 0)
222
+ return g;
223
223
  }
224
- var k;
224
+ var y;
225
225
  Je = !0;
226
- var M = Error.prepareStackTrace;
226
+ var T = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var S;
229
- S = Q.current, Q.current = null, ne();
229
+ S = ee.current, ee.current = null, ne();
230
230
  try {
231
231
  if (h) {
232
- var T = function() {
232
+ var M = function() {
233
233
  throw Error();
234
234
  };
235
- if (Object.defineProperty(T.prototype, "props", {
235
+ if (Object.defineProperty(M.prototype, "props", {
236
236
  set: function() {
237
237
  throw Error();
238
238
  }
239
239
  }), typeof Reflect == "object" && Reflect.construct) {
240
240
  try {
241
- Reflect.construct(T, []);
241
+ Reflect.construct(M, []);
242
242
  } catch (Ee) {
243
- k = Ee;
243
+ y = Ee;
244
244
  }
245
- Reflect.construct(l, [], T);
245
+ Reflect.construct(l, [], M);
246
246
  } else {
247
247
  try {
248
- T.call();
248
+ M.call();
249
249
  } catch (Ee) {
250
- k = Ee;
250
+ y = Ee;
251
251
  }
252
- l.call(T.prototype);
252
+ l.call(M.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
256
256
  throw Error();
257
257
  } catch (Ee) {
258
- k = Ee;
258
+ y = Ee;
259
259
  }
260
260
  l();
261
261
  }
262
262
  } catch (Ee) {
263
- if (Ee && k && typeof Ee.stack == "string") {
263
+ if (Ee && y && typeof Ee.stack == "string") {
264
264
  for (var L = Ee.stack.split(`
265
- `), Z = k.stack.split(`
266
- `), W = L.length - 1, _ = Z.length - 1; W >= 1 && _ >= 0 && L[W] !== Z[_]; )
267
- _--;
268
- for (; W >= 1 && _ >= 0; W--, _--)
269
- if (L[W] !== Z[_]) {
270
- if (W !== 1 || _ !== 1)
265
+ `), q = y.stack.split(`
266
+ `), _ = L.length - 1, W = q.length - 1; _ >= 1 && W >= 0 && L[_] !== q[W]; )
267
+ W--;
268
+ for (; _ >= 1 && W >= 0; _--, W--)
269
+ if (L[_] !== q[W]) {
270
+ if (_ !== 1 || W !== 1)
271
271
  do
272
- if (W--, _--, _ < 0 || L[W] !== Z[_]) {
272
+ if (_--, W--, W < 0 || L[_] !== q[W]) {
273
273
  var le = `
274
- ` + L[W].replace(" at new ", " at ");
274
+ ` + L[_].replace(" at new ", " at ");
275
275
  return l.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", l.displayName)), typeof l == "function" && je.set(l, le), le;
276
276
  }
277
- while (W >= 1 && _ >= 0);
277
+ while (_ >= 1 && W >= 0);
278
278
  break;
279
279
  }
280
280
  }
281
281
  } finally {
282
- Je = !1, Q.current = S, Ke(), Error.prepareStackTrace = M;
282
+ Je = !1, ee.current = S, Ke(), Error.prepareStackTrace = T;
283
283
  }
284
- var Be = l ? l.displayName || l.name : "", vt = Be ? D(Be) : "";
285
- return typeof l == "function" && je.set(l, vt), vt;
284
+ var Be = l ? l.displayName || l.name : "", xt = Be ? H(Be) : "";
285
+ return typeof l == "function" && je.set(l, xt), xt;
286
286
  }
287
- function Xe(l, h, m) {
287
+ function Xe(l, h, g) {
288
288
  return xe(l, !1);
289
289
  }
290
- function bn(l) {
290
+ function Cn(l) {
291
291
  var h = l.prototype;
292
292
  return !!(h && h.isReactComponent);
293
293
  }
294
- function fr(l, h, m) {
294
+ function fr(l, h, g) {
295
295
  if (l == null)
296
296
  return "";
297
297
  if (typeof l == "function")
298
- return xe(l, bn(l));
298
+ return xe(l, Cn(l));
299
299
  if (typeof l == "string")
300
- return D(l);
300
+ return H(l);
301
301
  switch (l) {
302
302
  case u:
303
- return D("Suspense");
303
+ return H("Suspense");
304
304
  case f:
305
- return D("SuspenseList");
305
+ return H("SuspenseList");
306
306
  }
307
307
  if (typeof l == "object")
308
308
  switch (l.$$typeof) {
309
309
  case c:
310
310
  return Xe(l.render);
311
311
  case p:
312
- return fr(l.type, h, m);
313
- case g: {
314
- var k = l, M = k._payload, S = k._init;
312
+ return fr(l.type, h, g);
313
+ case m: {
314
+ var y = l, T = y._payload, S = y._init;
315
315
  try {
316
- return fr(S(M), h, m);
317
- } catch (T) {
316
+ return fr(S(T), h, g);
317
+ } catch (M) {
318
318
  }
319
319
  }
320
320
  }
321
321
  return "";
322
322
  }
323
- var pr = Object.prototype.hasOwnProperty, ot = {}, at = w.ReactDebugCurrentFrame;
323
+ var pr = Object.prototype.hasOwnProperty, it = {}, lt = w.ReactDebugCurrentFrame;
324
324
  function hr(l) {
325
325
  if (l) {
326
- var h = l._owner, m = fr(l.type, l._source, h ? h.type : null);
327
- at.setExtraStackFrame(m);
326
+ var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
327
+ lt.setExtraStackFrame(g);
328
328
  } else
329
- at.setExtraStackFrame(null);
329
+ lt.setExtraStackFrame(null);
330
330
  }
331
- function xn(l, h, m, k, M) {
331
+ function wn(l, h, g, y, T) {
332
332
  {
333
333
  var S = Function.call.bind(pr);
334
- for (var T in l)
335
- if (S(l, T)) {
334
+ for (var M in l)
335
+ if (S(l, M)) {
336
336
  var L = void 0;
337
337
  try {
338
- if (typeof l[T] != "function") {
339
- var Z = Error((k || "React class") + ": " + m + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw Z.name = "Invariant Violation", Z;
338
+ if (typeof l[M] != "function") {
339
+ var q = Error((y || "React class") + ": " + g + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
+ throw q.name = "Invariant Violation", q;
341
341
  }
342
- L = l[T](h, T, k, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (W) {
344
- L = W;
342
+ L = l[M](h, M, y, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ } catch (_) {
344
+ L = _;
345
345
  }
346
- L && !(L instanceof Error) && (hr(M), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", m, T, typeof L), hr(null)), L instanceof Error && !(L.message in ot) && (ot[L.message] = !0, hr(M), y("Failed %s type: %s", m, L.message), hr(null));
346
+ L && !(L instanceof Error) && (hr(T), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", g, M, typeof L), hr(null)), L instanceof Error && !(L.message in it) && (it[L.message] = !0, hr(T), j("Failed %s type: %s", g, L.message), hr(null));
347
347
  }
348
348
  }
349
349
  }
350
- var Cn = Array.isArray;
351
- function Mr(l) {
352
- return Cn(l);
350
+ var kn = Array.isArray;
351
+ function Tr(l) {
352
+ return kn(l);
353
353
  }
354
- function wn(l) {
354
+ function yn(l) {
355
355
  {
356
- var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && l[Symbol.toStringTag] || l.constructor.name || "Object";
357
- return m;
356
+ var h = typeof Symbol == "function" && Symbol.toStringTag, g = h && l[Symbol.toStringTag] || l.constructor.name || "Object";
357
+ return g;
358
358
  }
359
359
  }
360
- function kn(l) {
360
+ function jn(l) {
361
361
  try {
362
- return it(l), !1;
362
+ return dt(l), !1;
363
363
  } catch (h) {
364
364
  return !0;
365
365
  }
366
366
  }
367
- function it(l) {
367
+ function dt(l) {
368
368
  return "" + l;
369
369
  }
370
- function lt(l) {
371
- if (kn(l))
372
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wn(l)), it(l);
370
+ function ct(l) {
371
+ if (jn(l))
372
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(l)), dt(l);
373
373
  }
374
- var Qe = w.ReactCurrentOwner, yn = {
374
+ var Qe = w.ReactCurrentOwner, En = {
375
375
  key: !0,
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, dt, ct, Sr;
379
+ }, ut, ft, Sr;
380
380
  Sr = {};
381
- function jn(l) {
381
+ function Ln(l) {
382
382
  if (pr.call(l, "ref")) {
383
383
  var h = Object.getOwnPropertyDescriptor(l, "ref").get;
384
384
  if (h && h.isReactWarning)
@@ -386,7 +386,7 @@ function Zn() {
386
386
  }
387
387
  return l.ref !== void 0;
388
388
  }
389
- function En(l) {
389
+ function $n(l) {
390
390
  if (pr.call(l, "key")) {
391
391
  var h = Object.getOwnPropertyDescriptor(l, "key").get;
392
392
  if (h && h.isReactWarning)
@@ -394,43 +394,43 @@ function Zn() {
394
394
  }
395
395
  return l.key !== void 0;
396
396
  }
397
- function Ln(l, h) {
397
+ function Mn(l, h) {
398
398
  if (typeof l.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
399
- var m = F(Qe.current.type);
400
- Sr[m] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), l.ref), Sr[m] = !0);
399
+ var g = F(Qe.current.type);
400
+ Sr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), l.ref), Sr[g] = !0);
401
401
  }
402
402
  }
403
- function $n(l, h) {
403
+ function Tn(l, h) {
404
404
  {
405
- var m = function() {
406
- dt || (dt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
405
+ var g = function() {
406
+ ut || (ut = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
407
407
  };
408
- m.isReactWarning = !0, Object.defineProperty(l, "key", {
409
- get: m,
408
+ g.isReactWarning = !0, Object.defineProperty(l, "key", {
409
+ get: g,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- function Tn(l, h) {
414
+ function Sn(l, h) {
415
415
  {
416
- var m = function() {
417
- ct || (ct = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
416
+ var g = function() {
417
+ ft || (ft = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
418
418
  };
419
- m.isReactWarning = !0, Object.defineProperty(l, "ref", {
420
- get: m,
419
+ g.isReactWarning = !0, Object.defineProperty(l, "ref", {
420
+ get: g,
421
421
  configurable: !0
422
422
  });
423
423
  }
424
424
  }
425
- var Mn = function(l, h, m, k, M, S, T) {
425
+ var Nn = function(l, h, g, y, T, S, M) {
426
426
  var L = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
428
  $$typeof: r,
429
429
  // Built-in properties that belong on the element
430
430
  type: l,
431
431
  key: h,
432
- ref: m,
433
- props: T,
432
+ ref: g,
433
+ props: M,
434
434
  // Record the component responsible for creating this element.
435
435
  _owner: S
436
436
  };
@@ -443,46 +443,46 @@ function Zn() {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: k
446
+ value: y
447
447
  }), Object.defineProperty(L, "_source", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !1,
451
- value: M
451
+ value: T
452
452
  }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
453
453
  };
454
- function Sn(l, h, m, k, M) {
454
+ function Rn(l, h, g, y, T) {
455
455
  {
456
- var S, T = {}, L = null, Z = null;
457
- m !== void 0 && (lt(m), L = "" + m), En(h) && (lt(h.key), L = "" + h.key), jn(h) && (Z = h.ref, Ln(h, M));
456
+ var S, M = {}, L = null, q = null;
457
+ g !== void 0 && (ct(g), L = "" + g), $n(h) && (ct(h.key), L = "" + h.key), Ln(h) && (q = h.ref, Mn(h, T));
458
458
  for (S in h)
459
- pr.call(h, S) && !yn.hasOwnProperty(S) && (T[S] = h[S]);
459
+ pr.call(h, S) && !En.hasOwnProperty(S) && (M[S] = h[S]);
460
460
  if (l && l.defaultProps) {
461
- var W = l.defaultProps;
462
- for (S in W)
463
- T[S] === void 0 && (T[S] = W[S]);
461
+ var _ = l.defaultProps;
462
+ for (S in _)
463
+ M[S] === void 0 && (M[S] = _[S]);
464
464
  }
465
- if (L || Z) {
466
- var _ = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
467
- L && $n(T, _), Z && Tn(T, _);
465
+ if (L || q) {
466
+ var W = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
467
+ L && Tn(M, W), q && Sn(M, W);
468
468
  }
469
- return Mn(l, L, Z, M, k, Qe.current, T);
469
+ return Nn(l, L, q, T, y, Qe.current, M);
470
470
  }
471
471
  }
472
- var Nr = w.ReactCurrentOwner, ut = w.ReactDebugCurrentFrame;
472
+ var Nr = w.ReactCurrentOwner, pt = w.ReactDebugCurrentFrame;
473
473
  function He(l) {
474
474
  if (l) {
475
- var h = l._owner, m = fr(l.type, l._source, h ? h.type : null);
476
- ut.setExtraStackFrame(m);
475
+ var h = l._owner, g = fr(l.type, l._source, h ? h.type : null);
476
+ pt.setExtraStackFrame(g);
477
477
  } else
478
- ut.setExtraStackFrame(null);
478
+ pt.setExtraStackFrame(null);
479
479
  }
480
480
  var Rr;
481
481
  Rr = !1;
482
482
  function Ar(l) {
483
483
  return typeof l == "object" && l !== null && l.$$typeof === r;
484
484
  }
485
- function ft() {
485
+ function ht() {
486
486
  {
487
487
  if (Nr.current) {
488
488
  var l = F(Nr.current.type);
@@ -494,142 +494,142 @@ Check the render method of \`` + l + "`.";
494
494
  return "";
495
495
  }
496
496
  }
497
- function Nn(l) {
497
+ function An(l) {
498
498
  {
499
499
  if (l !== void 0) {
500
- var h = l.fileName.replace(/^.*[\\\/]/, ""), m = l.lineNumber;
500
+ var h = l.fileName.replace(/^.*[\\\/]/, ""), g = l.lineNumber;
501
501
  return `
502
502
 
503
- Check your code at ` + h + ":" + m + ".";
503
+ Check your code at ` + h + ":" + g + ".";
504
504
  }
505
505
  return "";
506
506
  }
507
507
  }
508
- var pt = {};
509
- function Rn(l) {
508
+ var mt = {};
509
+ function Pn(l) {
510
510
  {
511
- var h = ft();
511
+ var h = ht();
512
512
  if (!h) {
513
- var m = typeof l == "string" ? l : l.displayName || l.name;
514
- m && (h = `
513
+ var g = typeof l == "string" ? l : l.displayName || l.name;
514
+ g && (h = `
515
515
 
516
- Check the top-level render call using <` + m + ">.");
516
+ Check the top-level render call using <` + g + ">.");
517
517
  }
518
518
  return h;
519
519
  }
520
520
  }
521
- function ht(l, h) {
521
+ function gt(l, h) {
522
522
  {
523
523
  if (!l._store || l._store.validated || l.key != null)
524
524
  return;
525
525
  l._store.validated = !0;
526
- var m = Rn(h);
527
- if (pt[m])
526
+ var g = Pn(h);
527
+ if (mt[g])
528
528
  return;
529
- pt[m] = !0;
530
- var k = "";
531
- l && l._owner && l._owner !== Nr.current && (k = " It was passed a child from " + F(l._owner.type) + "."), He(l), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, k), He(null);
529
+ mt[g] = !0;
530
+ var y = "";
531
+ l && l._owner && l._owner !== Nr.current && (y = " It was passed a child from " + F(l._owner.type) + "."), He(l), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, y), He(null);
532
532
  }
533
533
  }
534
- function mt(l, h) {
534
+ function vt(l, h) {
535
535
  {
536
536
  if (typeof l != "object")
537
537
  return;
538
- if (Mr(l))
539
- for (var m = 0; m < l.length; m++) {
540
- var k = l[m];
541
- Ar(k) && ht(k, h);
538
+ if (Tr(l))
539
+ for (var g = 0; g < l.length; g++) {
540
+ var y = l[g];
541
+ Ar(y) && gt(y, h);
542
542
  }
543
543
  else if (Ar(l))
544
544
  l._store && (l._store.validated = !0);
545
545
  else if (l) {
546
- var M = b(l);
547
- if (typeof M == "function" && M !== l.entries)
548
- for (var S = M.call(l), T; !(T = S.next()).done; )
549
- Ar(T.value) && ht(T.value, h);
546
+ var T = b(l);
547
+ if (typeof T == "function" && T !== l.entries)
548
+ for (var S = T.call(l), M; !(M = S.next()).done; )
549
+ Ar(M.value) && gt(M.value, h);
550
550
  }
551
551
  }
552
552
  }
553
- function An(l) {
553
+ function Fn(l) {
554
554
  {
555
555
  var h = l.type;
556
556
  if (h == null || typeof h == "string")
557
557
  return;
558
- var m;
558
+ var g;
559
559
  if (typeof h == "function")
560
- m = h.propTypes;
560
+ g = h.propTypes;
561
561
  else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
562
562
  // Inner props are checked in the reconciler.
563
563
  h.$$typeof === p))
564
- m = h.propTypes;
564
+ g = h.propTypes;
565
565
  else
566
566
  return;
567
- if (m) {
568
- var k = F(h);
569
- xn(m, l.props, "prop", k, l);
567
+ if (g) {
568
+ var y = F(h);
569
+ wn(g, l.props, "prop", y, l);
570
570
  } else if (h.PropTypes !== void 0 && !Rr) {
571
571
  Rr = !0;
572
- var M = F(h);
573
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
572
+ var T = F(h);
573
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
574
574
  }
575
- typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
575
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
576
  }
577
577
  }
578
- function Pn(l) {
578
+ function On(l) {
579
579
  {
580
- for (var h = Object.keys(l.props), m = 0; m < h.length; m++) {
581
- var k = h[m];
582
- if (k !== "children" && k !== "key") {
583
- He(l), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), He(null);
580
+ for (var h = Object.keys(l.props), g = 0; g < h.length; g++) {
581
+ var y = h[g];
582
+ if (y !== "children" && y !== "key") {
583
+ He(l), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), He(null);
584
584
  break;
585
585
  }
586
586
  }
587
- l.ref !== null && (He(l), y("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
587
+ l.ref !== null && (He(l), j("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
588
588
  }
589
589
  }
590
- function gt(l, h, m, k, M, S) {
590
+ function bt(l, h, g, y, T, S) {
591
591
  {
592
- var T = te(l);
593
- if (!T) {
592
+ var M = te(l);
593
+ if (!M) {
594
594
  var L = "";
595
595
  (l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
596
- var Z = Nn(M);
597
- Z ? L += Z : L += ft();
598
- var W;
599
- l === null ? W = "null" : Mr(l) ? W = "array" : l !== void 0 && l.$$typeof === r ? (W = "<" + (F(l.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : W = typeof l, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, L);
596
+ var q = An(T);
597
+ q ? L += q : L += ht();
598
+ var _;
599
+ l === null ? _ = "null" : Tr(l) ? _ = "array" : l !== void 0 && l.$$typeof === r ? (_ = "<" + (F(l.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof l, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, L);
600
600
  }
601
- var _ = Sn(l, h, m, M, S);
602
- if (_ == null)
603
- return _;
604
- if (T) {
601
+ var W = Rn(l, h, g, T, S);
602
+ if (W == null)
603
+ return W;
604
+ if (M) {
605
605
  var le = h.children;
606
606
  if (le !== void 0)
607
- if (k)
608
- if (Mr(le)) {
607
+ if (y)
608
+ if (Tr(le)) {
609
609
  for (var Be = 0; Be < le.length; Be++)
610
- mt(le[Be], l);
610
+ vt(le[Be], l);
611
611
  Object.freeze && Object.freeze(le);
612
612
  } else
613
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
613
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
614
614
  else
615
- mt(le, l);
615
+ vt(le, l);
616
616
  }
617
- return l === t ? Pn(_) : An(_), _;
617
+ return l === t ? On(W) : Fn(W), W;
618
618
  }
619
619
  }
620
- function Fn(l, h, m) {
621
- return gt(l, h, m, !0);
620
+ function _n(l, h, g) {
621
+ return bt(l, h, g, !0);
622
622
  }
623
- function On(l, h, m) {
624
- return gt(l, h, m, !1);
623
+ function Wn(l, h, g) {
624
+ return bt(l, h, g, !1);
625
625
  }
626
- var Wn = On, _n = Fn;
627
- rr.Fragment = t, rr.jsx = Wn, rr.jsxs = _n;
626
+ var In = Wn, Vn = _n;
627
+ rr.Fragment = t, rr.jsx = In, rr.jsxs = Vn;
628
628
  }()), rr;
629
629
  }
630
- process.env.NODE_ENV === "production" ? _r.exports = Yn() : _r.exports = Zn();
631
- var i = _r.exports;
632
- const qn = ({
630
+ process.env.NODE_ENV === "production" ? Wr.exports = qn() : Wr.exports = Kn();
631
+ var i = Wr.exports;
632
+ const Jn = ({
633
633
  width: e = "24",
634
634
  height: r = "24",
635
635
  className: n = "",
@@ -695,7 +695,7 @@ const qn = ({
695
695
  ]
696
696
  }
697
697
  );
698
- }, Nt = qn, Kn = ({
698
+ }, At = Jn, Xn = ({
699
699
  width: e = "24",
700
700
  height: r = "24",
701
701
  className: n = "",
@@ -741,7 +741,7 @@ const qn = ({
741
741
  ]
742
742
  }
743
743
  );
744
- }, Rt = Kn, Jn = ({
744
+ }, Pt = Xn, Qn = ({
745
745
  width: e = "24",
746
746
  height: r = "24",
747
747
  className: n = "",
@@ -803,7 +803,7 @@ const qn = ({
803
803
  ]
804
804
  }
805
805
  );
806
- }, At = Jn, Xn = ({
806
+ }, Ft = Qn, es = ({
807
807
  width: e = "24",
808
808
  height: r = "24",
809
809
  className: n = "",
@@ -849,7 +849,7 @@ const qn = ({
849
849
  ]
850
850
  }
851
851
  );
852
- }, Pt = Xn, Qn = ({
852
+ }, Ot = es, rs = ({
853
853
  width: e = "24",
854
854
  height: r = "24",
855
855
  className: n = "",
@@ -895,7 +895,7 @@ const qn = ({
895
895
  ]
896
896
  }
897
897
  );
898
- }, es = Qn, rs = ({
898
+ }, ts = rs, ns = ({
899
899
  width: e = "24",
900
900
  height: r = "24",
901
901
  className: n = "",
@@ -961,7 +961,7 @@ const qn = ({
961
961
  ]
962
962
  }
963
963
  );
964
- }, ts = rs, ns = ({
964
+ }, ss = ns, os = ({
965
965
  width: e = "24",
966
966
  height: r = "24",
967
967
  className: n = "",
@@ -1007,7 +1007,7 @@ const qn = ({
1007
1007
  ]
1008
1008
  }
1009
1009
  );
1010
- }, ss = ns, os = ({
1010
+ }, as = os, is = ({
1011
1011
  width: e = "24",
1012
1012
  height: r = "24",
1013
1013
  className: n = "",
@@ -1063,7 +1063,7 @@ const qn = ({
1063
1063
  ]
1064
1064
  }
1065
1065
  );
1066
- }, as = os, is = ({
1066
+ }, ls = is, ds = ({
1067
1067
  width: e = "24",
1068
1068
  height: r = "24",
1069
1069
  className: n = "",
@@ -1163,7 +1163,7 @@ const qn = ({
1163
1163
  ]
1164
1164
  }
1165
1165
  );
1166
- }, ls = is, ds = ({
1166
+ }, cs = ds, us = ({
1167
1167
  width: e = "24",
1168
1168
  height: r = "24",
1169
1169
  className: n = "",
@@ -1224,7 +1224,7 @@ const qn = ({
1224
1224
  ]
1225
1225
  }
1226
1226
  );
1227
- }, cs = ds, us = ({
1227
+ }, fs = us, ps = ({
1228
1228
  width: e = "24",
1229
1229
  height: r = "24",
1230
1230
  className: n = "",
@@ -1260,7 +1260,7 @@ const qn = ({
1260
1260
  ]
1261
1261
  }
1262
1262
  );
1263
- }, fs = us, ps = ({
1263
+ }, hs = ps, ms = ({
1264
1264
  width: e = "24",
1265
1265
  height: r = "24",
1266
1266
  className: n = "",
@@ -1306,7 +1306,7 @@ const qn = ({
1306
1306
  ]
1307
1307
  }
1308
1308
  );
1309
- }, hs = ps, ms = ({
1309
+ }, gs = ms, vs = ({
1310
1310
  width: e = "24",
1311
1311
  height: r = "24",
1312
1312
  className: n = "",
@@ -1354,7 +1354,7 @@ const qn = ({
1354
1354
  ]
1355
1355
  }
1356
1356
  );
1357
- }, gs = ms, vs = ({
1357
+ }, bs = vs, xs = ({
1358
1358
  width: e = "24",
1359
1359
  height: r = "24",
1360
1360
  className: n = "",
@@ -1429,7 +1429,7 @@ const qn = ({
1429
1429
  ]
1430
1430
  }
1431
1431
  );
1432
- }, bs = vs, xs = ({
1432
+ }, Cs = xs, ws = ({
1433
1433
  width: e = "24",
1434
1434
  height: r = "24",
1435
1435
  className: n = "",
@@ -1465,7 +1465,7 @@ const qn = ({
1465
1465
  ]
1466
1466
  }
1467
1467
  );
1468
- }, Cs = xs, ws = ({
1468
+ }, ks = ws, ys = ({
1469
1469
  width: e = "24",
1470
1470
  height: r = "24",
1471
1471
  className: n = "",
@@ -1627,7 +1627,7 @@ const qn = ({
1627
1627
  ]
1628
1628
  }
1629
1629
  );
1630
- }, ks = ws, ys = ({
1630
+ }, js = ys, Es = ({
1631
1631
  width: e = "24",
1632
1632
  height: r = "24",
1633
1633
  className: n = "",
@@ -1683,7 +1683,7 @@ const qn = ({
1683
1683
  ]
1684
1684
  }
1685
1685
  );
1686
- }, js = ys, Es = ({
1686
+ }, Ls = Es, $s = ({
1687
1687
  width: e = "24",
1688
1688
  height: r = "24",
1689
1689
  className: n = "",
@@ -1783,7 +1783,7 @@ const qn = ({
1783
1783
  ]
1784
1784
  }
1785
1785
  );
1786
- }, Ls = Es, $s = ({
1786
+ }, Ms = $s, Ts = ({
1787
1787
  width: e = "24",
1788
1788
  height: r = "24",
1789
1789
  className: n = "",
@@ -1829,7 +1829,7 @@ const qn = ({
1829
1829
  ]
1830
1830
  }
1831
1831
  );
1832
- }, Ts = $s, Ms = ({
1832
+ }, Ss = Ts, Ns = ({
1833
1833
  width: e = "24",
1834
1834
  height: r = "24",
1835
1835
  className: n = "",
@@ -1875,7 +1875,7 @@ const qn = ({
1875
1875
  ]
1876
1876
  }
1877
1877
  );
1878
- }, Ss = Ms, Ns = ({
1878
+ }, Rs = Ns, As = ({
1879
1879
  width: e = "24",
1880
1880
  height: r = "24",
1881
1881
  className: n = "",
@@ -1910,7 +1910,7 @@ const qn = ({
1910
1910
  ]
1911
1911
  }
1912
1912
  );
1913
- }, Rs = Ns, As = ({
1913
+ }, Ps = As, Fs = ({
1914
1914
  width: e = "24",
1915
1915
  height: r = "24",
1916
1916
  className: n = "",
@@ -1966,7 +1966,7 @@ const qn = ({
1966
1966
  ]
1967
1967
  }
1968
1968
  );
1969
- }, Ps = As, Fs = ({
1969
+ }, Os = Fs, _s = ({
1970
1970
  width: e = "24",
1971
1971
  height: r = "24",
1972
1972
  className: n = "",
@@ -2022,7 +2022,7 @@ const qn = ({
2022
2022
  ]
2023
2023
  }
2024
2024
  );
2025
- }, Os = Fs, Ws = ({
2025
+ }, Ws = _s, Is = ({
2026
2026
  width: e = "24",
2027
2027
  height: r = "24",
2028
2028
  className: n = "",
@@ -2103,40 +2103,40 @@ const qn = ({
2103
2103
  ]
2104
2104
  }
2105
2105
  );
2106
- }, _s = Ws;
2107
- function Ft(e) {
2106
+ }, Vs = Is;
2107
+ function _t(e) {
2108
2108
  var r, n, t = "";
2109
2109
  if (typeof e == "string" || typeof e == "number")
2110
2110
  t += e;
2111
2111
  else if (typeof e == "object")
2112
2112
  if (Array.isArray(e))
2113
2113
  for (r = 0; r < e.length; r++)
2114
- e[r] && (n = Ft(e[r])) && (t && (t += " "), t += n);
2114
+ e[r] && (n = _t(e[r])) && (t && (t += " "), t += n);
2115
2115
  else
2116
2116
  for (r in e)
2117
2117
  e[r] && (t && (t += " "), t += r);
2118
2118
  return t;
2119
2119
  }
2120
- function Is() {
2120
+ function Ds() {
2121
2121
  for (var e, r, n = 0, t = ""; n < arguments.length; )
2122
- (e = arguments[n++]) && (r = Ft(e)) && (t && (t += " "), t += r);
2122
+ (e = arguments[n++]) && (r = _t(e)) && (t && (t += " "), t += r);
2123
2123
  return t;
2124
2124
  }
2125
- const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt = Is, H = (e, r) => (n) => {
2125
+ const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds, I = (e, r) => (n) => {
2126
2126
  var t;
2127
2127
  if ((r == null ? void 0 : r.variants) == null)
2128
- return wt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
2128
+ return yt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
2129
2129
  const { variants: s, defaultVariants: o } = r, a = Object.keys(s).map((u) => {
2130
2130
  const f = n == null ? void 0 : n[u], p = o == null ? void 0 : o[u];
2131
2131
  if (f === null)
2132
2132
  return null;
2133
- const g = Ct(f) || Ct(p);
2134
- return s[u][g];
2133
+ const m = kt(f) || kt(p);
2134
+ return s[u][m];
2135
2135
  }), d = n && Object.entries(n).reduce((u, f) => {
2136
- let [p, g] = f;
2137
- return g === void 0 || (u[p] = g), u;
2136
+ let [p, m] = f;
2137
+ return m === void 0 || (u[p] = m), u;
2138
2138
  }, {}), c = r == null || (t = r.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((u, f) => {
2139
- let { class: p, className: g, ...v } = f;
2139
+ let { class: p, className: m, ...v } = f;
2140
2140
  return Object.entries(v).every((x) => {
2141
2141
  let [C, b] = x;
2142
2142
  return Array.isArray(b) ? b.includes({
@@ -2149,19 +2149,19 @@ const Ct = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, wt =
2149
2149
  }) ? [
2150
2150
  ...u,
2151
2151
  p,
2152
- g
2152
+ m
2153
2153
  ] : u;
2154
2154
  }, []);
2155
- return wt(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
2155
+ return yt(e, a, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
2156
2156
  }, qr = "-";
2157
- function Vs(e) {
2158
- const r = Hs(e), {
2157
+ function Hs(e) {
2158
+ const r = zs(e), {
2159
2159
  conflictingClassGroups: n,
2160
2160
  conflictingClassGroupModifiers: t
2161
2161
  } = e;
2162
2162
  function s(a) {
2163
2163
  const d = a.split(qr);
2164
- return d[0] === "" && d.length !== 1 && d.shift(), Ot(d, r) || Ds(a);
2164
+ return d[0] === "" && d.length !== 1 && d.shift(), Wt(d, r) || Bs(a);
2165
2165
  }
2166
2166
  function o(a, d) {
2167
2167
  const c = n[a] || [];
@@ -2172,11 +2172,11 @@ function Vs(e) {
2172
2172
  getConflictingClassGroupIds: o
2173
2173
  };
2174
2174
  }
2175
- function Ot(e, r) {
2175
+ function Wt(e, r) {
2176
2176
  var a;
2177
2177
  if (e.length === 0)
2178
2178
  return r.classGroupId;
2179
- const n = e[0], t = r.nextPart.get(n), s = t ? Ot(e.slice(1), t) : void 0;
2179
+ const n = e[0], t = r.nextPart.get(n), s = t ? Wt(e.slice(1), t) : void 0;
2180
2180
  if (s)
2181
2181
  return s;
2182
2182
  if (r.validators.length === 0)
@@ -2186,15 +2186,15 @@ function Ot(e, r) {
2186
2186
  validator: d
2187
2187
  }) => d(o))) == null ? void 0 : a.classGroupId;
2188
2188
  }
2189
- const kt = /^\[(.+)\]$/;
2190
- function Ds(e) {
2191
- if (kt.test(e)) {
2192
- const r = kt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
2189
+ const jt = /^\[(.+)\]$/;
2190
+ function Bs(e) {
2191
+ if (jt.test(e)) {
2192
+ const r = jt.exec(e)[1], n = r == null ? void 0 : r.substring(0, r.indexOf(":"));
2193
2193
  if (n)
2194
2194
  return "arbitrary.." + n;
2195
2195
  }
2196
2196
  }
2197
- function Hs(e) {
2197
+ function zs(e) {
2198
2198
  const {
2199
2199
  theme: r,
2200
2200
  prefix: n
@@ -2202,19 +2202,19 @@ function Hs(e) {
2202
2202
  nextPart: /* @__PURE__ */ new Map(),
2203
2203
  validators: []
2204
2204
  };
2205
- return zs(Object.entries(e.classGroups), n).forEach(([o, a]) => {
2205
+ return Gs(Object.entries(e.classGroups), n).forEach(([o, a]) => {
2206
2206
  Ir(a, t, o, r);
2207
2207
  }), t;
2208
2208
  }
2209
2209
  function Ir(e, r, n, t) {
2210
2210
  e.forEach((s) => {
2211
2211
  if (typeof s == "string") {
2212
- const o = s === "" ? r : yt(r, s);
2212
+ const o = s === "" ? r : Et(r, s);
2213
2213
  o.classGroupId = n;
2214
2214
  return;
2215
2215
  }
2216
2216
  if (typeof s == "function") {
2217
- if (Bs(s)) {
2217
+ if (Us(s)) {
2218
2218
  Ir(s(t), r, n, t);
2219
2219
  return;
2220
2220
  }
@@ -2225,11 +2225,11 @@ function Ir(e, r, n, t) {
2225
2225
  return;
2226
2226
  }
2227
2227
  Object.entries(s).forEach(([o, a]) => {
2228
- Ir(a, yt(r, o), n, t);
2228
+ Ir(a, Et(r, o), n, t);
2229
2229
  });
2230
2230
  });
2231
2231
  }
2232
- function yt(e, r) {
2232
+ function Et(e, r) {
2233
2233
  let n = e;
2234
2234
  return r.split(qr).forEach((t) => {
2235
2235
  n.nextPart.has(t) || n.nextPart.set(t, {
@@ -2238,16 +2238,16 @@ function yt(e, r) {
2238
2238
  }), n = n.nextPart.get(t);
2239
2239
  }), n;
2240
2240
  }
2241
- function Bs(e) {
2241
+ function Us(e) {
2242
2242
  return e.isThemeGetter;
2243
2243
  }
2244
- function zs(e, r) {
2244
+ function Gs(e, r) {
2245
2245
  return r ? e.map(([n, t]) => {
2246
2246
  const s = t.map((o) => typeof o == "string" ? r + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, d]) => [r + a, d])) : o);
2247
2247
  return [n, s];
2248
2248
  }) : e;
2249
2249
  }
2250
- function Us(e) {
2250
+ function Ys(e) {
2251
2251
  if (e < 1)
2252
2252
  return {
2253
2253
  get: () => {
@@ -2272,8 +2272,8 @@ function Us(e) {
2272
2272
  }
2273
2273
  };
2274
2274
  }
2275
- const Wt = "!";
2276
- function Gs(e) {
2275
+ const It = "!";
2276
+ function Zs(e) {
2277
2277
  const r = e.separator, n = r.length === 1, t = r[0], s = r.length;
2278
2278
  return function(a) {
2279
2279
  const d = [];
@@ -2292,16 +2292,16 @@ function Gs(e) {
2292
2292
  }
2293
2293
  b === "[" ? c++ : b === "]" && c--;
2294
2294
  }
2295
- const p = d.length === 0 ? a : a.substring(u), g = p.startsWith(Wt), v = g ? p.substring(1) : p, x = f && f > u ? f - u : void 0;
2295
+ const p = d.length === 0 ? a : a.substring(u), m = p.startsWith(It), v = m ? p.substring(1) : p, x = f && f > u ? f - u : void 0;
2296
2296
  return {
2297
2297
  modifiers: d,
2298
- hasImportantModifier: g,
2298
+ hasImportantModifier: m,
2299
2299
  baseClassName: v,
2300
2300
  maybePostfixModifierPosition: x
2301
2301
  };
2302
2302
  };
2303
2303
  }
2304
- function Ys(e) {
2304
+ function qs(e) {
2305
2305
  if (e.length <= 1)
2306
2306
  return e;
2307
2307
  const r = [];
@@ -2310,28 +2310,28 @@ function Ys(e) {
2310
2310
  t[0] === "[" ? (r.push(...n.sort(), t), n = []) : n.push(t);
2311
2311
  }), r.push(...n.sort()), r;
2312
2312
  }
2313
- function Zs(e) {
2313
+ function Ks(e) {
2314
2314
  return {
2315
- cache: Us(e.cacheSize),
2316
- splitModifiers: Gs(e),
2317
- ...Vs(e)
2315
+ cache: Ys(e.cacheSize),
2316
+ splitModifiers: Zs(e),
2317
+ ...Hs(e)
2318
2318
  };
2319
2319
  }
2320
- const qs = /\s+/;
2321
- function Ks(e, r) {
2320
+ const Js = /\s+/;
2321
+ function Xs(e, r) {
2322
2322
  const {
2323
2323
  splitModifiers: n,
2324
2324
  getClassGroupId: t,
2325
2325
  getConflictingClassGroupIds: s
2326
2326
  } = r, o = /* @__PURE__ */ new Set();
2327
- return e.trim().split(qs).map((a) => {
2327
+ return e.trim().split(Js).map((a) => {
2328
2328
  const {
2329
2329
  modifiers: d,
2330
2330
  hasImportantModifier: c,
2331
2331
  baseClassName: u,
2332
2332
  maybePostfixModifierPosition: f
2333
2333
  } = n(a);
2334
- let p = t(f ? u.substring(0, f) : u), g = !!f;
2334
+ let p = t(f ? u.substring(0, f) : u), m = !!f;
2335
2335
  if (!p) {
2336
2336
  if (!f)
2337
2337
  return {
@@ -2343,15 +2343,15 @@ function Ks(e, r) {
2343
2343
  isTailwindClass: !1,
2344
2344
  originalClassName: a
2345
2345
  };
2346
- g = !1;
2346
+ m = !1;
2347
2347
  }
2348
- const v = Ys(d).join(":");
2348
+ const v = qs(d).join(":");
2349
2349
  return {
2350
2350
  isTailwindClass: !0,
2351
- modifierId: c ? v + Wt : v,
2351
+ modifierId: c ? v + It : v,
2352
2352
  classGroupId: p,
2353
2353
  originalClassName: a,
2354
- hasPostfixModifier: g
2354
+ hasPostfixModifier: m
2355
2355
  };
2356
2356
  }).reverse().filter((a) => {
2357
2357
  if (!a.isTailwindClass)
@@ -2364,101 +2364,101 @@ function Ks(e, r) {
2364
2364
  return o.has(f) ? !1 : (o.add(f), s(c, u).forEach((p) => o.add(d + p)), !0);
2365
2365
  }).reverse().map((a) => a.originalClassName).join(" ");
2366
2366
  }
2367
- function Js() {
2367
+ function Qs() {
2368
2368
  let e = 0, r, n, t = "";
2369
2369
  for (; e < arguments.length; )
2370
- (r = arguments[e++]) && (n = _t(r)) && (t && (t += " "), t += n);
2370
+ (r = arguments[e++]) && (n = Vt(r)) && (t && (t += " "), t += n);
2371
2371
  return t;
2372
2372
  }
2373
- function _t(e) {
2373
+ function Vt(e) {
2374
2374
  if (typeof e == "string")
2375
2375
  return e;
2376
2376
  let r, n = "";
2377
2377
  for (let t = 0; t < e.length; t++)
2378
- e[t] && (r = _t(e[t])) && (n && (n += " "), n += r);
2378
+ e[t] && (r = Vt(e[t])) && (n && (n += " "), n += r);
2379
2379
  return n;
2380
2380
  }
2381
- function Xs(e, ...r) {
2381
+ function eo(e, ...r) {
2382
2382
  let n, t, s, o = a;
2383
2383
  function a(c) {
2384
2384
  const u = r.reduce((f, p) => p(f), e());
2385
- return n = Zs(u), t = n.cache.get, s = n.cache.set, o = d, d(c);
2385
+ return n = Ks(u), t = n.cache.get, s = n.cache.set, o = d, d(c);
2386
2386
  }
2387
2387
  function d(c) {
2388
2388
  const u = t(c);
2389
2389
  if (u)
2390
2390
  return u;
2391
- const f = Ks(c, n);
2391
+ const f = Xs(c, n);
2392
2392
  return s(c, f), f;
2393
2393
  }
2394
2394
  return function() {
2395
- return o(Js.apply(null, arguments));
2395
+ return o(Qs.apply(null, arguments));
2396
2396
  };
2397
2397
  }
2398
2398
  function A(e) {
2399
2399
  const r = (n) => n[e] || [];
2400
2400
  return r.isThemeGetter = !0, r;
2401
2401
  }
2402
- const It = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qs = /^\d+\/\d+$/, eo = /* @__PURE__ */ new Set(["px", "full", "screen"]), ro = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, to = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, no = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, so = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, oo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
2402
+ const Dt = /^\[(?:([a-z-]+):)?(.+)\]$/i, ro = /^\d+\/\d+$/, to = /* @__PURE__ */ new Set(["px", "full", "screen"]), no = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, so = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ao = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, io = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
2403
2403
  function Le(e) {
2404
- return We(e) || eo.has(e) || Qs.test(e);
2404
+ return _e(e) || to.has(e) || ro.test(e);
2405
2405
  }
2406
2406
  function Ne(e) {
2407
- return Ge(e, "length", ho);
2407
+ return Ge(e, "length", go);
2408
2408
  }
2409
- function We(e) {
2409
+ function _e(e) {
2410
2410
  return !!e && !Number.isNaN(Number(e));
2411
2411
  }
2412
2412
  function gr(e) {
2413
- return Ge(e, "number", We);
2413
+ return Ge(e, "number", _e);
2414
2414
  }
2415
2415
  function tr(e) {
2416
2416
  return !!e && Number.isInteger(Number(e));
2417
2417
  }
2418
- function ao(e) {
2419
- return e.endsWith("%") && We(e.slice(0, -1));
2418
+ function lo(e) {
2419
+ return e.endsWith("%") && _e(e.slice(0, -1));
2420
2420
  }
2421
2421
  function E(e) {
2422
- return It.test(e);
2422
+ return Dt.test(e);
2423
2423
  }
2424
2424
  function Re(e) {
2425
- return ro.test(e);
2426
- }
2427
- const io = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
2428
- function lo(e) {
2429
- return Ge(e, io, Vt);
2425
+ return no.test(e);
2430
2426
  }
2431
- function co(e) {
2432
- return Ge(e, "position", Vt);
2427
+ const co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
2428
+ function uo(e) {
2429
+ return Ge(e, co, Ht);
2433
2430
  }
2434
- const uo = /* @__PURE__ */ new Set(["image", "url"]);
2435
2431
  function fo(e) {
2436
- return Ge(e, uo, go);
2432
+ return Ge(e, "position", Ht);
2437
2433
  }
2438
- function po(e) {
2439
- return Ge(e, "", mo);
2434
+ const po = /* @__PURE__ */ new Set(["image", "url"]);
2435
+ function ho(e) {
2436
+ return Ge(e, po, bo);
2437
+ }
2438
+ function mo(e) {
2439
+ return Ge(e, "", vo);
2440
2440
  }
2441
2441
  function nr() {
2442
2442
  return !0;
2443
2443
  }
2444
2444
  function Ge(e, r, n) {
2445
- const t = It.exec(e);
2445
+ const t = Dt.exec(e);
2446
2446
  return t ? t[1] ? typeof r == "string" ? t[1] === r : r.has(t[1]) : n(t[2]) : !1;
2447
2447
  }
2448
- function ho(e) {
2449
- return to.test(e) && !no.test(e);
2448
+ function go(e) {
2449
+ return so.test(e) && !oo.test(e);
2450
2450
  }
2451
- function Vt() {
2451
+ function Ht() {
2452
2452
  return !1;
2453
2453
  }
2454
- function mo(e) {
2455
- return so.test(e);
2454
+ function vo(e) {
2455
+ return ao.test(e);
2456
2456
  }
2457
- function go(e) {
2458
- return oo.test(e);
2457
+ function bo(e) {
2458
+ return io.test(e);
2459
2459
  }
2460
- function vo() {
2461
- const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), g = A("gap"), v = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), b = A("margin"), w = A("opacity"), y = A("padding"), fe = A("saturate"), N = A("scale"), G = A("sepia"), ke = A("skew"), K = A("space"), Y = A("translate"), J = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Ne], I = () => ["auto", We, E], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [We, gr], X = () => [We, E];
2460
+ function xo() {
2461
+ const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), d = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), v = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), b = A("margin"), w = A("opacity"), j = A("padding"), fe = A("saturate"), N = A("scale"), Y = A("sepia"), ke = A("skew"), J = A("space"), Z = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Ne], V = () => ["auto", _e, E], U = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, gr], Q = () => [_e, E];
2462
2462
  return {
2463
2463
  cacheSize: 500,
2464
2464
  separator: ":",
@@ -2473,11 +2473,11 @@ function vo() {
2473
2473
  borderWidth: F(),
2474
2474
  contrast: me(),
2475
2475
  grayscale: B(),
2476
- hueRotate: X(),
2476
+ hueRotate: Q(),
2477
2477
  invert: B(),
2478
2478
  gap: $(),
2479
2479
  gradientColorStops: [e],
2480
- gradientColorStopPositions: [ao, Ne],
2480
+ gradientColorStopPositions: [lo, Ne],
2481
2481
  inset: ie(),
2482
2482
  margin: ie(),
2483
2483
  opacity: me(),
@@ -2485,7 +2485,7 @@ function vo() {
2485
2485
  saturate: me(),
2486
2486
  scale: me(),
2487
2487
  sepia: B(),
2488
- skew: X(),
2488
+ skew: Q(),
2489
2489
  space: $(),
2490
2490
  translate: $()
2491
2491
  },
@@ -2609,21 +2609,21 @@ function vo() {
2609
2609
  * @see https://tailwindcss.com/docs/overscroll-behavior
2610
2610
  */
2611
2611
  overscroll: [{
2612
- overscroll: J()
2612
+ overscroll: X()
2613
2613
  }],
2614
2614
  /**
2615
2615
  * Overscroll Behavior X
2616
2616
  * @see https://tailwindcss.com/docs/overscroll-behavior
2617
2617
  */
2618
2618
  "overscroll-x": [{
2619
- "overscroll-x": J()
2619
+ "overscroll-x": X()
2620
2620
  }],
2621
2621
  /**
2622
2622
  * Overscroll Behavior Y
2623
2623
  * @see https://tailwindcss.com/docs/overscroll-behavior
2624
2624
  */
2625
2625
  "overscroll-y": [{
2626
- "overscroll-y": J()
2626
+ "overscroll-y": X()
2627
2627
  }],
2628
2628
  /**
2629
2629
  * Position
@@ -2776,14 +2776,14 @@ function vo() {
2776
2776
  * @see https://tailwindcss.com/docs/grid-column
2777
2777
  */
2778
2778
  "col-start": [{
2779
- "col-start": I()
2779
+ "col-start": V()
2780
2780
  }],
2781
2781
  /**
2782
2782
  * Grid Column End
2783
2783
  * @see https://tailwindcss.com/docs/grid-column
2784
2784
  */
2785
2785
  "col-end": [{
2786
- "col-end": I()
2786
+ "col-end": V()
2787
2787
  }],
2788
2788
  /**
2789
2789
  * Grid Template Rows
@@ -2806,14 +2806,14 @@ function vo() {
2806
2806
  * @see https://tailwindcss.com/docs/grid-row
2807
2807
  */
2808
2808
  "row-start": [{
2809
- "row-start": I()
2809
+ "row-start": V()
2810
2810
  }],
2811
2811
  /**
2812
2812
  * Grid Row End
2813
2813
  * @see https://tailwindcss.com/docs/grid-row
2814
2814
  */
2815
2815
  "row-end": [{
2816
- "row-end": I()
2816
+ "row-end": V()
2817
2817
  }],
2818
2818
  /**
2819
2819
  * Grid Auto Flow
@@ -2841,21 +2841,21 @@ function vo() {
2841
2841
  * @see https://tailwindcss.com/docs/gap
2842
2842
  */
2843
2843
  gap: [{
2844
- gap: [g]
2844
+ gap: [m]
2845
2845
  }],
2846
2846
  /**
2847
2847
  * Gap X
2848
2848
  * @see https://tailwindcss.com/docs/gap
2849
2849
  */
2850
2850
  "gap-x": [{
2851
- "gap-x": [g]
2851
+ "gap-x": [m]
2852
2852
  }],
2853
2853
  /**
2854
2854
  * Gap Y
2855
2855
  * @see https://tailwindcss.com/docs/gap
2856
2856
  */
2857
2857
  "gap-y": [{
2858
- "gap-y": [g]
2858
+ "gap-y": [m]
2859
2859
  }],
2860
2860
  /**
2861
2861
  * Justify Content
@@ -2926,63 +2926,63 @@ function vo() {
2926
2926
  * @see https://tailwindcss.com/docs/padding
2927
2927
  */
2928
2928
  p: [{
2929
- p: [y]
2929
+ p: [j]
2930
2930
  }],
2931
2931
  /**
2932
2932
  * Padding X
2933
2933
  * @see https://tailwindcss.com/docs/padding
2934
2934
  */
2935
2935
  px: [{
2936
- px: [y]
2936
+ px: [j]
2937
2937
  }],
2938
2938
  /**
2939
2939
  * Padding Y
2940
2940
  * @see https://tailwindcss.com/docs/padding
2941
2941
  */
2942
2942
  py: [{
2943
- py: [y]
2943
+ py: [j]
2944
2944
  }],
2945
2945
  /**
2946
2946
  * Padding Start
2947
2947
  * @see https://tailwindcss.com/docs/padding
2948
2948
  */
2949
2949
  ps: [{
2950
- ps: [y]
2950
+ ps: [j]
2951
2951
  }],
2952
2952
  /**
2953
2953
  * Padding End
2954
2954
  * @see https://tailwindcss.com/docs/padding
2955
2955
  */
2956
2956
  pe: [{
2957
- pe: [y]
2957
+ pe: [j]
2958
2958
  }],
2959
2959
  /**
2960
2960
  * Padding Top
2961
2961
  * @see https://tailwindcss.com/docs/padding
2962
2962
  */
2963
2963
  pt: [{
2964
- pt: [y]
2964
+ pt: [j]
2965
2965
  }],
2966
2966
  /**
2967
2967
  * Padding Right
2968
2968
  * @see https://tailwindcss.com/docs/padding
2969
2969
  */
2970
2970
  pr: [{
2971
- pr: [y]
2971
+ pr: [j]
2972
2972
  }],
2973
2973
  /**
2974
2974
  * Padding Bottom
2975
2975
  * @see https://tailwindcss.com/docs/padding
2976
2976
  */
2977
2977
  pb: [{
2978
- pb: [y]
2978
+ pb: [j]
2979
2979
  }],
2980
2980
  /**
2981
2981
  * Padding Left
2982
2982
  * @see https://tailwindcss.com/docs/padding
2983
2983
  */
2984
2984
  pl: [{
2985
- pl: [y]
2985
+ pl: [j]
2986
2986
  }],
2987
2987
  /**
2988
2988
  * Margin
@@ -3052,7 +3052,7 @@ function vo() {
3052
3052
  * @see https://tailwindcss.com/docs/space
3053
3053
  */
3054
3054
  "space-x": [{
3055
- "space-x": [K]
3055
+ "space-x": [J]
3056
3056
  }],
3057
3057
  /**
3058
3058
  * Space Between X Reverse
@@ -3064,7 +3064,7 @@ function vo() {
3064
3064
  * @see https://tailwindcss.com/docs/space
3065
3065
  */
3066
3066
  "space-y": [{
3067
- "space-y": [K]
3067
+ "space-y": [J]
3068
3068
  }],
3069
3069
  /**
3070
3070
  * Space Between Y Reverse
@@ -3197,7 +3197,7 @@ function vo() {
3197
3197
  * @see https://tailwindcss.com/docs/line-clamp
3198
3198
  */
3199
3199
  "line-clamp": [{
3200
- "line-clamp": ["none", We, gr]
3200
+ "line-clamp": ["none", _e, gr]
3201
3201
  }],
3202
3202
  /**
3203
3203
  * Line Height
@@ -3390,7 +3390,7 @@ function vo() {
3390
3390
  * @see https://tailwindcss.com/docs/background-position
3391
3391
  */
3392
3392
  "bg-position": [{
3393
- bg: [...U(), co]
3393
+ bg: [...U(), fo]
3394
3394
  }],
3395
3395
  /**
3396
3396
  * Background Repeat
@@ -3406,7 +3406,7 @@ function vo() {
3406
3406
  * @see https://tailwindcss.com/docs/background-size
3407
3407
  */
3408
3408
  "bg-size": [{
3409
- bg: ["auto", "cover", "contain", lo]
3409
+ bg: ["auto", "cover", "contain", uo]
3410
3410
  }],
3411
3411
  /**
3412
3412
  * Background Image
@@ -3415,7 +3415,7 @@ function vo() {
3415
3415
  "bg-image": [{
3416
3416
  bg: ["none", {
3417
3417
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3418
- }, fo]
3418
+ }, ho]
3419
3419
  }],
3420
3420
  /**
3421
3421
  * Background Color
@@ -3817,7 +3817,7 @@ function vo() {
3817
3817
  * @see https://tailwindcss.com/docs/box-shadow
3818
3818
  */
3819
3819
  shadow: [{
3820
- shadow: ["", "inner", "none", Re, po]
3820
+ shadow: ["", "inner", "none", Re, mo]
3821
3821
  }],
3822
3822
  /**
3823
3823
  * Box Shadow Color
@@ -3917,7 +3917,7 @@ function vo() {
3917
3917
  * @see https://tailwindcss.com/docs/sepia
3918
3918
  */
3919
3919
  sepia: [{
3920
- sepia: [G]
3920
+ sepia: [Y]
3921
3921
  }],
3922
3922
  /**
3923
3923
  * Backdrop Filter
@@ -3988,7 +3988,7 @@ function vo() {
3988
3988
  * @see https://tailwindcss.com/docs/backdrop-sepia
3989
3989
  */
3990
3990
  "backdrop-sepia": [{
3991
- "backdrop-sepia": [G]
3991
+ "backdrop-sepia": [Y]
3992
3992
  }],
3993
3993
  // Tables
3994
3994
  /**
@@ -4046,7 +4046,7 @@ function vo() {
4046
4046
  * @see https://tailwindcss.com/docs/transition-duration
4047
4047
  */
4048
4048
  duration: [{
4049
- duration: X()
4049
+ duration: Q()
4050
4050
  }],
4051
4051
  /**
4052
4052
  * Transition Timing Function
@@ -4060,7 +4060,7 @@ function vo() {
4060
4060
  * @see https://tailwindcss.com/docs/transition-delay
4061
4061
  */
4062
4062
  delay: [{
4063
- delay: X()
4063
+ delay: Q()
4064
4064
  }],
4065
4065
  /**
4066
4066
  * Animation
@@ -4110,14 +4110,14 @@ function vo() {
4110
4110
  * @see https://tailwindcss.com/docs/translate
4111
4111
  */
4112
4112
  "translate-x": [{
4113
- "translate-x": [Y]
4113
+ "translate-x": [Z]
4114
4114
  }],
4115
4115
  /**
4116
4116
  * Translate Y
4117
4117
  * @see https://tailwindcss.com/docs/translate
4118
4118
  */
4119
4119
  "translate-y": [{
4120
- "translate-y": [Y]
4120
+ "translate-y": [Z]
4121
4121
  }],
4122
4122
  /**
4123
4123
  * Skew X
@@ -4473,15 +4473,15 @@ function vo() {
4473
4473
  }
4474
4474
  };
4475
4475
  }
4476
- const re = /* @__PURE__ */ Xs(vo);
4477
- function bo() {
4476
+ const G = /* @__PURE__ */ eo(xo);
4477
+ function Co() {
4478
4478
  return Math.floor(Math.random() * 1e7);
4479
4479
  }
4480
- const Dt = (e, r, n, t, s) => {
4480
+ const Bt = (e, r, n, t, s) => {
4481
4481
  const o = `preflight ${n}`;
4482
4482
  return {
4483
4483
  settings: /* @__PURE__ */ i.jsx(
4484
- fs,
4484
+ hs,
4485
4485
  {
4486
4486
  width: e,
4487
4487
  height: r,
@@ -4491,7 +4491,7 @@ const Dt = (e, r, n, t, s) => {
4491
4491
  }
4492
4492
  ),
4493
4493
  questionCircle: /* @__PURE__ */ i.jsx(
4494
- cs,
4494
+ fs,
4495
4495
  {
4496
4496
  width: e,
4497
4497
  height: r,
@@ -4501,7 +4501,7 @@ const Dt = (e, r, n, t, s) => {
4501
4501
  }
4502
4502
  ),
4503
4503
  notifications: /* @__PURE__ */ i.jsx(
4504
- as,
4504
+ ls,
4505
4505
  {
4506
4506
  width: e,
4507
4507
  height: r,
@@ -4511,7 +4511,7 @@ const Dt = (e, r, n, t, s) => {
4511
4511
  }
4512
4512
  ),
4513
4513
  flag: /* @__PURE__ */ i.jsx(
4514
- ss,
4514
+ as,
4515
4515
  {
4516
4516
  width: e,
4517
4517
  height: r,
@@ -4521,7 +4521,7 @@ const Dt = (e, r, n, t, s) => {
4521
4521
  }
4522
4522
  ),
4523
4523
  edit: /* @__PURE__ */ i.jsx(
4524
- ts,
4524
+ ss,
4525
4525
  {
4526
4526
  width: e,
4527
4527
  height: r,
@@ -4531,7 +4531,7 @@ const Dt = (e, r, n, t, s) => {
4531
4531
  }
4532
4532
  ),
4533
4533
  infoCircle: /* @__PURE__ */ i.jsx(
4534
- Nt,
4534
+ At,
4535
4535
  {
4536
4536
  width: e,
4537
4537
  height: r,
@@ -4541,7 +4541,7 @@ const Dt = (e, r, n, t, s) => {
4541
4541
  }
4542
4542
  ),
4543
4543
  delete: /* @__PURE__ */ i.jsx(
4544
- bs,
4544
+ Cs,
4545
4545
  {
4546
4546
  width: e,
4547
4547
  height: r,
@@ -4551,7 +4551,7 @@ const Dt = (e, r, n, t, s) => {
4551
4551
  }
4552
4552
  ),
4553
4553
  resourceCenter: /* @__PURE__ */ i.jsx(
4554
- Ss,
4554
+ Rs,
4555
4555
  {
4556
4556
  width: e,
4557
4557
  height: r,
@@ -4561,7 +4561,7 @@ const Dt = (e, r, n, t, s) => {
4561
4561
  }
4562
4562
  ),
4563
4563
  search: /* @__PURE__ */ i.jsx(
4564
- Ts,
4564
+ Ss,
4565
4565
  {
4566
4566
  width: e,
4567
4567
  height: r,
@@ -4571,7 +4571,7 @@ const Dt = (e, r, n, t, s) => {
4571
4571
  }
4572
4572
  ),
4573
4573
  error: /* @__PURE__ */ i.jsx(
4574
- Pt,
4574
+ Ot,
4575
4575
  {
4576
4576
  width: e,
4577
4577
  height: r,
@@ -4581,7 +4581,7 @@ const Dt = (e, r, n, t, s) => {
4581
4581
  }
4582
4582
  ),
4583
4583
  warning: /* @__PURE__ */ i.jsx(
4584
- At,
4584
+ Ft,
4585
4585
  {
4586
4586
  width: e,
4587
4587
  height: r,
@@ -4591,7 +4591,7 @@ const Dt = (e, r, n, t, s) => {
4591
4591
  }
4592
4592
  ),
4593
4593
  dropdown: /* @__PURE__ */ i.jsx(
4594
- Cs,
4594
+ ks,
4595
4595
  {
4596
4596
  width: e,
4597
4597
  height: r,
@@ -4601,7 +4601,7 @@ const Dt = (e, r, n, t, s) => {
4601
4601
  }
4602
4602
  ),
4603
4603
  calendar: /* @__PURE__ */ i.jsx(
4604
- ks,
4604
+ js,
4605
4605
  {
4606
4606
  width: e,
4607
4607
  height: r,
@@ -4611,7 +4611,7 @@ const Dt = (e, r, n, t, s) => {
4611
4611
  }
4612
4612
  ),
4613
4613
  bookmark: /* @__PURE__ */ i.jsx(
4614
- js,
4614
+ Ls,
4615
4615
  {
4616
4616
  width: e,
4617
4617
  height: r,
@@ -4621,7 +4621,7 @@ const Dt = (e, r, n, t, s) => {
4621
4621
  }
4622
4622
  ),
4623
4623
  menu: /* @__PURE__ */ i.jsx(
4624
- Rs,
4624
+ Ps,
4625
4625
  {
4626
4626
  width: e,
4627
4627
  height: r,
@@ -4631,7 +4631,7 @@ const Dt = (e, r, n, t, s) => {
4631
4631
  }
4632
4632
  ),
4633
4633
  add: /* @__PURE__ */ i.jsx(
4634
- Ps,
4634
+ Os,
4635
4635
  {
4636
4636
  width: e,
4637
4637
  height: r,
@@ -4641,7 +4641,7 @@ const Dt = (e, r, n, t, s) => {
4641
4641
  }
4642
4642
  ),
4643
4643
  exclude: /* @__PURE__ */ i.jsx(
4644
- gs,
4644
+ bs,
4645
4645
  {
4646
4646
  width: e,
4647
4647
  height: r,
@@ -4651,7 +4651,7 @@ const Dt = (e, r, n, t, s) => {
4651
4651
  }
4652
4652
  ),
4653
4653
  email: /* @__PURE__ */ i.jsx(
4654
- hs,
4654
+ gs,
4655
4655
  {
4656
4656
  width: e,
4657
4657
  height: r,
@@ -4661,7 +4661,7 @@ const Dt = (e, r, n, t, s) => {
4661
4661
  }
4662
4662
  ),
4663
4663
  close: /* @__PURE__ */ i.jsx(
4664
- es,
4664
+ ts,
4665
4665
  {
4666
4666
  width: e,
4667
4667
  height: r,
@@ -4671,7 +4671,7 @@ const Dt = (e, r, n, t, s) => {
4671
4671
  }
4672
4672
  ),
4673
4673
  checkCircle: /* @__PURE__ */ i.jsx(
4674
- Rt,
4674
+ Pt,
4675
4675
  {
4676
4676
  width: e,
4677
4677
  height: r,
@@ -4681,7 +4681,7 @@ const Dt = (e, r, n, t, s) => {
4681
4681
  }
4682
4682
  ),
4683
4683
  linkNewTab: /* @__PURE__ */ i.jsx(
4684
- Os,
4684
+ Ws,
4685
4685
  {
4686
4686
  width: e,
4687
4687
  height: r,
@@ -4691,11 +4691,11 @@ const Dt = (e, r, n, t, s) => {
4691
4691
  }
4692
4692
  )
4693
4693
  };
4694
- }, Ht = (e, r, n, t, s) => {
4694
+ }, zt = (e, r, n, t, s) => {
4695
4695
  const o = `preflight ${n}`;
4696
4696
  return {
4697
4697
  notifications: /* @__PURE__ */ i.jsx(
4698
- ls,
4698
+ cs,
4699
4699
  {
4700
4700
  width: e,
4701
4701
  height: r,
@@ -4705,7 +4705,7 @@ const Dt = (e, r, n, t, s) => {
4705
4705
  }
4706
4706
  ),
4707
4707
  resourceCenter: /* @__PURE__ */ i.jsx(
4708
- _s,
4708
+ Vs,
4709
4709
  {
4710
4710
  width: e,
4711
4711
  height: r,
@@ -4715,7 +4715,7 @@ const Dt = (e, r, n, t, s) => {
4715
4715
  }
4716
4716
  ),
4717
4717
  bookmark: /* @__PURE__ */ i.jsx(
4718
- Ls,
4718
+ Ms,
4719
4719
  {
4720
4720
  width: e,
4721
4721
  height: r,
@@ -4725,7 +4725,7 @@ const Dt = (e, r, n, t, s) => {
4725
4725
  }
4726
4726
  )
4727
4727
  };
4728
- }, xo = ({
4728
+ }, wo = ({
4729
4729
  size: e = "small",
4730
4730
  name: r,
4731
4731
  hasIndicator: n = !1,
@@ -4742,13 +4742,13 @@ const Dt = (e, r, n, t, s) => {
4742
4742
  width: "24",
4743
4743
  height: "24"
4744
4744
  }
4745
- }, d = Dt(
4745
+ }, d = Bt(
4746
4746
  a[e].width,
4747
4747
  a[e].height,
4748
4748
  t,
4749
4749
  s,
4750
4750
  o
4751
- ), c = Ht(
4751
+ ), c = zt(
4752
4752
  a[e].width,
4753
4753
  a[e].height,
4754
4754
  t,
@@ -4756,14 +4756,14 @@ const Dt = (e, r, n, t, s) => {
4756
4756
  o
4757
4757
  ), u = n && c[r] || d[r];
4758
4758
  return /* @__PURE__ */ i.jsx(i.Fragment, { children: u });
4759
- }, Ve = xo;
4760
- Object.keys(Dt()).sort(
4759
+ }, Ve = wo;
4760
+ Object.keys(Bt()).sort(
4761
4761
  (e, r) => e.localeCompare(r)
4762
4762
  );
4763
- Object.keys(Ht()).sort(
4763
+ Object.keys(zt()).sort(
4764
4764
  (e, r) => e.localeCompare(r)
4765
4765
  );
4766
- function Bt(e) {
4766
+ function Ut(e) {
4767
4767
  var r, n, t = "";
4768
4768
  if (typeof e == "string" || typeof e == "number")
4769
4769
  t += e;
@@ -4771,18 +4771,18 @@ function Bt(e) {
4771
4771
  if (Array.isArray(e)) {
4772
4772
  var s = e.length;
4773
4773
  for (r = 0; r < s; r++)
4774
- e[r] && (n = Bt(e[r])) && (t && (t += " "), t += n);
4774
+ e[r] && (n = Ut(e[r])) && (t && (t += " "), t += n);
4775
4775
  } else
4776
4776
  for (n in e)
4777
4777
  e[n] && (t && (t += " "), t += n);
4778
4778
  return t;
4779
4779
  }
4780
- function Co() {
4780
+ function ko() {
4781
4781
  for (var e, r, n = 0, t = "", s = arguments.length; n < s; n++)
4782
- (e = arguments[n]) && (r = Bt(e)) && (t && (t += " "), t += r);
4782
+ (e = arguments[n]) && (r = Ut(e)) && (t && (t += " "), t += r);
4783
4783
  return t;
4784
4784
  }
4785
- const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4785
+ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
4786
4786
  if (r) {
4787
4787
  e.preventDefault();
4788
4788
  return;
@@ -4794,7 +4794,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4794
4794
  return;
4795
4795
  }
4796
4796
  n(e);
4797
- }, wo = H(
4797
+ }, yo = I(
4798
4798
  [
4799
4799
  "preflight",
4800
4800
  "!ds-font-sans",
@@ -4855,7 +4855,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4855
4855
  }
4856
4856
  ]
4857
4857
  }
4858
- ), ko = ({
4858
+ ), jo = ({
4859
4859
  variant: e = "default",
4860
4860
  label: r = "",
4861
4861
  disabled: n = !1,
@@ -4871,10 +4871,10 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4871
4871
  }) => /* @__PURE__ */ i.jsxs(
4872
4872
  "button",
4873
4873
  {
4874
- onClick: (g) => jr(g, n, s),
4874
+ onClick: (m) => jr(m, n, s),
4875
4875
  "aria-disabled": n,
4876
4876
  "aria-label": r,
4877
- className: Vr(wo({ variant: e, isTransparent: u, disabled: n }), t),
4877
+ className: Vr(yo({ variant: e, isTransparent: u, disabled: n }), t),
4878
4878
  ...p,
4879
4879
  children: [
4880
4880
  /* @__PURE__ */ i.jsx(
@@ -4897,7 +4897,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4897
4897
  )
4898
4898
  ]
4899
4899
  }
4900
- ), Kr = ko, yo = H(
4900
+ ), Kr = jo, Eo = I(
4901
4901
  [
4902
4902
  "preflight",
4903
4903
  "ds-flex",
@@ -4921,7 +4921,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4921
4921
  }
4922
4922
  }
4923
4923
  }
4924
- ), jo = (e) => re(yo(e)), Eo = H("", {
4924
+ ), Lo = (e) => G(Eo(e)), $o = I("", {
4925
4925
  variants: {
4926
4926
  variant: {
4927
4927
  success: "ds-text-success-green-dark",
@@ -4930,7 +4930,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4930
4930
  error: "ds-text-danger-red-dark"
4931
4931
  }
4932
4932
  }
4933
- }), jt = (e) => re(Eo(e)), Lo = H("", {
4933
+ }), Lt = (e) => G($o(e)), Mo = I("", {
4934
4934
  variants: {
4935
4935
  variant: {
4936
4936
  success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
@@ -4939,7 +4939,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4939
4939
  error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
4940
4940
  }
4941
4941
  }
4942
- }), ze = (e) => re(Lo(e)), $o = ({
4942
+ }), ze = (e) => G(Mo(e)), To = ({
4943
4943
  variant: e = "info",
4944
4944
  isDismissible: r = !0,
4945
4945
  showIcon: n = !0,
@@ -4948,17 +4948,17 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4948
4948
  description: o = "",
4949
4949
  content: a = void 0,
4950
4950
  closeAriaLabel: d = "Close button",
4951
- id: c = "alert_" + bo().toString(),
4951
+ id: c = "alert_" + Co().toString(),
4952
4952
  handleClose: u,
4953
4953
  ...f
4954
4954
  }) => {
4955
4955
  const p = {
4956
- success: /* @__PURE__ */ i.jsx(Rt, { className: ze({ variant: e }) }),
4957
- info: /* @__PURE__ */ i.jsx(Nt, { className: ze({ variant: e }) }),
4958
- warning: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
4959
- error: /* @__PURE__ */ i.jsx(Pt, { className: ze({ variant: e }) })
4960
- }, g = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), v = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
4961
- return /* @__PURE__ */ i.jsxs("div", { id: c, className: jo({ variant: e }), ...f, children: [
4956
+ success: /* @__PURE__ */ i.jsx(Pt, { className: ze({ variant: e }) }),
4957
+ info: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
4958
+ warning: /* @__PURE__ */ i.jsx(Ft, { className: ze({ variant: e }) }),
4959
+ error: /* @__PURE__ */ i.jsx(Ot, { className: ze({ variant: e }) })
4960
+ }, m = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), v = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
4961
+ return /* @__PURE__ */ i.jsxs("div", { id: c, className: Lo({ variant: e }), ...f, children: [
4962
4962
  /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
4963
4963
  n && /* @__PURE__ */ i.jsx(
4964
4964
  "div",
@@ -4980,7 +4980,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
4980
4980
  children: s
4981
4981
  }
4982
4982
  ),
4983
- /* @__PURE__ */ i.jsxs("div", { className: jt({ variant: e }), children: [
4983
+ /* @__PURE__ */ i.jsxs("div", { className: Lt({ variant: e }), children: [
4984
4984
  t !== "none" && s !== "" && /* @__PURE__ */ i.jsx(
4985
4985
  "span",
4986
4986
  {
@@ -5000,7 +5000,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5000
5000
  a && /* @__PURE__ */ i.jsx(
5001
5001
  "div",
5002
5002
  {
5003
- className: `${jt({ variant: e })} ${g() ? "ds-mt-3" : ""}`,
5003
+ className: `${Lt({ variant: e })} ${m() ? "ds-mt-3" : ""}`,
5004
5004
  children: a
5005
5005
  }
5006
5006
  )
@@ -5022,7 +5022,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5022
5022
  }
5023
5023
  ) })
5024
5024
  ] });
5025
- }, Xi = $o, Ut = [
5025
+ }, cl = To, Yt = [
5026
5026
  "preflight",
5027
5027
  // Need to specify the font because disabling preflight makes the button not inherit the font
5028
5028
  // Lato is defined as font-sans in our tailwind theme configuration
@@ -5039,7 +5039,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5039
5039
  "focus-visible:ds-ring-2",
5040
5040
  "focus-visible:ds-outline-none",
5041
5041
  "focus-visible:ds-ring-offset-2"
5042
- ], To = [
5042
+ ], So = [
5043
5043
  "!ds-bg-neutrals-lighter",
5044
5044
  "!ds-text-neutrals-dark",
5045
5045
  "!ds-border-neutrals-light",
@@ -5049,8 +5049,8 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5049
5049
  "!hover:ds-text-neutrals-dark",
5050
5050
  "!focus-visible:ds-ring-neutrals-black",
5051
5051
  "!focus-visible:ds-border-neutrals-light"
5052
- ], Mo = [
5053
- ...Ut,
5052
+ ], No = [
5053
+ ...Yt,
5054
5054
  "ds-p-1",
5055
5055
  "!ds-bg-neutrals-lighter",
5056
5056
  "!ds-text-neutrals-dark",
@@ -5060,7 +5060,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5060
5060
  "focus-visible:ds-ring-neutrals-black",
5061
5061
  "!focus-visible:ds-border-neutrals-light",
5062
5062
  "active:ds-border-neutrals-lighter"
5063
- ], So = H(Ut, {
5063
+ ], Ro = I(Yt, {
5064
5064
  variants: {
5065
5065
  variant: {
5066
5066
  primary: [
@@ -5126,7 +5126,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5126
5126
  ]
5127
5127
  },
5128
5128
  disabled: {
5129
- true: To,
5129
+ true: So,
5130
5130
  false: []
5131
5131
  }
5132
5132
  },
@@ -5147,7 +5147,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5147
5147
  class: "focus-visible:ds-ring-neutrals-black"
5148
5148
  }
5149
5149
  ]
5150
- }), No = (e, r, n) => e === "inline" && r === !0 ? Vr(Mo) : Vr(So({ variant: e, disabled: r }), n), Ro = ({
5150
+ }), Ao = (e, r, n) => e === "inline" && r === !0 ? Vr(No) : Vr(Ro({ variant: e, disabled: r }), n), Po = ({
5151
5151
  variant: e = "primary",
5152
5152
  text: r,
5153
5153
  label: n = "",
@@ -5164,7 +5164,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5164
5164
  {
5165
5165
  "aria-disabled": t,
5166
5166
  onClick: (p) => jr(p, t, o),
5167
- className: No(e, t, s),
5167
+ className: Ao(e, t, s),
5168
5168
  "aria-label": n,
5169
5169
  ...f,
5170
5170
  children: /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-wrap ds-content-center ds-justify-center", children: [
@@ -5191,7 +5191,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5191
5191
  )
5192
5192
  ] })
5193
5193
  }
5194
- ) }), Qi = Ro, Ao = ({
5194
+ ) }), ul = Po, Fo = ({
5195
5195
  content: e = void 0,
5196
5196
  iconName: r = void 0,
5197
5197
  title: n = "",
@@ -5202,7 +5202,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5202
5202
  "div",
5203
5203
  {
5204
5204
  ...o,
5205
- className: re(
5205
+ className: G(
5206
5206
  "preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
5207
5207
  s
5208
5208
  ),
@@ -5218,13 +5218,13 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5218
5218
  altText: r
5219
5219
  }
5220
5220
  ),
5221
- /* @__PURE__ */ i.jsx(Zt, { size: "small", text: n, hasMarginBottom: !1 })
5221
+ /* @__PURE__ */ i.jsx(Kt, { size: "small", text: n, hasMarginBottom: !1 })
5222
5222
  ] }),
5223
5223
  e && /* @__PURE__ */ i.jsx("div", { className: "ds-text-base", children: e }),
5224
5224
  t && /* @__PURE__ */ i.jsx("div", { children: t })
5225
5225
  ]
5226
5226
  }
5227
- ), el = Ao, Po = H(
5227
+ ), fl = Fo, Oo = I(
5228
5228
  [
5229
5229
  "preflight",
5230
5230
  "ds-h-4",
@@ -5252,7 +5252,7 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5252
5252
  }
5253
5253
  }
5254
5254
  }
5255
- ), Gt = (e) => re(Po(e)), Fo = H(
5255
+ ), Zt = (e) => G(Oo(e)), _o = I(
5256
5256
  ["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
5257
5257
  {
5258
5258
  variants: {
@@ -5262,7 +5262,46 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5262
5262
  }
5263
5263
  }
5264
5264
  }
5265
- ), Yt = (e) => re(Fo(e)), Oo = ({
5265
+ ), qt = (e) => G(_o(e)), Jr = {
5266
+ variants: {
5267
+ state: {
5268
+ default: [
5269
+ "ds-border-neutrals",
5270
+ "ds-text-neutrals-darker",
5271
+ "focus:ds-border-acuity-blue",
5272
+ "focus:ds-ring-acuity-blue",
5273
+ "focus:ds-ring-offset-2",
5274
+ "focus:ds-ring-2"
5275
+ ],
5276
+ error: [
5277
+ "ds-border-danger-red",
5278
+ "ds-text-danger-red-darkest",
5279
+ "focus:ds-border-danger-red",
5280
+ "focus:ds-ring-danger-red-dark",
5281
+ "focus:ds-ring-offset-2",
5282
+ "focus:ds-ring-2"
5283
+ ],
5284
+ success: [
5285
+ "ds-border-success-green",
5286
+ "ds-text-neutrals-darker",
5287
+ "focus:ds-border-success-green",
5288
+ "focus:ds-ring-success-green-dark",
5289
+ "focus:ds-ring-offset-2",
5290
+ "focus:ds-ring-2"
5291
+ ]
5292
+ },
5293
+ disabled: {
5294
+ true: [
5295
+ "!ds-border-neutrals",
5296
+ "!ds-text-neutrals-darker",
5297
+ "!ds-bg-neutrals-lighter",
5298
+ "focus:!ds-border-neutrals",
5299
+ "focus:!ds-ring-neutrals-dark",
5300
+ "ds-cursor-not-allowed"
5301
+ ]
5302
+ }
5303
+ }
5304
+ }, Wo = ({
5266
5305
  id: e,
5267
5306
  label: r = "",
5268
5307
  name: n = "",
@@ -5282,25 +5321,25 @@ const Vr = (...e) => re(Co(...e)), zt = (e, r, n) => {
5282
5321
  name: n,
5283
5322
  "aria-disabled": s,
5284
5323
  type: "checkbox",
5285
- className: `ds-form-checkbox ${Gt({ disabled: s })} ds-rounded`,
5324
+ className: `ds-form-checkbox ${Zt({ disabled: s })} ds-rounded`,
5286
5325
  checked: t,
5287
5326
  ref: (u) => u && (u.indeterminate = o),
5288
5327
  onClick: (u) => jr(u, s, d),
5289
- onChange: (u) => zt(u, s, a),
5328
+ onChange: (u) => Gt(u, s, a),
5290
5329
  ...c
5291
5330
  }
5292
5331
  ),
5293
- /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Yt({ disabled: s }), children: r })
5294
- ] }), rl = Oo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Et = "h1", Wo = "h2", _o = "h3", Io = "div";
5295
- function Vo(e) {
5332
+ /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: qt({ disabled: s }), children: r })
5333
+ ] }), pl = Wo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", $t = "h1", Io = "h2", Vo = "h3", Do = "div";
5334
+ function Ho(e) {
5296
5335
  return {
5297
- [De]: Et,
5298
- [Ye]: Wo,
5299
- [Ze]: _o,
5300
- [qe]: Io
5301
- }[e] || Et;
5336
+ [De]: $t,
5337
+ [Ye]: Io,
5338
+ [Ze]: Vo,
5339
+ [qe]: Do
5340
+ }[e] || $t;
5302
5341
  }
5303
- const Do = H("preflight !ds-font-sans", {
5342
+ const Bo = I("preflight !ds-font-sans", {
5304
5343
  variants: {
5305
5344
  size: {
5306
5345
  [Ze]: "ds-mb-3",
@@ -5309,7 +5348,7 @@ const Do = H("preflight !ds-font-sans", {
5309
5348
  [qe]: "ds-mb-6"
5310
5349
  }
5311
5350
  }
5312
- }), vr = H("ds-text-neutrals-darker !ds-font-sans", {
5351
+ }), vr = I("ds-text-neutrals-darker !ds-font-sans", {
5313
5352
  variants: {
5314
5353
  size: {
5315
5354
  [Ze]: "ds-text-xl ds-font-semibold",
@@ -5318,7 +5357,7 @@ const Do = H("preflight !ds-font-sans", {
5318
5357
  [qe]: "ds-text-4xl ds-font-semibold"
5319
5358
  }
5320
5359
  }
5321
- }), Ho = H("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
5360
+ }), zo = I("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
5322
5361
  variants: {
5323
5362
  size: {
5324
5363
  [Ze]: "ds-mb-1 ds-text-sm",
@@ -5327,7 +5366,7 @@ const Do = H("preflight !ds-font-sans", {
5327
5366
  [qe]: "ds-mb-3 ds-text-base"
5328
5367
  }
5329
5368
  }
5330
- }), Bo = H("ds-mb-0 ds-text-neutrals-dark", {
5369
+ }), Uo = I("ds-mb-0 ds-text-neutrals-dark", {
5331
5370
  variants: {
5332
5371
  size: {
5333
5372
  [Ze]: "ds-mt-1 ds-text-base",
@@ -5336,7 +5375,7 @@ const Do = H("preflight !ds-font-sans", {
5336
5375
  [qe]: "ds-mt-3 ds-text-base"
5337
5376
  }
5338
5377
  }
5339
- }), zo = H("ds-text-neutrals-light", {
5378
+ }), Go = I("ds-text-neutrals-light", {
5340
5379
  variants: {
5341
5380
  size: {
5342
5381
  [Ze]: "ds-mt-2",
@@ -5345,7 +5384,7 @@ const Do = H("preflight !ds-font-sans", {
5345
5384
  [qe]: "ds-mt-3"
5346
5385
  }
5347
5386
  }
5348
- }), Uo = ({
5387
+ }), Yo = ({
5349
5388
  size: e = De,
5350
5389
  className: r = "",
5351
5390
  text: n = "",
@@ -5356,19 +5395,19 @@ const Do = H("preflight !ds-font-sans", {
5356
5395
  headingTag: d,
5357
5396
  ...c
5358
5397
  }) => {
5359
- const u = t ? /* @__PURE__ */ i.jsx("p", { className: Ho({ size: e }), children: t }) : null, f = s ? /* @__PURE__ */ i.jsx("p", { className: Bo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: zo({ size: e }) }) : null, g = a ? Do({ size: e }) : "preflight", v = {
5398
+ const u = t ? /* @__PURE__ */ i.jsx("p", { className: zo({ size: e }), children: t }) : null, f = s ? /* @__PURE__ */ i.jsx("p", { className: Uo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Go({ size: e }) }) : null, m = a ? Bo({ size: e }) : "preflight", v = {
5360
5399
  div: /* @__PURE__ */ i.jsx("div", { className: vr({ size: e }), children: n }),
5361
5400
  h3: /* @__PURE__ */ i.jsx("h3", { className: vr({ size: e }), children: n }),
5362
5401
  h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
5363
5402
  h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
5364
5403
  };
5365
- return /* @__PURE__ */ i.jsxs("div", { className: re(g, r), ...c, children: [
5404
+ return /* @__PURE__ */ i.jsxs("div", { className: G(m, r), ...c, children: [
5366
5405
  u,
5367
- v[d || Vo(e)],
5406
+ v[d || Ho(e)],
5368
5407
  f,
5369
5408
  p
5370
5409
  ] });
5371
- }, Zt = Uo, Go = ({
5410
+ }, Kt = Yo, Zo = ({
5372
5411
  label: e = "",
5373
5412
  name: r,
5374
5413
  id: n,
@@ -5385,15 +5424,15 @@ const Do = H("preflight !ds-font-sans", {
5385
5424
  id: n,
5386
5425
  name: r,
5387
5426
  type: "radio",
5388
- className: `ds-form-radio ${Gt({ disabled: t })}`,
5427
+ className: `ds-form-radio ${Zt({ disabled: t })}`,
5389
5428
  "aria-disabled": t,
5390
- onChange: (d) => zt(d, t, s),
5429
+ onChange: (d) => Gt(d, t, s),
5391
5430
  onClick: (d) => jr(d, t, o),
5392
5431
  ...a
5393
5432
  }
5394
5433
  ),
5395
- /* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Yt({ disabled: t }), children: e })
5396
- ] }), tl = Go, Yo = H(
5434
+ /* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
5435
+ ] }), hl = Zo, qo = I(
5397
5436
  [
5398
5437
  "preflight",
5399
5438
  "!ds-font-sans",
@@ -5426,18 +5465,18 @@ const Do = H("preflight !ds-font-sans", {
5426
5465
  }
5427
5466
  }
5428
5467
  }
5429
- ), Zo = ({
5468
+ ), Ko = ({
5430
5469
  text: e,
5431
5470
  href: r,
5432
5471
  type: n = "default",
5433
5472
  iconName: t,
5434
5473
  ...s
5435
- }) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: re(Yo({ type: n })), ...s, children: [
5474
+ }) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: G(qo({ type: n })), ...s, children: [
5436
5475
  e,
5437
5476
  t && /* @__PURE__ */ i.jsx(Ve, { altText: e, name: t, size: "small" })
5438
- ] }), nl = Zo;
5439
- var qo = Object.defineProperty, Ko = (e, r, n) => r in e ? qo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Ko(e, typeof r != "symbol" ? r + "" : r, n), n);
5440
- let Jo = class {
5477
+ ] }), ml = Ko;
5478
+ var Jo = Object.defineProperty, Xo = (e, r, n) => r in e ? Jo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Xo(e, typeof r != "symbol" ? r + "" : r, n), n);
5479
+ let Qo = class {
5441
5480
  constructor() {
5442
5481
  Pr(this, "current", this.detect()), Pr(this, "handoffState", "pending"), Pr(this, "currentId", 0);
5443
5482
  }
@@ -5465,8 +5504,8 @@ let Jo = class {
5465
5504
  get isHandoffComplete() {
5466
5505
  return this.handoffState === "complete";
5467
5506
  }
5468
- }, Ie = new Jo();
5469
- function Jr(e) {
5507
+ }, Ie = new Qo();
5508
+ function Xr(e) {
5470
5509
  return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
5471
5510
  }
5472
5511
  function Er(e) {
@@ -5513,25 +5552,25 @@ function Oe() {
5513
5552
  } };
5514
5553
  return r;
5515
5554
  }
5516
- function Xr() {
5555
+ function Qr() {
5517
5556
  let [e] = ge(Oe);
5518
5557
  return oe(() => () => e.dispose(), [e]), e;
5519
5558
  }
5520
- let q = (e, r) => {
5521
- Ie.isServer ? oe(e, r) : In(e, r);
5559
+ let K = (e, r) => {
5560
+ Ie.isServer ? oe(e, r) : Dn(e, r);
5522
5561
  };
5523
5562
  function Ce(e) {
5524
5563
  let r = R(e);
5525
- return q(() => {
5564
+ return K(() => {
5526
5565
  r.current = e;
5527
5566
  }, [e]), r;
5528
5567
  }
5529
5568
  let P = function(e) {
5530
5569
  let r = Ce(e);
5531
- return j.useCallback((...n) => r.current(...n), [r]);
5532
- }, Xo = ce(void 0);
5533
- function Qo() {
5534
- return ee(Xo);
5570
+ return k.useCallback((...n) => r.current(...n), [r]);
5571
+ }, ea = ce(void 0);
5572
+ function ra() {
5573
+ return re(ea);
5535
5574
  }
5536
5575
  function ar(...e) {
5537
5576
  return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
@@ -5546,8 +5585,8 @@ function z(e, r, ...n) {
5546
5585
  }
5547
5586
  var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Fe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Fe || {});
5548
5587
  function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: d }) {
5549
- d = d != null ? d : ea;
5550
- let c = qt(r, e);
5588
+ d = d != null ? d : ta;
5589
+ let c = Jt(r, e);
5551
5590
  if (o)
5552
5591
  return br(c, n, t, a, d);
5553
5592
  let u = s != null ? s : 0;
@@ -5571,37 +5610,37 @@ function br(e, r = {}, n, t, s) {
5571
5610
  "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(r)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
5572
5611
  let p = {};
5573
5612
  if (r) {
5574
- let g = !1, v = [];
5613
+ let m = !1, v = [];
5575
5614
  for (let [x, C] of Object.entries(r))
5576
- typeof C == "boolean" && (g = !0), C === !0 && v.push(x.replace(/([A-Z])/g, (b) => `-${b.toLowerCase()}`));
5577
- if (g) {
5615
+ typeof C == "boolean" && (m = !0), C === !0 && v.push(x.replace(/([A-Z])/g, (b) => `-${b.toLowerCase()}`));
5616
+ if (m) {
5578
5617
  p["data-headlessui-state"] = v.join(" ");
5579
5618
  for (let x of v)
5580
5619
  p[`data-${x}`] = "";
5581
5620
  }
5582
5621
  }
5583
5622
  if (o === de && (Object.keys(Ue(c)).length > 0 || Object.keys(Ue(p)).length > 0))
5584
- if (!Dn(f) || Array.isArray(f) && f.length > 1) {
5623
+ if (!Bn(f) || Array.isArray(f) && f.length > 1) {
5585
5624
  if (Object.keys(Ue(c)).length > 0)
5586
- throw new Error(['Passing props on "Fragment"!', "", `The current component <${t} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ue(c)).concat(Object.keys(Ue(p))).map((g) => ` - ${g}`).join(`
5587
- `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
5625
+ throw new Error(['Passing props on "Fragment"!', "", `The current component <${t} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Ue(c)).concat(Object.keys(Ue(p))).map((m) => ` - ${m}`).join(`
5626
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
5588
5627
  `)].join(`
5589
5628
  `));
5590
5629
  } else {
5591
- let g = f.props, v = g == null ? void 0 : g.className, x = typeof v == "function" ? (...w) => ar(v(...w), c.className) : ar(v, c.className), C = x ? { className: x } : {}, b = qt(f.props, Ue(Fr(c, ["ref"])));
5630
+ let m = f.props, v = m == null ? void 0 : m.className, x = typeof v == "function" ? (...w) => ar(v(...w), c.className) : ar(v, c.className), C = x ? { className: x } : {}, b = Jt(f.props, Ue(Fr(c, ["ref"])));
5592
5631
  for (let w in p)
5593
5632
  w in b && delete p[w];
5594
- return Hn(f, Object.assign({}, b, p, u, { ref: s(f.ref, u.ref) }, C));
5633
+ return zn(f, Object.assign({}, b, p, u, { ref: s(f.ref, u.ref) }, C));
5595
5634
  }
5596
- return Bn(o, Object.assign({}, Fr(c, ["ref"]), o !== de && u, o !== de && p), f);
5635
+ return Un(o, Object.assign({}, Fr(c, ["ref"]), o !== de && u, o !== de && p), f);
5597
5636
  }
5598
- function ea(...e) {
5637
+ function ta(...e) {
5599
5638
  return e.every((r) => r == null) ? void 0 : (r) => {
5600
5639
  for (let n of e)
5601
5640
  n != null && (typeof n == "function" ? n(r) : n.current = r);
5602
5641
  };
5603
5642
  }
5604
- function qt(...e) {
5643
+ function Jt(...e) {
5605
5644
  if (e.length === 0)
5606
5645
  return {};
5607
5646
  if (e.length === 1)
@@ -5629,7 +5668,7 @@ function qt(...e) {
5629
5668
  }
5630
5669
  function ue(e) {
5631
5670
  var r;
5632
- return Object.assign(Vn(e), { displayName: (r = e.displayName) != null ? r : e.name });
5671
+ return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
5633
5672
  }
5634
5673
  function Ue(e) {
5635
5674
  let r = Object.assign({}, e);
@@ -5643,24 +5682,24 @@ function Fr(e, r = []) {
5643
5682
  t in n && delete n[t];
5644
5683
  return n;
5645
5684
  }
5646
- let ra = "div";
5685
+ let na = "div";
5647
5686
  var wr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(wr || {});
5648
- function ta(e, r) {
5687
+ function sa(e, r) {
5649
5688
  var n;
5650
5689
  let { features: t = 1, ...s } = e, o = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (t & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
5651
- return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag: ra, name: "Hidden" });
5690
+ return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag: na, name: "Hidden" });
5652
5691
  }
5653
- let Dr = ue(ta), na = ce(null);
5654
- function sa({ children: e }) {
5655
- let r = ee(na);
5692
+ let Dr = ue(sa), oa = ce(null);
5693
+ function aa({ children: e }) {
5694
+ let r = re(oa);
5656
5695
  if (!r)
5657
- return j.createElement(j.Fragment, null, e);
5696
+ return k.createElement(k.Fragment, null, e);
5658
5697
  let { target: n } = r;
5659
- return n ? St(j.createElement(j.Fragment, null, e), n) : null;
5698
+ return n ? Rt(k.createElement(k.Fragment, null, e), n) : null;
5660
5699
  }
5661
- let Kt = Symbol();
5662
- function oa(e, r = !0) {
5663
- return Object.assign(e, { [Kt]: r });
5700
+ let Xt = Symbol();
5701
+ function ia(e, r = !0) {
5702
+ return Object.assign(e, { [Xt]: r });
5664
5703
  }
5665
5704
  function we(...e) {
5666
5705
  let r = R(e);
@@ -5671,49 +5710,49 @@ function we(...e) {
5671
5710
  for (let s of r.current)
5672
5711
  s != null && (typeof s == "function" ? s(t) : s.current = t);
5673
5712
  });
5674
- return e.every((t) => t == null || (t == null ? void 0 : t[Kt])) ? void 0 : n;
5713
+ return e.every((t) => t == null || (t == null ? void 0 : t[Xt])) ? void 0 : n;
5675
5714
  }
5676
- let Qr = ce(null);
5677
- Qr.displayName = "DescriptionContext";
5678
- function Jt() {
5679
- let e = ee(Qr);
5715
+ let et = ce(null);
5716
+ et.displayName = "DescriptionContext";
5717
+ function Qt() {
5718
+ let e = re(et);
5680
5719
  if (e === null) {
5681
5720
  let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
5682
- throw Error.captureStackTrace && Error.captureStackTrace(r, Jt), r;
5721
+ throw Error.captureStackTrace && Error.captureStackTrace(r, Qt), r;
5683
5722
  }
5684
5723
  return e;
5685
5724
  }
5686
- function aa() {
5725
+ function la() {
5687
5726
  let [e, r] = ge([]);
5688
5727
  return [e.length > 0 ? e.join(" ") : void 0, ae(() => function(n) {
5689
5728
  let t = P((o) => (r((a) => [...a, o]), () => r((a) => {
5690
5729
  let d = a.slice(), c = d.indexOf(o);
5691
5730
  return c !== -1 && d.splice(c, 1), d;
5692
5731
  }))), s = ae(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
5693
- return j.createElement(Qr.Provider, { value: s }, n.children);
5732
+ return k.createElement(et.Provider, { value: s }, n.children);
5694
5733
  }, [r])];
5695
5734
  }
5696
- let ia = "p";
5697
- function la(e, r) {
5698
- let n = yr(), t = Qo(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Jt(), d = we(r);
5699
- q(() => a.register(s), [s, a.register]);
5735
+ let da = "p";
5736
+ function ca(e, r) {
5737
+ let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Qt(), d = we(r);
5738
+ K(() => a.register(s), [s, a.register]);
5700
5739
  let c = t || !1, u = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), f = { ref: d, ...a.props, id: s };
5701
- return ve({ ourProps: f, theirProps: o, slot: u, defaultTag: ia, name: a.name || "Description" });
5740
+ return ve({ ourProps: f, theirProps: o, slot: u, defaultTag: da, name: a.name || "Description" });
5702
5741
  }
5703
- let da = ue(la), ca = Object.assign(da, {});
5704
- var Xt = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Xt || {});
5705
- let ua = ce(() => {
5742
+ let ua = ue(ca), fa = Object.assign(ua, {});
5743
+ var en = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(en || {});
5744
+ let pa = ce(() => {
5706
5745
  });
5707
- function fa({ value: e, children: r }) {
5708
- return j.createElement(ua.Provider, { value: e }, r);
5746
+ function ha({ value: e, children: r }) {
5747
+ return k.createElement(pa.Provider, { value: e }, r);
5709
5748
  }
5710
5749
  let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
5711
- function Lt(e) {
5750
+ function Mt(e) {
5712
5751
  var r;
5713
5752
  let n = (r = ir.get(e)) != null ? r : 0;
5714
- return ir.set(e, n + 1), n !== 0 ? () => $t(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => $t(e));
5753
+ return ir.set(e, n + 1), n !== 0 ? () => Tt(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Tt(e));
5715
5754
  }
5716
- function $t(e) {
5755
+ function Tt(e) {
5717
5756
  var r;
5718
5757
  let n = (r = ir.get(e)) != null ? r : 1;
5719
5758
  if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
@@ -5721,32 +5760,32 @@ function $t(e) {
5721
5760
  let t = Hr.get(e);
5722
5761
  t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Hr.delete(e));
5723
5762
  }
5724
- function pa({ allowed: e, disallowed: r } = {}, n = !0) {
5725
- q(() => {
5763
+ function ma({ allowed: e, disallowed: r } = {}, n = !0) {
5764
+ K(() => {
5726
5765
  var t, s;
5727
5766
  if (!n)
5728
5767
  return;
5729
5768
  let o = Oe();
5730
5769
  for (let d of (t = r == null ? void 0 : r()) != null ? t : [])
5731
- d && o.add(Lt(d));
5770
+ d && o.add(Mt(d));
5732
5771
  let a = (s = e == null ? void 0 : e()) != null ? s : [];
5733
5772
  for (let d of a) {
5734
5773
  if (!d)
5735
5774
  continue;
5736
- let c = Jr(d);
5775
+ let c = Xr(d);
5737
5776
  if (!c)
5738
5777
  continue;
5739
5778
  let u = d.parentElement;
5740
5779
  for (; u && u !== c.body; ) {
5741
5780
  for (let f of u.children)
5742
- a.some((p) => f.contains(p)) || o.add(Lt(f));
5781
+ a.some((p) => f.contains(p)) || o.add(Mt(f));
5743
5782
  u = u.parentElement;
5744
5783
  }
5745
5784
  }
5746
5785
  return o.dispose;
5747
5786
  }, [n, e, r]);
5748
5787
  }
5749
- function Qt(e, r, n = !0) {
5788
+ function rn(e, r, n = !0) {
5750
5789
  let t = Ce((s) => {
5751
5790
  let o = s.getBoundingClientRect();
5752
5791
  o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
@@ -5769,18 +5808,18 @@ function Qt(e, r, n = !0) {
5769
5808
  return () => o.dispose();
5770
5809
  }, [e, t, n]);
5771
5810
  }
5772
- let Br = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), ha = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
5773
- var Te = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Te || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), ma = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ma || {});
5774
- function ga(e = document.body) {
5811
+ let Br = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), ga = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
5812
+ var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), va = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(va || {});
5813
+ function ba(e = document.body) {
5775
5814
  return e == null ? [] : Array.from(e.querySelectorAll(Br)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
5776
5815
  }
5777
- function va(e = document.body) {
5778
- return e == null ? [] : Array.from(e.querySelectorAll(ha)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
5816
+ function xa(e = document.body) {
5817
+ return e == null ? [] : Array.from(e.querySelectorAll(ga)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
5779
5818
  }
5780
- var en = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(en || {});
5781
- function ba(e, r = 0) {
5819
+ var tn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(tn || {});
5820
+ function Ca(e, r = 0) {
5782
5821
  var n;
5783
- return e === ((n = Jr(e)) == null ? void 0 : n.body) ? !1 : z(r, { 0() {
5822
+ return e === ((n = Xr(e)) == null ? void 0 : n.body) ? !1 : z(r, { 0() {
5784
5823
  return e.matches(Br);
5785
5824
  }, 1() {
5786
5825
  let t = e;
@@ -5792,21 +5831,21 @@ function ba(e, r = 0) {
5792
5831
  return !1;
5793
5832
  } });
5794
5833
  }
5795
- var xa = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(xa || {});
5834
+ var wa = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(wa || {});
5796
5835
  typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("keydown", (e) => {
5797
5836
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
5798
5837
  }, !0), document.addEventListener("click", (e) => {
5799
5838
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
5800
5839
  }, !0));
5801
- function Me(e) {
5840
+ function Te(e) {
5802
5841
  e == null || e.focus({ preventScroll: !0 });
5803
5842
  }
5804
- let Ca = ["textarea", "input"].join(",");
5805
- function wa(e) {
5843
+ let ka = ["textarea", "input"].join(",");
5844
+ function ya(e) {
5806
5845
  var r, n;
5807
- return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, Ca)) != null ? n : !1;
5846
+ return (n = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, ka)) != null ? n : !1;
5808
5847
  }
5809
- function ka(e, r = (n) => n) {
5848
+ function ja(e, r = (n) => n) {
5810
5849
  return e.slice().sort((n, t) => {
5811
5850
  let s = r(n), o = r(t);
5812
5851
  if (s === null || o === null)
@@ -5816,7 +5855,7 @@ function ka(e, r = (n) => n) {
5816
5855
  });
5817
5856
  }
5818
5857
  function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
5819
- let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ka(e) : e : r & 64 ? va(e) : ga(e);
5858
+ let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ja(e) : e : r & 64 ? xa(e) : ba(e);
5820
5859
  s.length > 0 && a.length > 1 && (a = a.filter((v) => !s.some((x) => x != null && "current" in x ? (x == null ? void 0 : x.current) === v : x === v))), t = t != null ? t : o.activeElement;
5821
5860
  let d = (() => {
5822
5861
  if (r & 5)
@@ -5834,7 +5873,7 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
5834
5873
  if (r & 8)
5835
5874
  return a.length - 1;
5836
5875
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
5837
- })(), u = r & 32 ? { preventScroll: !0 } : {}, f = 0, p = a.length, g;
5876
+ })(), u = r & 32 ? { preventScroll: !0 } : {}, f = 0, p = a.length, m;
5838
5877
  do {
5839
5878
  if (f >= p || f + p <= 0)
5840
5879
  return 0;
@@ -5847,18 +5886,18 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
5847
5886
  if (v >= p)
5848
5887
  return 1;
5849
5888
  }
5850
- g = a[v], g == null || g.focus(u), f += d;
5851
- } while (g !== o.activeElement);
5852
- return r & 6 && wa(g) && g.select(), 2;
5889
+ m = a[v], m == null || m.focus(u), f += d;
5890
+ } while (m !== o.activeElement);
5891
+ return r & 6 && ya(m) && m.select(), 2;
5853
5892
  }
5854
- function rn() {
5893
+ function nn() {
5855
5894
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
5856
5895
  }
5857
- function ya() {
5896
+ function Ea() {
5858
5897
  return /Android/gi.test(window.navigator.userAgent);
5859
5898
  }
5860
- function ja() {
5861
- return rn() || ya();
5899
+ function La() {
5900
+ return nn() || Ea();
5862
5901
  }
5863
5902
  function xr(e, r, n) {
5864
5903
  let t = Ce(r);
@@ -5869,7 +5908,7 @@ function xr(e, r, n) {
5869
5908
  return document.addEventListener(e, s, n), () => document.removeEventListener(e, s, n);
5870
5909
  }, [e, n]);
5871
5910
  }
5872
- function tn(e, r, n) {
5911
+ function sn(e, r, n) {
5873
5912
  let t = Ce(r);
5874
5913
  oe(() => {
5875
5914
  function s(o) {
@@ -5878,7 +5917,7 @@ function tn(e, r, n) {
5878
5917
  return window.addEventListener(e, s, n), () => window.removeEventListener(e, s, n);
5879
5918
  }, [e, n]);
5880
5919
  }
5881
- function Ea(e, r, n = !0) {
5920
+ function $a(e, r, n = !0) {
5882
5921
  let t = R(!1);
5883
5922
  oe(() => {
5884
5923
  requestAnimationFrame(() => {
@@ -5901,7 +5940,7 @@ function Ea(e, r, n = !0) {
5901
5940
  if (p != null && p.contains(c) || a.composed && a.composedPath().includes(p))
5902
5941
  return;
5903
5942
  }
5904
- return !ba(c, en.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
5943
+ return !Ca(c, tn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
5905
5944
  }
5906
5945
  let o = R(null);
5907
5946
  xr("pointerdown", (a) => {
@@ -5911,13 +5950,13 @@ function Ea(e, r, n = !0) {
5911
5950
  var d, c;
5912
5951
  t.current && (o.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
5913
5952
  }, !0), xr("click", (a) => {
5914
- ja() || o.current && (s(a, () => o.current), o.current = null);
5915
- }, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), tn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
5953
+ La() || o.current && (s(a, () => o.current), o.current = null);
5954
+ }, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), sn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
5916
5955
  }
5917
5956
  function dr(...e) {
5918
- return ae(() => Jr(...e), [...e]);
5957
+ return ae(() => Xr(...e), [...e]);
5919
5958
  }
5920
- function nn(e, r, n, t) {
5959
+ function on(e, r, n, t) {
5921
5960
  let s = Ce(n);
5922
5961
  oe(() => {
5923
5962
  e = e != null ? e : window;
@@ -5927,10 +5966,10 @@ function nn(e, r, n, t) {
5927
5966
  return e.addEventListener(r, o, t), () => e.removeEventListener(r, o, t);
5928
5967
  }, [e, r, t]);
5929
5968
  }
5930
- function La(e) {
5931
- return zn(e.subscribe, e.getSnapshot, e.getSnapshot);
5969
+ function Ma(e) {
5970
+ return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
5932
5971
  }
5933
- function $a(e, r) {
5972
+ function Ta(e, r) {
5934
5973
  let n = e(), t = /* @__PURE__ */ new Set();
5935
5974
  return { getSnapshot() {
5936
5975
  return n;
@@ -5941,7 +5980,7 @@ function $a(e, r) {
5941
5980
  a && (n = a, t.forEach((d) => d()));
5942
5981
  } };
5943
5982
  }
5944
- function Ta() {
5983
+ function Sa() {
5945
5984
  let e;
5946
5985
  return { before({ doc: r }) {
5947
5986
  var n;
@@ -5952,8 +5991,8 @@ function Ta() {
5952
5991
  n.style(t, "paddingRight", `${o}px`);
5953
5992
  } };
5954
5993
  }
5955
- function Ma() {
5956
- return rn() ? { before({ doc: e, d: r, meta: n }) {
5994
+ function Na() {
5995
+ return nn() ? { before({ doc: e, d: r, meta: n }) {
5957
5996
  function t(s) {
5958
5997
  return n.containers.flatMap((o) => o()).some((o) => o.contains(s));
5959
5998
  }
@@ -6003,18 +6042,18 @@ function Ma() {
6003
6042
  });
6004
6043
  } } : {};
6005
6044
  }
6006
- function Sa() {
6045
+ function Ra() {
6007
6046
  return { before({ doc: e, d: r }) {
6008
6047
  r.style(e.documentElement, "overflow", "hidden");
6009
6048
  } };
6010
6049
  }
6011
- function Na(e) {
6050
+ function Aa(e) {
6012
6051
  let r = {};
6013
6052
  for (let n of e)
6014
6053
  Object.assign(r, n(r));
6015
6054
  return r;
6016
6055
  }
6017
- let _e = $a(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
6056
+ let We = Ta(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
6018
6057
  var n;
6019
6058
  let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Oe(), meta: /* @__PURE__ */ new Set() };
6020
6059
  return t.count++, t.meta.add(r), this.set(e, t), this;
@@ -6022,36 +6061,36 @@ let _e = $a(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
6022
6061
  let n = this.get(e);
6023
6062
  return n && (n.count--, n.meta.delete(r)), this;
6024
6063
  }, SCROLL_PREVENT({ doc: e, d: r, meta: n }) {
6025
- let t = { doc: e, d: r, meta: Na(n) }, s = [Ma(), Ta(), Sa()];
6064
+ let t = { doc: e, d: r, meta: Aa(n) }, s = [Na(), Sa(), Ra()];
6026
6065
  s.forEach(({ before: o }) => o == null ? void 0 : o(t)), s.forEach(({ after: o }) => o == null ? void 0 : o(t));
6027
6066
  }, SCROLL_ALLOW({ d: e }) {
6028
6067
  e.dispose();
6029
6068
  }, TEARDOWN({ doc: e }) {
6030
6069
  this.delete(e);
6031
6070
  } });
6032
- _e.subscribe(() => {
6033
- let e = _e.getSnapshot(), r = /* @__PURE__ */ new Map();
6071
+ We.subscribe(() => {
6072
+ let e = We.getSnapshot(), r = /* @__PURE__ */ new Map();
6034
6073
  for (let [n] of e)
6035
6074
  r.set(n, n.documentElement.style.overflow);
6036
6075
  for (let n of e.values()) {
6037
6076
  let t = r.get(n.doc) === "hidden", s = n.count !== 0;
6038
- (s && !t || !s && t) && _e.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && _e.dispatch("TEARDOWN", n);
6077
+ (s && !t || !s && t) && We.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && We.dispatch("TEARDOWN", n);
6039
6078
  }
6040
6079
  });
6041
- function Ra(e, r, n = () => ({ containers: [] })) {
6042
- let t = La(_e), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
6043
- return q(() => {
6080
+ function Pa(e, r, n = () => ({ containers: [] })) {
6081
+ let t = Ma(We), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
6082
+ return K(() => {
6044
6083
  if (!(!e || !r))
6045
- return _e.dispatch("PUSH", e, n), () => _e.dispatch("POP", e, n);
6084
+ return We.dispatch("PUSH", e, n), () => We.dispatch("POP", e, n);
6046
6085
  }, [r, e]), o;
6047
6086
  }
6048
- function Aa(e, r, n = () => [document.body]) {
6049
- Ra(e, r, (t) => {
6087
+ function Fa(e, r, n = () => [document.body]) {
6088
+ Pa(e, r, (t) => {
6050
6089
  var s;
6051
6090
  return { containers: [...(s = t.containers) != null ? s : [], n] };
6052
6091
  });
6053
6092
  }
6054
- function et(e, r) {
6093
+ function rt(e, r) {
6055
6094
  let n = R([]), t = P(e);
6056
6095
  oe(() => {
6057
6096
  let s = [...n.current];
@@ -6062,29 +6101,29 @@ function et(e, r) {
6062
6101
  }
6063
6102
  }, [t, ...r]);
6064
6103
  }
6065
- let rt = ce(null);
6066
- rt.displayName = "OpenClosedContext";
6104
+ let tt = ce(null);
6105
+ tt.displayName = "OpenClosedContext";
6067
6106
  var se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(se || {});
6068
- function tt() {
6069
- return ee(rt);
6107
+ function nt() {
6108
+ return re(tt);
6070
6109
  }
6071
- function Pa({ value: e, children: r }) {
6072
- return j.createElement(rt.Provider, { value: e }, r);
6110
+ function Oa({ value: e, children: r }) {
6111
+ return k.createElement(tt.Provider, { value: e }, r);
6073
6112
  }
6074
- function Fa(e) {
6113
+ function _a(e) {
6075
6114
  function r() {
6076
6115
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", r));
6077
6116
  }
6078
6117
  typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("DOMContentLoaded", r), r());
6079
6118
  }
6080
6119
  let Pe = [];
6081
- Fa(() => {
6120
+ _a(() => {
6082
6121
  function e(r) {
6083
6122
  r.target instanceof HTMLElement && r.target !== document.body && Pe[0] !== r.target && (Pe.unshift(r.target), Pe = Pe.filter((n) => n != null && n.isConnected), Pe.splice(10));
6084
6123
  }
6085
6124
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
6086
6125
  });
6087
- function sn(e) {
6126
+ function an(e) {
6088
6127
  let r = P(e), n = R(!1);
6089
6128
  oe(() => (n.current = !1, () => {
6090
6129
  n.current = !0, Er(() => {
@@ -6092,26 +6131,26 @@ function sn(e) {
6092
6131
  });
6093
6132
  }), [r]);
6094
6133
  }
6095
- function Oa() {
6134
+ function Wa() {
6096
6135
  let e = typeof document == "undefined";
6097
6136
  return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
6098
6137
  }, () => !1, () => !e) : !1;
6099
6138
  }
6100
6139
  function cr() {
6101
- let e = Oa(), [r, n] = or.useState(Ie.isHandoffComplete);
6140
+ let e = Wa(), [r, n] = or.useState(Ie.isHandoffComplete);
6102
6141
  return r && Ie.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
6103
6142
  r !== !0 && n(!0);
6104
6143
  }, [r]), or.useEffect(() => Ie.handoff(), []), e ? !1 : r;
6105
6144
  }
6106
- let on = ce(!1);
6107
- function Wa() {
6108
- return ee(on);
6145
+ let ln = ce(!1);
6146
+ function Ia() {
6147
+ return re(ln);
6109
6148
  }
6110
- function Tt(e) {
6111
- return j.createElement(on.Provider, { value: e.force }, e.children);
6149
+ function St(e) {
6150
+ return k.createElement(ln.Provider, { value: e.force }, e.children);
6112
6151
  }
6113
- function _a(e) {
6114
- let r = Wa(), n = ee(ln), t = dr(e), [s, o] = ge(() => {
6152
+ function Va(e) {
6153
+ let r = Ia(), n = re(cn), t = dr(e), [s, o] = ge(() => {
6115
6154
  var a;
6116
6155
  if (!r && n !== null)
6117
6156
  return (a = n.current) != null ? a : null;
@@ -6131,47 +6170,47 @@ function _a(e) {
6131
6170
  r || n !== null && o(n.current);
6132
6171
  }, [n, o, r]), s;
6133
6172
  }
6134
- let an = de, Ia = ue(function(e, r) {
6135
- let n = e, t = R(null), s = we(oa((f) => {
6173
+ let dn = de, Da = ue(function(e, r) {
6174
+ let n = e, t = R(null), s = we(ia((f) => {
6136
6175
  t.current = f;
6137
- }), r), o = dr(t), a = _a(t), [d] = ge(() => {
6176
+ }), r), o = dr(t), a = Va(t), [d] = ge(() => {
6138
6177
  var f;
6139
6178
  return Ie.isServer ? null : (f = o == null ? void 0 : o.createElement("div")) != null ? f : null;
6140
- }), c = ee(Ur), u = cr();
6141
- return q(() => {
6179
+ }), c = re(Ur), u = cr();
6180
+ return K(() => {
6142
6181
  !a || !d || a.contains(d) || (d.setAttribute("data-headlessui-portal", ""), a.appendChild(d));
6143
- }, [a, d]), q(() => {
6182
+ }, [a, d]), K(() => {
6144
6183
  if (d && c)
6145
6184
  return c.register(d);
6146
- }, [c, d]), sn(() => {
6185
+ }, [c, d]), an(() => {
6147
6186
  var f;
6148
6187
  !a || !d || (d instanceof Node && a.contains(d) && a.removeChild(d), a.childNodes.length <= 0 && ((f = a.parentElement) == null || f.removeChild(a)));
6149
- }), u ? !a || !d ? null : St(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: an, name: "Portal" }), d) : null;
6188
+ }), u ? !a || !d ? null : Rt(ve({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: dn, name: "Portal" }), d) : null;
6150
6189
  });
6151
- function Va(e, r) {
6190
+ function Ha(e, r) {
6152
6191
  let n = we(r), { enabled: t = !0, ...s } = e;
6153
- return t ? j.createElement(Ia, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: an, name: "Portal" });
6192
+ return t ? k.createElement(Da, { ...s, ref: n }) : ve({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: dn, name: "Portal" });
6154
6193
  }
6155
- let Da = de, ln = ce(null);
6156
- function Ha(e, r) {
6194
+ let Ba = de, cn = ce(null);
6195
+ function za(e, r) {
6157
6196
  let { target: n, ...t } = e, s = { ref: we(r) };
6158
- return j.createElement(ln.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: Da, name: "Popover.Group" }));
6197
+ return k.createElement(cn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: Ba, name: "Popover.Group" }));
6159
6198
  }
6160
6199
  let Ur = ce(null);
6161
- function Ba() {
6162
- let e = ee(Ur), r = R([]), n = P((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = P((o) => {
6200
+ function Ua() {
6201
+ let e = re(Ur), r = R([]), n = P((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = P((o) => {
6163
6202
  let a = r.current.indexOf(o);
6164
6203
  a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
6165
6204
  }), s = ae(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
6166
6205
  return [r, ae(() => function({ children: o }) {
6167
- return j.createElement(Ur.Provider, { value: s }, o);
6206
+ return k.createElement(Ur.Provider, { value: s }, o);
6168
6207
  }, [s])];
6169
6208
  }
6170
- let za = ue(Va), Ua = ue(Ha), Mt = Object.assign(za, { Group: Ua });
6171
- function Ga() {
6209
+ let Ga = ue(Ha), Ya = ue(za), Nt = Object.assign(Ga, { Group: Ya });
6210
+ function Za() {
6172
6211
  var e;
6173
6212
  let [r] = ge(() => typeof window != "undefined" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, t] = ge((e = r == null ? void 0 : r.matches) != null ? e : !1);
6174
- return q(() => {
6213
+ return K(() => {
6175
6214
  if (!r)
6176
6215
  return;
6177
6216
  function s(o) {
@@ -6180,7 +6219,7 @@ function Ga() {
6180
6219
  return r.addEventListener("change", s), () => r.removeEventListener("change", s);
6181
6220
  }, [r]), n;
6182
6221
  }
6183
- function Ya({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
6222
+ function qa({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
6184
6223
  var t;
6185
6224
  let s = R((t = n == null ? void 0 : n.current) != null ? t : null), o = dr(s), a = P(() => {
6186
6225
  var d, c, u;
@@ -6191,45 +6230,45 @@ function Ya({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
6191
6230
  for (let p of r.current)
6192
6231
  f.push(p);
6193
6232
  for (let p of (d = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? d : [])
6194
- p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((u = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || f.some((g) => p.contains(g)) || f.push(p));
6233
+ p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((u = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || f.some((m) => p.contains(m)) || f.push(p));
6195
6234
  return f;
6196
6235
  });
6197
6236
  return { resolveContainers: a, contains: P((d) => a().some((c) => c.contains(d))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
6198
- return n != null ? null : j.createElement(Dr, { features: wr.Hidden, ref: s });
6237
+ return n != null ? null : k.createElement(Dr, { features: wr.Hidden, ref: s });
6199
6238
  }, [s, n]) };
6200
6239
  }
6201
- let nt = ce(() => {
6240
+ let st = ce(() => {
6202
6241
  });
6203
- nt.displayName = "StackContext";
6242
+ st.displayName = "StackContext";
6204
6243
  var Gr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Gr || {});
6205
- function Za() {
6206
- return ee(nt);
6244
+ function Ka() {
6245
+ return re(st);
6207
6246
  }
6208
- function qa({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
6209
- let o = Za(), a = P((...d) => {
6247
+ function Ja({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
6248
+ let o = Ka(), a = P((...d) => {
6210
6249
  r == null || r(...d), o(...d);
6211
6250
  });
6212
- return q(() => {
6251
+ return K(() => {
6213
6252
  let d = s === void 0 || s === !0;
6214
6253
  return d && a(0, n, t), () => {
6215
6254
  d && a(1, n, t);
6216
6255
  };
6217
- }, [a, n, t, s]), j.createElement(nt.Provider, { value: a }, e);
6256
+ }, [a, n, t, s]), k.createElement(st.Provider, { value: a }, e);
6218
6257
  }
6219
6258
  function ur() {
6220
6259
  let e = R(!1);
6221
- return q(() => (e.current = !0, () => {
6260
+ return K(() => (e.current = !0, () => {
6222
6261
  e.current = !1;
6223
6262
  }), []), e;
6224
6263
  }
6225
6264
  var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
6226
- function Ka() {
6265
+ function Xa() {
6227
6266
  let e = R(0);
6228
- return tn("keydown", (r) => {
6267
+ return sn("keydown", (r) => {
6229
6268
  r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
6230
6269
  }, !0), e;
6231
6270
  }
6232
- function dn(e) {
6271
+ function un(e) {
6233
6272
  if (!e)
6234
6273
  return /* @__PURE__ */ new Set();
6235
6274
  if (typeof e == "function")
@@ -6239,42 +6278,42 @@ function dn(e) {
6239
6278
  n.current instanceof HTMLElement && r.add(n.current);
6240
6279
  return r;
6241
6280
  }
6242
- let Ja = "div";
6281
+ let Qa = "div";
6243
6282
  var $e = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.AutoFocus = 32] = "AutoFocus", e[e.All = 30] = "All", e))($e || {});
6244
- function Xa(e, r) {
6283
+ function ei(e, r) {
6245
6284
  let n = R(null), t = we(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: d = 30, ...c } = e;
6246
6285
  cr() || (d = 1);
6247
6286
  let u = dr(n);
6248
- ti({ ownerDocument: u }, !!(d & 16));
6249
- let f = ni({ ownerDocument: u, container: n, initialFocus: s, initialFocusFallback: o }, d);
6250
- si({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(d & 8));
6251
- let p = Ka(), g = P((b) => {
6287
+ si({ ownerDocument: u }, !!(d & 16));
6288
+ let f = oi({ ownerDocument: u, container: n, initialFocus: s, initialFocusFallback: o }, d);
6289
+ ai({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(d & 8));
6290
+ let p = Xa(), m = P((b) => {
6252
6291
  let w = n.current;
6253
- w && ((y) => y())(() => {
6292
+ w && ((j) => j())(() => {
6254
6293
  z(p.current, { [sr.Forwards]: () => {
6255
- lr(w, Te.First, { skipElements: [b.relatedTarget, o] });
6294
+ lr(w, Me.First, { skipElements: [b.relatedTarget, o] });
6256
6295
  }, [sr.Backwards]: () => {
6257
- lr(w, Te.Last, { skipElements: [b.relatedTarget, o] });
6296
+ lr(w, Me.Last, { skipElements: [b.relatedTarget, o] });
6258
6297
  } });
6259
6298
  });
6260
- }), v = Xr(), x = R(!1), C = { ref: t, onKeyDown(b) {
6299
+ }), v = Qr(), x = R(!1), C = { ref: t, onKeyDown(b) {
6261
6300
  b.key == "Tab" && (x.current = !0, v.requestAnimationFrame(() => {
6262
6301
  x.current = !1;
6263
6302
  }));
6264
6303
  }, onBlur(b) {
6265
6304
  if (!(d & 8))
6266
6305
  return;
6267
- let w = dn(a);
6306
+ let w = un(a);
6268
6307
  n.current instanceof HTMLElement && w.add(n.current);
6269
- let y = b.relatedTarget;
6270
- y instanceof HTMLElement && y.dataset.headlessuiFocusGuard !== "true" && (cn(w, y) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () => Te.Next, [sr.Backwards]: () => Te.Previous }) | Te.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && Me(b.target)));
6308
+ let j = b.relatedTarget;
6309
+ j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: b.target }) : b.target instanceof HTMLElement && Te(b.target)));
6271
6310
  } };
6272
- return j.createElement(j.Fragment, null, !!(d & 4) && j.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: wr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: Ja, name: "FocusTrap" }), !!(d & 4) && j.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: wr.Focusable }));
6311
+ return k.createElement(k.Fragment, null, !!(d & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: Qa, name: "FocusTrap" }), !!(d & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
6273
6312
  }
6274
- let Qa = ue(Xa), ei = Object.assign(Qa, { features: $e });
6275
- function ri(e = !0) {
6313
+ let ri = ue(ei), ti = Object.assign(ri, { features: $e });
6314
+ function ni(e = !0) {
6276
6315
  let r = R(Pe.slice());
6277
- return et(([n], [t]) => {
6316
+ return rt(([n], [t]) => {
6278
6317
  t === !0 && n === !1 && Er(() => {
6279
6318
  r.current.splice(0);
6280
6319
  }), t === !1 && n === !0 && (r.current = Pe.slice());
@@ -6283,19 +6322,19 @@ function ri(e = !0) {
6283
6322
  return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
6284
6323
  });
6285
6324
  }
6286
- function ti({ ownerDocument: e }, r) {
6287
- let n = ri(r);
6288
- et(() => {
6289
- r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Me(n());
6290
- }, [r]), sn(() => {
6291
- r && Me(n());
6325
+ function si({ ownerDocument: e }, r) {
6326
+ let n = ni(r);
6327
+ rt(() => {
6328
+ r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Te(n());
6329
+ }, [r]), an(() => {
6330
+ r && Te(n());
6292
6331
  });
6293
6332
  }
6294
- function ni({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
6333
+ function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
6295
6334
  let o = !!(s & 2), a = R(null), d = ur();
6296
- return et(() => {
6335
+ return rt(() => {
6297
6336
  if (!o) {
6298
- t != null && t.current && Me(t.current);
6337
+ t != null && t.current && Te(t.current);
6299
6338
  return;
6300
6339
  }
6301
6340
  let c = r.current;
@@ -6313,14 +6352,14 @@ function ni({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
6313
6352
  return;
6314
6353
  }
6315
6354
  if (n != null && n.current)
6316
- Me(n.current);
6355
+ Te(n.current);
6317
6356
  else {
6318
6357
  if (s & 32) {
6319
- if (lr(c, Te.First | Te.AutoFocus) !== zr.Error)
6358
+ if (lr(c, Me.First | Me.AutoFocus) !== zr.Error)
6320
6359
  return;
6321
- } else if (lr(c, Te.First) !== zr.Error)
6360
+ } else if (lr(c, Me.First) !== zr.Error)
6322
6361
  return;
6323
- if (t != null && t.current && (Me(t.current), (e == null ? void 0 : e.activeElement) === t.current))
6362
+ if (t != null && t.current && (Te(t.current), (e == null ? void 0 : e.activeElement) === t.current))
6324
6363
  return;
6325
6364
  console.warn("There are no focusable elements inside the <FocusTrap />");
6326
6365
  }
@@ -6328,54 +6367,54 @@ function ni({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
6328
6367
  });
6329
6368
  }, [t, o, s]), a;
6330
6369
  }
6331
- function si({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
6370
+ function ai({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
6332
6371
  let o = ur();
6333
- nn(e == null ? void 0 : e.defaultView, "focus", (a) => {
6372
+ on(e == null ? void 0 : e.defaultView, "focus", (a) => {
6334
6373
  if (!s || !o.current)
6335
6374
  return;
6336
- let d = dn(n);
6375
+ let d = un(n);
6337
6376
  r.current instanceof HTMLElement && d.add(r.current);
6338
6377
  let c = t.current;
6339
6378
  if (!c)
6340
6379
  return;
6341
6380
  let u = a.target;
6342
- u && u instanceof HTMLElement ? cn(d, u) ? (t.current = u, Me(u)) : (a.preventDefault(), a.stopPropagation(), Me(c)) : Me(t.current);
6381
+ u && u instanceof HTMLElement ? fn(d, u) ? (t.current = u, Te(u)) : (a.preventDefault(), a.stopPropagation(), Te(c)) : Te(t.current);
6343
6382
  }, !0);
6344
6383
  }
6345
- function cn(e, r) {
6384
+ function fn(e, r) {
6346
6385
  for (let n of e)
6347
6386
  if (n.contains(r))
6348
6387
  return !0;
6349
6388
  return !1;
6350
6389
  }
6351
- var oi = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(oi || {}), ai = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(ai || {});
6352
- let ii = { 0(e, r) {
6390
+ var ii = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ii || {}), li = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(li || {});
6391
+ let di = { 0(e, r) {
6353
6392
  return e.titleId === r.id ? e : { ...e, titleId: r.id };
6354
6393
  } }, kr = ce(null);
6355
6394
  kr.displayName = "DialogContext";
6356
- function st(e) {
6357
- let r = ee(kr);
6395
+ function ot(e) {
6396
+ let r = re(kr);
6358
6397
  if (r === null) {
6359
6398
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
6360
- throw Error.captureStackTrace && Error.captureStackTrace(n, st), n;
6399
+ throw Error.captureStackTrace && Error.captureStackTrace(n, ot), n;
6361
6400
  }
6362
6401
  return r;
6363
6402
  }
6364
- function li(e, r) {
6365
- return z(r.type, ii, e, r);
6403
+ function ci(e, r) {
6404
+ return z(r.type, di, e, r);
6366
6405
  }
6367
- let di = "div", ci = Cr.RenderStrategy | Cr.Static;
6368
- function ui(e, r) {
6369
- let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...f } = e, [p, g] = ge(0), v = R(!1);
6406
+ let ui = "div", fi = Cr.RenderStrategy | Cr.Static;
6407
+ function pi(e, r) {
6408
+ let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...f } = e, [p, m] = ge(0), v = R(!1);
6370
6409
  d = function() {
6371
6410
  return d === "dialog" || d === "alertdialog" ? d : (v.current || (v.current = !0, console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
6372
6411
  }();
6373
- let x = tt();
6412
+ let x = nt();
6374
6413
  s === void 0 && x !== null && (s = (x & se.Open) === se.Open);
6375
- let C = R(null), b = we(C, r), w = dr(C), y = e.hasOwnProperty("open") || x !== null, fe = e.hasOwnProperty("onClose");
6376
- if (!y && !fe)
6414
+ let C = R(null), b = we(C, r), w = dr(C), j = e.hasOwnProperty("open") || x !== null, fe = e.hasOwnProperty("onClose");
6415
+ if (!j && !fe)
6377
6416
  throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
6378
- if (!y)
6417
+ if (!j)
6379
6418
  throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
6380
6419
  if (!fe)
6381
6420
  throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
@@ -6383,44 +6422,44 @@ function ui(e, r) {
6383
6422
  throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
6384
6423
  if (typeof o != "function")
6385
6424
  throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
6386
- let N = s ? 0 : 1, [G, ke] = Un(li, { titleId: null, descriptionId: null, panelRef: Gn() }), K = P(() => o(!1)), Y = P((O) => ke({ type: 0, id: O })), J = cr() ? N === 0 : !1, te = p > 1, ie = ee(kr) !== null, [$, F] = Ba(), I = { get current() {
6425
+ let N = s ? 0 : 1, [Y, ke] = Yn(ci, { titleId: null, descriptionId: null, panelRef: Zn() }), J = P(() => o(!1)), Z = P((O) => ke({ type: 0, id: O })), X = cr() ? N === 0 : !1, te = p > 1, ie = re(kr) !== null, [$, F] = Ua(), V = { get current() {
6387
6426
  var O;
6388
- return (O = G.panelRef.current) != null ? O : C.current;
6389
- } }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } = Ya({ portals: $, defaultContainers: [I] }), he = te ? "parent" : "leaf", B = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || B ? !1 : J;
6390
- pa({ allowed: P(() => {
6427
+ return (O = Y.panelRef.current) != null ? O : C.current;
6428
+ } }, { resolveContainers: U, mainTreeNodeRef: pe, MainTreeNode: be } = qa({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", B = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || B ? !1 : X;
6429
+ ma({ allowed: P(() => {
6391
6430
  var O, xe;
6392
6431
  return [(xe = (O = C.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? xe : null];
6393
6432
  }), disallowed: P(() => {
6394
6433
  var O, xe;
6395
6434
  return [(xe = (O = pe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
6396
- }) }, u ? !1 : ye), Ea(U, (O) => {
6397
- O.preventDefault(), K();
6398
- }, !(!J || te));
6399
- let X = !(te || N !== 0);
6400
- nn(w == null ? void 0 : w.defaultView, "keydown", (O) => {
6401
- X && (O.defaultPrevented || O.key === Xt.Escape && (O.preventDefault(), O.stopPropagation(), K()));
6402
- }), Aa(w, u ? !1 : !(B || N !== 0 || ie), U), Qt(C, K, N === 0);
6403
- let [ne, Ke] = aa(), Q = ae(() => [{ dialogState: N, close: K, setTitleId: Y }, G], [N, G, K, Y]), V = ae(() => ({ open: N === 0 }), [N]), D = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": N === 0 ? !0 : void 0, "aria-labelledby": G.titleId, "aria-describedby": ne }, Je = !Ga(), je = J ? z(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
6404
- return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), j.createElement(qa, { type: "Dialog", enabled: N === 0, element: C, onUpdate: P((O, xe) => {
6405
- xe === "Dialog" && z(O, { [Gr.Add]: () => g((Xe) => Xe + 1), [Gr.Remove]: () => g((Xe) => Xe - 1) });
6406
- }) }, j.createElement(Tt, { force: !0 }, j.createElement(Mt, null, j.createElement(kr.Provider, { value: Q }, j.createElement(Mt.Group, { target: C }, j.createElement(Tt, { force: !1 }, j.createElement(Ke, { slot: V, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(ei, { initialFocus: a, initialFocusFallback: C, containers: U, features: je }, j.createElement(fa, { value: K }, ve({ ourProps: D, theirProps: f, slot: V, defaultTag: di, features: ci, visible: N === 0, name: "Dialog" })))))))))), j.createElement(sa, null, j.createElement(be, null)));
6407
- }
6408
- let fi = "div";
6409
- function pi(e, r) {
6410
- let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = st("Dialog.Panel"), d = we(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), u = P((f) => {
6435
+ }) }, u ? !1 : ye), $a(U, (O) => {
6436
+ O.preventDefault(), J();
6437
+ }, !(!X || te));
6438
+ let Q = !(te || N !== 0);
6439
+ on(w == null ? void 0 : w.defaultView, "keydown", (O) => {
6440
+ Q && (O.defaultPrevented || O.key === en.Escape && (O.preventDefault(), O.stopPropagation(), J()));
6441
+ }), Fa(w, u ? !1 : !(B || N !== 0 || ie), U), rn(C, J, N === 0);
6442
+ let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId: Z }, Y], [N, Y, J, Z]), D = ae(() => ({ open: N === 0 }), [N]), H = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": N === 0 ? !0 : void 0, "aria-labelledby": Y.titleId, "aria-describedby": ne }, Je = !Za(), je = X ? z(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
6443
+ return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), k.createElement(Ja, { type: "Dialog", enabled: N === 0, element: C, onUpdate: P((O, xe) => {
6444
+ xe === "Dialog" && z(O, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
6445
+ }) }, k.createElement(St, { force: !0 }, k.createElement(Nt, null, k.createElement(kr.Provider, { value: ee }, k.createElement(Nt.Group, { target: C }, k.createElement(St, { force: !1 }, k.createElement(Ke, { slot: D, name: "Dialog.Description" }, k.createElement(F, null, k.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers: U, features: je }, k.createElement(ha, { value: J }, ve({ ourProps: H, theirProps: f, slot: D, defaultTag: ui, features: fi, visible: N === 0, name: "Dialog" })))))))))), k.createElement(aa, null, k.createElement(be, null)));
6446
+ }
6447
+ let hi = "div";
6448
+ function mi(e, r) {
6449
+ let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ot("Dialog.Panel"), d = we(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), u = P((f) => {
6411
6450
  f.stopPropagation();
6412
6451
  });
6413
- return ve({ ourProps: { ref: d, id: t, onClick: u }, theirProps: s, slot: c, defaultTag: fi, name: "Dialog.Panel" });
6452
+ return ve({ ourProps: { ref: d, id: t, onClick: u }, theirProps: s, slot: c, defaultTag: hi, name: "Dialog.Panel" });
6414
6453
  }
6415
- let hi = "h2";
6416
- function mi(e, r) {
6417
- let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = st("Dialog.Title"), d = we(r);
6454
+ let gi = "h2";
6455
+ function vi(e, r) {
6456
+ let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ot("Dialog.Title"), d = we(r);
6418
6457
  oe(() => (a(t), () => a(null)), [t, a]);
6419
6458
  let c = ae(() => ({ open: o === 0 }), [o]);
6420
- return ve({ ourProps: { ref: d, id: t }, theirProps: s, slot: c, defaultTag: hi, name: "Dialog.Title" });
6459
+ return ve({ ourProps: { ref: d, id: t }, theirProps: s, slot: c, defaultTag: gi, name: "Dialog.Title" });
6421
6460
  }
6422
- let gi = ue(ui), un = ue(pi), vi = ue(mi), bi = Object.assign(gi, { Panel: un, Title: vi, Description: ca });
6423
- function xi(e = 0) {
6461
+ let bi = ue(pi), pn = ue(mi), xi = ue(vi), Ci = Object.assign(bi, { Panel: pn, Title: xi, Description: fa });
6462
+ function wi(e = 0) {
6424
6463
  let [r, n] = ge(e), t = ur(), s = mr((c) => {
6425
6464
  t.current && n((u) => u | c);
6426
6465
  }, [r, t]), o = mr((c) => !!(r & c), [r]), a = mr((c) => {
@@ -6430,7 +6469,7 @@ function xi(e = 0) {
6430
6469
  }, [n]);
6431
6470
  return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: d };
6432
6471
  }
6433
- function fn(e) {
6472
+ function hn(e) {
6434
6473
  let r = { called: !1 };
6435
6474
  return (...n) => {
6436
6475
  if (!r.called)
@@ -6440,15 +6479,15 @@ function fn(e) {
6440
6479
  function Or(e, ...r) {
6441
6480
  e && r.length > 0 && e.classList.add(...r);
6442
6481
  }
6443
- function Wr(e, ...r) {
6482
+ function _r(e, ...r) {
6444
6483
  e && r.length > 0 && e.classList.remove(...r);
6445
6484
  }
6446
- function Ci(e, r) {
6447
- let n = fn(r), t = Oe();
6485
+ function ki(e, r) {
6486
+ let n = hn(r), t = Oe();
6448
6487
  if (!e)
6449
6488
  return t.dispose;
6450
6489
  let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, d] = [s, o].map((u) => {
6451
- let [f = 0] = u.split(",").filter(Boolean).map((p) => p.includes("ms") ? parseFloat(p) : parseFloat(p) * 1e3).sort((p, g) => g - p);
6490
+ let [f = 0] = u.split(",").filter(Boolean).map((p) => p.includes("ms") ? parseFloat(p) : parseFloat(p) * 1e3).sort((p, m) => m - p);
6452
6491
  return f;
6453
6492
  }), c = a + d;
6454
6493
  if (c !== 0) {
@@ -6456,8 +6495,8 @@ function Ci(e, r) {
6456
6495
  let p = f.setTimeout(() => {
6457
6496
  n(), f.dispose();
6458
6497
  }, c);
6459
- f.addEventListener(e, "transitionrun", (g) => {
6460
- g.target === g.currentTarget && (p(), f.addEventListener(e, "transitioncancel", (v) => {
6498
+ f.addEventListener(e, "transitionrun", (m) => {
6499
+ m.target === m.currentTarget && (p(), f.addEventListener(e, "transitioncancel", (v) => {
6461
6500
  v.target === v.currentTarget && (n(), u());
6462
6501
  }));
6463
6502
  });
@@ -6469,18 +6508,18 @@ function Ci(e, r) {
6469
6508
  n();
6470
6509
  return t.dispose;
6471
6510
  }
6472
- function wi(e, { direction: r, done: n, classes: t, inFlight: s }) {
6473
- let o = Oe(), a = n !== void 0 ? fn(n) : () => {
6511
+ function yi(e, { direction: r, done: n, classes: t, inFlight: s }) {
6512
+ let o = Oe(), a = n !== void 0 ? hn(n) : () => {
6474
6513
  };
6475
6514
  r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
6476
6515
  let d = z(r, { enter: () => t.enter, leave: () => t.leave }), c = z(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = z(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
6477
- return ki(e, { prepare() {
6478
- Wr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...d, ...u);
6516
+ return ji(e, { prepare() {
6517
+ _r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...d, ...u);
6479
6518
  }, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
6480
- o.add(Ci(e, () => (Wr(e, ...t.base, ...d), Or(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), Wr(e, ...t.base, ...d, ...u), Or(e, ...t.base, ...d, ...c);
6519
+ o.add(ki(e, () => (_r(e, ...t.base, ...d), Or(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), _r(e, ...t.base, ...d, ...u), Or(e, ...t.base, ...d, ...c);
6481
6520
  }), o.dispose;
6482
6521
  }
6483
- function ki(e, { inFlight: r, prepare: n }) {
6522
+ function ji(e, { inFlight: r, prepare: n }) {
6484
6523
  if (r != null && r.current) {
6485
6524
  n();
6486
6525
  return;
@@ -6488,14 +6527,14 @@ function ki(e, { inFlight: r, prepare: n }) {
6488
6527
  let t = e.style.transition;
6489
6528
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
6490
6529
  }
6491
- function yi({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
6492
- let o = ur(), a = Xr(), d = R(!1);
6493
- q(() => {
6530
+ function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
6531
+ let o = ur(), a = Qr(), d = R(!1);
6532
+ K(() => {
6494
6533
  if (r === "idle" || !o.current)
6495
6534
  return;
6496
6535
  t.current(r);
6497
6536
  let c = e.current;
6498
- return c ? a.add(wi(c, { direction: r, classes: n.current, inFlight: d, done() {
6537
+ return c ? a.add(yi(c, { direction: r, classes: n.current, inFlight: d, done() {
6499
6538
  s.current(r);
6500
6539
  } })) : s.current(r), a.dispose;
6501
6540
  }, [r]);
@@ -6503,32 +6542,32 @@ function yi({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
6503
6542
  function Ae(e = "") {
6504
6543
  return e.split(/\s+/).filter((r) => r.length > 1);
6505
6544
  }
6506
- function pn(e) {
6545
+ function mn(e) {
6507
6546
  var r;
6508
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : mn) !== de || j.Children.count(e.children) === 1;
6547
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : vn) !== de || k.Children.count(e.children) === 1;
6509
6548
  }
6510
6549
  let Lr = ce(null);
6511
6550
  Lr.displayName = "TransitionContext";
6512
- var ji = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(ji || {});
6513
- function Ei() {
6514
- let e = ee(Lr);
6551
+ var Li = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Li || {});
6552
+ function $i() {
6553
+ let e = re(Lr);
6515
6554
  if (e === null)
6516
6555
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6517
6556
  return e;
6518
6557
  }
6519
- function Li() {
6520
- let e = ee($r);
6558
+ function Mi() {
6559
+ let e = re($r);
6521
6560
  if (e === null)
6522
6561
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6523
6562
  return e;
6524
6563
  }
6525
6564
  let $r = ce(null);
6526
6565
  $r.displayName = "NestingContext";
6527
- function Tr(e) {
6528
- return "children" in e ? Tr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6566
+ function Mr(e) {
6567
+ return "children" in e ? Mr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6529
6568
  }
6530
- function hn(e, r) {
6531
- let n = Ce(e), t = R([]), s = ur(), o = Xr(), a = P((v, x = Fe.Hidden) => {
6569
+ function gn(e, r) {
6570
+ let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((v, x = Fe.Hidden) => {
6532
6571
  let C = t.current.findIndex(({ el: b }) => b === v);
6533
6572
  C !== -1 && (z(x, { [Fe.Unmount]() {
6534
6573
  t.current.splice(C, 1);
@@ -6536,7 +6575,7 @@ function hn(e, r) {
6536
6575
  t.current[C].state = "hidden";
6537
6576
  } }), o.microTask(() => {
6538
6577
  var b;
6539
- !Tr(t) && s.current && ((b = n.current) == null || b.call(n));
6578
+ !Mr(t) && s.current && ((b = n.current) == null || b.call(n));
6540
6579
  }));
6541
6580
  }), d = P((v) => {
6542
6581
  let x = t.current.find(({ el: C }) => C === v);
@@ -6545,90 +6584,90 @@ function hn(e, r) {
6545
6584
  c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([b]) => b !== v)), r == null || r.chains.current[x].push([v, new Promise((b) => {
6546
6585
  c.current.push(b);
6547
6586
  })]), r == null || r.chains.current[x].push([v, new Promise((b) => {
6548
- Promise.all(f.current[x].map(([w, y]) => y)).then(() => b());
6587
+ Promise.all(f.current[x].map(([w, j]) => j)).then(() => b());
6549
6588
  })]), x === "enter" ? u.current = u.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(x)) : C(x);
6550
- }), g = P((v, x, C) => {
6589
+ }), m = P((v, x, C) => {
6551
6590
  Promise.all(f.current[x].splice(0).map(([b, w]) => w)).then(() => {
6552
6591
  var b;
6553
6592
  (b = c.current.shift()) == null || b();
6554
6593
  }).then(() => C(x));
6555
6594
  });
6556
- return ae(() => ({ children: t, register: d, unregister: a, onStart: p, onStop: g, wait: u, chains: f }), [d, a, t, p, g, f, u]);
6595
+ return ae(() => ({ children: t, register: d, unregister: a, onStart: p, onStop: m, wait: u, chains: f }), [d, a, t, p, m, f, u]);
6557
6596
  }
6558
- let mn = de, gn = Cr.RenderStrategy;
6559
- function $i(e, r) {
6597
+ let vn = de, bn = Cr.RenderStrategy;
6598
+ function Ti(e, r) {
6560
6599
  var n, t, s;
6561
- let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: g, leave: v, leaveFrom: x, leaveTo: C, ...b } = e, w = R(null), y = pn(e), fe = we(...y ? [w, r] : r === null ? [] : [r]), N = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: G, appear: ke, initial: K } = Ei(), [Y, J] = ge(G ? "visible" : "hidden"), te = Li(), { register: ie, unregister: $ } = te;
6562
- q(() => ie(w), [ie, w]), q(() => {
6600
+ let { beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: v, leaveFrom: x, leaveTo: C, ...b } = e, w = R(null), j = mn(e), fe = we(...j ? [w, r] : r === null ? [] : [r]), N = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: Y, appear: ke, initial: J } = $i(), [Z, X] = ge(Y ? "visible" : "hidden"), te = Mi(), { register: ie, unregister: $ } = te;
6601
+ K(() => ie(w), [ie, w]), K(() => {
6563
6602
  if (N === Fe.Hidden && w.current) {
6564
- if (G && Y !== "visible") {
6565
- J("visible");
6603
+ if (Y && Z !== "visible") {
6604
+ X("visible");
6566
6605
  return;
6567
6606
  }
6568
- return z(Y, { hidden: () => $(w), visible: () => ie(w) });
6607
+ return z(Z, { hidden: () => $(w), visible: () => ie(w) });
6569
6608
  }
6570
- }, [Y, w, ie, $, G, N]);
6571
- let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(g), leave: Ae(v), leaveFrom: Ae(x), leaveTo: Ae(C) }), I = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c }), U = cr();
6572
- q(() => {
6573
- if (y && U && Y === "visible" && w.current === null)
6609
+ }, [Z, w, ie, $, Y, N]);
6610
+ let F = Ce({ base: Ae(b.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(m), leave: Ae(v), leaveFrom: Ae(x), leaveTo: Ae(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: c }), U = cr();
6611
+ K(() => {
6612
+ if (j && U && Z === "visible" && w.current === null)
6574
6613
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
6575
- }, [w, Y, U, y]);
6576
- let pe = K && !ke, be = ke && G && K, he = be ? "enter" : !U || pe ? "idle" : G ? "enter" : "leave", B = xi(0), ye = P((Q) => z(Q, { enter: () => {
6577
- var V, D;
6578
- B.addFlag(se.Opening), (D = (V = I.current).beforeEnter) == null || D.call(V);
6614
+ }, [w, Z, U, j]);
6615
+ let pe = J && !ke, be = ke && Y && J, he = be ? "enter" : !U || pe ? "idle" : Y ? "enter" : "leave", B = wi(0), ye = P((ee) => z(ee, { enter: () => {
6616
+ var D, H;
6617
+ B.addFlag(se.Opening), (H = (D = V.current).beforeEnter) == null || H.call(D);
6579
6618
  }, leave: () => {
6580
- var V, D;
6581
- B.addFlag(se.Closing), (D = (V = I.current).beforeLeave) == null || D.call(V);
6619
+ var D, H;
6620
+ B.addFlag(se.Closing), (H = (D = V.current).beforeLeave) == null || H.call(D);
6582
6621
  }, idle: () => {
6583
- } })), me = P((Q) => z(Q, { enter: () => {
6584
- var V, D;
6585
- B.removeFlag(se.Opening), (D = (V = I.current).afterEnter) == null || D.call(V);
6622
+ } })), me = P((ee) => z(ee, { enter: () => {
6623
+ var D, H;
6624
+ B.removeFlag(se.Opening), (H = (D = V.current).afterEnter) == null || H.call(D);
6586
6625
  }, leave: () => {
6587
- var V, D;
6588
- B.removeFlag(se.Closing), (D = (V = I.current).afterLeave) == null || D.call(V);
6626
+ var D, H;
6627
+ B.removeFlag(se.Closing), (H = (D = V.current).afterLeave) == null || H.call(D);
6589
6628
  }, idle: () => {
6590
- } })), X = R(!1), Se = hn(() => {
6591
- X.current || (J("hidden"), $(w));
6629
+ } })), Q = R(!1), Se = gn(() => {
6630
+ Q.current || (X("hidden"), $(w));
6592
6631
  }, te);
6593
- yi({ container: w, classes: F, direction: he, onStart: Ce((Q) => {
6594
- X.current = !0, Se.onStart(w, Q, ye);
6595
- }), onStop: Ce((Q) => {
6596
- X.current = !1, Se.onStop(w, Q, me), Q === "leave" && !Tr(Se) && (J("hidden"), $(w));
6632
+ Ei({ container: w, classes: F, direction: he, onStart: Ce((ee) => {
6633
+ Q.current = !0, Se.onStart(w, ee, ye);
6634
+ }), onStop: Ce((ee) => {
6635
+ Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !Mr(Se) && (X("hidden"), $(w));
6597
6636
  }) });
6598
6637
  let ne = b, Ke = { ref: fe };
6599
- return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } : X.current ? (ne.className = ar(b.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(b.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), j.createElement($r.Provider, { value: Se }, j.createElement(Pa, { value: z(Y, { visible: se.Open, hidden: se.Closed }) | B.flags }, ve({ ourProps: Ke, theirProps: ne, defaultTag: mn, features: gn, visible: Y === "visible", name: "Transition.Child" })));
6638
+ return be ? ne = { ...ne, className: ar(b.className, ...F.current.enter, ...F.current.enterFrom) } : Q.current ? (ne.className = ar(b.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(b.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), k.createElement($r.Provider, { value: Se }, k.createElement(Oa, { value: z(Z, { visible: se.Open, hidden: se.Closed }) | B.flags }, ve({ ourProps: Ke, theirProps: ne, defaultTag: vn, features: bn, visible: Z === "visible", name: "Transition.Child" })));
6600
6639
  }
6601
- function Ti(e, r) {
6602
- let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d = pn(e), c = we(...d ? [a, r] : r === null ? [] : [r]);
6640
+ function Si(e, r) {
6641
+ let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), d = mn(e), c = we(...d ? [a, r] : r === null ? [] : [r]);
6603
6642
  cr();
6604
- let u = tt();
6643
+ let u = nt();
6605
6644
  if (n === void 0 && u !== null && (n = (u & se.Open) === se.Open), n === void 0)
6606
6645
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
6607
- let [f, p] = ge(n ? "visible" : "hidden"), g = hn(() => {
6646
+ let [f, p] = ge(n ? "visible" : "hidden"), m = gn(() => {
6608
6647
  n || p("hidden");
6609
6648
  }), [v, x] = ge(!0), C = R([n]);
6610
- q(() => {
6649
+ K(() => {
6611
6650
  v !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), x(!1));
6612
6651
  }, [C, n]);
6613
6652
  let b = ae(() => ({ show: n, appear: t, initial: v }), [n, t, v]);
6614
- Qt(a, () => p("hidden")), q(() => {
6615
- n ? p("visible") : !Tr(g) && a.current !== null && p("hidden");
6616
- }, [n, g]);
6617
- let w = { unmount: s }, y = P(() => {
6653
+ rn(a, () => p("hidden")), K(() => {
6654
+ n ? p("visible") : !Mr(m) && a.current !== null && p("hidden");
6655
+ }, [n, m]);
6656
+ let w = { unmount: s }, j = P(() => {
6618
6657
  var N;
6619
6658
  v && x(!1), (N = e.beforeEnter) == null || N.call(e);
6620
6659
  }), fe = P(() => {
6621
6660
  var N;
6622
6661
  v && x(!1), (N = e.beforeLeave) == null || N.call(e);
6623
6662
  });
6624
- return j.createElement($r.Provider, { value: g }, j.createElement(Lr.Provider, { value: b }, ve({ ourProps: { ...w, as: de, children: j.createElement(vn, { ref: c, ...w, ...o, beforeEnter: y, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: gn, visible: f === "visible", name: "Transition" })));
6663
+ return k.createElement($r.Provider, { value: m }, k.createElement(Lr.Provider, { value: b }, ve({ ourProps: { ...w, as: de, children: k.createElement(xn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: bn, visible: f === "visible", name: "Transition" })));
6625
6664
  }
6626
- function Mi(e, r) {
6627
- let n = ee(Lr) !== null, t = tt() !== null;
6628
- return j.createElement(j.Fragment, null, !n && t ? j.createElement(Yr, { ref: r, ...e }) : j.createElement(vn, { ref: r, ...e }));
6665
+ function Ni(e, r) {
6666
+ let n = re(Lr) !== null, t = nt() !== null;
6667
+ return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(xn, { ref: r, ...e }));
6629
6668
  }
6630
- let Yr = ue(Ti), vn = ue($i), Zr = ue(Mi), Si = Object.assign(Yr, { Child: Zr, Root: Yr });
6631
- const Ni = ({
6669
+ let Yr = ue(Si), xn = ue(Ti), Zr = ue(Ni), Ri = Object.assign(Yr, { Child: Zr, Root: Yr });
6670
+ const Ai = ({
6632
6671
  open: e = !1,
6633
6672
  onClose: r,
6634
6673
  title: n = "",
@@ -6641,12 +6680,12 @@ const Ni = ({
6641
6680
  dismissible: u = !0,
6642
6681
  horizontalRule: f = !0
6643
6682
  }) => {
6644
- const p = () => d ? /* @__PURE__ */ i.jsx(i.Fragment, { children: d }) : a && c ? /* @__PURE__ */ i.jsx(Ve, { name: c, size: "medium" }) : null, g = () => t === "dismissible" ? r() : !0;
6645
- return /* @__PURE__ */ i.jsx(Si, { appear: !0, show: e, as: de, children: /* @__PURE__ */ i.jsxs(
6646
- bi,
6683
+ const p = () => d ? /* @__PURE__ */ i.jsx(i.Fragment, { children: d }) : a && c ? /* @__PURE__ */ i.jsx(Ve, { name: c, size: "medium" }) : null, m = () => t === "dismissible" ? r() : !0;
6684
+ return /* @__PURE__ */ i.jsx(Ri, { appear: !0, show: e, as: de, children: /* @__PURE__ */ i.jsxs(
6685
+ Ci,
6647
6686
  {
6648
6687
  as: "div",
6649
- onClose: g,
6688
+ onClose: m,
6650
6689
  static: !0,
6651
6690
  className: "preflight ds-relative ds-z-20 focus:ds-outline-none",
6652
6691
  "aria-labelledby": "modal-title",
@@ -6680,7 +6719,7 @@ const Ni = ({
6680
6719
  leave: "ease-in duration-200",
6681
6720
  leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
6682
6721
  leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
6683
- children: /* @__PURE__ */ i.jsxs(un, { className: "ds-flex ds-max-h-[90vh] ds-min-w-full ds-max-w-full ds-transform ds-flex-col ds-overflow-y-scroll ds-rounded-lg ds-bg-neutrals-white ds-text-left ds-shadow-modal sm:ds-min-w-[15rem] sm:ds-max-w-[55%]", children: [
6722
+ children: /* @__PURE__ */ i.jsxs(pn, { className: "ds-flex ds-max-h-[90vh] ds-min-w-full ds-max-w-full ds-transform ds-flex-col ds-overflow-y-scroll ds-rounded-lg ds-bg-neutrals-white ds-text-left ds-shadow-modal sm:ds-min-w-[15rem] sm:ds-max-w-[55%]", children: [
6684
6723
  /* @__PURE__ */ i.jsxs(
6685
6724
  "div",
6686
6725
  {
@@ -6688,7 +6727,7 @@ const Ni = ({
6688
6727
  children: [
6689
6728
  a && /* @__PURE__ */ i.jsx("div", { className: "ds-mr-3", children: p() }),
6690
6729
  /* @__PURE__ */ i.jsx("div", { className: "ds-flex-grow", children: /* @__PURE__ */ i.jsx(
6691
- Zt,
6730
+ Kt,
6692
6731
  {
6693
6732
  text: n,
6694
6733
  headingTag: "h2",
@@ -6727,7 +6766,7 @@ const Ni = ({
6727
6766
  ]
6728
6767
  }
6729
6768
  ) });
6730
- }, ol = Ni, Ri = H(
6769
+ }, vl = Ai, Pi = I(
6731
6770
  [
6732
6771
  "preflight",
6733
6772
  "ds-rounded-xl",
@@ -6769,7 +6808,7 @@ const Ni = ({
6769
6808
  }
6770
6809
  }
6771
6810
  }
6772
- ), Ai = ({
6811
+ ), Fi = ({
6773
6812
  label: e,
6774
6813
  type: r = "regular",
6775
6814
  color: n = "default",
@@ -6783,7 +6822,7 @@ const Ni = ({
6783
6822
  return /* @__PURE__ */ i.jsxs(
6784
6823
  "div",
6785
6824
  {
6786
- className: re(Ri({ color: n, type: r }), o),
6825
+ className: G(Pi({ color: n, type: r }), o),
6787
6826
  "aria-label": c,
6788
6827
  ...d,
6789
6828
  children: [
@@ -6804,72 +6843,7 @@ const Ni = ({
6804
6843
  ]
6805
6844
  }
6806
6845
  );
6807
- }, al = Ai, Pi = H(
6808
- [
6809
- "preflight",
6810
- "ds-form-input",
6811
- "ds-h-[42px]",
6812
- "ds-rounded",
6813
- "ds-p-2",
6814
- "ds-border-[1px]",
6815
- "!ds-font-sans",
6816
- "ds-container"
6817
- ],
6818
- {
6819
- variants: {
6820
- state: {
6821
- default: [
6822
- "ds-border-neutrals",
6823
- "ds-text-neutrals-darker",
6824
- "focus:ds-border-acuity-blue",
6825
- "focus:ds-ring-acuity-blue",
6826
- "focus:ds-ring-offset-2",
6827
- "focus:ds-ring-2"
6828
- ],
6829
- error: [
6830
- "ds-border-danger-red",
6831
- "ds-text-danger-red-darkest",
6832
- "focus:ds-border-danger-red",
6833
- "focus:ds-ring-danger-red-dark",
6834
- "focus:ds-ring-offset-2",
6835
- "focus:ds-ring-2"
6836
- ],
6837
- success: [
6838
- "ds-border-success-green",
6839
- "ds-text-neutrals-darker",
6840
- "focus:ds-border-success-green",
6841
- "focus:ds-ring-success-green-dark",
6842
- "focus:ds-ring-offset-2",
6843
- "focus:ds-ring-2"
6844
- ]
6845
- },
6846
- disabled: {
6847
- true: [
6848
- "!ds-border-neutrals",
6849
- "!ds-text-neutrals-darker",
6850
- "!ds-bg-neutrals-lighter",
6851
- "focus:!ds-border-neutrals",
6852
- "focus:!ds-ring-neutrals-dark",
6853
- "ds-cursor-not-allowed"
6854
- ]
6855
- }
6856
- }
6857
- }
6858
- ), Fi = (e) => re(Pi(e)), Oi = ({
6859
- state: e = "default",
6860
- disabled: r = !1,
6861
- type: n = "text",
6862
- ...t
6863
- }) => /* @__PURE__ */ i.jsx(
6864
- "input",
6865
- {
6866
- "aria-disabled": r,
6867
- readOnly: r,
6868
- type: n,
6869
- className: Fi({ disabled: r, state: e }),
6870
- ...t
6871
- }
6872
- ), Wi = Oi, _i = H(
6846
+ }, bl = Fi, Oi = I(
6873
6847
  [
6874
6848
  "preflight",
6875
6849
  "ds-form-label",
@@ -6890,16 +6864,17 @@ const Ni = ({
6890
6864
  }
6891
6865
  }
6892
6866
  }
6893
- ), Ii = (e) => re(_i(e)), Vi = ({
6894
- state: e = "default",
6895
- disabled: r = !1,
6896
- htmlFor: n,
6897
- value: t = "",
6898
- optionalityLabel: s = ""
6899
- }) => /* @__PURE__ */ i.jsxs("label", { htmlFor: n, className: Ii({ state: e, disabled: r }), children: [
6900
- t,
6901
- s && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${s})` })
6902
- ] }), Di = Vi, Hi = H(
6867
+ ), _i = (e) => G(Oi(e)), Wi = ({
6868
+ id: e,
6869
+ state: r = "default",
6870
+ disabled: n = !1,
6871
+ htmlFor: t,
6872
+ value: s = "",
6873
+ optionalityLabel: o = ""
6874
+ }) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: _i({ state: r, disabled: n }), children: [
6875
+ s,
6876
+ o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
6877
+ ] }), Ii = Wi, Vi = I(
6903
6878
  ["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
6904
6879
  {
6905
6880
  variants: {
@@ -6910,7 +6885,7 @@ const Ni = ({
6910
6885
  }
6911
6886
  }
6912
6887
  }
6913
- ), Bi = (e) => re(Hi(e)), zi = H(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
6888
+ ), Di = (e) => G(Vi(e)), Hi = I(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
6914
6889
  variants: {
6915
6890
  state: {
6916
6891
  default: ["ds-text-neutrals-black", "ds-mt-2"],
@@ -6928,7 +6903,7 @@ const Ni = ({
6928
6903
  true: "!ds-text-neutrals-dark"
6929
6904
  }
6930
6905
  }
6931
- }), Ui = (e) => re(zi(e)), Gi = ({
6906
+ }), Bi = (e) => G(Hi(e)), zi = ({
6932
6907
  id: e,
6933
6908
  state: r = "default",
6934
6909
  disabled: n = !1,
@@ -6936,50 +6911,147 @@ const Ni = ({
6936
6911
  optionalityLabel: s = "",
6937
6912
  helpText: o = [],
6938
6913
  message: a = "",
6939
- child: d
6914
+ child: d,
6915
+ isTextarea: c = !1
6940
6916
  }) => {
6941
- let c = null;
6917
+ let u = null;
6942
6918
  switch (r) {
6943
6919
  case "error":
6944
- c = {
6920
+ u = {
6945
6921
  name: "error",
6946
6922
  color: "ds-text-danger-red"
6947
6923
  };
6948
6924
  break;
6949
6925
  case "success":
6950
- c = {
6926
+ u = {
6951
6927
  name: "checkCircle",
6952
6928
  color: "ds-text-success-green"
6953
6929
  };
6954
6930
  break;
6955
6931
  }
6956
- return /* @__PURE__ */ i.jsxs("div", { className: Bi({ state: r }), children: [
6932
+ const f = t ? "label_" + e : void 0, p = o && o.length > 0 ? "helptext_" + e : void 0;
6933
+ return /* @__PURE__ */ i.jsxs("div", { className: Di({ state: r }), children: [
6957
6934
  t && /* @__PURE__ */ i.jsx(
6958
- Di,
6935
+ Ii,
6959
6936
  {
6937
+ id: f,
6960
6938
  htmlFor: e,
6961
6939
  value: t,
6962
6940
  optionalityLabel: s,
6963
6941
  disabled: n
6964
6942
  }
6965
6943
  ),
6966
- o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((u, f) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: u }, f)) }),
6967
- o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
6944
+ o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: p, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((m, v) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: m }, v)) }),
6945
+ o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: p, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
6968
6946
  /* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
6969
- /* @__PURE__ */ i.jsx("div", { className: "ds-w-[calc(100%-2rem)]", children: d }),
6970
- /* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: c && /* @__PURE__ */ i.jsx(
6947
+ /* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: d }),
6948
+ /* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: u && /* @__PURE__ */ i.jsx(
6971
6949
  Ve,
6972
6950
  {
6973
- name: c.name,
6951
+ name: u.name,
6974
6952
  size: "medium",
6975
- className: c.color,
6953
+ className: u.color,
6976
6954
  role: "graphics-symbol"
6977
6955
  }
6978
6956
  ) })
6979
6957
  ] }),
6980
- c && /* @__PURE__ */ i.jsx("p", { className: Ui({ state: r }), children: a })
6958
+ u && /* @__PURE__ */ i.jsx("p", { className: Bi({ state: r }), children: a })
6981
6959
  ] });
6982
- }, Yi = Gi, Zi = ({
6960
+ }, at = zi, Ui = I(
6961
+ [
6962
+ "preflight",
6963
+ "ds-form-input",
6964
+ "ds-rounded",
6965
+ "ds-p-2",
6966
+ "ds-border-[1px]",
6967
+ "!ds-font-sans"
6968
+ ],
6969
+ Jr
6970
+ ), Gi = (e) => G(Ui(e)), Yi = ({
6971
+ state: e = "default",
6972
+ rows: r = 2,
6973
+ cols: n = 50,
6974
+ isResizable: t = !0,
6975
+ disabled: s = !1,
6976
+ ...o
6977
+ }) => /* @__PURE__ */ i.jsx(
6978
+ "textarea",
6979
+ {
6980
+ "aria-invalid": e == "error",
6981
+ rows: r,
6982
+ cols: n,
6983
+ readOnly: s,
6984
+ className: Gi({ disabled: s, state: e }),
6985
+ style: {
6986
+ resize: t ? "both" : "none"
6987
+ },
6988
+ ...o
6989
+ }
6990
+ ), Zi = Yi, qi = ({
6991
+ id: e,
6992
+ state: r = "default",
6993
+ label: n,
6994
+ rows: t = 2,
6995
+ cols: s = 50,
6996
+ isResizable: o = !0,
6997
+ optionalityLabel: a = "",
6998
+ helpText: d = [],
6999
+ message: c = "",
7000
+ disabled: u = !1,
7001
+ ...f
7002
+ }) => /* @__PURE__ */ i.jsx(
7003
+ at,
7004
+ {
7005
+ id: e,
7006
+ state: r,
7007
+ disabled: u,
7008
+ label: n,
7009
+ optionalityLabel: a,
7010
+ helpText: d,
7011
+ message: c,
7012
+ isTextarea: !0,
7013
+ child: /* @__PURE__ */ i.jsx(
7014
+ Zi,
7015
+ {
7016
+ id: e,
7017
+ "aria-labelledby": n ? "label_" + e : void 0,
7018
+ "aria-describedby": d && d.length > 0 ? "helptext_" + e : void 0,
7019
+ state: r,
7020
+ rows: t,
7021
+ cols: s,
7022
+ isResizable: o,
7023
+ disabled: u,
7024
+ ...f
7025
+ }
7026
+ )
7027
+ }
7028
+ ), xl = qi, Ki = I(
7029
+ [
7030
+ "preflight",
7031
+ "ds-form-input",
7032
+ "ds-h-[40px]",
7033
+ "ds-rounded",
7034
+ "ds-p-2",
7035
+ "ds-border-[1px]",
7036
+ "!ds-font-sans",
7037
+ "ds-container"
7038
+ ],
7039
+ Jr
7040
+ ), Ji = (e) => G(Ki(e)), Xi = ({
7041
+ state: e = "default",
7042
+ disabled: r = !1,
7043
+ type: n = "text",
7044
+ ...t
7045
+ }) => /* @__PURE__ */ i.jsx(
7046
+ "input",
7047
+ {
7048
+ "aria-disabled": r,
7049
+ readOnly: r,
7050
+ type: n,
7051
+ className: Ji({ disabled: r, state: e }),
7052
+ ...t
7053
+ }
7054
+ ), Qi = Xi, el = ({
6983
7055
  id: e,
6984
7056
  state: r = "default",
6985
7057
  disabled: n = !1,
@@ -6990,7 +7062,7 @@ const Ni = ({
6990
7062
  message: d = "",
6991
7063
  ...c
6992
7064
  }) => /* @__PURE__ */ i.jsx(
6993
- Yi,
7065
+ at,
6994
7066
  {
6995
7067
  id: e,
6996
7068
  state: r,
@@ -6999,23 +7071,104 @@ const Ni = ({
6999
7071
  optionalityLabel: o,
7000
7072
  helpText: a,
7001
7073
  message: d,
7002
- child: /* @__PURE__ */ i.jsx(Wi, { id: e, type: t, state: r, disabled: n, ...c })
7074
+ child: /* @__PURE__ */ i.jsx(
7075
+ Qi,
7076
+ {
7077
+ id: e,
7078
+ "aria-labelledby": s ? "label_" + e : void 0,
7079
+ "aria-describedby": a && a.length > 0 ? "helptext_" + e : void 0,
7080
+ type: t,
7081
+ state: r,
7082
+ disabled: n,
7083
+ ...c
7084
+ }
7085
+ )
7086
+ }
7087
+ ), Cl = el, rl = I(
7088
+ [
7089
+ "preflight",
7090
+ "ds-form-select",
7091
+ "ds-h-[40px]",
7092
+ "ds-rounded",
7093
+ "ds-p-2",
7094
+ "ds-border-[1px]",
7095
+ "!ds-font-sans",
7096
+ "ds-container",
7097
+ "ds-bg-[center_right_0.25rem]"
7098
+ ],
7099
+ Jr
7100
+ ), tl = (e) => rl(e), nl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%238C8C8C" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, sl = ({
7101
+ state: e = "default",
7102
+ disabled: r = !1,
7103
+ className: n = "",
7104
+ ...t
7105
+ }) => {
7106
+ let s = t.children;
7107
+ return r && (s = (k.isValidElement(t.children) ? k.Children.toArray(
7108
+ t.children.props.children
7109
+ ) : k.Children.toArray(t.children)).map((a) => k.isValidElement(a) ? k.cloneElement(a, {
7110
+ disabled: !0
7111
+ }) : a)), /* @__PURE__ */ i.jsx(
7112
+ "select",
7113
+ {
7114
+ "aria-readonly": r,
7115
+ tabIndex: r ? -1 : 0,
7116
+ style: { backgroundImage: nl },
7117
+ className: G(tl({ disabled: r, state: e }), n),
7118
+ ...t,
7119
+ children: s
7120
+ }
7121
+ );
7122
+ }, ol = sl, al = ({
7123
+ id: e,
7124
+ state: r = "default",
7125
+ disabled: n = !1,
7126
+ label: t,
7127
+ optionalityLabel: s = "",
7128
+ helpText: o = [],
7129
+ message: a = "",
7130
+ ...d
7131
+ }) => /* @__PURE__ */ i.jsx(
7132
+ at,
7133
+ {
7134
+ id: e,
7135
+ state: r,
7136
+ disabled: n,
7137
+ label: t,
7138
+ optionalityLabel: s,
7139
+ helpText: o,
7140
+ message: a,
7141
+ child: /* @__PURE__ */ i.jsx(
7142
+ ol,
7143
+ {
7144
+ id: e,
7145
+ "aria-labelledby": t ? "label_" + e : void 0,
7146
+ "aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
7147
+ state: r,
7148
+ disabled: n,
7149
+ ...d
7150
+ }
7151
+ )
7003
7152
  }
7004
- ), il = Zi;
7153
+ ), wl = al;
7005
7154
  export {
7006
- Xi as Alert,
7007
- al as Badge,
7008
- Qi as Button,
7009
- el as Card,
7010
- rl as Checkbox,
7011
- Zt as Heading,
7155
+ cl as Alert,
7156
+ bl as Badge,
7157
+ ul as Button,
7158
+ fl as Card,
7159
+ pl as Checkbox,
7160
+ wl as Dropdown,
7161
+ ol as DropdownAtom,
7162
+ Kt as Heading,
7012
7163
  Ve as Icon,
7013
7164
  Kr as IconButton,
7014
- Di as LabelAtom,
7015
- nl as Link,
7016
- ol as Modal,
7017
- tl as Radio,
7018
- il as TextInput,
7019
- Wi as TextInputAtom
7165
+ Ii as LabelAtom,
7166
+ ml as Link,
7167
+ vl as Modal,
7168
+ hl as Radio,
7169
+ Cl as TextInput,
7170
+ Qi as TextInputAtom,
7171
+ xl as Textarea,
7172
+ Zi as TextareaAtom
7020
7173
  };
7021
7174
  //# sourceMappingURL=index.es.js.map