@endsoul/react-ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,48 +1,520 @@
1
+ import * as e from "react";
2
+ import { createElement as t } from "react";
3
+ import * as n from "react-dom";
1
4
  //#region \0rolldown/runtime.js
2
- var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), t = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
5
+ var r = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), i = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
3
6
  if (typeof require < "u") return require.apply(this, arguments);
4
7
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
5
8
  });
6
9
  //#endregion
10
+ //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
11
+ function a() {
12
+ return typeof window < "u";
13
+ }
14
+ function o(e) {
15
+ var t;
16
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
17
+ }
18
+ function s(e) {
19
+ return a() ? e instanceof HTMLElement || e instanceof o(e).HTMLElement : !1;
20
+ }
21
+ function c(e) {
22
+ return !a() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof o(e).ShadowRoot;
23
+ }
24
+ function l(e) {
25
+ return o(e).getComputedStyle(e);
26
+ }
27
+ //#endregion
28
+ //#region node_modules/@base-ui/utils/safeReact.mjs
29
+ var u = { ...e }, d = {};
30
+ function f(t, n) {
31
+ let r = e.useRef(d);
32
+ return r.current === d && (r.current = t(n)), r;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/@base-ui/utils/useStableCallback.mjs
36
+ var p = u.useInsertionEffect, m = p && p !== u.useLayoutEffect ? p : (e) => e();
37
+ function h(e) {
38
+ let t = f(g).current;
39
+ return t.next = e, m(t.effect), t.trampoline;
40
+ }
41
+ function g() {
42
+ let e = {
43
+ next: void 0,
44
+ callback: _,
45
+ trampoline: (...t) => e.callback?.(...t),
46
+ effect: () => {
47
+ e.callback = e.next;
48
+ }
49
+ };
50
+ return e;
51
+ }
52
+ function _() {
53
+ if (process.env.NODE_ENV !== "production") throw Error("Base UI: Cannot call an event handler while rendering.");
54
+ }
55
+ //#endregion
56
+ //#region node_modules/@base-ui/utils/error.mjs
57
+ var v;
58
+ process.env.NODE_ENV !== "production" && (v = /* @__PURE__ */ new Set());
59
+ function y(...e) {
60
+ if (process.env.NODE_ENV !== "production") {
61
+ let t = e.join(" ");
62
+ v.has(t) || (v.add(t), console.error(`Base UI: ${t}`));
63
+ }
64
+ }
65
+ var b = typeof document < "u" ? e.useLayoutEffect : () => {};
66
+ //#endregion
67
+ //#region node_modules/@base-ui/utils/mergeObjects.mjs
68
+ function x(e, t) {
69
+ if (e && !t) return e;
70
+ if (!e && t) return t;
71
+ if (e || t) return {
72
+ ...e,
73
+ ...t
74
+ };
75
+ }
76
+ //#endregion
77
+ //#region node_modules/@base-ui/react/merge-props/mergeProps.mjs
78
+ var S = {};
79
+ function C(e, t, n, r, i) {
80
+ if (!n && !r && !i && !e) return T(t);
81
+ let a = T(e);
82
+ return t && (a = E(a, t)), n && (a = E(a, n)), r && (a = E(a, r)), i && (a = E(a, i)), a;
83
+ }
84
+ function w(e) {
85
+ if (e.length === 0) return S;
86
+ if (e.length === 1) return T(e[0]);
87
+ let t = T(e[0]);
88
+ for (let n = 1; n < e.length; n += 1) t = E(t, e[n]);
89
+ return t;
90
+ }
91
+ function T(e) {
92
+ return A(e) ? { ...j(e, S) } : D(e);
93
+ }
94
+ function E(e, t) {
95
+ return A(t) ? j(t, e) : O(e, t);
96
+ }
97
+ function D(e) {
98
+ let t = { ...e };
99
+ for (let e in t) {
100
+ let n = t[e];
101
+ k(e, n) && (t[e] = N(n));
102
+ }
103
+ return t;
104
+ }
105
+ function O(e, t) {
106
+ if (!t) return e;
107
+ for (let n in t) {
108
+ let r = t[n];
109
+ switch (n) {
110
+ case "style":
111
+ e[n] = x(e.style, r);
112
+ break;
113
+ case "className":
114
+ e[n] = F(e.className, r);
115
+ break;
116
+ default: e[n] = k(n, r) ? M(e[n], r) : r;
117
+ }
118
+ }
119
+ return e;
120
+ }
121
+ function k(e, t) {
122
+ let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
123
+ return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
124
+ }
125
+ function A(e) {
126
+ return typeof e == "function";
127
+ }
128
+ function j(e, t) {
129
+ return A(e) ? e(t) : e ?? S;
130
+ }
131
+ function M(e, t) {
132
+ return t ? e ? (...n) => {
133
+ let r = n[0];
134
+ if (I(r)) {
135
+ let i = r;
136
+ P(i);
137
+ let a = t(...n);
138
+ return i.baseUIHandlerPrevented || e?.(...n), a;
139
+ }
140
+ let i = t(...n);
141
+ return e?.(...n), i;
142
+ } : N(t) : e;
143
+ }
144
+ function N(e) {
145
+ return e && ((...t) => {
146
+ let n = t[0];
147
+ return I(n) && P(n), e(...t);
148
+ });
149
+ }
150
+ function P(e) {
151
+ return e.preventBaseUIHandler = () => {
152
+ e.baseUIHandlerPrevented = !0;
153
+ }, e;
154
+ }
155
+ function F(e, t) {
156
+ return t ? e ? t + " " + e : t : e;
157
+ }
158
+ function I(e) {
159
+ return typeof e == "object" && !!e && "nativeEvent" in e;
160
+ }
161
+ //#endregion
162
+ //#region node_modules/@base-ui/utils/formatErrorMessage.mjs
163
+ function ee(e, t) {
164
+ return function(n, ...r) {
165
+ let i = new URL(e);
166
+ return i.searchParams.set("code", n.toString()), r.forEach((e) => i.searchParams.append("args[]", e)), `${t} error #${n}; visit ${i} for the full message.`;
167
+ };
168
+ }
169
+ var L = ee("https://base-ui.com/production-error", "Base UI"), R = /*#__PURE__*/ e.createContext(void 0);
170
+ process.env.NODE_ENV !== "production" && (R.displayName = "CompositeRootContext");
171
+ function z(t = !1) {
172
+ let n = e.useContext(R);
173
+ if (n === void 0 && !t) throw Error(process.env.NODE_ENV === "production" ? L(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
174
+ return n;
175
+ }
176
+ //#endregion
177
+ //#region node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs
178
+ function B(t) {
179
+ let { focusableWhenDisabled: n, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = t, s = i && n !== !1, c = i && n === !1;
180
+ return { props: e.useMemo(() => {
181
+ let e = { onKeyDown(e) {
182
+ r && n && e.key !== "Tab" && e.preventDefault();
183
+ } };
184
+ return i || (e.tabIndex = a, !o && r && (e.tabIndex = n ? a : -1)), (o && (n || s) || !o && r) && (e["aria-disabled"] = r), o && (!n || c) && (e.disabled = r), e;
185
+ }, [
186
+ i,
187
+ r,
188
+ n,
189
+ s,
190
+ c,
191
+ o,
192
+ a
193
+ ]) };
194
+ }
195
+ //#endregion
196
+ //#region node_modules/@base-ui/utils/owner.mjs
197
+ function V(e) {
198
+ return e?.ownerDocument || document;
199
+ }
200
+ //#endregion
201
+ //#region node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
202
+ function H(e, t, { detail: n = 0 } = {}) {
203
+ e.dispatchEvent(new (o(e)).PointerEvent("click", {
204
+ bubbles: !0,
205
+ cancelable: !0,
206
+ composed: !0,
207
+ detail: n,
208
+ shiftKey: t.shiftKey,
209
+ ctrlKey: t.ctrlKey,
210
+ altKey: t.altKey,
211
+ metaKey: t.metaKey
212
+ }));
213
+ }
214
+ //#endregion
215
+ //#region node_modules/@base-ui/react/internals/use-button/useButton.mjs
216
+ function te(t = {}) {
217
+ let { disabled: n = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = t, s = e.useRef(null), c = z(!0), l = o ?? c !== void 0, { props: d } = B({
218
+ focusableWhenDisabled: r,
219
+ disabled: n,
220
+ composite: l,
221
+ tabIndex: i,
222
+ isNativeButton: a
223
+ });
224
+ process.env.NODE_ENV !== "production" && e.useEffect(() => {
225
+ if (!s.current) return;
226
+ let e = U(s.current);
227
+ a ? e || y(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${u.captureOwnerStack?.() || ""}`) : e && y(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${u.captureOwnerStack?.() || ""}`);
228
+ }, [a]);
229
+ let f = e.useCallback(() => {
230
+ let e = s.current;
231
+ U(e) && l && n && d.disabled === void 0 && e.disabled && (e.disabled = !1);
232
+ }, [
233
+ n,
234
+ d.disabled,
235
+ l
236
+ ]);
237
+ return b(f, [f]), {
238
+ getButtonProps: e.useCallback((e = {}) => {
239
+ let { onClick: t, onMouseDown: r, onKeyUp: i, onKeyDown: o, onPointerDown: s, ...c } = e;
240
+ return C({
241
+ onClick(e) {
242
+ if (n) {
243
+ e.preventDefault();
244
+ return;
245
+ }
246
+ t?.(e);
247
+ },
248
+ onMouseDown(e) {
249
+ n || r?.(e);
250
+ },
251
+ onKeyDown(e) {
252
+ if (n || (P(e), o?.(e), e.baseUIHandlerPrevented)) return;
253
+ let t = e.target === e.currentTarget, r = e.currentTarget, i = U(r), s = !a && ne(r), c = t && (a ? i : !s), u = e.key === "Enter", d = e.key === " ", f = r.getAttribute("role"), p = f?.startsWith("menuitem") || f === "option" || f === "gridcell";
254
+ if (t && l && d) {
255
+ if (e.defaultPrevented && p) return;
256
+ e.preventDefault(), (!a || i) && (e.preventBaseUIHandler(), H(r, e));
257
+ return;
258
+ }
259
+ if (!c || a || !d && !u) {
260
+ t && s && d && e.preventDefault();
261
+ return;
262
+ }
263
+ e.defaultPrevented || (e.preventDefault(), u && (e.preventBaseUIHandler(), H(r, e)));
264
+ },
265
+ onKeyUp(e) {
266
+ if (!n) {
267
+ if (P(e), i?.(e), e.target === e.currentTarget && a && l && U(e.currentTarget) && e.key === " ") {
268
+ e.preventDefault();
269
+ return;
270
+ }
271
+ e.baseUIHandlerPrevented || e.target === e.currentTarget && !a && !l && !e.defaultPrevented && e.key === " " && (e.preventBaseUIHandler(), H(e.currentTarget, e));
272
+ }
273
+ },
274
+ onPointerDown(e) {
275
+ if (n) {
276
+ e.preventDefault();
277
+ return;
278
+ }
279
+ s?.(e);
280
+ }
281
+ }, a ? { type: "button" } : { role: "button" }, d, c);
282
+ }, [
283
+ n,
284
+ d,
285
+ l,
286
+ a
287
+ ]),
288
+ buttonRef: h((e) => {
289
+ s.current = e, f();
290
+ })
291
+ };
292
+ }
293
+ function U(e) {
294
+ return s(e) && e.tagName === "BUTTON";
295
+ }
296
+ function ne(e) {
297
+ return s(e) && e.tagName === "A" && !!e.href;
298
+ }
299
+ //#endregion
300
+ //#region node_modules/@base-ui/utils/useMergedRefs.mjs
301
+ function W(e, t, n, r) {
302
+ let i = f(ie).current;
303
+ return ae(i, e, t, n, r) && se(i, [
304
+ e,
305
+ t,
306
+ n,
307
+ r
308
+ ]), i.callback;
309
+ }
310
+ function re(e) {
311
+ let t = f(ie).current;
312
+ return oe(t, e) && se(t, e), t.callback;
313
+ }
314
+ function ie() {
315
+ return {
316
+ callback: null,
317
+ cleanup: null,
318
+ refs: []
319
+ };
320
+ }
321
+ function ae(e, t, n, r, i) {
322
+ return e.refs[0] !== t || e.refs[1] !== n || e.refs[2] !== r || e.refs[3] !== i;
323
+ }
324
+ function oe(e, t) {
325
+ return e.refs.length !== t.length || e.refs.some((e, n) => e !== t[n]);
326
+ }
327
+ function se(e, t) {
328
+ if (e.refs = t, t.every((e) => e == null)) {
329
+ e.callback = null;
330
+ return;
331
+ }
332
+ e.callback = (n) => {
333
+ if (e.cleanup &&= (e.cleanup(), null), n != null) {
334
+ let r = Array(t.length).fill(null);
335
+ for (let e = 0; e < t.length; e += 1) {
336
+ let i = t[e];
337
+ if (i != null) switch (typeof i) {
338
+ case "function": {
339
+ let t = i(n);
340
+ typeof t == "function" && (r[e] = t);
341
+ break;
342
+ }
343
+ case "object": i.current = n;
344
+ }
345
+ }
346
+ e.cleanup = () => {
347
+ for (let e = 0; e < t.length; e += 1) {
348
+ let n = t[e];
349
+ if (n != null) switch (typeof n) {
350
+ case "function": {
351
+ let t = r[e];
352
+ typeof t == "function" ? t() : n(null);
353
+ break;
354
+ }
355
+ case "object": n.current = null;
356
+ }
357
+ }
358
+ };
359
+ }
360
+ };
361
+ }
362
+ //#endregion
363
+ //#region node_modules/@base-ui/utils/reactVersion.mjs
364
+ var ce = parseInt(e.version, 10);
365
+ function le(e) {
366
+ return ce >= e;
367
+ }
368
+ //#endregion
369
+ //#region node_modules/@base-ui/utils/getReactElementRef.mjs
370
+ function ue(t) {
371
+ if (!/*#__PURE__*/ e.isValidElement(t)) return null;
372
+ let n = t, r = n.props;
373
+ return (le(19) ? r?.ref : n.ref) ?? null;
374
+ }
375
+ //#endregion
376
+ //#region node_modules/@base-ui/utils/warn.mjs
377
+ var de;
378
+ process.env.NODE_ENV !== "production" && (de = /* @__PURE__ */ new Set());
379
+ function fe(...e) {
380
+ if (process.env.NODE_ENV !== "production") {
381
+ let t = e.join(" ");
382
+ de.has(t) || (de.add(t), console.warn(`Base UI: ${t}`));
383
+ }
384
+ }
385
+ //#endregion
386
+ //#region node_modules/@base-ui/utils/empty.mjs
387
+ function pe() {}
388
+ var me = Object.freeze([]), he = Object.freeze({});
389
+ //#endregion
390
+ //#region node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
391
+ function ge(e, t) {
392
+ let n = {};
393
+ for (let r in e) {
394
+ let i = e[r];
395
+ if (t?.hasOwnProperty(r)) {
396
+ let e = t[r](i);
397
+ e != null && Object.assign(n, e);
398
+ continue;
399
+ }
400
+ i === !0 ? n[`data-${r.toLowerCase()}`] = "" : i && (n[`data-${r.toLowerCase()}`] = i.toString());
401
+ }
402
+ return n;
403
+ }
404
+ //#endregion
405
+ //#region node_modules/@base-ui/react/utils/resolveClassName.mjs
406
+ function _e(e, t) {
407
+ return typeof e == "function" ? e(t) : e;
408
+ }
409
+ //#endregion
410
+ //#region node_modules/@base-ui/react/utils/resolveStyle.mjs
411
+ function ve(e, t) {
412
+ return typeof e == "function" ? e(t) : e;
413
+ }
414
+ //#endregion
415
+ //#region node_modules/@base-ui/react/internals/useRenderElement.mjs
416
+ function ye(e, t, n = {}) {
417
+ let r = t.render, i = be(t, n);
418
+ return n.enabled === !1 ? null : Te(e, r, i, n.state ?? he);
419
+ }
420
+ function be(e, t = {}) {
421
+ let { className: n, style: r, render: i } = e, { state: a = he, ref: o, props: s, stateAttributesMapping: c, enabled: l = !0 } = t, u = l ? _e(n, a) : void 0, d = l ? ve(r, a) : void 0, f = l ? ge(a, c) : he, p = l && s ? xe(s) : void 0, m = l ? x(f, p) ?? {} : he;
422
+ return typeof document < "u" && (l ? m.ref = Array.isArray(o) ? re([
423
+ m.ref,
424
+ ue(i),
425
+ ...o
426
+ ]) : W(m.ref, ue(i), o) : W(null, null)), l ? (u !== void 0 && (m.className = F(m.className, u)), d !== void 0 && (m.style = x(m.style, d)), m) : he;
427
+ }
428
+ function xe(e) {
429
+ return Array.isArray(e) ? w(e) : C(void 0, e);
430
+ }
431
+ var Se = Symbol.for("react.lazy"), Ce = /^[A-Z][A-Za-z0-9$]*$/, we = /[a-z]/;
432
+ function Te(t, n, r, i) {
433
+ if (n) {
434
+ if (typeof n == "function") return process.env.NODE_ENV !== "production" && Ee(n), n(r, i);
435
+ let t = C(r, n.props);
436
+ t.ref = r.ref;
437
+ let a = n;
438
+ if (a?.$$typeof === Se && (a = e.Children.toArray(n)[0]), process.env.NODE_ENV !== "production" && !/*#__PURE__*/ e.isValidElement(a)) throw Error([
439
+ "Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
440
+ "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
441
+ "https://base-ui.com/r/invalid-render-prop"
442
+ ].join("\n"));
443
+ return /*#__PURE__*/ e.cloneElement(a, t);
444
+ }
445
+ if (t && typeof t == "string") return De(t, r);
446
+ throw Error(process.env.NODE_ENV === "production" ? L(8) : "Base UI: Render element or function are not defined.");
447
+ }
448
+ function Ee(e) {
449
+ let t = e.name;
450
+ t.length !== 0 && Ce.test(t) && we.test(t) && fe(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
451
+ }
452
+ function De(n, r) {
453
+ return n === "button" ? /*#__PURE__*/ t("button", {
454
+ type: "button",
455
+ ...r,
456
+ key: r.key
457
+ }) : n === "img" ? /*#__PURE__*/ t("img", {
458
+ alt: "",
459
+ ...r,
460
+ key: r.key
461
+ }) : /*#__PURE__*/ e.createElement(n, r);
462
+ }
463
+ //#endregion
464
+ //#region node_modules/@base-ui/react/button/Button.mjs
465
+ var Oe = /*#__PURE__*/ e.forwardRef(function(e, t) {
466
+ let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } = te({
467
+ disabled: i,
468
+ focusableWhenDisabled: a,
469
+ native: o
470
+ });
471
+ return ye("button", e, {
472
+ state: { disabled: i },
473
+ ref: [t, u],
474
+ props: [c, l]
475
+ });
476
+ });
477
+ process.env.NODE_ENV !== "production" && (Oe.displayName = "Button");
478
+ //#endregion
7
479
  //#region node_modules/clsx/dist/clsx.mjs
8
- function n(e) {
9
- var t, r, i = "";
10
- if (typeof e == "string" || typeof e == "number") i += e;
480
+ function ke(e) {
481
+ var t, n, r = "";
482
+ if (typeof e == "string" || typeof e == "number") r += e;
11
483
  else if (typeof e == "object") {
12
484
  if (Array.isArray(e)) {
13
- var a = e.length;
14
- for (t = 0; t < a; t++) e[t] && (r = n(e[t])) && (i && (i += " "), i += r);
15
- } else for (r in e) e[r] && (i && (i += " "), i += r);
485
+ var i = e.length;
486
+ for (t = 0; t < i; t++) e[t] && (n = ke(e[t])) && (r && (r += " "), r += n);
487
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
16
488
  }
17
- return i;
489
+ return r;
18
490
  }
19
- function r() {
20
- for (var e, t, r = 0, i = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = n(e)) && (i && (i += " "), i += t);
21
- return i;
491
+ function Ae() {
492
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ke(e)) && (r && (r += " "), r += t);
493
+ return r;
22
494
  }
23
495
  //#endregion
24
496
  //#region node_modules/class-variance-authority/dist/index.mjs
25
- var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e, t) => (n) => {
26
- if (t?.variants == null) return a(e, n?.class, n?.className);
27
- let { variants: r, defaultVariants: o } = t, s = Object.keys(r).map((e) => {
28
- let t = n?.[e], a = o?.[e];
497
+ var je = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Me = Ae, Ne = (e, t) => (n) => {
498
+ if (t?.variants == null) return Me(e, n?.class, n?.className);
499
+ let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
500
+ let t = n?.[e], a = i?.[e];
29
501
  if (t === null) return null;
30
- let s = i(t) || i(a);
31
- return r[e][s];
32
- }), c = n && Object.entries(n).reduce((e, t) => {
502
+ let o = je(t) || je(a);
503
+ return r[e][o];
504
+ }), o = n && Object.entries(n).reduce((e, t) => {
33
505
  let [n, r] = t;
34
506
  return r === void 0 || (e[n] = r), e;
35
507
  }, {});
36
- return a(e, s, t?.compoundVariants?.reduce((e, t) => {
37
- let { class: n, className: r, ...i } = t;
38
- return Object.entries(i).every((e) => {
508
+ return Me(e, a, t?.compoundVariants?.reduce((e, t) => {
509
+ let { class: n, className: r, ...a } = t;
510
+ return Object.entries(a).every((e) => {
39
511
  let [t, n] = e;
40
512
  return Array.isArray(n) ? n.includes({
41
- ...o,
42
- ...c
513
+ ...i,
514
+ ...o
43
515
  }[t]) : {
44
- ...o,
45
- ...c
516
+ ...i,
517
+ ...o
46
518
  }[t] === n;
47
519
  }) ? [
48
520
  ...e,
@@ -50,100 +522,100 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
50
522
  r
51
523
  ] : e;
52
524
  }, []), n?.class, n?.className);
53
- }, s = (e, t) => {
525
+ }, Pe = (e, t) => {
54
526
  let n = Array(e.length + t.length);
55
527
  for (let t = 0; t < e.length; t++) n[t] = e[t];
56
528
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
57
529
  return n;
58
- }, c = (e, t) => ({
530
+ }, Fe = (e, t) => ({
59
531
  classGroupId: e,
60
532
  validator: t
61
- }), l = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
533
+ }), Ie = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
62
534
  nextPart: e,
63
535
  validators: t,
64
536
  classGroupId: n
65
- }), u = "-", d = [], f = "arbitrary..", p = (e) => {
66
- let t = g(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
537
+ }), Le = "-", Re = [], ze = "arbitrary..", Be = (e) => {
538
+ let t = Ue(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
67
539
  return {
68
540
  getClassGroupId: (e) => {
69
- if (e.startsWith("[") && e.endsWith("]")) return h(e);
70
- let n = e.split(u);
71
- return m(n, +(n[0] === "" && n.length > 1), t);
541
+ if (e.startsWith("[") && e.endsWith("]")) return He(e);
542
+ let n = e.split(Le);
543
+ return Ve(n, +(n[0] === "" && n.length > 1), t);
72
544
  },
73
545
  getConflictingClassGroupIds: (e, t) => {
74
546
  if (t) {
75
547
  let t = r[e], i = n[e];
76
- return t ? i ? s(i, t) : t : i || d;
548
+ return t ? i ? Pe(i, t) : t : i || Re;
77
549
  }
78
- return n[e] || d;
550
+ return n[e] || Re;
79
551
  }
80
552
  };
81
- }, m = (e, t, n) => {
553
+ }, Ve = (e, t, n) => {
82
554
  if (e.length - t === 0) return n.classGroupId;
83
555
  let r = e[t], i = n.nextPart.get(r);
84
556
  if (i) {
85
- let n = m(e, t + 1, i);
557
+ let n = Ve(e, t + 1, i);
86
558
  if (n) return n;
87
559
  }
88
560
  let a = n.validators;
89
561
  if (a === null) return;
90
- let o = t === 0 ? e.join(u) : e.slice(t).join(u), s = a.length;
562
+ let o = t === 0 ? e.join(Le) : e.slice(t).join(Le), s = a.length;
91
563
  for (let e = 0; e < s; e++) {
92
564
  let t = a[e];
93
565
  if (t.validator(o)) return t.classGroupId;
94
566
  }
95
- }, h = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
567
+ }, He = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
96
568
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
97
- return r ? f + r : void 0;
98
- })(), g = (e) => {
569
+ return r ? ze + r : void 0;
570
+ })(), Ue = (e) => {
99
571
  let { theme: t, classGroups: n } = e;
100
- return _(n, t);
101
- }, _ = (e, t) => {
102
- let n = l();
572
+ return We(n, t);
573
+ }, We = (e, t) => {
574
+ let n = Ie();
103
575
  for (let r in e) {
104
576
  let i = e[r];
105
- v(i, n, r, t);
577
+ Ge(i, n, r, t);
106
578
  }
107
579
  return n;
108
- }, v = (e, t, n, r) => {
580
+ }, Ge = (e, t, n, r) => {
109
581
  let i = e.length;
110
582
  for (let a = 0; a < i; a++) {
111
583
  let i = e[a];
112
- y(i, t, n, r);
584
+ Ke(i, t, n, r);
113
585
  }
114
- }, y = (e, t, n, r) => {
586
+ }, Ke = (e, t, n, r) => {
115
587
  if (typeof e == "string") {
116
- b(e, t, n);
588
+ qe(e, t, n);
117
589
  return;
118
590
  }
119
591
  if (typeof e == "function") {
120
- x(e, t, n, r);
592
+ Je(e, t, n, r);
121
593
  return;
122
594
  }
123
- S(e, t, n, r);
124
- }, b = (e, t, n) => {
125
- let r = e === "" ? t : C(t, e);
595
+ Ye(e, t, n, r);
596
+ }, qe = (e, t, n) => {
597
+ let r = e === "" ? t : Xe(t, e);
126
598
  r.classGroupId = n;
127
- }, x = (e, t, n, r) => {
128
- if (w(e)) {
129
- v(e(r), t, n, r);
599
+ }, Je = (e, t, n, r) => {
600
+ if (Ze(e)) {
601
+ Ge(e(r), t, n, r);
130
602
  return;
131
603
  }
132
- t.validators === null && (t.validators = []), t.validators.push(c(n, e));
133
- }, S = (e, t, n, r) => {
604
+ t.validators === null && (t.validators = []), t.validators.push(Fe(n, e));
605
+ }, Ye = (e, t, n, r) => {
134
606
  let i = Object.entries(e), a = i.length;
135
607
  for (let e = 0; e < a; e++) {
136
608
  let [a, o] = i[e];
137
- v(o, C(t, a), n, r);
609
+ Ge(o, Xe(t, a), n, r);
138
610
  }
139
- }, C = (e, t) => {
140
- let n = e, r = t.split(u), i = r.length;
611
+ }, Xe = (e, t) => {
612
+ let n = e, r = t.split(Le), i = r.length;
141
613
  for (let e = 0; e < i; e++) {
142
614
  let t = r[e], i = n.nextPart.get(t);
143
- i || (i = l(), n.nextPart.set(t, i)), n = i;
615
+ i || (i = Ie(), n.nextPart.set(t, i)), n = i;
144
616
  }
145
617
  return n;
146
- }, w = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, T = (e) => {
618
+ }, Ze = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Qe = (e) => {
147
619
  if (e < 1) return {
148
620
  get: () => void 0,
149
621
  set: () => {}
@@ -161,19 +633,19 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
161
633
  e in n ? n[e] = t : i(e, t);
162
634
  }
163
635
  };
164
- }, E = "!", D = ":", O = [], ee = (e, t, n, r, i) => ({
636
+ }, $e = "!", et = ":", tt = [], nt = (e, t, n, r, i) => ({
165
637
  modifiers: e,
166
638
  hasImportantModifier: t,
167
639
  baseClassName: n,
168
640
  maybePostfixModifierPosition: r,
169
641
  isExternal: i
170
- }), k = (e) => {
642
+ }), rt = (e) => {
171
643
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
172
644
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
173
645
  for (let s = 0; s < o; s++) {
174
646
  let o = e[s];
175
647
  if (n === 0 && r === 0) {
176
- if (o === D) {
648
+ if (o === et) {
177
649
  t.push(e.slice(i, s)), i = s + 1;
178
650
  continue;
179
651
  }
@@ -185,13 +657,13 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
185
657
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
186
658
  }
187
659
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
188
- s.endsWith(E) ? (c = s.slice(0, -1), l = !0) : s.startsWith(E) && (c = s.slice(1), l = !0);
660
+ s.endsWith($e) ? (c = s.slice(0, -1), l = !0) : s.startsWith($e) && (c = s.slice(1), l = !0);
189
661
  let u = a && a > i ? a - i : void 0;
190
- return ee(t, l, c, u);
662
+ return nt(t, l, c, u);
191
663
  };
192
664
  if (t) {
193
- let e = t + D, n = r;
194
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ee(O, !1, t, void 0, !0);
665
+ let e = t + et, n = r;
666
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : nt(tt, !1, t, void 0, !0);
195
667
  }
196
668
  if (n) {
197
669
  let e = r;
@@ -201,7 +673,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
201
673
  });
202
674
  }
203
675
  return r;
204
- }, A = (e) => {
676
+ }, it = (e) => {
205
677
  let t = /* @__PURE__ */ new Map();
206
678
  return e.orderSensitiveModifiers.forEach((e, n) => {
207
679
  t.set(e, 1e6 + n);
@@ -213,18 +685,18 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
213
685
  }
214
686
  return r.length > 0 && (r.sort(), n.push(...r)), n;
215
687
  };
216
- }, j = (e) => ({
217
- cache: T(e.cacheSize),
218
- parseClassName: k(e),
219
- sortModifiers: A(e),
220
- postfixLookupClassGroupIds: M(e),
221
- ...p(e)
222
- }), M = (e) => {
688
+ }, at = (e) => ({
689
+ cache: Qe(e.cacheSize),
690
+ parseClassName: rt(e),
691
+ sortModifiers: it(e),
692
+ postfixLookupClassGroupIds: ot(e),
693
+ ...Be(e)
694
+ }), ot = (e) => {
223
695
  let t = Object.create(null), n = e.postfixLookupClassGroups;
224
696
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
225
697
  return t;
226
- }, N = /\s+/, P = (e, t) => {
227
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(N), l = "";
698
+ }, st = /\s+/, ct = (e, t) => {
699
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(st), l = "";
228
700
  for (let e = c.length - 1; e >= 0; --e) {
229
701
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
230
702
  if (u) {
@@ -248,7 +720,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
248
720
  }
249
721
  h = !1;
250
722
  }
251
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + E : _, y = v + g;
723
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + $e : _, y = v + g;
252
724
  if (s.indexOf(y) > -1) continue;
253
725
  s.push(y);
254
726
  let b = i(g, h);
@@ -259,34 +731,34 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
259
731
  l = t + (l.length > 0 ? " " + l : l);
260
732
  }
261
733
  return l;
262
- }, F = (...e) => {
734
+ }, lt = (...e) => {
263
735
  let t = 0, n, r, i = "";
264
- for (; t < e.length;) (n = e[t++]) && (r = I(n)) && (i && (i += " "), i += r);
736
+ for (; t < e.length;) (n = e[t++]) && (r = ut(n)) && (i && (i += " "), i += r);
265
737
  return i;
266
- }, I = (e) => {
738
+ }, ut = (e) => {
267
739
  if (typeof e == "string") return e;
268
740
  let t, n = "";
269
- for (let r = 0; r < e.length; r++) e[r] && (t = I(e[r])) && (n && (n += " "), n += t);
741
+ for (let r = 0; r < e.length; r++) e[r] && (t = ut(e[r])) && (n && (n += " "), n += t);
270
742
  return n;
271
- }, te = (e, ...t) => {
272
- let n, r, i, a, o = (o) => (n = j(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
743
+ }, dt = (e, ...t) => {
744
+ let n, r, i, a, o = (o) => (n = at(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
273
745
  let t = r(e);
274
746
  if (t) return t;
275
- let a = P(e, n);
747
+ let a = ct(e, n);
276
748
  return i(e, a), a;
277
749
  };
278
- return a = o, (...e) => a(F(...e));
279
- }, ne = [], L = (e) => {
280
- let t = (t) => t[e] || ne;
750
+ return a = o, (...e) => a(lt(...e));
751
+ }, ft = [], G = (e) => {
752
+ let t = (t) => t[e] || ft;
281
753
  return t.isThemeGetter = !0, t;
282
- }, R = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, z = /^\((?:(\w[\w-]*):)?(.+)\)$/i, B = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, re = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ie = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, V = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, H = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => B.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), G = (e) => !!e && Number.isInteger(Number(e)), oe = (e) => e.endsWith("%") && W(e.slice(0, -1)), K = (e) => re.test(e), se = () => !0, q = (e) => ie.test(e) && !V.test(e), J = () => !1, ce = (e) => ae.test(e), le = (e) => H.test(e), ue = (e) => !Y(e) && !Z(e), de = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), fe = (e) => Q(e, Oe, J), Y = (e) => R.test(e), X = (e) => Q(e, ke, q), pe = (e) => Q(e, Ae, W), me = (e) => Q(e, Me, se), he = (e) => Q(e, je, J), ge = (e) => Q(e, Ee, J), _e = (e) => Q(e, De, le), ve = (e) => Q(e, Ne, ce), Z = (e) => z.test(e), ye = (e) => $(e, ke), be = (e) => $(e, je), xe = (e) => $(e, Ee), Se = (e) => $(e, Oe), Ce = (e) => $(e, De), we = (e) => $(e, Ne, !0), Te = (e) => $(e, Me, !0), Q = (e, t, n) => {
283
- let r = R.exec(e);
754
+ }, pt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ht = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, gt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, _t = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, vt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, yt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => ht.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), xt = (e) => e.endsWith("%") && q(e.slice(0, -1)), Y = (e) => gt.test(e), St = () => !0, Ct = (e) => _t.test(e) && !vt.test(e), wt = () => !1, Tt = (e) => yt.test(e), Et = (e) => bt.test(e), Dt = (e) => !X(e) && !Z(e), Ot = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), kt = (e) => Q(e, qt, wt), X = (e) => pt.test(e), At = (e) => Q(e, Jt, Ct), jt = (e) => Q(e, Yt, q), Mt = (e) => Q(e, Zt, St), Nt = (e) => Q(e, Xt, wt), Pt = (e) => Q(e, Gt, wt), Ft = (e) => Q(e, Kt, Et), It = (e) => Q(e, Qt, Tt), Z = (e) => mt.test(e), Lt = (e) => Wt(e, Jt), Rt = (e) => Wt(e, Xt), zt = (e) => Wt(e, Gt), Bt = (e) => Wt(e, qt), Vt = (e) => Wt(e, Kt), Ht = (e) => Wt(e, Qt, !0), Ut = (e) => Wt(e, Zt, !0), Q = (e, t, n) => {
755
+ let r = pt.exec(e);
284
756
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
285
- }, $ = (e, t, n = !1) => {
286
- let r = z.exec(e);
757
+ }, Wt = (e, t, n = !1) => {
758
+ let r = mt.exec(e);
287
759
  return r ? r[1] ? t(r[1]) : n : !1;
288
- }, Ee = (e) => e === "position" || e === "percentage", De = (e) => e === "image" || e === "url", Oe = (e) => e === "length" || e === "size" || e === "bg-size", ke = (e) => e === "length", Ae = (e) => e === "number", je = (e) => e === "family-name", Me = (e) => e === "number" || e === "weight", Ne = (e) => e === "shadow", Pe = /*#__PURE__*/ te(() => {
289
- let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
760
+ }, Gt = (e) => e === "position" || e === "percentage", Kt = (e) => e === "image" || e === "url", qt = (e) => e === "length" || e === "size" || e === "bg-size", Jt = (e) => e === "length", Yt = (e) => e === "number", Xt = (e) => e === "family-name", Zt = (e) => e === "number" || e === "weight", Qt = (e) => e === "shadow", $t = /*#__PURE__*/ dt(() => {
761
+ let e = G("color"), t = G("font"), n = G("text"), r = G("font-weight"), i = G("tracking"), a = G("leading"), o = G("breakpoint"), s = G("container"), c = G("spacing"), l = G("radius"), u = G("shadow"), d = G("inset-shadow"), f = G("text-shadow"), p = G("drop-shadow"), m = G("blur"), h = G("perspective"), g = G("aspect"), _ = G("ease"), v = G("animate"), y = () => [
290
762
  "auto",
291
763
  "avoid",
292
764
  "all",
@@ -312,7 +784,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
312
784
  ], x = () => [
313
785
  ...b(),
314
786
  Z,
315
- Y
787
+ X
316
788
  ], S = () => [
317
789
  "auto",
318
790
  "hidden",
@@ -325,43 +797,43 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
325
797
  "none"
326
798
  ], w = () => [
327
799
  Z,
328
- Y,
800
+ X,
329
801
  c
330
802
  ], T = () => [
331
- U,
803
+ K,
332
804
  "full",
333
805
  "auto",
334
806
  ...w()
335
807
  ], E = () => [
336
- G,
808
+ J,
337
809
  "none",
338
810
  "subgrid",
339
811
  Z,
340
- Y
812
+ X
341
813
  ], D = () => [
342
814
  "auto",
343
815
  { span: [
344
816
  "full",
345
- G,
817
+ J,
346
818
  Z,
347
- Y
819
+ X
348
820
  ] },
349
- G,
821
+ J,
350
822
  Z,
351
- Y
823
+ X
352
824
  ], O = () => [
353
- G,
825
+ J,
354
826
  "auto",
355
827
  Z,
356
- Y
357
- ], ee = () => [
828
+ X
829
+ ], k = () => [
358
830
  "auto",
359
831
  "min",
360
832
  "max",
361
833
  "fr",
362
834
  Z,
363
- Y
364
- ], k = () => [
835
+ X
836
+ ], A = () => [
365
837
  "start",
366
838
  "end",
367
839
  "center",
@@ -372,15 +844,15 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
372
844
  "baseline",
373
845
  "center-safe",
374
846
  "end-safe"
375
- ], A = () => [
847
+ ], j = () => [
376
848
  "start",
377
849
  "end",
378
850
  "center",
379
851
  "stretch",
380
852
  "center-safe",
381
853
  "end-safe"
382
- ], j = () => ["auto", ...w()], M = () => [
383
- U,
854
+ ], M = () => ["auto", ...w()], N = () => [
855
+ K,
384
856
  "auto",
385
857
  "full",
386
858
  "dvw",
@@ -393,8 +865,8 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
393
865
  "max",
394
866
  "fit",
395
867
  ...w()
396
- ], N = () => [
397
- U,
868
+ ], P = () => [
869
+ K,
398
870
  "screen",
399
871
  "full",
400
872
  "dvw",
@@ -404,8 +876,8 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
404
876
  "max",
405
877
  "fit",
406
878
  ...w()
407
- ], P = () => [
408
- U,
879
+ ], F = () => [
880
+ K,
409
881
  "screen",
410
882
  "full",
411
883
  "lh",
@@ -416,50 +888,50 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
416
888
  "max",
417
889
  "fit",
418
890
  ...w()
419
- ], F = () => [
891
+ ], I = () => [
420
892
  e,
421
893
  Z,
422
- Y
423
- ], I = () => [
894
+ X
895
+ ], ee = () => [
424
896
  ...b(),
425
- xe,
426
- ge,
427
- { position: [Z, Y] }
428
- ], te = () => ["no-repeat", { repeat: [
897
+ zt,
898
+ Pt,
899
+ { position: [Z, X] }
900
+ ], L = () => ["no-repeat", { repeat: [
429
901
  "",
430
902
  "x",
431
903
  "y",
432
904
  "space",
433
905
  "round"
434
- ] }], ne = () => [
906
+ ] }], R = () => [
435
907
  "auto",
436
908
  "cover",
437
909
  "contain",
438
- Se,
439
- fe,
440
- { size: [Z, Y] }
441
- ], R = () => [
442
- oe,
443
- ye,
444
- X
910
+ Bt,
911
+ kt,
912
+ { size: [Z, X] }
445
913
  ], z = () => [
914
+ xt,
915
+ Lt,
916
+ At
917
+ ], B = () => [
446
918
  "",
447
919
  "none",
448
920
  "full",
449
921
  l,
450
922
  Z,
451
- Y
452
- ], B = () => [
453
- "",
454
- W,
455
- ye,
456
923
  X
457
- ], re = () => [
924
+ ], V = () => [
925
+ "",
926
+ q,
927
+ Lt,
928
+ At
929
+ ], H = () => [
458
930
  "solid",
459
931
  "dashed",
460
932
  "dotted",
461
933
  "double"
462
- ], ie = () => [
934
+ ], te = () => [
463
935
  "normal",
464
936
  "multiply",
465
937
  "screen",
@@ -476,33 +948,33 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
476
948
  "saturation",
477
949
  "color",
478
950
  "luminosity"
479
- ], V = () => [
480
- W,
481
- oe,
482
- xe,
483
- ge
484
- ], ae = () => [
951
+ ], U = () => [
952
+ q,
953
+ xt,
954
+ zt,
955
+ Pt
956
+ ], ne = () => [
485
957
  "",
486
958
  "none",
487
959
  m,
488
960
  Z,
489
- Y
490
- ], H = () => [
961
+ X
962
+ ], W = () => [
491
963
  "none",
492
- W,
964
+ q,
493
965
  Z,
494
- Y
495
- ], q = () => [
966
+ X
967
+ ], re = () => [
496
968
  "none",
497
- W,
969
+ q,
498
970
  Z,
499
- Y
500
- ], J = () => [
501
- W,
971
+ X
972
+ ], ie = () => [
973
+ q,
502
974
  Z,
503
- Y
504
- ], ce = () => [
505
- U,
975
+ X
976
+ ], ae = () => [
977
+ K,
506
978
  "full",
507
979
  ...w()
508
980
  ];
@@ -516,17 +988,17 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
516
988
  "bounce"
517
989
  ],
518
990
  aspect: ["video"],
519
- blur: [K],
520
- breakpoint: [K],
521
- color: [se],
522
- container: [K],
523
- "drop-shadow": [K],
991
+ blur: [Y],
992
+ breakpoint: [Y],
993
+ color: [St],
994
+ container: [Y],
995
+ "drop-shadow": [Y],
524
996
  ease: [
525
997
  "in",
526
998
  "out",
527
999
  "in-out"
528
1000
  ],
529
- font: [ue],
1001
+ font: [Dt],
530
1002
  "font-weight": [
531
1003
  "thin",
532
1004
  "extralight",
@@ -538,7 +1010,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
538
1010
  "extrabold",
539
1011
  "black"
540
1012
  ],
541
- "inset-shadow": [K],
1013
+ "inset-shadow": [Y],
542
1014
  leading: [
543
1015
  "none",
544
1016
  "tight",
@@ -555,11 +1027,11 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
555
1027
  "distant",
556
1028
  "none"
557
1029
  ],
558
- radius: [K],
559
- shadow: [K],
560
- spacing: ["px", W],
561
- text: [K],
562
- "text-shadow": [K],
1030
+ radius: [Y],
1031
+ shadow: [Y],
1032
+ spacing: ["px", q],
1033
+ text: [Y],
1034
+ "text-shadow": [Y],
563
1035
  tracking: [
564
1036
  "tighter",
565
1037
  "tight",
@@ -573,8 +1045,8 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
573
1045
  aspect: [{ aspect: [
574
1046
  "auto",
575
1047
  "square",
576
- U,
577
- Y,
1048
+ K,
1049
+ X,
578
1050
  Z,
579
1051
  g
580
1052
  ] }],
@@ -584,12 +1056,12 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
584
1056
  "normal",
585
1057
  "size",
586
1058
  Z,
587
- Y
1059
+ X
588
1060
  ] }],
589
- "container-named": [de],
1061
+ "container-named": [Ot],
590
1062
  columns: [{ columns: [
591
- W,
592
- Y,
1063
+ q,
1064
+ X,
593
1065
  Z,
594
1066
  s
595
1067
  ] }],
@@ -687,13 +1159,13 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
687
1159
  "collapse"
688
1160
  ],
689
1161
  z: [{ z: [
690
- G,
1162
+ J,
691
1163
  "auto",
692
1164
  Z,
693
- Y
1165
+ X
694
1166
  ] }],
695
1167
  basis: [{ basis: [
696
- U,
1168
+ K,
697
1169
  "full",
698
1170
  "auto",
699
1171
  s,
@@ -711,32 +1183,32 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
711
1183
  "wrap-reverse"
712
1184
  ] }],
713
1185
  flex: [{ flex: [
714
- W,
715
- U,
1186
+ q,
1187
+ K,
716
1188
  "auto",
717
1189
  "initial",
718
1190
  "none",
719
- Y
1191
+ X
720
1192
  ] }],
721
1193
  grow: [{ grow: [
722
1194
  "",
723
- W,
1195
+ q,
724
1196
  Z,
725
- Y
1197
+ X
726
1198
  ] }],
727
1199
  shrink: [{ shrink: [
728
1200
  "",
729
- W,
1201
+ q,
730
1202
  Z,
731
- Y
1203
+ X
732
1204
  ] }],
733
1205
  order: [{ order: [
734
- G,
1206
+ J,
735
1207
  "first",
736
1208
  "last",
737
1209
  "none",
738
1210
  Z,
739
- Y
1211
+ X
740
1212
  ] }],
741
1213
  "grid-cols": [{ "grid-cols": E() }],
742
1214
  "col-start-end": [{ col: D() }],
@@ -753,24 +1225,24 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
753
1225
  "row-dense",
754
1226
  "col-dense"
755
1227
  ] }],
