@qodo/design-system 0.17.1 → 0.17.2

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.esm.js CHANGED
@@ -94,25 +94,25 @@ function wm() {
94
94
  function h(w) {
95
95
  if (w === null || typeof w != "object")
96
96
  return null;
97
- var $ = b && w[b] || w[v];
98
- return typeof $ == "function" ? $ : null;
97
+ var D = b && w[b] || w[v];
98
+ return typeof D == "function" ? D : null;
99
99
  }
100
100
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
101
101
  function x(w) {
102
102
  {
103
- for (var $ = arguments.length, q = new Array($ > 1 ? $ - 1 : 0), ne = 1; ne < $; ne++)
103
+ for (var D = arguments.length, q = new Array(D > 1 ? D - 1 : 0), ne = 1; ne < D; ne++)
104
104
  q[ne - 1] = arguments[ne];
105
105
  C("error", w, q);
106
106
  }
107
107
  }
108
- function C(w, $, q) {
108
+ function C(w, D, q) {
109
109
  {
110
110
  var ne = y.ReactDebugCurrentFrame, ue = ne.getStackAddendum();
111
- ue !== "" && ($ += "%s", q = q.concat([ue]));
111
+ ue !== "" && (D += "%s", q = q.concat([ue]));
112
112
  var fe = q.map(function(de) {
113
113
  return String(de);
114
114
  });
115
- fe.unshift("Warning: " + $), Function.prototype.apply.call(console[w], console, fe);
115
+ fe.unshift("Warning: " + D), Function.prototype.apply.call(console[w], console, fe);
116
116
  }
117
117
  }
118
118
  var S = !1, P = !1, k = !1, T = !1, R = !1, F;
@@ -124,17 +124,17 @@ function wm() {
124
124
  // with.
125
125
  w.$$typeof === F || w.getModuleId !== void 0));
126
126
  }
