@zhin.js/console 1.0.12 → 1.0.14

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.
@@ -30,20 +30,11 @@ function km(e) {
30
30
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
31
31
  }
32
32
  var Vn = { exports: {} }, Kt = {};
33
- /**
34
- * @license React
35
- * react-jsx-runtime.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */
42
33
  var Va;
43
34
  function Lm() {
44
35
  if (Va) return Kt;
45
36
  Va = 1;
46
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
37
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
47
38
  function r(n, a, s) {
48
39
  var i = null;
49
40
  if (s !== void 0 && (i = "" + s), a.key !== void 0 && (i = "" + a.key), "key" in a) {
@@ -91,7 +82,7 @@ function Fm(e) {
91
82
  });
92
83
  return t.displayName = `${e}.SlotClone`, t;
93
84
  }
94
- var Ts = Symbol("radix.slottable");
85
+ var Ts = /* @__PURE__ */ Symbol("radix.slottable");
95
86
  // @__NO_SIDE_EFFECTS__
96
87
  function Ao(e) {
97
88
  const t = ({ children: r }) => /* @__PURE__ */ p.jsx(p.Fragment, { children: r });
@@ -137,7 +128,7 @@ var Hm = [
137
128
  ], M = Hm.reduce((e, t) => {
138
129
  const r = /* @__PURE__ */ Qe(`Primitive.${t}`), n = o.forwardRef((a, s) => {
139
130
  const { asChild: i, ...c } = a, l = i ? r : t;
140
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p.jsx(l, { ...c, ref: s });
131
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p.jsx(l, { ...c, ref: s });
141
132
  });
142
133
  return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
143
134
  }, {});
@@ -262,7 +253,9 @@ function Lt(e) {
262
253
  const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Qe(u), h = W.forwardRef(
263
254
  (v, C) => {
264
255
  const { scope: y, children: x, ...w } = v, b = W.useRef(null), E = B(C, b), T = s(u, y);
265
- return W.useEffect(() => (T.itemMap.set(b, { ref: b, ...w }), () => void T.itemMap.delete(b))), /* @__PURE__ */ p.jsx(m, { [f]: "", ref: E, children: x });
256
+ return W.useEffect(() => (T.itemMap.set(b, { ref: b, ...w }), () => {
257
+ T.itemMap.delete(b);
258
+ })), /* @__PURE__ */ p.jsx(m, { [f]: "", ref: E, children: x });
266
259
  }
267
260
  );
268
261
  h.displayName = u;
@@ -454,11 +447,11 @@ var av = "DismissableLayer", ao = "dismissableLayer.update", sv = "dismissableLa
454
447
  onDismiss: c,
455
448
  ...l
456
449
  } = e, d = o.useContext(Os), [u, f] = o.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, h] = o.useState({}), g = B(t, (N) => f(N)), v = Array.from(d.layers), [C] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = v.indexOf(C), x = u ? v.indexOf(u) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, E = uv((N) => {
457
- const I = N.target, _ = [...d.branches].some((D) => D.contains(I));
450
+ const A = N.target, _ = [...d.branches].some((D) => D.contains(A));
458
451
  !b || _ || (a?.(N), i?.(N), N.defaultPrevented || c?.());
459
452
  }, m), T = dv((N) => {
460
- const I = N.target;
461
- [...d.branches].some((D) => D.contains(I)) || (s?.(N), i?.(N), N.defaultPrevented || c?.());
453
+ const A = N.target;
454
+ [...d.branches].some((D) => D.contains(A)) || (s?.(N), i?.(N), N.defaultPrevented || c?.());
462
455
  }, m);
463
456
  return ov((N) => {
464
457
  x === d.layers.size - 1 && (n?.(N), !N.defaultPrevented && c && (N.preventDefault(), c()));
@@ -1106,15 +1099,18 @@ function eh(e) {
1106
1099
  var y = _r(v), x = r.current, w = "deltaX" in v ? v.deltaX : x[0] - y[0], b = "deltaY" in v ? v.deltaY : x[1] - y[1], E, T = v.target, N = Math.abs(w) > Math.abs(b) ? "h" : "v";
1107
1100
  if ("touches" in v && N === "h" && T.type === "range")
1108
1101
  return !1;
1109
- var I = Qa(N, T);
1110
- if (!I)
1102
+ var A = window.getSelection(), _ = A && A.anchorNode, D = _ ? _ === T || _.contains(T) : !1;
1103
+ if (D)
1104
+ return !1;
1105
+ var $ = Qa(N, T);
1106
+ if (!$)
1111
1107
  return !0;
1112
- if (I ? E = N : (E = N === "v" ? "h" : "v", I = Qa(N, T)), !I)
1108
+ if ($ ? E = N : (E = N === "v" ? "h" : "v", $ = Qa(N, T)), !$)
1113
1109
  return !1;
1114
1110
  if (!n.current && "changedTouches" in v && (w || b) && (n.current = E), !E)
1115
1111
  return !0;
1116
- var _ = n.current || E;
1117
- return qv(_, C, v, _ === "h" ? w : b);
1112
+ var z = n.current || E;
1113
+ return qv(z, C, v, z === "h" ? w : b);
1118
1114
  }, []), l = o.useCallback(function(v) {
1119
1115
  var C = v;
1120
1116
  if (!(!Rt.length || Rt[Rt.length - 1] !== s)) {
@@ -1577,15 +1573,6 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
1577
1573
  );
1578
1574
  Mi.displayName = $h;
1579
1575
  var Oh = Mi, Xn = { exports: {} }, qn = {};
1580
- /**
1581
- * @license React
1582
- * use-sync-external-store-shim.production.js
1583
- *
1584
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1585
- *
1586
- * This source code is licensed under the MIT license found in the
1587
- * LICENSE file in the root directory of this source tree.
1588
- */
1589
1576
  var ts;
1590
1577
  function kh() {
1591
1578
  if (ts) return qn;
@@ -2242,12 +2229,12 @@ const lg = (e) => ({
2242
2229
  }, h = Ho(a), g = zo(h), v = await i.getDimensions(d), C = h === "y", y = C ? "top" : "left", x = C ? "bottom" : "right", w = C ? "clientHeight" : "clientWidth", b = s.reference[g] + s.reference[h] - m[h] - s.floating[g], E = m[h] - s.reference[h], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2243
2230
  let N = T ? T[w] : 0;
2244
2231
  (!N || !await (i.isElement == null ? void 0 : i.isElement(T))) && (N = c.floating[w] || s.floating[g]);
2245
- const I = b / 2 - E / 2, _ = N / 2 - v[g] / 2 - 1, D = Je(f[y], _), L = Je(f[x], _), z = D, H = N - v[g] - L, P = N / 2 - v[g] / 2 + I, $ = io(z, P, H), F = !l.arrow && Ft(a) != null && P !== $ && s.reference[g] / 2 - (P < z ? D : L) - v[g] / 2 < 0, V = F ? P < z ? P - z : P - H : 0;
2232
+ const A = b / 2 - E / 2, _ = N / 2 - v[g] / 2 - 1, D = Je(f[y], _), $ = Je(f[x], _), z = D, H = N - v[g] - $, P = N / 2 - v[g] / 2 + A, O = io(z, P, H), F = !l.arrow && Ft(a) != null && P !== O && s.reference[g] / 2 - (P < z ? D : $) - v[g] / 2 < 0, V = F ? P < z ? P - z : P - H : 0;
2246
2233
  return {
2247
2234
  [h]: m[h] + V,
2248
2235
  data: {
2249
- [h]: $,
2250
- centerOffset: P - $ - V,
2236
+ [h]: O,
2237
+ centerOffset: P - O - V,
2251
2238
  ...F && {
2252
2239
  alignmentOffset: V
2253
2240
  }
@@ -2281,44 +2268,44 @@ const lg = (e) => ({
2281
2268
  return {};
2282
2269
  const y = We(a), x = Ae(c), w = We(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), E = m || (w || !v ? [zr(c)] : rg(c)), T = g !== "none";
2283
2270
  !m && T && E.push(...sg(c, v, g, b));
2284
- const N = [c, ...E], I = await or(t, C), _ = [];
2271
+ const N = [c, ...E], A = await or(t, C), _ = [];
2285
2272
  let D = ((n = s.flip) == null ? void 0 : n.overflows) || [];
2286
- if (u && _.push(I[y]), f) {
2273
+ if (u && _.push(A[y]), f) {
2287
2274
  const P = tg(a, i, b);
2288
- _.push(I[P[0]], I[P[1]]);
2275
+ _.push(A[P[0]], A[P[1]]);
2289
2276
  }
2290
2277
  if (D = [...D, {
2291
2278
  placement: a,
2292
2279
  overflows: _
2293
2280
  }], !_.every((P) => P <= 0)) {
2294
- var L, z;
2295
- const P = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, $ = N[P];
2296
- if ($ && (!(f === "alignment" ? x !== Ae($) : !1) || // We leave the current main axis only if every placement on that axis
2281
+ var $, z;
2282
+ const P = ((($ = s.flip) == null ? void 0 : $.index) || 0) + 1, O = N[P];
2283
+ if (O && (!(f === "alignment" ? x !== Ae(O) : !1) || // We leave the current main axis only if every placement on that axis
2297
2284
  // overflows the main axis.
2298
- D.every((k) => Ae(k.placement) === x ? k.overflows[0] > 0 : !0)))
2285
+ D.every((L) => Ae(L.placement) === x ? L.overflows[0] > 0 : !0)))
2299
2286
  return {
2300
2287
  data: {
2301
2288
  index: P,
2302
2289
  overflows: D
2303
2290
  },
2304
2291
  reset: {
2305
- placement: $
2292
+ placement: O
2306
2293
  }
2307
2294
  };
2308
- let F = (z = D.filter((V) => V.overflows[0] <= 0).sort((V, k) => V.overflows[1] - k.overflows[1])[0]) == null ? void 0 : z.placement;
2295
+ let F = (z = D.filter((V) => V.overflows[0] <= 0).sort((V, L) => V.overflows[1] - L.overflows[1])[0]) == null ? void 0 : z.placement;
2309
2296
  if (!F)
2310
2297
  switch (h) {
2311
2298
  case "bestFit": {
2312
2299
  var H;
2313
- const V = (H = D.filter((k) => {
2300
+ const V = (H = D.filter((L) => {
2314
2301
  if (T) {
2315
- const A = Ae(k.placement);
2316
- return A === x || // Create a bias to the `y` side axis due to horizontal
2302
+ const I = Ae(L.placement);
2303
+ return I === x || // Create a bias to the `y` side axis due to horizontal
2317
2304
  // reading directions favoring greater width.
2318
- A === "y";
2305
+ I === "y";
2319
2306
  }
2320
2307
  return !0;
2321
- }).map((k) => [k.placement, k.overflows.filter((A) => A > 0).reduce((A, ne) => A + ne, 0)]).sort((k, A) => k[1] - A[1])[0]) == null ? void 0 : H[0];
2308
+ }).map((L) => [L.placement, L.overflows.filter((I) => I > 0).reduce((I, ne) => I + ne, 0)]).sort((L, I) => L[1] - I[1])[0]) == null ? void 0 : H[0];
2322
2309
  V && (F = V);
2323
2310
  break;
2324
2311
  }
@@ -2559,14 +2546,14 @@ const pg = function(e) {
2559
2546
  let C, y;
2560
2547
  f === "top" || f === "bottom" ? (C = f, y = m === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = f, C = m === "end" ? "top" : "bottom");
2561
2548
  const x = v - u.top - u.bottom, w = g - u.left - u.right, b = Je(v - u[C], x), E = Je(g - u[y], w), T = !t.middlewareData.shift;
2562
- let N = b, I = E;
2563
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (I = w), (n = t.middlewareData.shift) != null && n.enabled.y && (N = x), T && !m) {
2564
- const D = ge(u.left, 0), L = ge(u.right, 0), z = ge(u.top, 0), H = ge(u.bottom, 0);
2565
- h ? I = g - 2 * (D !== 0 || L !== 0 ? D + L : ge(u.left, u.right)) : N = v - 2 * (z !== 0 || H !== 0 ? z + H : ge(u.top, u.bottom));
2549
+ let N = b, A = E;
2550
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (A = w), (n = t.middlewareData.shift) != null && n.enabled.y && (N = x), T && !m) {
2551
+ const D = ge(u.left, 0), $ = ge(u.right, 0), z = ge(u.top, 0), H = ge(u.bottom, 0);
2552
+ h ? A = g - 2 * (D !== 0 || $ !== 0 ? D + $ : ge(u.left, u.right)) : N = v - 2 * (z !== 0 || H !== 0 ? z + H : ge(u.top, u.bottom));
2566
2553
  }
2567
2554
  await l({
2568
2555
  ...t,
2569
- availableWidth: I,
2556
+ availableWidth: A,
2570
2557
  availableHeight: N
2571
2558
  });
2572
2559
  const _ = await i.getDimensions(c.floating);
@@ -3146,35 +3133,35 @@ function Qg(e) {
3146
3133
  isPositioned: !1
3147
3134
  }), [m, h] = o.useState(n);
3148
3135
  Gr(m, n) || h(n);
3149
- const [g, v] = o.useState(null), [C, y] = o.useState(null), x = o.useCallback((k) => {
3150
- k !== T.current && (T.current = k, v(k));
3151
- }, []), w = o.useCallback((k) => {
3152
- k !== N.current && (N.current = k, y(k));
3153
- }, []), b = s || g, E = i || C, T = o.useRef(null), N = o.useRef(null), I = o.useRef(u), _ = l != null, D = Qn(l), L = Qn(a), z = Qn(d), H = o.useCallback(() => {
3136
+ const [g, v] = o.useState(null), [C, y] = o.useState(null), x = o.useCallback((L) => {
3137
+ L !== T.current && (T.current = L, v(L));
3138
+ }, []), w = o.useCallback((L) => {
3139
+ L !== N.current && (N.current = L, y(L));
3140
+ }, []), b = s || g, E = i || C, T = o.useRef(null), N = o.useRef(null), A = o.useRef(u), _ = l != null, D = Qn(l), $ = Qn(a), z = Qn(d), H = o.useCallback(() => {
3154
3141
  if (!T.current || !N.current)
3155
3142
  return;
3156
- const k = {
3143
+ const L = {
3157
3144
  placement: t,
3158
3145
  strategy: r,
3159
3146
  middleware: m
3160
3147
  };
3161
- L.current && (k.platform = L.current), Xg(T.current, N.current, k).then((A) => {
3148
+ $.current && (L.platform = $.current), Xg(T.current, N.current, L).then((I) => {
3162
3149
  const ne = {
3163
- ...A,
3150
+ ...I,
3164
3151
  // The floating element's position may be recomputed while it's closed
3165
3152
  // but still mounted (such as when transitioning out). To ensure
3166
3153
  // `isPositioned` will be `false` initially on the next open, avoid
3167
3154
  // setting it to `true` when `open === false` (must be specified).
3168
3155
  isPositioned: z.current !== !1
3169
3156
  };
3170
- P.current && !Gr(I.current, ne) && (I.current = ne, rn.flushSync(() => {
3157
+ P.current && !Gr(A.current, ne) && (A.current = ne, rn.flushSync(() => {
3171
3158
  f(ne);
3172
3159
  }));
3173
3160
  });
3174
- }, [m, t, r, L, z]);
3161
+ }, [m, t, r, $, z]);
3175
3162
  Lr(() => {
3176
- d === !1 && I.current.isPositioned && (I.current.isPositioned = !1, f((k) => ({
3177
- ...k,
3163
+ d === !1 && A.current.isPositioned && (A.current.isPositioned = !1, f((L) => ({
3164
+ ...L,
3178
3165
  isPositioned: !1
3179
3166
  })));
3180
3167
  }, [d]);
@@ -3188,7 +3175,7 @@ function Qg(e) {
3188
3175
  H();
3189
3176
  }
3190
3177
  }, [b, E, H, D, _]);
3191
- const $ = o.useMemo(() => ({
3178
+ const O = o.useMemo(() => ({
3192
3179
  reference: T,
3193
3180
  floating: N,
3194
3181
  setReference: x,
@@ -3197,33 +3184,33 @@ function Qg(e) {
3197
3184
  reference: b,
3198
3185
  floating: E
3199
3186
  }), [b, E]), V = o.useMemo(() => {
3200
- const k = {
3187
+ const L = {
3201
3188
  position: r,
3202
3189
  left: 0,
3203
3190
  top: 0
3204
3191
  };
3205
3192
  if (!F.floating)
3206
- return k;
3207
- const A = ms(F.floating, u.x), ne = ms(F.floating, u.y);
3193
+ return L;
3194
+ const I = ms(F.floating, u.x), ne = ms(F.floating, u.y);
3208
3195
  return c ? {
3209
- ...k,
3210
- transform: "translate(" + A + "px, " + ne + "px)",
3196
+ ...L,
3197
+ transform: "translate(" + I + "px, " + ne + "px)",
3211
3198
  ...Ji(F.floating) >= 1.5 && {
3212
3199
  willChange: "transform"
3213
3200
  }
3214
3201
  } : {
3215
3202
  position: r,
3216
- left: A,
3203
+ left: I,
3217
3204
  top: ne
3218
3205
  };
3219
3206
  }, [r, c, F.floating, u.x, u.y]);
3220
3207
  return o.useMemo(() => ({
3221
3208
  ...u,
3222
3209
  update: H,
3223
- refs: $,
3210
+ refs: O,
3224
3211
  elements: F,
3225
3212
  floatingStyles: V
3226
- }), [u, H, $, F, V]);
3213
+ }), [u, H, O, F, V]);
3227
3214
  }
3228
3215
  const Jg = (e) => {
3229
3216
  function t(r) {
@@ -3316,12 +3303,12 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3316
3303
  updatePositionStrategy: h = "optimized",
3317
3304
  onPlaced: g,
3318
3305
  ...v
3319
- } = e, C = rc(Yo, r), [y, x] = o.useState(null), w = B(t, (j) => x(j)), [b, E] = o.useState(null), T = vr(b), N = T?.width ?? 0, I = T?.height ?? 0, _ = n + (s !== "center" ? "-" + s : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, L = Array.isArray(d) ? d : [d], z = L.length > 0, H = {
3306
+ } = e, C = rc(Yo, r), [y, x] = o.useState(null), w = B(t, (j) => x(j)), [b, E] = o.useState(null), T = vr(b), N = T?.width ?? 0, A = T?.height ?? 0, _ = n + (s !== "center" ? "-" + s : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(d) ? d : [d], z = $.length > 0, H = {
3320
3307
  padding: D,
3321
- boundary: L.filter(pC),
3308
+ boundary: $.filter(pC),
3322
3309
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3323
3310
  altBoundary: z
3324
- }, { refs: P, floatingStyles: $, placement: F, isPositioned: V, middlewareData: k } = Qg({
3311
+ }, { refs: P, floatingStyles: O, placement: F, isPositioned: V, middlewareData: L } = Qg({
3325
3312
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3326
3313
  strategy: "fixed",
3327
3314
  placement: _,
@@ -3332,7 +3319,7 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3332
3319
  reference: C.anchor
3333
3320
  },
3334
3321
  middleware: [
3335
- eC({ mainAxis: a + I, alignmentAxis: i }),
3322
+ eC({ mainAxis: a + A, alignmentAxis: i }),
3336
3323
  l && tC({
3337
3324
  mainAxis: !0,
3338
3325
  crossAxis: !1,
@@ -3348,14 +3335,14 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3348
3335
  }
3349
3336
  }),
3350
3337
  b && sC({ element: b, padding: c }),
3351
- mC({ arrowWidth: N, arrowHeight: I }),
3338
+ mC({ arrowWidth: N, arrowHeight: A }),
3352
3339
  m && aC({ strategy: "referenceHidden", ...H })
3353
3340
  ]
3354
- }), [A, ne] = lc(F), fe = U(g);
3341
+ }), [I, ne] = lc(F), fe = U(g);
3355
3342
  ee(() => {
3356
3343
  V && fe?.();
3357
3344
  }, [V, fe]);
3358
- const Se = k.arrow?.x, Ve = k.arrow?.y, ye = k.arrow?.centerOffset !== 0, [ze, ve] = o.useState();
3345
+ const Se = L.arrow?.x, Ve = L.arrow?.y, ye = L.arrow?.centerOffset !== 0, [ze, ve] = o.useState();
3359
3346
  return ee(() => {
3360
3347
  y && ve(window.getComputedStyle(y).zIndex);
3361
3348
  }, [y]), /* @__PURE__ */ p.jsx(
@@ -3364,19 +3351,19 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3364
3351
  ref: P.setFloating,
3365
3352
  "data-radix-popper-content-wrapper": "",
3366
3353
  style: {
3367
- ...$,
3368
- transform: V ? $.transform : "translate(0, -200%)",
3354
+ ...O,
3355
+ transform: V ? O.transform : "translate(0, -200%)",
3369
3356
  // keep off the page when measuring
3370
3357
  minWidth: "max-content",
3371
3358
  zIndex: ze,
3372
3359
  "--radix-popper-transform-origin": [
3373
- k.transformOrigin?.x,
3374
- k.transformOrigin?.y
3360
+ L.transformOrigin?.x,
3361
+ L.transformOrigin?.y
3375
3362
  ].join(" "),
3376
3363
  // hide the content if using the hide middleware and should be hidden
3377
3364
  // set visibility to hidden and disable pointer events so the UI behaves
3378
3365
  // as if the PopperContent isn't there at all
3379
- ...k.hide?.referenceHidden && {
3366
+ ...L.hide?.referenceHidden && {
3380
3367
  visibility: "hidden",
3381
3368
  pointerEvents: "none"
3382
3369
  }
@@ -3386,7 +3373,7 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3386
3373
  uC,
3387
3374
  {
3388
3375
  scope: r,
3389
- placedSide: A,
3376
+ placedSide: I,
3390
3377
  onArrowChange: E,
3391
3378
  arrowX: Se,
3392
3379
  arrowY: Ve,
@@ -3394,7 +3381,7 @@ var Yo = "PopperContent", [uC, dC] = tc(Yo), sc = o.forwardRef(
3394
3381
  children: /* @__PURE__ */ p.jsx(
3395
3382
  M.div,
3396
3383
  {
3397
- "data-side": A,
3384
+ "data-side": I,
3398
3385
  "data-align": ne,
3399
3386
  ...v,
3400
3387
  ref: w,
@@ -3506,9 +3493,9 @@ var wC = o.forwardRef((e, t) => {
3506
3493
  caller: yr
3507
3494
  }), [y, x] = o.useState(!1), w = U(d), b = uc(r), E = o.useRef(!1), [T, N] = o.useState(0);
3508
3495
  return o.useEffect(() => {
3509
- const I = m.current;
3510
- if (I)
3511
- return I.addEventListener(Jn, w), () => I.removeEventListener(Jn, w);
3496
+ const A = m.current;
3497
+ if (A)
3498
+ return A.addEventListener(Jn, w), () => A.removeEventListener(Jn, w);
3512
3499
  }, [w]), /* @__PURE__ */ p.jsx(
3513
3500
  CC,
3514
3501
  {
@@ -3518,16 +3505,16 @@ var wC = o.forwardRef((e, t) => {
3518
3505
  loop: a,
3519
3506
  currentTabStopId: v,
3520
3507
  onItemFocus: o.useCallback(
3521
- (I) => C(I),
3508
+ (A) => C(A),
3522
3509
  [C]
3523
3510
  ),
3524
3511
  onItemShiftTab: o.useCallback(() => x(!0), []),
3525
3512
  onFocusableItemAdd: o.useCallback(
3526
- () => N((I) => I + 1),
3513
+ () => N((A) => A + 1),
3527
3514
  []
3528
3515
  ),
3529
3516
  onFocusableItemRemove: o.useCallback(
3530
- () => N((I) => I - 1),
3517
+ () => N((A) => A - 1),
3531
3518
  []
3532
3519
  ),
3533
3520
  children: /* @__PURE__ */ p.jsx(
@@ -3541,15 +3528,15 @@ var wC = o.forwardRef((e, t) => {
3541
3528
  onMouseDown: S(e.onMouseDown, () => {
3542
3529
  E.current = !0;
3543
3530
  }),
3544
- onFocus: S(e.onFocus, (I) => {
3531
+ onFocus: S(e.onFocus, (A) => {
3545
3532
  const _ = !E.current;
3546
- if (I.target === I.currentTarget && _ && !y) {
3533
+ if (A.target === A.currentTarget && _ && !y) {
3547
3534
  const D = new CustomEvent(Jn, vC);
3548
- if (I.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
3549
- const L = b().filter((F) => F.focusable), z = L.find((F) => F.active), H = L.find((F) => F.id === v), $ = [z, H, ...L].filter(
3535
+ if (A.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
3536
+ const $ = b().filter((F) => F.focusable), z = $.find((F) => F.active), H = $.find((F) => F.id === v), O = [z, H, ...$].filter(
3550
3537
  Boolean
3551
3538
  ).map((F) => F.ref.current);
3552
- mc($, u);
3539
+ mc(O, u);
3553
3540
  }
3554
3541
  }
3555
3542
  E.current = !1;
@@ -3758,48 +3745,48 @@ var xe = "MenuContent", [$C, Zo] = yt(xe), xc = o.forwardRef(
3758
3745
  onDismiss: h,
3759
3746
  disableOutsideScroll: g,
3760
3747
  ...v
3761
- } = e, C = nt(xe, r), y = Sr(xe, r), x = Er(r), w = hc(r), b = MC(r), [E, T] = o.useState(null), N = o.useRef(null), I = B(t, N, C.onContentChange), _ = o.useRef(0), D = o.useRef(""), L = o.useRef(0), z = o.useRef(null), H = o.useRef("right"), P = o.useRef(0), $ = g ? mr : o.Fragment, F = g ? { as: LC, allowPinchZoom: !0 } : void 0, V = (A) => {
3762
- const ne = D.current + A, fe = b().filter((j) => !j.disabled), Se = document.activeElement, Ve = fe.find((j) => j.ref.current === Se)?.textValue, ye = fe.map((j) => j.textValue), ze = XC(ye, ne, Ve), ve = fe.find((j) => j.textValue === ze)?.ref.current;
3748
+ } = e, C = nt(xe, r), y = Sr(xe, r), x = Er(r), w = hc(r), b = MC(r), [E, T] = o.useState(null), N = o.useRef(null), A = B(t, N, C.onContentChange), _ = o.useRef(0), D = o.useRef(""), $ = o.useRef(0), z = o.useRef(null), H = o.useRef("right"), P = o.useRef(0), O = g ? mr : o.Fragment, F = g ? { as: LC, allowPinchZoom: !0 } : void 0, V = (I) => {
3749
+ const ne = D.current + I, fe = b().filter((j) => !j.disabled), Se = document.activeElement, Ve = fe.find((j) => j.ref.current === Se)?.textValue, ye = fe.map((j) => j.textValue), ze = XC(ye, ne, Ve), ve = fe.find((j) => j.textValue === ze)?.ref.current;
3763
3750
  (function j(X) {
3764
3751
  D.current = X, window.clearTimeout(_.current), X !== "" && (_.current = window.setTimeout(() => j(""), 1e3));
3765
3752
  })(ne), ve && setTimeout(() => ve.focus());
3766
3753
  };
3767
3754
  o.useEffect(() => () => window.clearTimeout(_.current), []), on();
3768
- const k = o.useCallback((A) => H.current === z.current?.side && ZC(A, z.current?.area), []);
3755
+ const L = o.useCallback((I) => H.current === z.current?.side && ZC(I, z.current?.area), []);
3769
3756
  return /* @__PURE__ */ p.jsx(
3770
3757
  $C,
3771
3758
  {
3772
3759
  scope: r,
3773
3760
  searchRef: D,
3774
3761
  onItemEnter: o.useCallback(
3775
- (A) => {
3776
- k(A) && A.preventDefault();
3762
+ (I) => {
3763
+ L(I) && I.preventDefault();
3777
3764
  },
3778
- [k]
3765
+ [L]
3779
3766
  ),
3780
3767
  onItemLeave: o.useCallback(
3781
- (A) => {
3782
- k(A) || (N.current?.focus(), T(null));
3768
+ (I) => {
3769
+ L(I) || (N.current?.focus(), T(null));
3783
3770
  },
3784
- [k]
3771
+ [L]
3785
3772
  ),
3786
3773
  onTriggerLeave: o.useCallback(
3787
- (A) => {
3788
- k(A) && A.preventDefault();
3774
+ (I) => {
3775
+ L(I) && I.preventDefault();
3789
3776
  },
3790
- [k]
3777
+ [L]
3791
3778
  ),
3792
- pointerGraceTimerRef: L,
3793
- onPointerGraceIntentChange: o.useCallback((A) => {
3794
- z.current = A;
3779
+ pointerGraceTimerRef: $,
3780
+ onPointerGraceIntentChange: o.useCallback((I) => {
3781
+ z.current = I;
3795
3782
  }, []),
3796
- children: /* @__PURE__ */ p.jsx($, { ...F, children: /* @__PURE__ */ p.jsx(
3783
+ children: /* @__PURE__ */ p.jsx(O, { ...F, children: /* @__PURE__ */ p.jsx(
3797
3784
  pr,
3798
3785
  {
3799
3786
  asChild: !0,
3800
3787
  trapped: a,
3801
- onMountAutoFocus: S(s, (A) => {
3802
- A.preventDefault(), N.current?.focus({ preventScroll: !0 });
3788
+ onMountAutoFocus: S(s, (I) => {
3789
+ I.preventDefault(), N.current?.focus({ preventScroll: !0 });
3803
3790
  }),
3804
3791
  onUnmountAutoFocus: i,
3805
3792
  children: /* @__PURE__ */ p.jsx(
@@ -3822,8 +3809,8 @@ var xe = "MenuContent", [$C, Zo] = yt(xe), xc = o.forwardRef(
3822
3809
  loop: n,
3823
3810
  currentTabStopId: E,
3824
3811
  onCurrentTabStopIdChange: T,
3825
- onEntryFocus: S(l, (A) => {
3826
- y.isUsingKeyboardRef.current || A.preventDefault();
3812
+ onEntryFocus: S(l, (I) => {
3813
+ y.isUsingKeyboardRef.current || I.preventDefault();
3827
3814
  }),
3828
3815
  preventScrollOnEntryFocus: !0,
3829
3816
  children: /* @__PURE__ */ p.jsx(
@@ -3836,27 +3823,27 @@ var xe = "MenuContent", [$C, Zo] = yt(xe), xc = o.forwardRef(
3836
3823
  dir: y.dir,
3837
3824
  ...x,
3838
3825
  ...v,
3839
- ref: I,
3826
+ ref: A,
3840
3827
  style: { outline: "none", ...v.style },
3841
- onKeyDown: S(v.onKeyDown, (A) => {
3842
- const fe = A.target.closest("[data-radix-menu-content]") === A.currentTarget, Se = A.ctrlKey || A.altKey || A.metaKey, Ve = A.key.length === 1;
3843
- fe && (A.key === "Tab" && A.preventDefault(), !Se && Ve && V(A.key));
3828
+ onKeyDown: S(v.onKeyDown, (I) => {
3829
+ const fe = I.target.closest("[data-radix-menu-content]") === I.currentTarget, Se = I.ctrlKey || I.altKey || I.metaKey, Ve = I.key.length === 1;
3830
+ fe && (I.key === "Tab" && I.preventDefault(), !Se && Ve && V(I.key));
3844
3831
  const ye = N.current;
3845
- if (A.target !== ye || !NC.includes(A.key)) return;
3846
- A.preventDefault();
3832
+ if (I.target !== ye || !NC.includes(I.key)) return;
3833
+ I.preventDefault();
3847
3834
  const ve = b().filter((j) => !j.disabled).map((j) => j.ref.current);
3848
- vc.includes(A.key) && ve.reverse(), KC(ve);
3835
+ vc.includes(I.key) && ve.reverse(), KC(ve);
3849
3836
  }),
3850
- onBlur: S(e.onBlur, (A) => {
3851
- A.currentTarget.contains(A.target) || (window.clearTimeout(_.current), D.current = "");
3837
+ onBlur: S(e.onBlur, (I) => {
3838
+ I.currentTarget.contains(I.target) || (window.clearTimeout(_.current), D.current = "");
3852
3839
  }),
3853
3840
  onPointerMove: S(
3854
3841
  e.onPointerMove,
3855
- ir((A) => {
3856
- const ne = A.target, fe = P.current !== A.clientX;
3857
- if (A.currentTarget.contains(ne) && fe) {
3858
- const Se = A.clientX > P.current ? "right" : "left";
3859
- H.current = Se, P.current = A.clientX;
3842
+ ir((I) => {
3843
+ const ne = I.target, fe = P.current !== I.clientX;
3844
+ if (I.currentTarget.contains(ne) && fe) {
3845
+ const Se = I.clientX > P.current ? "right" : "left";
3846
+ H.current = Se, P.current = I.clientX;
3860
3847
  }
3861
3848
  })
3862
3849
  )
@@ -4265,7 +4252,9 @@ var nl = "ContextMenuTrigger", ol = o.forwardRef(
4265
4252
  ), f = (m) => {
4266
4253
  c.current = { x: m.clientX, y: m.clientY }, s.onOpenChange(!0);
4267
4254
  };
4268
- return o.useEffect(() => u, [u]), o.useEffect(() => void (n && u()), [n, u]), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
4255
+ return o.useEffect(() => u, [u]), o.useEffect(() => {
4256
+ n && u();
4257
+ }, [n, u]), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
4269
4258
  /* @__PURE__ */ p.jsx(Bc, { ...i, virtualRef: l }),
4270
4259
  /* @__PURE__ */ p.jsx(
4271
4260
  M.span,
@@ -4784,8 +4773,8 @@ var cw = zl, lw = Gl, uw = Wl, dw = Ul, wt = "NavigationMenu", [aa, Kl, fw] = Lt
4784
4773
  } = e, [f, m] = o.useState(null), h = B(t, (_) => m(_)), g = ke(d), v = o.useRef(0), C = o.useRef(0), y = o.useRef(0), [x, w] = o.useState(!0), [b, E] = te({
4785
4774
  prop: n,
4786
4775
  onChange: (_) => {
4787
- const D = _ !== "", L = c > 0;
4788
- D ? (window.clearTimeout(y.current), L && w(!1)) : (window.clearTimeout(y.current), y.current = window.setTimeout(
4776
+ const D = _ !== "", $ = c > 0;
4777
+ D ? (window.clearTimeout(y.current), $ && w(!1)) : (window.clearTimeout(y.current), y.current = window.setTimeout(
4789
4778
  () => w(!0),
4790
4779
  c
4791
4780
  )), a?.(_);
@@ -4799,7 +4788,7 @@ var cw = zl, lw = Gl, uw = Wl, dw = Ul, wt = "NavigationMenu", [aa, Kl, fw] = Lt
4799
4788
  window.clearTimeout(C.current), E(_);
4800
4789
  },
4801
4790
  [E]
4802
- ), I = o.useCallback(
4791
+ ), A = o.useCallback(
4803
4792
  (_) => {
4804
4793
  b === _ ? window.clearTimeout(C.current) : v.current = window.setTimeout(() => {
4805
4794
  window.clearTimeout(C.current), E(_);
@@ -4819,7 +4808,7 @@ var cw = zl, lw = Gl, uw = Wl, dw = Ul, wt = "NavigationMenu", [aa, Kl, fw] = Lt
4819
4808
  orientation: l,
4820
4809
  rootNavigationMenu: f,
4821
4810
  onTriggerEnter: (_) => {
4822
- window.clearTimeout(v.current), x ? I(_) : N(_);
4811
+ window.clearTimeout(v.current), x ? A(_) : N(_);
4823
4812
  },
4824
4813
  onTriggerLeave: () => {
4825
4814
  window.clearTimeout(v.current), T();
@@ -5159,12 +5148,12 @@ var Rw = o.forwardRef((e, t) => {
5159
5148
  const x = o.useMemo(() => {
5160
5149
  const b = v().map((D) => D.value);
5161
5150
  u.dir === "rtl" && b.reverse();
5162
- const E = b.indexOf(u.value), T = b.indexOf(u.previousValue), N = n === u.value, I = T === b.indexOf(n);
5163
- if (!N && !I) return C.current;
5151
+ const E = b.indexOf(u.value), T = b.indexOf(u.previousValue), N = n === u.value, A = T === b.indexOf(n);
5152
+ if (!N && !A) return C.current;
5164
5153
  const _ = (() => {
5165
5154
  if (E !== T) {
5166
5155
  if (N && T !== -1) return E > T ? "from-end" : "from-start";
5167
- if (I && E !== -1) return E > T ? "to-start" : "to-end";
5156
+ if (A && E !== -1) return E > T ? "to-start" : "to-end";
5168
5157
  }
5169
5158
  return null;
5170
5159
  })();
@@ -5199,7 +5188,7 @@ var Rw = o.forwardRef((e, t) => {
5199
5188
  onKeyDown: S(e.onKeyDown, (w) => {
5200
5189
  const b = w.altKey || w.ctrlKey || w.metaKey;
5201
5190
  if (w.key === "Tab" && !b) {
5202
- const T = ho(w.currentTarget), N = document.activeElement, I = T.findIndex((L) => L === N), D = w.shiftKey ? T.slice(0, I).reverse() : T.slice(I + 1, T.length);
5191
+ const T = ho(w.currentTarget), N = document.activeElement, A = T.findIndex(($) => $ === N), D = w.shiftKey ? T.slice(0, A).reverse() : T.slice(A + 1, T.length);
5203
5192
  la(D) ? w.preventDefault() : s.current?.focus();
5204
5193
  }
5205
5194
  }),
@@ -5840,7 +5829,7 @@ var va = "ScrollArea", [Lu] = Y(va), [mx, Ee] = Lu(va), ju = o.forwardRef(
5840
5829
  dir: a,
5841
5830
  scrollHideDelay: s = 600,
5842
5831
  ...i
5843
- } = e, [c, l] = o.useState(null), [d, u] = o.useState(null), [f, m] = o.useState(null), [h, g] = o.useState(null), [v, C] = o.useState(null), [y, x] = o.useState(0), [w, b] = o.useState(0), [E, T] = o.useState(!1), [N, I] = o.useState(!1), _ = B(t, (L) => l(L)), D = ke(a);
5832
+ } = e, [c, l] = o.useState(null), [d, u] = o.useState(null), [f, m] = o.useState(null), [h, g] = o.useState(null), [v, C] = o.useState(null), [y, x] = o.useState(0), [w, b] = o.useState(0), [E, T] = o.useState(!1), [N, A] = o.useState(!1), _ = B(t, ($) => l($)), D = ke(a);
5844
5833
  return /* @__PURE__ */ p.jsx(
5845
5834
  mx,
5846
5835
  {
@@ -5860,7 +5849,7 @@ var va = "ScrollArea", [Lu] = Y(va), [mx, Ee] = Lu(va), ju = o.forwardRef(
5860
5849
  scrollbarY: v,
5861
5850
  onScrollbarYChange: C,
5862
5851
  scrollbarYEnabled: N,
5863
- onScrollbarYEnabledChange: I,
5852
+ onScrollbarYEnabledChange: A,
5864
5853
  onCornerWidthChange: x,
5865
5854
  onCornerHeightChange: b,
5866
5855
  children: /* @__PURE__ */ p.jsx(
@@ -6163,16 +6152,16 @@ var vx = o.forwardRef((e, t) => {
6163
6152
  onResize: f,
6164
6153
  ...m
6165
6154
  } = e, h = Ee(Be, r), [g, v] = o.useState(null), C = B(t, (_) => v(_)), y = o.useRef(null), x = o.useRef(""), w = h.viewport, b = n.content - n.viewport, E = U(u), T = U(l), N = En(f, 10);
6166
- function I(_) {
6155
+ function A(_) {
6167
6156
  if (y.current) {
6168
- const D = _.clientX - y.current.left, L = _.clientY - y.current.top;
6169
- d({ x: D, y: L });
6157
+ const D = _.clientX - y.current.left, $ = _.clientY - y.current.top;
6158
+ d({ x: D, y: $ });
6170
6159
  }
6171
6160
  }
6172
6161
  return o.useEffect(() => {
6173
6162
  const _ = (D) => {
6174
- const L = D.target;
6175
- g?.contains(L) && E(D, b);
6163
+ const $ = D.target;
6164
+ g?.contains($) && E(D, b);
6176
6165
  };
6177
6166
  return document.addEventListener("wheel", _, { passive: !1 }), () => document.removeEventListener("wheel", _, { passive: !1 });
6178
6167
  }, [w, g, b, E]), o.useEffect(T, [n, T]), $t(g, N), $t(h.content, N), /* @__PURE__ */ p.jsx(
@@ -6192,9 +6181,9 @@ var vx = o.forwardRef((e, t) => {
6192
6181
  ref: C,
6193
6182
  style: { position: "absolute", ...m.style },
6194
6183
  onPointerDown: S(e.onPointerDown, (_) => {
6195
- _.button === 0 && (_.target.setPointerCapture(_.pointerId), y.current = g.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), I(_));
6184
+ _.button === 0 && (_.target.setPointerCapture(_.pointerId), y.current = g.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), A(_));
6196
6185
  }),
6197
- onPointerMove: S(e.onPointerMove, I),
6186
+ onPointerMove: S(e.onPointerMove, A),
6198
6187
  onPointerUp: S(e.onPointerUp, (_) => {
6199
6188
  const D = _.target;
6200
6189
  D.hasPointerCapture(_.pointerId) && D.releasePointerCapture(_.pointerId), document.body.style.webkitUserSelect = x.current, h.viewport && (h.viewport.style.scrollBehavior = ""), y.current = null;
@@ -6356,7 +6345,7 @@ var qu = ju, Zu = Bu, Co = Vu, yo = Wu, Sx = Uu, Rx = [" ", "Enter", "ArrowUp",
6356
6345
  disabled: m,
6357
6346
  required: h,
6358
6347
  form: g
6359
- } = e, v = Nn(t), [C, y] = o.useState(null), [x, w] = o.useState(null), [b, E] = o.useState(!1), T = ke(d), [N, I] = te({
6348
+ } = e, v = Nn(t), [C, y] = o.useState(null), [x, w] = o.useState(null), [b, E] = o.useState(!1), T = ke(d), [N, A] = te({
6360
6349
  prop: n,
6361
6350
  defaultProp: a ?? !1,
6362
6351
  onChange: s,
@@ -6366,7 +6355,7 @@ var qu = ju, Zu = Bu, Co = Vu, yo = Wu, Sx = Uu, Rx = [" ", "Enter", "ArrowUp",
6366
6355
  defaultProp: c,
6367
6356
  onChange: l,
6368
6357
  caller: ht
6369
- }), L = o.useRef(null), z = C ? g || !!C.closest("form") : !0, [H, P] = o.useState(/* @__PURE__ */ new Set()), $ = Array.from(H).map((F) => F.props.value).join(";");
6358
+ }), $ = o.useRef(null), z = C ? g || !!C.closest("form") : !0, [H, P] = o.useState(/* @__PURE__ */ new Set()), O = Array.from(H).map((F) => F.props.value).join(";");
6370
6359
  return /* @__PURE__ */ p.jsx(Vt, { ...v, children: /* @__PURE__ */ p.jsxs(
6371
6360
  Tx,
6372
6361
  {
@@ -6382,9 +6371,9 @@ var qu = ju, Zu = Bu, Co = Vu, yo = Wu, Sx = Uu, Rx = [" ", "Enter", "ArrowUp",
6382
6371
  value: _,
6383
6372
  onValueChange: D,
6384
6373
  open: N,
6385
- onOpenChange: I,
6374
+ onOpenChange: A,
6386
6375
  dir: T,
6387
- triggerPointerDownPosRef: L,
6376
+ triggerPointerDownPosRef: $,
6388
6377
  disabled: m,
6389
6378
  children: [
6390
6379
  /* @__PURE__ */ p.jsx(Sn.Provider, { scope: t, children: /* @__PURE__ */ p.jsx(
@@ -6396,8 +6385,8 @@ var qu = ju, Zu = Bu, Co = Vu, yo = Wu, Sx = Uu, Rx = [" ", "Enter", "ArrowUp",
6396
6385
  }, []),
6397
6386
  onNativeOptionRemove: o.useCallback((F) => {
6398
6387
  P((V) => {
6399
- const k = new Set(V);
6400
- return k.delete(F), k;
6388
+ const L = new Set(V);
6389
+ return L.delete(F), L;
6401
6390
  });
6402
6391
  }, []),
6403
6392
  children: r
@@ -6420,7 +6409,7 @@ var qu = ju, Zu = Bu, Co = Vu, yo = Wu, Sx = Uu, Rx = [" ", "Enter", "ArrowUp",
6420
6409
  Array.from(H)
6421
6410
  ]
6422
6411
  },
6423
- $
6412
+ O
6424
6413
  ) : null
6425
6414
  ]
6426
6415
  }
@@ -6535,9 +6524,9 @@ var Re = 10, [sd, st] = Ht(gt), Dx = "SelectContentImpl", $x = /* @__PURE__ */ Q
6535
6524
  avoidCollisions: C,
6536
6525
  //
6537
6526
  ...y
6538
- } = e, x = at(gt, r), [w, b] = o.useState(null), [E, T] = o.useState(null), N = B(t, (j) => b(j)), [I, _] = o.useState(null), [D, L] = o.useState(
6527
+ } = e, x = at(gt, r), [w, b] = o.useState(null), [E, T] = o.useState(null), N = B(t, (j) => b(j)), [A, _] = o.useState(null), [D, $] = o.useState(
6539
6528
  null
6540
- ), z = Rn(r), [H, P] = o.useState(!1), $ = o.useRef(!1);
6529
+ ), z = Rn(r), [H, P] = o.useState(!1), O = o.useRef(!1);
6541
6530
  o.useEffect(() => {
6542
6531
  if (w) return sn(w);
6543
6532
  }, [w]), on();
@@ -6549,47 +6538,47 @@ var Re = 10, [sd, st] = Ht(gt), Dx = "SelectContentImpl", $x = /* @__PURE__ */ Q
6549
6538
  },
6550
6539
  [z, E]
6551
6540
  ), V = o.useCallback(
6552
- () => F([I, w]),
6553
- [F, I, w]
6541
+ () => F([A, w]),
6542
+ [F, A, w]
6554
6543
  );
6555
6544
  o.useEffect(() => {
6556
6545
  H && V();
6557
6546
  }, [H, V]);
6558
- const { onOpenChange: k, triggerPointerDownPosRef: A } = x;
6547
+ const { onOpenChange: L, triggerPointerDownPosRef: I } = x;
6559
6548
  o.useEffect(() => {
6560
6549
  if (w) {
6561
6550
  let j = { x: 0, y: 0 };
6562
6551
  const X = (q) => {
6563
6552
  j = {
6564
- x: Math.abs(Math.round(q.pageX) - (A.current?.x ?? 0)),
6565
- y: Math.abs(Math.round(q.pageY) - (A.current?.y ?? 0))
6553
+ x: Math.abs(Math.round(q.pageX) - (I.current?.x ?? 0)),
6554
+ y: Math.abs(Math.round(q.pageY) - (I.current?.y ?? 0))
6566
6555
  };
6567
6556
  }, pe = (q) => {
6568
- j.x <= 10 && j.y <= 10 ? q.preventDefault() : w.contains(q.target) || k(!1), document.removeEventListener("pointermove", X), A.current = null;
6557
+ j.x <= 10 && j.y <= 10 ? q.preventDefault() : w.contains(q.target) || L(!1), document.removeEventListener("pointermove", X), I.current = null;
6569
6558
  };
6570
- return A.current !== null && (document.addEventListener("pointermove", X), document.addEventListener("pointerup", pe, { capture: !0, once: !0 })), () => {
6559
+ return I.current !== null && (document.addEventListener("pointermove", X), document.addEventListener("pointerup", pe, { capture: !0, once: !0 })), () => {
6571
6560
  document.removeEventListener("pointermove", X), document.removeEventListener("pointerup", pe, { capture: !0 });
6572
6561
  };
6573
6562
  }
6574
- }, [w, k, A]), o.useEffect(() => {
6575
- const j = () => k(!1);
6563
+ }, [w, L, I]), o.useEffect(() => {
6564
+ const j = () => L(!1);
6576
6565
  return window.addEventListener("blur", j), window.addEventListener("resize", j), () => {
6577
6566
  window.removeEventListener("blur", j), window.removeEventListener("resize", j);
6578
6567
  };
6579
- }, [k]);
6568
+ }, [L]);
6580
6569
  const [ne, fe] = Ed((j) => {
6581
6570
  const X = z().filter((Q) => !Q.disabled), pe = X.find((Q) => Q.ref.current === document.activeElement), q = Sd(X, j, pe);
6582
6571
  q && setTimeout(() => q.ref.current.focus());
6583
6572
  }), Se = o.useCallback(
6584
6573
  (j, X, pe) => {
6585
- const q = !$.current && !pe;
6586
- (x.value !== void 0 && x.value === X || q) && (_(j), q && ($.current = !0));
6574
+ const q = !O.current && !pe;
6575
+ (x.value !== void 0 && x.value === X || q) && (_(j), q && (O.current = !0));
6587
6576
  },
6588
6577
  [x.value]
6589
6578
  ), Ve = o.useCallback(() => w?.focus(), [w]), ye = o.useCallback(
6590
6579
  (j, X, pe) => {
6591
- const q = !$.current && !pe;
6592
- (x.value !== void 0 && x.value === X || q) && L(j);
6580
+ const q = !O.current && !pe;
6581
+ (x.value !== void 0 && x.value === X || q) && $(j);
6593
6582
  },
6594
6583
  [x.value]
6595
6584
  ), ze = n === "popper" ? wo : cd, ve = ze === wo ? {
@@ -6612,7 +6601,7 @@ var Re = 10, [sd, st] = Ht(gt), Dx = "SelectContentImpl", $x = /* @__PURE__ */ Q
6612
6601
  viewport: E,
6613
6602
  onViewportChange: T,
6614
6603
  itemRefCallback: Se,
6615
- selectedItem: I,
6604
+ selectedItem: A,
6616
6605
  onItemLeave: Ve,
6617
6606
  itemTextRefCallback: ye,
6618
6607
  focusSelectedItem: V,
@@ -6685,9 +6674,9 @@ id.displayName = Dx;
6685
6674
  var Ox = "SelectItemAlignedPosition", cd = o.forwardRef((e, t) => {
6686
6675
  const { __scopeSelect: r, onPlaced: n, ...a } = e, s = at(gt, r), i = st(gt, r), [c, l] = o.useState(null), [d, u] = o.useState(null), f = B(t, (N) => u(N)), m = Rn(r), h = o.useRef(!1), g = o.useRef(!0), { viewport: v, selectedItem: C, selectedItemText: y, focusSelectedItem: x } = i, w = o.useCallback(() => {
6687
6676
  if (s.trigger && s.valueNode && c && d && v && C && y) {
6688
- const N = s.trigger.getBoundingClientRect(), I = d.getBoundingClientRect(), _ = s.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
6677
+ const N = s.trigger.getBoundingClientRect(), A = d.getBoundingClientRect(), _ = s.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
6689
6678
  if (s.dir !== "rtl") {
6690
- const Q = D.left - I.left, ae = _.left - Q, we = N.left - ae, ct = N.width + we, jn = Math.max(ct, I.width), Fn = window.innerWidth - Re, Bn = cr(ae, [
6679
+ const Q = D.left - A.left, ae = _.left - Q, we = N.left - ae, ct = N.width + we, jn = Math.max(ct, A.width), Fn = window.innerWidth - Re, Bn = cr(ae, [
6691
6680
  Re,
6692
6681
  // Prevents the content from going off the starting edge of the
6693
6682
  // viewport. It may still go off the ending edge, but this can be
@@ -6698,15 +6687,15 @@ var Ox = "SelectItemAlignedPosition", cd = o.forwardRef((e, t) => {
6698
6687
  ]);
6699
6688
  c.style.minWidth = ct + "px", c.style.left = Bn + "px";
6700
6689
  } else {
6701
- const Q = I.right - D.right, ae = window.innerWidth - _.right - Q, we = window.innerWidth - N.right - ae, ct = N.width + we, jn = Math.max(ct, I.width), Fn = window.innerWidth - Re, Bn = cr(ae, [
6690
+ const Q = A.right - D.right, ae = window.innerWidth - _.right - Q, we = window.innerWidth - N.right - ae, ct = N.width + we, jn = Math.max(ct, A.width), Fn = window.innerWidth - Re, Bn = cr(ae, [
6702
6691
  Re,
6703
6692
  Math.max(Re, Fn - jn)
6704
6693
  ]);
6705
6694
  c.style.minWidth = ct + "px", c.style.right = Bn + "px";
6706
6695
  }
6707
- const L = m(), z = window.innerHeight - Re * 2, H = v.scrollHeight, P = window.getComputedStyle(d), $ = parseInt(P.borderTopWidth, 10), F = parseInt(P.paddingTop, 10), V = parseInt(P.borderBottomWidth, 10), k = parseInt(P.paddingBottom, 10), A = $ + F + H + k + V, ne = Math.min(C.offsetHeight * 5, A), fe = window.getComputedStyle(v), Se = parseInt(fe.paddingTop, 10), Ve = parseInt(fe.paddingBottom, 10), ye = N.top + N.height / 2 - Re, ze = z - ye, ve = C.offsetHeight / 2, j = C.offsetTop + ve, X = $ + F + j, pe = A - X;
6696
+ const $ = m(), z = window.innerHeight - Re * 2, H = v.scrollHeight, P = window.getComputedStyle(d), O = parseInt(P.borderTopWidth, 10), F = parseInt(P.paddingTop, 10), V = parseInt(P.borderBottomWidth, 10), L = parseInt(P.paddingBottom, 10), I = O + F + H + L + V, ne = Math.min(C.offsetHeight * 5, I), fe = window.getComputedStyle(v), Se = parseInt(fe.paddingTop, 10), Ve = parseInt(fe.paddingBottom, 10), ye = N.top + N.height / 2 - Re, ze = z - ye, ve = C.offsetHeight / 2, j = C.offsetTop + ve, X = O + F + j, pe = I - X;
6708
6697
  if (X <= ye) {
6709
- const Q = L.length > 0 && C === L[L.length - 1].ref.current;
6698
+ const Q = $.length > 0 && C === $[$.length - 1].ref.current;
6710
6699
  c.style.bottom = "0px";
6711
6700
  const ae = d.clientHeight - v.offsetTop - v.offsetHeight, we = Math.max(
6712
6701
  ze,
@@ -6715,11 +6704,11 @@ var Ox = "SelectItemAlignedPosition", cd = o.forwardRef((e, t) => {
6715
6704
  ), ct = X + we;
6716
6705
  c.style.height = ct + "px";
6717
6706
  } else {
6718
- const Q = L.length > 0 && C === L[0].ref.current;
6707
+ const Q = $.length > 0 && C === $[0].ref.current;
6719
6708
  c.style.top = "0px";
6720
6709
  const we = Math.max(
6721
6710
  ye,
6722
- $ + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
6711
+ O + v.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
6723
6712
  (Q ? Se : 0) + ve
6724
6713
  ) + pe;
6725
6714
  c.style.height = we + "px", v.scrollTop = X - ye + v.offsetTop;
@@ -7156,29 +7145,29 @@ var Kx = Qu, Yx = ed, Xx = rd, qx = nd, Zx = od, Qx = ad, Jx = ld, eb = dd, tb =
7156
7145
  } = e, C = o.useRef(/* @__PURE__ */ new Set()), y = o.useRef(0), w = i === "horizontal" ? lb : ub, [b = [], E] = te({
7157
7146
  prop: u,
7158
7147
  defaultProp: d,
7159
- onChange: (L) => {
7160
- [...C.current][y.current]?.focus(), f(L);
7148
+ onChange: ($) => {
7149
+ [...C.current][y.current]?.focus(), f($);
7161
7150
  }
7162
7151
  }), T = o.useRef(b);
7163
- function N(L) {
7164
- const z = vb(b, L);
7165
- D(L, z);
7152
+ function N($) {
7153
+ const z = vb(b, $);
7154
+ D($, z);
7166
7155
  }
7167
- function I(L) {
7168
- D(L, y.current);
7156
+ function A($) {
7157
+ D($, y.current);
7169
7158
  }
7170
7159
  function _() {
7171
- const L = T.current[y.current];
7172
- b[y.current] !== L && m(b);
7160
+ const $ = T.current[y.current];
7161
+ b[y.current] !== $ && m(b);
7173
7162
  }
7174
- function D(L, z, { commit: H } = { commit: !1 }) {
7175
- const P = yb(s), $ = wb(Math.round((L - n) / s) * s + n, P), F = cr($, [n, a]);
7163
+ function D($, z, { commit: H } = { commit: !1 }) {
7164
+ const P = yb(s), O = wb(Math.round(($ - n) / s) * s + n, P), F = cr(O, [n, a]);
7176
7165
  E((V = []) => {
7177
- const k = pb(V, F, z);
7178
- if (Cb(k, l * s)) {
7179
- y.current = k.indexOf(F);
7180
- const A = String(k) !== String(V);
7181
- return A && H && m(k), A ? k : V;
7166
+ const L = pb(V, F, z);
7167
+ if (Cb(L, l * s)) {
7168
+ y.current = L.indexOf(F);
7169
+ const I = String(L) !== String(V);
7170
+ return I && H && m(L), I ? L : V;
7182
7171
  } else
7183
7172
  return V;
7184
7173
  });
@@ -7210,14 +7199,14 @@ var Kx = Qu, Yx = ed, Xx = rd, qx = nd, Zx = od, Qx = ad, Jx = ld, eb = dd, tb =
7210
7199
  max: a,
7211
7200
  inverted: h,
7212
7201
  onSlideStart: c ? void 0 : N,
7213
- onSlideMove: c ? void 0 : I,
7202
+ onSlideMove: c ? void 0 : A,
7214
7203
  onSlideEnd: c ? void 0 : _,
7215
7204
  onHomeKeyDown: () => !c && D(n, 0, { commit: !0 }),
7216
7205
  onEndKeyDown: () => !c && D(a, b.length - 1, { commit: !0 }),
7217
- onStepKeyDown: ({ event: L, direction: z }) => {
7206
+ onStepKeyDown: ({ event: $, direction: z }) => {
7218
7207
  if (!c) {
7219
- const $ = Rd.includes(L.key) || L.shiftKey && Nd.includes(L.key) ? 10 : 1, F = y.current, V = b[F], k = s * $ * z;
7220
- D(V + k, F, { commit: !0 });
7208
+ const O = Rd.includes($.key) || $.shiftKey && Nd.includes($.key) ? 10 : 1, F = y.current, V = b[F], L = s * O * z;
7209
+ D(V + L, F, { commit: !0 });
7221
7210
  }
7222
7211
  }
7223
7212
  }
@@ -8259,11 +8248,6 @@ function nE(e) {
8259
8248
  var oE = uf, aE = df, sE = ff, iE = pf, cE = mf, lE = gf;
8260
8249
  const uE = Um;
8261
8250
  var to = { exports: {} };
8262
- /*!
8263
- Copyright (c) 2018 Jed Watson.
8264
- Licensed under the MIT License (MIT), see
8265
- http://jedwatson.github.io/classnames
8266
- */
8267
8251
  var bs;
8268
8252
  function dE() {
8269
8253
  return bs || (bs = 1, (function(e) {
@@ -8363,7 +8347,7 @@ function dr(...e) {
8363
8347
  function EE(...e) {
8364
8348
  return Object.assign({}, ...e);
8365
8349
  }
8366
- function O(e, ...t) {
8350
+ function k(e, ...t) {
8367
8351
  let r, n;
8368
8352
  const a = { ...e }, s = EE(...t);
8369
8353
  for (const i in s) {
@@ -8392,12 +8376,12 @@ function O(e, ...t) {
8392
8376
  return a.className = R(r, e.className), a.style = dr(n, e.style), a;
8393
8377
  }
8394
8378
  const lt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], G = { m: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: lt, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, $n = o.forwardRef((e, t) => {
8395
- const { children: r, className: n, asChild: a, as: s = "h1", color: i, ...c } = O(e, xE, G);
8379
+ const { children: r, className: n, asChild: a, as: s = "h1", color: i, ...c } = k(e, xE, G);
8396
8380
  return o.createElement(ie, { "data-accent-color": i, ...c, ref: t, className: R("rt-Heading", n) }, a ? r : o.createElement(s, null, r));
8397
8381
  });
8398
8382
  $n.displayName = "Heading";
8399
8383
  const SE = ["span", "div", "label", "p"], RE = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], NE = { as: { type: "enum", values: SE, default: "span" }, ...K, size: { type: "enum", className: "rt-r-size", values: RE, responsive: !0 }, ...Dn, ...yf, ...An, ...bt, ...xt, ...re, ...se }, oe = o.forwardRef((e, t) => {
8400
- const { children: r, className: n, asChild: a, as: s = "span", color: i, ...c } = O(e, NE, G);
8384
+ const { children: r, className: n, asChild: a, as: s = "span", color: i, ...c } = k(e, NE, G);
8401
8385
  return o.createElement(ie, { "data-accent-color": i, ...c, ref: t, className: R("rt-Text", n) }, a ? r : o.createElement(s, null, r));
8402
8386
  });
8403
8387
  oe.displayName = "Text";
@@ -8474,7 +8458,7 @@ Sf.displayName = "AlertDialog.Root";
8474
8458
  const Rf = o.forwardRef(({ children: e, ...t }, r) => o.createElement(Nh, { ...t, ref: r, asChild: !0 }, _e(e)));
8475
8459
  Rf.displayName = "AlertDialog.Trigger";
8476
8460
  const Nf = o.forwardRef(({ align: e, ...t }, r) => {
8477
- const { align: n, ...a } = Cf, { className: s } = O({ align: e }, { align: n }), { className: i, forceMount: c, container: l, ...d } = O(t, a);
8461
+ const { align: n, ...a } = Cf, { className: s } = k({ align: e }, { align: n }), { className: i, forceMount: c, container: l, ...d } = k(t, a);
8478
8462
  return o.createElement(Ph, { container: l, forceMount: c }, o.createElement(me, { asChild: !0 }, o.createElement(Th, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, o.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, o.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${s}` }, o.createElement(Mh, { ...d, ref: r, className: R("rt-BaseDialogContent", "rt-AlertDialogContent", i) }))))));
8479
8463
  });
8480
8464
  Nf.displayName = "AlertDialog.Content";
@@ -8503,7 +8487,7 @@ function kn(e, t) {
8503
8487
  return o.cloneElement(a, { children: typeof t == "function" ? t(a.props.children) : t });
8504
8488
  }
8505
8489
  const AE = o.forwardRef((e, t) => {
8506
- const { asChild: r, children: n, className: a, style: s, color: i, radius: c, ...l } = O(e, IE, G);
8490
+ const { asChild: r, children: n, className: a, style: s, color: i, radius: c, ...l } = k(e, IE, G);
8507
8491
  return o.createElement(Gh, { "data-accent-color": i, "data-radius": c, className: R("rt-reset", "rt-AvatarRoot", a), style: s, asChild: r }, kn({ asChild: r, children: n }, o.createElement(If, { ref: t, ...l })));
8508
8492
  });
8509
8493
  AE.displayName = "Avatar";
@@ -8515,7 +8499,7 @@ const If = o.forwardRef(({ fallback: e, ...t }, r) => {
8515
8499
  });
8516
8500
  If.displayName = "AvatarImpl";
8517
8501
  const DE = ["1", "2", "3"], $E = ["solid", "soft", "surface", "outline"], OE = { ...K, size: { type: "enum", className: "rt-r-size", values: DE, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $E, default: "soft" }, ...Ut, ...se, ...Me }, kE = o.forwardRef((e, t) => {
8518
- const { asChild: r, className: n, color: a, radius: s, ...i } = O(e, OE, G), c = r ? ie : "span";
8502
+ const { asChild: r, className: n, color: a, radius: s, ...i } = k(e, OE, G), c = r ? ie : "span";
8519
8503
  return o.createElement(c, { "data-accent-color": a, "data-radius": s, ...i, ref: t, className: R("rt-reset", "rt-Badge", n) });
8520
8504
  });
8521
8505
  kE.displayName = "Badge";
@@ -8525,7 +8509,7 @@ const LE = o.forwardRef((e, t) => {
8525
8509
  });
8526
8510
  LE.displayName = "Blockquote";
8527
8511
  const Pa = ie, BS = fr, jE = ["div", "span"], FE = ["none", "inline", "inline-block", "block", "contents"], BE = { as: { type: "enum", values: jE, default: "div" }, ...K, display: { type: "enum", className: "rt-r-display", values: FE, responsive: !0 } }, ut = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], rr = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: ut, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: ut, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: ut, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: ut, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: ut, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: ut, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: ut, responsive: !0 } }, ro = ["visible", "hidden", "clip", "scroll", "auto"], VE = ["static", "relative", "absolute", "fixed", "sticky"], Yt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], zE = ["0", "1"], HE = ["0", "1"], Pr = { ...rr, ...ce, ...Wt, position: { type: "enum", className: "rt-r-position", values: VE, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: Yt, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: Yt, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: Yt, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: Yt, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: Yt, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: ro, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: ro, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: ro, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: zE, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: HE, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, Qt = o.forwardRef((e, t) => {
8528
- const { className: r, asChild: n, as: a = "div", ...s } = O(e, BE, Pr, G);
8512
+ const { className: r, asChild: n, as: a = "div", ...s } = k(e, BE, Pr, G);
8529
8513
  return o.createElement(n ? Pa : a, { ...s, ref: t, className: R("rt-Box", r) });
8530
8514
  });
8531
8515
  Qt.displayName = "Box";
@@ -8534,12 +8518,12 @@ function QE(e) {
8534
8518
  return e === "between" ? "space-between" : e;
8535
8519
  }
8536
8520
  const he = o.forwardRef((e, t) => {
8537
- const { className: r, asChild: n, as: a = "div", ...s } = O(e, Df, Pr, G);
8521
+ const { className: r, asChild: n, as: a = "div", ...s } = k(e, Df, Pr, G);
8538
8522
  return o.createElement(n ? Pa : a, { ...s, ref: t, className: R("rt-Flex", r) });
8539
8523
  });
8540
8524
  he.displayName = "Flex";
8541
8525
  const JE = ["1", "2", "3"], e0 = { size: { type: "enum", className: "rt-r-size", values: JE, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, $f = o.forwardRef((e, t) => {
8542
- const { className: r, children: n, loading: a, ...s } = O(e, e0, G);
8526
+ const { className: r, children: n, loading: a, ...s } = k(e, e0, G);
8543
8527
  if (!a) return n;
8544
8528
  const i = o.createElement("span", { ...s, ref: t, className: R("rt-Spinner", r) }, o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }), o.createElement("span", { className: "rt-SpinnerLeaf" }));
8545
8529
  return n === void 0 ? i : o.createElement(he, { asChild: !0, position: "relative", align: "center", justify: "center" }, o.createElement("span", null, o.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, n), o.createElement(he, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, o.createElement("span", null, i))));
@@ -8564,14 +8548,14 @@ function n0(e) {
8564
8548
  }
8565
8549
  }
8566
8550
  const Ta = o.forwardRef((e, t) => {
8567
- const { size: r = Ss.size.default } = e, { className: n, children: a, asChild: s, color: i, radius: c, disabled: l = e.loading, ...d } = O(e, Ss, G), u = s ? ie : "button";
8551
+ const { size: r = Ss.size.default } = e, { className: n, children: a, asChild: s, color: i, radius: c, disabled: l = e.loading, ...d } = k(e, Ss, G), u = s ? ie : "button";
8568
8552
  return o.createElement(u, { "data-disabled": l || void 0, "data-accent-color": i, "data-radius": c, ...d, ref: t, className: R("rt-reset", "rt-BaseButton", n), disabled: l }, e.loading ? o.createElement(o.Fragment, null, o.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), o.createElement(t0, null, a), o.createElement(he, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, o.createElement("span", null, o.createElement($f, { size: Of(r, n0) })))) : a);
8569
8553
  });
8570
8554
  Ta.displayName = "BaseButton";
8571
8555
  const kf = o.forwardRef(({ className: e, ...t }, r) => o.createElement(Ta, { ...t, ref: r, className: R("rt-Button", e) }));
8572
8556
  kf.displayName = "Button";
8573
8557
  const o0 = ["1", "2", "3"], a0 = ["soft", "surface", "outline"], Rs = { ...K, size: { type: "enum", className: "rt-r-size", values: o0, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: a0, default: "soft" }, ...Ut, ...se }, Lf = o.createContext({}), jf = o.forwardRef((e, t) => {
8574
- const { size: r = Rs.size.default } = e, { asChild: n, children: a, className: s, color: i, ...c } = O(e, Rs, G), l = n ? ie : "div";
8558
+ const { size: r = Rs.size.default } = e, { asChild: n, children: a, className: s, color: i, ...c } = k(e, Rs, G), l = n ? ie : "div";
8575
8559
  return o.createElement(l, { "data-accent-color": i, ...c, className: R("rt-CalloutRoot", s), ref: t }, o.createElement(Lf.Provider, { value: o.useMemo(() => ({ size: r }), [r]) }, a));
8576
8560
  });
8577
8561
  jf.displayName = "Callout.Root";
@@ -8588,7 +8572,7 @@ const VS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8588
8572
  Root: jf,
8589
8573
  Text: Bf
8590
8574
  }, Symbol.toStringTag, { value: "Module" })), s0 = ["1", "2", "3", "4", "5"], i0 = ["surface", "classic", "ghost"], c0 = { ...K, size: { type: "enum", className: "rt-r-size", values: s0, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: i0, default: "surface" } }, l0 = o.forwardRef((e, t) => {
8591
- const { asChild: r, className: n, ...a } = O(e, c0, G), s = r ? ie : "div";
8575
+ const { asChild: r, className: n, ...a } = k(e, c0, G), s = r ? ie : "div";
8592
8576
  return o.createElement(s, { ref: t, ...a, className: R("rt-reset", "rt-BaseCard", "rt-Card", n) });
8593
8577
  });
8594
8578
  l0.displayName = "Card";
@@ -8620,7 +8604,7 @@ function b0(e) {
8620
8604
  return e === "between" ? "space-between" : e;
8621
8605
  }
8622
8606
  const E0 = ["1", "2", "3"], S0 = ["surface", "classic"], R0 = { ...K, size: { type: "enum", className: "rt-r-size", values: E0, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: S0, default: "surface" }, ...re, ...se, columns: { ...kt.columns, default: "repeat(auto-fit, minmax(200px, 1fr))" }, gap: { ...kt.gap, default: "4" } }, N0 = ["1", "2", "3"], P0 = ["classic", "surface", "soft"], Ia = { size: { type: "enum", className: "rt-r-size", values: N0, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: P0, default: "surface" }, ...re, ...se }, He = o.forwardRef((e, t) => {
8623
- const { className: r, asChild: n, as: a = "div", ...s } = O(e, kt, Pr, G);
8607
+ const { className: r, asChild: n, as: a = "div", ...s } = k(e, kt, Pr, G);
8624
8608
  return o.createElement(n ? Pa : a, { ...s, ref: t, className: R("rt-Grid", r) });
8625
8609
  });
8626
8610
  He.displayName = "Grid";
@@ -8633,12 +8617,12 @@ Aa.displayName = "ChevronDownIcon";
8633
8617
  const Da = W.forwardRef((e, t) => W.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: t }, W.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
8634
8618
  Da.displayName = "ThickChevronRightIcon";
8635
8619
  const Zf = "CheckboxCards", [T0] = Y(Zf, [Ln]), Qf = Ln(), [M0, _0] = T0(Zf), Jf = o.forwardRef((e, t) => {
8636
- const { __scopeCheckboxCards: r, className: n, color: a, ...s } = O(e, R0, G), i = Qf(r);
8620
+ const { __scopeCheckboxCards: r, className: n, color: a, ...s } = k(e, R0, G), i = Qf(r);
8637
8621
  return o.createElement(M0, { scope: r, size: e.size, highContrast: e.highContrast }, o.createElement(He, { asChild: !0 }, o.createElement(Kf, { ...i, "data-accent-color": a, ...s, ref: t, className: R("rt-CheckboxCardsRoot", n) })));
8638
8622
  });
8639
8623
  Jf.displayName = "CheckboxCards.Root";
8640
8624
  const ep = o.forwardRef(({ __scopeCheckboxCards: e, children: t, className: r, style: n, ...a }, s) => {
8641
- const i = _0("CheckboxCardsItem", e), c = Qf(e), { className: l } = O({ size: i?.size, variant: "surface", highContrast: i?.highContrast }, Ia);
8625
+ const i = _0("CheckboxCardsItem", e), c = Qf(e), { className: l } = k({ size: i?.size, variant: "surface", highContrast: i?.highContrast }, Ia);
8642
8626
  return o.createElement("label", { className: R("rt-BaseCard", "rt-CheckboxCardsItem", r), style: n }, t, o.createElement(Yf, { ...c, ...a, ref: s, className: R("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxCardCheckbox", l) }, o.createElement(Xf, { ...c, asChild: !0, className: "rt-BaseCheckboxIndicator" }, o.createElement(Ke, null))));
8643
8627
  });
8644
8628
  ep.displayName = "CheckboxCards.Item";
@@ -8647,7 +8631,7 @@ const zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8647
8631
  Item: ep,
8648
8632
  Root: Jf
8649
8633
  }, Symbol.toStringTag, { value: "Module" })), Jt = { ...K, ...Ia }, tp = "CheckboxGroup", [I0] = Y(tp, [Ln]), rp = Ln(), [A0, np] = I0(tp), op = o.forwardRef(({ color: e = Jt.color.default, highContrast: t = Jt.highContrast.default, size: r = Jt.size.default, variant: n = Jt.variant.default, ...a }, s) => {
8650
- const { __scopeCheckboxGroup: i, className: c, ...l } = O(a, G), d = rp(i);
8634
+ const { __scopeCheckboxGroup: i, className: c, ...l } = k(a, G), d = rp(i);
8651
8635
  return o.createElement(A0, { scope: i, color: e, size: r, highContrast: t, variant: n }, o.createElement(Kf, { ...d, ...l, ref: s, className: R("rt-CheckboxGroupRoot", c) }));
8652
8636
  });
8653
8637
  op.displayName = "CheckboxGroup.Root";
@@ -8657,7 +8641,7 @@ const ap = o.forwardRef((e, t) => {
8657
8641
  });
8658
8642
  ap.displayName = "CheckboxGroup.Item";
8659
8643
  const _o = o.forwardRef(({ __scopeCheckboxGroup: e, ...t }, r) => {
8660
- const n = np("CheckboxGroupItemCheckbox", e), a = rp(e), { color: s, className: i } = O({ ...t, ...n }, Jt, G);
8644
+ const n = np("CheckboxGroupItemCheckbox", e), a = rp(e), { color: s, className: i } = k({ ...t, ...n }, Jt, G);
8661
8645
  return o.createElement(Yf, { ...a, "data-accent-color": s, ...t, ref: r, className: R("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxGroupItemCheckbox", i) }, o.createElement(Xf, { ...a, asChild: !0, className: "rt-BaseCheckboxIndicator" }, o.createElement(Ke, null)));
8662
8646
  });
8663
8647
  _o.displayName = "CheckboxGroup.ItemCheckbox";
@@ -8666,12 +8650,12 @@ const HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8666
8650
  Item: ap,
8667
8651
  Root: op
8668
8652
  }, Symbol.toStringTag, { value: "Module" })), D0 = o.forwardRef((e, t) => {
8669
- const { className: r, color: n, checked: a, defaultChecked: s, onCheckedChange: i, ...c } = O(e, Ia, G), [l, d] = te({ prop: a, defaultProp: s, onChange: i });
8653
+ const { className: r, color: n, checked: a, defaultChecked: s, onCheckedChange: i, ...c } = k(e, Ia, G), [l, d] = te({ prop: a, defaultProp: s, onChange: i });
8670
8654
  return o.createElement(Fo, { "data-accent-color": n, ...c, defaultChecked: s, checked: l, onCheckedChange: d, asChild: !1, ref: t, className: R("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", r) }, o.createElement(Bo, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, o.createElement(l === "indeterminate" ? qf : Ke, null)));
8671
8655
  });
8672
8656
  D0.displayName = "Checkbox";
8673
8657
  const $0 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], O0 = ["solid", "soft", "outline", "ghost"], k0 = { ...K, size: { type: "enum", className: "rt-r-size", values: $0, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: O0, default: "soft" }, ...Dn, ...Ut, ...se, ...bt, ...xt }, L0 = o.forwardRef((e, t) => {
8674
- const { asChild: r, className: n, color: a, ...s } = O(e, k0, G), i = e.variant === "ghost" ? a || void 0 : a, c = r ? ie : "code";
8658
+ const { asChild: r, className: n, color: a, ...s } = k(e, k0, G), i = e.variant === "ghost" ? a || void 0 : a, c = r ? ie : "code";
8675
8659
  return o.createElement(c, { "data-accent-color": i, ...s, ref: t, className: R("rt-reset", "rt-Code", n) });
8676
8660
  });
8677
8661
  L0.displayName = "Code";
@@ -8683,7 +8667,7 @@ function H0(e) {
8683
8667
  return e === "left" ? "start" : e === "right" ? "end" : e;
8684
8668
  }
8685
8669
  const G0 = o.forwardRef(({ width: e, minWidth: t, maxWidth: r, height: n, minHeight: a, maxHeight: s, ...i }, c) => {
8686
- const { asChild: l, children: d, className: u, ...f } = O(i, V0, Pr, G), { className: m, style: h } = O({ width: e, minWidth: t, maxWidth: r, height: n, minHeight: a, maxHeight: s }, ce, Wt), g = l ? ie : "div";
8670
+ const { asChild: l, children: d, className: u, ...f } = k(i, V0, Pr, G), { className: m, style: h } = k({ width: e, minWidth: t, maxWidth: r, height: n, minHeight: a, maxHeight: s }, ce, Wt), g = l ? ie : "div";
8687
8671
  return o.createElement(g, { ...f, ref: c, className: R("rt-Container", u) }, kn({ asChild: l, children: d }, (v) => o.createElement("div", { className: R("rt-ContainerInner", m), style: h }, v)));
8688
8672
  });
8689
8673
  G0.displayName = "Container";
@@ -8707,7 +8691,7 @@ lp.displayName = "ContextMenu.Root";
8707
8691
  const up = o.forwardRef(({ children: e, ...t }, r) => o.createElement(my, { ...t, ref: r, asChild: !0 }, _e(e)));
8708
8692
  up.displayName = "ContextMenu.Trigger";
8709
8693
  const dp = o.createContext({}), fp = o.forwardRef((e, t) => {
8710
- const r = On(), { size: n = De.size.default, variant: a = De.variant.default, highContrast: s = De.highContrast.default } = e, { className: i, children: c, color: l, container: d, forceMount: u, ...f } = O(e, De), m = l || r.accentColor;
8694
+ const r = On(), { size: n = De.size.default, variant: a = De.variant.default, highContrast: s = De.highContrast.default } = e, { className: i, children: c, color: l, container: d, forceMount: u, ...f } = k(e, De), m = l || r.accentColor;
8711
8695
  return o.createElement(wl, { container: d, forceMount: u }, o.createElement(me, { asChild: !0 }, o.createElement(vy, { "data-accent-color": m, alignOffset: -Number(n) * 4, collisionPadding: 10, ...f, asChild: !1, ref: t, className: R("rt-PopperContent", "rt-BaseMenuContent", "rt-ContextMenuContent", i) }, o.createElement(Et, { type: "auto" }, o.createElement("div", { className: R("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, o.createElement(dp.Provider, { value: o.useMemo(() => ({ size: n, variant: a, color: m, highContrast: s }), [n, a, m, s]) }, c))))));
8712
8696
  });
8713
8697
  fp.displayName = "ContextMenu.Content";
@@ -8740,7 +8724,7 @@ const wp = o.forwardRef((e, t) => {
8740
8724
  });
8741
8725
  wp.displayName = "ContextMenu.SubTrigger";
8742
8726
  const xp = o.forwardRef((e, t) => {
8743
- const { size: r, variant: n, color: a, highContrast: s } = o.useContext(dp), { className: i, children: c, container: l, forceMount: d, ...u } = O({ size: r, variant: n, color: a, highContrast: s, ...e }, De);
8727
+ const { size: r, variant: n, color: a, highContrast: s } = o.useContext(dp), { className: i, children: c, container: l, forceMount: d, ...u } = k({ size: r, variant: n, color: a, highContrast: s, ...e }, De);
8744
8728
  return o.createElement(wl, { container: l, forceMount: d }, o.createElement(me, { asChild: !0 }, o.createElement(Ry, { "data-accent-color": a, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...u, asChild: !1, ref: t, className: R("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-ContextMenuContent", "rt-ContextMenuSubContent", i) }, o.createElement(Et, { type: "auto" }, o.createElement("div", { className: R("rt-BaseMenuViewport", "rt-ContextMenuViewport") }, c)))));
8745
8729
  });
8746
8730
  xp.displayName = "ContextMenu.SubContent";
@@ -8762,17 +8746,17 @@ const GS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8762
8746
  SubTrigger: wp,
8763
8747
  Trigger: up
8764
8748
  }, Symbol.toStringTag, { value: "Module" })), q0 = ["start", "center", "end", "baseline", "stretch"], Z0 = ["horizontal", "vertical"], Q0 = ["1", "2", "3"], J0 = { orientation: { type: "enum", className: "rt-r-orientation", values: Z0, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: Q0, default: "2", responsive: !0 }, trim: { ...An.trim, className: "rt-r-trim" } }, e1 = { align: { type: "enum", className: "rt-r-ai", values: q0, responsive: !0 } }, t1 = { ...ce, ...re, ...se }, Ep = o.forwardRef((e, t) => {
8765
- const { className: r, ...n } = O(e, J0, G);
8749
+ const { className: r, ...n } = k(e, J0, G);
8766
8750
  return o.createElement(oe, { asChild: !0 }, o.createElement("dl", { ...n, ref: t, className: R("rt-DataListRoot", r) }));
8767
8751
  });
8768
8752
  Ep.displayName = "DataList.Root";
8769
8753
  const Sp = o.forwardRef((e, t) => {
8770
- const { className: r, ...n } = O(e, e1);
8754
+ const { className: r, ...n } = k(e, e1);
8771
8755
  return o.createElement("div", { ...n, ref: t, className: R("rt-DataListItem", r) });
8772
8756
  });
8773
8757
  Sp.displayName = "DataList.Item";
8774
8758
  const Rp = o.forwardRef((e, t) => {
8775
- const { className: r, color: n, ...a } = O(e, t1);
8759
+ const { className: r, color: n, ...a } = k(e, t1);
8776
8760
  return o.createElement("dt", { ...a, "data-accent-color": n, ref: t, className: R("rt-DataListLabel", r) });
8777
8761
  });
8778
8762
  Rp.displayName = "DataList.Label";
@@ -8789,7 +8773,7 @@ Pp.displayName = "Dialog.Root";
8789
8773
  const Tp = o.forwardRef(({ children: e, ...t }, r) => o.createElement(ui, { ...t, ref: r, asChild: !0 }, _e(e)));
8790
8774
  Tp.displayName = "Dialog.Trigger";
8791
8775
  const Mp = o.forwardRef(({ align: e, ...t }, r) => {
8792
- const { align: n, ...a } = Cf, { className: s } = O({ align: e }, { align: n }), { className: i, forceMount: c, container: l, ...d } = O(t, a);
8776
+ const { align: n, ...a } = Cf, { className: s } = k({ align: e }, { align: n }), { className: i, forceMount: c, container: l, ...d } = k(t, a);
8793
8777
  return o.createElement(di, { container: l, forceMount: c }, o.createElement(me, { asChild: !0 }, o.createElement(fi, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, o.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, o.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${s}` }, o.createElement(pi, { ...d, ref: r, className: R("rt-BaseDialogContent", "rt-DialogContent", i) }))))));
8794
8778
  });
8795
8779
  Mp.displayName = "Dialog.Content";
@@ -8812,7 +8796,7 @@ Dp.displayName = "DropdownMenu.Root";
8812
8796
  const $p = o.forwardRef(({ children: e, ...t }, r) => o.createElement(Hy, { ...t, ref: r, asChild: !0 }, _e(e)));
8813
8797
  $p.displayName = "DropdownMenu.Trigger";
8814
8798
  const Op = o.createContext({}), kp = o.forwardRef((e, t) => {
8815
- const r = On(), { size: n = De.size.default, variant: a = De.variant.default, highContrast: s = De.highContrast.default } = e, { className: i, children: c, color: l, container: d, forceMount: u, ...f } = O(e, De), m = l || r.accentColor;
8799
+ const r = On(), { size: n = De.size.default, variant: a = De.variant.default, highContrast: s = De.highContrast.default } = e, { className: i, children: c, color: l, container: d, forceMount: u, ...f } = k(e, De), m = l || r.accentColor;
8816
8800
  return o.createElement(Fl, { container: d, forceMount: u }, o.createElement(me, { asChild: !0 }, o.createElement(Gy, { "data-accent-color": m, align: "start", sideOffset: 4, collisionPadding: 10, ...f, asChild: !1, ref: t, className: R("rt-PopperContent", "rt-BaseMenuContent", "rt-DropdownMenuContent", i) }, o.createElement(Et, { type: "auto" }, o.createElement("div", { className: R("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, o.createElement(Op.Provider, { value: o.useMemo(() => ({ size: n, variant: a, color: m, highContrast: s }), [n, a, m, s]) }, c))))));
8817
8801
  });
8818
8802
  kp.displayName = "DropdownMenu.Content";
@@ -8845,7 +8829,7 @@ const Gp = o.forwardRef((e, t) => {
8845
8829
  });
8846
8830
  Gp.displayName = "DropdownMenu.SubTrigger";
8847
8831
  const Wp = o.forwardRef((e, t) => {
8848
- const { size: r, variant: n, color: a, highContrast: s } = o.useContext(Op), { className: i, children: c, container: l, forceMount: d, ...u } = O({ size: r, variant: n, color: a, highContrast: s, ...e }, De);
8832
+ const { size: r, variant: n, color: a, highContrast: s } = o.useContext(Op), { className: i, children: c, container: l, forceMount: d, ...u } = k({ size: r, variant: n, color: a, highContrast: s, ...e }, De);
8849
8833
  return o.createElement(Fl, { container: l, forceMount: d }, o.createElement(me, { asChild: !0 }, o.createElement(ew, { "data-accent-color": a, alignOffset: -Number(r) * 4, sideOffset: 1, collisionPadding: 10, ...u, asChild: !1, ref: t, className: R("rt-PopperContent", "rt-BaseMenuContent", "rt-BaseMenuSubContent", "rt-DropdownMenuContent", "rt-DropdownMenuSubContent", i) }, o.createElement(Et, { type: "auto" }, o.createElement("div", { className: R("rt-BaseMenuViewport", "rt-DropdownMenuViewport") }, c)))));
8850
8834
  });
8851
8835
  Wp.displayName = "DropdownMenu.SubContent";
@@ -8868,7 +8852,7 @@ const KS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8868
8852
  Trigger: $p,
8869
8853
  TriggerIcon: Aa
8870
8854
  }, Symbol.toStringTag, { value: "Module" })), r1 = { ...K, ...bt, ...xt }, n1 = o.forwardRef((e, t) => {
8871
- const { asChild: r, className: n, ...a } = O(e, r1), s = r ? ie : "em";
8855
+ const { asChild: r, className: n, ...a } = k(e, r1), s = r ? ie : "em";
8872
8856
  return o.createElement(s, { ...a, ref: t, className: R("rt-Em", n) });
8873
8857
  });
8874
8858
  n1.displayName = "Em";
@@ -8877,7 +8861,7 @@ Kp.displayName = "HoverCard.Root";
8877
8861
  const Yp = o.forwardRef(({ children: e, className: t, ...r }, n) => o.createElement(lw, { ref: n, className: R("rt-HoverCardTrigger", t), ...r, asChild: !0 }, _e(e)));
8878
8862
  Yp.displayName = "HoverCard.Trigger";
8879
8863
  const Xp = o.forwardRef((e, t) => {
8880
- const { className: r, forceMount: n, container: a, ...s } = O(e, a1);
8864
+ const { className: r, forceMount: n, container: a, ...s } = k(e, a1);
8881
8865
  return o.createElement(uw, { container: a, forceMount: n }, o.createElement(me, { asChild: !0 }, o.createElement(dw, { align: "start", sideOffset: 8, collisionPadding: 10, ...s, ref: t, className: R("rt-PopperContent", "rt-HoverCardContent", r) })));
8882
8866
  });
8883
8867
  Xp.displayName = "HoverCard.Content";
@@ -8893,17 +8877,17 @@ function pt(e) {
8893
8877
  return e === "current" ? "inset" : e;
8894
8878
  }
8895
8879
  const l1 = o.forwardRef((e, t) => {
8896
- const { asChild: r, className: n, ...a } = O(e, c1, G), s = r ? ie : "div";
8880
+ const { asChild: r, className: n, ...a } = k(e, c1, G), s = r ? ie : "div";
8897
8881
  return o.createElement(s, { ...a, ref: t, className: R("rt-Inset", n) });
8898
8882
  });
8899
8883
  l1.displayName = "Inset";
8900
8884
  const u1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], d1 = { ...K, size: { type: "enum", className: "rt-r-size", values: u1, responsive: !0 } }, Zp = o.forwardRef((e, t) => {
8901
- const { asChild: r, className: n, ...a } = O(e, d1, G), s = r ? ie : "kbd";
8885
+ const { asChild: r, className: n, ...a } = k(e, d1, G), s = r ? ie : "kbd";
8902
8886
  return o.createElement(s, { ...a, ref: t, className: R("rt-reset", "rt-Kbd", n) });
8903
8887
  });
8904
8888
  Zp.displayName = "Kbd";
8905
8889
  const f1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], p1 = ["auto", "always", "hover", "none"], m1 = { ...K, size: { type: "enum", className: "rt-r-size", values: f1, responsive: !0 }, ...Dn, ...An, ...bt, ...xt, underline: { type: "enum", className: "rt-underline", values: p1, default: "auto" }, ...Ut, ...se }, v1 = o.forwardRef((e, t) => {
8906
- const { children: r, className: n, color: a, asChild: s, ...i } = O(e, m1);
8890
+ const { children: r, className: n, color: a, asChild: s, ...i } = k(e, m1);
8907
8891
  return o.createElement(oe, { ...i, "data-accent-color": a, ref: t, asChild: !0, className: R("rt-reset", "rt-Link", n) }, s ? r : o.createElement("a", null, r));
8908
8892
  });
8909
8893
  v1.displayName = "Link";
@@ -8912,7 +8896,7 @@ $a.displayName = "Popover.Root";
8912
8896
  const Oa = o.forwardRef(({ children: e, ...t }, r) => o.createElement(Ww, { ...t, ref: r, asChild: !0 }, _e(e)));
8913
8897
  Oa.displayName = "Popover.Trigger";
8914
8898
  const ka = o.forwardRef((e, t) => {
8915
- const { className: r, forceMount: n, container: a, ...s } = O(e, g1);
8899
+ const { className: r, forceMount: n, container: a, ...s } = k(e, g1);
8916
8900
  return o.createElement(Uw, { container: a, forceMount: n }, o.createElement(me, { asChild: !0 }, o.createElement(Kw, { align: "start", sideOffset: 8, collisionPadding: 10, ...s, ref: t, className: R("rt-PopperContent", "rt-PopoverContent", r) })));
8917
8901
  });
8918
8902
  ka.displayName = "Popover.Content";
@@ -8928,17 +8912,17 @@ const XS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8928
8912
  Root: $a,
8929
8913
  Trigger: Oa
8930
8914
  }, Symbol.toStringTag, { value: "Module" })), qS = wv, C1 = ["1", "2", "3"], y1 = ["classic", "surface", "soft"], w1 = { size: { type: "enum", className: "rt-r-size", values: C1, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: y1, default: "surface" }, ...re, ...se, ...Me, duration: { type: "string" } }, x1 = o.forwardRef((e, t) => {
8931
- const { className: r, style: n, color: a, radius: s, duration: i, ...c } = O(e, w1, G);
8915
+ const { className: r, style: n, color: a, radius: s, duration: i, ...c } = k(e, w1, G);
8932
8916
  return o.createElement(tx, { "data-accent-color": a, "data-radius": s, ref: t, className: R("rt-ProgressRoot", r), style: dr({ "--progress-duration": "value" in c ? void 0 : i, "--progress-value": "value" in c ? c.value : void 0, "--progress-max": "max" in c ? c.max : void 0 }, n), ...c, asChild: !1 }, o.createElement(rx, { className: "rt-ProgressIndicator" }));
8933
8917
  });
8934
8918
  x1.displayName = "Progress";
8935
8919
  const b1 = { ...K, ...bt, ...xt }, E1 = o.forwardRef((e, t) => {
8936
- const { asChild: r, className: n, ...a } = O(e, b1), s = r ? ie : "q";
8920
+ const { asChild: r, className: n, ...a } = k(e, b1), s = r ? ie : "q";
8937
8921
  return o.createElement(s, { ...a, ref: t, className: R("rt-Quote", n) });
8938
8922
  });
8939
8923
  E1.displayName = "Quote";
8940
8924
  const S1 = ["1", "2", "3"], R1 = ["surface", "classic"], N1 = { ...K, size: { type: "enum", className: "rt-r-size", values: S1, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: R1, default: "surface" }, ...re, ...se, columns: { ...kt.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...kt.gap, default: "4" } }, em = o.forwardRef((e, t) => {
8941
- const { className: r, color: n, ...a } = O(e, N1, G);
8925
+ const { className: r, color: n, ...a } = k(e, N1, G);
8942
8926
  return o.createElement(He, { asChild: !0 }, o.createElement(Ou, { "data-accent-color": n, ...a, ref: t, className: R("rt-RadioCardsRoot", r) }));
8943
8927
  });
8944
8928
  em.displayName = "RadioCards.Root";
@@ -8949,7 +8933,7 @@ const ZS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8949
8933
  Item: tm,
8950
8934
  Root: em
8951
8935
  }, Symbol.toStringTag, { value: "Module" })), P1 = ["1", "2", "3"], T1 = ["classic", "surface", "soft"], er = { ...K, size: { type: "enum", className: "rt-r-size", values: P1, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: T1, default: "surface" }, ...re, ...se }, rm = "RadioGroup", [M1] = Y(rm, [Mu]), nm = Mu(), [_1, om] = M1(rm), am = o.forwardRef(({ color: e = er.color.default, highContrast: t = er.highContrast.default, size: r = er.size.default, variant: n = er.variant.default, ...a }, s) => {
8952
- const { __scopeRadioGroup: i, className: c, ...l } = O(a, G), d = nm(i);
8936
+ const { __scopeRadioGroup: i, className: c, ...l } = k(a, G), d = nm(i);
8953
8937
  return o.createElement(_1, { scope: i, color: e, highContrast: t, size: r, variant: n }, o.createElement(Ou, { ...d, ...l, ref: s, className: R("rt-RadioGroupRoot", c) }));
8954
8938
  });
8955
8939
  am.displayName = "RadioGroup.Root";
@@ -8959,7 +8943,7 @@ const sm = o.forwardRef((e, t) => {
8959
8943
  });
8960
8944
  sm.displayName = "RadioGroup.Item";
8961
8945
  const Io = o.forwardRef(({ __scopeRadioGroup: e, ...t }, r) => {
8962
- const n = om("RadioGroupItemRadio", e), a = nm(e), { color: s, className: i } = O({ ...t, ...n }, er, G);
8946
+ const n = om("RadioGroupItemRadio", e), a = nm(e), { color: s, className: i } = k({ ...t, ...n }, er, G);
8963
8947
  return o.createElement(ku, { ...a, "data-accent-color": s, ...t, asChild: !1, ref: r, className: R("rt-reset", "rt-BaseRadioRoot", i) });
8964
8948
  });
8965
8949
  Io.displayName = "RadioGroup.ItemRadio";
@@ -8968,14 +8952,14 @@ const QS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8968
8952
  Item: sm,
8969
8953
  Root: am
8970
8954
  }, Symbol.toStringTag, { value: "Module" })), I1 = ["1", "2", "3"], A1 = ["classic", "surface", "soft"], D1 = { size: { type: "enum", className: "rt-r-size", values: I1, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: A1, default: "surface" }, ...re, ...se }, $1 = o.forwardRef((e, t) => {
8971
- const r = o.useRef(null), { className: n, color: a, onChange: s, onValueChange: i, ...c } = O(e, D1, G);
8955
+ const r = o.useRef(null), { className: n, color: a, onChange: s, onValueChange: i, ...c } = k(e, D1, G);
8972
8956
  return o.createElement("input", { type: "radio", "data-accent-color": a, ...c, onChange: S(s, (l) => i?.(l.currentTarget.value)), ref: Ct(r, t), className: R("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", n) });
8973
8957
  });
8974
8958
  $1.displayName = "Radio";
8975
8959
  const O1 = o.forwardRef(({ className: e, children: t, ...r }, n) => o.createElement(ie, { ...r, ref: n, className: R("rt-reset", e) }, _e(t)));
8976
8960
  O1.displayName = "Reset";
8977
8961
  const k1 = ["1", "2", "3"], L1 = ["surface", "classic"], j1 = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: k1, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: L1, default: "surface" }, ...Me }, im = o.forwardRef((e, t) => {
8978
- const { className: r, children: n, radius: a, value: s, defaultValue: i, onValueChange: c, ...l } = O(e, j1, G), [d, u] = te({ prop: s, onChange: c, defaultProp: i });
8962
+ const { className: r, children: n, radius: a, value: s, defaultValue: i, onValueChange: c, ...l } = k(e, j1, G), [d, u] = te({ prop: s, onChange: c, defaultProp: i });
8979
8963
  return o.createElement(Vb, { "data-disabled": e.disabled || void 0, "data-radius": a, ref: t, className: R("rt-SegmentedControlRoot", r), onValueChange: (f) => {
8980
8964
  f && u(f);
8981
8965
  }, ...l, type: "single", value: d, asChild: !1, disabled: !!e.disabled }, n, o.createElement("div", { className: "rt-SegmentedControlIndicator" }));
@@ -8992,7 +8976,7 @@ function z1(e) {
8992
8976
  return e === "initial" ? "block" : e;
8993
8977
  }
8994
8978
  const H1 = o.forwardRef((e, t) => {
8995
- const { asChild: r, className: n, ...a } = O(e, V1, Pr, G), s = r ? ie : "section";
8979
+ const { asChild: r, className: n, ...a } = k(e, V1, Pr, G), s = r ? ie : "section";
8996
8980
  return o.createElement(s, { ...a, ref: t, className: R("rt-Section", n) });
8997
8981
  });
8998
8982
  H1.displayName = "Section";
@@ -9002,12 +8986,12 @@ const G1 = ["1", "2", "3"], La = { size: { type: "enum", className: "rt-r-size",
9002
8986
  };
9003
8987
  lm.displayName = "Select.Root";
9004
8988
  const um = o.forwardRef((e, t) => {
9005
- const r = o.useContext(ja), { children: n, className: a, color: s, radius: i, placeholder: c, ...l } = O({ size: r?.size, ...e }, { size: La.size }, U1, G);
8989
+ const r = o.useContext(ja), { children: n, className: a, color: s, radius: i, placeholder: c, ...l } = k({ size: r?.size, ...e }, { size: La.size }, U1, G);
9006
8990
  return o.createElement(Yx, { asChild: !0 }, o.createElement("button", { "data-accent-color": s, "data-radius": i, ...l, ref: t, className: R("rt-reset", "rt-SelectTrigger", a) }, o.createElement("span", { className: "rt-SelectTriggerInner" }, o.createElement(Xx, { placeholder: c }, n)), o.createElement(qx, { asChild: !0 }, o.createElement(Aa, { className: "rt-SelectIcon" }))));
9007
8991
  });
9008
8992
  um.displayName = "Select.Trigger";
9009
8993
  const dm = o.forwardRef((e, t) => {
9010
- const r = o.useContext(ja), { className: n, children: a, color: s, container: i, ...c } = O({ size: r?.size, ...e }, { size: La.size }, Y1), l = On(), d = s || l.accentColor;
8994
+ const r = o.useContext(ja), { className: n, children: a, color: s, container: i, ...c } = k({ size: r?.size, ...e }, { size: La.size }, Y1), l = On(), d = s || l.accentColor;
9011
8995
  return o.createElement(Zx, { container: i }, o.createElement(me, { asChild: !0 }, o.createElement(Qx, { "data-accent-color": d, sideOffset: 4, ...c, asChild: !1, ref: t, className: R({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", n) }, o.createElement(qu, { type: "auto", className: "rt-ScrollAreaRoot" }, o.createElement(Jx, { asChild: !0, className: "rt-SelectViewport" }, o.createElement(Zu, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, a)), o.createElement(Co, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, o.createElement(yo, { className: "rt-ScrollAreaThumb" }))))));
9012
8996
  });
9013
8997
  dm.displayName = "Select.Content";
@@ -9032,34 +9016,34 @@ const eR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9032
9016
  Separator: vm,
9033
9017
  Trigger: um
9034
9018
  }, Symbol.toStringTag, { value: "Module" })), X1 = ["horizontal", "vertical"], q1 = ["1", "2", "3", "4"], Z1 = { orientation: { type: "enum", className: "rt-r-orientation", values: X1, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: q1, default: "1", responsive: !0 }, color: { ...re.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Q1 = o.forwardRef((e, t) => {
9035
- const { className: r, color: n, decorative: a, ...s } = O(e, Z1, G);
9019
+ const { className: r, color: n, decorative: a, ...s } = k(e, Z1, G);
9036
9020
  return o.createElement("span", { "data-accent-color": n, role: a ? void 0 : "separator", ...s, ref: t, className: R("rt-Separator", r) });
9037
9021
  });
9038
9022
  Q1.displayName = "Separator";
9039
9023
  const hm = parseFloat(o.version) >= 19 || "", J1 = { loading: { type: "boolean", default: !0 }, ...ce, ...Wt }, eS = o.forwardRef((e, t) => {
9040
- const { children: r, className: n, loading: a, ...s } = O(e, J1, G);
9024
+ const { children: r, className: n, loading: a, ...s } = k(e, J1, G);
9041
9025
  if (!a) return r;
9042
9026
  const i = o.isValidElement(r) ? ie : "span";
9043
9027
  return o.createElement(i, { ref: t, "aria-hidden": !0, className: R("rt-Skeleton", n), "data-inline-skeleton": o.isValidElement(r) ? void 0 : !0, tabIndex: -1, inert: hm, ...s }, r);
9044
9028
  });
9045
9029
  eS.displayName = "Skeleton";
9046
9030
  const tS = ["1", "2", "3"], rS = ["classic", "surface", "soft"], nS = { size: { type: "enum", className: "rt-r-size", values: tS, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: rS, default: "surface" }, ...re, ...se, ...Me }, oS = o.forwardRef((e, t) => {
9047
- const { className: r, color: n, radius: a, tabIndex: s, ...i } = O(e, nS, G);
9031
+ const { className: r, color: n, radius: a, tabIndex: s, ...i } = k(e, nS, G);
9048
9032
  return o.createElement(xb, { "data-accent-color": n, "data-radius": a, ref: t, ...i, asChild: !1, className: R("rt-SliderRoot", r) }, o.createElement(bb, { className: "rt-SliderTrack" }, o.createElement(Eb, { className: R("rt-SliderRange", { "rt-high-contrast": e.highContrast }), "data-inverted": i.inverted ? "" : void 0 })), (i.value ?? i.defaultValue ?? []).map((c, l) => o.createElement(Sb, { key: l, className: "rt-SliderThumb", ...s !== void 0 ? { tabIndex: s } : void 0 })));
9049
9033
  });
9050
9034
  oS.displayName = "Slider";
9051
9035
  const aS = { ...K, ...bt, ...xt }, sS = o.forwardRef((e, t) => {
9052
- const { asChild: r, className: n, ...a } = O(e, aS), s = r ? ie : "strong";
9036
+ const { asChild: r, className: n, ...a } = k(e, aS), s = r ? ie : "strong";
9053
9037
  return o.createElement(s, { ...a, ref: t, className: R("rt-Strong", n) });
9054
9038
  });
9055
9039
  sS.displayName = "Strong";
9056
9040
  const iS = ["1", "2", "3"], cS = ["classic", "surface", "soft"], lS = { size: { type: "enum", className: "rt-r-size", values: iS, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: cS, default: "surface" }, ...re, ...se, ...Me }, uS = o.forwardRef((e, t) => {
9057
- const { className: r, color: n, radius: a, ...s } = O(e, lS, G);
9041
+ const { className: r, color: n, radius: a, ...s } = k(e, lS, G);
9058
9042
  return o.createElement(Mb, { "data-accent-color": n, "data-radius": a, ...s, asChild: !1, ref: t, className: R("rt-reset", "rt-SwitchRoot", r) }, o.createElement(_b, { className: R("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
9059
9043
  });
9060
9044
  uS.displayName = "Switch";
9061
9045
  const dS = ["1", "2"], fS = ["nowrap", "wrap", "wrap-reverse"], pS = ["start", "center", "end"], gm = { size: { type: "enum", className: "rt-r-size", values: dS, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: fS, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: pS, responsive: !0 }, ...re, ...se }, Cm = o.forwardRef((e, t) => {
9062
- const { children: r, className: n, color: a, ...s } = O(e, gm, G);
9046
+ const { children: r, className: n, color: a, ...s } = k(e, gm, G);
9063
9047
  return o.createElement(Iw, { className: "rt-TabNavRoot", "data-accent-color": a, ...s, asChild: !1, ref: t }, o.createElement(Aw, { className: R("rt-reset", "rt-BaseTabList", "rt-TabNavList", n) }, r));
9064
9048
  });
9065
9049
  Cm.displayName = "TabNav.Root";
@@ -9081,7 +9065,7 @@ function xS(e) {
9081
9065
  return { start: "left", center: "center", end: "right" }[e];
9082
9066
  }
9083
9067
  const wm = o.forwardRef((e, t) => {
9084
- const { layout: r, ...n } = oo, { className: a, children: s, layout: i, ...c } = O(e, n, G), l = ur({ value: i, className: oo.layout.className, propValues: oo.layout.values });
9068
+ const { layout: r, ...n } = oo, { className: a, children: s, layout: i, ...c } = k(e, n, G), l = ur({ value: i, className: oo.layout.className, propValues: oo.layout.values });
9085
9069
  return o.createElement("div", { ref: t, className: R("rt-TableRoot", a), ...c }, o.createElement(Et, null, o.createElement("table", { className: R("rt-TableRootTable", l) }, s)));
9086
9070
  });
9087
9071
  wm.displayName = "Table.Root";
@@ -9090,22 +9074,22 @@ xm.displayName = "Table.Header";
9090
9074
  const bm = o.forwardRef(({ className: e, ...t }, r) => o.createElement("tbody", { ...t, ref: r, className: R("rt-TableBody", e) }));
9091
9075
  bm.displayName = "Table.Body";
9092
9076
  const Em = o.forwardRef((e, t) => {
9093
- const { className: r, ...n } = O(e, CS);
9077
+ const { className: r, ...n } = k(e, CS);
9094
9078
  return o.createElement("tr", { ...n, ref: t, className: R("rt-TableRow", r) });
9095
9079
  });
9096
9080
  Em.displayName = "Table.Row";
9097
9081
  const Sm = o.forwardRef((e, t) => {
9098
- const { className: r, ...n } = O(e, Fa);
9082
+ const { className: r, ...n } = k(e, Fa);
9099
9083
  return o.createElement("td", { className: R("rt-TableCell", r), ref: t, ...n });
9100
9084
  });
9101
9085
  Sm.displayName = "Table.Cell";
9102
9086
  const Rm = o.forwardRef((e, t) => {
9103
- const { className: r, ...n } = O(e, Fa);
9087
+ const { className: r, ...n } = k(e, Fa);
9104
9088
  return o.createElement("th", { className: R("rt-TableCell", "rt-TableColumnHeaderCell", r), scope: "col", ref: t, ...n });
9105
9089
  });
9106
9090
  Rm.displayName = "Table.ColumnHeaderCell";
9107
9091
  const Nm = o.forwardRef((e, t) => {
9108
- const { className: r, ...n } = O(e, Fa);
9092
+ const { className: r, ...n } = k(e, Fa);
9109
9093
  return o.createElement("th", { className: R("rt-TableCell", "rt-TableRowHeaderCell", r), scope: "row", ref: t, ...n });
9110
9094
  });
9111
9095
  Nm.displayName = "Table.RowHeaderCell";
@@ -9119,12 +9103,12 @@ const rR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9119
9103
  Row: Em,
9120
9104
  RowHeaderCell: Nm
9121
9105
  }, Symbol.toStringTag, { value: "Module" })), Pm = o.forwardRef((e, t) => {
9122
- const { className: r, ...n } = O(e, G);
9106
+ const { className: r, ...n } = k(e, G);
9123
9107
  return o.createElement(Db, { ...n, ref: t, className: R("rt-TabsRoot", r) });
9124
9108
  });
9125
9109
  Pm.displayName = "Tabs.Root";
9126
9110
  const Tm = o.forwardRef((e, t) => {
9127
- const { className: r, color: n, ...a } = O(e, gm, G);
9111
+ const { className: r, color: n, ...a } = k(e, gm, G);
9128
9112
  return o.createElement($b, { "data-accent-color": n, ...a, asChild: !1, ref: t, className: R("rt-BaseTabList", "rt-TabsList", r) });
9129
9113
  });
9130
9114
  Tm.displayName = "Tabs.List";
@@ -9134,7 +9118,7 @@ const Mm = o.forwardRef((e, t) => {
9134
9118
  });
9135
9119
  Mm.displayName = "Tabs.Trigger";
9136
9120
  const _m = o.forwardRef((e, t) => {
9137
- const { className: r, ...n } = O(e, G);
9121
+ const { className: r, ...n } = k(e, G);
9138
9122
  return o.createElement(kb, { ...n, ref: t, className: R("rt-TabsContent", r) });
9139
9123
  });
9140
9124
  _m.displayName = "Tabs.Content";
@@ -9145,12 +9129,12 @@ const nR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9145
9129
  Root: Pm,
9146
9130
  Trigger: Mm
9147
9131
  }, Symbol.toStringTag, { value: "Module" })), bS = ["1", "2", "3"], ES = ["classic", "surface", "soft"], SS = ["none", "vertical", "horizontal", "both"], RS = { size: { type: "enum", className: "rt-r-size", values: bS, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: ES, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: SS, responsive: !0 }, ...re, ...Me }, NS = o.forwardRef((e, t) => {
9148
- const { className: r, color: n, radius: a, style: s, ...i } = O(e, RS, G);
9132
+ const { className: r, color: n, radius: a, style: s, ...i } = k(e, RS, G);
9149
9133
  return o.createElement("div", { "data-accent-color": n, "data-radius": a, className: R("rt-TextAreaRoot", r), style: s }, o.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: t, ...i }));
9150
9134
  });
9151
9135
  NS.displayName = "TextArea";
9152
9136
  const PS = ["1", "2", "3"], TS = ["classic", "surface", "soft"], MS = { size: { type: "enum", className: "rt-r-size", values: PS, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: TS, default: "surface" }, ...re, ...Me }, _S = ["left", "right"], IS = { side: { type: "enum", values: _S }, ...re, gap: Df.gap, px: rr.px, pl: rr.pl, pr: rr.pr }, Im = o.forwardRef((e, t) => {
9153
- const r = o.useRef(null), { children: n, className: a, color: s, radius: i, style: c, ...l } = O(e, MS, G);
9137
+ const r = o.useRef(null), { children: n, className: a, color: s, radius: i, style: c, ...l } = k(e, MS, G);
9154
9138
  return o.createElement("div", { "data-accent-color": s, "data-radius": i, style: c, className: R("rt-TextFieldRoot", a), onPointerDown: (d) => {
9155
9139
  const u = d.target;
9156
9140
  if (u.closest("input, button, a")) return;
@@ -9171,7 +9155,7 @@ const PS = ["1", "2", "3"], TS = ["classic", "surface", "soft"], MS = { size: {
9171
9155
  });
9172
9156
  Im.displayName = "TextField.Root";
9173
9157
  const Am = o.forwardRef((e, t) => {
9174
- const { className: r, color: n, side: a, ...s } = O(e, IS);
9158
+ const { className: r, color: n, side: a, ...s } = k(e, IS);
9175
9159
  return o.createElement("div", { "data-accent-color": n, "data-side": a, ...s, ref: t, className: R("rt-TextFieldSlot", r) });
9176
9160
  });
9177
9161
  Am.displayName = "TextField.Slot";
@@ -9186,18 +9170,18 @@ const oR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9186
9170
  AS.displayName = "ThemePanel";
9187
9171
  const Dm = o.forwardRef((e, t) => {
9188
9172
  const { open: r, onOpenChange: n, onAppearanceChange: a, ...s } = e, i = On(), { appearance: c, onAppearanceChange: l, accentColor: d, onAccentColorChange: u, grayColor: f, onGrayColorChange: m, panelBackground: h, onPanelBackgroundChange: g, radius: v, onRadiusChange: C, scaling: y, onScalingChange: x } = i, w = a !== void 0, b = U(a), E = o.useCallback((P) => {
9189
- const $ = DS();
9173
+ const O = DS();
9190
9174
  if (c !== "inherit") {
9191
9175
  l(P);
9192
9176
  return;
9193
9177
  }
9194
- w ? b(P) : (z(P), $S(P)), $();
9195
- }, [c, l, w, b]), T = xf(d), N = f === "auto" ? T : f, [I, _] = o.useState("idle");
9178
+ w ? b(P) : (z(P), $S(P)), O();
9179
+ }, [c, l, w, b]), T = xf(d), N = f === "auto" ? T : f, [A, _] = o.useState("idle");
9196
9180
  async function D() {
9197
- const P = { appearance: c === J.appearance.default ? void 0 : c, accentColor: d === J.accentColor.default ? void 0 : d, grayColor: f === J.grayColor.default ? void 0 : f, panelBackground: h === J.panelBackground.default ? void 0 : h, radius: v === J.radius.default ? void 0 : v, scaling: y === J.scaling.default ? void 0 : y }, $ = Object.keys(P).filter((V) => P[V] !== void 0).map((V) => `${V}="${P[V]}"`).join(" "), F = $ ? `<Theme ${$}>` : "<Theme>";
9181
+ const P = { appearance: c === J.appearance.default ? void 0 : c, accentColor: d === J.accentColor.default ? void 0 : d, grayColor: f === J.grayColor.default ? void 0 : f, panelBackground: h === J.panelBackground.default ? void 0 : h, radius: v === J.radius.default ? void 0 : v, scaling: y === J.scaling.default ? void 0 : y }, O = Object.keys(P).filter((V) => P[V] !== void 0).map((V) => `${V}="${P[V]}"`).join(" "), F = O ? `<Theme ${O}>` : "<Theme>";
9198
9182
  _("copying"), await navigator.clipboard.writeText(F), _("copied"), setTimeout(() => _("idle"), 2e3);
9199
9183
  }
9200
- const [L, z] = o.useState(c === "inherit" ? null : c), H = `
9184
+ const [$, z] = o.useState(c === "inherit" ? null : c), H = `
9201
9185
  [contenteditable],
9202
9186
  [role="combobox"],
9203
9187
  [role="listbox"],
@@ -9207,30 +9191,30 @@ const Dm = o.forwardRef((e, t) => {
9207
9191
  textarea
9208
9192
  `;
9209
9193
  return o.useEffect(() => {
9210
- function P($) {
9211
- const F = $.altKey || $.ctrlKey || $.shiftKey || $.metaKey, V = document.activeElement?.closest(H);
9212
- $.key?.toUpperCase() === "T" && !F && !V && n(!r);
9194
+ function P(O) {
9195
+ const F = O.altKey || O.ctrlKey || O.shiftKey || O.metaKey, V = document.activeElement?.closest(H);
9196
+ O.key?.toUpperCase() === "T" && !F && !V && n(!r);
9213
9197
  }
9214
9198
  return document.addEventListener("keydown", P), () => document.removeEventListener("keydown", P);
9215
9199
  }, [n, r, H]), o.useEffect(() => {
9216
- function P($) {
9217
- const F = $.altKey || $.ctrlKey || $.shiftKey || $.metaKey, V = document.activeElement?.closest(H);
9218
- $.key?.toUpperCase() === "D" && !F && !V && E(L === "light" ? "dark" : "light");
9200
+ function P(O) {
9201
+ const F = O.altKey || O.ctrlKey || O.shiftKey || O.metaKey, V = document.activeElement?.closest(H);
9202
+ O.key?.toUpperCase() === "D" && !F && !V && E($ === "light" ? "dark" : "light");
9219
9203
  }
9220
9204
  return document.addEventListener("keydown", P), () => document.removeEventListener("keydown", P);
9221
- }, [E, L, H]), o.useEffect(() => {
9222
- const P = document.documentElement, $ = document.body;
9205
+ }, [E, $, H]), o.useEffect(() => {
9206
+ const P = document.documentElement, O = document.body;
9223
9207
  function F() {
9224
- const k = P.classList.contains("dark") || P.classList.contains("dark-theme") || $.classList.contains("dark") || $.classList.contains("dark-theme");
9225
- z(c === "inherit" ? k ? "dark" : "light" : c);
9208
+ const L = P.classList.contains("dark") || P.classList.contains("dark-theme") || O.classList.contains("dark") || O.classList.contains("dark-theme");
9209
+ z(c === "inherit" ? L ? "dark" : "light" : c);
9226
9210
  }
9227
- const V = new MutationObserver(function(k) {
9228
- k.forEach(function(A) {
9229
- A.attributeName === "class" && F();
9211
+ const V = new MutationObserver(function(L) {
9212
+ L.forEach(function(I) {
9213
+ I.attributeName === "class" && F();
9230
9214
  });
9231
9215
  });
9232
- return F(), c === "inherit" && (V.observe(P, { attributes: !0 }), V.observe($, { attributes: !0 })), () => V.disconnect();
9233
- }, [c]), o.createElement(me, { asChild: !0, radius: "medium", scaling: "100%" }, o.createElement(he, { direction: "column", position: "fixed", top: "0", right: "0", mr: "4", mt: "4", inert: r ? void 0 : hm, ...s, ref: t, style: { zIndex: 9999, overflow: "hidden", maxHeight: "calc(100vh - var(--space-4) - var(--space-4))", borderRadius: "var(--radius-4)", backgroundColor: "var(--color-panel-solid)", transformOrigin: "top center", transitionProperty: "transform, box-shadow", transitionDuration: "200ms", transitionTimingFunction: r ? "ease-out" : "ease-in", transform: r ? "none" : "translateX(105%)", boxShadow: r ? "var(--shadow-5)" : "var(--shadow-2)", ...e.style } }, o.createElement(Et, null, o.createElement(Qt, { flexGrow: "1", p: "5", position: "relative" }, o.createElement(Qt, { position: "absolute", top: "0", right: "0", m: "2" }, o.createElement(Fr, { content: "Press T to show/hide the Theme Panel", side: "bottom", sideOffset: 6 }, o.createElement(Zp, { asChild: !0, size: "3", tabIndex: 0, className: "rt-ThemePanelShortcut" }, o.createElement("button", { onClick: () => n(!r) }, "T")))), o.createElement($n, { size: "5", trim: "both", as: "h3", mb: "5" }, "Theme"), o.createElement(oe, { id: "accent-color-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Accent color"), o.createElement(He, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "accent-color-title" }, J.accentColor.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelSwatch", style: { backgroundColor: `var(--${P}-9)` } }, o.createElement(Fr, { content: `${Ye(P)}${d === "gray" && N !== "gray" ? ` (${Ye(N)})` : ""}` }, o.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "accentColor", value: P, checked: d === P, onChange: ($) => u($.target.value) }))))), o.createElement(he, { asChild: !0, align: "center", justify: "between" }, o.createElement(oe, { as: "p", id: "gray-color-title", size: "2", weight: "medium", mt: "5" }, "Gray color")), o.createElement(He, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "gray-color-title" }, J.grayColor.values.map((P) => o.createElement(he, { key: P, asChild: !0, align: "center", justify: "center" }, o.createElement("label", { className: "rt-ThemePanelSwatch", style: { backgroundColor: P === "auto" ? `var(--${T}-9)` : P === "gray" ? "var(--gray-9)" : `var(--${P}-9)`, filter: P === "gray" ? "saturate(0)" : void 0 } }, o.createElement(Fr, { content: `${Ye(P)}${P === "auto" ? ` (${Ye(T)})` : ""}` }, o.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "grayColor", value: P, checked: f === P, onChange: ($) => m($.target.value) })))))), o.createElement(oe, { id: "appearance-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Appearance"), o.createElement(He, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "appearance-title" }, ["light", "dark"].map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "appearance", value: P, checked: L === P, onChange: ($) => E($.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px", gap: "2" }, P === "light" ? o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, o.createElement("path", { d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, o.createElement("path", { d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))), o.createElement(oe, { id: "radius-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Radius"), o.createElement(He, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "radius-title" }, J.radius.values.map((P) => o.createElement(he, { key: P, direction: "column", align: "center" }, o.createElement("label", { className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "radius", id: `theme-panel-radius-${P}`, value: P, checked: v === P, onChange: ($) => C($.target.value) }), o.createElement(me, { asChild: !0, radius: P }, o.createElement(Qt, { m: "3", width: "32px", height: "32px", style: { borderTopLeftRadius: P === "full" ? "80%" : "var(--radius-5)", backgroundImage: "linear-gradient(to bottom right, var(--accent-3), var(--accent-4))", borderTop: "2px solid var(--accent-a8)", borderLeft: "2px solid var(--accent-a8)" } }))), o.createElement(Qt, { asChild: !0, pt: "2" }, o.createElement(oe, { asChild: !0, size: "1", color: "gray" }, o.createElement("label", { htmlFor: `theme-panel-radius-${P}` }, Ye(P))))))), o.createElement(oe, { id: "scaling-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Scaling"), o.createElement(He, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "scaling-title" }, J.scaling.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "scaling", value: P, checked: y === P, onChange: ($) => x($.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px" }, o.createElement(me, { asChild: !0, scaling: P }, o.createElement(he, { align: "center", justify: "center" }, o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))))), o.createElement(he, { mt: "5", align: "center", gap: "2" }, o.createElement(oe, { id: "panel-background-title", as: "p", size: "2", weight: "medium" }, "Panel background"), o.createElement($a, null, o.createElement(Oa, null, o.createElement(qp, { size: "1", variant: "ghost", color: "gray" }, o.createElement(uE, { label: "Learn more about panel background options" }, o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, o.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fillRule: "evenodd", clipRule: "evenodd" }))))), o.createElement(ka, { size: "1", style: { maxWidth: 220 }, side: "top", align: "center" }, o.createElement(oe, { as: "p", size: "2" }, "Whether Card and Table panels are translucent, showing some of the background behind them.")))), o.createElement(He, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "panel-background-title" }, J.panelBackground.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "panelBackground", value: P, checked: h === P, onChange: ($) => g($.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px", gap: "2" }, P === "solid" ? o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, o.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, o.createElement("path", { opacity: ".05", d: "M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".1", d: "M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".15", d: "M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".2", d: "M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".25", d: "M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".3", d: "M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".35", d: "M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".4", d: "M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".45", d: "M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".5", d: "M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))), o.createElement(kf, { mt: "5", style: { width: "100%" }, onClick: D }, I === "copied" ? "Copied" : "Copy Theme")))));
9216
+ return F(), c === "inherit" && (V.observe(P, { attributes: !0 }), V.observe(O, { attributes: !0 })), () => V.disconnect();
9217
+ }, [c]), o.createElement(me, { asChild: !0, radius: "medium", scaling: "100%" }, o.createElement(he, { direction: "column", position: "fixed", top: "0", right: "0", mr: "4", mt: "4", inert: r ? void 0 : hm, ...s, ref: t, style: { zIndex: 9999, overflow: "hidden", maxHeight: "calc(100vh - var(--space-4) - var(--space-4))", borderRadius: "var(--radius-4)", backgroundColor: "var(--color-panel-solid)", transformOrigin: "top center", transitionProperty: "transform, box-shadow", transitionDuration: "200ms", transitionTimingFunction: r ? "ease-out" : "ease-in", transform: r ? "none" : "translateX(105%)", boxShadow: r ? "var(--shadow-5)" : "var(--shadow-2)", ...e.style } }, o.createElement(Et, null, o.createElement(Qt, { flexGrow: "1", p: "5", position: "relative" }, o.createElement(Qt, { position: "absolute", top: "0", right: "0", m: "2" }, o.createElement(Fr, { content: "Press T to show/hide the Theme Panel", side: "bottom", sideOffset: 6 }, o.createElement(Zp, { asChild: !0, size: "3", tabIndex: 0, className: "rt-ThemePanelShortcut" }, o.createElement("button", { onClick: () => n(!r) }, "T")))), o.createElement($n, { size: "5", trim: "both", as: "h3", mb: "5" }, "Theme"), o.createElement(oe, { id: "accent-color-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Accent color"), o.createElement(He, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "accent-color-title" }, J.accentColor.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelSwatch", style: { backgroundColor: `var(--${P}-9)` } }, o.createElement(Fr, { content: `${Ye(P)}${d === "gray" && N !== "gray" ? ` (${Ye(N)})` : ""}` }, o.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "accentColor", value: P, checked: d === P, onChange: (O) => u(O.target.value) }))))), o.createElement(he, { asChild: !0, align: "center", justify: "between" }, o.createElement(oe, { as: "p", id: "gray-color-title", size: "2", weight: "medium", mt: "5" }, "Gray color")), o.createElement(He, { columns: "10", gap: "2", mt: "3", role: "group", "aria-labelledby": "gray-color-title" }, J.grayColor.values.map((P) => o.createElement(he, { key: P, asChild: !0, align: "center", justify: "center" }, o.createElement("label", { className: "rt-ThemePanelSwatch", style: { backgroundColor: P === "auto" ? `var(--${T}-9)` : P === "gray" ? "var(--gray-9)" : `var(--${P}-9)`, filter: P === "gray" ? "saturate(0)" : void 0 } }, o.createElement(Fr, { content: `${Ye(P)}${P === "auto" ? ` (${Ye(T)})` : ""}` }, o.createElement("input", { className: "rt-ThemePanelSwatchInput", type: "radio", name: "grayColor", value: P, checked: f === P, onChange: (O) => m(O.target.value) })))))), o.createElement(oe, { id: "appearance-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Appearance"), o.createElement(He, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "appearance-title" }, ["light", "dark"].map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "appearance", value: P, checked: $ === P, onChange: (O) => E(O.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px", gap: "2" }, P === "light" ? o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, o.createElement("path", { d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -1px" } }, o.createElement("path", { d: "M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))), o.createElement(oe, { id: "radius-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Radius"), o.createElement(He, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "radius-title" }, J.radius.values.map((P) => o.createElement(he, { key: P, direction: "column", align: "center" }, o.createElement("label", { className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "radius", id: `theme-panel-radius-${P}`, value: P, checked: v === P, onChange: (O) => C(O.target.value) }), o.createElement(me, { asChild: !0, radius: P }, o.createElement(Qt, { m: "3", width: "32px", height: "32px", style: { borderTopLeftRadius: P === "full" ? "80%" : "var(--radius-5)", backgroundImage: "linear-gradient(to bottom right, var(--accent-3), var(--accent-4))", borderTop: "2px solid var(--accent-a8)", borderLeft: "2px solid var(--accent-a8)" } }))), o.createElement(Qt, { asChild: !0, pt: "2" }, o.createElement(oe, { asChild: !0, size: "1", color: "gray" }, o.createElement("label", { htmlFor: `theme-panel-radius-${P}` }, Ye(P))))))), o.createElement(oe, { id: "scaling-title", as: "p", size: "2", weight: "medium", mt: "5" }, "Scaling"), o.createElement(He, { columns: "5", gap: "2", mt: "3", role: "group", "aria-labelledby": "scaling-title" }, J.scaling.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "scaling", value: P, checked: y === P, onChange: (O) => x(O.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px" }, o.createElement(me, { asChild: !0, scaling: P }, o.createElement(he, { align: "center", justify: "center" }, o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))))), o.createElement(he, { mt: "5", align: "center", gap: "2" }, o.createElement(oe, { id: "panel-background-title", as: "p", size: "2", weight: "medium" }, "Panel background"), o.createElement($a, null, o.createElement(Oa, null, o.createElement(qp, { size: "1", variant: "ghost", color: "gray" }, o.createElement(uE, { label: "Learn more about panel background options" }, o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, o.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fillRule: "evenodd", clipRule: "evenodd" }))))), o.createElement(ka, { size: "1", style: { maxWidth: 220 }, side: "top", align: "center" }, o.createElement(oe, { as: "p", size: "2" }, "Whether Card and Table panels are translucent, showing some of the background behind them.")))), o.createElement(He, { columns: "2", gap: "2", mt: "3", role: "group", "aria-labelledby": "panel-background-title" }, J.panelBackground.values.map((P) => o.createElement("label", { key: P, className: "rt-ThemePanelRadioCard" }, o.createElement("input", { className: "rt-ThemePanelRadioCardInput", type: "radio", name: "panelBackground", value: P, checked: h === P, onChange: (O) => g(O.target.value) }), o.createElement(he, { align: "center", justify: "center", height: "32px", gap: "2" }, P === "solid" ? o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, o.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })) : o.createElement("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { margin: "0 -2px" } }, o.createElement("path", { opacity: ".05", d: "M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".1", d: "M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".15", d: "M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".2", d: "M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".25", d: "M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".3", d: "M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".35", d: "M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".4", d: "M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".45", d: "M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { opacity: ".5", d: "M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" }), o.createElement("path", { d: "M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z", fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd" })), o.createElement(oe, { size: "1", weight: "medium" }, Ye(P)))))), o.createElement(kf, { mt: "5", style: { width: "100%" }, onClick: D }, A === "copied" ? "Copied" : "Copy Theme")))));
9234
9218
  });
9235
9219
  Dm.displayName = "ThemePanelImpl";
9236
9220
  function DS() {
@@ -9249,7 +9233,7 @@ function $S(e) {
9249
9233
  (r || n) && (t.classList.remove("light-theme", "dark-theme"), t.style.colorScheme = e, t.classList.add(`${e}-theme`)), (a || s) && (t.classList.remove("light", "dark"), t.style.colorScheme = e, t.classList.add(e)), !r && !n && !a && !s && (t.style.colorScheme = e, t.classList.add(e));
9250
9234
  }
9251
9235
  const OS = { content: { type: "ReactNode", required: !0 }, width: ce.width, minWidth: ce.minWidth, maxWidth: { ...ce.maxWidth, default: "360px" } }, Fr = o.forwardRef((e, t) => {
9252
- const { children: r, className: n, open: a, defaultOpen: s, onOpenChange: i, delayDuration: c, disableHoverableContent: l, content: d, container: u, forceMount: f, ...m } = O(e, OS), h = { open: a, defaultOpen: s, onOpenChange: i, delayDuration: c, disableHoverableContent: l };
9236
+ const { children: r, className: n, open: a, defaultOpen: s, onOpenChange: i, delayDuration: c, disableHoverableContent: l, content: d, container: u, forceMount: f, ...m } = k(e, OS), h = { open: a, defaultOpen: s, onOpenChange: i, delayDuration: c, disableHoverableContent: l };
9253
9237
  return o.createElement(aE, { ...h }, o.createElement(sE, { asChild: !0 }, r), o.createElement(iE, { container: u, forceMount: f }, o.createElement(me, { asChild: !0 }, o.createElement(cE, { sideOffset: 4, collisionPadding: 10, ...m, asChild: !1, ref: t, className: R("rt-TooltipContent", n) }, o.createElement(oe, { as: "p", className: "rt-TooltipText", size: "1" }, d), o.createElement(lE, { className: "rt-TooltipArrow" })))));
9254
9238
  });
9255
9239
  Fr.displayName = "Tooltip";