756
- "auto-cols": [{ "auto-cols": ee() }],
757
- "auto-rows": [{ "auto-rows": ee() }],
1228
+ "auto-cols": [{ "auto-cols": k() }],
1229
+ "auto-rows": [{ "auto-rows": k() }],
758
1230
  gap: [{ gap: w() }],
759
1231
  "gap-x": [{ "gap-x": w() }],
760
1232
  "gap-y": [{ "gap-y": w() }],
761
- "justify-content": [{ justify: [...k(), "normal"] }],
762
- "justify-items": [{ "justify-items": [...A(), "normal"] }],
763
- "justify-self": [{ "justify-self": ["auto", ...A()] }],
764
- "align-content": [{ content: ["normal", ...k()] }],
765
- "align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
1233
+ "justify-content": [{ justify: [...A(), "normal"] }],
1234
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
1235
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
1236
+ "align-content": [{ content: ["normal", ...A()] }],
1237
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
766
1238
  "align-self": [{ self: [
767
1239
  "auto",
768
- ...A(),
1240
+ ...j(),
769
1241
  { baseline: ["", "last"] }
770
1242
  ] }],
771
- "place-content": [{ "place-content": k() }],
772
- "place-items": [{ "place-items": [...A(), "baseline"] }],
773
- "place-self": [{ "place-self": ["auto", ...A()] }],
1243
+ "place-content": [{ "place-content": A() }],
1244
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
1245
+ "place-self": [{ "place-self": ["auto", ...j()] }],
774
1246
  p: [{ p: w() }],