127
- function re(w, $, q) {
127
+ function re(w, D, q) {
128
128
  var ne = w.displayName;
129
129
  if (ne)
130
130
  return ne;
131
- var ue = $.displayName || $.name || "";
131
+ var ue = D.displayName || D.name || "";
132
132
  return ue !== "" ? q + "(" + ue + ")" : q;
133
133
  }
134
- function ee(w) {
134
+ function te(w) {
135
135
  return w.displayName || "Context";
136
136
  }
137
- function J(w) {
137
+ function Q(w) {
138
138
  if (w == null)
139
139
  return null;
140
140
  if (typeof w.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof w == "function")
@@ -158,20 +158,20 @@ function wm() {
158
158
  if (typeof w == "object")
159
159
  switch (w.$$typeof) {
160
160
  case l:
161
- var $ = w;
162
- return ee($) + ".Consumer";
161
+ var D = w;
162
+ return te(D) + ".Consumer";
163
163
  case i:
164
164
  var q = w;
165
- return ee(q._context) + ".Provider";
165
+ return te(q._context) + ".Provider";
166
166
  case d:
167
167
  return re(w, w.render, "ForwardRef");
168
168
  case p:
169
169
  var ne = w.displayName || null;
170
- return ne !== null ? ne : J(w.type) || "Memo";
170
+ return ne !== null ? ne : Q(w.type) || "Memo";
171
171
  case g: {
172
172
  var ue = w, fe = ue._payload, de = ue._init;
173
173
  try {
174
- return J(de(fe));
174
+ return Q(de(fe));
175
175
  } catch {
176
176
  return null;
177
177
  }
@@ -179,14 +179,14 @@ function wm() {
179
179
  }
180
180
  return null;
181
181
  }
182
- var z = Object.assign, D = 0, A, O, E, I, V, Z, N;
182
+ var W = Object.assign, O = 0, _, M, E, I, V, J, N;
183
183
  function B() {
184
184
  }
185
185
  B.__reactDisabledLog = !0;
186
- function X() {
186
+ function Z() {
187
187
  {
188
- if (D === 0) {
189
- A = console.log, O = console.info, E = console.warn, I = console.error, V = console.group, Z = console.groupCollapsed, N = console.groupEnd;
188
+ if (O === 0) {
189
+ _ = console.log, M = console.info, E = console.warn, I = console.error, V = console.group, J = console.groupCollapsed, N = console.groupEnd;
190
190
  var w = {
191
191
  configurable: !0,
192
192
  enumerable: !0,
@@ -203,65 +203,65 @@ function wm() {
203
203
  groupEnd: w
204
204
  });
205
205
  }
206
- D++;
206
+ O++;
207
207
  }
208
208
  }
209
- function M() {
209
+ function z() {
210
210
  {
211
- if (D--, D === 0) {
211
+ if (O--, O === 0) {
212
212
  var w = {
213
213
  configurable: !0,
214
214
  enumerable: !0,
215
215
  writable: !0
216
216
  };
217
217
  Object.defineProperties(console, {
218
- log: z({}, w, {
219
- value: A
218
+ log: W({}, w, {
219
+ value: _
220
220
  }),
221
- info: z({}, w, {
222
- value: O
221
+ info: W({}, w, {
222
+ value: M
223
223
  }),
224
- warn: z({}, w, {
224
+ warn: W({}, w, {
225
225
  value: E
226
226
  }),
227
- error: z({}, w, {
227
+ error: W({}, w, {
228
228
  value: I
229
229
  }),
230
- group: z({}, w, {
230
+ group: W({}, w, {
231
231
  value: V
232
232
  }),
233
- groupCollapsed: z({}, w, {
234
- value: Z
233
+ groupCollapsed: W({}, w, {
234
+ value: J
235
235
  }),
236
- groupEnd: z({}, w, {
236
+ groupEnd: W({}, w, {
237
237
  value: N
238
238
  })
239
239
  });
240
240
  }
241
- D < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
241
+ O < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
242
242
  }
243
243
  }
244
- var W = y.ReactCurrentDispatcher, _;
245
- function Q(w, $, q) {
244
+ var $ = y.ReactCurrentDispatcher, A;
245
+ function K(w, D, q) {
246
246
  {
247
- if (_ === void 0)
247
+ if (A === void 0)
248
248
  try {
249
249
  throw Error();
250
250
  } catch (ue) {
251
251
  var ne = ue.stack.trim().match(/\n( *(at )?)/);
252
- _ = ne && ne[1] || "";
252
+ A = ne && ne[1] || "";
253
253
  }
254
254
  return `
255
- ` + _ + w;
255
+ ` + A + w;
256
256
  }
257
257
  }
258
- var te = !1, oe;
258
+ var ee = !1, oe;
259
259
  {
260
260
  var ce = typeof WeakMap == "function" ? WeakMap : Map;
261
261
  oe = new ce();
262
262
  }
263
- function ie(w, $) {
264
- if (!w || te)
263
+ function ie(w, D) {
264
+ if (!w || ee)
265
265
  return "";
266
266
  {
267
267
  var q = oe.get(w);
@@ -269,13 +269,13 @@ function wm() {
269
269
  return q;
270
270
  }
271
271
  var ne;
272
- te = !0;
272
+ ee = !0;
273
273
  var ue = Error.prepareStackTrace;
274
274
  Error.prepareStackTrace = void 0;
275
275
  var fe;
276
- fe = W.current, W.current = null, X();
276
+ fe = $.current, $.current = null, Z();
277
277
  try {
278
- if ($) {
278
+ if (D) {
279
279
  var de = function() {
280
280
  throw Error();
281
281
  };
@@ -326,41 +326,41 @@ function wm() {
326
326
  }
327
327
  }
328
328
  } finally {
329
- te = !1, W.current = fe, M(), Error.prepareStackTrace = ue;
329
+ ee = !1, $.current = fe, z(), Error.prepareStackTrace = ue;
330
330
  }
331
- var Vt = w ? w.displayName || w.name : "", Rt = Vt ? Q(Vt) : "";
331
+ var Vt = w ? w.displayName || w.name : "", Rt = Vt ? K(Vt) : "";
332
332
  return typeof w == "function" && oe.set(w, Rt), Rt;
333
333
  }
334
- function Re(w, $, q) {
334
+ function Re(w, D, q) {
335
335
  return ie(w, !1);
336
336
  }
337
337
  function Me(w) {
338
- var $ = w.prototype;
339
- return !!($ && $.isReactComponent);
338
+ var D = w.prototype;
339
+ return !!(D && D.isReactComponent);
340
340
  }
341
- function Ue(w, $, q) {
341
+ function Ue(w, D, q) {
342
342
  if (w == null)
343
343
  return "";
344
344
  if (typeof w == "function")
345
345
  return ie(w, Me(w));
346
346
  if (typeof w == "string")
347
- return Q(w);
347
+ return K(w);
348
348
  switch (w) {
349
349
  case u:
350
- return Q("Suspense");
350
+ return K("Suspense");
351
351
  case f:
352
- return Q("SuspenseList");
352
+ return K("SuspenseList");
353
353
  }
354
354
  if (typeof w == "object")
355
355
  switch (w.$$typeof) {
356
356
  case d:
357
357
  return Re(w.render);
358
358
  case p:
359
- return Ue(w.type, $, q);
359
+ return Ue(w.type, D, q);
360
360
  case g: {
361
361
  var ne = w, ue = ne._payload, fe = ne._init;
362
362
  try {
363
- return Ue(fe(ue), $, q);
363
+ return Ue(fe(ue), D, q);
364
364
  } catch {
365
365
  }
366
366
  }
@@ -370,12 +370,12 @@ function wm() {
370
370
  var $e = Object.prototype.hasOwnProperty, it = {}, qr = y.ReactDebugCurrentFrame;
371
371
  function tt(w) {
372
372
  if (w) {
373
- var $ = w._owner, q = Ue(w.type, w._source, $ ? $.type : null);
373
+ var D = w._owner, q = Ue(w.type, w._source, D ? D.type : null);
374
374
  qr.setExtraStackFrame(q);
375
375
  } else
376
376
  qr.setExtraStackFrame(null);
377
377
  }
378
- function Up(w, $, q, ne, ue) {
378
+ function Up(w, D, q, ne, ue) {
379
379
  {
380
380
  var fe = Function.call.bind($e);
381
381
  for (var de in w)
@@ -386,7 +386,7 @@ function wm() {
386
386
  var Pe = Error((ne || "React class") + ": " + q + " type `" + de + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[de] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
387
387
  throw Pe.name = "Invariant Violation", Pe;
388
388
  }
389
- le = w[de]($, de, ne, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
389
+ le = w[de](D, de, ne, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
390
390
  } catch (ge) {
391
391
  le = ge;
392
392
  }
@@ -400,7 +400,7 @@ function wm() {
400
400
  }
401
401
  function Kp(w) {
402
402
  {
403
- var $ = typeof Symbol == "function" && Symbol.toStringTag, q = $ && w[Symbol.toStringTag] || w.constructor.name || "Object";
403
+ var D = typeof Symbol == "function" && Symbol.toStringTag, q = D && w[Symbol.toStringTag] || w.constructor.name || "Object";
404
404
  return q;
405
405
  }
406
406
  }
@@ -426,27 +426,27 @@ function wm() {
426
426
  }, ds, us;
427
427
  function Zp(w) {
428
428
  if ($e.call(w, "ref")) {
429
- var $ = Object.getOwnPropertyDescriptor(w, "ref").get;
430
- if ($ && $.isReactWarning)
429
+ var D = Object.getOwnPropertyDescriptor(w, "ref").get;
430
+ if (D && D.isReactWarning)
431
431
  return !1;
432
432
  }
433
433
  return w.ref !== void 0;
434
434
  }
435
435
  function Jp(w) {
436
436
  if ($e.call(w, "key")) {
437
- var $ = Object.getOwnPropertyDescriptor(w, "key").get;
438
- if ($ && $.isReactWarning)
437
+ var D = Object.getOwnPropertyDescriptor(w, "key").get;
438
+ if (D && D.isReactWarning)
439
439
  return !1;
440
440
  }
441
441
  return w.key !== void 0;
442
442
  }
443
- function Qp(w, $) {
443
+ function Qp(w, D) {
444
444
  typeof w.ref == "string" && cs.current;
445
445
  }
446
- function em(w, $) {
446
+ function em(w, D) {
447
447
  {
448
448
  var q = function() {
449
- ds || (ds = !0, x("%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)", $));
449
+ ds || (ds = !0, x("%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)", D));
450
450
  };
451
451
  q.isReactWarning = !0, Object.defineProperty(w, "key", {
452
452
  get: q,
@@ -454,10 +454,10 @@ function wm() {
454
454
  });
455
455
  }
456
456
  }
457
- function tm(w, $) {
457
+ function tm(w, D) {
458
458
  {
459
459
  var q = function() {
460
- us || (us = !0, x("%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)", $));
460
+ us || (us = !0, x("%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)", D));
461
461
  };
462
462
  q.isReactWarning = !0, Object.defineProperty(w, "ref", {
463
463
  get: q,
@@ -465,13 +465,13 @@ function wm() {
465
465
  });
466
466
  }
467
467
  }
468
- var rm = function(w, $, q, ne, ue, fe, de) {
468
+ var rm = function(w, D, q, ne, ue, fe, de) {
469
469
  var le = {
470
470
  // This tag allows us to uniquely identify this as a React Element
471
471
  $$typeof: t,
472
472
  // Built-in properties that belong on the element
473
473
  type: w,
474
- key: $,
474
+ key: D,
475
475
  ref: q,
476
476
  props: de,
477
477
  // Record the component responsible for creating this element.
@@ -494,12 +494,12 @@ function wm() {
494
494
  value: ue
495
495
  }), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le;
496
496
  };
497
- function nm(w, $, q, ne, ue) {
497
+ function nm(w, D, q, ne, ue) {
498
498
  {
499
499
  var fe, de = {}, le = null, Pe = null;
500
- q !== void 0 && (ls(q), le = "" + q), Jp($) && (ls($.key), le = "" + $.key), Zp($) && (Pe = $.ref, Qp($, ue));
501
- for (fe in $)
502
- $e.call($, fe) && !Xp.hasOwnProperty(fe) && (de[fe] = $[fe]);
500
+ q !== void 0 && (ls(q), le = "" + q), Jp(D) && (ls(D.key), le = "" + D.key), Zp(D) && (Pe = D.ref, Qp(D, ue));
501
+ for (fe in D)
502
+ $e.call(D, fe) && !Xp.hasOwnProperty(fe) && (de[fe] = D[fe]);
503
503
  if (w && w.defaultProps) {
504
504
  var ge = w.defaultProps;
505
505
  for (fe in ge)
@@ -515,7 +515,7 @@ function wm() {
515
515
  var io = y.ReactCurrentOwner, fs = y.ReactDebugCurrentFrame;
516
516
  function Ft(w) {
517
517
  if (w) {
518
- var $ = w._owner, q = Ue(w.type, w._source, $ ? $.type : null);
518
+ var D = w._owner, q = Ue(w.type, w._source, D ? D.type : null);
519
519
  fs.setExtraStackFrame(q);
520
520
  } else
521
521
  fs.setExtraStackFrame(null);
@@ -528,7 +528,7 @@ function wm() {
528
528
  function ps() {
529
529
  {
530
530
  if (io.current) {
531
- var w = J(io.current.type);
531
+ var w = Q(io.current.type);
532
532
  if (w)
533
533
  return `
534
534
 
@@ -543,37 +543,37 @@ Check the render method of \`` + w + "`.";
543
543
  var ms = {};
544
544
  function am(w) {
545
545
  {
546
- var $ = ps();
547
- if (!$) {
546
+ var D = ps();
547
+ if (!D) {
548
548
  var q = typeof w == "string" ? w : w.displayName || w.name;
549
- q && ($ = `
549
+ q && (D = `
550
550
 
551
551
  Check the top-level render call using <` + q + ">.");
552
552
  }
553
- return $;
553
+ return D;
554
554
  }
555
555
  }
556
- function gs(w, $) {
556
+ function gs(w, D) {
557
557
  {
558
558
  if (!w._store || w._store.validated || w.key != null)
559
559
  return;
560
560
  w._store.validated = !0;
561
- var q = am($);
561
+ var q = am(D);
562
562
  if (ms[q])
563
563
  return;
564
564
  ms[q] = !0;
565
565
  var ne = "";
566
- w && w._owner && w._owner !== io.current && (ne = " It was passed a child from " + J(w._owner.type) + "."), Ft(w), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, ne), Ft(null);
566
+ w && w._owner && w._owner !== io.current && (ne = " It was passed a child from " + Q(w._owner.type) + "."), Ft(w), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, ne), Ft(null);
567
567
  }
568
568
  }
569
- function vs(w, $) {
569
+ function vs(w, D) {
570
570
  {
571
571
  if (typeof w != "object")
572
572
  return;
573
573
  if (so(w))
574
574
  for (var q = 0; q < w.length; q++) {
575
575
  var ne = w[q];
576
- co(ne) && gs(ne, $);
576
+ co(ne) && gs(ne, D);
577
577
  }
578
578
  else if (co(w))
579
579
  w._store && (w._store.validated = !0);
@@ -581,39 +581,39 @@ Check the top-level render call using <` + q + ">.");
581
581
  var ue = h(w);
582
582
  if (typeof ue == "function" && ue !== w.entries)
583
583
  for (var fe = ue.call(w), de; !(de = fe.next()).done; )
584
- co(de.value) && gs(de.value, $);
584
+ co(de.value) && gs(de.value, D);
585
585
  }
586
586
  }
587
587
  }
588
588
  function sm(w) {
589
589
  {
590
- var $ = w.type;
591
- if ($ == null || typeof $ == "string")
590
+ var D = w.type;
591
+ if (D == null || typeof D == "string")
592
592
  return;
593
593
  var q;
594
- if (typeof $ == "function")
595
- q = $.propTypes;
596
- else if (typeof $ == "object" && ($.$$typeof === d || // Note: Memo only checks outer props here.
594
+ if (typeof D == "function")
595
+ q = D.propTypes;
596
+ else if (typeof D == "object" && (D.$$typeof === d || // Note: Memo only checks outer props here.
597
597
  // Inner props are checked in the reconciler.
598
- $.$$typeof === p))
599
- q = $.propTypes;
598
+ D.$$typeof === p))
599
+ q = D.propTypes;
600
600
  else
601
601
  return;
602
602
  if (q) {
603
- var ne = J($);
603
+ var ne = Q(D);
604
604
  Up(q, w.props, "prop", ne, w);
605
- } else if ($.PropTypes !== void 0 && !lo) {
605
+ } else if (D.PropTypes !== void 0 && !lo) {
606
606
  lo = !0;
607
- var ue = J($);
607
+ var ue = Q(D);
608
608
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ue || "Unknown");
609
609
  }
610
- typeof $.getDefaultProps == "function" && !$.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
610
+ typeof D.getDefaultProps == "function" && !D.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
611
611
  }
612
612
  }
613
613
  function im(w) {
614
614
  {
615
- for (var $ = Object.keys(w.props), q = 0; q < $.length; q++) {
616
- var ne = $[q];
615
+ for (var D = Object.keys(w.props), q = 0; q < D.length; q++) {
616
+ var ne = D[q];
617
617
  if (ne !== "children" && ne !== "key") {
618
618
  Ft(w), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ft(null);
619
619
  break;
@@ -623,7 +623,7 @@ Check the top-level render call using <` + q + ">.");
623
623
  }
624
624
  }
625
625
  var hs = {};
626
- function xs(w, $, q, ne, ue, fe) {
626
+ function xs(w, D, q, ne, ue, fe) {
627
627
  {
628
628
  var de = U(w);
629
629
  if (!de) {
@@ -632,13 +632,13 @@ Check the top-level render call using <` + q + ">.");
632
632
  var Pe = om();
633
633
  Pe ? le += Pe : le += ps();
634
634
  var ge;
635
- w === null ? ge = "null" : so(w) ? ge = "array" : w !== void 0 && w.$$typeof === t ? (ge = "<" + (J(w.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof w, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, le);
635
+ w === null ? ge = "null" : so(w) ? ge = "array" : w !== void 0 && w.$$typeof === t ? (ge = "<" + (Q(w.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof w, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, le);
636
636
  }
637
- var he = nm(w, $, q, ue, fe);
637
+ var he = nm(w, D, q, ue, fe);
638
638
  if (he == null)
639
639
  return he;
640
640
  if (de) {
641
- var Oe = $.children;
641
+ var Oe = D.children;
642
642
  if (Oe !== void 0)
643
643
  if (ne)
644
644
  if (so(Oe)) {
@@ -650,8 +650,8 @@ Check the top-level render call using <` + q + ">.");
650
650
  else
651
651
  vs(Oe, w);
652
652
  }
653
- if ($e.call($, "key")) {
654
- var Rt = J(w), Ne = Object.keys($).filter(function(pm) {
653
+ if ($e.call(D, "key")) {
654
+ var Rt = Q(w), Ne = Object.keys(D).filter(function(pm) {
655
655
  return pm !== "key";
656
656
  }), uo = Ne.length > 0 ? "{key: someKey, " + Ne.join(": ..., ") + ": ...}" : "{key: someKey}";
657
657
  if (!hs[Rt + uo]) {
@@ -667,11 +667,11 @@ React keys must be passed directly to JSX without using spread:
667
667
  return w === n ? im(he) : sm(he), he;
668
668
  }
669
669
  }
670
- function lm(w, $, q) {
671
- return xs(w, $, q, !0);
670
+ function lm(w, D, q) {
671
+ return xs(w, D, q, !0);
672
672
  }
673
- function cm(w, $, q) {
674
- return xs(w, $, q, !1);
673
+ function cm(w, D, q) {
674
+ return xs(w, D, q, !1);
675
675
  }
676
676
  var dm = cm, um = lm;
677
677
  ur.Fragment = n, ur.jsx = dm, ur.jsxs = um;
@@ -971,7 +971,7 @@ const xe = (e) => {
971
971
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
972
972
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
973
973
  Fm.test(e) && !Vm.test(e)
974
- ), zi = () => !1, qm = (e) => Bm.test(e), Um = (e) => Gm.test(e), Hm = (e) => !K(e) && !Y(e), Km = (e) => tr(e, Hi, zi), K = (e) => Gi.test(e), Pt = (e) => tr(e, Ki, zm), po = (e) => tr(e, Qm, ae), Ps = (e) => tr(e, qi, zi), Ym = (e) => tr(e, Ui, Um), Hr = (e) => tr(e, Yi, qm), Y = (e) => Wi.test(e), fr = (e) => rr(e, Ki), Xm = (e) => rr(e, eg), js = (e) => rr(e, qi), Zm = (e) => rr(e, Hi), Jm = (e) => rr(e, Ui), Kr = (e) => rr(e, Yi, !0), tr = (e, t, r) => {
974
+ ), zi = () => !1, qm = (e) => Bm.test(e), Um = (e) => Gm.test(e), Hm = (e) => !Y(e) && !X(e), Km = (e) => tr(e, Hi, zi), Y = (e) => Gi.test(e), Pt = (e) => tr(e, Ki, zm), po = (e) => tr(e, Qm, ae), Ps = (e) => tr(e, qi, zi), Ym = (e) => tr(e, Ui, Um), Hr = (e) => tr(e, Yi, qm), X = (e) => Wi.test(e), fr = (e) => rr(e, Ki), Xm = (e) => rr(e, eg), js = (e) => rr(e, qi), Zm = (e) => rr(e, Hi), Jm = (e) => rr(e, Ui), Kr = (e) => rr(e, Yi, !0), tr = (e, t, r) => {
975
975
  const n = Gi.exec(e);
976
976
  return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
977
977
  }, rr = (e, t, r = !1) => {
@@ -996,30 +996,30 @@ const xe = (e) => {
996
996
  "bottom-left",
997
997
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
998
998
  "left-bottom"
999
- ], P = () => [...S(), Y, K], k = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], R = () => [Y, K, d], F = () => [Bt, "full", "auto", ...R()], U = () => [lt, "none", "subgrid", Y, K], re = () => ["auto", {
1000
- span: ["full", lt, Y, K]
1001
- }, lt, Y, K], ee = () => [lt, "auto", Y, K], J = () => ["auto", "min", "max", "fr", Y, K], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...R()], O = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], E = () => [e, Y, K], I = () => [...S(), js, Ps, {
1002
- position: [Y, K]
999
+ ], P = () => [...S(), X, Y], k = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], R = () => [X, Y, d], F = () => [Bt, "full", "auto", ...R()], U = () => [lt, "none", "subgrid", X, Y], re = () => ["auto", {
1000
+ span: ["full", lt, X, Y]
1001
+ }, lt, X, Y], te = () => [lt, "auto", X, Y], Q = () => ["auto", "min", "max", "fr", X, Y], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...R()], M = () => [Bt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], E = () => [e, X, Y], I = () => [...S(), js, Ps, {
1002
+ position: [X, Y]
1003
1003
  }], V = () => ["no-repeat", {
1004
1004
  repeat: ["", "x", "y", "space", "round"]
1005
- }], Z = () => ["auto", "cover", "contain", Zm, Km, {
1006
- size: [Y, K]
1005
+ }], J = () => ["auto", "cover", "contain", Zm, Km, {
1006
+ size: [X, Y]
1007
1007
  }], N = () => [fo, fr, Pt], B = () => [
1008
1008
  // Deprecated since Tailwind CSS v4.0.0
1009
1009
  "",
1010
1010
  "none",
1011
1011
  "full",
1012
1012
  u,
1013
- Y,
1014
- K
1015
- ], X = () => ["", ae, fr, Pt], M = () => ["solid", "dashed", "dotted", "double"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], _ = () => [ae, fo, js, Ps], Q = () => [
1013
+ X,
1014
+ Y
1015
+ ], Z = () => ["", ae, fr, Pt], z = () => ["solid", "dashed", "dotted", "double"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], A = () => [ae, fo, js, Ps], K = () => [
1016
1016
  // Deprecated since Tailwind CSS v4.0.0
1017
1017
  "",
1018
1018
  "none",
1019
1019
  b,
1020
- Y,
1021
- K
1022
- ], te = () => ["none", ae, Y, K], oe = () => ["none", ae, Y, K], ce = () => [ae, Y, K], ie = () => [Bt, "full", ...R()];
1020
+ X,
1021
+ Y
1022
+ ], ee = () => ["none", ae, X, Y], oe = () => ["none", ae, X, Y], ce = () => [ae, X, Y], ie = () => [Bt, "full", ...R()];
1023
1023
  return {
1024
1024
  cacheSize: 500,
1025
1025
  theme: {
@@ -1052,7 +1052,7 @@ const xe = (e) => {
1052
1052
  * @see https://tailwindcss.com/docs/aspect-ratio
1053
1053
  */
1054
1054
  aspect: [{
1055
- aspect: ["auto", "square", Bt, K, Y, h]
1055
+ aspect: ["auto", "square", Bt, Y, X, h]
1056
1056
  }],
1057
1057
  /**
1058
1058
  * Container
@@ -1065,7 +1065,7 @@ const xe = (e) => {
1065
1065
  * @see https://tailwindcss.com/docs/columns
1066
1066
  */
1067
1067
  columns: [{
1068
- columns: [ae, K, Y, l]
1068
+ columns: [ae, Y, X, l]
1069
1069
  }],
1070
1070
  /**
1071
1071
  * Break After
@@ -1265,7 +1265,7 @@ const xe = (e) => {
1265
1265
  * @see https://tailwindcss.com/docs/z-index
1266
1266
  */
1267
1267
  z: [{
1268
- z: [lt, "auto", Y, K]
1268
+ z: [lt, "auto", X, Y]
1269
1269
  }],
1270
1270
  // ------------------------
1271
1271
  // --- Flexbox and Grid ---
@@ -1296,28 +1296,28 @@ const xe = (e) => {
1296
1296
  * @see https://tailwindcss.com/docs/flex
1297
1297
  */
1298
1298
  flex: [{
1299
- flex: [ae, Bt, "auto", "initial", "none", K]
1299
+ flex: [ae, Bt, "auto", "initial", "none", Y]
1300
1300
  }],
1301
1301
  /**
1302
1302
  * Flex Grow
1303
1303
  * @see https://tailwindcss.com/docs/flex-grow
1304
1304
  */
1305
1305
  grow: [{
1306
- grow: ["", ae, Y, K]
1306
+ grow: ["", ae, X, Y]
1307
1307
  }],
1308
1308
  /**
1309
1309
  * Flex Shrink
1310
1310
  * @see https://tailwindcss.com/docs/flex-shrink
1311
1311
  */
1312
1312
  shrink: [{
1313
- shrink: ["", ae, Y, K]
1313
+ shrink: ["", ae, X, Y]
1314
1314
  }],
1315
1315
  /**
1316
1316
  * Order
1317
1317
  * @see https://tailwindcss.com/docs/order
1318
1318
  */
1319
1319
  order: [{
1320
- order: [lt, "first", "last", "none", Y, K]
1320
+ order: [lt, "first", "last", "none", X, Y]
1321
1321
  }],
1322
1322
  /**
1323
1323
  * Grid Template Columns
@@ -1338,14 +1338,14 @@ const xe = (e) => {
1338
1338
  * @see https://tailwindcss.com/docs/grid-column
1339
1339
  */
1340
1340
  "col-start": [{
1341
- "col-start": ee()
1341
+ "col-start": te()
1342
1342
  }],
1343
1343
  /**
1344
1344
  * Grid Column End
1345
1345
  * @see https://tailwindcss.com/docs/grid-column
1346
1346
  */
1347
1347
  "col-end": [{
1348
- "col-end": ee()
1348
+ "col-end": te()
1349
1349
  }],
1350
1350
  /**
1351
1351
  * Grid Template Rows
@@ -1366,14 +1366,14 @@ const xe = (e) => {
1366
1366
  * @see https://tailwindcss.com/docs/grid-row
1367
1367
  */
1368
1368
  "row-start": [{
1369
- "row-start": ee()
1369
+ "row-start": te()
1370
1370
  }],
1371
1371
  /**
1372
1372
  * Grid Row End
1373
1373
  * @see https://tailwindcss.com/docs/grid-row
1374
1374
  */
1375
1375
  "row-end": [{
1376
- "row-end": ee()
1376
+ "row-end": te()
1377
1377
  }],
1378
1378
  /**
1379
1379
  * Grid Auto Flow
@@ -1387,14 +1387,14 @@ const xe = (e) => {
1387
1387
  * @see https://tailwindcss.com/docs/grid-auto-columns
1388
1388
  */
1389
1389
  "auto-cols": [{
1390
- "auto-cols": J()
1390
+ "auto-cols": Q()
1391
1391
  }],
1392
1392
  /**
1393
1393
  * Grid Auto Rows
1394
1394
  * @see https://tailwindcss.com/docs/grid-auto-rows
1395
1395
  */
1396
1396
  "auto-rows": [{
1397
- "auto-rows": J()
1397
+ "auto-rows": Q()
1398
1398
  }],
1399
1399
  /**
1400
1400
  * Gap
@@ -1422,35 +1422,35 @@ const xe = (e) => {
1422
1422
  * @see https://tailwindcss.com/docs/justify-content
1423
1423
  */
1424
1424
  "justify-content": [{
1425
- justify: [...z(), "normal"]
1425
+ justify: [...W(), "normal"]
1426
1426
  }],
1427
1427
  /**
1428
1428
  * Justify Items
1429
1429
  * @see https://tailwindcss.com/docs/justify-items
1430
1430
  */
1431
1431
  "justify-items": [{
1432
- "justify-items": [...D(), "normal"]
1432
+ "justify-items": [...O(), "normal"]
1433
1433
  }],
1434
1434
  /**
1435
1435
  * Justify Self
1436
1436
  * @see https://tailwindcss.com/docs/justify-self
1437
1437
  */
1438
1438
  "justify-self": [{
1439
- "justify-self": ["auto", ...D()]
1439
+ "justify-self": ["auto", ...O()]
1440
1440
  }],
1441
1441
  /**
1442
1442
  * Align Content
1443
1443
  * @see https://tailwindcss.com/docs/align-content
1444
1444
  */
1445
1445
  "align-content": [{
1446
- content: ["normal", ...z()]
1446
+ content: ["normal", ...W()]
1447
1447
  }],
1448
1448
  /**
1449
1449
  * Align Items
1450
1450
  * @see https://tailwindcss.com/docs/align-items
1451
1451
  */
1452
1452
  "align-items": [{
1453
- items: [...D(), {
1453
+ items: [...O(), {
1454
1454
  baseline: ["", "last"]
1455
1455
  }]
1456
1456
  }],
@@ -1459,7 +1459,7 @@ const xe = (e) => {
1459
1459
  * @see https://tailwindcss.com/docs/align-self
1460
1460
  */
1461
1461
  "align-self": [{
1462
- self: ["auto", ...D(), {
1462
+ self: ["auto", ...O(), {
1463
1463
  baseline: ["", "last"]
1464
1464
  }]
1465
1465
  }],
@@ -1468,21 +1468,21 @@ const xe = (e) => {
1468
1468
  * @see https://tailwindcss.com/docs/place-content
1469
1469
  */
1470
1470
  "place-content": [{
1471
- "place-content": z()
1471
+ "place-content": W()
1472
1472
  }],
1473
1473
  /**
1474
1474
  * Place Items
1475
1475
  * @see https://tailwindcss.com/docs/place-items
1476
1476
  */
1477
1477
  "place-items": [{
1478
- "place-items": [...D(), "baseline"]
1478
+ "place-items": [...O(), "baseline"]
1479
1479
  }],
1480
1480
  /**
1481
1481
  * Place Self
1482
1482
  * @see https://tailwindcss.com/docs/place-self
1483
1483
  */
1484
1484
  "place-self": [{
1485
- "place-self": ["auto", ...D()]
1485
+ "place-self": ["auto", ...O()]
1486
1486
  }],
1487
1487
  // Spacing
1488
1488
  /**
@@ -1553,63 +1553,63 @@ const xe = (e) => {
1553
1553
  * @see https://tailwindcss.com/docs/margin
1554
1554
  */
1555
1555
  m: [{
1556
- m: A()
1556
+ m: _()
1557
1557
  }],
1558
1558
  /**
1559
1559
  * Margin X
1560
1560
  * @see https://tailwindcss.com/docs/margin
1561
1561
  */
1562
1562
  mx: [{
1563
- mx: A()
1563
+ mx: _()
1564
1564
  }],
1565
1565
  /**
1566
1566
  * Margin Y
1567
1567
  * @see https://tailwindcss.com/docs/margin
1568
1568
  */
1569
1569
  my: [{
1570
- my: A()
1570
+ my: _()
1571
1571
  }],
1572
1572
  /**
1573
1573
  * Margin Start
1574
1574
  * @see https://tailwindcss.com/docs/margin
1575
1575
  */
1576
1576
  ms: [{
1577
- ms: A()
1577
+ ms: _()
1578
1578
  }],
1579
1579
  /**
1580
1580
  * Margin End
1581
1581
  * @see https://tailwindcss.com/docs/margin
1582
1582
  */
1583
1583
  me: [{
1584
- me: A()
1584
+ me: _()
1585
1585
  }],
1586
1586
  /**
1587
1587
  * Margin Top
1588
1588
  * @see https://tailwindcss.com/docs/margin
1589
1589
  */
1590
1590
  mt: [{
1591
- mt: A()
1591
+ mt: _()
1592
1592
  }],
1593
1593
  /**
1594
1594
  * Margin Right
1595
1595
  * @see https://tailwindcss.com/docs/margin
1596
1596
  */
1597
1597
  mr: [{
1598
- mr: A()
1598
+ mr: _()
1599
1599
  }],
1600
1600
  /**
1601
1601
  * Margin Bottom
1602
1602
  * @see https://tailwindcss.com/docs/margin
1603
1603
  */
1604
1604
  mb: [{
1605
- mb: A()
1605
+ mb: _()
1606
1606
  }],
1607
1607
  /**
1608
1608
  * Margin Left
1609
1609
  * @see https://tailwindcss.com/docs/margin
1610
1610
  */
1611
1611
  ml: [{
1612
- ml: A()
1612
+ ml: _()
1613
1613
  }],
1614
1614
  /**
1615
1615
  * Space Between X
@@ -1643,14 +1643,14 @@ const xe = (e) => {
1643
1643
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1644
1644
  */
1645
1645
  size: [{
1646
- size: O()
1646
+ size: M()
1647
1647
  }],
1648
1648
  /**
1649
1649
  * Width
1650
1650
  * @see https://tailwindcss.com/docs/width
1651
1651
  */
1652
1652
  w: [{
1653
- w: [l, "screen", ...O()]
1653
+ w: [l, "screen", ...M()]
1654
1654
  }],
1655
1655
  /**
1656
1656
  * Min-Width
@@ -1662,7 +1662,7 @@ const xe = (e) => {
1662
1662
  "screen",
1663
1663
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1664
1664
  "none",
1665
- ...O()
1665
+ ...M()
1666
1666
  ]
1667
1667
  }],
1668
1668
  /**
@@ -1680,7 +1680,7 @@ const xe = (e) => {
1680
1680
  {
1681
1681
  screen: [i]
1682
1682
  },
1683
- ...O()
1683
+ ...M()
1684
1684
  ]
1685
1685
  }],
1686
1686
  /**
@@ -1688,21 +1688,21 @@ const xe = (e) => {
1688
1688
  * @see https://tailwindcss.com/docs/height
1689
1689
  */
1690
1690
  h: [{
1691
- h: ["screen", "lh", ...O()]
1691
+ h: ["screen", "lh", ...M()]
1692
1692
  }],
1693
1693
  /**
1694
1694
  * Min-Height
1695
1695
  * @see https://tailwindcss.com/docs/min-height
1696
1696
  */
1697
1697
  "min-h": [{
1698
- "min-h": ["screen", "lh", "none", ...O()]
1698
+ "min-h": ["screen", "lh", "none", ...M()]
1699
1699
  }],
1700
1700
  /**
1701
1701
  * Max-Height
1702
1702
  * @see https://tailwindcss.com/docs/max-height
1703
1703
  */
1704
1704
  "max-h": [{
1705
- "max-h": ["screen", "lh", ...O()]
1705
+ "max-h": ["screen", "lh", ...M()]
1706
1706
  }],
1707
1707
  // ------------------
1708
1708
  // --- Typography ---
@@ -1729,21 +1729,21 @@ const xe = (e) => {
1729
1729
  * @see https://tailwindcss.com/docs/font-weight
1730
1730
  */
1731
1731
  "font-weight": [{
1732
- font: [n, Y, po]
1732
+ font: [n, X, po]
1733
1733
  }],
1734
1734
  /**
1735
1735
  * Font Stretch
1736
1736
  * @see https://tailwindcss.com/docs/font-stretch
1737
1737
  */
1738
1738
  "font-stretch": [{
1739
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fo, K]
1739
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", fo, Y]
1740
1740
  }],
1741
1741
  /**
1742
1742
  * Font Family
1743
1743
  * @see https://tailwindcss.com/docs/font-family
1744
1744
  */
1745
1745
  "font-family": [{
1746
- font: [Xm, K, t]
1746
+ font: [Xm, Y, t]
1747
1747
  }],
1748
1748
  /**
1749
1749
  * Font Variant Numeric
@@ -1780,14 +1780,14 @@ const xe = (e) => {
1780
1780
  * @see https://tailwindcss.com/docs/letter-spacing
1781
1781
  */
1782
1782
  tracking: [{
1783
- tracking: [o, Y, K]
1783
+ tracking: [o, X, Y]
1784
1784
  }],
1785
1785
  /**
1786
1786
  * Line Clamp
1787
1787
  * @see https://tailwindcss.com/docs/line-clamp
1788
1788
  */
1789
1789
  "line-clamp": [{
1790
- "line-clamp": [ae, "none", Y, po]
1790
+ "line-clamp": [ae, "none", X, po]
1791
1791
  }],
1792
1792
  /**
1793
1793
  * Line Height
@@ -1805,7 +1805,7 @@ const xe = (e) => {
1805
1805
  * @see https://tailwindcss.com/docs/list-style-image
1806
1806
  */
1807
1807
  "list-image": [{
1808
- "list-image": ["none", Y, K]
1808
+ "list-image": ["none", X, Y]
1809
1809
  }],
1810
1810
  /**
1811
1811
  * List Style Position
@@ -1819,7 +1819,7 @@ const xe = (e) => {
1819
1819
  * @see https://tailwindcss.com/docs/list-style-type
1820
1820
  */
1821
1821
  "list-style-type": [{
1822
- list: ["disc", "decimal", "none", Y, K]
1822
+ list: ["disc", "decimal", "none", X, Y]
1823
1823
  }],
1824
1824
  /**
1825
1825
  * Text Alignment
@@ -1853,14 +1853,14 @@ const xe = (e) => {
1853
1853
  * @see https://tailwindcss.com/docs/text-decoration-style
1854
1854
  */
1855
1855
  "text-decoration-style": [{
1856
- decoration: [...M(), "wavy"]
1856
+ decoration: [...z(), "wavy"]
1857
1857
  }],
1858
1858
  /**
1859
1859
  * Text Decoration Thickness
1860
1860
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1861
1861
  */
1862
1862
  "text-decoration-thickness": [{
1863
- decoration: [ae, "from-font", "auto", Y, Pt]
1863
+ decoration: [ae, "from-font", "auto", X, Pt]
1864
1864
  }],
1865
1865
  /**
1866
1866
  * Text Decoration Color
@@ -1874,7 +1874,7 @@ const xe = (e) => {
1874
1874
  * @see https://tailwindcss.com/docs/text-underline-offset
1875
1875
  */
1876
1876
  "underline-offset": [{
1877
- "underline-offset": [ae, "auto", Y, K]
1877
+ "underline-offset": [ae, "auto", X, Y]
1878
1878
  }],
1879
1879
  /**
1880
1880
  * Text Transform
@@ -1905,7 +1905,7 @@ const xe = (e) => {
1905
1905
  * @see https://tailwindcss.com/docs/vertical-align
1906
1906
  */
1907
1907
  "vertical-align": [{
1908
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", Y, K]
1908
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", X, Y]
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Whitespace
@@ -1940,7 +1940,7 @@ const xe = (e) => {
1940
1940
  * @see https://tailwindcss.com/docs/content
1941
1941
  */
1942
1942
  content: [{
1943
- content: ["none", Y, K]
1943
+ content: ["none", X, Y]
1944
1944
  }],
1945
1945
  // -------------------
1946
1946
  // --- Backgrounds ---
@@ -1985,7 +1985,7 @@ const xe = (e) => {
1985
1985
  * @see https://tailwindcss.com/docs/background-size
1986
1986
  */
1987
1987
  "bg-size": [{
1988
- bg: Z()
1988
+ bg: J()
1989
1989
  }],
1990
1990
  /**
1991
1991
  * Background Image
@@ -1995,9 +1995,9 @@ const xe = (e) => {
1995
1995
  bg: ["none", {
1996
1996
  linear: [{
1997
1997
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1998
- }, lt, Y, K],
1999
- radial: ["", Y, K],
2000
- conic: [lt, Y, K]
1998
+ }, lt, X, Y],
1999
+ radial: ["", X, Y],
2000
+ conic: [lt, X, Y]
2001
2001
  }, Jm, Ym]
2002
2002
  }],
2003
2003
  /**
@@ -2162,70 +2162,70 @@ const xe = (e) => {
2162
2162
  * @see https://tailwindcss.com/docs/border-width
2163
2163
  */
2164
2164
  "border-w": [{
2165
- border: X()
2165
+ border: Z()
2166
2166
  }],
2167
2167
  /**
2168
2168
  * Border Width X
2169
2169
  * @see https://tailwindcss.com/docs/border-width
2170
2170
  */
2171
2171
  "border-w-x": [{
2172
- "border-x": X()
2172
+ "border-x": Z()
2173
2173
  }],
2174
2174
  /**
2175
2175
  * Border Width Y
2176
2176
  * @see https://tailwindcss.com/docs/border-width
2177
2177
  */
2178
2178
  "border-w-y": [{
2179
- "border-y": X()
2179
+ "border-y": Z()
2180
2180
  }],
2181
2181
  /**
2182
2182
  * Border Width Start
2183
2183
  * @see https://tailwindcss.com/docs/border-width
2184
2184
  */
2185
2185
  "border-w-s": [{
2186
- "border-s": X()
2186
+ "border-s": Z()
2187
2187
  }],
2188
2188
  /**
2189
2189
  * Border Width End
2190
2190
  * @see https://tailwindcss.com/docs/border-width
2191
2191
  */
2192
2192
  "border-w-e": [{
2193
- "border-e": X()
2193
+ "border-e": Z()
2194
2194
  }],
2195
2195
  /**
2196
2196
  * Border Width Top
2197
2197
  * @see https://tailwindcss.com/docs/border-width
2198
2198
  */
2199
2199
  "border-w-t": [{
2200
- "border-t": X()
2200
+ "border-t": Z()
2201
2201
  }],
2202
2202
  /**
2203
2203
  * Border Width Right
2204
2204
  * @see https://tailwindcss.com/docs/border-width
2205
2205
  */
2206
2206
  "border-w-r": [{
2207
- "border-r": X()
2207
+ "border-r": Z()
2208
2208
  }],
2209
2209
  /**
2210
2210
  * Border Width Bottom
2211
2211
  * @see https://tailwindcss.com/docs/border-width
2212
2212
  */
2213
2213
  "border-w-b": [{
2214
- "border-b": X()
2214
+ "border-b": Z()
2215
2215
  }],
2216
2216
  /**
2217
2217
  * Border Width Left
2218
2218
  * @see https://tailwindcss.com/docs/border-width
2219
2219
  */
2220
2220
  "border-w-l": [{
2221
- "border-l": X()
2221
+ "border-l": Z()
2222
2222
  }],
2223
2223
  /**
2224
2224
  * Divide Width X
2225
2225
  * @see https://tailwindcss.com/docs/border-width#between-children
2226
2226
  */
2227
2227
  "divide-x": [{
2228
- "divide-x": X()
2228
+ "divide-x": Z()
2229
2229
  }],
2230
2230
  /**
2231
2231
  * Divide Width X Reverse
@@ -2237,7 +2237,7 @@ const xe = (e) => {
2237
2237
  * @see https://tailwindcss.com/docs/border-width#between-children
2238
2238
  */
2239
2239
  "divide-y": [{
2240
- "divide-y": X()
2240
+ "divide-y": Z()
2241
2241
  }],
2242
2242
  /**
2243
2243
  * Divide Width Y Reverse
@@ -2249,14 +2249,14 @@ const xe = (e) => {
2249
2249
  * @see https://tailwindcss.com/docs/border-style
2250
2250
  */
2251
2251
  "border-style": [{
2252
- border: [...M(), "hidden", "none"]
2252
+ border: [...z(), "hidden", "none"]
2253
2253
  }],
2254
2254
  /**
2255
2255
  * Divide Style
2256
2256
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2257
2257
  */
2258
2258
  "divide-style": [{
2259
- divide: [...M(), "hidden", "none"]
2259
+ divide: [...z(), "hidden", "none"]
2260
2260
  }],
2261
2261
  /**
2262
2262
  * Border Color
@@ -2333,14 +2333,14 @@ const xe = (e) => {
2333
2333
  * @see https://tailwindcss.com/docs/outline-style
2334
2334
  */
2335
2335
  "outline-style": [{
2336
- outline: [...M(), "none", "hidden"]
2336
+ outline: [...z(), "none", "hidden"]
2337
2337
  }],
2338
2338
  /**
2339
2339
  * Outline Offset
2340
2340
  * @see https://tailwindcss.com/docs/outline-offset
2341
2341
  */
2342
2342
  "outline-offset": [{
2343
- "outline-offset": [ae, Y, K]
2343
+ "outline-offset": [ae, X, Y]
2344
2344
  }],
2345
2345
  /**
2346
2346
  * Outline Width
@@ -2399,7 +2399,7 @@ const xe = (e) => {
2399
2399
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2400
2400
  */
2401
2401
  "ring-w": [{
2402
- ring: X()
2402
+ ring: Z()
2403
2403
  }],
2404
2404
  /**
2405
2405
  * Ring Width Inset
@@ -2438,7 +2438,7 @@ const xe = (e) => {
2438
2438
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2439
2439
  */
2440
2440
  "inset-ring-w": [{
2441
- "inset-ring": X()
2441
+ "inset-ring": Z()
2442
2442
  }],
2443
2443
  /**
2444
2444
  * Inset Ring Color
@@ -2466,21 +2466,21 @@ const xe = (e) => {
2466
2466
  * @see https://tailwindcss.com/docs/opacity
2467
2467
  */
2468
2468
  opacity: [{
2469
- opacity: [ae, Y, K]
2469
+ opacity: [ae, X, Y]
2470
2470
  }],
2471
2471
  /**
2472
2472
  * Mix Blend Mode
2473
2473
  * @see https://tailwindcss.com/docs/mix-blend-mode
2474
2474
  */
2475
2475
  "mix-blend": [{
2476
- "mix-blend": [...W(), "plus-darker", "plus-lighter"]
2476
+ "mix-blend": [...$(), "plus-darker", "plus-lighter"]
2477
2477
  }],
2478
2478
  /**
2479
2479
  * Background Blend Mode
2480
2480
  * @see https://tailwindcss.com/docs/background-blend-mode
2481
2481
  */
2482
2482
  "bg-blend": [{
2483
- "bg-blend": W()
2483
+ "bg-blend": $()
2484
2484
  }],
2485
2485
  /**
2486
2486
  * Mask Clip
@@ -2504,10 +2504,10 @@ const xe = (e) => {
2504
2504
  "mask-linear": [ae]
2505
2505
  }],
2506
2506
  "mask-image-linear-from-pos": [{
2507
- "mask-linear-from": _()
2507
+ "mask-linear-from": A()
2508
2508
  }],
2509
2509
  "mask-image-linear-to-pos": [{
2510
- "mask-linear-to": _()
2510
+ "mask-linear-to": A()
2511
2511
  }],
2512
2512
  "mask-image-linear-from-color": [{
2513
2513
  "mask-linear-from": E()
@@ -2516,10 +2516,10 @@ const xe = (e) => {
2516
2516
  "mask-linear-to": E()
2517
2517
  }],
2518
2518
  "mask-image-t-from-pos": [{
2519
- "mask-t-from": _()
2519
+ "mask-t-from": A()
2520
2520
  }],
2521
2521
  "mask-image-t-to-pos": [{
2522
- "mask-t-to": _()
2522
+ "mask-t-to": A()
2523
2523
  }],
2524
2524
  "mask-image-t-from-color": [{
2525
2525
  "mask-t-from": E()
@@ -2528,10 +2528,10 @@ const xe = (e) => {
2528
2528
  "mask-t-to": E()
2529
2529
  }],
2530
2530
  "mask-image-r-from-pos": [{
2531
- "mask-r-from": _()
2531
+ "mask-r-from": A()
2532
2532
  }],
2533
2533
  "mask-image-r-to-pos": [{
2534
- "mask-r-to": _()
2534
+ "mask-r-to": A()
2535
2535
  }],
2536
2536
  "mask-image-r-from-color": [{
2537
2537
  "mask-r-from": E()
@@ -2540,10 +2540,10 @@ const xe = (e) => {
2540
2540
  "mask-r-to": E()
2541
2541
  }],
2542
2542
  "mask-image-b-from-pos": [{
2543
- "mask-b-from": _()
2543
+ "mask-b-from": A()
2544
2544
  }],
2545
2545
  "mask-image-b-to-pos": [{
2546
- "mask-b-to": _()
2546
+ "mask-b-to": A()
2547
2547
  }],
2548
2548
  "mask-image-b-from-color": [{
2549
2549
  "mask-b-from": E()
@@ -2552,10 +2552,10 @@ const xe = (e) => {
2552
2552
  "mask-b-to": E()
2553
2553
  }],
2554
2554
  "mask-image-l-from-pos": [{
2555
- "mask-l-from": _()
2555
+ "mask-l-from": A()
2556
2556
  }],
2557
2557
  "mask-image-l-to-pos": [{
2558
- "mask-l-to": _()
2558
+ "mask-l-to": A()
2559
2559
  }],
2560
2560
  "mask-image-l-from-color": [{
2561
2561
  "mask-l-from": E()
@@ -2564,10 +2564,10 @@ const xe = (e) => {
2564
2564
  "mask-l-to": E()
2565
2565
  }],
2566
2566
  "mask-image-x-from-pos": [{
2567
- "mask-x-from": _()
2567
+ "mask-x-from": A()
2568
2568
  }],
2569
2569
  "mask-image-x-to-pos": [{
2570
- "mask-x-to": _()
2570
+ "mask-x-to": A()
2571
2571
  }],
2572
2572
  "mask-image-x-from-color": [{
2573
2573
  "mask-x-from": E()
@@ -2576,10 +2576,10 @@ const xe = (e) => {
2576
2576
  "mask-x-to": E()
2577
2577
  }],
2578
2578
  "mask-image-y-from-pos": [{
2579
- "mask-y-from": _()
2579
+ "mask-y-from": A()
2580
2580
  }],
2581
2581
  "mask-image-y-to-pos": [{
2582
- "mask-y-to": _()
2582
+ "mask-y-to": A()
2583
2583
  }],
2584
2584
  "mask-image-y-from-color": [{
2585
2585
  "mask-y-from": E()
@@ -2588,13 +2588,13 @@ const xe = (e) => {
2588
2588
  "mask-y-to": E()
2589
2589
  }],
2590
2590
  "mask-image-radial": [{
2591
- "mask-radial": [Y, K]
2591
+ "mask-radial": [X, Y]
2592
2592
  }],
2593
2593
  "mask-image-radial-from-pos": [{
2594
- "mask-radial-from": _()
2594
+ "mask-radial-from": A()
2595
2595
  }],
2596
2596
  "mask-image-radial-to-pos": [{
2597
- "mask-radial-to": _()
2597
+ "mask-radial-to": A()
2598
2598
  }],
2599
2599
  "mask-image-radial-from-color": [{
2600
2600
  "mask-radial-from": E()
@@ -2618,10 +2618,10 @@ const xe = (e) => {
2618
2618
  "mask-conic": [ae]
2619
2619
  }],
2620
2620
  "mask-image-conic-from-pos": [{
2621
- "mask-conic-from": _()
2621
+ "mask-conic-from": A()
2622
2622
  }],
2623
2623
  "mask-image-conic-to-pos": [{
2624
- "mask-conic-to": _()
2624
+ "mask-conic-to": A()
2625
2625
  }],
2626
2626
  "mask-image-conic-from-color": [{
2627
2627
  "mask-conic-from": E()
@@ -2662,7 +2662,7 @@ const xe = (e) => {
2662
2662
  * @see https://tailwindcss.com/docs/mask-size
2663
2663
  */
2664
2664
  "mask-size": [{
2665
- mask: Z()
2665
+ mask: J()
2666
2666
  }],
2667
2667
  /**
2668
2668
  * Mask Type
@@ -2676,7 +2676,7 @@ const xe = (e) => {
2676
2676
  * @see https://tailwindcss.com/docs/mask-image
2677
2677
  */
2678
2678
  "mask-image": [{
2679
- mask: ["none", Y, K]
2679
+ mask: ["none", X, Y]
2680
2680
  }],
2681
2681
  // ---------------
2682
2682
  // --- Filters ---
@@ -2690,8 +2690,8 @@ const xe = (e) => {
2690
2690
  // Deprecated since Tailwind CSS v3.0.0
2691
2691
  "",
2692
2692
  "none",
2693
- Y,
2694
- K
2693
+ X,
2694
+ Y
2695
2695
  ]
2696
2696
  }],
2697
2697
  /**
@@ -2699,21 +2699,21 @@ const xe = (e) => {
2699
2699
  * @see https://tailwindcss.com/docs/blur
2700
2700
  */
2701
2701
  blur: [{
2702
- blur: Q()
2702
+ blur: K()
2703
2703
  }],
2704
2704
  /**
2705
2705
  * Brightness
2706
2706
  * @see https://tailwindcss.com/docs/brightness
2707
2707
  */
2708
2708
  brightness: [{
2709
- brightness: [ae, Y, K]
2709
+ brightness: [ae, X, Y]
2710
2710
  }],
2711
2711
  /**
2712
2712
  * Contrast
2713
2713
  * @see https://tailwindcss.com/docs/contrast
2714
2714
  */
2715
2715
  contrast: [{
2716
- contrast: [ae, Y, K]
2716
+ contrast: [ae, X, Y]
2717
2717
  }],
2718
2718
  /**
2719
2719
  * Drop Shadow
@@ -2741,35 +2741,35 @@ const xe = (e) => {
2741
2741
  * @see https://tailwindcss.com/docs/grayscale
2742
2742
  */
2743
2743
  grayscale: [{
2744
- grayscale: ["", ae, Y, K]
2744
+ grayscale: ["", ae, X, Y]
2745
2745
  }],
2746
2746
  /**
2747
2747
  * Hue Rotate
2748
2748
  * @see https://tailwindcss.com/docs/hue-rotate
2749
2749
  */
2750
2750
  "hue-rotate": [{
2751
- "hue-rotate": [ae, Y, K]
2751
+ "hue-rotate": [ae, X, Y]
2752
2752
  }],
2753
2753
  /**
2754
2754
  * Invert
2755
2755
  * @see https://tailwindcss.com/docs/invert
2756
2756
  */
2757
2757
  invert: [{
2758
- invert: ["", ae, Y, K]
2758
+ invert: ["", ae, X, Y]
2759
2759
  }],
2760
2760
  /**
2761
2761
  * Saturate
2762
2762
  * @see https://tailwindcss.com/docs/saturate
2763
2763
  */
2764
2764
  saturate: [{
2765
- saturate: [ae, Y, K]
2765
+ saturate: [ae, X, Y]
2766
2766
  }],
2767
2767
  /**
2768
2768
  * Sepia
2769
2769
  * @see https://tailwindcss.com/docs/sepia
2770
2770
  */
2771
2771
  sepia: [{
2772
- sepia: ["", ae, Y, K]
2772
+ sepia: ["", ae, X, Y]
2773
2773
  }],
2774
2774
  /**
2775
2775
  * Backdrop Filter
@@ -2780,8 +2780,8 @@ const xe = (e) => {
2780
2780
  // Deprecated since Tailwind CSS v3.0.0
2781
2781
  "",
2782
2782
  "none",
2783
- Y,
2784
- K
2783
+ X,
2784
+ Y
2785
2785
  ]
2786
2786
  }],
2787
2787
  /**
@@ -2789,63 +2789,63 @@ const xe = (e) => {
2789
2789
  * @see https://tailwindcss.com/docs/backdrop-blur
2790
2790
  */
2791
2791
  "backdrop-blur": [{
2792
- "backdrop-blur": Q()
2792
+ "backdrop-blur": K()
2793
2793
  }],
2794
2794
  /**
2795
2795
  * Backdrop Brightness
2796
2796
  * @see https://tailwindcss.com/docs/backdrop-brightness
2797
2797
  */
2798
2798
  "backdrop-brightness": [{
2799
- "backdrop-brightness": [ae, Y, K]
2799
+ "backdrop-brightness": [ae, X, Y]
2800
2800
  }],
2801
2801
  /**
2802
2802
  * Backdrop Contrast
2803
2803
  * @see https://tailwindcss.com/docs/backdrop-contrast
2804
2804
  */
2805
2805
  "backdrop-contrast": [{
2806
- "backdrop-contrast": [ae, Y, K]
2806
+ "backdrop-contrast": [ae, X, Y]
2807
2807
  }],
2808
2808
  /**
2809
2809
  * Backdrop Grayscale
2810
2810
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2811
2811
  */
2812
2812
  "backdrop-grayscale": [{
2813
- "backdrop-grayscale": ["", ae, Y, K]
2813
+ "backdrop-grayscale": ["", ae, X, Y]
2814
2814
  }],
2815
2815
  /**
2816
2816
  * Backdrop Hue Rotate
2817
2817
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2818
2818
  */
2819
2819
  "backdrop-hue-rotate": [{
2820
- "backdrop-hue-rotate": [ae, Y, K]
2820
+ "backdrop-hue-rotate": [ae, X, Y]
2821
2821
  }],
2822
2822
  /**
2823
2823
  * Backdrop Invert
2824
2824
  * @see https://tailwindcss.com/docs/backdrop-invert
2825
2825
  */
2826
2826
  "backdrop-invert": [{
2827
- "backdrop-invert": ["", ae, Y, K]
2827
+ "backdrop-invert": ["", ae, X, Y]
2828
2828
  }],
2829
2829
  /**
2830
2830
  * Backdrop Opacity
2831
2831
  * @see https://tailwindcss.com/docs/backdrop-opacity
2832
2832
  */
2833
2833
  "backdrop-opacity": [{
2834
- "backdrop-opacity": [ae, Y, K]
2834
+ "backdrop-opacity": [ae, X, Y]
2835
2835
  }],
2836
2836
  /**
2837
2837
  * Backdrop Saturate
2838
2838
  * @see https://tailwindcss.com/docs/backdrop-saturate
2839
2839
  */
2840
2840
  "backdrop-saturate": [{
2841
- "backdrop-saturate": [ae, Y, K]
2841
+ "backdrop-saturate": [ae, X, Y]
2842
2842
  }],
2843
2843
  /**
2844
2844
  * Backdrop Sepia
2845
2845
  * @see https://tailwindcss.com/docs/backdrop-sepia
2846
2846
  */
2847
2847
  "backdrop-sepia": [{
2848
- "backdrop-sepia": ["", ae, Y, K]
2848
+ "backdrop-sepia": ["", ae, X, Y]
2849
2849
  }],
2850
2850
  // --------------
2851
2851
  // --- Tables ---
@@ -2900,7 +2900,7 @@ const xe = (e) => {
2900
2900
  * @see https://tailwindcss.com/docs/transition-property
2901
2901
  */
2902
2902
  transition: [{
2903
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", Y, K]
2903
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", X, Y]
2904
2904
  }],
2905
2905
  /**
2906
2906
  * Transition Behavior
@@ -2914,28 +2914,28 @@ const xe = (e) => {
2914
2914
  * @see https://tailwindcss.com/docs/transition-duration
2915
2915
  */
2916
2916
  duration: [{
2917
- duration: [ae, "initial", Y, K]
2917
+ duration: [ae, "initial", X, Y]
2918
2918
  }],
2919
2919
  /**
2920
2920
  * Transition Timing Function
2921
2921
  * @see https://tailwindcss.com/docs/transition-timing-function
2922
2922
  */
2923
2923
  ease: [{
2924
- ease: ["linear", "initial", y, Y, K]
2924
+ ease: ["linear", "initial", y, X, Y]
2925
2925
  }],
2926
2926
  /**
2927
2927
  * Transition Delay
2928
2928
  * @see https://tailwindcss.com/docs/transition-delay
2929
2929
  */
2930
2930
  delay: [{
2931
- delay: [ae, Y, K]
2931
+ delay: [ae, X, Y]
2932
2932
  }],
2933
2933
  /**
2934
2934
  * Animation
2935
2935
  * @see https://tailwindcss.com/docs/animation
2936
2936
  */
2937
2937
  animate: [{
2938
- animate: ["none", x, Y, K]
2938
+ animate: ["none", x, X, Y]
2939
2939
  }],
2940
2940
  // ------------------
2941
2941
  // --- Transforms ---
@@ -2952,7 +2952,7 @@ const xe = (e) => {
2952
2952
  * @see https://tailwindcss.com/docs/perspective
2953
2953
  */
2954
2954
  perspective: [{
2955
- perspective: [v, Y, K]
2955
+ perspective: [v, X, Y]
2956
2956
  }],
2957
2957
  /**
2958
2958
  * Perspective Origin
@@ -2966,28 +2966,28 @@ const xe = (e) => {
2966
2966
  * @see https://tailwindcss.com/docs/rotate
2967
2967
  */
2968
2968
  rotate: [{
2969
- rotate: te()
2969
+ rotate: ee()
2970
2970
  }],
2971
2971
  /**
2972
2972
  * Rotate X
2973
2973
  * @see https://tailwindcss.com/docs/rotate
2974
2974
  */
2975
2975
  "rotate-x": [{
2976
- "rotate-x": te()
2976
+ "rotate-x": ee()
2977
2977
  }],
2978
2978
  /**
2979
2979
  * Rotate Y
2980
2980
  * @see https://tailwindcss.com/docs/rotate
2981
2981
  */
2982
2982
  "rotate-y": [{
2983
- "rotate-y": te()
2983
+ "rotate-y": ee()
2984
2984
  }],
2985
2985
  /**
2986
2986
  * Rotate Z
2987
2987
  * @see https://tailwindcss.com/docs/rotate
2988
2988
  */
2989
2989
  "rotate-z": [{
2990
- "rotate-z": te()
2990
+ "rotate-z": ee()
2991
2991
  }],
2992
2992
  /**
2993
2993
  * Scale
@@ -3048,7 +3048,7 @@ const xe = (e) => {
3048
3048
  * @see https://tailwindcss.com/docs/transform
3049
3049
  */
3050
3050
  transform: [{
3051
- transform: [Y, K, "", "none", "gpu", "cpu"]
3051
+ transform: [X, Y, "", "none", "gpu", "cpu"]
3052
3052
  }],
3053
3053
  /**
3054
3054
  * Transform Origin
@@ -3133,7 +3133,7 @@ const xe = (e) => {
3133
3133
  * @see https://tailwindcss.com/docs/cursor
3134
3134
  */
3135
3135
  cursor: [{
3136
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", Y, K]
3136
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", X, Y]
3137
3137
  }],
3138
3138
  /**
3139
3139
  * Field Sizing
@@ -3355,7 +3355,7 @@ const xe = (e) => {
3355
3355
  * @see https://tailwindcss.com/docs/will-change
3356
3356
  */
3357
3357
  "will-change": [{
3358
- "will-change": ["auto", "scroll", "contents", "transform", Y, K]
3358
+ "will-change": ["auto", "scroll", "contents", "transform", X, Y]
3359
3359
  }],
3360
3360
  // -----------
3361
3361
  // --- SVG ---
@@ -4614,17 +4614,17 @@ const Tv = (e) => ({
4614
4614
  }, m = ua(o), b = da(m), v = await i.getDimensions(u), h = m === "y", y = h ? "top" : "left", x = h ? "bottom" : "right", C = h ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[m] - g[m] - a.floating[b], P = g[m] - a.reference[m], k = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
4615
4615
  let T = k ? k[C] : 0;
4616
4616
  (!T || !await (i.isElement == null ? void 0 : i.isElement(k))) && (T = l.floating[C] || a.floating[b]);
4617
- const R = S / 2 - P / 2, F = T / 2 - v[b] / 2 - 1, U = pt(p[y], F), re = pt(p[x], F), ee = U, J = T - v[b] - re, z = T / 2 - v[b] / 2 + R, D = $o(ee, z, J), A = !d.arrow && or(o) != null && z !== D && a.reference[b] / 2 - (z < ee ? U : re) - v[b] / 2 < 0, O = A ? z < ee ? z - ee : z - J : 0;
4617
+ const R = S / 2 - P / 2, F = T / 2 - v[b] / 2 - 1, U = pt(p[y], F), re = pt(p[x], F), te = U, Q = T - v[b] - re, W = T / 2 - v[b] / 2 + R, O = $o(te, W, Q), _ = !d.arrow && or(o) != null && W !== O && a.reference[b] / 2 - (W < te ? U : re) - v[b] / 2 < 0, M = _ ? W < te ? W - te : W - Q : 0;
4618
4618
  return {
4619
- [m]: g[m] + O,
4619
+ [m]: g[m] + M,
4620
4620
  data: {
4621
- [m]: D,
4622
- centerOffset: z - D - O,
4623
- ...A && {
4624
- alignmentOffset: O
4621
+ [m]: O,
4622
+ centerOffset: W - O - M,
4623
+ ..._ && {
4624
+ alignmentOffset: M
4625
4625
  }
4626
4626
  },
4627
- reset: A
4627
+ reset: _
4628
4628
  };
4629
4629
  }
4630
4630
  }), Av = function(e) {
@@ -4656,33 +4656,33 @@ const Tv = (e) => ({
4656
4656
  const T = [l, ...P], R = await Cr(t, h), F = [];
4657
4657
  let U = ((n = a.flip) == null ? void 0 : n.overflows) || [];
4658
4658
  if (f && F.push(R[y]), p) {
4659
- const z = Cv(o, i, S);
4660
- F.push(R[z[0]], R[z[1]]);
4659
+ const W = Cv(o, i, S);
4660
+ F.push(R[W[0]], R[W[1]]);
4661
4661
  }
4662
4662
  if (U = [...U, {
4663
4663
  placement: o,
4664
4664
  overflows: F
4665
- }], !F.every((z) => z <= 0)) {
4666
- var re, ee;
4667
- const z = (((re = a.flip) == null ? void 0 : re.index) || 0) + 1, D = T[z];
4668
- if (D && (!(p === "alignment" ? x !== Xe(D) : !1) || // We leave the current main axis only if every placement on that axis
4665
+ }], !F.every((W) => W <= 0)) {
4666
+ var re, te;
4667
+ const W = (((re = a.flip) == null ? void 0 : re.index) || 0) + 1, O = T[W];
4668
+ if (O && (!(p === "alignment" ? x !== Xe(O) : !1) || // We leave the current main axis only if every placement on that axis
4669
4669
  // overflows the main axis.
4670
4670
  U.every((E) => Xe(E.placement) === x ? E.overflows[0] > 0 : !0)))
4671
4671
  return {
4672
4672
  data: {
4673
- index: z,
4673
+ index: W,
4674
4674
  overflows: U
4675
4675
  },
4676
4676
  reset: {
4677
- placement: D
4677
+ placement: O
4678
4678
  }
4679
4679
  };
4680
- let A = (ee = U.filter((O) => O.overflows[0] <= 0).sort((O, E) => O.overflows[1] - E.overflows[1])[0]) == null ? void 0 : ee.placement;
4681
- if (!A)
4680
+ let _ = (te = U.filter((M) => M.overflows[0] <= 0).sort((M, E) => M.overflows[1] - E.overflows[1])[0]) == null ? void 0 : te.placement;
4681
+ if (!_)
4682
4682
  switch (m) {
4683
4683
  case "bestFit": {
4684
- var J;
4685
- const O = (J = U.filter((E) => {
4684
+ var Q;
4685
+ const M = (Q = U.filter((E) => {
4686
4686
  if (k) {
4687
4687
  const I = Xe(E.placement);
4688
4688
  return I === x || // Create a bias to the `y` side axis due to horizontal
@@ -4690,18 +4690,18 @@ const Tv = (e) => ({
4690
4690
  I === "y";
4691
4691
  }
4692
4692
  return !0;
4693
- }).map((E) => [E.placement, E.overflows.filter((I) => I > 0).reduce((I, V) => I + V, 0)]).sort((E, I) => E[1] - I[1])[0]) == null ? void 0 : J[0];
4694
- O && (A = O);
4693
+ }).map((E) => [E.placement, E.overflows.filter((I) => I > 0).reduce((I, V) => I + V, 0)]).sort((E, I) => E[1] - I[1])[0]) == null ? void 0 : Q[0];
4694
+ M && (_ = M);
4695
4695
  break;
4696
4696
  }
4697
4697
  case "initialPlacement":
4698
- A = l;
4698
+ _ = l;
4699
4699
  break;
4700
4700
  }
4701
- if (o !== A)
4701
+ if (o !== _)
4702
4702
  return {
4703
4703
  reset: {
4704
- placement: A
4704
+ placement: _
4705
4705
  }
4706
4706
  };
4707
4707
  }
@@ -4933,8 +4933,8 @@ const Mv = function(e) {
4933
4933
  const x = v - f.top - f.bottom, C = b - f.left - f.right, S = pt(v - f[h], x), P = pt(b - f[y], C), k = !t.middlewareData.shift;
4934
4934
  let T = S, R = P;
4935
4935
  if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = C), (n = t.middlewareData.shift) != null && n.enabled.y && (T = x), k && !g) {
4936
- const U = Ae(f.left, 0), re = Ae(f.right, 0), ee = Ae(f.top, 0), J = Ae(f.bottom, 0);
4937
- m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : Ae(f.left, f.right)) : T = v - 2 * (ee !== 0 || J !== 0 ? ee + J : Ae(f.top, f.bottom));
4936
+ const U = Ae(f.left, 0), re = Ae(f.right, 0), te = Ae(f.top, 0), Q = Ae(f.bottom, 0);
4937
+ m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : Ae(f.left, f.right)) : T = v - 2 * (te !== 0 || Q !== 0 ? te + Q : Ae(f.top, f.bottom));
4938
4938
  }
4939
4939
  await d({
4940
4940
  ...t,
@@ -5522,7 +5522,7 @@ function bh(e) {
5522
5522
  E !== k.current && (k.current = E, v(E));
5523
5523
  }, []), C = c.useCallback((E) => {
5524
5524
  E !== T.current && (T.current = E, y(E));
5525
- }, []), S = a || b, P = i || h, k = c.useRef(null), T = c.useRef(null), R = c.useRef(f), F = d != null, U = xo(d), re = xo(o), ee = xo(u), J = c.useCallback(() => {
5525
+ }, []), S = a || b, P = i || h, k = c.useRef(null), T = c.useRef(null), R = c.useRef(f), F = d != null, U = xo(d), re = xo(o), te = xo(u), Q = c.useCallback(() => {
5526
5526
  if (!k.current || !T.current)
5527
5527
  return;
5528
5528
  const E = {
@@ -5537,50 +5537,50 @@ function bh(e) {
5537
5537
  // but still mounted (such as when transitioning out). To ensure
5538
5538
  // `isPositioned` will be `false` initially on the next open, avoid
5539
5539
  // setting it to `true` when `open === false` (must be specified).
5540
- isPositioned: ee.current !== !1
5540
+ isPositioned: te.current !== !1
5541
5541
  };
5542
- z.current && !fn(R.current, V) && (R.current = V, En.flushSync(() => {
5542
+ W.current && !fn(R.current, V) && (R.current = V, En.flushSync(() => {
5543
5543
  p(V);
5544
5544
  }));
5545
5545
  });
5546
- }, [g, t, r, re, ee]);
5546
+ }, [g, t, r, re, te]);
5547
5547
  rn(() => {
5548
5548
  u === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((E) => ({
5549
5549
  ...E,
5550
5550
  isPositioned: !1
5551
5551
  })));
5552
5552
  }, [u]);
5553
- const z = c.useRef(!1);
5554
- rn(() => (z.current = !0, () => {
5555
- z.current = !1;
5553
+ const W = c.useRef(!1);
5554
+ rn(() => (W.current = !0, () => {
5555
+ W.current = !1;
5556
5556
  }), []), rn(() => {
5557
5557
  if (S && (k.current = S), P && (T.current = P), S && P) {
5558
5558
  if (U.current)
5559
- return U.current(S, P, J);
5560
- J();
5559
+ return U.current(S, P, Q);
5560
+ Q();
5561
5561
  }
5562
- }, [S, P, J, U, F]);
5563
- const D = c.useMemo(() => ({
5562
+ }, [S, P, Q, U, F]);
5563
+ const O = c.useMemo(() => ({
5564
5564
  reference: k,
5565
5565
  floating: T,
5566
5566
  setReference: x,
5567
5567
  setFloating: C
5568
- }), [x, C]), A = c.useMemo(() => ({
5568
+ }), [x, C]), _ = c.useMemo(() => ({
5569
5569
  reference: S,
5570
5570
  floating: P
5571
- }), [S, P]), O = c.useMemo(() => {
5571
+ }), [S, P]), M = c.useMemo(() => {
5572
5572
  const E = {
5573
5573
  position: r,
5574
5574
  left: 0,
5575
5575
  top: 0
5576
5576
  };
5577
- if (!A.floating)
5577
+ if (!_.floating)
5578
5578
  return E;
5579
- const I = Ks(A.floating, f.x), V = Ks(A.floating, f.y);
5579
+ const I = Ks(_.floating, f.x), V = Ks(_.floating, f.y);
5580
5580
  return l ? {
5581
5581
  ...E,
5582
5582
  transform: "translate(" + I + "px, " + V + "px)",
5583
- ...hl(A.floating) >= 1.5 && {
5583
+ ...hl(_.floating) >= 1.5 && {
5584
5584
  willChange: "transform"
5585
5585
  }
5586
5586
  } : {
@@ -5588,14 +5588,14 @@ function bh(e) {
5588
5588
  left: I,
5589
5589
  top: V
5590
5590
  };
5591
- }, [r, l, A.floating, f.x, f.y]);
5591
+ }, [r, l, _.floating, f.x, f.y]);
5592
5592
  return c.useMemo(() => ({
5593
5593
  ...f,
5594
- update: J,
5595
- refs: D,
5596
- elements: A,
5597
- floatingStyles: O
5598
- }), [f, J, D, A, O]);
5594
+ update: Q,
5595
+ refs: O,
5596
+ elements: _,
5597
+ floatingStyles: M
5598
+ }), [f, Q, O, _, M]);
5599
5599
  }
5600
5600
  const yh = (e) => {
5601
5601
  function t(r) {
@@ -5696,7 +5696,7 @@ var Cl = "PopperAnchor", Sl = c.forwardRef(
5696
5696
  Sl.displayName = Cl;
5697
5697
  var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5698
5698
  (e, t) => {
5699
- var _, Q, te, oe, ce, ie;
5699
+ var A, K, ee, oe, ce, ie;
5700
5700
  const {
5701
5701
  __scopePopper: r,
5702
5702
  side: n = "bottom",
@@ -5712,12 +5712,12 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5712
5712
  updatePositionStrategy: m = "optimized",
5713
5713
  onPlaced: b,
5714
5714
  ...v
5715
- } = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S, P] = c.useState(null), k = ga(S), T = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, F = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u], ee = re.length > 0, J = {
5715
+ } = e, h = yl(ha, r), [y, x] = c.useState(null), C = se(t, (Re) => x(Re)), [S, P] = c.useState(null), k = ga(S), T = (k == null ? void 0 : k.width) ?? 0, R = (k == null ? void 0 : k.height) ?? 0, F = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u], te = re.length > 0, Q = {
5716
5716
  padding: U,
5717
5717
  boundary: re.filter(Mh),
5718
5718
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5719
- altBoundary: ee
5720
- }, { refs: z, floatingStyles: D, placement: A, isPositioned: O, middlewareData: E } = bh({
5719
+ altBoundary: te
5720
+ }, { refs: W, floatingStyles: O, placement: _, isPositioned: M, middlewareData: E } = bh({
5721
5721
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
5722
5722
  strategy: "fixed",
5723
5723
  placement: F,
@@ -5733,11 +5733,11 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5733
5733
  mainAxis: !0,
5734
5734
  crossAxis: !1,
5735
5735
  limiter: p === "partial" ? Sh() : void 0,
5736
- ...J
5736
+ ...Q
5737
5737
  }),
5738
- d && Eh({ ...J }),
5738
+ d && Eh({ ...Q }),
5739
5739
  Rh({
5740
- ...J,
5740
+ ...Q,
5741
5741
  apply: ({ elements: Re, rects: Me, availableWidth: Ue, availableHeight: $e }) => {
5742
5742
  const { width: it, height: qr } = Me.reference, tt = Re.floating.style;
5743
5743
  tt.setProperty("--radix-popper-available-width", `${Ue}px`), tt.setProperty("--radix-popper-available-height", `${$e}px`), tt.setProperty("--radix-popper-anchor-width", `${it}px`), tt.setProperty("--radix-popper-anchor-height", `${qr}px`);
@@ -5745,26 +5745,26 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5745
5745
  }),
5746
5746
  S && jh({ element: S, padding: l }),
5747
5747
  Oh({ arrowWidth: T, arrowHeight: R }),
5748
- g && Ph({ strategy: "referenceHidden", ...J })
5748
+ g && Ph({ strategy: "referenceHidden", ...Q })
5749
5749
  ]
5750
- }), [I, V] = jl(A), Z = Fe(b);
5750
+ }), [I, V] = jl(_), J = Fe(b);
5751
5751
  ye(() => {
5752
- O && (Z == null || Z());
5753
- }, [O, Z]);
5754
- const N = (_ = E.arrow) == null ? void 0 : _.x, B = (Q = E.arrow) == null ? void 0 : Q.y, X = ((te = E.arrow) == null ? void 0 : te.centerOffset) !== 0, [M, W] = c.useState();
5752
+ M && (J == null || J());
5753
+ }, [M, J]);
5754
+ const N = (A = E.arrow) == null ? void 0 : A.x, B = (K = E.arrow) == null ? void 0 : K.y, Z = ((ee = E.arrow) == null ? void 0 : ee.centerOffset) !== 0, [z, $] = c.useState();
5755
5755
  return ye(() => {
5756
- y && W(window.getComputedStyle(y).zIndex);
5756
+ y && $(window.getComputedStyle(y).zIndex);
5757
5757
  }, [y]), /* @__PURE__ */ s.jsx(
5758
5758
  "div",
5759
5759
  {
5760
- ref: z.setFloating,
5760
+ ref: W.setFloating,
5761
5761
  "data-radix-popper-content-wrapper": "",
5762
5762
  style: {
5763
- ...D,
5764
- transform: O ? D.transform : "translate(0, -200%)",
5763
+ ...O,
5764
+ transform: M ? O.transform : "translate(0, -200%)",
5765
5765
  // keep off the page when measuring
5766
5766
  minWidth: "max-content",
5767
- zIndex: M,
5767
+ zIndex: z,
5768
5768
  "--radix-popper-transform-origin": [
5769
5769
  (oe = E.transformOrigin) == null ? void 0 : oe.x,
5770
5770
  (ce = E.transformOrigin) == null ? void 0 : ce.y
@@ -5786,7 +5786,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5786
5786
  onArrowChange: P,
5787
5787
  arrowX: N,
5788
5788
  arrowY: B,
5789
- shouldHideArrow: X,
5789
+ shouldHideArrow: Z,
5790
5790
  children: /* @__PURE__ */ s.jsx(
5791
5791
  H.div,
5792
5792
  {
@@ -5798,7 +5798,7 @@ var ha = "PopperContent", [Ah, _h] = bl(ha), El = c.forwardRef(
5798
5798
  ...v.style,
5799
5799
  // if the PopperContent hasn't been placed yet (not all measurements done)
5800
5800
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
5801
- animation: O ? void 0 : "none"
5801
+ animation: M ? void 0 : "none"
5802
5802
  }
5803
5803
  }
5804
5804
  )
@@ -6510,7 +6510,7 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
6510
6510
  defaultProp: l,
6511
6511
  onChange: d,
6512
6512
  caller: Tt
6513
- }), re = c.useRef(null), ee = h ? b || !!h.closest("form") : !0, [J, z] = c.useState(/* @__PURE__ */ new Set()), D = Array.from(J).map((A) => A.props.value).join(";");
6513
+ }), re = c.useRef(null), te = h ? b || !!h.closest("form") : !0, [Q, W] = c.useState(/* @__PURE__ */ new Set()), O = Array.from(Q).map((_) => _.props.value).join(";");
6514
6514
  return /* @__PURE__ */ s.jsx(Ar, { ...v, children: /* @__PURE__ */ s.jsxs(
6515
6515
  Tx,
6516
6516
  {
@@ -6535,19 +6535,19 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
6535
6535
  Ax,
6536
6536
  {
6537
6537
  scope: e.__scopeSelect,
6538
- onNativeOptionAdd: c.useCallback((A) => {
6539
- z((O) => new Set(O).add(A));
6538
+ onNativeOptionAdd: c.useCallback((_) => {
6539
+ W((M) => new Set(M).add(_));
6540
6540
  }, []),
6541
- onNativeOptionRemove: c.useCallback((A) => {
6542
- z((O) => {
6543
- const E = new Set(O);
6544
- return E.delete(A), E;
6541
+ onNativeOptionRemove: c.useCallback((_) => {
6542
+ W((M) => {
6543
+ const E = new Set(M);
6544
+ return E.delete(_), E;
6545
6545
  });
6546
6546
  }, []),
6547
6547
  children: r
6548
6548
  }
6549
6549
  ) }),
6550
- ee ? /* @__PURE__ */ s.jsxs(
6550
+ te ? /* @__PURE__ */ s.jsxs(
6551
6551
  cc,
6552
6552
  {
6553
6553
  "aria-hidden": !0,
@@ -6556,15 +6556,15 @@ var jx = [" ", "Enter", "ArrowUp", "ArrowDown"], Nx = [" ", "Enter"], Tt = "Sele
6556
6556
  name: f,
6557
6557
  autoComplete: p,
6558
6558
  value: F,
6559
- onChange: (A) => U(A.target.value),
6559
+ onChange: (_) => U(_.target.value),
6560
6560
  disabled: g,
6561
6561
  form: b,
6562
6562
  children: [
6563
6563
  F === void 0 ? /* @__PURE__ */ s.jsx("option", { value: "" }) : null,
6564
- Array.from(J)
6564
+ Array.from(Q)
6565
6565
  ]
6566
6566
  },
6567
- D
6567
+ O
6568
6568
  ) : null
6569
6569
  ]
6570
6570
  }
@@ -6679,65 +6679,65 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
6679
6679
  avoidCollisions: h,
6680
6680
  //
6681
6681
  ...y
6682
- } = e, x = ht(At, r), [C, S] = c.useState(null), [P, k] = c.useState(null), T = se(t, (_) => S(_)), [R, F] = c.useState(null), [U, re] = c.useState(
6682
+ } = e, x = ht(At, r), [C, S] = c.useState(null), [P, k] = c.useState(null), T = se(t, (A) => S(A)), [R, F] = c.useState(null), [U, re] = c.useState(
6683
6683
  null
6684
- ), ee = Vn(r), [J, z] = c.useState(!1), D = c.useRef(!1);
6684
+ ), te = Vn(r), [Q, W] = c.useState(!1), O = c.useRef(!1);
6685
6685
  c.useEffect(() => {
6686
6686
  if (C) return $n(C);
6687
6687
  }, [C]), Tn();
6688
- const A = c.useCallback(
6689
- (_) => {
6690
- const [Q, ...te] = ee().map((ie) => ie.ref.current), [oe] = te.slice(-1), ce = document.activeElement;
6691
- for (const ie of _)
6692
- if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === Q && P && (P.scrollTop = 0), ie === oe && P && (P.scrollTop = P.scrollHeight), ie == null || ie.focus(), document.activeElement !== ce)) return;
6688
+ const _ = c.useCallback(
6689
+ (A) => {
6690
+ const [K, ...ee] = te().map((ie) => ie.ref.current), [oe] = ee.slice(-1), ce = document.activeElement;
6691
+ for (const ie of A)
6692
+ if (ie === ce || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === K && P && (P.scrollTop = 0), ie === oe && P && (P.scrollTop = P.scrollHeight), ie == null || ie.focus(), document.activeElement !== ce)) return;
6693
6693
  },
6694
- [ee, P]
6695
- ), O = c.useCallback(
6696
- () => A([R, C]),
6697
- [A, R, C]
6694
+ [te, P]
6695
+ ), M = c.useCallback(
6696
+ () => _([R, C]),
6697
+ [_, R, C]
6698
6698
  );
6699
6699
  c.useEffect(() => {
6700
- J && O();
6701
- }, [J, O]);
6700
+ Q && M();
6701
+ }, [Q, M]);
6702
6702
  const { onOpenChange: E, triggerPointerDownPosRef: I } = x;
6703
6703
  c.useEffect(() => {
6704
6704
  if (C) {
6705
- let _ = { x: 0, y: 0 };
6706
- const Q = (oe) => {
6705
+ let A = { x: 0, y: 0 };
6706
+ const K = (oe) => {
6707
6707
  var ce, ie;
6708
- _ = {
6708
+ A = {
6709
6709
  x: Math.abs(Math.round(oe.pageX) - (((ce = I.current) == null ? void 0 : ce.x) ?? 0)),
6710
6710
  y: Math.abs(Math.round(oe.pageY) - (((ie = I.current) == null ? void 0 : ie.y) ?? 0))
6711
6711
  };
6712
- }, te = (oe) => {
6713
- _.x <= 10 && _.y <= 10 ? oe.preventDefault() : C.contains(oe.target) || E(!1), document.removeEventListener("pointermove", Q), I.current = null;
6712
+ }, ee = (oe) => {
6713
+ A.x <= 10 && A.y <= 10 ? oe.preventDefault() : C.contains(oe.target) || E(!1), document.removeEventListener("pointermove", K), I.current = null;
6714
6714
  };
6715
- return I.current !== null && (document.addEventListener("pointermove", Q), document.addEventListener("pointerup", te, { capture: !0, once: !0 })), () => {
6716
- document.removeEventListener("pointermove", Q), document.removeEventListener("pointerup", te, { capture: !0 });
6715
+ return I.current !== null && (document.addEventListener("pointermove", K), document.addEventListener("pointerup", ee, { capture: !0, once: !0 })), () => {
6716
+ document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", ee, { capture: !0 });
6717
6717
  };
6718
6718
  }
6719
6719
  }, [C, E, I]), c.useEffect(() => {
6720
- const _ = () => E(!1);
6721
- return window.addEventListener("blur", _), window.addEventListener("resize", _), () => {
6722
- window.removeEventListener("blur", _), window.removeEventListener("resize", _);
6720
+ const A = () => E(!1);
6721
+ return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
6722
+ window.removeEventListener("blur", A), window.removeEventListener("resize", A);
6723
6723
  };
6724
6724
  }, [E]);
6725
- const [V, Z] = uc((_) => {
6726
- const Q = ee().filter((ce) => !ce.disabled), te = Q.find((ce) => ce.ref.current === document.activeElement), oe = fc(Q, _, te);
6725
+ const [V, J] = uc((A) => {
6726
+ const K = te().filter((ce) => !ce.disabled), ee = K.find((ce) => ce.ref.current === document.activeElement), oe = fc(K, A, ee);
6727
6727
  oe && setTimeout(() => oe.ref.current.focus());
6728
6728
  }), N = c.useCallback(
6729
- (_, Q, te) => {
6730
- const oe = !D.current && !te;
6731
- (x.value !== void 0 && x.value === Q || oe) && (F(_), oe && (D.current = !0));
6729
+ (A, K, ee) => {
6730
+ const oe = !O.current && !ee;
6731
+ (x.value !== void 0 && x.value === K || oe) && (F(A), oe && (O.current = !0));
6732
6732
  },
6733
6733
  [x.value]
6734
- ), B = c.useCallback(() => C == null ? void 0 : C.focus(), [C]), X = c.useCallback(
6735
- (_, Q, te) => {
6736
- const oe = !D.current && !te;
6737
- (x.value !== void 0 && x.value === Q || oe) && re(_);
6734
+ ), B = c.useCallback(() => C == null ? void 0 : C.focus(), [C]), Z = c.useCallback(
6735
+ (A, K, ee) => {
6736
+ const oe = !O.current && !ee;
6737
+ (x.value !== void 0 && x.value === K || oe) && re(A);
6738
6738
  },
6739
6739
  [x.value]
6740
- ), M = n === "popper" ? Bo : Kl, W = M === Bo ? {
6740
+ ), z = n === "popper" ? Bo : Kl, $ = z === Bo ? {
6741
6741
  side: l,
6742
6742
  sideOffset: d,
6743
6743
  align: u,
@@ -6759,23 +6759,23 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
6759
6759
  itemRefCallback: N,
6760
6760
  selectedItem: R,
6761
6761
  onItemLeave: B,
6762
- itemTextRefCallback: X,
6763
- focusSelectedItem: O,
6762
+ itemTextRefCallback: Z,
6763
+ focusSelectedItem: M,
6764
6764
  selectedItemText: U,
6765
6765
  position: n,
6766
- isPositioned: J,
6766
+ isPositioned: Q,
6767
6767
  searchRef: V,
6768
6768
  children: /* @__PURE__ */ s.jsx(Ir, { as: Dx, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
6769
6769
  kr,
6770
6770
  {
6771
6771
  asChild: !0,
6772
6772
  trapped: x.open,
6773
- onMountAutoFocus: (_) => {
6774
- _.preventDefault();
6773
+ onMountAutoFocus: (A) => {
6774
+ A.preventDefault();
6775
6775
  },
6776
- onUnmountAutoFocus: L(o, (_) => {
6777
- var Q;
6778
- (Q = x.trigger) == null || Q.focus({ preventScroll: !0 }), _.preventDefault();
6776
+ onUnmountAutoFocus: L(o, (A) => {
6777
+ var K;
6778
+ (K = x.trigger) == null || K.focus({ preventScroll: !0 }), A.preventDefault();
6779
6779
  }),
6780
6780
  children: /* @__PURE__ */ s.jsx(
6781
6781
  nr,
@@ -6784,19 +6784,19 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
6784
6784
  disableOutsidePointerEvents: !0,
6785
6785
  onEscapeKeyDown: a,
6786
6786
  onPointerDownOutside: i,
6787
- onFocusOutside: (_) => _.preventDefault(),
6787
+ onFocusOutside: (A) => A.preventDefault(),
6788
6788
  onDismiss: () => x.onOpenChange(!1),
6789
6789
  children: /* @__PURE__ */ s.jsx(
6790
- M,
6790
+ z,
6791
6791
  {
6792
6792
  role: "listbox",
6793
6793
  id: x.contentId,
6794
6794
  "data-state": x.open ? "open" : "closed",
6795
6795
  dir: x.dir,
6796
- onContextMenu: (_) => _.preventDefault(),
6796
+ onContextMenu: (A) => A.preventDefault(),
6797
6797
  ...y,
6798
- ...W,
6799
- onPlaced: () => z(!0),
6798
+ ...$,
6799
+ onPlaced: () => W(!0),
6800
6800
  ref: T,
6801
6801
  style: {
6802
6802
  // flex layout so we can place the scroll buttons properly
@@ -6806,15 +6806,15 @@ var Le = 10, [Ul, xt] = ir(At), Ox = "SelectContentImpl", Dx = /* @__PURE__ */ f
6806
6806
  outline: "none",
6807
6807
  ...y.style
6808
6808
  },
6809
- onKeyDown: L(y.onKeyDown, (_) => {
6810
- const Q = _.ctrlKey || _.altKey || _.metaKey;
6811
- if (_.key === "Tab" && _.preventDefault(), !Q && _.key.length === 1 && Z(_.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(_.key)) {
6812
- let oe = ee().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
6813
- if (["ArrowUp", "End"].includes(_.key) && (oe = oe.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(_.key)) {
6814
- const ce = _.target, ie = oe.indexOf(ce);
6809
+ onKeyDown: L(y.onKeyDown, (A) => {
6810
+ const K = A.ctrlKey || A.altKey || A.metaKey;
6811
+ if (A.key === "Tab" && A.preventDefault(), !K && A.key.length === 1 && J(A.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(A.key)) {
6812
+ let oe = te().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
6813
+ if (["ArrowUp", "End"].includes(A.key) && (oe = oe.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(A.key)) {
6814
+ const ce = A.target, ie = oe.indexOf(ce);
6815
6815
  oe = oe.slice(ie + 1);
6816
6816
  }
6817
- setTimeout(() => A(oe)), _.preventDefault();
6817
+ setTimeout(() => _(oe)), A.preventDefault();
6818
6818
  }
6819
6819
  })
6820
6820
  }
@@ -6850,27 +6850,27 @@ var $x = "SelectItemAlignedPosition", Kl = c.forwardRef((e, t) => {
6850
6850
  ]);
6851
6851
  l.style.minWidth = Me + "px", l.style.right = it + "px";
6852
6852
  }
6853
- const re = g(), ee = window.innerHeight - Le * 2, J = v.scrollHeight, z = window.getComputedStyle(u), D = parseInt(z.borderTopWidth, 10), A = parseInt(z.paddingTop, 10), O = parseInt(z.borderBottomWidth, 10), E = parseInt(z.paddingBottom, 10), I = D + A + J + E + O, V = Math.min(h.offsetHeight * 5, I), Z = window.getComputedStyle(v), N = parseInt(Z.paddingTop, 10), B = parseInt(Z.paddingBottom, 10), X = T.top + T.height / 2 - Le, M = ee - X, W = h.offsetHeight / 2, _ = h.offsetTop + W, Q = D + A + _, te = I - Q;
6854
- if (Q <= X) {
6853
+ const re = g(), te = window.innerHeight - Le * 2, Q = v.scrollHeight, W = window.getComputedStyle(u), O = parseInt(W.borderTopWidth, 10), _ = parseInt(W.paddingTop, 10), M = parseInt(W.borderBottomWidth, 10), E = parseInt(W.paddingBottom, 10), I = O + _ + Q + E + M, V = Math.min(h.offsetHeight * 5, I), J = window.getComputedStyle(v), N = parseInt(J.paddingTop, 10), B = parseInt(J.paddingBottom, 10), Z = T.top + T.height / 2 - Le, z = te - Z, $ = h.offsetHeight / 2, A = h.offsetTop + $, K = O + _ + A, ee = I - K;
6854
+ if (K <= Z) {
6855
6855
  const ce = re.length > 0 && h === re[re.length - 1].ref.current;
6856
6856
  l.style.bottom = "0px";
6857
6857
  const ie = u.clientHeight - v.offsetTop - v.offsetHeight, Re = Math.max(
6858
- M,
6859
- W + // viewport might have padding bottom, include it to avoid a scrollable viewport
6860
- (ce ? B : 0) + ie + O
6861
- ), Me = Q + Re;
6858
+ z,
6859
+ $ + // viewport might have padding bottom, include it to avoid a scrollable viewport
6860
+ (ce ? B : 0) + ie + M
6861
+ ), Me = K + Re;
6862
6862
  l.style.height = Me + "px";
6863
6863
  } else {
6864
6864
  const ce = re.length > 0 && h === re[0].ref.current;
6865
6865
  l.style.top = "0px";
6866
6866
  const Re = Math.max(
6867
- X,
6868
- D + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
6869
- (ce ? N : 0) + W
6870
- ) + te;
6871
- l.style.height = Re + "px", v.scrollTop = Q - X + v.offsetTop;
6867
+ Z,
6868
+ O + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
6869
+ (ce ? N : 0) + $
6870
+ ) + ee;
6871
+ l.style.height = Re + "px", v.scrollTop = K - Z + v.offsetTop;
6872
6872
  }
6873
- l.style.margin = `${Le}px 0`, l.style.minHeight = V + "px", l.style.maxHeight = ee + "px", n == null || n(), requestAnimationFrame(() => m.current = !0);
6873
+ l.style.margin = `${Le}px 0`, l.style.minHeight = V + "px", l.style.maxHeight = te + "px", n == null || n(), requestAnimationFrame(() => m.current = !0);
6874
6874
  }
6875
6875
  }, [
6876
6876
  g,
@@ -7737,23 +7737,23 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7737
7737
  r.current.value = N, T.emit();
7738
7738
  }
7739
7739
  }, [f]), It(() => {
7740
- k(6, J);
7740
+ k(6, Q);
7741
7741
  }, []);
7742
- let T = c.useMemo(() => ({ subscribe: (N) => (i.current.add(N), () => i.current.delete(N)), snapshot: () => r.current, setState: (N, B, X) => {
7743
- var M, W, _, Q;
7742
+ let T = c.useMemo(() => ({ subscribe: (N) => (i.current.add(N), () => i.current.delete(N)), snapshot: () => r.current, setState: (N, B, Z) => {
7743
+ var z, $, A, K;
7744
7744
  if (!Object.is(r.current[N], B)) {
7745
- if (r.current[N] = B, N === "search") ee(), U(), k(1, re);
7745
+ if (r.current[N] = B, N === "search") te(), U(), k(1, re);
7746
7746
  else if (N === "value") {
7747
7747
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
7748
- let te = document.getElementById(S);
7749
- te ? te.focus() : (M = document.getElementById(x)) == null || M.focus();
7748
+ let ee = document.getElementById(S);
7749
+ ee ? ee.focus() : (z = document.getElementById(x)) == null || z.focus();
7750
7750
  }
7751
7751
  if (k(7, () => {
7752
- var te;
7753
- r.current.selectedItemId = (te = z()) == null ? void 0 : te.id, T.emit();
7754
- }), X || k(5, J), ((W = l.current) == null ? void 0 : W.value) !== void 0) {
7755
- let te = B ?? "";
7756
- (Q = (_ = l.current).onValueChange) == null || Q.call(_, te);
7752
+ var ee;
7753
+ r.current.selectedItemId = (ee = W()) == null ? void 0 : ee.id, T.emit();
7754
+ }), Z || k(5, Q), (($ = l.current) == null ? void 0 : $.value) !== void 0) {
7755
+ let ee = B ?? "";
7756
+ (K = (A = l.current).onValueChange) == null || K.call(A, ee);
7757
7757
  return;
7758
7758
  }
7759
7759
  }
@@ -7761,110 +7761,110 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7761
7761
  }
7762
7762
  }, emit: () => {
7763
7763
  i.current.forEach((N) => N());
7764
- } }), []), R = c.useMemo(() => ({ value: (N, B, X) => {
7765
- var M;
7766
- B !== ((M = a.current.get(N)) == null ? void 0 : M.value) && (a.current.set(N, { value: B, keywords: X }), r.current.filtered.items.set(N, F(B, X)), k(2, () => {
7764
+ } }), []), R = c.useMemo(() => ({ value: (N, B, Z) => {
7765
+ var z;
7766
+ B !== ((z = a.current.get(N)) == null ? void 0 : z.value) && (a.current.set(N, { value: B, keywords: Z }), r.current.filtered.items.set(N, F(B, Z)), k(2, () => {
7767
7767
  U(), T.emit();
7768
7768
  }));
7769
7769
  }, item: (N, B) => (n.current.add(N), B && (o.current.has(B) ? o.current.get(B).add(N) : o.current.set(B, /* @__PURE__ */ new Set([N]))), k(3, () => {
7770
- ee(), U(), r.current.value || re(), T.emit();
7770
+ te(), U(), r.current.value || re(), T.emit();
7771
7771
  }), () => {
7772
7772
  a.current.delete(N), n.current.delete(N), r.current.filtered.items.delete(N);
7773
- let X = z();
7773
+ let Z = W();
7774
7774
  k(4, () => {
7775
- ee(), (X == null ? void 0 : X.getAttribute("id")) === N && re(), T.emit();
7775
+ te(), (Z == null ? void 0 : Z.getAttribute("id")) === N && re(), T.emit();
7776
7776
  });
7777
7777
  }), group: (N) => (o.current.has(N) || o.current.set(N, /* @__PURE__ */ new Set()), () => {
7778
7778
  a.current.delete(N), o.current.delete(N);
7779
7779
  }), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: x, inputId: S, labelId: C, listInnerRef: P }), []);
7780
7780
  function F(N, B) {
7781
- var X, M;
7782
- let W = (M = (X = l.current) == null ? void 0 : X.filter) != null ? M : Ab;
7783
- return N ? W(N, r.current.search, B) : 0;
7781
+ var Z, z;
7782
+ let $ = (z = (Z = l.current) == null ? void 0 : Z.filter) != null ? z : Ab;
7783
+ return N ? $(N, r.current.search, B) : 0;
7784
7784
  }
7785
7785
  function U() {
7786
7786
  if (!r.current.search || l.current.shouldFilter === !1) return;
7787
7787
  let N = r.current.filtered.items, B = [];
7788
- r.current.filtered.groups.forEach((M) => {
7789
- let W = o.current.get(M), _ = 0;
7790
- W.forEach((Q) => {
7791
- let te = N.get(Q);
7792
- _ = Math.max(te, _);
7793
- }), B.push([M, _]);
7788
+ r.current.filtered.groups.forEach((z) => {
7789
+ let $ = o.current.get(z), A = 0;
7790
+ $.forEach((K) => {
7791
+ let ee = N.get(K);
7792
+ A = Math.max(ee, A);
7793
+ }), B.push([z, A]);
7794
7794
  });
7795
- let X = P.current;
7796
- D().sort((M, W) => {
7797
- var _, Q;
7798
- let te = M.getAttribute("id"), oe = W.getAttribute("id");
7799
- return ((_ = N.get(oe)) != null ? _ : 0) - ((Q = N.get(te)) != null ? Q : 0);
7800
- }).forEach((M) => {
7801
- let W = M.closest(Ro);
7802
- W ? W.appendChild(M.parentElement === W ? M : M.closest(`${Ro} > *`)) : X.appendChild(M.parentElement === X ? M : M.closest(`${Ro} > *`));
7803
- }), B.sort((M, W) => W[1] - M[1]).forEach((M) => {
7804
- var W;
7805
- let _ = (W = P.current) == null ? void 0 : W.querySelector(`${pr}[${Ut}="${encodeURIComponent(M[0])}"]`);
7806
- _ == null || _.parentElement.appendChild(_);
7795
+ let Z = P.current;
7796
+ O().sort((z, $) => {
7797
+ var A, K;
7798
+ let ee = z.getAttribute("id"), oe = $.getAttribute("id");
7799
+ return ((A = N.get(oe)) != null ? A : 0) - ((K = N.get(ee)) != null ? K : 0);
7800
+ }).forEach((z) => {
7801
+ let $ = z.closest(Ro);
7802
+ $ ? $.appendChild(z.parentElement === $ ? z : z.closest(`${Ro} > *`)) : Z.appendChild(z.parentElement === Z ? z : z.closest(`${Ro} > *`));
7803
+ }), B.sort((z, $) => $[1] - z[1]).forEach((z) => {
7804
+ var $;
7805
+ let A = ($ = P.current) == null ? void 0 : $.querySelector(`${pr}[${Ut}="${encodeURIComponent(z[0])}"]`);
7806
+ A == null || A.parentElement.appendChild(A);
7807
7807
  });
7808
7808
  }
7809
7809
  function re() {
7810
- let N = D().find((X) => X.getAttribute("aria-disabled") !== "true"), B = N == null ? void 0 : N.getAttribute(Ut);
7810
+ let N = O().find((Z) => Z.getAttribute("aria-disabled") !== "true"), B = N == null ? void 0 : N.getAttribute(Ut);
7811
7811
  T.setState("value", B || void 0);
7812
7812
  }
7813
- function ee() {
7814
- var N, B, X, M;
7813
+ function te() {
7814
+ var N, B, Z, z;
7815
7815
  if (!r.current.search || l.current.shouldFilter === !1) {
7816
7816
  r.current.filtered.count = n.current.size;
7817
7817
  return;
7818
7818
  }
7819
7819
  r.current.filtered.groups = /* @__PURE__ */ new Set();
7820
- let W = 0;
7821
- for (let _ of n.current) {
7822
- let Q = (B = (N = a.current.get(_)) == null ? void 0 : N.value) != null ? B : "", te = (M = (X = a.current.get(_)) == null ? void 0 : X.keywords) != null ? M : [], oe = F(Q, te);
7823
- r.current.filtered.items.set(_, oe), oe > 0 && W++;
7820
+ let $ = 0;
7821
+ for (let A of n.current) {
7822
+ let K = (B = (N = a.current.get(A)) == null ? void 0 : N.value) != null ? B : "", ee = (z = (Z = a.current.get(A)) == null ? void 0 : Z.keywords) != null ? z : [], oe = F(K, ee);
7823
+ r.current.filtered.items.set(A, oe), oe > 0 && $++;
7824
7824
  }
7825
- for (let [_, Q] of o.current) for (let te of Q) if (r.current.filtered.items.get(te) > 0) {
7826
- r.current.filtered.groups.add(_);
7825
+ for (let [A, K] of o.current) for (let ee of K) if (r.current.filtered.items.get(ee) > 0) {
7826
+ r.current.filtered.groups.add(A);
7827
7827
  break;
7828
7828
  }
7829
- r.current.filtered.count = W;
7829
+ r.current.filtered.count = $;
7830
7830
  }
7831
- function J() {
7832
- var N, B, X;
7833
- let M = z();
7834
- M && (((N = M.parentElement) == null ? void 0 : N.firstChild) === M && ((X = (B = M.closest(pr)) == null ? void 0 : B.querySelector(Tb)) == null || X.scrollIntoView({ block: "nearest" })), M.scrollIntoView({ block: "nearest" }));
7831
+ function Q() {
7832
+ var N, B, Z;
7833
+ let z = W();
7834
+ z && (((N = z.parentElement) == null ? void 0 : N.firstChild) === z && ((Z = (B = z.closest(pr)) == null ? void 0 : B.querySelector(Tb)) == null || Z.scrollIntoView({ block: "nearest" })), z.scrollIntoView({ block: "nearest" }));
7835
7835
  }
7836
- function z() {
7836
+ function W() {
7837
7837
  var N;
7838
7838
  return (N = P.current) == null ? void 0 : N.querySelector(`${zc}[aria-selected="true"]`);
7839
7839
  }
7840
- function D() {
7840
+ function O() {
7841
7841
  var N;
7842
7842
  return Array.from(((N = P.current) == null ? void 0 : N.querySelectorAll(ri)) || []);
7843
7843
  }
7844
- function A(N) {
7845
- let B = D()[N];
7844
+ function _(N) {
7845
+ let B = O()[N];
7846
7846
  B && T.setState("value", B.getAttribute(Ut));
7847
7847
  }
7848
- function O(N) {
7848
+ function M(N) {
7849
7849
  var B;
7850
- let X = z(), M = D(), W = M.findIndex((Q) => Q === X), _ = M[W + N];
7851
- (B = l.current) != null && B.loop && (_ = W + N < 0 ? M[M.length - 1] : W + N === M.length ? M[0] : M[W + N]), _ && T.setState("value", _.getAttribute(Ut));
7850
+ let Z = W(), z = O(), $ = z.findIndex((K) => K === Z), A = z[$ + N];
7851
+ (B = l.current) != null && B.loop && (A = $ + N < 0 ? z[z.length - 1] : $ + N === z.length ? z[0] : z[$ + N]), A && T.setState("value", A.getAttribute(Ut));
7852
7852
  }
7853
7853
  function E(N) {
7854
- let B = z(), X = B == null ? void 0 : B.closest(pr), M;
7855
- for (; X && !M; ) X = N > 0 ? Vb(X, pr) : Bb(X, pr), M = X == null ? void 0 : X.querySelector(ri);
7856
- M ? T.setState("value", M.getAttribute(Ut)) : O(N);
7857
- }
7858
- let I = () => A(D().length - 1), V = (N) => {
7859
- N.preventDefault(), N.metaKey ? I() : N.altKey ? E(1) : O(1);
7860
- }, Z = (N) => {
7861
- N.preventDefault(), N.metaKey ? A(0) : N.altKey ? E(-1) : O(-1);
7854
+ let B = W(), Z = B == null ? void 0 : B.closest(pr), z;
7855
+ for (; Z && !z; ) Z = N > 0 ? Vb(Z, pr) : Bb(Z, pr), z = Z == null ? void 0 : Z.querySelector(ri);
7856
+ z ? T.setState("value", z.getAttribute(Ut)) : M(N);
7857
+ }
7858
+ let I = () => _(O().length - 1), V = (N) => {
7859
+ N.preventDefault(), N.metaKey ? I() : N.altKey ? E(1) : M(1);
7860
+ }, J = (N) => {
7861
+ N.preventDefault(), N.metaKey ? _(0) : N.altKey ? E(-1) : M(-1);
7862
7862
  };
7863
7863
  return c.createElement(H.div, { ref: t, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (N) => {
7864
7864
  var B;
7865
7865
  (B = y.onKeyDown) == null || B.call(y, N);
7866
- let X = N.nativeEvent.isComposing || N.keyCode === 229;
7867
- if (!(N.defaultPrevented || X)) switch (N.key) {
7866
+ let Z = N.nativeEvent.isComposing || N.keyCode === 229;
7867
+ if (!(N.defaultPrevented || Z)) switch (N.key) {
7868
7868
  case "n":
7869
7869
  case "j": {
7870
7870
  h && N.ctrlKey && V(N);
@@ -7876,15 +7876,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7876
7876
  }
7877
7877
  case "p":
7878
7878
  case "k": {
7879
- h && N.ctrlKey && Z(N);
7879
+ h && N.ctrlKey && J(N);
7880
7880
  break;
7881
7881
  }
7882
7882
  case "ArrowUp": {
7883
- Z(N);
7883
+ J(N);
7884
7884
  break;
7885
7885
  }
7886
7886
  case "Home": {
7887
- N.preventDefault(), A(0);
7887
+ N.preventDefault(), _(0);
7888
7888
  break;
7889
7889
  }
7890
7890
  case "End": {
@@ -7893,10 +7893,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7893
7893
  }
7894
7894
  case "Enter": {
7895
7895
  N.preventDefault();
7896
- let M = z();
7897
- if (M) {
7898
- let W = new Event(Ho);
7899
- M.dispatchEvent(W);
7896
+ let z = W();
7897
+ if (z) {
7898
+ let $ = new Event(Ho);
7899
+ z.dispatchEvent($);
7900
7900
  }
7901
7901
  }
7902
7902
  }
@@ -9161,10 +9161,10 @@ var Oy = c.forwardRef((e, t) => {
9161
9161
  if (R.target === R.currentTarget && F && !y) {
9162
9162
  const U = new CustomEvent(Po, Ty);
9163
9163
  if (R.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
9164
- const re = S().filter((A) => A.focusable), ee = re.find((A) => A.active), J = re.find((A) => A.id === v), D = [ee, J, ...re].filter(
9164
+ const re = S().filter((_) => _.focusable), te = re.find((_) => _.active), Q = re.find((_) => _.id === v), O = [te, Q, ...re].filter(
9165
9165
  Boolean
9166
- ).map((A) => A.ref.current);
9167
- kd(D, f);
9166
+ ).map((_) => _.ref.current);
9167
+ kd(O, f);
9168
9168
  }
9169
9169
  }
9170
9170
  P.current = !1;
@@ -11409,45 +11409,45 @@ const F0 = G.forwardRef(
11409
11409
  onResetTags: C = () => {
11410
11410
  }
11411
11411
  }) => {
11412
- const [S, P] = Te(""), [k, T] = Te(!1), R = be(null), F = be(null), U = be(null), [re, ee] = Te();
11412
+ const [S, P] = Te(""), [k, T] = Te(!1), R = be(null), F = be(null), U = be(null), [re, te] = Te();
11413
11413
  dt(() => {
11414
- F.current && ee(F.current.offsetWidth);
11414
+ F.current && te(F.current.offsetWidth);
11415
11415
  }, []);
11416
- const J = e.length >= i, z = (M) => {
11417
- if (J || e.some((_) => _.id === M.id)) return;
11418
- const W = [...e, M];
11419
- h(W), y(M);
11420
- }, D = (M) => {
11421
- const W = e.filter((_) => _.id !== M);
11422
- h(W), x(M);
11423
- }, A = () => {
11416
+ const Q = e.length >= i, W = ($) => {
11417
+ if (Q || e.some((K) => K.id === $.id)) return;
11418
+ const A = [...e, $];
11419
+ h(A), y($);
11420
+ }, O = ($) => {
11421
+ const A = e.filter((K) => K.id !== $);
11422
+ h(A), x($);
11423
+ }, _ = () => {
11424
11424
  h == null || h([]), C();
11425
- }, O = (M) => {
11426
- const W = M.target.value;
11427
- P(W), T(!0);
11425
+ }, M = ($) => {
11426
+ const A = $.target.value;
11427
+ P(A), T(!0);
11428
11428
  }, E = () => {
11429
- const M = S.trim().toLowerCase();
11430
- if (!M) return [];
11431
- const W = new Set(e.map((_) => _.id));
11429
+ const $ = S.trim().toLowerCase();
11430
+ if (!$) return [];
11431
+ const A = new Set(e.map((K) => K.id));
11432
11432
  return o.filter(
11433
- (_) => _.label.toLowerCase().includes(M) && !W.has(_.id)
11433
+ (K) => K.label.toLowerCase().includes($) && !A.has(K.id)
11434
11434
  );
11435
- }, I = (M) => v ? v(M) : M, V = () => {
11436
- const M = S.trim();
11437
- if (!M) return;
11438
- const W = I(M);
11439
- if (!W) return;
11440
- if (e.some((Q) => Q.id === W)) {
11435
+ }, I = ($) => v ? v($) : $, V = () => {
11436
+ const $ = S.trim();
11437
+ if (!$) return;
11438
+ const A = I($);
11439
+ if (!A) return;
11440
+ if (e.some((ee) => ee.id === A)) {
11441
11441
  P(""), T(!1);
11442
11442
  return;
11443
11443
  }
11444
- const _ = o.find(
11445
- (Q) => Q.id === W || I(Q.label) === W
11444
+ const K = o.find(
11445
+ (ee) => ee.id === A || I(ee.label) === A
11446
11446
  );
11447
- _ ? z(_) : a && z({ id: W, label: W }), P(""), T(!1);
11448
- }, Z = (M) => {
11449
- const W = M.key === No.BACKSPACE && !S && e.length > 0, _ = M.key === No.ENTER && S, Q = M.key === No.ESCAPE;
11450
- _ ? (M.preventDefault(), V(), U.current && (U.current.scrollLeft = U.current.scrollWidth)) : W ? D(e[e.length - 1].id) : Q && T(!1);
11447
+ K ? W(K) : a && W({ id: A, label: A }), P(""), T(!1);
11448
+ }, J = ($) => {
11449
+ const A = $.key === No.BACKSPACE && !S && e.length > 0, K = $.key === No.ENTER && S, ee = $.key === No.ESCAPE;
11450
+ K ? ($.preventDefault(), V(), U.current && (U.current.scrollLeft = U.current.scrollWidth)) : A ? O(e[e.length - 1].id) : ee && T(!1);
11451
11451
  }, N = () => {
11452
11452
  if (S && E().length > 0)
11453
11453
  return /* @__PURE__ */ s.jsx(
@@ -11456,9 +11456,9 @@ const F0 = G.forwardRef(
11456
11456
  className: "p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",
11457
11457
  align: "start",
11458
11458
  style: { width: re ?? void 0 },
11459
- onOpenAutoFocus: (M) => M.preventDefault(),
11460
- onCloseAutoFocus: (M) => M.preventDefault(),
11461
- onMouseDown: (M) => M.preventDefault(),
11459
+ onOpenAutoFocus: ($) => $.preventDefault(),
11460
+ onCloseAutoFocus: ($) => $.preventDefault(),
11461
+ onMouseDown: ($) => $.preventDefault(),
11462
11462
  children: /* @__PURE__ */ s.jsx(
11463
11463
  "div",
11464
11464
  {
@@ -11466,39 +11466,45 @@ const F0 = G.forwardRef(
11466
11466
  "max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",
11467
11467
  u
11468
11468
  ),
11469
- children: E().map((M) => /* @__PURE__ */ s.jsx(
11469
+ children: E().map(($) => /* @__PURE__ */ s.jsx(
11470
11470
  V0,
11471
11471
  {
11472
- label: M.label,
11473
- id: M.id,
11472
+ label: $.label,
11473
+ id: $.id,
11474
11474
  onDeleteSuggestion: m,
11475
11475
  deleteText: n,
11476
11476
  className: f,
11477
11477
  tagClassName: p,
11478
11478
  tagVariant: t,
11479
11479
  onClick: () => {
11480
- var W;
11481
- z(M), P(""), T(!1), (W = R.current) == null || W.focus();
11480
+ var A;
11481
+ W($), P(""), T(!1), (A = R.current) == null || A.focus();
11482
11482
  }
11483
11483
  },
11484
- M.id
11484
+ $.id
11485
11485
  ))
11486
11486
  }
11487
11487
  )
11488
11488
  }
11489
11489
  );
11490
- }, B = () => g || /* @__PURE__ */ s.jsx(Dg, { className: "h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]" }), X = () => e.map((M) => /* @__PURE__ */ s.jsx(
11490
+ }, B = () => g || /* @__PURE__ */ s.jsx(Dg, { className: "h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]" }), Z = () => e.map(($) => /* @__PURE__ */ s.jsx(
11491
11491
  Qu,
11492
11492
  {
11493
- label: M.label,
11494
- id: M.id,
11495
- onRemoveTag: D,
11493
+ label: $.label,
11494
+ id: $.id,
11495
+ onRemoveTag: O,
11496
11496
  disabled: l,
11497
11497
  className: p,
11498
11498
  variant: t
11499
11499
  },
11500
- M.id
11501
- ));
11500
+ $.id
11501
+ )), z = () => e.length === 0 ? /* @__PURE__ */ s.jsx(s.Fragment, {}) : /* @__PURE__ */ s.jsx(
11502
+ jn,
11503
+ {
11504
+ className: "h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",
11505
+ onClick: _
11506
+ }
11507
+ );
11502
11508
  return /* @__PURE__ */ s.jsx("div", { className: j("w-full", d), children: /* @__PURE__ */ s.jsxs(Ra, { open: k && !l, onOpenChange: T, modal: !1, children: [
11503
11509
  /* @__PURE__ */ s.jsx(Pa, { className: "w-full", children: /* @__PURE__ */ s.jsxs(
11504
11510
  "div",
@@ -11509,9 +11515,9 @@ const F0 = G.forwardRef(
11509
11515
  "flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",
11510
11516
  { "opacity-60": l }
11511
11517
  ),
11512
- onClick: (M) => {
11513
- var W;
11514
- M.stopPropagation(), T(!0), (W = R.current) == null || W.focus();
11518
+ onClick: ($) => {
11519
+ var A;
11520
+ $.stopPropagation(), T(!0), (A = R.current) == null || A.focus();
11515
11521
  },
11516
11522
  children: [
11517
11523
  B(),
@@ -11521,19 +11527,19 @@ const F0 = G.forwardRef(
11521
11527
  ref: U,
11522
11528
  className: "flex items-center gap-2 w-full whitespace-normal overflow-x-auto",
11523
11529
  children: [
11524
- X(),
11530
+ Z(),
11525
11531
  /* @__PURE__ */ s.jsx(
11526
11532
  Nn,
11527
11533
  {
11528
11534
  ref: R,
11529
11535
  value: S,
11530
- onChange: O,
11531
- onClick: (M) => M.stopPropagation(),
11536
+ onChange: M,
11537
+ onClick: ($) => $.stopPropagation(),
11532
11538
  onFocus: () => T(!0),
11533
11539
  onBlur: b,
11534
- onKeyDown: Z,
11540
+ onKeyDown: J,
11535
11541
  placeholder: r,
11536
- disabled: l || J,
11542
+ disabled: l || Q,
11537
11543
  className: j(
11538
11544
  "m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs",
11539
11545
  "placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs"
@@ -11543,13 +11549,7 @@ const F0 = G.forwardRef(
11543
11549
  ]
11544
11550
  }
11545
11551
  ),
11546
- /* @__PURE__ */ s.jsx(
11547
- jn,
11548
- {
11549
- className: "h-4 w-4 hover:cursor-pointer text-[var(--icon-input-neutral-idle)] hover:text-[var(--icon-input-neutral-hover)]",
11550
- onClick: A
11551
- }
11552
- )
11552
+ z()
11553
11553
  ]
11554
11554
  }
11555
11555
  ) }),
@@ -11896,32 +11896,32 @@ function R1({
11896
11896
  dt(() => {
11897
11897
  e !== void 0 && T(P ? e || [] : e || "");
11898
11898
  }, [e, P]);
11899
- function ee(O, E) {
11899
+ function te(M, E) {
11900
11900
  if (!P) {
11901
- T(O), r == null || r(O), C(!1);
11901
+ T(M), r == null || r(M), C(!1);
11902
11902
  return;
11903
11903
  }
11904
11904
  T((I) => {
11905
- const V = Array.isArray(I) ? I : [], Z = new Set(V), N = df(t, O);
11905
+ const V = Array.isArray(I) ? I : [], J = new Set(V), N = df(t, M);
11906
11906
  if (!N) return V;
11907
- E ? J(N, Z) : z(O, Z);
11908
- const B = Array.from(Z);
11907
+ E ? Q(N, J) : W(M, J);
11908
+ const B = Array.from(J);
11909
11909
  return r == null || r(
11910
11910
  B
11911
11911
  ), B;
11912
11912
  });
11913
11913
  }
11914
- function J(O, E) {
11915
- ro(O).every(
11916
- (Z) => E.has(Z)
11917
- ) ? C1(O, E) : S1(O, E);
11914
+ function Q(M, E) {
11915
+ ro(M).every(
11916
+ (J) => E.has(J)
11917
+ ) ? C1(M, E) : S1(M, E);
11918
11918
  }
11919
- function z(O, E) {
11920
- E.has(O) ? E.delete(O) : E.add(O), uf(t, E);
11919
+ function W(M, E) {
11920
+ E.has(M) ? E.delete(M) : E.add(M), uf(t, E);
11921
11921
  }
11922
- const D = () => {
11923
- const O = ff(t, R);
11924
- return O.length === 0 ? /* @__PURE__ */ s.jsx(
11922
+ const O = () => {
11923
+ const M = ff(t, R);
11924
+ return M.length === 0 ? /* @__PURE__ */ s.jsx(
11925
11925
  Er,
11926
11926
  {
11927
11927
  variant: p,
@@ -11929,8 +11929,8 @@ function R1({
11929
11929
  className: j("text-purple-muted-300", f),
11930
11930
  children: a
11931
11931
  }
11932
- ) : O.map((I) => {
11933
- const V = re.get(I), Z = U.get(I) || I;
11932
+ ) : M.map((I) => {
11933
+ const V = re.get(I), J = U.get(I) || I;
11934
11934
  return /* @__PURE__ */ s.jsx(
11935
11935
  Er,
11936
11936
  {
@@ -11939,13 +11939,13 @@ function R1({
11939
11939
  className: j("text-[var(--text-bg-neutral-mid)]", f),
11940
11940
  children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1", children: [
11941
11941
  V && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0", children: V }),
11942
- /* @__PURE__ */ s.jsx("span", { children: Z })
11942
+ /* @__PURE__ */ s.jsx("span", { children: J })
11943
11943
  ] })
11944
11944
  },
11945
11945
  I
11946
11946
  );
11947
11947
  });
11948
- }, A = () => {
11948
+ }, _ = () => {
11949
11949
  if (g)
11950
11950
  return /* @__PURE__ */ s.jsx(
11951
11951
  Jc,
@@ -11979,7 +11979,7 @@ function R1({
11979
11979
  "flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",
11980
11980
  d
11981
11981
  ),
11982
- children: D()
11982
+ children: O()
11983
11983
  }
11984
11984
  ),
11985
11985
  /* @__PURE__ */ s.jsx("div", { className: "[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4", children: m })
@@ -11992,19 +11992,19 @@ function R1({
11992
11992
  className: "p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",
11993
11993
  style: { width: h ?? "auto" },
11994
11994
  children: /* @__PURE__ */ s.jsxs(Zc, { className: "bg-[var(--fill-interactive-neutral-idle)]", children: [
11995
- A(),
11995
+ _(),
11996
11996
  /* @__PURE__ */ s.jsxs(Qc, { children: [
11997
11997
  /* @__PURE__ */ s.jsx(ed, { children: l }),
11998
- /* @__PURE__ */ s.jsx(td, { children: t.map((O) => /* @__PURE__ */ s.jsx(
11998
+ /* @__PURE__ */ s.jsx(td, { children: t.map((M) => /* @__PURE__ */ s.jsx(
11999
11999
  pf,
12000
12000
  {
12001
12001
  disabled: n,
12002
- option: O,
12002
+ option: M,
12003
12003
  selected: F,
12004
- onSelect: ee,
12004
+ onSelect: te,
12005
12005
  dir: b
12006
12006
  },
12007
- O.value
12007
+ M.value
12008
12008
  )) })
12009
12009
  ] })
12010
12010
  ] })
@@ -12271,13 +12271,13 @@ var nS = (e, t) => {
12271
12271
  }), []);
12272
12272
  };
12273
12273
  function oS(e, t = {}) {
12274
- var re, ee, J, z;
12274
+ var re, te, Q, W;
12275
12275
  const r = ln(() => {
12276
- const { id: D, ids: A, getRootNode: O } = t;
12277
- return Q1({ id: D, ids: A, getRootNode: O });
12278
- }, [t]), n = (...D) => {
12279
- e.debug && console.log(...D);
12280
- }, o = ((re = e.props) == null ? void 0 : re.call(e, { props: vf(t), scope: r })) ?? t, a = aS(o), i = (ee = e.context) == null ? void 0 : ee.call(e, {
12276
+ const { id: O, ids: _, getRootNode: M } = t;
12277
+ return Q1({ id: O, ids: _, getRootNode: M });
12278
+ }, [t]), n = (...O) => {
12279
+ e.debug && console.log(...O);
12280
+ }, o = ((re = e.props) == null ? void 0 : re.call(e, { props: vf(t), scope: r })) ?? t, a = aS(o), i = (te = e.context) == null ? void 0 : te.call(e, {
12281
12281
  prop: a,
12282
12282
  bindable: wn,
12283
12283
  scope: r,
@@ -12295,22 +12295,22 @@ function oS(e, t = {}) {
12295
12295
  return m();
12296
12296
  }
12297
12297
  }), l = yf(i), d = {
12298
- get(D) {
12299
- var A;
12300
- return (A = l.current) == null ? void 0 : A[D].ref.current;
12298
+ get(O) {
12299
+ var _;
12300
+ return (_ = l.current) == null ? void 0 : _[O].ref.current;
12301
12301
  },
12302
- set(D, A) {
12303
- var O;
12304
- (O = l.current) == null || O[D].set(A);
12302
+ set(O, _) {
12303
+ var M;
12304
+ (M = l.current) == null || M[O].set(_);
12305
12305
  },
12306
- initial(D) {
12307
- var A;
12308
- return (A = l.current) == null ? void 0 : A[D].initial;
12306
+ initial(O) {
12307
+ var _;
12308
+ return (_ = l.current) == null ? void 0 : _[O].initial;
12309
12309
  },
12310
- hash(D) {
12311
- var O, E;
12312
- const A = (O = l.current) == null ? void 0 : O[D].get();
12313
- return (E = l.current) == null ? void 0 : E[D].hash(A);
12310
+ hash(O) {
12311
+ var M, E;
12312
+ const _ = (M = l.current) == null ? void 0 : M[O].get();
12313
+ return (E = l.current) == null ? void 0 : E[O].hash(_);
12314
12314
  }
12315
12315
  }, u = be(/* @__PURE__ */ new Map()), f = be(null), p = be(null), g = be({ type: "" }), m = () => ({
12316
12316
  ...g.current,
@@ -12322,14 +12322,14 @@ function oS(e, t = {}) {
12322
12322
  }
12323
12323
  }), b = () => ({
12324
12324
  ...k,
12325
- matches(...D) {
12326
- return D.includes(k.ref.current);
12325
+ matches(...O) {
12326
+ return O.includes(k.ref.current);
12327
12327
  },
12328
- hasTag(D) {
12329
- var A, O;
12330
- return !!((O = (A = e.states[k.ref.current]) == null ? void 0 : A.tags) != null && O.includes(D));
12328
+ hasTag(O) {
12329
+ var _, M;
12330
+ return !!((M = (_ = e.states[k.ref.current]) == null ? void 0 : _.tags) != null && M.includes(O));
12331
12331
  }
12332
- }), v = rS(((J = e.refs) == null ? void 0 : J.call(e, { prop: a, context: d })) ?? {}), h = () => ({
12332
+ }), v = rS(((Q = e.refs) == null ? void 0 : Q.call(e, { prop: a, context: d })) ?? {}), h = () => ({
12333
12333
  state: b(),
12334
12334
  context: d,
12335
12335
  event: m(),
@@ -12343,39 +12343,39 @@ function oS(e, t = {}) {
12343
12343
  flush: ki,
12344
12344
  scope: r,
12345
12345
  choose: S
12346
- }), y = (D) => {
12347
- const A = hr(D) ? D(h()) : D;
12348
- if (!A) return;
12349
- const O = A.map((E) => {
12350
- var V, Z;
12351
- const I = (Z = (V = e.implementations) == null ? void 0 : V.actions) == null ? void 0 : Z[E];
12346
+ }), y = (O) => {
12347
+ const _ = hr(O) ? O(h()) : O;
12348
+ if (!_) return;
12349
+ const M = _.map((E) => {
12350
+ var V, J;
12351
+ const I = (J = (V = e.implementations) == null ? void 0 : V.actions) == null ? void 0 : J[E];
12352
12352
  return I || ji(`[zag-js] No implementation found for action "${JSON.stringify(E)}"`), I;
12353
12353
  });
12354
- for (const E of O)
12354
+ for (const E of M)
12355
12355
  E == null || E(h());
12356
- }, x = (D) => {
12357
- var A, O;
12358
- return hr(D) ? D(h()) : (O = (A = e.implementations) == null ? void 0 : A.guards) == null ? void 0 : O[D](h());
12359
- }, C = (D) => {
12360
- const A = hr(D) ? D(h()) : D;
12361
- if (!A) return;
12362
- const O = A.map((I) => {
12363
- var Z, N;
12364
- const V = (N = (Z = e.implementations) == null ? void 0 : Z.effects) == null ? void 0 : N[I];
12356
+ }, x = (O) => {
12357
+ var _, M;
12358
+ return hr(O) ? O(h()) : (M = (_ = e.implementations) == null ? void 0 : _.guards) == null ? void 0 : M[O](h());
12359
+ }, C = (O) => {
12360
+ const _ = hr(O) ? O(h()) : O;
12361
+ if (!_) return;
12362
+ const M = _.map((I) => {
12363
+ var J, N;
12364
+ const V = (N = (J = e.implementations) == null ? void 0 : J.effects) == null ? void 0 : N[I];
12365
12365
  return V || ji(`[zag-js] No implementation found for effect "${JSON.stringify(I)}"`), V;
12366
12366
  }), E = [];
12367
- for (const I of O) {
12367
+ for (const I of M) {
12368
12368
  const V = I == null ? void 0 : I(h());
12369
12369
  V && E.push(V);
12370
12370
  }
12371
12371
  return () => E.forEach((I) => I == null ? void 0 : I());
12372
- }, S = (D) => j1(D).find((A) => {
12373
- let O = !A.guard;
12374
- return an(A.guard) ? O = !!x(A.guard) : hr(A.guard) && (O = A.guard(h())), O;
12375
- }), P = (D) => {
12372
+ }, S = (O) => j1(O).find((_) => {
12373
+ let M = !_.guard;
12374
+ return an(_.guard) ? M = !!x(_.guard) : hr(_.guard) && (M = _.guard(h())), M;
12375
+ }), P = (O) => {
12376
12376
  W1(e.computed, () => "[zag-js] No computed object found on machine");
12377
- const A = e.computed[D];
12378
- return A({
12377
+ const _ = e.computed[O];
12378
+ return _({
12379
12379
  context: d,
12380
12380
  event: m(),
12381
12381
  prop: a,
@@ -12385,56 +12385,56 @@ function oS(e, t = {}) {
12385
12385
  });
12386
12386
  }, k = wn(() => ({
12387
12387
  defaultValue: e.initialState({ prop: a }),
12388
- onChange(D, A) {
12389
- var E, I, V, Z;
12390
- if (A) {
12391
- const N = u.current.get(A);
12392
- N == null || N(), u.current.delete(A);
12393
- }
12394
- A && y((E = e.states[A]) == null ? void 0 : E.exit), y((I = f.current) == null ? void 0 : I.actions);
12395
- const O = C((V = e.states[D]) == null ? void 0 : V.effects);
12396
- if (O && u.current.set(D, O), A === Ao) {
12388
+ onChange(O, _) {
12389
+ var E, I, V, J;
12390
+ if (_) {
12391
+ const N = u.current.get(_);
12392
+ N == null || N(), u.current.delete(_);
12393
+ }
12394
+ _ && y((E = e.states[_]) == null ? void 0 : E.exit), y((I = f.current) == null ? void 0 : I.actions);
12395
+ const M = C((V = e.states[O]) == null ? void 0 : V.effects);
12396
+ if (M && u.current.set(O, M), _ === Ao) {
12397
12397
  y(e.entry);
12398
12398
  const N = C(e.effects);
12399
12399
  N && u.current.set(Ao, N);
12400
12400
  }
12401
- y((Z = e.states[D]) == null ? void 0 : Z.entry);
12401
+ y((J = e.states[O]) == null ? void 0 : J.entry);
12402
12402
  }
12403
12403
  })), T = be(void 0), R = be(Kt.NotStarted);
12404
12404
  bf(() => {
12405
12405
  queueMicrotask(() => {
12406
- const O = R.current === Kt.Started;
12407
- R.current = Kt.Started, n(O ? "rehydrating..." : "initializing...");
12406
+ const M = R.current === Kt.Started;
12407
+ R.current = Kt.Started, n(M ? "rehydrating..." : "initializing...");
12408
12408
  const E = T.current ?? k.initial;
12409
- k.invoke(E, O ? k.get() : Ao);
12409
+ k.invoke(E, M ? k.get() : Ao);
12410
12410
  });
12411
- const D = u.current, A = k.ref.current;
12411
+ const O = u.current, _ = k.ref.current;
12412
12412
  return () => {
12413
- n("unmounting..."), T.current = A, R.current = Kt.Stopped, D.forEach((O) => O == null ? void 0 : O()), u.current = /* @__PURE__ */ new Map(), f.current = null, queueMicrotask(() => {
12413
+ n("unmounting..."), T.current = _, R.current = Kt.Stopped, O.forEach((M) => M == null ? void 0 : M()), u.current = /* @__PURE__ */ new Map(), f.current = null, queueMicrotask(() => {
12414
12414
  y(e.exit);
12415
12415
  });
12416
12416
  };
12417
12417
  }, []);
12418
- const F = () => "ref" in k ? k.ref.current : k.get(), U = (D) => {
12418
+ const F = () => "ref" in k ? k.ref.current : k.get(), U = (O) => {
12419
12419
  queueMicrotask(() => {
12420
- var Z, N;
12420
+ var J, N;
12421
12421
  if (R.current !== Kt.Started) return;
12422
- p.current = g.current, g.current = D;
12423
- let A = F();
12424
- const O = (
12422
+ p.current = g.current, g.current = O;
12423
+ let _ = F();
12424
+ const M = (
12425
12425
  // @ts-ignore
12426
- ((Z = e.states[A].on) == null ? void 0 : Z[D.type]) ?? // @ts-ignore
12427
- ((N = e.on) == null ? void 0 : N[D.type])
12428
- ), E = S(O);
12426
+ ((J = e.states[_].on) == null ? void 0 : J[O.type]) ?? // @ts-ignore
12427
+ ((N = e.on) == null ? void 0 : N[O.type])
12428
+ ), E = S(M);
12429
12429
  if (!E) return;
12430
12430
  f.current = E;
12431
- const I = E.target ?? A;
12432
- n("transition", D.type, E.target || A, `(${E.actions})`);
12433
- const V = I !== A;
12434
- V ? ia(() => k.set(I)) : E.reenter && !V ? k.invoke(A, A) : y(E.actions ?? []);
12431
+ const I = E.target ?? _;
12432
+ n("transition", O.type, E.target || _, `(${E.actions})`);
12433
+ const V = I !== _;
12434
+ V ? ia(() => k.set(I)) : E.reenter && !V ? k.invoke(_, _) : y(E.actions ?? []);
12435
12435
  });
12436
12436
  };
12437
- return (z = e.watch) == null || z.call(e, h()), {
12437
+ return (W = e.watch) == null || W.call(e, h()), {
12438
12438
  state: b(),
12439
12439
  send: U,
12440
12440
  context: d,
@@ -13864,17 +13864,17 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
13864
13864
  onDismiss: m,
13865
13865
  disableOutsideScroll: b,
13866
13866
  ...v
13867
- } = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [P, k] = c.useState(null), T = c.useRef(null), R = se(t, T, h.onContentChange), F = c.useRef(0), U = c.useRef(""), re = c.useRef(0), ee = c.useRef(null), J = c.useRef("right"), z = c.useRef(0), D = b ? Ir : c.Fragment, A = b ? { as: aE, allowPinchZoom: !0 } : void 0, O = (I) => {
13868
- var _, Q;
13869
- const V = U.current + I, Z = S().filter((te) => !te.disabled), N = document.activeElement, B = (_ = Z.find((te) => te.ref.current === N)) == null ? void 0 : _.textValue, X = Z.map((te) => te.textValue), M = hE(X, V, B), W = (Q = Z.find((te) => te.textValue === M)) == null ? void 0 : Q.ref.current;
13870
- (function te(oe) {
13871
- U.current = oe, window.clearTimeout(F.current), oe !== "" && (F.current = window.setTimeout(() => te(""), 1e3));
13872
- })(V), W && setTimeout(() => W.focus());
13867
+ } = e, h = St(De, r), y = zr(De, r), x = Wr(r), C = Wf(r), S = ZS(r), [P, k] = c.useState(null), T = c.useRef(null), R = se(t, T, h.onContentChange), F = c.useRef(0), U = c.useRef(""), re = c.useRef(0), te = c.useRef(null), Q = c.useRef("right"), W = c.useRef(0), O = b ? Ir : c.Fragment, _ = b ? { as: aE, allowPinchZoom: !0 } : void 0, M = (I) => {
13868
+ var A, K;
13869
+ const V = U.current + I, J = S().filter((ee) => !ee.disabled), N = document.activeElement, B = (A = J.find((ee) => ee.ref.current === N)) == null ? void 0 : A.textValue, Z = J.map((ee) => ee.textValue), z = hE(Z, V, B), $ = (K = J.find((ee) => ee.textValue === z)) == null ? void 0 : K.ref.current;
13870
+ (function ee(oe) {
13871
+ U.current = oe, window.clearTimeout(F.current), oe !== "" && (F.current = window.setTimeout(() => ee(""), 1e3));
13872
+ })(V), $ && setTimeout(() => $.focus());
13873
13873
  };
13874
13874
  c.useEffect(() => () => window.clearTimeout(F.current), []), Tn();
13875
13875
  const E = c.useCallback((I) => {
13876
- var Z, N;
13877
- return J.current === ((Z = ee.current) == null ? void 0 : Z.side) && bE(I, (N = ee.current) == null ? void 0 : N.area);
13876
+ var J, N;
13877
+ return Q.current === ((J = te.current) == null ? void 0 : J.side) && bE(I, (N = te.current) == null ? void 0 : N.area);
13878
13878
  }, []);
13879
13879
  return /* @__PURE__ */ s.jsx(
13880
13880
  rE,
@@ -13902,9 +13902,9 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
13902
13902
  ),
13903
13903
  pointerGraceTimerRef: re,
13904
13904
  onPointerGraceIntentChange: c.useCallback((I) => {
13905
- ee.current = I;
13905
+ te.current = I;
13906
13906
  }, []),
13907
- children: /* @__PURE__ */ s.jsx(D, { ...A, children: /* @__PURE__ */ s.jsx(
13907
+ children: /* @__PURE__ */ s.jsx(O, { ..._, children: /* @__PURE__ */ s.jsx(
13908
13908
  kr,
13909
13909
  {
13910
13910
  asChild: !0,
@@ -13951,13 +13951,13 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
13951
13951
  ref: R,
13952
13952
  style: { outline: "none", ...v.style },
13953
13953
  onKeyDown: L(v.onKeyDown, (I) => {
13954
- const Z = I.target.closest("[data-radix-menu-content]") === I.currentTarget, N = I.ctrlKey || I.altKey || I.metaKey, B = I.key.length === 1;
13955
- Z && (I.key === "Tab" && I.preventDefault(), !N && B && O(I.key));
13956
- const X = T.current;
13957
- if (I.target !== X || !KS.includes(I.key)) return;
13954
+ const J = I.target.closest("[data-radix-menu-content]") === I.currentTarget, N = I.ctrlKey || I.altKey || I.metaKey, B = I.key.length === 1;
13955
+ J && (I.key === "Tab" && I.preventDefault(), !N && B && M(I.key));
13956
+ const Z = T.current;
13957
+ if (I.target !== Z || !KS.includes(I.key)) return;
13958
13958
  I.preventDefault();
13959
- const W = S().filter((_) => !_.disabled).map((_) => _.ref.current);
13960
- Bf.includes(I.key) && W.reverse(), gE(W);
13959
+ const $ = S().filter((A) => !A.disabled).map((A) => A.ref.current);
13960
+ Bf.includes(I.key) && $.reverse(), gE($);
13961
13961
  }),
13962
13962
  onBlur: L(e.onBlur, (I) => {
13963
13963
  I.currentTarget.contains(I.target) || (window.clearTimeout(F.current), U.current = "");
@@ -13965,10 +13965,10 @@ var De = "MenuContent", [rE, Qa] = Lt(De), Kf = c.forwardRef(
13965
13965
  onPointerMove: L(
13966
13966
  e.onPointerMove,
13967
13967
  jr((I) => {
13968
- const V = I.target, Z = z.current !== I.clientX;
13969
- if (I.currentTarget.contains(V) && Z) {
13970
- const N = I.clientX > z.current ? "right" : "left";
13971
- J.current = N, z.current = I.clientX;
13968
+ const V = I.target, J = W.current !== I.clientX;
13969
+ if (I.currentTarget.contains(V) && J) {
13970
+ const N = I.clientX > W.current ? "right" : "left";
13971
+ Q.current = N, W.current = I.clientX;
13972
13972
  }
13973
13973
  })
13974
13974
  )
@@ -15140,7 +15140,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15140
15140
  invalidEmailError: d = "Invalid email",
15141
15141
  invalidDomainError: u = "Email domain is not allowed"
15142
15142
  }) => {
15143
- const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify: P } = kR({ onChange: e }), k = TR({
15143
+ const f = be(null), p = be(null), [g, m] = Te(""), [b, v] = Te(!1), { emails: h, setEmails: y, addTokens: x, removeToken: C, clearAll: S, notify: P } = kR({ onChange: e, organization: o }), k = TR({
15144
15144
  draft: g,
15145
15145
  setDraft: m,
15146
15146
  addTokens: x,
@@ -15151,8 +15151,8 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15151
15151
  setEmails: y,
15152
15152
  notify: P
15153
15153
  }), T = () => {
15154
- var Z;
15155
- const V = ((Z = o == null ? void 0 : o.domains) == null ? void 0 : Z[0]) || "example.com";
15154
+ var J;
15155
+ const V = ((J = o == null ? void 0 : o.domains) == null ? void 0 : J[0]) || "example.com";
15156
15156
  return r({ domain: V });
15157
15157
  }, R = Se(
15158
15158
  (V) => {
@@ -15163,30 +15163,30 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15163
15163
  g.trim() && (x(g), m("")), v(!1);
15164
15164
  }, [g, x]), U = Se(
15165
15165
  (V) => {
15166
- const Z = V.clipboardData.getData("text");
15167
- Z && (V.preventDefault(), x(Z), m(""));
15166
+ const J = V.clipboardData.getData("text");
15167
+ J && (V.preventDefault(), x(J), m(""));
15168
15168
  },
15169
15169
  [x]
15170
15170
  ), re = Se(() => {
15171
15171
  var V;
15172
15172
  (V = p.current) == null || V.focus();
15173
- }, [p]), ee = Se(() => {
15173
+ }, [p]), te = Se(() => {
15174
15174
  v(!1);
15175
- }, []), J = Se(
15175
+ }, []), Q = Se(
15176
15176
  (V) => {
15177
15177
  var N;
15178
- const Z = V.relatedTarget;
15179
- Z && ((N = f.current) != null && N.contains(Z)) || g.trim() && (x(g), m(""));
15178
+ const J = V.relatedTarget;
15179
+ J && ((N = f.current) != null && N.contains(J)) || g.trim() && (x(g), m(""));
15180
15180
  },
15181
15181
  [g, x]
15182
- ), z = h.length > 0, D = !z && g.length === 0, A = z || g.length > 0, O = j(
15182
+ ), W = h.length > 0, O = !W && g.length === 0, _ = W || g.length > 0, M = j(
15183
15183
  "bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",
15184
- z ? "flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar" : "flex-1 !min-w-full overflow-hidden",
15184
+ W ? "flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar" : "flex-1 !min-w-full overflow-hidden",
15185
15185
  { "opacity-50 cursor-not-allowed": t },
15186
15186
  a
15187
15187
  ), E = j(
15188
15188
  "inline-flex items-center gap-1 no-scrollbar",
15189
- z ? "w-max" : "w-full",
15189
+ W ? "w-max" : "w-full",
15190
15190
  i
15191
15191
  ), I = j(
15192
15192
  "qodo qodo-email-chips-input",
@@ -15204,19 +15204,19 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15204
15204
  ref: f,
15205
15205
  className: I,
15206
15206
  onClick: re,
15207
- onFocus: ee,
15208
- onBlur: J,
15207
+ onFocus: te,
15208
+ onBlur: Q,
15209
15209
  children: [
15210
15210
  /* @__PURE__ */ s.jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400", children: /* @__PURE__ */ s.jsx(Ig, { className: "w-4 h-4" }) }),
15211
15211
  /* @__PURE__ */ s.jsx("div", { className: "w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar", children: /* @__PURE__ */ s.jsxs("div", { className: E, children: [
15212
- h.map((V, Z) => /* @__PURE__ */ s.jsx(
15212
+ h.map((V, J) => /* @__PURE__ */ s.jsx(
15213
15213
  AR,
15214
15214
  {
15215
15215
  email: V.email,
15216
15216
  isValid: V.isValid,
15217
15217
  onRemove: C
15218
15218
  },
15219
- `email-${Z}-${V.email}`
15219
+ `email-${J}-${V.email}`
15220
15220
  )),
15221
15221
  /* @__PURE__ */ s.jsx(
15222
15222
  "input",
@@ -15227,8 +15227,8 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15227
15227
  onKeyDown: k,
15228
15228
  onBlur: F,
15229
15229
  onPaste: U,
15230
- className: O,
15231
- placeholder: D ? T() : "",
15230
+ className: M,
15231
+ placeholder: O ? T() : "",
15232
15232
  disabled: t
15233
15233
  }
15234
15234
  )
@@ -15236,7 +15236,7 @@ const cR = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
15236
15236
  /* @__PURE__ */ s.jsx(
15237
15237
  _R,
15238
15238
  {
15239
- hasContent: A,
15239
+ hasContent: _,
15240
15240
  onClearAll: S,
15241
15241
  emails: h,
15242
15242
  invalidEmailError: d,