775
1247
  px: [{ px: w() }],
776
1248
  py: [{ py: w() }],
@@ -782,38 +1254,38 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
782
1254
  pr: [{ pr: w() }],
783
1255
  pb: [{ pb: w() }],
784
1256
  pl: [{ pl: w() }],
785
- m: [{ m: j() }],
786
- mx: [{ mx: j() }],
787
- my: [{ my: j() }],
788
- ms: [{ ms: j() }],
789
- me: [{ me: j() }],
790
- mbs: [{ mbs: j() }],
791
- mbe: [{ mbe: j() }],
792
- mt: [{ mt: j() }],
793
- mr: [{ mr: j() }],
794
- mb: [{ mb: j() }],
795
- ml: [{ ml: j() }],
1257
+ m: [{ m: M() }],
1258
+ mx: [{ mx: M() }],
1259
+ my: [{ my: M() }],
1260
+ ms: [{ ms: M() }],
1261
+ me: [{ me: M() }],
1262
+ mbs: [{ mbs: M() }],
1263
+ mbe: [{ mbe: M() }],
1264
+ mt: [{ mt: M() }],
1265
+ mr: [{ mr: M() }],
1266
+ mb: [{ mb: M() }],
1267
+ ml: [{ ml: M() }],
796
1268
  "space-x": [{ "space-x": w() }],
797
1269
  "space-x-reverse": ["space-x-reverse"],
798
1270
  "space-y": [{ "space-y": w() }],
799
1271
  "space-y-reverse": ["space-y-reverse"],
800
- size: [{ size: M() }],
801
- "inline-size": [{ inline: ["auto", ...N()] }],
802
- "min-inline-size": [{ "min-inline": ["auto", ...N()] }],
803
- "max-inline-size": [{ "max-inline": ["none", ...N()] }],
804
- "block-size": [{ block: ["auto", ...P()] }],
805
- "min-block-size": [{ "min-block": ["auto", ...P()] }],
806
- "max-block-size": [{ "max-block": ["none", ...P()] }],
1272
+ size: [{ size: N() }],
1273
+ "inline-size": [{ inline: ["auto", ...P()] }],
1274
+ "min-inline-size": [{ "min-inline": ["auto", ...P()] }],
1275
+ "max-inline-size": [{ "max-inline": ["none", ...P()] }],
1276
+ "block-size": [{ block: ["auto", ...F()] }],
1277
+ "min-block-size": [{ "min-block": ["auto", ...F()] }],
1278
+ "max-block-size": [{ "max-block": ["none", ...F()] }],
807
1279
  w: [{ w: [
808
1280
  s,
809
1281
  "screen",
810
- ...M()
1282
+ ...N()
811
1283
  ] }],
812
1284
  "min-w": [{ "min-w": [
813
1285
  s,
814
1286
  "screen",
815
1287
  "none",
816
- ...M()
1288
+ ...N()
817
1289
  ] }],
818
1290
  "max-w": [{ "max-w": [
819
1291
  s,
@@ -821,36 +1293,36 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
821
1293
  "none",
822
1294
  "prose",
823
1295
  { screen: [o] },
824
- ...M()
1296
+ ...N()
825
1297
  ] }],
826
1298
  h: [{ h: [
827
1299
  "screen",
828
1300
  "lh",
829
- ...M()
1301
+ ...N()
830
1302
  ] }],
831
1303
  "min-h": [{ "min-h": [
832
1304
  "screen",
833
1305
  "lh",
834
1306
  "none",
835
- ...M()
1307
+ ...N()
836
1308
  ] }],
837
1309
  "max-h": [{ "max-h": [
838
1310
  "screen",
839
1311
  "lh",
840
- ...M()
1312
+ ...N()
841
1313
  ] }],
842
1314
  "font-size": [{ text: [
843
1315
  "base",
844
1316
  n,
845
- ye,
846
- X
1317
+ Lt,
1318
+ At
847
1319
  ] }],
848
1320
  "font-smoothing": ["antialiased", "subpixel-antialiased"],
849
1321
  "font-style": ["italic", "not-italic"],
850
1322
  "font-weight": [{ font: [
851
1323
  r,
852
- Te,
853
- me
1324
+ Ut,
1325
+ Mt
854
1326
  ] }],
855
1327
  "font-stretch": [{ "font-stretch": [
856
1328
  "ultra-condensed",
@@ -862,15 +1334,15 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
862
1334
  "expanded",
863
1335
  "extra-expanded",
864
1336
  "ultra-expanded",
865
- oe,
866
- Y
1337
+ xt,
1338
+ X
867
1339
  ] }],
868
1340
  "font-family": [{ font: [
869
- be,
870
- he,
1341
+ Rt,
1342
+ Nt,
871
1343
  t
872
1344
  ] }],
873
- "font-features": [{ "font-features": [Y] }],
1345
+ "font-features": [{ "font-features": [X] }],
874
1346
  "fvn-normal": ["normal-nums"],
875
1347
  "fvn-ordinal": ["ordinal"],
876
1348
  "fvn-slashed-zero": ["slashed-zero"],
@@ -880,19 +1352,19 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
880
1352
  tracking: [{ tracking: [
881
1353
  i,
882
1354
  Z,
883
- Y
1355
+ X
884
1356
  ] }],
885
1357
  "line-clamp": [{ "line-clamp": [
886
- W,
1358
+ q,
887
1359
  "none",
888
1360
  Z,
889
- pe
1361
+ jt
890
1362
  ] }],
891
1363
  leading: [{ leading: [a, ...w()] }],
892
1364
  "list-image": [{ "list-image": [
893
1365
  "none",
894
1366
  Z,
895
- Y
1367
+ X
896
1368
  ] }],
897
1369
  "list-style-position": [{ list: ["inside", "outside"] }],
898
1370
  "list-style-type": [{ list: [
@@ -900,7 +1372,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
900
1372
  "decimal",
901
1373
  "none",
902
1374
  Z,
903
- Y
1375
+ X
904
1376
  ] }],
905
1377
  "text-alignment": [{ text: [
906
1378
  "left",
@@ -910,28 +1382,28 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
910
1382
  "start",
911
1383
  "end"
912
1384
  ] }],
913
- "placeholder-color": [{ placeholder: F() }],
914
- "text-color": [{ text: F() }],
1385
+ "placeholder-color": [{ placeholder: I() }],
1386
+ "text-color": [{ text: I() }],
915
1387
  "text-decoration": [
916
1388
  "underline",
917
1389
  "overline",
918
1390
  "line-through",
919
1391
  "no-underline"
920
1392
  ],
921
- "text-decoration-style": [{ decoration: [...re(), "wavy"] }],
1393
+ "text-decoration-style": [{ decoration: [...H(), "wavy"] }],
922
1394
  "text-decoration-thickness": [{ decoration: [
923
- W,
1395
+ q,
924
1396
  "from-font",
925
1397
  "auto",
926
1398
  Z,
927
- X
1399
+ At
928
1400
  ] }],
929
- "text-decoration-color": [{ decoration: F() }],
1401
+ "text-decoration-color": [{ decoration: I() }],
930
1402
  "underline-offset": [{ "underline-offset": [
931
- W,
1403
+ q,
932
1404
  "auto",
933
1405
  Z,
934
- Y
1406
+ X
935
1407
  ] }],
936
1408
  "text-transform": [
937
1409
  "uppercase",
@@ -952,9 +1424,9 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
952
1424
  ] }],
953
1425
  indent: [{ indent: w() }],
954
1426
  "tab-size": [{ tab: [
955
- G,
1427
+ J,
956
1428
  Z,
957
- Y
1429
+ X
958
1430
  ] }],
959
1431
  "vertical-align": [{ align: [
960
1432
  "baseline",
@@ -966,7 +1438,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
966
1438
  "sub",
967
1439
  "super",
968
1440
  Z,
969
- Y
1441
+ X
970
1442
  ] }],
971
1443
  whitespace: [{ whitespace: [
972
1444
  "normal",
@@ -995,7 +1467,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
995
1467
  content: [{ content: [
996
1468
  "none",
997
1469
  Z,
998
- Y
1470
+ X
999
1471
  ] }],
1000
1472
  "bg-attachment": [{ bg: [
1001
1473
  "fixed",
@@ -1013,9 +1485,9 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1013
1485
  "padding",
1014
1486
  "content"
1015
1487
  ] }],
1016
- "bg-position": [{ bg: I() }],
1017
- "bg-repeat": [{ bg: te() }],
1018
- "bg-size": [{ bg: ne() }],
1488
+ "bg-position": [{ bg: ee() }],
1489
+ "bg-repeat": [{ bg: L() }],
1490
+ "bg-size": [{ bg: R() }],
1019
1491
  "bg-image": [{ bg: [
1020
1492
  "none",
1021
1493
  {
@@ -1030,140 +1502,140 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1030
1502
  "l",
1031
1503
  "tl"
1032
1504
  ] },
1033
- G,
1505
+ J,
1034
1506
  Z,
1035
- Y
1507
+ X
1036
1508
  ],
1037
1509
  radial: [
1038
1510
  "",
1039
1511
  Z,
1040
- Y
1512
+ X
1041
1513
  ],
1042
1514
  conic: [
1043
- G,
1515
+ J,
1044
1516
  Z,
1045
- Y
1517
+ X
1046
1518
  ]
1047
1519
  },
1048
- Ce,
1049
- _e
1050
- ] }],
1051
- "bg-color": [{ bg: F() }],
1052
- "gradient-from-pos": [{ from: R() }],
1053
- "gradient-via-pos": [{ via: R() }],
1054
- "gradient-to-pos": [{ to: R() }],
1055
- "gradient-from": [{ from: F() }],
1056
- "gradient-via": [{ via: F() }],
1057
- "gradient-to": [{ to: F() }],
1058
- rounded: [{ rounded: z() }],
1059
- "rounded-s": [{ "rounded-s": z() }],
1060
- "rounded-e": [{ "rounded-e": z() }],
1061
- "rounded-t": [{ "rounded-t": z() }],
1062
- "rounded-r": [{ "rounded-r": z() }],
1063
- "rounded-b": [{ "rounded-b": z() }],
1064
- "rounded-l": [{ "rounded-l": z() }],
1065
- "rounded-ss": [{ "rounded-ss": z() }],
1066
- "rounded-se": [{ "rounded-se": z() }],
1067
- "rounded-ee": [{ "rounded-ee": z() }],
1068
- "rounded-es": [{ "rounded-es": z() }],
1069
- "rounded-tl": [{ "rounded-tl": z() }],
1070
- "rounded-tr": [{ "rounded-tr": z() }],
1071
- "rounded-br": [{ "rounded-br": z() }],
1072
- "rounded-bl": [{ "rounded-bl": z() }],
1073
- "border-w": [{ border: B() }],
1074
- "border-w-x": [{ "border-x": B() }],
1075
- "border-w-y": [{ "border-y": B() }],
1076
- "border-w-s": [{ "border-s": B() }],
1077
- "border-w-e": [{ "border-e": B() }],
1078
- "border-w-bs": [{ "border-bs": B() }],
1079
- "border-w-be": [{ "border-be": B() }],
1080
- "border-w-t": [{ "border-t": B() }],
1081
- "border-w-r": [{ "border-r": B() }],
1082
- "border-w-b": [{ "border-b": B() }],
1083
- "border-w-l": [{ "border-l": B() }],
1084
- "divide-x": [{ "divide-x": B() }],
1520
+ Vt,
1521
+ Ft
1522
+ ] }],
1523
+ "bg-color": [{ bg: I() }],
1524
+ "gradient-from-pos": [{ from: z() }],
1525
+ "gradient-via-pos": [{ via: z() }],
1526
+ "gradient-to-pos": [{ to: z() }],
1527
+ "gradient-from": [{ from: I() }],
1528
+ "gradient-via": [{ via: I() }],
1529
+ "gradient-to": [{ to: I() }],
1530
+ rounded: [{ rounded: B() }],
1531
+ "rounded-s": [{ "rounded-s": B() }],
1532
+ "rounded-e": [{ "rounded-e": B() }],
1533
+ "rounded-t": [{ "rounded-t": B() }],
1534
+ "rounded-r": [{ "rounded-r": B() }],
1535
+ "rounded-b": [{ "rounded-b": B() }],
1536
+ "rounded-l": [{ "rounded-l": B() }],
1537
+ "rounded-ss": [{ "rounded-ss": B() }],
1538
+ "rounded-se": [{ "rounded-se": B() }],
1539
+ "rounded-ee": [{ "rounded-ee": B() }],
1540
+ "rounded-es": [{ "rounded-es": B() }],
1541
+ "rounded-tl": [{ "rounded-tl": B() }],
1542
+ "rounded-tr": [{ "rounded-tr": B() }],
1543
+ "rounded-br": [{ "rounded-br": B() }],
1544
+ "rounded-bl": [{ "rounded-bl": B() }],
1545
+ "border-w": [{ border: V() }],
1546
+ "border-w-x": [{ "border-x": V() }],
1547
+ "border-w-y": [{ "border-y": V() }],
1548
+ "border-w-s": [{ "border-s": V() }],
1549
+ "border-w-e": [{ "border-e": V() }],
1550
+ "border-w-bs": [{ "border-bs": V() }],
1551
+ "border-w-be": [{ "border-be": V() }],
1552
+ "border-w-t": [{ "border-t": V() }],
1553
+ "border-w-r": [{ "border-r": V() }],
1554
+ "border-w-b": [{ "border-b": V() }],
1555
+ "border-w-l": [{ "border-l": V() }],
1556
+ "divide-x": [{ "divide-x": V() }],
1085
1557
  "divide-x-reverse": ["divide-x-reverse"],
1086
- "divide-y": [{ "divide-y": B() }],
1558
+ "divide-y": [{ "divide-y": V() }],
1087
1559
  "divide-y-reverse": ["divide-y-reverse"],
1088
1560
  "border-style": [{ border: [
1089
- ...re(),
1561
+ ...H(),
1090
1562
  "hidden",
1091
1563
  "none"
1092
1564
  ] }],
1093
1565
  "divide-style": [{ divide: [
1094
- ...re(),
1566
+ ...H(),
1095
1567
  "hidden",
1096
1568
  "none"
1097
1569
  ] }],
1098
- "border-color": [{ border: F() }],
1099
- "border-color-x": [{ "border-x": F() }],
1100
- "border-color-y": [{ "border-y": F() }],
1101
- "border-color-s": [{ "border-s": F() }],
1102
- "border-color-e": [{ "border-e": F() }],
1103
- "border-color-bs": [{ "border-bs": F() }],
1104
- "border-color-be": [{ "border-be": F() }],
1105
- "border-color-t": [{ "border-t": F() }],
1106
- "border-color-r": [{ "border-r": F() }],
1107
- "border-color-b": [{ "border-b": F() }],
1108
- "border-color-l": [{ "border-l": F() }],
1109
- "divide-color": [{ divide: F() }],
1570
+ "border-color": [{ border: I() }],
1571
+ "border-color-x": [{ "border-x": I() }],
1572
+ "border-color-y": [{ "border-y": I() }],
1573
+ "border-color-s": [{ "border-s": I() }],
1574
+ "border-color-e": [{ "border-e": I() }],
1575
+ "border-color-bs": [{ "border-bs": I() }],
1576
+ "border-color-be": [{ "border-be": I() }],
1577
+ "border-color-t": [{ "border-t": I() }],
1578
+ "border-color-r": [{ "border-r": I() }],
1579
+ "border-color-b": [{ "border-b": I() }],
1580
+ "border-color-l": [{ "border-l": I() }],
1581
+ "divide-color": [{ divide: I() }],
1110
1582
  "outline-style": [{ outline: [
1111
- ...re(),
1583
+ ...H(),
1112
1584
  "none",
1113
1585
  "hidden"
1114
1586
  ] }],
1115
1587
  "outline-offset": [{ "outline-offset": [
1116
- W,
1588
+ q,
1117
1589
  Z,
1118
- Y
1590
+ X
1119
1591
  ] }],
1120
1592
  "outline-w": [{ outline: [
1121
1593
  "",
1122
- W,
1123
- ye,
1124
- X
1594
+ q,
1595
+ Lt,
1596
+ At
1125
1597
  ] }],
1126
- "outline-color": [{ outline: F() }],
1598
+ "outline-color": [{ outline: I() }],
1127
1599
  shadow: [{ shadow: [
1128
1600
  "",
1129
1601
  "none",
1130
1602
  u,
1131
- we,
1132
- ve
1603
+ Ht,
1604
+ It
1133
1605
  ] }],
1134
- "shadow-color": [{ shadow: F() }],
1606
+ "shadow-color": [{ shadow: I() }],
1135
1607
  "inset-shadow": [{ "inset-shadow": [
1136
1608
  "none",
1137
1609
  d,
1138
- we,
1139
- ve
1610
+ Ht,
1611
+ It
1140
1612
  ] }],
1141
- "inset-shadow-color": [{ "inset-shadow": F() }],
1142
- "ring-w": [{ ring: B() }],
1613
+ "inset-shadow-color": [{ "inset-shadow": I() }],
1614
+ "ring-w": [{ ring: V() }],
1143
1615
  "ring-w-inset": ["ring-inset"],
1144
- "ring-color": [{ ring: F() }],
1145
- "ring-offset-w": [{ "ring-offset": [W, X] }],
1146
- "ring-offset-color": [{ "ring-offset": F() }],
1147
- "inset-ring-w": [{ "inset-ring": B() }],
1148
- "inset-ring-color": [{ "inset-ring": F() }],
1616
+ "ring-color": [{ ring: I() }],
1617
+ "ring-offset-w": [{ "ring-offset": [q, At] }],
1618
+ "ring-offset-color": [{ "ring-offset": I() }],
1619
+ "inset-ring-w": [{ "inset-ring": V() }],
1620
+ "inset-ring-color": [{ "inset-ring": I() }],
1149
1621
  "text-shadow": [{ "text-shadow": [
1150
1622
  "none",
1151
1623
  f,
1152
- we,
1153
- ve
1624
+ Ht,
1625
+ It
1154
1626
  ] }],
1155
- "text-shadow-color": [{ "text-shadow": F() }],
1627
+ "text-shadow-color": [{ "text-shadow": I() }],
1156
1628
  opacity: [{ opacity: [
1157
- W,
1629
+ q,
1158
1630
  Z,
1159
- Y
1631
+ X
1160
1632
  ] }],
1161
1633
  "mix-blend": [{ "mix-blend": [
1162
- ...ie(),
1634
+ ...te(),
1163
1635
  "plus-darker",
1164
1636
  "plus-lighter"
1165
1637
  ] }],
1166
- "bg-blend": [{ "bg-blend": ie() }],
1638
+ "bg-blend": [{ "bg-blend": te() }],
1167
1639
  "mask-clip": [{ "mask-clip": [
1168
1640
  "border",
1169
1641
  "padding",
@@ -1178,51 +1650,51 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1178
1650
  "intersect",
1179
1651
  "exclude"
1180
1652
  ] }],
1181
- "mask-image-linear-pos": [{ "mask-linear": [W] }],
1182
- "mask-image-linear-from-pos": [{ "mask-linear-from": V() }],
1183
- "mask-image-linear-to-pos": [{ "mask-linear-to": V() }],
1184
- "mask-image-linear-from-color": [{ "mask-linear-from": F() }],
1185
- "mask-image-linear-to-color": [{ "mask-linear-to": F() }],
1186
- "mask-image-t-from-pos": [{ "mask-t-from": V() }],
1187
- "mask-image-t-to-pos": [{ "mask-t-to": V() }],
1188
- "mask-image-t-from-color": [{ "mask-t-from": F() }],
1189
- "mask-image-t-to-color": [{ "mask-t-to": F() }],
1190
- "mask-image-r-from-pos": [{ "mask-r-from": V() }],
1191
- "mask-image-r-to-pos": [{ "mask-r-to": V() }],
1192
- "mask-image-r-from-color": [{ "mask-r-from": F() }],
1193
- "mask-image-r-to-color": [{ "mask-r-to": F() }],
1194
- "mask-image-b-from-pos": [{ "mask-b-from": V() }],
1195
- "mask-image-b-to-pos": [{ "mask-b-to": V() }],
1196
- "mask-image-b-from-color": [{ "mask-b-from": F() }],
1197
- "mask-image-b-to-color": [{ "mask-b-to": F() }],
1198
- "mask-image-l-from-pos": [{ "mask-l-from": V() }],
1199
- "mask-image-l-to-pos": [{ "mask-l-to": V() }],
1200
- "mask-image-l-from-color": [{ "mask-l-from": F() }],
1201
- "mask-image-l-to-color": [{ "mask-l-to": F() }],
1202
- "mask-image-x-from-pos": [{ "mask-x-from": V() }],
1203
- "mask-image-x-to-pos": [{ "mask-x-to": V() }],
1204
- "mask-image-x-from-color": [{ "mask-x-from": F() }],
1205
- "mask-image-x-to-color": [{ "mask-x-to": F() }],
1206
- "mask-image-y-from-pos": [{ "mask-y-from": V() }],
1207
- "mask-image-y-to-pos": [{ "mask-y-to": V() }],
1208
- "mask-image-y-from-color": [{ "mask-y-from": F() }],
1209
- "mask-image-y-to-color": [{ "mask-y-to": F() }],
1210
- "mask-image-radial": [{ "mask-radial": [Z, Y] }],
1211
- "mask-image-radial-from-pos": [{ "mask-radial-from": V() }],
1212
- "mask-image-radial-to-pos": [{ "mask-radial-to": V() }],
1213
- "mask-image-radial-from-color": [{ "mask-radial-from": F() }],
1214
- "mask-image-radial-to-color": [{ "mask-radial-to": F() }],
1653
+ "mask-image-linear-pos": [{ "mask-linear": [q] }],
1654
+ "mask-image-linear-from-pos": [{ "mask-linear-from": U() }],
1655
+ "mask-image-linear-to-pos": [{ "mask-linear-to": U() }],
1656
+ "mask-image-linear-from-color": [{ "mask-linear-from": I() }],
1657
+ "mask-image-linear-to-color": [{ "mask-linear-to": I() }],
1658
+ "mask-image-t-from-pos": [{ "mask-t-from": U() }],
1659
+ "mask-image-t-to-pos": [{ "mask-t-to": U() }],
1660
+ "mask-image-t-from-color": [{ "mask-t-from": I() }],
1661
+ "mask-image-t-to-color": [{ "mask-t-to": I() }],
1662
+ "mask-image-r-from-pos": [{ "mask-r-from": U() }],
1663
+ "mask-image-r-to-pos": [{ "mask-r-to": U() }],
1664
+ "mask-image-r-from-color": [{ "mask-r-from": I() }],
1665
+ "mask-image-r-to-color": [{ "mask-r-to": I() }],
1666
+ "mask-image-b-from-pos": [{ "mask-b-from": U() }],
1667
+ "mask-image-b-to-pos": [{ "mask-b-to": U() }],
1668
+ "mask-image-b-from-color": [{ "mask-b-from": I() }],
1669
+ "mask-image-b-to-color": [{ "mask-b-to": I() }],
1670
+ "mask-image-l-from-pos": [{ "mask-l-from": U() }],
1671
+ "mask-image-l-to-pos": [{ "mask-l-to": U() }],
1672
+ "mask-image-l-from-color": [{ "mask-l-from": I() }],
1673
+ "mask-image-l-to-color": [{ "mask-l-to": I() }],
1674
+ "mask-image-x-from-pos": [{ "mask-x-from": U() }],
1675
+ "mask-image-x-to-pos": [{ "mask-x-to": U() }],
1676
+ "mask-image-x-from-color": [{ "mask-x-from": I() }],
1677
+ "mask-image-x-to-color": [{ "mask-x-to": I() }],
1678
+ "mask-image-y-from-pos": [{ "mask-y-from": U() }],
1679
+ "mask-image-y-to-pos": [{ "mask-y-to": U() }],
1680
+ "mask-image-y-from-color": [{ "mask-y-from": I() }],
1681
+ "mask-image-y-to-color": [{ "mask-y-to": I() }],
1682
+ "mask-image-radial": [{ "mask-radial": [Z, X] }],
1683
+ "mask-image-radial-from-pos": [{ "mask-radial-from": U() }],
1684
+ "mask-image-radial-to-pos": [{ "mask-radial-to": U() }],
1685
+ "mask-image-radial-from-color": [{ "mask-radial-from": I() }],
1686
+ "mask-image-radial-to-color": [{ "mask-radial-to": I() }],
1215
1687
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1216
1688
  "mask-image-radial-size": [{ "mask-radial": [{
1217
1689
  closest: ["side", "corner"],
1218
1690
  farthest: ["side", "corner"]
1219
1691
  }] }],
1220
1692
  "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1221
- "mask-image-conic-pos": [{ "mask-conic": [W] }],
1222
- "mask-image-conic-from-pos": [{ "mask-conic-from": V() }],
1223
- "mask-image-conic-to-pos": [{ "mask-conic-to": V() }],
1224
- "mask-image-conic-from-color": [{ "mask-conic-from": F() }],
1225
- "mask-image-conic-to-color": [{ "mask-conic-to": F() }],
1693
+ "mask-image-conic-pos": [{ "mask-conic": [q] }],
1694
+ "mask-image-conic-from-pos": [{ "mask-conic-from": U() }],
1695
+ "mask-image-conic-to-pos": [{ "mask-conic-to": U() }],
1696
+ "mask-image-conic-from-color": [{ "mask-conic-from": I() }],
1697
+ "mask-image-conic-to-color": [{ "mask-conic-to": I() }],
1226
1698
  "mask-mode": [{ mask: [
1227
1699
  "alpha",
1228
1700
  "luminance",
@@ -1236,117 +1708,117 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1236
1708
  "stroke",
1237
1709
  "view"
1238
1710
  ] }],
1239
- "mask-position": [{ mask: I() }],
1240
- "mask-repeat": [{ mask: te() }],
1241
- "mask-size": [{ mask: ne() }],
1711
+ "mask-position": [{ mask: ee() }],
1712
+ "mask-repeat": [{ mask: L() }],
1713
+ "mask-size": [{ mask: R() }],
1242
1714
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1243
1715
  "mask-image": [{ mask: [
1244
1716
  "none",
1245
1717
  Z,
1246
- Y
1718
+ X
1247
1719
  ] }],
1248
1720
  filter: [{ filter: [
1249
1721
  "",
1250
1722
  "none",
1251
1723
  Z,
1252
- Y
1724
+ X
1253
1725
  ] }],
1254
- blur: [{ blur: ae() }],
1726
+ blur: [{ blur: ne() }],
1255
1727
  brightness: [{ brightness: [
1256
- W,
1728
+ q,
1257
1729
  Z,
1258
- Y
1730
+ X
1259
1731
  ] }],
1260
1732
  contrast: [{ contrast: [
1261
- W,
1733
+ q,
1262
1734
  Z,
1263
- Y
1735
+ X
1264
1736
  ] }],
1265
1737
  "drop-shadow": [{ "drop-shadow": [
1266
1738
  "",
1267
1739
  "none",
1268
1740
  p,
1269
- we,
1270
- ve
1741
+ Ht,
1742
+ It
1271
1743
  ] }],
1272
- "drop-shadow-color": [{ "drop-shadow": F() }],
1744
+ "drop-shadow-color": [{ "drop-shadow": I() }],
1273
1745
  grayscale: [{ grayscale: [
1274
1746
  "",
1275
- W,
1747
+ q,
1276
1748
  Z,
1277
- Y
1749
+ X
1278
1750
  ] }],
1279
1751
  "hue-rotate": [{ "hue-rotate": [
1280
- W,
1752
+ q,
1281
1753
  Z,
1282
- Y
1754
+ X
1283
1755
  ] }],
1284
1756
  invert: [{ invert: [
1285
1757
  "",
1286
- W,
1758
+ q,
1287
1759
  Z,
1288
- Y
1760
+ X
1289
1761
  ] }],
1290
1762
  saturate: [{ saturate: [
1291
- W,
1763
+ q,
1292
1764
  Z,
1293
- Y
1765
+ X
1294
1766
  ] }],
1295
1767
  sepia: [{ sepia: [
1296
1768
  "",
1297
- W,
1769
+ q,
1298
1770
  Z,
1299
- Y
1771
+ X
1300
1772
  ] }],
1301
1773
  "backdrop-filter": [{ "backdrop-filter": [
1302
1774
  "",
1303
1775
  "none",
1304
1776
  Z,
1305
- Y
1777
+ X
1306
1778
  ] }],
1307
- "backdrop-blur": [{ "backdrop-blur": ae() }],
1779
+ "backdrop-blur": [{ "backdrop-blur": ne() }],
1308
1780
  "backdrop-brightness": [{ "backdrop-brightness": [
1309
- W,
1781
+ q,
1310
1782
  Z,
1311
- Y
1783
+ X
1312
1784
  ] }],
1313
1785
  "backdrop-contrast": [{ "backdrop-contrast": [
1314
- W,
1786
+ q,
1315
1787
  Z,
1316
- Y
1788
+ X
1317
1789
  ] }],
1318
1790
  "backdrop-grayscale": [{ "backdrop-grayscale": [
1319
1791
  "",
1320
- W,
1792
+ q,
1321
1793
  Z,
1322
- Y
1794
+ X
1323
1795
  ] }],
1324
1796
  "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1325
- W,
1797
+ q,
1326
1798
  Z,
1327
- Y
1799
+ X
1328
1800
  ] }],
1329
1801
  "backdrop-invert": [{ "backdrop-invert": [
1330
1802
  "",
1331
- W,
1803
+ q,
1332
1804
  Z,
1333
- Y
1805
+ X
1334
1806
  ] }],
1335
1807
  "backdrop-opacity": [{ "backdrop-opacity": [
1336
- W,
1808
+ q,
1337
1809
  Z,
1338
- Y
1810
+ X
1339
1811
  ] }],
1340
1812
  "backdrop-saturate": [{ "backdrop-saturate": [
1341
- W,
1813
+ q,
1342
1814
  Z,
1343
- Y
1815
+ X
1344
1816
  ] }],
1345
1817
  "backdrop-sepia": [{ "backdrop-sepia": [
1346
1818
  "",
1347
- W,
1819
+ q,
1348
1820
  Z,
1349
- Y
1821
+ X
1350
1822
  ] }],
1351
1823
  "border-collapse": [{ border: ["collapse", "separate"] }],
1352
1824
  "border-spacing": [{ "border-spacing": w() }],
@@ -1363,55 +1835,55 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1363
1835
  "transform",
1364
1836
  "none",
1365
1837
  Z,
1366
- Y
1838
+ X
1367
1839
  ] }],
1368
1840
  "transition-behavior": [{ transition: ["normal", "discrete"] }],
1369
1841
  duration: [{ duration: [
1370
- W,
1842
+ q,
1371
1843
  "initial",
1372
1844
  Z,
1373
- Y
1845
+ X
1374
1846
  ] }],
1375
1847
  ease: [{ ease: [
1376
1848
  "linear",
1377
1849
  "initial",
1378
1850
  _,
1379
1851
  Z,
1380
- Y
1852
+ X
1381
1853
  ] }],
1382
1854
  delay: [{ delay: [
1383
- W,
1855
+ q,
1384
1856
  Z,
1385
- Y
1857
+ X
1386
1858
  ] }],
1387
1859
  animate: [{ animate: [
1388
1860
  "none",
1389
1861
  v,
1390
1862
  Z,
1391
- Y
1863
+ X
1392
1864
  ] }],
1393
1865
  backface: [{ backface: ["hidden", "visible"] }],
1394
1866
  perspective: [{ perspective: [
1395
1867
  h,
1396
1868
  Z,
1397
- Y
1869
+ X
1398
1870
  ] }],
1399
1871
  "perspective-origin": [{ "perspective-origin": x() }],
1400
- rotate: [{ rotate: H() }],
1401
- "rotate-x": [{ "rotate-x": H() }],
1402
- "rotate-y": [{ "rotate-y": H() }],
1403
- "rotate-z": [{ "rotate-z": H() }],
1404
- scale: [{ scale: q() }],
1405
- "scale-x": [{ "scale-x": q() }],
1406
- "scale-y": [{ "scale-y": q() }],
1407
- "scale-z": [{ "scale-z": q() }],
1872
+ rotate: [{ rotate: W() }],
1873
+ "rotate-x": [{ "rotate-x": W() }],
1874
+ "rotate-y": [{ "rotate-y": W() }],
1875
+ "rotate-z": [{ "rotate-z": W() }],
1876
+ scale: [{ scale: re() }],
1877
+ "scale-x": [{ "scale-x": re() }],
1878
+ "scale-y": [{ "scale-y": re() }],
1879
+ "scale-z": [{ "scale-z": re() }],
1408
1880
  "scale-3d": ["scale-3d"],
1409
- skew: [{ skew: J() }],
1410
- "skew-x": [{ "skew-x": J() }],
1411
- "skew-y": [{ "skew-y": J() }],
1881
+ skew: [{ skew: ie() }],
1882
+ "skew-x": [{ "skew-x": ie() }],
1883
+ "skew-y": [{ "skew-y": ie() }],
1412
1884
  transform: [{ transform: [
1413
1885
  Z,
1414
- Y,
1886
+ X,
1415
1887
  "",
1416
1888
  "none",
1417
1889
  "gpu",
@@ -1419,19 +1891,19 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1419
1891
  ] }],
1420
1892
  "transform-origin": [{ origin: x() }],
1421
1893
  "transform-style": [{ transform: ["3d", "flat"] }],
1422
- translate: [{ translate: ce() }],
1423
- "translate-x": [{ "translate-x": ce() }],
1424
- "translate-y": [{ "translate-y": ce() }],
1425
- "translate-z": [{ "translate-z": ce() }],
1894
+ translate: [{ translate: ae() }],
1895
+ "translate-x": [{ "translate-x": ae() }],
1896
+ "translate-y": [{ "translate-y": ae() }],
1897
+ "translate-z": [{ "translate-z": ae() }],
1426
1898
  "translate-none": ["translate-none"],
1427
1899
  zoom: [{ zoom: [
1428
- G,
1900
+ J,
1429
1901
  Z,
1430
- Y
1902
+ X
1431
1903
  ] }],
1432
- accent: [{ accent: F() }],
1904
+ accent: [{ accent: I() }],
1433
1905
  appearance: [{ appearance: ["none", "auto"] }],
1434
- "caret-color": [{ caret: F() }],
1906
+ "caret-color": [{ caret: I() }],
1435
1907
  "color-scheme": [{ scheme: [
1436
1908
  "normal",
1437
1909
  "dark",
@@ -1478,7 +1950,7 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1478
1950
  "zoom-in",
1479
1951
  "zoom-out",
1480
1952
  Z,
1481
- Y
1953
+ X
1482
1954
  ] }],
1483
1955
  "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1484
1956
  "pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -1489,8 +1961,8 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1489
1961
  "x"
1490
1962
  ] }],
1491
1963
  "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1492
- "scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
1493
- "scrollbar-track-color": [{ "scrollbar-track": F() }],
1964
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": I() }],
1965
+ "scrollbar-track-color": [{ "scrollbar-track": I() }],
1494
1966
  "scrollbar-gutter": [{ "scrollbar-gutter": [
1495
1967
  "auto",
1496
1968
  "stable",
@@ -1565,16 +2037,16 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1565
2037
  "contents",
1566
2038
  "transform",
1567
2039
  Z,
1568
- Y
2040
+ X
1569
2041
  ] }],
1570
- fill: [{ fill: ["none", ...F()] }],
2042
+ fill: [{ fill: ["none", ...I()] }],
1571
2043
  "stroke-w": [{ stroke: [
1572
- W,
1573
- ye,
1574
- X,
1575
- pe
2044
+ q,
2045
+ Lt,
2046
+ At,
2047
+ jt
1576
2048
  ] }],
1577
- stroke: [{ stroke: ["none", ...F()] }],
2049
+ stroke: [{ stroke: ["none", ...I()] }],
1578
2050
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1579
2051
  },
1580
2052
  conflictingClassGroups: {
@@ -1763,12 +2235,12 @@ var i = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, a = r, o = (e
1763
2235
  });
1764
2236
  //#endregion
1765
2237
  //#region src/lib/utils.ts
1766
- function Fe(...e) {
1767
- return Pe(r(e));
2238
+ function en(...e) {
2239
+ return $t(Ae(e));
1768
2240
  }
1769
2241
  //#endregion
1770
2242
  //#region node_modules/react/cjs/react-jsx-runtime.production.js
1771
- var Ie = /* @__PURE__ */ e(((e) => {
2243
+ var tn = /* @__PURE__ */ r(((e) => {
1772
2244
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
1773
2245
  function r(e, n, r) {
1774
2246
  var i = null;
@@ -1783,11 +2255,11 @@ var Ie = /* @__PURE__ */ e(((e) => {
1783
2255
  };
1784
2256
  }
1785
2257
  e.Fragment = n, e.jsx = r, e.jsxs = r;
1786
- })), Le = /* @__PURE__ */ e(((e) => {
2258
+ })), nn = /* @__PURE__ */ r(((e) => {
1787
2259
  process.env.NODE_ENV !== "production" && (function() {
1788
- function n(e) {
2260
+ function t(e) {
1789
2261
  if (e == null) return null;
1790
- if (typeof e == "function") return e.$$typeof === ee ? null : e.displayName || e.name || null;
2262
+ if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
1791
2263
  if (typeof e == "string") return e;
1792
2264
  switch (e) {
1793
2265
  case v: return "Fragment";
@@ -1802,52 +2274,52 @@ var Ie = /* @__PURE__ */ e(((e) => {
1802
2274
  case S: return e.displayName || "Context";
1803
2275
  case x: return (e._context.displayName || "Context") + ".Consumer";
1804
2276
  case C:
1805
- var t = e.render;
1806
- return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
1807
- case E: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
2277
+ var n = e.render;
2278
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
2279
+ case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
1808
2280
  case D:
1809
- t = e._payload, e = e._init;
2281
+ n = e._payload, e = e._init;
1810
2282
  try {
1811
- return n(e(t));
2283
+ return t(e(n));
1812
2284
  } catch {}
1813
2285
  }
1814
2286
  return null;
1815
2287
  }
1816
- function r(e) {
2288
+ function n(e) {
1817
2289
  return "" + e;
1818
2290
  }
1819
- function i(e) {
2291
+ function r(e) {
1820
2292
  try {
1821
- r(e);
2293
+ n(e);
1822
2294
  var t = !1;
1823
2295
  } catch {
1824
2296
  t = !0;
1825
2297
  }
1826
2298
  if (t) {
1827
2299
  t = console;
1828
- var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1829
- return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
2300
+ var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
2301
+ return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
1830
2302
  }
1831
2303
  }
1832
2304
  function a(e) {
1833
2305
  if (e === v) return "<>";
1834
2306
  if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
1835
2307
  try {
1836
- var t = n(e);
1837
- return t ? "<" + t + ">" : "<...>";
2308
+ var n = t(e);
2309
+ return n ? "<" + n + ">" : "<...>";
1838
2310
  } catch {
1839
2311
  return "<...>";
1840
2312
  }
1841
2313
  }
1842
2314
  function o() {
1843
- var e = k.A;
2315
+ var e = A.A;
1844
2316
  return e === null ? null : e.getOwner();
1845
2317
  }
1846
2318
  function s() {
1847
2319
  return Error("react-stack-top-frame");
1848
2320
  }
1849
2321
  function c(e) {
1850
- if (A.call(e, "key")) {
2322
+ if (j.call(e, "key")) {
1851
2323
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
1852
2324
  if (t && t.isReactWarning) return !1;
1853
2325
  }
@@ -1855,7 +2327,7 @@ var Ie = /* @__PURE__ */ e(((e) => {
1855
2327
  }
1856
2328
  function l(e, t) {
1857
2329
  function n() {
1858
- N || (N = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
2330
+ P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
1859
2331
  }
1860
2332
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
1861
2333
  get: n,
@@ -1863,8 +2335,8 @@ var Ie = /* @__PURE__ */ e(((e) => {
1863
2335
  });
1864
2336
  }
1865
2337
  function u() {
1866
- var e = n(this.type);
1867
- return P[e] || (P[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
2338
+ var e = t(this.type);
2339
+ return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
1868
2340
  }
1869
2341
  function d(e, t, n, r, i, a) {
1870
2342
  var o = n.ref;
@@ -1902,26 +2374,26 @@ var Ie = /* @__PURE__ */ e(((e) => {
1902
2374
  value: a
1903
2375
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
1904
2376
  }
1905
- function f(e, t, r, a, s, u) {
1906
- var f = t.children;
2377
+ function f(e, n, i, a, s, u) {
2378
+ var f = n.children;
1907
2379
  if (f !== void 0) {
1908
2380
  if (a) {
1909
- if (j(f)) {
2381
+ if (M(f)) {
1910
2382
  for (a = 0; a < f.length; a++) p(f[a]);
1911
2383
  Object.freeze && Object.freeze(f);
1912
2384
  } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1913
2385
  } else p(f);
1914
2386
  }
1915
- if (A.call(t, "key")) {
1916
- f = n(e);
1917
- var m = Object.keys(t).filter(function(e) {
2387
+ if (j.call(n, "key")) {
2388
+ f = t(e);
2389
+ var m = Object.keys(n).filter(function(e) {
1918
2390
  return e !== "key";
1919
2391
  });
1920
- a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", te[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), te[f + a] = !0);
2392
+ a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", L[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), L[f + a] = !0);
1921
2393
  }
1922
- if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
1923
- else r = t;
1924
- return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
2394
+ if (f = null, i !== void 0 && (r(i), f = "" + i), c(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
2395
+ else i = n;
2396
+ return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, o(), s, u);
1925
2397
  }
1926
2398
  function p(e) {
1927
2399
  m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
@@ -1929,32 +2401,1331 @@ var Ie = /* @__PURE__ */ e(((e) => {
1929
2401
  function m(e) {
1930
2402
  return typeof e == "object" && !!e && e.$$typeof === g;
1931
2403
  }
1932
- var h = t("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), k = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
2404
+ var h = i("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
1933
2405
  return null;
1934
2406
  };
1935
2407
  h = { react_stack_bottom_frame: function(e) {
1936
2408
  return e();
1937
2409
  } };
1938
- var N, P = {}, F = h.react_stack_bottom_frame.bind(h, s)(), I = M(a(s)), te = {};
2410
+ var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), ee = N(a(s)), L = {};
1939
2411
  e.Fragment = v, e.jsx = function(e, t, n) {
1940
- var r = 1e4 > k.recentlyCreatedOwnerStacks++;
1941
- return f(e, t, n, !1, r ? Error("react-stack-top-frame") : F, r ? M(a(e)) : I);
2412
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
2413
+ return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : ee);
1942
2414
  }, e.jsxs = function(e, t, n) {
1943
- var r = 1e4 > k.recentlyCreatedOwnerStacks++;
1944
- return f(e, t, n, !0, r ? Error("react-stack-top-frame") : F, r ? M(a(e)) : I);
2415
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
2416
+ return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : ee);
1945
2417
  };
1946
2418
  })();
1947
- })), Re = (/* @__PURE__ */ e(((e, t) => {
1948
- t.exports = process.env.NODE_ENV === "production" ? Ie() : Le();
1949
- })))(), ze = o("rounded-md border inline-flex items-center justify-center cursor-pointer", {
1950
- variants: { size: { default: "h-9 px-4 py-2" } },
1951
- defaultVariants: { size: "default" }
2419
+ })), $ = (/* @__PURE__ */ r(((e, t) => {
2420
+ t.exports = process.env.NODE_ENV === "production" ? tn() : nn();
2421
+ })))(), rn = Ne("inline-flex items-center justify-center gap-2 rounded-md border text-sm transition-all hover:brightness-90 disabled:pointer-events-none disabled:opacity-50", {
2422
+ variants: {
2423
+ variant: {
2424
+ default: "",
2425
+ ghost: "border-none"
2426
+ },
2427
+ size: { default: "h-9 px-4 py-2" }
2428
+ },
2429
+ defaultVariants: {
2430
+ variant: "default",
2431
+ size: "default"
2432
+ }
2433
+ });
2434
+ function an({ className: e, variant: t = "default", size: n = "default", ...r }) {
2435
+ return /* @__PURE__ */ (0, $.jsx)(Oe, {
2436
+ className: en(rn({
2437
+ variant: t,
2438
+ size: n,
2439
+ className: e
2440
+ })),
2441
+ ...r
2442
+ });
2443
+ }
2444
+ //#endregion
2445
+ //#region node_modules/@base-ui/utils/useControlled.mjs
2446
+ function on({ controlled: t, default: n, name: r, state: i = "value" }) {
2447
+ let { current: a } = e.useRef(t !== void 0), [o, s] = e.useState(n), c = a ? t : o;
2448
+ if (process.env.NODE_ENV !== "production") {
2449
+ e.useEffect(() => {
2450
+ a !== (t !== void 0) && y([
2451
+ `A component is changing the ${a ? "" : "un"}controlled ${i} state of ${r} to be ${a ? "un" : ""}controlled.`,
2452
+ "Elements should not switch from uncontrolled to controlled (or vice versa).",
2453
+ `Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,
2454
+ "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
2455
+ "More info: https://fb.me/react-controlled-components"
2456
+ ].join("\n"));
2457
+ }, [
2458
+ i,
2459
+ r,
2460
+ t
2461
+ ]);
2462
+ let { current: o } = e.useRef(n);
2463
+ e.useEffect(() => {
2464
+ !a && sn(o) !== sn(n) && y([`A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"));
2465
+ }, [n]);
2466
+ }
2467
+ return [c, e.useCallback((e) => {
2468
+ a || s(e);
2469
+ }, [])];
2470
+ }
2471
+ function sn(e) {
2472
+ let t = 0, n = /* @__PURE__ */ new WeakMap();
2473
+ try {
2474
+ return JSON.stringify(e, function(e, r) {
2475
+ if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
2476
+ if (typeof r == "bigint") return `__bigint__:${r}`;
2477
+ if (typeof r == "object" && r) {
2478
+ let e = n.get(r);
2479
+ if (e !== void 0) return `__object__:${e}`;
2480
+ n.set(r, t), t += 1;
2481
+ }
2482
+ return r;
2483
+ }
2484
+ }) ?? `__top__:${typeof e}`;
2485
+ } catch {
2486
+ return "__unserializable__";
2487
+ }
2488
+ }
2489
+ //#endregion
2490
+ //#region node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
2491
+ var cn = /*#__PURE__*/ e.createContext({
2492
+ register: () => {},
2493
+ unregister: () => {},
2494
+ subscribeMapChange: () => () => {},
2495
+ nextIndexRef: { current: 0 }
1952
2496
  });
1953
- function Be(e) {
1954
- return /* @__PURE__ */ (0, Re.jsx)("button", {
1955
- className: Fe(ze()),
1956
- ...e
2497
+ process.env.NODE_ENV !== "production" && (cn.displayName = "CompositeListContext");
2498
+ function ln() {
2499
+ return e.useContext(cn);
2500
+ }
2501
+ //#endregion
2502
+ //#region node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
2503
+ function un(t) {
2504
+ let { children: n, elementsRef: r, labelsRef: i, onMapChange: a } = t, o = h(a), [, s] = e.useState(!1), c = f(fn).current, l = f(dn).current, u = e.useRef(0), d = e.useRef(!0), p = e.useRef([]), m = e.useRef(null), g = h(() => {
2505
+ d.current || (d.current = !0, s((e) => !e));
2506
+ }), _ = h((e, t) => {
2507
+ l.set(e, t), g();
2508
+ }), v = h((e) => {
2509
+ l.delete(e), g();
2510
+ }), y = h((e) => {
2511
+ let t = /* @__PURE__ */ new Map();
2512
+ return r.current.length = 0, i && (i.current.length = 0), e.forEach((e) => {
2513
+ t.set(e.element, {
2514
+ ...e.registration.metadata ?? {},
2515
+ index: e.index
2516
+ }), r.current[e.index] = e.element, i && (i.current[e.index] = e.registration.label === void 0 ? e.registration.textRef?.current?.textContent ?? e.element.textContent : e.registration.label);
2517
+ }), u.current = r.current.length, t;
2518
+ });
2519
+ function x(e) {
2520
+ if (m.current?.disconnect(), m.current = null, typeof MutationObserver != "function" || e.length < 2) return;
2521
+ let t = new MutationObserver((n) => {
2522
+ if (!hn(n)) return;
2523
+ let r = null;
2524
+ for (let n of e) if (n.isConnected) {
2525
+ if (r && gn(r, n) > 0) {
2526
+ t.disconnect(), g();
2527
+ return;
2528
+ }
2529
+ r = n;
2530
+ }
2531
+ });
2532
+ m.current = t;
2533
+ let n = /* @__PURE__ */ new Set();
2534
+ for (let t = 1; t < e.length; t += 1) {
2535
+ let r = mn(e[t - 1], e[t]);
2536
+ r && n.add(r);
2537
+ }
2538
+ n.forEach((e) => t.observe(e, { childList: !0 }));
2539
+ }
2540
+ let S = h(() => {
2541
+ let [e, t] = pn(l), n = y(e);
2542
+ x(t), p.current = e, d.current = !1, c.forEach((e) => e(n)), o(n);
2543
+ });
2544
+ b(() => (d.current || y(p.current), () => {
2545
+ r.current = [], i && (i.current = []);
2546
+ }), [
2547
+ r,
2548
+ i,
2549
+ y
2550
+ ]), b(() => {
2551
+ d.current && S();
2552
+ }), b(() => () => {
2553
+ m.current?.disconnect(), d.current = !0;
2554
+ }, []);
2555
+ let C = h((e) => (c.add(e), () => {
2556
+ c.delete(e);
2557
+ })), w = e.useMemo(() => ({
2558
+ register: _,
2559
+ unregister: v,
2560
+ subscribeMapChange: C,
2561
+ nextIndexRef: u
2562
+ }), [
2563
+ _,
2564
+ v,
2565
+ C,
2566
+ u
2567
+ ]);
2568
+ return /*#__PURE__*/ (0, $.jsx)(cn.Provider, {
2569
+ value: w,
2570
+ children: n
2571
+ });
2572
+ }
2573
+ function dn() {
2574
+ return /* @__PURE__ */ new Map();
2575
+ }
2576
+ function fn() {
2577
+ return /* @__PURE__ */ new Set();
2578
+ }
2579
+ function pn(e) {
2580
+ let t = /* @__PURE__ */ new Set(), n = [], r = [];
2581
+ e.forEach((e, i) => {
2582
+ if (!i.isConnected) return;
2583
+ let a = e.index, o = {
2584
+ index: a ?? -1,
2585
+ element: i,
2586
+ registration: e
2587
+ };
2588
+ a === null ? r.push(o) : a >= 0 && (t.add(a), n.push(o));
2589
+ });
2590
+ let i = 0;
2591
+ return r.sort((e, t) => gn(e.element, t.element)), r.forEach((e) => {
2592
+ for (; t.has(i);) i += 1;
2593
+ e.index = i, n.push(e), i += 1;
2594
+ }), t.size > 0 && n.sort((e, t) => e.index - t.index), [n, r.map((e) => e.element)];
2595
+ }
2596
+ function mn(e, t) {
2597
+ let n = e.parentElement;
2598
+ for (; n && !n.contains(t);) n = n.parentElement;
2599
+ return n;
2600
+ }
2601
+ function hn(e) {
2602
+ for (let t of e) for (let e = 0; e < t.removedNodes.length; e += 1) if (t.removedNodes[e].isConnected) return !0;
2603
+ return !1;
2604
+ }
2605
+ function gn(e, t) {
2606
+ return e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
2607
+ }
2608
+ //#endregion
2609
+ //#region node_modules/@base-ui/react/tabs/root/TabsRootContext.mjs
2610
+ var _n = /*#__PURE__*/ e.createContext(void 0);
2611
+ process.env.NODE_ENV !== "production" && (_n.displayName = "TabsRootContext");
2612
+ function vn() {
2613
+ let t = e.useContext(_n);
2614
+ if (t === void 0) throw Error(process.env.NODE_ENV === "production" ? L(64) : "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");
2615
+ return t;
2616
+ }
2617
+ //#endregion
2618
+ //#region node_modules/@base-ui/react/tabs/root/stateAttributesMapping.mjs
2619
+ var yn = { tabActivationDirection: (e) => ({ "data-activation-direction": e }) }, bn = "none", xn = "disabled", Sn = "missing", Cn = "initial";
2620
+ //#endregion
2621
+ //#region node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs
2622
+ function wn(e, t, n, r) {
2623
+ let i = !1, a = !1, o = r ?? he;
2624
+ return {
2625
+ reason: e,
2626
+ event: t ?? new Event("base-ui"),
2627
+ cancel() {
2628
+ i = !0;
2629
+ },
2630
+ allowPropagation() {
2631
+ a = !0;
2632
+ },
2633
+ get isCanceled() {
2634
+ return i;
2635
+ },
2636
+ get isPropagationAllowed() {
2637
+ return a;
2638
+ },
2639
+ trigger: n,
2640
+ ...o
2641
+ };
2642
+ }
2643
+ //#endregion
2644
+ //#region node_modules/@base-ui/react/tabs/root/TabsRoot.mjs
2645
+ var Tn = /*#__PURE__*/ e.forwardRef(function(t, n) {
2646
+ let { className: r, defaultValue: i = 0, onValueChange: a, orientation: o = "horizontal", render: s, value: c, style: l, ...u } = t, d = t.defaultValue !== void 0, f = e.useRef([]), [p, m] = e.useState(() => /* @__PURE__ */ new Map()), [g, _] = on({
2647
+ controlled: c,
2648
+ default: i,
2649
+ name: "Tabs",
2650
+ state: "value"
2651
+ }), v = c !== void 0, [y, x] = e.useState(() => /* @__PURE__ */ new Map()), S = e.useRef(void 0), C = e.useCallback((e) => En(y, e), [y]), [w, T] = e.useState(() => ({
2652
+ previousValue: g,
2653
+ tabActivationDirection: "none"
2654
+ })), { previousValue: E, tabActivationDirection: D } = w, O = D, k = !1;
2655
+ E !== g && (O = Dn(E, g, o, y), k = E != null && g != null && C(g) == null);
2656
+ let A = k ? E : g, j = E !== A || D !== O;
2657
+ b(() => {
2658
+ j && T({
2659
+ previousValue: A,
2660
+ tabActivationDirection: O
2661
+ });
2662
+ }, [
2663
+ A,
2664
+ j,
2665
+ O
2666
+ ]);
2667
+ let M = h((e, t) => {
2668
+ t.activationDirection = Dn(g, e, o, y), a?.(e, t), !t.isCanceled && _(e);
2669
+ }), N = h((e, t) => {
2670
+ a?.(e, wn(t, void 0, void 0, { activationDirection: "none" }));
2671
+ }), P = h((e, t) => (m((n) => {
2672
+ let r = new Map(n);
2673
+ return r.set(e, t), r;
2674
+ }), () => {
2675
+ m((n) => {
2676
+ if (n.get(e) !== t) return n;
2677
+ let r = new Map(n);
2678
+ return r.delete(e), r;
2679
+ });
2680
+ })), F = e.useCallback((e) => p.get(e), [p]), I = e.useCallback((e) => {
2681
+ for (let t of y.values()) if (e === t.value) return t.id;
2682
+ }, [y]), ee = e.useMemo(() => ({
2683
+ getTabElementBySelectedValue: C,
2684
+ getTabIdByPanelValue: I,
2685
+ getTabPanelIdByValue: F,
2686
+ onValueChange: M,
2687
+ orientation: o,
2688
+ registerMountedTabPanel: P,
2689
+ setTabMap: x,
2690
+ tabActivationDirection: O,
2691
+ value: g
2692
+ }), [
2693
+ C,
2694
+ I,
2695
+ F,
2696
+ M,
2697
+ o,
2698
+ P,
2699
+ x,
2700
+ O,
2701
+ g
2702
+ ]), L = e.useMemo(() => {
2703
+ for (let e of y.values()) if (e.value === g) return e;
2704
+ }, [y, g]), R = e.useMemo(() => {
2705
+ for (let e of y.values()) if (!e.disabled) return e.value;
2706
+ }, [y]), z = e.useRef(!d), B = e.useRef(i), V = e.useRef(d), H = e.useRef(!1);
2707
+ b(() => {
2708
+ if (v) return;
2709
+ function e(e, t) {
2710
+ _(e), T({
2711
+ previousValue: e,
2712
+ tabActivationDirection: "none"
2713
+ }), N(e, t), z.current = !1;
2714
+ }
2715
+ if (y.size === 0) {
2716
+ H.current && g !== null && !S.current?.isConnected && e(null, Sn);
2717
+ return;
2718
+ }
2719
+ H.current = !0, S.current = y.keys().next().value;
2720
+ let t = L?.disabled, n = L == null && g !== null;
2721
+ if (!t && g === B.current && (V.current = !1), V.current && t && g === B.current) return;
2722
+ let r = z.current;
2723
+ if (t || n) {
2724
+ let n = R ?? null;
2725
+ if (g === n) {
2726
+ z.current = !1;
2727
+ return;
2728
+ }
2729
+ let i = Sn;
2730
+ r ? i = Cn : t && (i = xn), e(n, i);
2731
+ return;
2732
+ }
2733
+ r && L != null && (N(g, Cn), z.current = !1);
2734
+ }, [
2735
+ R,
2736
+ v,
2737
+ N,
2738
+ L,
2739
+ _,
2740
+ y,
2741
+ g
2742
+ ]);
2743
+ let te = ye("div", t, {
2744
+ state: {
2745
+ orientation: o,
2746
+ tabActivationDirection: O
2747
+ },
2748
+ ref: n,
2749
+ props: u,
2750
+ stateAttributesMapping: yn
2751
+ });
2752
+ return /*#__PURE__*/ (0, $.jsx)(_n.Provider, {
2753
+ value: ee,
2754
+ children: /*#__PURE__*/ (0, $.jsx)(un, {
2755
+ elementsRef: f,
2756
+ children: te
2757
+ })
2758
+ });
2759
+ });
2760
+ process.env.NODE_ENV !== "production" && (Tn.displayName = "TabsRoot");
2761
+ function En(e, t) {
2762
+ for (let [n, r] of e.entries()) if (t === r.value) return n;
2763
+ return null;
2764
+ }
2765
+ function Dn(e, t, n, r) {
2766
+ if (e == null || t == null) return "none";
2767
+ let [i, a, o] = n === "horizontal" ? [
2768
+ "left",
2769
+ "left",
2770
+ "right"
2771
+ ] : [
2772
+ "top",
2773
+ "up",
2774
+ "down"
2775
+ ], s = En(r, e), c = En(r, t);
2776
+ if (s == null || c == null) return s !== c && (typeof e == "number" || typeof e == "string") && typeof e == typeof t ? t > e ? o : a : "none";
2777
+ let l = s.getBoundingClientRect()[i], u = c.getBoundingClientRect()[i];
2778
+ return u < l ? a : u > l ? o : "none";
2779
+ }
2780
+ //#endregion
2781
+ //#region node_modules/@base-ui/utils/useId.mjs
2782
+ var On = 0;
2783
+ function kn(t, n = "mui") {
2784
+ let [r, i] = e.useState(t), a = t || r;
2785
+ return e.useEffect(() => {
2786
+ r ?? (On += 1, i(`${n}-${On}`));
2787
+ }, [r, n]), a;
2788
+ }
2789
+ var An = u.useId;
2790
+ function jn(e, t) {
2791
+ if (An !== void 0) {
2792
+ let n = An();
2793
+ return e ?? (t ? `${t}-${n}` : n);
2794
+ }
2795
+ return kn(e, t);
2796
+ }
2797
+ //#endregion
2798
+ //#region node_modules/@base-ui/react/internals/useBaseUiId.mjs
2799
+ function Mn(e) {
2800
+ return jn(e, "base-ui");
2801
+ }
2802
+ //#endregion
2803
+ //#region node_modules/@base-ui/react/internals/composite/constants.mjs
2804
+ var Nn = "data-composite-item-active";
2805
+ //#endregion
2806
+ //#region node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs
2807
+ function Pn(t = {}) {
2808
+ let { guess: n, label: r, metadata: i, textRef: a, index: o } = t, { register: s, unregister: c, subscribeMapChange: l, nextIndexRef: u } = ln(), d = e.useRef(-1), [f, p] = e.useState(o == null && n ? () => {
2809
+ if (d.current === -1) {
2810
+ let e = u.current;
2811
+ u.current += 1, d.current = e;
2812
+ }
2813
+ return d.current;
2814
+ } : -1), m = o ?? f, h = e.useRef(null), g = e.useCallback((e) => {
2815
+ let t = h.current;
2816
+ t && c(t), h.current = e, e && s(e, {
2817
+ metadata: i ?? null,
2818
+ index: o ?? null,
2819
+ label: r,
2820
+ textRef: a
2821
+ });
2822
+ }, [
2823
+ o,
2824
+ s,
2825
+ c,
2826
+ i,
2827
+ r,
2828
+ a
2829
+ ]);
2830
+ return b(() => {
2831
+ if (o == null) return l((e) => {
2832
+ let t = h.current ? e.get(h.current)?.index : null;
2833
+ t != null && p(t);
2834
+ });
2835
+ }, [o, l]), {
2836
+ ref: g,
2837
+ index: m
2838
+ };
2839
+ }
2840
+ //#endregion
2841
+ //#region node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs
2842
+ function Fn(t = {}) {
2843
+ let { highlightItemOnHover: n, highlightedIndex: r, onHighlightedIndexChange: i } = z(), { ref: a, index: o } = Pn(t), s = r === o, c = e.useRef(null), l = W(a, c);
2844
+ return {
2845
+ compositeProps: {
2846
+ tabIndex: s ? 0 : -1,
2847
+ onFocus() {
2848
+ i(o);
2849
+ },
2850
+ onMouseMove() {
2851
+ let e = c.current;
2852
+ if (!n || !e) return;
2853
+ let t = e.hasAttribute("disabled") || e.ariaDisabled === "true";
2854
+ !s && !t && e.focus();
2855
+ }
2856
+ },
2857
+ compositeRef: l,
2858
+ index: o
2859
+ };
2860
+ }
2861
+ //#endregion
2862
+ //#region node_modules/@base-ui/react/tabs/list/TabsListContext.mjs
2863
+ var In = /*#__PURE__*/ e.createContext(void 0);
2864
+ process.env.NODE_ENV !== "production" && (In.displayName = "TabsListContext");
2865
+ function Ln() {
2866
+ let t = e.useContext(In);
2867
+ if (t === void 0) throw Error(process.env.NODE_ENV === "production" ? L(65) : "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");
2868
+ return t;
2869
+ }
2870
+ //#endregion
2871
+ //#region node_modules/@base-ui/react/internals/shadowDom.mjs
2872
+ function Rn(e) {
2873
+ let t = e.activeElement;
2874
+ for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
2875
+ return t;
2876
+ }
2877
+ function zn(e, t) {
2878
+ if (!e || !t) return !1;
2879
+ let n = t.getRootNode?.();
2880
+ if (e.contains(t)) return !0;
2881
+ if (n && c(n)) {
2882
+ let n = t;
2883
+ for (; n;) {
2884
+ if (e === n) return !0;
2885
+ n = n.parentNode || n.host;
2886
+ }
2887
+ }
2888
+ return !1;
2889
+ }
2890
+ function Bn(e) {
2891
+ return "composedPath" in e ? e.composedPath()[0] : e.target;
2892
+ }
2893
+ //#endregion
2894
+ //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2895
+ var Vn = Math.round;
2896
+ //#endregion
2897
+ //#region node_modules/@base-ui/react/floating-ui-react/utils/composite.mjs
2898
+ function Hn(e, t) {
2899
+ return t < 0 || t >= e.length;
2900
+ }
2901
+ function Un(e, t) {
2902
+ return Gn(e.current, { disabledIndices: t });
2903
+ }
2904
+ function Wn(e, t) {
2905
+ return Gn(e.current, {
2906
+ decrement: !0,
2907
+ startingIndex: e.current.length,
2908
+ disabledIndices: t
2909
+ });
2910
+ }
2911
+ function Gn(e, { startingIndex: t = -1, decrement: n = !1, disabledIndices: r, amount: i = 1 } = {}) {
2912
+ let a = t;
2913
+ do
2914
+ a += n ? -i : i;
2915
+ while (a >= 0 && a <= e.length - 1 && Kn(e, a, r));
2916
+ return a;
2917
+ }
2918
+ function Kn(e, t, n) {
2919
+ if (typeof n == "function" ? n(t) : n?.includes(t) ?? !1) return !0;
2920
+ let r = e[t];
2921
+ return r ? !Jn(r) || r.matches(":disabled") ? !0 : !n && (r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true") : !1;
2922
+ }
2923
+ function qn(e) {
2924
+ return e.visibility === "hidden" || e.visibility === "collapse";
2925
+ }
2926
+ function Jn(e, t = e ? l(e) : null) {
2927
+ return !e || !e.isConnected || !t || qn(t) ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : t.display !== "none" && t.display !== "contents";
2928
+ }
2929
+ //#endregion
2930
+ //#region node_modules/@base-ui/react/tabs/tab/TabsTab.mjs
2931
+ var Yn = /*#__PURE__*/ e.forwardRef(function(t, n) {
2932
+ let { className: r, disabled: i = !1, render: a, value: o, id: s, nativeButton: c = !0, style: l, ...u } = t, { value: d, getTabPanelIdByValue: f, onValueChange: p, orientation: m, tabActivationDirection: g } = vn(), { activateOnFocus: _, registerTabResizeObserverElement: v, tabsListElement: y } = Ln(), { highlightedIndex: x, onHighlightedIndexChange: S } = z(), C = Mn(s), { compositeProps: w, compositeRef: T, index: E } = Fn({ metadata: e.useMemo(() => ({
2933
+ disabled: i,
2934
+ id: C,
2935
+ value: o
2936
+ }), [
2937
+ i,
2938
+ C,
2939
+ o
2940
+ ]) }), D = o === d, O = e.useRef(!1), k = e.useRef(null), A = h((e) => {
2941
+ k.current?.(), k.current = e ? v(e) : null;
2942
+ });
2943
+ b(() => {
2944
+ if (O.current) {
2945
+ O.current = !1;
2946
+ return;
2947
+ }
2948
+ if (!(D && E > -1 && x !== E)) return;
2949
+ let e = y;
2950
+ if (e != null) {
2951
+ let t = Rn(V(e));
2952
+ if (t && zn(e, t)) return;
2953
+ }
2954
+ i || S(E);
2955
+ }, [
2956
+ D,
2957
+ E,
2958
+ x,
2959
+ S,
2960
+ i,
2961
+ y
2962
+ ]);
2963
+ let { getButtonProps: j, buttonRef: M } = te({
2964
+ disabled: i,
2965
+ native: c,
2966
+ focusableWhenDisabled: !0
2967
+ }), N = f(o), P = e.useRef(!1), F = e.useRef(!1);
2968
+ function I(e) {
2969
+ p(o, wn(bn, e.nativeEvent, void 0, { activationDirection: "none" }));
2970
+ }
2971
+ function ee(e) {
2972
+ D || i || I(e);
2973
+ }
2974
+ function L(e) {
2975
+ D || i || _ && (!P.current || F.current) && I(e);
2976
+ }
2977
+ function R(e) {
2978
+ if (D || i) return;
2979
+ P.current = !0, F.current = e.button === 0;
2980
+ let t = V(e.currentTarget);
2981
+ function n() {
2982
+ P.current = !1, F.current = !1, t.removeEventListener("pointerup", n), t.removeEventListener("pointercancel", n);
2983
+ }
2984
+ t.addEventListener("pointerup", n), t.addEventListener("pointercancel", n);
2985
+ }
2986
+ return ye("button", t, {
2987
+ state: {
2988
+ disabled: i,
2989
+ active: D,
2990
+ orientation: m,
2991
+ tabActivationDirection: g
2992
+ },
2993
+ ref: [
2994
+ n,
2995
+ M,
2996
+ T,
2997
+ A
2998
+ ],
2999
+ props: [
3000
+ w,
3001
+ {
3002
+ role: "tab",
3003
+ "aria-controls": N,
3004
+ "aria-selected": D,
3005
+ id: C,
3006
+ onClick: ee,
3007
+ onFocus: L,
3008
+ onPointerDown: R,
3009
+ [Nn]: D ? "" : void 0,
3010
+ onKeyDownCapture() {
3011
+ O.current = !0;
3012
+ }
3013
+ },
3014
+ u,
3015
+ j
3016
+ ],
3017
+ stateAttributesMapping: yn
3018
+ });
3019
+ });
3020
+ process.env.NODE_ENV !== "production" && (Yn.displayName = "TabsTab");
3021
+ //#endregion
3022
+ //#region node_modules/@base-ui/utils/useForcedRerendering.mjs
3023
+ function Xn() {
3024
+ let [, t] = e.useState({});
3025
+ return e.useCallback(() => {
3026
+ t({});
3027
+ }, []);
3028
+ }
3029
+ //#endregion
3030
+ //#region node_modules/@base-ui/react/utils/getCssDimensions.mjs
3031
+ function Zn(e) {
3032
+ let t = l(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = s(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r;
3033
+ return (Vn(n) !== a || Vn(r) !== o) && (n = a, r = o), {
3034
+ width: n,
3035
+ height: r
3036
+ };
3037
+ }
3038
+ //#endregion
3039
+ //#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
3040
+ var Qn = /* @__PURE__ */ r(((e) => {
3041
+ var t = i("react");
3042
+ function n(e, t) {
3043
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
3044
+ }
3045
+ var r = typeof Object.is == "function" ? Object.is : n, a = t.useState, o = t.useEffect, s = t.useLayoutEffect, c = t.useDebugValue;
3046
+ function l(e, t) {
3047
+ var n = t(), r = a({ inst: {
3048
+ value: n,
3049
+ getSnapshot: t
3050
+ } }), i = r[0].inst, l = r[1];
3051
+ return s(function() {
3052
+ i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
3053
+ }, [
3054
+ e,
3055
+ n,
3056
+ t
3057
+ ]), o(function() {
3058
+ return u(i) && l({ inst: i }), e(function() {
3059
+ u(i) && l({ inst: i });
3060
+ });
3061
+ }, [e]), c(n), n;
3062
+ }
3063
+ function u(e) {
3064
+ var t = e.getSnapshot;
3065
+ e = e.value;
3066
+ try {
3067
+ var n = t();
3068
+ return !r(e, n);
3069
+ } catch {
3070
+ return !0;
3071
+ }
3072
+ }
3073
+ function d(e, t) {
3074
+ return t();
3075
+ }
3076
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
3077
+ e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
3078
+ })), $n = /* @__PURE__ */ r(((e) => {
3079
+ process.env.NODE_ENV !== "production" && (function() {
3080
+ function t(e, t) {
3081
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
3082
+ }
3083
+ function n(e, t) {
3084
+ f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
3085
+ var n = t();
3086
+ if (!p) {
3087
+ var i = t();
3088
+ s(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
3089
+ }
3090
+ i = c({ inst: {
3091
+ value: n,
3092
+ getSnapshot: t
3093
+ } });
3094
+ var a = i[0].inst, m = i[1];
3095
+ return u(function() {
3096
+ a.value = n, a.getSnapshot = t, r(a) && m({ inst: a });
3097
+ }, [
3098
+ e,
3099
+ n,
3100
+ t
3101
+ ]), l(function() {
3102
+ return r(a) && m({ inst: a }), e(function() {
3103
+ r(a) && m({ inst: a });
3104
+ });
3105
+ }, [e]), d(n), n;
3106
+ }
3107
+ function r(e) {
3108
+ var t = e.getSnapshot;
3109
+ e = e.value;
3110
+ try {
3111
+ var n = t();
3112
+ return !s(e, n);
3113
+ } catch {
3114
+ return !0;
3115
+ }
3116
+ }
3117
+ function a(e, t) {
3118
+ return t();
3119
+ }
3120
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
3121
+ var o = i("react"), s = typeof Object.is == "function" ? Object.is : t, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : n;
3122
+ e.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3123
+ })();
3124
+ })), er = (/* @__PURE__ */ r(((e, t) => {
3125
+ t.exports = process.env.NODE_ENV === "production" ? Qn() : $n();
3126
+ })))();
3127
+ function tr() {
3128
+ return pe;
3129
+ }
3130
+ function nr() {
3131
+ return !1;
3132
+ }
3133
+ function rr() {
3134
+ return !0;
3135
+ }
3136
+ function ir() {
3137
+ return (0, er.useSyncExternalStore)(tr, nr, rr);
3138
+ }
3139
+ //#endregion
3140
+ //#region node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
3141
+ var ar = /*#__PURE__*/ e.createContext(void 0);
3142
+ process.env.NODE_ENV !== "production" && (ar.displayName = "CSPContext");
3143
+ var or = { disableStyleElements: !1 };
3144
+ function sr() {
3145
+ return e.useContext(ar) ?? or;
3146
+ }
3147
+ //#endregion
3148
+ //#region node_modules/@base-ui/react/internals/PrehydrationScript.mjs
3149
+ function cr(e) {
3150
+ let { script: t } = e, { nonce: n } = sr();
3151
+ return ir() ? /*#__PURE__*/ (0, $.jsx)("script", {
3152
+ nonce: n,
3153
+ dangerouslySetInnerHTML: { __html: t },
3154
+ suppressHydrationWarning: !0
3155
+ }) : null;
3156
+ }
3157
+ //#endregion
3158
+ //#region node_modules/@base-ui/react/tabs/indicator/TabsIndicator.mjs
3159
+ var lr, ur = {
3160
+ ...yn,
3161
+ activeTabPosition: () => null,
3162
+ activeTabSize: () => null
3163
+ }, dr = /*#__PURE__*/ e.forwardRef(function(t, n) {
3164
+ let { className: r, render: i, renderBeforeHydration: a = !1, style: o, ...s } = t, { getTabElementBySelectedValue: c, orientation: l, tabActivationDirection: u, value: d } = vn(), { tabsListElement: f, registerIndicatorUpdateListener: p } = Ln(), m = Xn();
3165
+ e.useEffect(() => p(m), [p, m]);
3166
+ let h = 0, g = 0, _ = 0, v = 0, y = 0, b = 0, x = !1;
3167
+ if (d != null && f != null) {
3168
+ let e = c(d);
3169
+ if (e != null) {
3170
+ x = !0;
3171
+ let { width: t, height: n } = Zn(e), { width: r, height: i } = Zn(f), a = e.getBoundingClientRect(), o = f.getBoundingClientRect(), s = r > 0 ? o.width / r : 1, c = i > 0 ? o.height / i : 1;
3172
+ if (s > 2 ** -52 && c > 2 ** -52) {
3173
+ let e = a.left - o.left, t = a.top - o.top;
3174
+ h = e / s + f.scrollLeft - f.clientLeft, _ = t / c + f.scrollTop - f.clientTop;
3175
+ } else h = e.offsetLeft, _ = e.offsetTop;
3176
+ y = t, b = n, g = f.scrollWidth - h - y, v = f.scrollHeight - _ - b;
3177
+ }
3178
+ }
3179
+ let S = x ? {
3180
+ left: h,
3181
+ right: g,
3182
+ top: _,
3183
+ bottom: v
3184
+ } : null, C = x ? {
3185
+ width: y,
3186
+ height: b
3187
+ } : null, w = x ? {
3188
+ "--active-tab-left": `${h}px`,
3189
+ "--active-tab-right": `${g}px`,
3190
+ "--active-tab-top": `${_}px`,
3191
+ "--active-tab-bottom": `${v}px`,
3192
+ "--active-tab-width": `${y}px`,
3193
+ "--active-tab-height": `${b}px`
3194
+ } : void 0, T = ye("span", t, {
3195
+ state: {
3196
+ orientation: l,
3197
+ activeTabPosition: S,
3198
+ activeTabSize: C,
3199
+ tabActivationDirection: u
3200
+ },
3201
+ ref: n,
3202
+ props: [
3203
+ {
3204
+ role: "presentation",
3205
+ style: w,
3206
+ hidden: !(x && y > 0 && b > 0)
3207
+ },
3208
+ s,
3209
+ { suppressHydrationWarning: !0 }
3210
+ ],
3211
+ stateAttributesMapping: ur
3212
+ });
3213
+ return d == null ? null : /*#__PURE__*/ (0, $.jsxs)(e.Fragment, { children: [T, a && (lr ||= /*#__PURE__*/ (0, $.jsx)(cr, { script: "" }))] });
3214
+ });
3215
+ process.env.NODE_ENV !== "production" && (dr.displayName = "TabsIndicator");
3216
+ //#endregion
3217
+ //#region node_modules/@base-ui/utils/inertValue.mjs
3218
+ function fr(e) {
3219
+ return le(19) ? e : e ? "true" : void 0;
3220
+ }
3221
+ //#endregion
3222
+ //#region node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
3223
+ var pr = { "data-starting-style": "" }, mr = { "data-ending-style": "" }, hr = { transitionStatus(e) {
3224
+ return e === "starting" ? pr : e === "ending" ? mr : null;
3225
+ } };
3226
+ //#endregion
3227
+ //#region node_modules/@base-ui/utils/useOnMount.mjs
3228
+ function gr(t) {
3229
+ e.useEffect(t, me);
3230
+ }
3231
+ //#endregion
3232
+ //#region node_modules/@base-ui/utils/useAnimationFrame.mjs
3233
+ var _r = null, vr = globalThis.requestAnimationFrame, yr = new class {
3234
+ callbacks = [];
3235
+ callbacksCount = 0;
3236
+ nextId = 1;
3237
+ startId = 1;
3238
+ isScheduled = !1;
3239
+ tick = (e) => {
3240
+ this.isScheduled = !1;
3241
+ let t = this.callbacks, n = this.callbacksCount;
3242
+ if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, n > 0) for (let n = 0; n < t.length; n += 1) t[n]?.(e);
3243
+ };
3244
+ request(e) {
3245
+ let t = this.nextId;
3246
+ this.nextId += 1, this.callbacks.push(e), this.callbacksCount += 1;
3247
+ let n = process.env.NODE_ENV !== "production" && vr !== requestAnimationFrame && (vr = requestAnimationFrame, !0);
3248
+ return (!this.isScheduled || n) && (requestAnimationFrame(this.tick), this.isScheduled = !0), t;
3249
+ }
3250
+ cancel(e) {
3251
+ let t = e - this.startId;
3252
+ t < 0 || t >= this.callbacks.length || (this.callbacks[t] = null, --this.callbacksCount);
3253
+ }
3254
+ }(), br = class e {
3255
+ static create() {
3256
+ return new e();
3257
+ }
3258
+ static request(e) {
3259
+ return yr.request(e);
3260
+ }
3261
+ static cancel(e) {
3262
+ return yr.cancel(e);
3263
+ }
3264
+ currentId = _r;
3265
+ request(e) {
3266
+ this.cancel(), this.currentId = yr.request(() => {
3267
+ this.currentId = _r, e();
3268
+ });
3269
+ }
3270
+ cancel = () => {
3271
+ this.currentId !== _r && (yr.cancel(this.currentId), this.currentId = _r);
3272
+ };
3273
+ disposeEffect = () => this.cancel;
3274
+ };
3275
+ function xr() {
3276
+ let e = f(br.create).current;
3277
+ return gr(e.disposeEffect), e;
3278
+ }
3279
+ //#endregion
3280
+ //#region node_modules/@base-ui/react/utils/resolveRef.mjs
3281
+ function Sr(e) {
3282
+ return e == null ? e : "current" in e ? e.current : e;
3283
+ }
3284
+ //#endregion
3285
+ //#region node_modules/@base-ui/react/internals/useAnimationsFinished.mjs
3286
+ function Cr(e, t = !1) {
3287
+ let r = xr();
3288
+ return h((i, a = null) => {
3289
+ r.cancel();
3290
+ let o = Sr(e);
3291
+ if (o == null) return;
3292
+ let s = o, c = () => {
3293
+ n.flushSync(i);
3294
+ };
3295
+ if (typeof s.getAnimations != "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
3296
+ i();
3297
+ return;
3298
+ }
3299
+ function l() {
3300
+ Promise.all(s.getAnimations().map((e) => e.finished)).then(() => {
3301
+ a?.aborted || c();
3302
+ }, () => {
3303
+ if (!a?.aborted) {
3304
+ if (s.getAnimations().some((e) => e.pending || e.playState !== "finished")) {
3305
+ l();
3306
+ return;
3307
+ }
3308
+ c();
3309
+ }
3310
+ });
3311
+ }
3312
+ if (t) {
3313
+ let e = "data-starting-style";
3314
+ if (!s.hasAttribute(e)) {
3315
+ r.request(l);
3316
+ return;
3317
+ }
3318
+ let t = new MutationObserver(() => {
3319
+ s.hasAttribute(e) || (t.disconnect(), l());
3320
+ });
3321
+ t.observe(s, {
3322
+ attributes: !0,
3323
+ attributeFilter: [e]
3324
+ }), a?.addEventListener("abort", () => t.disconnect(), { once: !0 });
3325
+ return;
3326
+ }
3327
+ r.request(l);
3328
+ });
3329
+ }
3330
+ //#endregion
3331
+ //#region node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
3332
+ function wr(t) {
3333
+ let { enabled: n = !0, open: r, ref: i, onComplete: a } = t, o = h(a), s = Cr(i, r);
3334
+ e.useEffect(() => {
3335
+ if (!n) return;
3336
+ let e = new AbortController();
3337
+ return s(o, e.signal), () => {
3338
+ e.abort();
3339
+ };
3340
+ }, [
3341
+ n,
3342
+ r,
3343
+ o,
3344
+ s
3345
+ ]);
3346
+ }
3347
+ //#endregion
3348
+ //#region node_modules/@base-ui/react/internals/useTransitionStatus.mjs
3349
+ function Tr(t, n = !1, r = !1) {
3350
+ let [i, a] = e.useState(t && n ? "idle" : void 0), [o, s] = e.useState(t);
3351
+ return t && !o && (s(!0), a("starting")), !t && o && i !== "ending" && !r && a("ending"), !t && !o && i === "ending" && a(void 0), b(() => {
3352
+ if (!t && o && i !== "ending" && r) {
3353
+ let e = br.request(() => {
3354
+ a("ending");
3355
+ });
3356
+ return () => {
3357
+ br.cancel(e);
3358
+ };
3359
+ }
3360
+ }, [
3361
+ t,
3362
+ o,
3363
+ i,
3364
+ r
3365
+ ]), b(() => {
3366
+ if (!t || n) return;
3367
+ let e = br.request(() => {
3368
+ a(void 0);
3369
+ });
3370
+ return () => {
3371
+ br.cancel(e);
3372
+ };
3373
+ }, [n, t]), b(() => {
3374
+ if (!t || !n) return;
3375
+ t && o && i !== "idle" && a("starting");
3376
+ let e = br.request(() => {
3377
+ a("idle");
3378
+ });
3379
+ return () => {
3380
+ br.cancel(e);
3381
+ };
3382
+ }, [
3383
+ n,
3384
+ t,
3385
+ o,
3386
+ i
3387
+ ]), {
3388
+ mounted: o,
3389
+ setMounted: s,
3390
+ transitionStatus: i
3391
+ };
3392
+ }
3393
+ //#endregion
3394
+ //#region node_modules/@base-ui/react/tabs/panel/TabsPanel.mjs
3395
+ var Er = {
3396
+ ...yn,
3397
+ ...hr
3398
+ }, Dr = /*#__PURE__*/ e.forwardRef(function(t, n) {
3399
+ let { className: r, value: i, render: a, keepMounted: o = !1, style: s, ...c } = t, { value: l, getTabIdByPanelValue: u, orientation: d, tabActivationDirection: f, registerMountedTabPanel: p } = vn(), m = Mn(), { ref: h, index: g } = Pn(), _ = i === l, { mounted: v, transitionStatus: y, setMounted: x } = Tr(_), S = !v, C = u(i), w = {
3400
+ hidden: S,
3401
+ orientation: d,
3402
+ tabActivationDirection: f,
3403
+ transitionStatus: y
3404
+ }, T = e.useRef(null), E = ye("div", t, {
3405
+ state: w,
3406
+ ref: [
3407
+ n,
3408
+ h,
3409
+ T
3410
+ ],
3411
+ props: [{
3412
+ "aria-labelledby": C,
3413
+ hidden: S,
3414
+ id: m,
3415
+ role: "tabpanel",
3416
+ tabIndex: _ ? 0 : -1,
3417
+ inert: fr(!_),
3418
+ "data-index": g
3419
+ }, c],
3420
+ stateAttributesMapping: Er
3421
+ });
3422
+ return wr({
3423
+ open: _,
3424
+ ref: T,
3425
+ onComplete() {
3426
+ _ || x(!1);
3427
+ }
3428
+ }), b(() => {
3429
+ if (!(m == null || S && !o)) return p(i, m);
3430
+ }, [
3431
+ S,
3432
+ o,
3433
+ i,
3434
+ m,
3435
+ p
3436
+ ]), o || v ? E : null;
3437
+ });
3438
+ process.env.NODE_ENV !== "production" && (Dr.displayName = "TabsPanel");
3439
+ //#endregion
3440
+ //#region node_modules/@base-ui/utils/isElementDisabled.mjs
3441
+ function Or(e) {
3442
+ return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
3443
+ }
3444
+ //#endregion
3445
+ //#region node_modules/@base-ui/react/internals/composite/composite.mjs
3446
+ var kr = "ArrowUp", Ar = "ArrowDown", jr = "ArrowLeft", Mr = "ArrowRight", Nr = /* @__PURE__ */ new Set([
3447
+ kr,
3448
+ Ar,
3449
+ jr,
3450
+ Mr,
3451
+ "Home",
3452
+ "End"
3453
+ ]), Pr = [
3454
+ "Shift",
3455
+ "Control",
3456
+ "Alt",
3457
+ "Meta"
3458
+ ];
3459
+ function Fr(e) {
3460
+ return s(e) && e.tagName === "INPUT";
3461
+ }
3462
+ function Ir(e) {
3463
+ return !!(Fr(e) && e.selectionStart != null || s(e) && e.tagName === "TEXTAREA");
3464
+ }
3465
+ function Lr(e, t, n, r) {
3466
+ if (!e || !t || !t.scrollTo) return;
3467
+ let i = e.scrollLeft, a = e.scrollTop, o = e.clientWidth < e.scrollWidth, s = e.clientHeight < e.scrollHeight;
3468
+ if (o && r !== "vertical") {
3469
+ let r = Rr(e, t, "left"), a = zr(e), o = zr(t);
3470
+ n === "ltr" && (r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight ? i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight : r - o.scrollMarginLeft < e.scrollLeft + a.scrollPaddingLeft && (i = r - o.scrollMarginLeft - a.scrollPaddingLeft)), n === "rtl" && (r - o.scrollMarginLeft < e.scrollLeft + a.scrollPaddingLeft ? i = r - o.scrollMarginLeft - a.scrollPaddingLeft : r + t.offsetWidth + o.scrollMarginRight > e.scrollLeft + e.clientWidth - a.scrollPaddingRight && (i = r + t.offsetWidth + o.scrollMarginRight - e.clientWidth + a.scrollPaddingRight));
3471
+ }
3472
+ if (s && r !== "horizontal") {
3473
+ let n = Rr(e, t, "top"), r = zr(e), i = zr(t);
3474
+ n - i.scrollMarginTop < e.scrollTop + r.scrollPaddingTop ? a = n - i.scrollMarginTop - r.scrollPaddingTop : n + t.offsetHeight + i.scrollMarginBottom > e.scrollTop + e.clientHeight - r.scrollPaddingBottom && (a = n + t.offsetHeight + i.scrollMarginBottom - e.clientHeight + r.scrollPaddingBottom);
3475
+ }
3476
+ e.scrollTo({
3477
+ left: i,
3478
+ top: a,
3479
+ behavior: "auto"
3480
+ });
3481
+ }
3482
+ function Rr(e, t, n) {
3483
+ let r = n === "left" ? "offsetLeft" : "offsetTop", i = 0;
3484
+ for (; t.offsetParent && (i += t[r], t.offsetParent !== e);) t = t.offsetParent;
3485
+ return i;
3486
+ }
3487
+ function zr(e) {
3488
+ let t = getComputedStyle(e);
3489
+ return {
3490
+ scrollMarginTop: parseFloat(t.scrollMarginTop) || 0,
3491
+ scrollMarginRight: parseFloat(t.scrollMarginRight) || 0,
3492
+ scrollMarginBottom: parseFloat(t.scrollMarginBottom) || 0,
3493
+ scrollMarginLeft: parseFloat(t.scrollMarginLeft) || 0,
3494
+ scrollPaddingTop: parseFloat(t.scrollPaddingTop) || 0,
3495
+ scrollPaddingRight: parseFloat(t.scrollPaddingRight) || 0,
3496
+ scrollPaddingBottom: parseFloat(t.scrollPaddingBottom) || 0,
3497
+ scrollPaddingLeft: parseFloat(t.scrollPaddingLeft) || 0
3498
+ };
3499
+ }
3500
+ //#endregion
3501
+ //#region node_modules/@base-ui/react/internals/composite/root/useCompositeRoot.mjs
3502
+ var Br = [];
3503
+ function Vr(t) {
3504
+ let { loopFocus: n = !0, orientation: r = "both", grid: i, onLoop: a, direction: o, highlightedIndex: s, onHighlightedIndexChange: c, rootRef: l, enableHomeAndEndKeys: u = !1, stopEventPropagation: d, disabledIndices: f, modifierKeys: p = Br } = t, [m, g] = e.useState(0), _ = i != null, v = e.useRef(null), y = W(v, l), x = e.useRef([]), S = e.useRef(!1), C = s ?? m, w = h((e, t = !1) => {
3505
+ if ((c ?? g)(e), t) {
3506
+ let t = x.current[e];
3507
+ Lr(v.current, t, o, r);
3508
+ }
3509
+ }), T = h((e) => {
3510
+ if (e.size === 0 || S.current) return;
3511
+ S.current = !0;
3512
+ let t = Array.from(e.keys()), n = t.find((e) => e?.hasAttribute("data-composite-item-active")) ?? null, i = n ? e.get(n)?.index ?? -1 : -1;
3513
+ if (i !== -1) w(i);
3514
+ else if (Kn(t, C, f)) {
3515
+ let e = Gn(t, { disabledIndices: f });
3516
+ Hn(t, e) || w(e);
3517
+ }
3518
+ Lr(v.current, n, o, r);
3519
+ });
3520
+ b(() => {
3521
+ if (f == null || s != null || !S.current) return;
3522
+ let e = x.current;
3523
+ if (Kn(e, C, f)) {
3524
+ let t = Gn(e, { disabledIndices: f });
3525
+ Hn(e, t) || w(t);
3526
+ }
3527
+ }, [
3528
+ f,
3529
+ s,
3530
+ C,
3531
+ x,
3532
+ w
3533
+ ]);
3534
+ let E = h((e, t, n) => a ? a(e, t, n, x) : n), D = h((e) => {
3535
+ let t = e.key === "Home" || e.key === "End";
3536
+ if (!Nr.has(e.key) || !u && t || Hr(e, p) || !v.current) return;
3537
+ let s = o === "rtl", c = s ? jr : Mr, l = s ? Mr : jr, m = r === "vertical" ? Ar : c, h = r === "vertical" ? kr : l, g = Bn(e.nativeEvent);
3538
+ if (g != null && Ir(g) && !Or(g)) {
3539
+ let t = g.selectionStart, n = g.selectionEnd, r = g.value;
3540
+ if (t == null || e.shiftKey || t !== n || e.key !== h && t < r.length || e.key !== m && t > 0) return;
3541
+ }
3542
+ let y = C, b = Un(x, f), S = Wn(x, f);
3543
+ i != null && (y = i({
3544
+ disabledIndices: f,
3545
+ elementsRef: x,
3546
+ event: e,
3547
+ highlightedIndex: C,
3548
+ loopFocus: n,
3549
+ maxIndex: S,
3550
+ minIndex: b,
3551
+ onLoop: E,
3552
+ orientation: r,
3553
+ rtl: s
3554
+ }));
3555
+ let T = r !== "vertical" && e.key === c || r !== "horizontal" && e.key === "ArrowDown", D = r !== "vertical" && e.key === l || r !== "horizontal" && e.key === "ArrowUp";
3556
+ u && (e.key === "Home" ? y = b : e.key === "End" && (y = S)), y === C && (T || D) && (n && y === S && T ? (y = b, a && (y = a(e, C, y, x))) : n && y === b && D ? (y = S, a && (y = a(e, C, y, x))) : y = Gn(x.current, {
3557
+ startingIndex: y,
3558
+ decrement: D,
3559
+ disabledIndices: f
3560
+ })), y !== C && !Hn(x.current, y) && (d && e.stopPropagation(), (_ || t || T || D) && e.preventDefault(), w(y, !0), queueMicrotask(() => {
3561
+ x.current[y]?.focus();
3562
+ }));
3563
+ });
3564
+ return {
3565
+ props: {
3566
+ ref: y,
3567
+ onFocus(e) {
3568
+ let t = v.current, n = Bn(e.nativeEvent);
3569
+ !t || n == null || !Ir(n) || n.setSelectionRange(0, n.value.length);
3570
+ },
3571
+ onKeyDown: D
3572
+ },
3573
+ highlightedIndex: C,
3574
+ onHighlightedIndexChange: w,
3575
+ elementsRef: x,
3576
+ onMapChange: T,
3577
+ relayKeyboardEvent: D
3578
+ };
3579
+ }
3580
+ function Hr(e, t) {
3581
+ for (let n of Pr) if (!t.includes(n) && e.getModifierState(n)) return !0;
3582
+ return !1;
3583
+ }
3584
+ //#endregion
3585
+ //#region node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
3586
+ var Ur = /*#__PURE__*/ e.createContext(void 0);
3587
+ process.env.NODE_ENV !== "production" && (Ur.displayName = "DirectionContext");
3588
+ function Wr() {
3589
+ return e.useContext(Ur)?.direction ?? "ltr";
3590
+ }
3591
+ //#endregion
3592
+ //#region node_modules/@base-ui/react/internals/composite/root/CompositeRoot.mjs
3593
+ function Gr(t) {
3594
+ let { render: n, className: r, style: i, refs: a = me, props: o = me, state: s = he, stateAttributesMapping: c, highlightedIndex: l, onHighlightedIndexChange: u, orientation: d, grid: f, loopFocus: p, onLoop: m, enableHomeAndEndKeys: h, onMapChange: g, stopEventPropagation: _ = !0, rootRef: v, disabledIndices: y, modifierKeys: b, highlightItemOnHover: x = !1, tag: S = "div", ...C } = t, { props: w, highlightedIndex: T, onHighlightedIndexChange: E, elementsRef: D, onMapChange: O, relayKeyboardEvent: k } = Vr({
3595
+ grid: f,
3596
+ loopFocus: p,
3597
+ onLoop: m,
3598
+ orientation: d,
3599
+ highlightedIndex: l,
3600
+ onHighlightedIndexChange: u,
3601
+ rootRef: v,
3602
+ stopEventPropagation: _,
3603
+ enableHomeAndEndKeys: h,
3604
+ direction: Wr(),
3605
+ disabledIndices: y,
3606
+ modifierKeys: b
3607
+ }), A = ye(S, t, {
3608
+ state: s,
3609
+ ref: a,
3610
+ props: [
3611
+ w,
3612
+ ...o,
3613
+ C
3614
+ ],
3615
+ stateAttributesMapping: c
3616
+ }), j = e.useMemo(() => ({
3617
+ highlightedIndex: T,
3618
+ onHighlightedIndexChange: E,
3619
+ highlightItemOnHover: x,
3620
+ relayKeyboardEvent: k
3621
+ }), [
3622
+ T,
3623
+ E,
3624
+ x,
3625
+ k
3626
+ ]);
3627
+ return /*#__PURE__*/ (0, $.jsx)(R.Provider, {
3628
+ value: j,
3629
+ children: /*#__PURE__*/ (0, $.jsx)(un, {
3630
+ elementsRef: D,
3631
+ onMapChange: (e) => {
3632
+ g?.(e), O(e);
3633
+ },
3634
+ children: A
3635
+ })
3636
+ });
3637
+ }
3638
+ //#endregion
3639
+ //#region node_modules/@base-ui/react/tabs/list/TabsList.mjs
3640
+ var Kr = /*#__PURE__*/ e.forwardRef(function(t, n) {
3641
+ let { activateOnFocus: r = !1, className: i, loopFocus: a = !0, render: o, style: s, ...c } = t, { orientation: l, setTabMap: u, tabActivationDirection: d } = vn(), [f, p] = e.useState(0), [m, g] = e.useState(null), _ = e.useRef(/* @__PURE__ */ new Set()), v = e.useRef(/* @__PURE__ */ new Set()), y = e.useRef(null);
3642
+ b(() => {
3643
+ if (typeof ResizeObserver > "u") return;
3644
+ let e = new ResizeObserver(() => {
3645
+ _.current.forEach((e) => {
3646
+ e();
3647
+ });
3648
+ });
3649
+ return y.current = e, m && e.observe(m), v.current.forEach((t) => {
3650
+ e.observe(t);
3651
+ }), () => {
3652
+ e.disconnect(), y.current = null;
3653
+ };
3654
+ }, [m]);
3655
+ let x = h((e) => (_.current.add(e), () => {
3656
+ _.current.delete(e);
3657
+ })), S = h((e) => (v.current.add(e), y.current?.observe(e), () => {
3658
+ v.current.delete(e), y.current?.unobserve(e);
3659
+ })), C = {
3660
+ orientation: l,
3661
+ tabActivationDirection: d
3662
+ }, w = {
3663
+ "aria-orientation": l === "vertical" ? "vertical" : void 0,
3664
+ role: "tablist"
3665
+ }, T = e.useMemo(() => ({
3666
+ activateOnFocus: r,
3667
+ registerIndicatorUpdateListener: x,
3668
+ registerTabResizeObserverElement: S,
3669
+ tabsListElement: m
3670
+ }), [
3671
+ r,
3672
+ x,
3673
+ S,
3674
+ m
3675
+ ]);
3676
+ return /*#__PURE__*/ (0, $.jsx)(In.Provider, {
3677
+ value: T,
3678
+ children: /*#__PURE__*/ (0, $.jsx)(Gr, {
3679
+ render: o,
3680
+ className: i,
3681
+ style: s,
3682
+ state: C,
3683
+ refs: [n, g],
3684
+ props: [w, c],
3685
+ stateAttributesMapping: yn,
3686
+ highlightedIndex: f,
3687
+ enableHomeAndEndKeys: !0,
3688
+ loopFocus: a,
3689
+ orientation: l,
3690
+ onHighlightedIndexChange: p,
3691
+ onMapChange: u,
3692
+ disabledIndices: me
3693
+ })
3694
+ });
3695
+ });
3696
+ process.env.NODE_ENV !== "production" && (Kr.displayName = "TabsList");
3697
+ //#endregion
3698
+ //#region src/components/tabs/tabs.tsx
3699
+ function qr({ className: e, ...t }) {
3700
+ return /* @__PURE__ */ (0, $.jsx)(Tn, {
3701
+ className: en("w-fit", e),
3702
+ ...t
3703
+ });
3704
+ }
3705
+ function Jr({ className: e, ...t }) {
3706
+ return /* @__PURE__ */ (0, $.jsx)(Kr, {
3707
+ className: en("relative z-1 -mb-px inline-flex gap-4 text-black", e),
3708
+ ...t
3709
+ });
3710
+ }
3711
+ var Yr = Ne("h-9 cursor-pointer px-3 text-sm");
3712
+ function Xr({ className: e, ...t }) {
3713
+ return /* @__PURE__ */ (0, $.jsx)(Yn, {
3714
+ className: en(Yr(), e),
3715
+ ...t
3716
+ });
3717
+ }
3718
+ function Zr({ className: e, ...t }) {
3719
+ return /* @__PURE__ */ (0, $.jsx)(dr, {
3720
+ className: en("absolute top-0 left-0 -z-1 h-full w-(--active-tab-width) translate-x-(--active-tab-left) border-x border-t border-black bg-white transition-[translate,width]", e),
3721
+ ...t
3722
+ });
3723
+ }
3724
+ function Qr({ className: e, ...t }) {
3725
+ return /* @__PURE__ */ (0, $.jsx)(Dr, {
3726
+ className: en("p-4", e),
3727
+ ...t
1957
3728
  });
1958
3729
  }
1959
3730
  //#endregion
1960
- export { Be as Button, Fe as cn };
3731
+ export { an as Button, qr as Tabs, Zr as TabsIndicator, Jr as TabsList, Qr as TabsPanel, Xr as TabsTab, en as cn };