@stackable-labs/embeddables 1.57.1 → 1.57.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -5,7 +5,7 @@ import * as Sn from "react-dom";
5
5
  import ds from "react-dom";
6
6
  const Yl = () => {
7
7
  try {
8
- return "d146bb68-688a-44e7-aa94-f295dcb56cd2";
8
+ return "4020d256-debd-4031-aba6-c9ccf4834c3c";
9
9
  } catch {
10
10
  return "dev";
11
11
  }
@@ -534,26 +534,26 @@ const ec = (e) => {
534
534
  const y = (w) => {
535
535
  const x = w.data;
536
536
  if (!(!x || typeof x != "object" || !m.some((N) => {
537
- const R = Ct(N.id);
538
- return R && w.source === R.iframe.contentWindow;
537
+ const k = Ct(N.id);
538
+ return k && w.source === k.iframe.contentWindow;
539
539
  }))) {
540
540
  if (x.type === "surface-update" && x.surfaceId === e) {
541
- const N = m.find((E) => {
542
- const k = Ct(E.id);
543
- return k && w.source === k.iframe.contentWindow;
541
+ const N = m.find((R) => {
542
+ const E = Ct(R.id);
543
+ return E && w.source === E.iframe.contentWindow;
544
544
  });
545
545
  if (!N)
546
546
  return;
547
- const R = g(x.tree, w.source ?? null);
548
- u((E) => ({
549
- ...E,
550
- [N.id]: R
547
+ const k = g(x.tree, w.source ?? null);
548
+ u((R) => ({
549
+ ...R,
550
+ [N.id]: k
551
551
  }));
552
552
  }
553
553
  x.type === "surface-ready" && x.surfaceId === e && t && m.forEach((N) => {
554
- var E;
555
- const R = Ct(N.id);
556
- (E = R == null ? void 0 : R.iframe.contentWindow) == null || E.postMessage(
554
+ var R;
555
+ const k = Ct(N.id);
556
+ (R = k == null ? void 0 : k.iframe.contentWindow) == null || R.postMessage(
557
557
  { type: "context-update", surfaceId: e, context: t },
558
558
  "*"
559
559
  );
@@ -583,14 +583,14 @@ const ec = (e) => {
583
583
  }) : /* @__PURE__ */ p(_.Fragment, { children: v.children }, v.id), C = /* @__PURE__ */ p(_.Fragment, { children: x }, `extension:${v.id}`);
584
584
  if (y === 0 || !o)
585
585
  return [C];
586
- const N = w[y - 1], R = typeof o == "function" ? o({
586
+ const N = w[y - 1], k = typeof o == "function" ? o({
587
587
  index: y,
588
588
  total: w.length,
589
589
  previousExtensionId: N.id,
590
590
  extensionId: v.id
591
591
  }) : o;
592
592
  return [
593
- /* @__PURE__ */ p(_.Fragment, { children: R }, `separator:${N.id}:${v.id}:${y}`),
593
+ /* @__PURE__ */ p(_.Fragment, { children: k }, `separator:${N.id}:${v.id}:${y}`),
594
594
  C
595
595
  ];
596
596
  }) : r;
@@ -884,19 +884,19 @@ function Ac(e) {
884
884
  }
885
885
  const _c = (e) => {
886
886
  var t, n, o, r, s, a, i, l, d;
887
- const { invert: u, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: R, style: E, cancelButtonStyle: k, actionButtonStyle: O, className: L = "", descriptionClassName: B = "", duration: j, position: U, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [M, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [F, H] = _.useState(!1), [J, se] = _.useState(!1), [oe, te] = _.useState(!1), [ue, fe] = _.useState(0), [st, qe] = _.useState(0), Ne = _.useRef(c.duration || j || hr), Yt = _.useRef(null), be = _.useRef(null), Ol = y === 0, Ll = y + 1 <= h, xe = c.type, gt = c.dismissible !== !1, Dl = c.className || "", zl = c.descriptionClassName || "", qt = _.useMemo(() => v.findIndex((ee) => ee.toastId === c.id) || 0, [
887
+ const { invert: u, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: N, closeButton: k, style: R, cancelButtonStyle: E, actionButtonStyle: M, className: z = "", descriptionClassName: B = "", duration: U, position: j, gap: K, expandByDefault: I, classNames: S, icons: T, closeButtonAriaLabel: A = "Close toast" } = e, [O, P] = _.useState(null), [Q, ie] = _.useState(null), [G, Z] = _.useState(!1), [Y, X] = _.useState(!1), [F, H] = _.useState(!1), [J, se] = _.useState(!1), [oe, te] = _.useState(!1), [ue, fe] = _.useState(0), [st, qe] = _.useState(0), Ne = _.useRef(c.duration || U || hr), Yt = _.useRef(null), be = _.useRef(null), Ol = y === 0, Ll = y + 1 <= h, xe = c.type, gt = c.dismissible !== !1, Dl = c.className || "", zl = c.descriptionClassName || "", qt = _.useMemo(() => v.findIndex((ee) => ee.toastId === c.id) || 0, [
888
888
  v,
889
889
  c.id
890
890
  ]), $l = _.useMemo(() => {
891
891
  var ee;
892
- return (ee = c.closeButton) != null ? ee : R;
892
+ return (ee = c.closeButton) != null ? ee : k;
893
893
  }, [
894
894
  c.closeButton,
895
- R
896
- ]), ir = _.useMemo(() => c.duration || j || hr, [
895
+ k
896
+ ]), ir = _.useMemo(() => c.duration || U || hr, [
897
897
  c.duration,
898
- j
899
- ]), Gn = _.useRef(0), vt = _.useRef(0), lr = _.useRef(0), bt = _.useRef(null), [Fl, Bl] = U.split("-"), cr = _.useMemo(() => v.reduce((ee, me, ge) => ge >= qt ? ee : ee + me.height, 0), [
898
+ U
899
+ ]), Gn = _.useRef(0), vt = _.useRef(0), lr = _.useRef(0), bt = _.useRef(null), [Fl, Bl] = j.split("-"), cr = _.useMemo(() => v.reduce((ee, me, ge) => ge >= qt ? ee : ee + me.height, 0), [
900
900
  v,
901
901
  qt
902
902
  ]), dr = gc(), Hl = c.invert || u, Yn = xe === "loading";
@@ -1007,7 +1007,7 @@ const _c = (e) => {
1007
1007
  return /* @__PURE__ */ _.createElement("li", {
1008
1008
  tabIndex: 0,
1009
1009
  ref: be,
1010
- className: Le(L, Dl, S == null ? void 0 : S.toast, c == null || (t = c.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[xe], c == null || (n = c.classNames) == null ? void 0 : n[xe]),
1010
+ className: Le(z, Dl, S == null ? void 0 : S.toast, c == null || (t = c.classNames) == null ? void 0 : t.toast, S == null ? void 0 : S.default, S == null ? void 0 : S[xe], c == null || (n = c.classNames) == null ? void 0 : n[xe]),
1011
1011
  "data-sonner-toast": "",
1012
1012
  "data-rich-colors": (ur = c.richColors) != null ? ur : N,
1013
1013
  "data-styled": !(c.jsx || c.unstyled || m),
@@ -1034,7 +1034,7 @@ const _c = (e) => {
1034
1034
  "--z-index": w.length - y,
1035
1035
  "--offset": `${Y ? ue : vt.current}px`,
1036
1036
  "--initial-height": I ? "auto" : `${st}px`,
1037
- ...E,
1037
+ ...R,
1038
1038
  ...c.style
1039
1039
  },
1040
1040
  onDragEnd: () => {
@@ -1050,9 +1050,9 @@ const _c = (e) => {
1050
1050
  var ee, me, ge;
1051
1051
  if (J || !gt) return;
1052
1052
  bt.current = null;
1053
- const Se = Number(((ee = be.current) == null ? void 0 : ee.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Kt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Yt.current) == null ? void 0 : ge.getTime()), Ee = M === "x" ? Se : Kt, Xt = Math.abs(Ee) / he;
1053
+ const Se = Number(((ee = be.current) == null ? void 0 : ee.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Kt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Yt.current) == null ? void 0 : ge.getTime()), Ee = O === "x" ? Se : Kt, Xt = Math.abs(Ee) / he;
1054
1054
  if (Math.abs(Ee) >= Tc || Xt > 0.11) {
1055
- fe(vt.current), c.onDismiss == null || c.onDismiss.call(c, c), ie(M === "x" ? Se > 0 ? "right" : "left" : Kt > 0 ? "down" : "up"), Ke(), se(!0);
1055
+ fe(vt.current), c.onDismiss == null || c.onDismiss.call(c, c), ie(O === "x" ? Se > 0 ? "right" : "left" : Kt > 0 ? "down" : "up"), Ke(), se(!0);
1056
1056
  return;
1057
1057
  } else {
1058
1058
  var Te, Pe;
@@ -1065,14 +1065,14 @@ const _c = (e) => {
1065
1065
  if (!bt.current || !gt || ((me = window.getSelection()) == null ? void 0 : me.toString().length) > 0) return;
1066
1066
  const he = ee.clientY - bt.current.y, Ee = ee.clientX - bt.current.x;
1067
1067
  var Xt;
1068
- const Te = (Xt = e.swipeDirections) != null ? Xt : Ac(U);
1069
- !M && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && P(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1068
+ const Te = (Xt = e.swipeDirections) != null ? Xt : Ac(j);
1069
+ !O && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && P(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1070
1070
  let Pe = {
1071
1071
  x: 0,
1072
1072
  y: 0
1073
1073
  };
1074
1074
  const pr = (at) => 1 / (1.5 + Math.abs(at) / 20);
1075
- if (M === "y") {
1075
+ if (O === "y") {
1076
1076
  if (Te.includes("top") || Te.includes("bottom"))
1077
1077
  if (Te.includes("top") && he < 0 || Te.includes("bottom") && he > 0)
1078
1078
  Pe.y = he;
@@ -1080,7 +1080,7 @@ const _c = (e) => {
1080
1080
  const at = he * pr(he);
1081
1081
  Pe.y = Math.abs(at) < Math.abs(he) ? at : he;
1082
1082
  }
1083
- } else if (M === "x" && (Te.includes("left") || Te.includes("right")))
1083
+ } else if (O === "x" && (Te.includes("left") || Te.includes("right")))
1084
1084
  if (Te.includes("left") && Ee < 0 || Te.includes("right") && Ee > 0)
1085
1085
  Pe.x = Ee;
1086
1086
  else {
@@ -1113,7 +1113,7 @@ const _c = (e) => {
1113
1113
  }, typeof c.description == "function" ? c.description() : c.description) : null), /* @__PURE__ */ _.isValidElement(c.cancel) ? c.cancel : c.cancel && Jt(c.cancel) ? /* @__PURE__ */ _.createElement("button", {
1114
1114
  "data-button": !0,
1115
1115
  "data-cancel": !0,
1116
- style: c.cancelButtonStyle || k,
1116
+ style: c.cancelButtonStyle || E,
1117
1117
  onClick: (ee) => {
1118
1118
  Jt(c.cancel) && gt && (c.cancel.onClick == null || c.cancel.onClick.call(c.cancel, ee), Ke());
1119
1119
  },
@@ -1121,7 +1121,7 @@ const _c = (e) => {
1121
1121
  }, c.cancel.label) : null, /* @__PURE__ */ _.isValidElement(c.action) ? c.action : c.action && Jt(c.action) ? /* @__PURE__ */ _.createElement("button", {
1122
1122
  "data-button": !0,
1123
1123
  "data-action": !0,
1124
- style: c.actionButtonStyle || O,
1124
+ style: c.actionButtonStyle || M,
1125
1125
  onClick: (ee) => {
1126
1126
  Jt(c.action) && (c.action.onClick == null || c.action.onClick.call(c.action, ee), !ee.defaultPrevented && Ke());
1127
1127
  },
@@ -1164,16 +1164,16 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1164
1164
  const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
1165
1165
  "altKey",
1166
1166
  "KeyT"
1167
- ], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Cc, toastOptions: y, dir: w = gr(), gap: x = Nc, icons: C, containerAriaLabel: N = "Notifications" } = t, [R, E] = _.useState([]), k = _.useMemo(() => o ? R.filter((G) => G.toasterId === o) : R.filter((G) => !G.toasterId), [
1168
- R,
1167
+ ], expand: i, closeButton: l, className: d, offset: u, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = Cc, toastOptions: y, dir: w = gr(), gap: x = Nc, icons: C, containerAriaLabel: N = "Notifications" } = t, [k, R] = _.useState([]), E = _.useMemo(() => o ? k.filter((G) => G.toasterId === o) : k.filter((G) => !G.toasterId), [
1168
+ k,
1169
1169
  o
1170
- ]), O = _.useMemo(() => Array.from(new Set([
1170
+ ]), M = _.useMemo(() => Array.from(new Set([
1171
1171
  s
1172
- ].concat(k.filter((G) => G.position).map((G) => G.position)))), [
1173
- k,
1172
+ ].concat(E.filter((G) => G.position).map((G) => G.position)))), [
1173
+ E,
1174
1174
  s
1175
- ]), [L, B] = _.useState([]), [j, U] = _.useState(!1), [K, I] = _.useState(!1), [S, T] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = _.useRef(null), M = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = _.useRef(null), Q = _.useRef(!1), ie = _.useCallback((G) => {
1176
- E((Z) => {
1175
+ ]), [z, B] = _.useState([]), [U, j] = _.useState(!1), [K, I] = _.useState(!1), [S, T] = _.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = _.useRef(null), O = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = _.useRef(null), Q = _.useRef(!1), ie = _.useCallback((G) => {
1176
+ R((Z) => {
1177
1177
  var Y;
1178
1178
  return (Y = Z.find((X) => X.id === G.id)) != null && Y.delete || ye.dismiss(G.id), Z.filter(({ id: X }) => X !== G.id);
1179
1179
  });
@@ -1181,7 +1181,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1181
1181
  return _.useEffect(() => ye.subscribe((G) => {
1182
1182
  if (G.dismiss) {
1183
1183
  requestAnimationFrame(() => {
1184
- E((Z) => Z.map((Y) => Y.id === G.id ? {
1184
+ R((Z) => Z.map((Y) => Y.id === G.id ? {
1185
1185
  ...Y,
1186
1186
  delete: !0
1187
1187
  } : Y));
@@ -1190,7 +1190,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1190
1190
  }
1191
1191
  setTimeout(() => {
1192
1192
  ds.flushSync(() => {
1193
- E((Z) => {
1193
+ R((Z) => {
1194
1194
  const Y = Z.findIndex((X) => X.id === G.id);
1195
1195
  return Y !== -1 ? [
1196
1196
  ...Z.slice(0, Y),
@@ -1207,7 +1207,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1207
1207
  });
1208
1208
  });
1209
1209
  }), [
1210
- R
1210
+ k
1211
1211
  ]), _.useEffect(() => {
1212
1212
  if (m !== "system") {
1213
1213
  T(m);
@@ -1231,17 +1231,17 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1231
1231
  }, [
1232
1232
  m
1233
1233
  ]), _.useEffect(() => {
1234
- R.length <= 1 && U(!1);
1234
+ k.length <= 1 && j(!1);
1235
1235
  }, [
1236
- R
1236
+ k
1237
1237
  ]), _.useEffect(() => {
1238
1238
  const G = (Z) => {
1239
1239
  var Y;
1240
1240
  if (a.every((H) => Z[H] || Z.code === H)) {
1241
1241
  var F;
1242
- U(!0), (F = A.current) == null || F.focus();
1242
+ j(!0), (F = A.current) == null || F.focus();
1243
1243
  }
1244
- Z.code === "Escape" && (document.activeElement === A.current || (Y = A.current) != null && Y.contains(document.activeElement)) && U(!1);
1244
+ Z.code === "Escape" && (document.activeElement === A.current || (Y = A.current) != null && Y.contains(document.activeElement)) && j(!1);
1245
1245
  };
1246
1246
  return document.addEventListener("keydown", G), () => document.removeEventListener("keydown", G);
1247
1247
  }, [
@@ -1258,16 +1258,16 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1258
1258
  ]), // Remove item from normal navigation flow, only available via hotkey
1259
1259
  /* @__PURE__ */ _.createElement("section", {
1260
1260
  ref: n,
1261
- "aria-label": `${N} ${M}`,
1261
+ "aria-label": `${N} ${O}`,
1262
1262
  tabIndex: -1,
1263
1263
  "aria-live": "polite",
1264
1264
  "aria-relevant": "additions text",
1265
1265
  "aria-atomic": "false",
1266
1266
  suppressHydrationWarning: !0
1267
- }, O.map((G, Z) => {
1267
+ }, M.map((G, Z) => {
1268
1268
  var Y;
1269
1269
  const [X, F] = G.split("-");
1270
- return k.length ? /* @__PURE__ */ _.createElement("ol", {
1270
+ return E.length ? /* @__PURE__ */ _.createElement("ol", {
1271
1271
  key: G,
1272
1272
  dir: w === "auto" ? gr() : w,
1273
1273
  tabIndex: -1,
@@ -1278,7 +1278,7 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1278
1278
  "data-y-position": X,
1279
1279
  "data-x-position": F,
1280
1280
  style: {
1281
- "--front-toast-height": `${((Y = L[0]) == null ? void 0 : Y.height) || 0}px`,
1281
+ "--front-toast-height": `${((Y = z[0]) == null ? void 0 : Y.height) || 0}px`,
1282
1282
  "--width": `${Rc}px`,
1283
1283
  "--gap": `${x}px`,
1284
1284
  ...h,
@@ -1292,17 +1292,17 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1292
1292
  onFocus: (H) => {
1293
1293
  H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || Q.current || (Q.current = !0, P.current = H.relatedTarget);
1294
1294
  },
1295
- onMouseEnter: () => U(!0),
1296
- onMouseMove: () => U(!0),
1295
+ onMouseEnter: () => j(!0),
1296
+ onMouseMove: () => j(!0),
1297
1297
  onMouseLeave: () => {
1298
- K || U(!1);
1298
+ K || j(!1);
1299
1299
  },
1300
- onDragEnd: () => U(!1),
1300
+ onDragEnd: () => j(!1),
1301
1301
  onPointerDown: (H) => {
1302
1302
  H.target instanceof HTMLElement && H.target.dataset.dismissible === "false" || I(!0);
1303
1303
  },
1304
1304
  onPointerUp: () => I(!1)
1305
- }, k.filter((H) => !H.position && Z === 0 || H.position === G).map((H, J) => {
1305
+ }, E.filter((H) => !H.position && Z === 0 || H.position === G).map((H, J) => {
1306
1306
  var se, oe;
1307
1307
  return /* @__PURE__ */ _.createElement(_c, {
1308
1308
  key: H.id,
@@ -1325,12 +1325,12 @@ const Mc = /* @__PURE__ */ _.forwardRef(function(t, n) {
1325
1325
  actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
1326
1326
  closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
1327
1327
  removeToast: ie,
1328
- toasts: k.filter((te) => te.position == H.position),
1329
- heights: L.filter((te) => te.position == H.position),
1328
+ toasts: E.filter((te) => te.position == H.position),
1329
+ heights: z.filter((te) => te.position == H.position),
1330
1330
  setHeights: B,
1331
1331
  expandByDefault: i,
1332
1332
  gap: x,
1333
- expanded: j,
1333
+ expanded: U,
1334
1334
  swipeDirections: t.swipeDirections
1335
1335
  });
1336
1336
  })) : null;
@@ -2160,9 +2160,9 @@ const Wd = (e, t) => {
2160
2160
  continue;
2161
2161
  a.push(C);
2162
2162
  const N = r(y, v);
2163
- for (let R = 0; R < N.length; ++R) {
2164
- const E = N[R];
2165
- a.push(x + E);
2163
+ for (let k = 0; k < N.length; ++k) {
2164
+ const R = N[k];
2165
+ a.push(x + R);
2166
2166
  }
2167
2167
  l = u + (l.length > 0 ? " " + l : l);
2168
2168
  }
@@ -2200,7 +2200,7 @@ const Wd = (e, t) => {
2200
2200
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2201
2201
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2202
2202
  pu.test(e) && !mu.test(e)
2203
- ), Lo = () => !1, bu = (e) => hu.test(e), yu = (e) => gu.test(e), wu = (e) => !D(e) && !z(e), xu = (e) => nt(e, Ms, Lo), D = (e) => Ts.test(e), it = (e) => nt(e, Os, vu), Cr = (e) => nt(e, Pu, ne), Su = (e) => nt(e, Ds, As), Cu = (e) => nt(e, Ls, Lo), kr = (e) => nt(e, _s, Lo), ku = (e) => nt(e, Is, yu), Qt = (e) => nt(e, zs, bu), z = (e) => Ps.test(e), Ot = (e) => mt(e, Os), Eu = (e) => mt(e, Ls), Er = (e) => mt(e, _s), Ru = (e) => mt(e, Ms), Nu = (e) => mt(e, Is), en = (e) => mt(e, zs, !0), Tu = (e) => mt(e, Ds, !0), nt = (e, t, n) => {
2203
+ ), Lo = () => !1, bu = (e) => hu.test(e), yu = (e) => gu.test(e), wu = (e) => !L(e) && !D(e), xu = (e) => nt(e, Ms, Lo), L = (e) => Ts.test(e), it = (e) => nt(e, Os, vu), Cr = (e) => nt(e, Pu, ne), Su = (e) => nt(e, Ds, As), Cu = (e) => nt(e, Ls, Lo), kr = (e) => nt(e, _s, Lo), ku = (e) => nt(e, Is, yu), Qt = (e) => nt(e, zs, bu), D = (e) => Ps.test(e), Ot = (e) => mt(e, Os), Eu = (e) => mt(e, Ls), Er = (e) => mt(e, _s), Ru = (e) => mt(e, Ms), Nu = (e) => mt(e, Is), en = (e) => mt(e, zs, !0), Tu = (e) => mt(e, Ds, !0), nt = (e, t, n) => {
2204
2204
  const o = Ts.exec(e);
2205
2205
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
2206
2206
  }, mt = (e, t, n = !1) => {
@@ -2225,30 +2225,30 @@ const Wd = (e, t) => {
2225
2225
  "bottom-left",
2226
2226
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
2227
2227
  "left-bottom"
2228
- ], N = () => [...C(), z, D], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], k = () => [z, D, l], O = () => [Xe, "full", "auto", ...k()], L = () => [Ze, "none", "subgrid", z, D], B = () => ["auto", {
2229
- span: ["full", Ze, z, D]
2230
- }, Ze, z, D], j = () => [Ze, "auto", z, D], U = () => ["auto", "min", "max", "fr", z, D], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...k()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], M = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], P = () => [e, z, D], Q = () => [...C(), Er, kr, {
2231
- position: [z, D]
2228
+ ], N = () => [...C(), D, L], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], E = () => [D, L, l], M = () => [Xe, "full", "auto", ...E()], z = () => [Ze, "none", "subgrid", D, L], B = () => ["auto", {
2229
+ span: ["full", Ze, D, L]
2230
+ }, Ze, D, L], U = () => [Ze, "auto", D, L], j = () => ["auto", "min", "max", "fr", D, L], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["auto", ...E()], T = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], A = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...E()], O = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...E()], P = () => [e, D, L], Q = () => [...C(), Er, kr, {
2231
+ position: [D, L]
2232
2232
  }], ie = () => ["no-repeat", {
2233
2233
  repeat: ["", "x", "y", "space", "round"]
2234
2234
  }], G = () => ["auto", "cover", "contain", Ru, xu, {
2235
- size: [z, D]
2235
+ size: [D, L]
2236
2236
  }], Z = () => [qn, Ot, it], Y = () => [
2237
2237
  // Deprecated since Tailwind CSS v4.0.0
2238
2238
  "",
2239
2239
  "none",
2240
2240
  "full",
2241
2241
  d,
2242
- z,
2243
- D
2242
+ D,
2243
+ L
2244
2244
  ], X = () => ["", ne, Ot, it], F = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [ne, qn, Er, kr], se = () => [
2245
2245
  // Deprecated since Tailwind CSS v4.0.0
2246
2246
  "",
2247
2247
  "none",
2248
2248
  b,
2249
- z,
2250
- D
2251
- ], oe = () => ["none", ne, z, D], te = () => ["none", ne, z, D], ue = () => [ne, z, D], fe = () => [Xe, "full", ...k()];
2249
+ D,
2250
+ L
2251
+ ], oe = () => ["none", ne, D, L], te = () => ["none", ne, D, L], ue = () => [ne, D, L], fe = () => [Xe, "full", ...E()];
2252
2252
  return {
2253
2253
  cacheSize: 500,
2254
2254
  theme: {
@@ -2281,7 +2281,7 @@ const Wd = (e, t) => {
2281
2281
  * @see https://tailwindcss.com/docs/aspect-ratio
2282
2282
  */
2283
2283
  aspect: [{
2284
- aspect: ["auto", "square", Xe, D, z, v]
2284
+ aspect: ["auto", "square", Xe, L, D, v]
2285
2285
  }],
2286
2286
  /**
2287
2287
  * Container
@@ -2294,7 +2294,7 @@ const Wd = (e, t) => {
2294
2294
  * @see https://tailwindcss.com/docs/columns
2295
2295
  */
2296
2296
  columns: [{
2297
- columns: [ne, D, z, i]
2297
+ columns: [ne, L, D, i]
2298
2298
  }],
2299
2299
  /**
2300
2300
  * Break After
@@ -2379,42 +2379,42 @@ const Wd = (e, t) => {
2379
2379
  * @see https://tailwindcss.com/docs/overflow
2380
2380
  */
2381
2381
  overflow: [{
2382
- overflow: R()
2382
+ overflow: k()
2383
2383
  }],
2384
2384
  /**
2385
2385
  * Overflow X
2386
2386
  * @see https://tailwindcss.com/docs/overflow
2387
2387
  */
2388
2388
  "overflow-x": [{
2389
- "overflow-x": R()
2389
+ "overflow-x": k()
2390
2390
  }],
2391
2391
  /**
2392
2392
  * Overflow Y
2393
2393
  * @see https://tailwindcss.com/docs/overflow
2394
2394
  */
2395
2395
  "overflow-y": [{
2396
- "overflow-y": R()
2396
+ "overflow-y": k()
2397
2397
  }],
2398
2398
  /**
2399
2399
  * Overscroll Behavior
2400
2400
  * @see https://tailwindcss.com/docs/overscroll-behavior
2401
2401
  */
2402
2402
  overscroll: [{
2403
- overscroll: E()
2403
+ overscroll: R()
2404
2404
  }],
2405
2405
  /**
2406
2406
  * Overscroll Behavior X
2407
2407
  * @see https://tailwindcss.com/docs/overscroll-behavior
2408
2408
  */
2409
2409
  "overscroll-x": [{
2410
- "overscroll-x": E()
2410
+ "overscroll-x": R()
2411
2411
  }],
2412
2412
  /**
2413
2413
  * Overscroll Behavior Y
2414
2414
  * @see https://tailwindcss.com/docs/overscroll-behavior
2415
2415
  */
2416
2416
  "overscroll-y": [{
2417
- "overscroll-y": E()
2417
+ "overscroll-y": R()
2418
2418
  }],
2419
2419
  /**
2420
2420
  * Position
@@ -2426,21 +2426,21 @@ const Wd = (e, t) => {
2426
2426
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2427
2427
  */
2428
2428
  inset: [{
2429
- inset: O()
2429
+ inset: M()
2430
2430
  }],
2431
2431
  /**
2432
2432
  * Inset Inline
2433
2433
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2434
2434
  */
2435
2435
  "inset-x": [{
2436
- "inset-x": O()
2436
+ "inset-x": M()
2437
2437
  }],
2438
2438
  /**
2439
2439
  * Inset Block
2440
2440
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2441
2441
  */
2442
2442
  "inset-y": [{
2443
- "inset-y": O()
2443
+ "inset-y": M()
2444
2444
  }],
2445
2445
  /**
2446
2446
  * Inset Inline Start
@@ -2448,12 +2448,12 @@ const Wd = (e, t) => {
2448
2448
  * @todo class group will be renamed to `inset-s` in next major release
2449
2449
  */
2450
2450
  start: [{
2451
- "inset-s": O(),
2451
+ "inset-s": M(),
2452
2452
  /**
2453
2453
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
2454
2454
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2455
2455
  */
2456
- start: O()
2456
+ start: M()
2457
2457
  }],
2458
2458
  /**
2459
2459
  * Inset Inline End
@@ -2461,54 +2461,54 @@ const Wd = (e, t) => {
2461
2461
  * @todo class group will be renamed to `inset-e` in next major release
2462
2462
  */
2463
2463
  end: [{
2464
- "inset-e": O(),
2464
+ "inset-e": M(),
2465
2465
  /**
2466
2466
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
2467
2467
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
2468
2468
  */
2469
- end: O()
2469
+ end: M()
2470
2470
  }],
2471
2471
  /**
2472
2472
  * Inset Block Start
2473
2473
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2474
2474
  */
2475
2475
  "inset-bs": [{
2476
- "inset-bs": O()
2476
+ "inset-bs": M()
2477
2477
  }],
2478
2478
  /**
2479
2479
  * Inset Block End
2480
2480
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2481
2481
  */
2482
2482
  "inset-be": [{
2483
- "inset-be": O()
2483
+ "inset-be": M()
2484
2484
  }],
2485
2485
  /**
2486
2486
  * Top
2487
2487
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2488
2488
  */
2489
2489
  top: [{
2490
- top: O()
2490
+ top: M()
2491
2491
  }],
2492
2492
  /**
2493
2493
  * Right
2494
2494
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2495
2495
  */
2496
2496
  right: [{
2497
- right: O()
2497
+ right: M()
2498
2498
  }],
2499
2499
  /**
2500
2500
  * Bottom
2501
2501
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2502
2502
  */
2503
2503
  bottom: [{
2504
- bottom: O()
2504
+ bottom: M()
2505
2505
  }],
2506
2506
  /**
2507
2507
  * Left
2508
2508
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2509
2509
  */
2510
2510
  left: [{
2511
- left: O()
2511
+ left: M()
2512
2512
  }],
2513
2513
  /**
2514
2514
  * Visibility
@@ -2520,7 +2520,7 @@ const Wd = (e, t) => {
2520
2520
  * @see https://tailwindcss.com/docs/z-index
2521
2521
  */
2522
2522
  z: [{
2523
- z: [Ze, "auto", z, D]
2523
+ z: [Ze, "auto", D, L]
2524
2524
  }],
2525
2525
  // ------------------------
2526
2526
  // --- Flexbox and Grid ---
@@ -2530,7 +2530,7 @@ const Wd = (e, t) => {
2530
2530
  * @see https://tailwindcss.com/docs/flex-basis
2531
2531
  */
2532
2532
  basis: [{
2533
- basis: [Xe, "full", "auto", i, ...k()]
2533
+ basis: [Xe, "full", "auto", i, ...E()]
2534
2534
  }],
2535
2535
  /**
2536
2536
  * Flex Direction
@@ -2551,35 +2551,35 @@ const Wd = (e, t) => {
2551
2551
  * @see https://tailwindcss.com/docs/flex
2552
2552
  */
2553
2553
  flex: [{
2554
- flex: [ne, Xe, "auto", "initial", "none", D]
2554
+ flex: [ne, Xe, "auto", "initial", "none", L]
2555
2555
  }],
2556
2556
  /**
2557
2557
  * Flex Grow
2558
2558
  * @see https://tailwindcss.com/docs/flex-grow
2559
2559
  */
2560
2560
  grow: [{
2561
- grow: ["", ne, z, D]
2561
+ grow: ["", ne, D, L]
2562
2562
  }],
2563
2563
  /**
2564
2564
  * Flex Shrink
2565
2565
  * @see https://tailwindcss.com/docs/flex-shrink
2566
2566
  */
2567
2567
  shrink: [{
2568
- shrink: ["", ne, z, D]
2568
+ shrink: ["", ne, D, L]
2569
2569
  }],
2570
2570
  /**
2571
2571
  * Order
2572
2572
  * @see https://tailwindcss.com/docs/order
2573
2573
  */
2574
2574
  order: [{
2575
- order: [Ze, "first", "last", "none", z, D]
2575
+ order: [Ze, "first", "last", "none", D, L]
2576
2576
  }],
2577
2577
  /**
2578
2578
  * Grid Template Columns
2579
2579
  * @see https://tailwindcss.com/docs/grid-template-columns
2580
2580
  */
2581
2581
  "grid-cols": [{
2582
- "grid-cols": L()
2582
+ "grid-cols": z()
2583
2583
  }],
2584
2584
  /**
2585
2585
  * Grid Column Start / End
@@ -2593,21 +2593,21 @@ const Wd = (e, t) => {
2593
2593
  * @see https://tailwindcss.com/docs/grid-column
2594
2594
  */
2595
2595
  "col-start": [{
2596
- "col-start": j()
2596
+ "col-start": U()
2597
2597
  }],
2598
2598
  /**
2599
2599
  * Grid Column End
2600
2600
  * @see https://tailwindcss.com/docs/grid-column
2601
2601
  */
2602
2602
  "col-end": [{
2603
- "col-end": j()
2603
+ "col-end": U()
2604
2604
  }],
2605
2605
  /**
2606
2606
  * Grid Template Rows
2607
2607
  * @see https://tailwindcss.com/docs/grid-template-rows
2608
2608
  */
2609
2609
  "grid-rows": [{
2610
- "grid-rows": L()
2610
+ "grid-rows": z()
2611
2611
  }],
2612
2612
  /**
2613
2613
  * Grid Row Start / End
@@ -2621,14 +2621,14 @@ const Wd = (e, t) => {
2621
2621
  * @see https://tailwindcss.com/docs/grid-row
2622
2622
  */
2623
2623
  "row-start": [{
2624
- "row-start": j()
2624
+ "row-start": U()
2625
2625
  }],
2626
2626
  /**
2627
2627
  * Grid Row End
2628
2628
  * @see https://tailwindcss.com/docs/grid-row
2629
2629
  */
2630
2630
  "row-end": [{
2631
- "row-end": j()
2631
+ "row-end": U()
2632
2632
  }],
2633
2633
  /**
2634
2634
  * Grid Auto Flow
@@ -2642,35 +2642,35 @@ const Wd = (e, t) => {
2642
2642
  * @see https://tailwindcss.com/docs/grid-auto-columns
2643
2643
  */
2644
2644
  "auto-cols": [{
2645
- "auto-cols": U()
2645
+ "auto-cols": j()
2646
2646
  }],
2647
2647
  /**
2648
2648
  * Grid Auto Rows
2649
2649
  * @see https://tailwindcss.com/docs/grid-auto-rows
2650
2650
  */
2651
2651
  "auto-rows": [{
2652
- "auto-rows": U()
2652
+ "auto-rows": j()
2653
2653
  }],
2654
2654
  /**
2655
2655
  * Gap
2656
2656
  * @see https://tailwindcss.com/docs/gap
2657
2657
  */
2658
2658
  gap: [{
2659
- gap: k()
2659
+ gap: E()
2660
2660
  }],
2661
2661
  /**
2662
2662
  * Gap X
2663
2663
  * @see https://tailwindcss.com/docs/gap
2664
2664
  */
2665
2665
  "gap-x": [{
2666
- "gap-x": k()
2666
+ "gap-x": E()
2667
2667
  }],
2668
2668
  /**
2669
2669
  * Gap Y
2670
2670
  * @see https://tailwindcss.com/docs/gap
2671
2671
  */
2672
2672
  "gap-y": [{
2673
- "gap-y": k()
2673
+ "gap-y": E()
2674
2674
  }],
2675
2675
  /**
2676
2676
  * Justify Content
@@ -2745,77 +2745,77 @@ const Wd = (e, t) => {
2745
2745
  * @see https://tailwindcss.com/docs/padding
2746
2746
  */
2747
2747
  p: [{
2748
- p: k()
2748
+ p: E()
2749
2749
  }],
2750
2750
  /**
2751
2751
  * Padding Inline
2752
2752
  * @see https://tailwindcss.com/docs/padding
2753
2753
  */
2754
2754
  px: [{
2755
- px: k()
2755
+ px: E()
2756
2756
  }],
2757
2757
  /**
2758
2758
  * Padding Block
2759
2759
  * @see https://tailwindcss.com/docs/padding
2760
2760
  */
2761
2761
  py: [{
2762
- py: k()
2762
+ py: E()
2763
2763
  }],
2764
2764
  /**
2765
2765
  * Padding Inline Start
2766
2766
  * @see https://tailwindcss.com/docs/padding
2767
2767
  */
2768
2768
  ps: [{
2769
- ps: k()
2769
+ ps: E()
2770
2770
  }],
2771
2771
  /**
2772
2772
  * Padding Inline End
2773
2773
  * @see https://tailwindcss.com/docs/padding
2774
2774
  */
2775
2775
  pe: [{
2776
- pe: k()
2776
+ pe: E()
2777
2777
  }],
2778
2778
  /**
2779
2779
  * Padding Block Start
2780
2780
  * @see https://tailwindcss.com/docs/padding
2781
2781
  */
2782
2782
  pbs: [{
2783
- pbs: k()
2783
+ pbs: E()
2784
2784
  }],
2785
2785
  /**
2786
2786
  * Padding Block End
2787
2787
  * @see https://tailwindcss.com/docs/padding
2788
2788
  */
2789
2789
  pbe: [{
2790
- pbe: k()
2790
+ pbe: E()
2791
2791
  }],
2792
2792
  /**
2793
2793
  * Padding Top
2794
2794
  * @see https://tailwindcss.com/docs/padding
2795
2795
  */
2796
2796
  pt: [{
2797
- pt: k()
2797
+ pt: E()
2798
2798
  }],
2799
2799
  /**
2800
2800
  * Padding Right
2801
2801
  * @see https://tailwindcss.com/docs/padding
2802
2802
  */
2803
2803
  pr: [{
2804
- pr: k()
2804
+ pr: E()
2805
2805
  }],
2806
2806
  /**
2807
2807
  * Padding Bottom
2808
2808
  * @see https://tailwindcss.com/docs/padding
2809
2809
  */
2810
2810
  pb: [{
2811
- pb: k()
2811
+ pb: E()
2812
2812
  }],
2813
2813
  /**
2814
2814
  * Padding Left
2815
2815
  * @see https://tailwindcss.com/docs/padding
2816
2816
  */
2817
2817
  pl: [{
2818
- pl: k()
2818
+ pl: E()
2819
2819
  }],
2820
2820
  /**
2821
2821
  * Margin
@@ -2899,7 +2899,7 @@ const Wd = (e, t) => {
2899
2899
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2900
2900
  */
2901
2901
  "space-x": [{
2902
- "space-x": k()
2902
+ "space-x": E()
2903
2903
  }],
2904
2904
  /**
2905
2905
  * Space Between X Reverse
@@ -2911,7 +2911,7 @@ const Wd = (e, t) => {
2911
2911
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2912
2912
  */
2913
2913
  "space-y": [{
2914
- "space-y": k()
2914
+ "space-y": E()
2915
2915
  }],
2916
2916
  /**
2917
2917
  * Space Between Y Reverse
@@ -2954,21 +2954,21 @@ const Wd = (e, t) => {
2954
2954
  * @see https://tailwindcss.com/docs/height
2955
2955
  */
2956
2956
  "block-size": [{
2957
- block: ["auto", ...M()]
2957
+ block: ["auto", ...O()]
2958
2958
  }],
2959
2959
  /**
2960
2960
  * Min-Block Size
2961
2961
  * @see https://tailwindcss.com/docs/min-height
2962
2962
  */
2963
2963
  "min-block-size": [{
2964
- "min-block": ["auto", ...M()]
2964
+ "min-block": ["auto", ...O()]
2965
2965
  }],
2966
2966
  /**
2967
2967
  * Max-Block Size
2968
2968
  * @see https://tailwindcss.com/docs/max-height
2969
2969
  */
2970
2970
  "max-block-size": [{
2971
- "max-block": ["none", ...M()]
2971
+ "max-block": ["none", ...O()]
2972
2972
  }],
2973
2973
  /**
2974
2974
  * Width
@@ -3061,7 +3061,7 @@ const Wd = (e, t) => {
3061
3061
  * @see https://tailwindcss.com/docs/font-stretch
3062
3062
  */
3063
3063
  "font-stretch": [{
3064
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qn, D]
3064
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qn, L]
3065
3065
  }],
3066
3066
  /**
3067
3067
  * Font Family
@@ -3075,7 +3075,7 @@ const Wd = (e, t) => {
3075
3075
  * @see https://tailwindcss.com/docs/font-feature-settings
3076
3076
  */
3077
3077
  "font-features": [{
3078
- "font-features": [D]
3078
+ "font-features": [L]
3079
3079
  }],
3080
3080
  /**
3081
3081
  * Font Variant Numeric
@@ -3112,14 +3112,14 @@ const Wd = (e, t) => {
3112
3112
  * @see https://tailwindcss.com/docs/letter-spacing
3113
3113
  */
3114
3114
  tracking: [{
3115
- tracking: [r, z, D]
3115
+ tracking: [r, D, L]
3116
3116
  }],
3117
3117
  /**
3118
3118
  * Line Clamp
3119
3119
  * @see https://tailwindcss.com/docs/line-clamp
3120
3120
  */
3121
3121
  "line-clamp": [{
3122
- "line-clamp": [ne, "none", z, Cr]
3122
+ "line-clamp": [ne, "none", D, Cr]
3123
3123
  }],
3124
3124
  /**
3125
3125
  * Line Height
@@ -3129,7 +3129,7 @@ const Wd = (e, t) => {
3129
3129
  leading: [
3130
3130
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
3131
3131
  s,
3132
- ...k()
3132
+ ...E()
3133
3133
  ]
3134
3134
  }],
3135
3135
  /**
@@ -3137,7 +3137,7 @@ const Wd = (e, t) => {
3137
3137
  * @see https://tailwindcss.com/docs/list-style-image
3138
3138
  */
3139
3139
  "list-image": [{
3140
- "list-image": ["none", z, D]
3140
+ "list-image": ["none", D, L]
3141
3141
  }],
3142
3142
  /**
3143
3143
  * List Style Position
@@ -3151,7 +3151,7 @@ const Wd = (e, t) => {
3151
3151
  * @see https://tailwindcss.com/docs/list-style-type
3152
3152
  */
3153
3153
  "list-style-type": [{
3154
- list: ["disc", "decimal", "none", z, D]
3154
+ list: ["disc", "decimal", "none", D, L]
3155
3155
  }],
3156
3156
  /**
3157
3157
  * Text Alignment
@@ -3192,7 +3192,7 @@ const Wd = (e, t) => {
3192
3192
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3193
3193
  */
3194
3194
  "text-decoration-thickness": [{
3195
- decoration: [ne, "from-font", "auto", z, it]
3195
+ decoration: [ne, "from-font", "auto", D, it]
3196
3196
  }],
3197
3197
  /**
3198
3198
  * Text Decoration Color
@@ -3206,7 +3206,7 @@ const Wd = (e, t) => {
3206
3206
  * @see https://tailwindcss.com/docs/text-underline-offset
3207
3207
  */
3208
3208
  "underline-offset": [{
3209
- "underline-offset": [ne, "auto", z, D]
3209
+ "underline-offset": [ne, "auto", D, L]
3210
3210
  }],
3211
3211
  /**
3212
3212
  * Text Transform
@@ -3230,14 +3230,14 @@ const Wd = (e, t) => {
3230
3230
  * @see https://tailwindcss.com/docs/text-indent
3231
3231
  */
3232
3232
  indent: [{
3233
- indent: k()
3233
+ indent: E()
3234
3234
  }],
3235
3235
  /**
3236
3236
  * Vertical Alignment
3237
3237
  * @see https://tailwindcss.com/docs/vertical-align
3238
3238
  */
3239
3239
  "vertical-align": [{
3240
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", z, D]
3240
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D, L]
3241
3241
  }],
3242
3242
  /**
3243
3243
  * Whitespace
@@ -3272,7 +3272,7 @@ const Wd = (e, t) => {
3272
3272
  * @see https://tailwindcss.com/docs/content
3273
3273
  */
3274
3274
  content: [{
3275
- content: ["none", z, D]
3275
+ content: ["none", D, L]
3276
3276
  }],
3277
3277
  // -------------------
3278
3278
  // --- Backgrounds ---
@@ -3327,9 +3327,9 @@ const Wd = (e, t) => {
3327
3327
  bg: ["none", {
3328
3328
  linear: [{
3329
3329
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3330
- }, Ze, z, D],
3331
- radial: ["", z, D],
3332
- conic: [Ze, z, D]
3330
+ }, Ze, D, L],
3331
+ radial: ["", D, L],
3332
+ conic: [Ze, D, L]
3333
3333
  }, Nu, ku]
3334
3334
  }],
3335
3335
  /**
@@ -3700,7 +3700,7 @@ const Wd = (e, t) => {
3700
3700
  * @see https://tailwindcss.com/docs/outline-offset
3701
3701
  */
3702
3702
  "outline-offset": [{
3703
- "outline-offset": [ne, z, D]
3703
+ "outline-offset": [ne, D, L]
3704
3704
  }],
3705
3705
  /**
3706
3706
  * Outline Width
@@ -3826,7 +3826,7 @@ const Wd = (e, t) => {
3826
3826
  * @see https://tailwindcss.com/docs/opacity
3827
3827
  */
3828
3828
  opacity: [{
3829
- opacity: [ne, z, D]
3829
+ opacity: [ne, D, L]
3830
3830
  }],
3831
3831
  /**
3832
3832
  * Mix Blend Mode
@@ -3948,7 +3948,7 @@ const Wd = (e, t) => {
3948
3948
  "mask-y-to": P()
3949
3949
  }],
3950
3950
  "mask-image-radial": [{
3951
- "mask-radial": [z, D]
3951
+ "mask-radial": [D, L]
3952
3952
  }],
3953
3953
  "mask-image-radial-from-pos": [{
3954
3954
  "mask-radial-from": J()
@@ -4036,7 +4036,7 @@ const Wd = (e, t) => {
4036
4036
  * @see https://tailwindcss.com/docs/mask-image
4037
4037
  */
4038
4038
  "mask-image": [{
4039
- mask: ["none", z, D]
4039
+ mask: ["none", D, L]
4040
4040
  }],
4041
4041
  // ---------------
4042
4042
  // --- Filters ---
@@ -4050,8 +4050,8 @@ const Wd = (e, t) => {
4050
4050
  // Deprecated since Tailwind CSS v3.0.0
4051
4051
  "",
4052
4052
  "none",
4053
- z,
4054
- D
4053
+ D,
4054
+ L
4055
4055
  ]
4056
4056
  }],
4057
4057
  /**
@@ -4066,14 +4066,14 @@ const Wd = (e, t) => {
4066
4066
  * @see https://tailwindcss.com/docs/brightness
4067
4067
  */
4068
4068
  brightness: [{
4069
- brightness: [ne, z, D]
4069
+ brightness: [ne, D, L]
4070
4070
  }],
4071
4071
  /**
4072
4072
  * Contrast
4073
4073
  * @see https://tailwindcss.com/docs/contrast
4074
4074
  */
4075
4075
  contrast: [{
4076
- contrast: [ne, z, D]
4076
+ contrast: [ne, D, L]
4077
4077
  }],
4078
4078
  /**
4079
4079
  * Drop Shadow
@@ -4101,35 +4101,35 @@ const Wd = (e, t) => {
4101
4101
  * @see https://tailwindcss.com/docs/grayscale
4102
4102
  */
4103
4103
  grayscale: [{
4104
- grayscale: ["", ne, z, D]
4104
+ grayscale: ["", ne, D, L]
4105
4105
  }],
4106
4106
  /**
4107
4107
  * Hue Rotate
4108
4108
  * @see https://tailwindcss.com/docs/hue-rotate
4109
4109
  */
4110
4110
  "hue-rotate": [{
4111
- "hue-rotate": [ne, z, D]
4111
+ "hue-rotate": [ne, D, L]
4112
4112
  }],
4113
4113
  /**
4114
4114
  * Invert
4115
4115
  * @see https://tailwindcss.com/docs/invert
4116
4116
  */
4117
4117
  invert: [{
4118
- invert: ["", ne, z, D]
4118
+ invert: ["", ne, D, L]
4119
4119
  }],
4120
4120
  /**
4121
4121
  * Saturate
4122
4122
  * @see https://tailwindcss.com/docs/saturate
4123
4123
  */
4124
4124
  saturate: [{
4125
- saturate: [ne, z, D]
4125
+ saturate: [ne, D, L]
4126
4126
  }],
4127
4127
  /**
4128
4128
  * Sepia
4129
4129
  * @see https://tailwindcss.com/docs/sepia
4130
4130
  */
4131
4131
  sepia: [{
4132
- sepia: ["", ne, z, D]
4132
+ sepia: ["", ne, D, L]
4133
4133
  }],
4134
4134
  /**
4135
4135
  * Backdrop Filter
@@ -4140,8 +4140,8 @@ const Wd = (e, t) => {
4140
4140
  // Deprecated since Tailwind CSS v3.0.0
4141
4141
  "",
4142
4142
  "none",
4143
- z,
4144
- D
4143
+ D,
4144
+ L
4145
4145
  ]
4146
4146
  }],
4147
4147
  /**
@@ -4156,56 +4156,56 @@ const Wd = (e, t) => {
4156
4156
  * @see https://tailwindcss.com/docs/backdrop-brightness
4157
4157
  */
4158
4158
  "backdrop-brightness": [{
4159
- "backdrop-brightness": [ne, z, D]
4159
+ "backdrop-brightness": [ne, D, L]
4160
4160
  }],
4161
4161
  /**
4162
4162
  * Backdrop Contrast
4163
4163
  * @see https://tailwindcss.com/docs/backdrop-contrast
4164
4164
  */
4165
4165
  "backdrop-contrast": [{
4166
- "backdrop-contrast": [ne, z, D]
4166
+ "backdrop-contrast": [ne, D, L]
4167
4167
  }],
4168
4168
  /**
4169
4169
  * Backdrop Grayscale
4170
4170
  * @see https://tailwindcss.com/docs/backdrop-grayscale
4171
4171
  */
4172
4172
  "backdrop-grayscale": [{
4173
- "backdrop-grayscale": ["", ne, z, D]
4173
+ "backdrop-grayscale": ["", ne, D, L]
4174
4174
  }],
4175
4175
  /**
4176
4176
  * Backdrop Hue Rotate
4177
4177
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
4178
4178
  */
4179
4179
  "backdrop-hue-rotate": [{
4180
- "backdrop-hue-rotate": [ne, z, D]
4180
+ "backdrop-hue-rotate": [ne, D, L]
4181
4181
  }],
4182
4182
  /**
4183
4183
  * Backdrop Invert
4184
4184
  * @see https://tailwindcss.com/docs/backdrop-invert
4185
4185
  */
4186
4186
  "backdrop-invert": [{
4187
- "backdrop-invert": ["", ne, z, D]
4187
+ "backdrop-invert": ["", ne, D, L]
4188
4188
  }],
4189
4189
  /**
4190
4190
  * Backdrop Opacity
4191
4191
  * @see https://tailwindcss.com/docs/backdrop-opacity
4192
4192
  */
4193
4193
  "backdrop-opacity": [{
4194
- "backdrop-opacity": [ne, z, D]
4194
+ "backdrop-opacity": [ne, D, L]
4195
4195
  }],
4196
4196
  /**
4197
4197
  * Backdrop Saturate
4198
4198
  * @see https://tailwindcss.com/docs/backdrop-saturate
4199
4199
  */
4200
4200
  "backdrop-saturate": [{
4201
- "backdrop-saturate": [ne, z, D]
4201
+ "backdrop-saturate": [ne, D, L]
4202
4202
  }],
4203
4203
  /**
4204
4204
  * Backdrop Sepia
4205
4205
  * @see https://tailwindcss.com/docs/backdrop-sepia
4206
4206
  */
4207
4207
  "backdrop-sepia": [{
4208
- "backdrop-sepia": ["", ne, z, D]
4208
+ "backdrop-sepia": ["", ne, D, L]
4209
4209
  }],
4210
4210
  // --------------
4211
4211
  // --- Tables ---
@@ -4222,21 +4222,21 @@ const Wd = (e, t) => {
4222
4222
  * @see https://tailwindcss.com/docs/border-spacing
4223
4223
  */
4224
4224
  "border-spacing": [{
4225
- "border-spacing": k()
4225
+ "border-spacing": E()
4226
4226
  }],
4227
4227
  /**
4228
4228
  * Border Spacing X
4229
4229
  * @see https://tailwindcss.com/docs/border-spacing
4230
4230
  */
4231
4231
  "border-spacing-x": [{
4232
- "border-spacing-x": k()
4232
+ "border-spacing-x": E()
4233
4233
  }],
4234
4234
  /**
4235
4235
  * Border Spacing Y
4236
4236
  * @see https://tailwindcss.com/docs/border-spacing
4237
4237
  */
4238
4238
  "border-spacing-y": [{
4239
- "border-spacing-y": k()
4239
+ "border-spacing-y": E()
4240
4240
  }],
4241
4241
  /**
4242
4242
  * Table Layout
@@ -4260,7 +4260,7 @@ const Wd = (e, t) => {
4260
4260
  * @see https://tailwindcss.com/docs/transition-property
4261
4261
  */
4262
4262
  transition: [{
4263
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", z, D]
4263
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", D, L]
4264
4264
  }],
4265
4265
  /**
4266
4266
  * Transition Behavior
@@ -4274,28 +4274,28 @@ const Wd = (e, t) => {
4274
4274
  * @see https://tailwindcss.com/docs/transition-duration
4275
4275
  */
4276
4276
  duration: [{
4277
- duration: [ne, "initial", z, D]
4277
+ duration: [ne, "initial", D, L]
4278
4278
  }],
4279
4279
  /**
4280
4280
  * Transition Timing Function
4281
4281
  * @see https://tailwindcss.com/docs/transition-timing-function
4282
4282
  */
4283
4283
  ease: [{
4284
- ease: ["linear", "initial", y, z, D]
4284
+ ease: ["linear", "initial", y, D, L]
4285
4285
  }],
4286
4286
  /**
4287
4287
  * Transition Delay
4288
4288
  * @see https://tailwindcss.com/docs/transition-delay
4289
4289
  */
4290
4290
  delay: [{
4291
- delay: [ne, z, D]
4291
+ delay: [ne, D, L]
4292
4292
  }],
4293
4293
  /**
4294
4294
  * Animation
4295
4295
  * @see https://tailwindcss.com/docs/animation
4296
4296
  */
4297
4297
  animate: [{
4298
- animate: ["none", w, z, D]
4298
+ animate: ["none", w, D, L]
4299
4299
  }],
4300
4300
  // ------------------
4301
4301
  // --- Transforms ---
@@ -4312,7 +4312,7 @@ const Wd = (e, t) => {
4312
4312
  * @see https://tailwindcss.com/docs/perspective
4313
4313
  */
4314
4314
  perspective: [{
4315
- perspective: [h, z, D]
4315
+ perspective: [h, D, L]
4316
4316
  }],
4317
4317
  /**
4318
4318
  * Perspective Origin
@@ -4408,7 +4408,7 @@ const Wd = (e, t) => {
4408
4408
  * @see https://tailwindcss.com/docs/transform
4409
4409
  */
4410
4410
  transform: [{
4411
- transform: [z, D, "", "none", "gpu", "cpu"]
4411
+ transform: [D, L, "", "none", "gpu", "cpu"]
4412
4412
  }],
4413
4413
  /**
4414
4414
  * Transform Origin
@@ -4493,7 +4493,7 @@ const Wd = (e, t) => {
4493
4493
  * @see https://tailwindcss.com/docs/cursor
4494
4494
  */
4495
4495
  cursor: [{
4496
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", z, D]
4496
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D, L]
4497
4497
  }],
4498
4498
  /**
4499
4499
  * Field Sizing
@@ -4528,154 +4528,154 @@ const Wd = (e, t) => {
4528
4528
  * @see https://tailwindcss.com/docs/scroll-margin
4529
4529
  */
4530
4530
  "scroll-m": [{
4531
- "scroll-m": k()
4531
+ "scroll-m": E()
4532
4532
  }],
4533
4533
  /**
4534
4534
  * Scroll Margin Inline
4535
4535
  * @see https://tailwindcss.com/docs/scroll-margin
4536
4536
  */
4537
4537
  "scroll-mx": [{
4538
- "scroll-mx": k()
4538
+ "scroll-mx": E()
4539
4539
  }],
4540
4540
  /**
4541
4541
  * Scroll Margin Block
4542
4542
  * @see https://tailwindcss.com/docs/scroll-margin
4543
4543
  */
4544
4544
  "scroll-my": [{
4545
- "scroll-my": k()
4545
+ "scroll-my": E()
4546
4546
  }],
4547
4547
  /**
4548
4548
  * Scroll Margin Inline Start
4549
4549
  * @see https://tailwindcss.com/docs/scroll-margin
4550
4550
  */
4551
4551
  "scroll-ms": [{
4552
- "scroll-ms": k()
4552
+ "scroll-ms": E()
4553
4553
  }],
4554
4554
  /**
4555
4555
  * Scroll Margin Inline End
4556
4556
  * @see https://tailwindcss.com/docs/scroll-margin
4557
4557
  */
4558
4558
  "scroll-me": [{
4559
- "scroll-me": k()
4559
+ "scroll-me": E()
4560
4560
  }],
4561
4561
  /**
4562
4562
  * Scroll Margin Block Start
4563
4563
  * @see https://tailwindcss.com/docs/scroll-margin
4564
4564
  */
4565
4565
  "scroll-mbs": [{
4566
- "scroll-mbs": k()
4566
+ "scroll-mbs": E()
4567
4567
  }],
4568
4568
  /**
4569
4569
  * Scroll Margin Block End
4570
4570
  * @see https://tailwindcss.com/docs/scroll-margin
4571
4571
  */
4572
4572
  "scroll-mbe": [{
4573
- "scroll-mbe": k()
4573
+ "scroll-mbe": E()
4574
4574
  }],
4575
4575
  /**
4576
4576
  * Scroll Margin Top
4577
4577
  * @see https://tailwindcss.com/docs/scroll-margin
4578
4578
  */
4579
4579
  "scroll-mt": [{
4580
- "scroll-mt": k()
4580
+ "scroll-mt": E()
4581
4581
  }],
4582
4582
  /**
4583
4583
  * Scroll Margin Right
4584
4584
  * @see https://tailwindcss.com/docs/scroll-margin
4585
4585
  */
4586
4586
  "scroll-mr": [{
4587
- "scroll-mr": k()
4587
+ "scroll-mr": E()
4588
4588
  }],
4589
4589
  /**
4590
4590
  * Scroll Margin Bottom
4591
4591
  * @see https://tailwindcss.com/docs/scroll-margin
4592
4592
  */
4593
4593
  "scroll-mb": [{
4594
- "scroll-mb": k()
4594
+ "scroll-mb": E()
4595
4595
  }],
4596
4596
  /**
4597
4597
  * Scroll Margin Left
4598
4598
  * @see https://tailwindcss.com/docs/scroll-margin
4599
4599
  */
4600
4600
  "scroll-ml": [{
4601
- "scroll-ml": k()
4601
+ "scroll-ml": E()
4602
4602
  }],
4603
4603
  /**
4604
4604
  * Scroll Padding
4605
4605
  * @see https://tailwindcss.com/docs/scroll-padding
4606
4606
  */
4607
4607
  "scroll-p": [{
4608
- "scroll-p": k()
4608
+ "scroll-p": E()
4609
4609
  }],
4610
4610
  /**
4611
4611
  * Scroll Padding Inline
4612
4612
  * @see https://tailwindcss.com/docs/scroll-padding
4613
4613
  */
4614
4614
  "scroll-px": [{
4615
- "scroll-px": k()
4615
+ "scroll-px": E()
4616
4616
  }],
4617
4617
  /**
4618
4618
  * Scroll Padding Block
4619
4619
  * @see https://tailwindcss.com/docs/scroll-padding
4620
4620
  */
4621
4621
  "scroll-py": [{
4622
- "scroll-py": k()
4622
+ "scroll-py": E()
4623
4623
  }],
4624
4624
  /**
4625
4625
  * Scroll Padding Inline Start
4626
4626
  * @see https://tailwindcss.com/docs/scroll-padding
4627
4627
  */
4628
4628
  "scroll-ps": [{
4629
- "scroll-ps": k()
4629
+ "scroll-ps": E()
4630
4630
  }],
4631
4631
  /**
4632
4632
  * Scroll Padding Inline End
4633
4633
  * @see https://tailwindcss.com/docs/scroll-padding
4634
4634
  */
4635
4635
  "scroll-pe": [{
4636
- "scroll-pe": k()
4636
+ "scroll-pe": E()
4637
4637
  }],
4638
4638
  /**
4639
4639
  * Scroll Padding Block Start
4640
4640
  * @see https://tailwindcss.com/docs/scroll-padding
4641
4641
  */
4642
4642
  "scroll-pbs": [{
4643
- "scroll-pbs": k()
4643
+ "scroll-pbs": E()
4644
4644
  }],
4645
4645
  /**
4646
4646
  * Scroll Padding Block End
4647
4647
  * @see https://tailwindcss.com/docs/scroll-padding
4648
4648
  */
4649
4649
  "scroll-pbe": [{
4650
- "scroll-pbe": k()
4650
+ "scroll-pbe": E()
4651
4651
  }],
4652
4652
  /**
4653
4653
  * Scroll Padding Top
4654
4654
  * @see https://tailwindcss.com/docs/scroll-padding
4655
4655
  */
4656
4656
  "scroll-pt": [{
4657
- "scroll-pt": k()
4657
+ "scroll-pt": E()
4658
4658
  }],
4659
4659
  /**
4660
4660
  * Scroll Padding Right
4661
4661
  * @see https://tailwindcss.com/docs/scroll-padding
4662
4662
  */
4663
4663
  "scroll-pr": [{
4664
- "scroll-pr": k()
4664
+ "scroll-pr": E()
4665
4665
  }],
4666
4666
  /**
4667
4667
  * Scroll Padding Bottom
4668
4668
  * @see https://tailwindcss.com/docs/scroll-padding
4669
4669
  */
4670
4670
  "scroll-pb": [{
4671
- "scroll-pb": k()
4671
+ "scroll-pb": E()
4672
4672
  }],
4673
4673
  /**
4674
4674
  * Scroll Padding Left
4675
4675
  * @see https://tailwindcss.com/docs/scroll-padding
4676
4676
  */
4677
4677
  "scroll-pl": [{
4678
- "scroll-pl": k()
4678
+ "scroll-pl": E()
4679
4679
  }],
4680
4680
  /**
4681
4681
  * Scroll Snap Align
@@ -4743,7 +4743,7 @@ const Wd = (e, t) => {
4743
4743
  * @see https://tailwindcss.com/docs/will-change
4744
4744
  */
4745
4745
  "will-change": [{
4746
- "will-change": ["auto", "scroll", "contents", "transform", z, D]
4746
+ "will-change": ["auto", "scroll", "contents", "transform", D, L]
4747
4747
  }],
4748
4748
  // -----------
4749
4749
  // --- SVG ---
@@ -5096,8 +5096,8 @@ function Ws(e) {
5096
5096
  d.displayName = i;
5097
5097
  const u = e + "CollectionItemSlot", c = "data-radix-collection-item", m = /* @__PURE__ */ Ft(u), g = _.forwardRef(
5098
5098
  (h, v) => {
5099
- const { scope: y, children: w, ...x } = h, C = _.useRef(null), N = re(v, C), R = s(u, y);
5100
- return _.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ p(m, { [c]: "", ref: N, children: w });
5099
+ const { scope: y, children: w, ...x } = h, C = _.useRef(null), N = re(v, C), k = s(u, y);
5100
+ return _.useEffect(() => (k.itemMap.set(C, { ref: C, ...x }), () => void k.itemMap.delete(C))), /* @__PURE__ */ p(m, { [c]: "", ref: N, children: w });
5101
5101
  }
5102
5102
  );
5103
5103
  g.displayName = u;
@@ -5108,7 +5108,7 @@ function Ws(e) {
5108
5108
  if (!w) return [];
5109
5109
  const x = Array.from(w.querySelectorAll(`[${c}]`));
5110
5110
  return Array.from(v.itemMap.values()).sort(
5111
- (R, E) => x.indexOf(R.ref.current) - x.indexOf(E.ref.current)
5111
+ (k, R) => x.indexOf(k.ref.current) - x.indexOf(R.ref.current)
5112
5112
  );
5113
5113
  }, [v.collectionRef, v.itemMap]);
5114
5114
  }
@@ -5384,15 +5384,15 @@ var of = "DismissableLayer", ho = "dismissableLayer.update", rf = "dismissableLa
5384
5384
  onInteractOutside: a,
5385
5385
  onDismiss: i,
5386
5386
  ...l
5387
- } = e, d = f.useContext(qs), [u, c] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = re(t, (E) => c(E)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, N = cf((E) => {
5388
- const k = E.target, O = [...d.branches].some((L) => L.contains(k));
5389
- !C || O || (r == null || r(E), a == null || a(E), E.defaultPrevented || i == null || i());
5390
- }, m), R = df((E) => {
5391
- const k = E.target;
5392
- [...d.branches].some((L) => L.contains(k)) || (s == null || s(E), a == null || a(E), E.defaultPrevented || i == null || i());
5387
+ } = e, d = f.useContext(qs), [u, c] = f.useState(null), m = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = f.useState({}), b = re(t, (R) => c(R)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), w = u ? h.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, N = cf((R) => {
5388
+ const E = R.target, M = [...d.branches].some((z) => z.contains(E));
5389
+ !C || M || (r == null || r(R), a == null || a(R), R.defaultPrevented || i == null || i());
5390
+ }, m), k = df((R) => {
5391
+ const E = R.target;
5392
+ [...d.branches].some((z) => z.contains(E)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
5393
5393
  }, m);
5394
- return nf((E) => {
5395
- w === d.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
5394
+ return nf((R) => {
5395
+ w === d.layers.size - 1 && (o == null || o(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
5396
5396
  }, m), f.useEffect(() => {
5397
5397
  if (u)
5398
5398
  return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Pr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Ar(), () => {
@@ -5401,8 +5401,8 @@ var of = "DismissableLayer", ho = "dismissableLayer.update", rf = "dismissableLa
5401
5401
  }, [u, m, n, d]), f.useEffect(() => () => {
5402
5402
  u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Ar());
5403
5403
  }, [u, d]), f.useEffect(() => {
5404
- const E = () => g({});
5405
- return document.addEventListener(ho, E), () => document.removeEventListener(ho, E);
5404
+ const R = () => g({});
5405
+ return document.addEventListener(ho, R), () => document.removeEventListener(ho, R);
5406
5406
  }, []), /* @__PURE__ */ p(
5407
5407
  W.div,
5408
5408
  {
@@ -5412,8 +5412,8 @@ var of = "DismissableLayer", ho = "dismissableLayer.update", rf = "dismissableLa
5412
5412
  pointerEvents: x ? C ? "auto" : "none" : void 0,
5413
5413
  ...e.style
5414
5414
  },
5415
- onFocusCapture: q(e.onFocusCapture, R.onFocusCapture),
5416
- onBlurCapture: q(e.onBlurCapture, R.onBlurCapture),
5415
+ onFocusCapture: q(e.onFocusCapture, k.onFocusCapture),
5416
+ onBlurCapture: q(e.onBlurCapture, k.onBlurCapture),
5417
5417
  onPointerDownCapture: q(
5418
5418
  e.onPointerDownCapture,
5419
5419
  N.onPointerDownCapture
@@ -5785,12 +5785,12 @@ var ea = Tf(), Qn = function() {
5785
5785
  onScrollCapture: Qn,
5786
5786
  onWheelCapture: Qn,
5787
5787
  onTouchMoveCapture: Qn
5788
- }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = Js(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, R = Ef([n, t]), E = De(De({}, C), r);
5788
+ }), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = Js(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = m, k = Ef([n, t]), R = De(De({}, C), r);
5789
5789
  return f.createElement(
5790
5790
  f.Fragment,
5791
5791
  null,
5792
5792
  u && f.createElement(N, { sideCar: ea, removeScrollBar: d, shards: c, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: x }),
5793
- a ? f.cloneElement(f.Children.only(i), De(De({}, E), { ref: R })) : f.createElement(w, De({}, E, { className: l, ref: R }), i)
5793
+ a ? f.cloneElement(f.Children.only(i), De(De({}, R), { ref: k })) : f.createElement(w, De({}, R, { className: l, ref: k }), i)
5794
5794
  );
5795
5795
  });
5796
5796
  Rn.defaultProps = {
@@ -6036,21 +6036,21 @@ function Qf(e) {
6036
6036
  var i = f.useCallback(function(h, v) {
6037
6037
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
6038
6038
  return !a.current.allowPinchZoom;
6039
- var y = on(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], C = "deltaY" in h ? h.deltaY : w[1] - y[1], N, R = h.target, E = Math.abs(x) > Math.abs(C) ? "h" : "v";
6040
- if ("touches" in h && E === "h" && R.type === "range")
6039
+ var y = on(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], C = "deltaY" in h ? h.deltaY : w[1] - y[1], N, k = h.target, R = Math.abs(x) > Math.abs(C) ? "h" : "v";
6040
+ if ("touches" in h && R === "h" && k.type === "range")
6041
6041
  return !1;
6042
- var k = window.getSelection(), O = k && k.anchorNode, L = O ? O === R || O.contains(R) : !1;
6043
- if (L)
6042
+ var E = window.getSelection(), M = E && E.anchorNode, z = M ? M === k || M.contains(k) : !1;
6043
+ if (z)
6044
6044
  return !1;
6045
- var B = $r(E, R);
6045
+ var B = $r(R, k);
6046
6046
  if (!B)
6047
6047
  return !0;
6048
- if (B ? N = E : (N = E === "v" ? "h" : "v", B = $r(E, R)), !B)
6048
+ if (B ? N = R : (N = R === "v" ? "h" : "v", B = $r(R, k)), !B)
6049
6049
  return !1;
6050
6050
  if (!o.current && "changedTouches" in h && (x || C) && (o.current = N), !N)
6051
6051
  return !0;
6052
- var j = o.current || N;
6053
- return Kf(j, v, h, j === "h" ? x : C);
6052
+ var U = o.current || N;
6053
+ return Kf(U, v, h, U === "h" ? x : C);
6054
6054
  }, []), l = f.useCallback(function(h) {
6055
6055
  var v = h;
6056
6056
  if (!(!xt.length || xt[xt.length - 1] !== s)) {
@@ -6494,10 +6494,10 @@ var ba = "CheckboxBubbleInput", ya = f.forwardRef(
6494
6494
  const x = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
6495
6495
  x,
6496
6496
  "checked"
6497
- ).set, R = !r.current;
6497
+ ).set, k = !r.current;
6498
6498
  if (h !== s && N) {
6499
- const E = new Event("click", { bubbles: R });
6500
- w.indeterminate = Qe(s), N.call(w, Qe(s) ? !1 : s), w.dispatchEvent(E);
6499
+ const R = new Event("click", { bubbles: k });
6500
+ w.indeterminate = Qe(s), N.call(w, Qe(s) ? !1 : s), w.dispatchEvent(R);
6501
6501
  }
6502
6502
  }, [m, h, s, r]);
6503
6503
  const y = f.useRef(Qe(s) ? !1 : s);
@@ -6768,7 +6768,7 @@ const _p = 50, Ip = async (e, t, n) => {
6768
6768
  x,
6769
6769
  y: C,
6770
6770
  data: N,
6771
- reset: R
6771
+ reset: k
6772
6772
  } = await w({
6773
6773
  x: u,
6774
6774
  y: c,
@@ -6786,11 +6786,11 @@ const _p = 50, Ip = async (e, t, n) => {
6786
6786
  u = x ?? u, c = C ?? c, b[y] = {
6787
6787
  ...b[y],
6788
6788
  ...N
6789
- }, R && g < _p && (g++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (d = R.rects === !0 ? await a.getElementRects({
6789
+ }, k && g < _p && (g++, typeof k == "object" && (k.placement && (m = k.placement), k.rects && (d = k.rects === !0 ? await a.getElementRects({
6790
6790
  reference: e,
6791
6791
  floating: t,
6792
6792
  strategy: r
6793
- }) : R.rects), {
6793
+ }) : k.rects), {
6794
6794
  x: u,
6795
6795
  y: c
6796
6796
  } = Gr(d, m, l)), h = -1);
@@ -6823,10 +6823,10 @@ const _p = 50, Ip = async (e, t, n) => {
6823
6823
  const c = xa(u), m = {
6824
6824
  x: n,
6825
6825
  y: o
6826
- }, g = jo(r), b = Uo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6827
- let E = R ? R[x] : 0;
6828
- (!E || !await (a.isElement == null ? void 0 : a.isElement(R))) && (E = i.floating[x] || s.floating[b]);
6829
- const k = C / 2 - N / 2, O = E / 2 - h[b] / 2 - 1, L = et(c[y], O), B = et(c[w], O), j = L, U = E - h[b] - B, K = E / 2 - h[b] / 2 + k, I = vo(j, K, U), S = !l.arrow && At(r) != null && K !== I && s.reference[b] / 2 - (K < j ? L : B) - h[b] / 2 < 0, T = S ? K < j ? K - j : K - U : 0;
6826
+ }, g = jo(r), b = Uo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", w = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", C = s.reference[b] + s.reference[g] - m[g] - s.floating[b], N = m[g] - s.reference[g], k = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
6827
+ let R = k ? k[x] : 0;
6828
+ (!R || !await (a.isElement == null ? void 0 : a.isElement(k))) && (R = i.floating[x] || s.floating[b]);
6829
+ const E = C / 2 - N / 2, M = R / 2 - h[b] / 2 - 1, z = et(c[y], M), B = et(c[w], M), U = z, j = R - h[b] - B, K = R / 2 - h[b] / 2 + E, I = vo(U, K, j), S = !l.arrow && At(r) != null && K !== I && s.reference[b] / 2 - (K < U ? z : B) - h[b] / 2 < 0, T = S ? K < U ? K - U : K - j : 0;
6830
6830
  return {
6831
6831
  [g]: m[g] + T,
6832
6832
  data: {
@@ -6863,46 +6863,46 @@ const _p = 50, Ip = async (e, t, n) => {
6863
6863
  } = je(e, t);
6864
6864
  if ((n = s.arrow) != null && n.alignmentOffset)
6865
6865
  return {};
6866
- const y = Ge(r), w = ze(i), x = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (x || !h ? [hn(i)] : kp(i)), R = b !== "none";
6867
- !m && R && N.push(...Tp(i, h, b, C));
6868
- const E = [i, ...N], k = await l.detectOverflow(t, v), O = [];
6869
- let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
6870
- if (u && O.push(k[y]), c) {
6866
+ const y = Ge(r), w = ze(i), x = Ge(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (x || !h ? [hn(i)] : kp(i)), k = b !== "none";
6867
+ !m && k && N.push(...Tp(i, h, b, C));
6868
+ const R = [i, ...N], E = await l.detectOverflow(t, v), M = [];
6869
+ let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
6870
+ if (u && M.push(E[y]), c) {
6871
6871
  const K = Cp(r, a, C);
6872
- O.push(k[K[0]], k[K[1]]);
6872
+ M.push(E[K[0]], E[K[1]]);
6873
6873
  }
6874
- if (L = [...L, {
6874
+ if (z = [...z, {
6875
6875
  placement: r,
6876
- overflows: O
6877
- }], !O.every((K) => K <= 0)) {
6878
- var B, j;
6879
- const K = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, I = E[K];
6876
+ overflows: M
6877
+ }], !M.every((K) => K <= 0)) {
6878
+ var B, U;
6879
+ const K = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, I = R[K];
6880
6880
  if (I && (!(c === "alignment" ? w !== ze(I) : !1) || // We leave the current main axis only if every placement on that axis
6881
6881
  // overflows the main axis.
6882
- L.every((A) => ze(A.placement) === w ? A.overflows[0] > 0 : !0)))
6882
+ z.every((A) => ze(A.placement) === w ? A.overflows[0] > 0 : !0)))
6883
6883
  return {
6884
6884
  data: {
6885
6885
  index: K,
6886
- overflows: L
6886
+ overflows: z
6887
6887
  },
6888
6888
  reset: {
6889
6889
  placement: I
6890
6890
  }
6891
6891
  };
6892
- let S = (j = L.filter((T) => T.overflows[0] <= 0).sort((T, A) => T.overflows[1] - A.overflows[1])[0]) == null ? void 0 : j.placement;
6892
+ let S = (U = z.filter((T) => T.overflows[0] <= 0).sort((T, A) => T.overflows[1] - A.overflows[1])[0]) == null ? void 0 : U.placement;
6893
6893
  if (!S)
6894
6894
  switch (g) {
6895
6895
  case "bestFit": {
6896
- var U;
6897
- const T = (U = L.filter((A) => {
6898
- if (R) {
6899
- const M = ze(A.placement);
6900
- return M === w || // Create a bias to the `y` side axis due to horizontal
6896
+ var j;
6897
+ const T = (j = z.filter((A) => {
6898
+ if (k) {
6899
+ const O = ze(A.placement);
6900
+ return O === w || // Create a bias to the `y` side axis due to horizontal
6901
6901
  // reading directions favoring greater width.
6902
- M === "y";
6902
+ O === "y";
6903
6903
  }
6904
6904
  return !0;
6905
- }).map((A) => [A.placement, A.overflows.filter((M) => M > 0).reduce((M, P) => M + P, 0)]).sort((A, M) => A[1] - M[1])[0]) == null ? void 0 : U[0];
6905
+ }).map((A) => [A.placement, A.overflows.filter((O) => O > 0).reduce((O, P) => O + P, 0)]).sort((A, O) => A[1] - O[1])[0]) == null ? void 0 : j[0];
6906
6906
  T && (S = T);
6907
6907
  break;
6908
6908
  }
@@ -7114,8 +7114,8 @@ const zp = function(e) {
7114
7114
  }
7115
7115
  if (d) {
7116
7116
  var y, w;
7117
- const x = m === "y" ? "width" : "height", C = Sa.has(Ge(r)), N = s.reference[c] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[c]) || 0) + (C ? 0 : v.crossAxis), R = s.reference[c] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[c]) || 0) - (C ? v.crossAxis : 0);
7118
- b < N ? b = N : b > R && (b = R);
7117
+ const x = m === "y" ? "width" : "height", C = Sa.has(Ge(r)), N = s.reference[c] - s.floating[x] + (C && ((y = a.offset) == null ? void 0 : y[c]) || 0) + (C ? 0 : v.crossAxis), k = s.reference[c] + s.reference[x] + (C ? 0 : ((w = a.offset) == null ? void 0 : w[c]) || 0) - (C ? v.crossAxis : 0);
7118
+ b < N ? b = N : b > k && (b = k);
7119
7119
  }
7120
7120
  return {
7121
7121
  [m]: g,
@@ -7144,19 +7144,19 @@ const zp = function(e) {
7144
7144
  } = s.floating;
7145
7145
  let v, y;
7146
7146
  c === "top" || c === "bottom" ? (v = c, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = c, v = m === "end" ? "top" : "bottom");
7147
- const w = h - u.top - u.bottom, x = b - u.left - u.right, C = et(h - u[v], w), N = et(b - u[y], x), R = !t.middlewareData.shift;
7148
- let E = C, k = N;
7149
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = x), (o = t.middlewareData.shift) != null && o.enabled.y && (E = w), R && !m) {
7150
- const L = Ce(u.left, 0), B = Ce(u.right, 0), j = Ce(u.top, 0), U = Ce(u.bottom, 0);
7151
- g ? k = b - 2 * (L !== 0 || B !== 0 ? L + B : Ce(u.left, u.right)) : E = h - 2 * (j !== 0 || U !== 0 ? j + U : Ce(u.top, u.bottom));
7147
+ const w = h - u.top - u.bottom, x = b - u.left - u.right, C = et(h - u[v], w), N = et(b - u[y], x), k = !t.middlewareData.shift;
7148
+ let R = C, E = N;
7149
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = x), (o = t.middlewareData.shift) != null && o.enabled.y && (R = w), k && !m) {
7150
+ const z = Ce(u.left, 0), B = Ce(u.right, 0), U = Ce(u.top, 0), j = Ce(u.bottom, 0);
7151
+ g ? E = b - 2 * (z !== 0 || B !== 0 ? z + B : Ce(u.left, u.right)) : R = h - 2 * (U !== 0 || j !== 0 ? U + j : Ce(u.top, u.bottom));
7152
7152
  }
7153
7153
  await l({
7154
7154
  ...t,
7155
- availableWidth: k,
7156
- availableHeight: E
7155
+ availableWidth: E,
7156
+ availableHeight: R
7157
7157
  });
7158
- const O = await a.getDimensions(i.floating);
7159
- return b !== O.width || h !== O.height ? {
7158
+ const M = await a.getDimensions(i.floating);
7159
+ return b !== M.width || h !== M.height ? {
7160
7160
  reset: {
7161
7161
  rects: !0
7162
7162
  }
@@ -7592,16 +7592,16 @@ function sm(e, t) {
7592
7592
  threshold: Ce(0, et(1, l)) || 1
7593
7593
  };
7594
7594
  let C = !0;
7595
- function N(R) {
7596
- const E = R[0].intersectionRatio;
7597
- if (E !== l) {
7595
+ function N(k) {
7596
+ const R = k[0].intersectionRatio;
7597
+ if (R !== l) {
7598
7598
  if (!C)
7599
7599
  return a();
7600
- E ? a(!1, E) : o = setTimeout(() => {
7600
+ R ? a(!1, R) : o = setTimeout(() => {
7601
7601
  a(!1, 1e-7);
7602
7602
  }, 1e3);
7603
7603
  }
7604
- E === 1 && !Aa(d, e.getBoundingClientRect()) && a(), C = !1;
7604
+ R === 1 && !Aa(d, e.getBoundingClientRect()) && a(), C = !1;
7605
7605
  }
7606
7606
  try {
7607
7607
  n = new IntersectionObserver(N, {
@@ -7734,33 +7734,33 @@ function gm(e) {
7734
7734
  }), [m, g] = f.useState(o);
7735
7735
  vn(m, o) || g(o);
7736
7736
  const [b, h] = f.useState(null), [v, y] = f.useState(null), w = f.useCallback((A) => {
7737
- A !== R.current && (R.current = A, h(A));
7737
+ A !== k.current && (k.current = A, h(A));
7738
7738
  }, []), x = f.useCallback((A) => {
7739
- A !== E.current && (E.current = A, y(A));
7740
- }, []), C = s || b, N = a || v, R = f.useRef(null), E = f.useRef(null), k = f.useRef(u), O = l != null, L = ao(l), B = ao(r), j = ao(d), U = f.useCallback(() => {
7741
- if (!R.current || !E.current)
7739
+ A !== R.current && (R.current = A, y(A));
7740
+ }, []), C = s || b, N = a || v, k = f.useRef(null), R = f.useRef(null), E = f.useRef(u), M = l != null, z = ao(l), B = ao(r), U = ao(d), j = f.useCallback(() => {
7741
+ if (!k.current || !R.current)
7742
7742
  return;
7743
7743
  const A = {
7744
7744
  placement: t,
7745
7745
  strategy: n,
7746
7746
  middleware: m
7747
7747
  };
7748
- B.current && (A.platform = B.current), pm(R.current, E.current, A).then((M) => {
7748
+ B.current && (A.platform = B.current), pm(k.current, R.current, A).then((O) => {
7749
7749
  const P = {
7750
- ...M,
7750
+ ...O,
7751
7751
  // The floating element's position may be recomputed while it's closed
7752
7752
  // but still mounted (such as when transitioning out). To ensure
7753
7753
  // `isPositioned` will be `false` initially on the next open, avoid
7754
7754
  // setting it to `true` when `open === false` (must be specified).
7755
- isPositioned: j.current !== !1
7755
+ isPositioned: U.current !== !1
7756
7756
  };
7757
- K.current && !vn(k.current, P) && (k.current = P, Sn.flushSync(() => {
7757
+ K.current && !vn(E.current, P) && (E.current = P, Sn.flushSync(() => {
7758
7758
  c(P);
7759
7759
  }));
7760
7760
  });
7761
- }, [m, t, n, B, j]);
7761
+ }, [m, t, n, B, U]);
7762
7762
  dn(() => {
7763
- d === !1 && k.current.isPositioned && (k.current.isPositioned = !1, c((A) => ({
7763
+ d === !1 && E.current.isPositioned && (E.current.isPositioned = !1, c((A) => ({
7764
7764
  ...A,
7765
7765
  isPositioned: !1
7766
7766
  })));
@@ -7769,15 +7769,15 @@ function gm(e) {
7769
7769
  dn(() => (K.current = !0, () => {
7770
7770
  K.current = !1;
7771
7771
  }), []), dn(() => {
7772
- if (C && (R.current = C), N && (E.current = N), C && N) {
7773
- if (L.current)
7774
- return L.current(C, N, U);
7775
- U();
7772
+ if (C && (k.current = C), N && (R.current = N), C && N) {
7773
+ if (z.current)
7774
+ return z.current(C, N, j);
7775
+ j();
7776
7776
  }
7777
- }, [C, N, U, L, O]);
7777
+ }, [C, N, j, z, M]);
7778
7778
  const I = f.useMemo(() => ({
7779
- reference: R,
7780
- floating: E,
7779
+ reference: k,
7780
+ floating: R,
7781
7781
  setReference: w,
7782
7782
  setFloating: x
7783
7783
  }), [w, x]), S = f.useMemo(() => ({
@@ -7791,26 +7791,26 @@ function gm(e) {
7791
7791
  };
7792
7792
  if (!S.floating)
7793
7793
  return A;
7794
- const M = es(S.floating, u.x), P = es(S.floating, u.y);
7794
+ const O = es(S.floating, u.x), P = es(S.floating, u.y);
7795
7795
  return i ? {
7796
7796
  ...A,
7797
- transform: "translate(" + M + "px, " + P + "px)",
7797
+ transform: "translate(" + O + "px, " + P + "px)",
7798
7798
  ..._a(S.floating) >= 1.5 && {
7799
7799
  willChange: "transform"
7800
7800
  }
7801
7801
  } : {
7802
7802
  position: n,
7803
- left: M,
7803
+ left: O,
7804
7804
  top: P
7805
7805
  };
7806
7806
  }, [n, i, S.floating, u.x, u.y]);
7807
7807
  return f.useMemo(() => ({
7808
7808
  ...u,
7809
- update: U,
7809
+ update: j,
7810
7810
  refs: I,
7811
7811
  elements: S,
7812
7812
  floatingStyles: T
7813
- }), [u, U, I, S, T]);
7813
+ }), [u, j, I, S, T]);
7814
7814
  }
7815
7815
  const vm = (e) => {
7816
7816
  function t(n) {
@@ -7928,15 +7928,15 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
7928
7928
  updatePositionStrategy: g = "optimized",
7929
7929
  onPlaced: b,
7930
7930
  ...h
7931
- } = e, v = Oa(Xo, n), [y, w] = f.useState(null), x = re(t, (ue) => w(ue)), [C, N] = f.useState(null), R = Tn(C), E = (R == null ? void 0 : R.width) ?? 0, k = (R == null ? void 0 : R.height) ?? 0, O = o + (s !== "center" ? "-" + s : ""), L = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], j = B.length > 0, U = {
7932
- padding: L,
7931
+ } = e, v = Oa(Xo, n), [y, w] = f.useState(null), x = re(t, (ue) => w(ue)), [C, N] = f.useState(null), k = Tn(C), R = (k == null ? void 0 : k.width) ?? 0, E = (k == null ? void 0 : k.height) ?? 0, M = o + (s !== "center" ? "-" + s : ""), z = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], U = B.length > 0, j = {
7932
+ padding: z,
7933
7933
  boundary: B.filter(_m),
7934
7934
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7935
- altBoundary: j
7935
+ altBoundary: U
7936
7936
  }, { refs: K, floatingStyles: I, placement: S, isPositioned: T, middlewareData: A } = gm({
7937
7937
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7938
7938
  strategy: "fixed",
7939
- placement: O,
7939
+ placement: M,
7940
7940
  whileElementsMounted: (...ue) => am(...ue, {
7941
7941
  animationFrame: g === "always"
7942
7942
  }),
@@ -7944,26 +7944,26 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
7944
7944
  reference: v.anchor
7945
7945
  },
7946
7946
  middleware: [
7947
- bm({ mainAxis: r + k, alignmentAxis: a }),
7947
+ bm({ mainAxis: r + E, alignmentAxis: a }),
7948
7948
  l && ym({
7949
7949
  mainAxis: !0,
7950
7950
  crossAxis: !1,
7951
7951
  limiter: c === "partial" ? wm() : void 0,
7952
- ...U
7952
+ ...j
7953
7953
  }),
7954
- l && xm({ ...U }),
7954
+ l && xm({ ...j }),
7955
7955
  Sm({
7956
- ...U,
7956
+ ...j,
7957
7957
  apply: ({ elements: ue, rects: fe, availableWidth: st, availableHeight: qe }) => {
7958
7958
  const { width: Ne, height: Yt } = fe.reference, be = ue.floating.style;
7959
7959
  be.setProperty("--radix-popper-available-width", `${st}px`), be.setProperty("--radix-popper-available-height", `${qe}px`), be.setProperty("--radix-popper-anchor-width", `${Ne}px`), be.setProperty("--radix-popper-anchor-height", `${Yt}px`);
7960
7960
  }
7961
7961
  }),
7962
7962
  C && km({ element: C, padding: i }),
7963
- Im({ arrowWidth: E, arrowHeight: k }),
7964
- m && Cm({ strategy: "referenceHidden", ...U })
7963
+ Im({ arrowWidth: R, arrowHeight: E }),
7964
+ m && Cm({ strategy: "referenceHidden", ...j })
7965
7965
  ]
7966
- }), [M, P] = Ha(S), Q = ve(b);
7966
+ }), [O, P] = Ha(S), Q = ve(b);
7967
7967
  de(() => {
7968
7968
  T && (Q == null || Q());
7969
7969
  }, [T, Q]);
@@ -7998,7 +7998,7 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
7998
7998
  Tm,
7999
7999
  {
8000
8000
  scope: n,
8001
- placedSide: M,
8001
+ placedSide: O,
8002
8002
  onArrowChange: N,
8003
8003
  arrowX: ie,
8004
8004
  arrowY: G,
@@ -8006,7 +8006,7 @@ var Xo = "PopperContent", [Tm, Pm] = Ma(Xo), $a = f.forwardRef(
8006
8006
  children: /* @__PURE__ */ p(
8007
8007
  W.div,
8008
8008
  {
8009
- "data-side": M,
8009
+ "data-side": O,
8010
8010
  "data-align": P,
8011
8011
  ...h,
8012
8012
  ref: x,
@@ -8117,11 +8117,11 @@ var $m = f.forwardRef((e, t) => {
8117
8117
  defaultProp: i ?? null,
8118
8118
  onChange: l,
8119
8119
  caller: jt
8120
- }), [y, w] = f.useState(!1), x = ve(d), C = Ga(n), N = f.useRef(!1), [R, E] = f.useState(0);
8120
+ }), [y, w] = f.useState(!1), x = ve(d), C = Ga(n), N = f.useRef(!1), [k, R] = f.useState(0);
8121
8121
  return f.useEffect(() => {
8122
- const k = m.current;
8123
- if (k)
8124
- return k.addEventListener(io, x), () => k.removeEventListener(io, x);
8122
+ const E = m.current;
8123
+ if (E)
8124
+ return E.addEventListener(io, x), () => E.removeEventListener(io, x);
8125
8125
  }, [x]), /* @__PURE__ */ p(
8126
8126
  Dm,
8127
8127
  {
@@ -8131,22 +8131,22 @@ var $m = f.forwardRef((e, t) => {
8131
8131
  loop: r,
8132
8132
  currentTabStopId: h,
8133
8133
  onItemFocus: f.useCallback(
8134
- (k) => v(k),
8134
+ (E) => v(E),
8135
8135
  [v]
8136
8136
  ),
8137
8137
  onItemShiftTab: f.useCallback(() => w(!0), []),
8138
8138
  onFocusableItemAdd: f.useCallback(
8139
- () => E((k) => k + 1),
8139
+ () => R((E) => E + 1),
8140
8140
  []
8141
8141
  ),
8142
8142
  onFocusableItemRemove: f.useCallback(
8143
- () => E((k) => k - 1),
8143
+ () => R((E) => E - 1),
8144
8144
  []
8145
8145
  ),
8146
8146
  children: /* @__PURE__ */ p(
8147
8147
  W.div,
8148
8148
  {
8149
- tabIndex: y || R === 0 ? -1 : 0,
8149
+ tabIndex: y || k === 0 ? -1 : 0,
8150
8150
  "data-orientation": o,
8151
8151
  ...c,
8152
8152
  ref: g,
@@ -8154,12 +8154,12 @@ var $m = f.forwardRef((e, t) => {
8154
8154
  onMouseDown: q(e.onMouseDown, () => {
8155
8155
  N.current = !0;
8156
8156
  }),
8157
- onFocus: q(e.onFocus, (k) => {
8158
- const O = !N.current;
8159
- if (k.target === k.currentTarget && O && !y) {
8160
- const L = new CustomEvent(io, Mm);
8161
- if (k.currentTarget.dispatchEvent(L), !L.defaultPrevented) {
8162
- const B = C().filter((S) => S.focusable), j = B.find((S) => S.active), U = B.find((S) => S.id === h), I = [j, U, ...B].filter(
8157
+ onFocus: q(e.onFocus, (E) => {
8158
+ const M = !N.current;
8159
+ if (E.target === E.currentTarget && M && !y) {
8160
+ const z = new CustomEvent(io, Mm);
8161
+ if (E.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
8162
+ const B = C().filter((S) => S.focusable), U = B.find((S) => S.active), j = B.find((S) => S.id === h), I = [U, j, ...B].filter(
8163
8163
  Boolean
8164
8164
  ).map((S) => S.ref.current);
8165
8165
  Xa(I, u);
@@ -8575,13 +8575,13 @@ var er = "ScrollArea", [gi] = we(er), [fh, Re] = gi(er), vi = f.forwardRef(
8575
8575
  dir: r,
8576
8576
  scrollHideDelay: s = 600,
8577
8577
  ...a
8578
- } = e, [i, l] = f.useState(null), [d, u] = f.useState(null), [c, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [N, R] = f.useState(!1), [E, k] = f.useState(!1), O = re(t, (B) => l(B)), L = Wt(r);
8578
+ } = e, [i, l] = f.useState(null), [d, u] = f.useState(null), [c, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, C] = f.useState(0), [N, k] = f.useState(!1), [R, E] = f.useState(!1), M = re(t, (B) => l(B)), z = Wt(r);
8579
8579
  return /* @__PURE__ */ p(
8580
8580
  fh,
8581
8581
  {
8582
8582
  scope: n,
8583
8583
  type: o,
8584
- dir: L,
8584
+ dir: z,
8585
8585
  scrollHideDelay: s,
8586
8586
  scrollArea: i,
8587
8587
  viewport: d,
@@ -8591,19 +8591,19 @@ var er = "ScrollArea", [gi] = we(er), [fh, Re] = gi(er), vi = f.forwardRef(
8591
8591
  scrollbarX: g,
8592
8592
  onScrollbarXChange: b,
8593
8593
  scrollbarXEnabled: N,
8594
- onScrollbarXEnabledChange: R,
8594
+ onScrollbarXEnabledChange: k,
8595
8595
  scrollbarY: h,
8596
8596
  onScrollbarYChange: v,
8597
- scrollbarYEnabled: E,
8598
- onScrollbarYEnabledChange: k,
8597
+ scrollbarYEnabled: R,
8598
+ onScrollbarYEnabledChange: E,
8599
8599
  onCornerWidthChange: w,
8600
8600
  onCornerHeightChange: C,
8601
8601
  children: /* @__PURE__ */ p(
8602
8602
  W.div,
8603
8603
  {
8604
- dir: L,
8604
+ dir: z,
8605
8605
  ...a,
8606
- ref: O,
8606
+ ref: M,
8607
8607
  style: {
8608
8608
  position: "relative",
8609
8609
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
@@ -8897,20 +8897,20 @@ var ph = f.forwardRef((e, t) => {
8897
8897
  onWheelScroll: u,
8898
8898
  onResize: c,
8899
8899
  ...m
8900
- } = e, g = Re(He, n), [b, h] = f.useState(null), v = re(t, (O) => h(O)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, C = o.content - o.viewport, N = ve(u), R = ve(l), E = $n(c, 10);
8901
- function k(O) {
8900
+ } = e, g = Re(He, n), [b, h] = f.useState(null), v = re(t, (M) => h(M)), y = f.useRef(null), w = f.useRef(""), x = g.viewport, C = o.content - o.viewport, N = ve(u), k = ve(l), R = $n(c, 10);
8901
+ function E(M) {
8902
8902
  if (y.current) {
8903
- const L = O.clientX - y.current.left, B = O.clientY - y.current.top;
8904
- d({ x: L, y: B });
8903
+ const z = M.clientX - y.current.left, B = M.clientY - y.current.top;
8904
+ d({ x: z, y: B });
8905
8905
  }
8906
8906
  }
8907
8907
  return f.useEffect(() => {
8908
- const O = (L) => {
8909
- const B = L.target;
8910
- (b == null ? void 0 : b.contains(B)) && N(L, C);
8908
+ const M = (z) => {
8909
+ const B = z.target;
8910
+ (b == null ? void 0 : b.contains(B)) && N(z, C);
8911
8911
  };
8912
- return document.addEventListener("wheel", O, { passive: !1 }), () => document.removeEventListener("wheel", O, { passive: !1 });
8913
- }, [x, b, C, N]), f.useEffect(R, [o, R]), Tt(b, E), Tt(g.content, E), /* @__PURE__ */ p(
8912
+ return document.addEventListener("wheel", M, { passive: !1 }), () => document.removeEventListener("wheel", M, { passive: !1 });
8913
+ }, [x, b, C, N]), f.useEffect(k, [o, k]), Tt(b, R), Tt(g.content, R), /* @__PURE__ */ p(
8914
8914
  vh,
8915
8915
  {
8916
8916
  scope: n,
@@ -8918,7 +8918,7 @@ var ph = f.forwardRef((e, t) => {
8918
8918
  hasThumb: r,
8919
8919
  onThumbChange: ve(s),
8920
8920
  onThumbPointerUp: ve(a),
8921
- onThumbPositionChange: R,
8921
+ onThumbPositionChange: k,
8922
8922
  onThumbPointerDown: ve(i),
8923
8923
  children: /* @__PURE__ */ p(
8924
8924
  W.div,
@@ -8926,13 +8926,13 @@ var ph = f.forwardRef((e, t) => {
8926
8926
  ...m,
8927
8927
  ref: v,
8928
8928
  style: { position: "absolute", ...m.style },
8929
- onPointerDown: q(e.onPointerDown, (O) => {
8930
- O.button === 0 && (O.target.setPointerCapture(O.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), k(O));
8929
+ onPointerDown: q(e.onPointerDown, (M) => {
8930
+ M.button === 0 && (M.target.setPointerCapture(M.pointerId), y.current = b.getBoundingClientRect(), w.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), E(M));
8931
8931
  }),
8932
- onPointerMove: q(e.onPointerMove, k),
8933
- onPointerUp: q(e.onPointerUp, (O) => {
8934
- const L = O.target;
8935
- L.hasPointerCapture(O.pointerId) && L.releasePointerCapture(O.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8932
+ onPointerMove: q(e.onPointerMove, E),
8933
+ onPointerUp: q(e.onPointerUp, (M) => {
8934
+ const z = M.target;
8935
+ z.hasPointerCapture(M.pointerId) && z.releasePointerCapture(M.pointerId), document.body.style.webkitUserSelect = w.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
8936
8936
  })
8937
8937
  }
8938
8938
  )
@@ -9093,17 +9093,17 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9093
9093
  disabled: m,
9094
9094
  required: g,
9095
9095
  form: b
9096
- } = e, h = Hn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C, N] = f.useState(!1), R = Wt(d), [E, k] = Ue({
9096
+ } = e, h = Hn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [C, N] = f.useState(!1), k = Wt(d), [R, E] = Ue({
9097
9097
  prop: o,
9098
9098
  defaultProp: r ?? !1,
9099
9099
  onChange: s,
9100
9100
  caller: ft
9101
- }), [O, L] = Ue({
9101
+ }), [M, z] = Ue({
9102
9102
  prop: a,
9103
9103
  defaultProp: i,
9104
9104
  onChange: l,
9105
9105
  caller: ft
9106
- }), B = f.useRef(null), j = v ? b || !!v.closest("form") : !0, [U, K] = f.useState(/* @__PURE__ */ new Set()), I = Array.from(U).map((S) => S.props.value).join(";");
9106
+ }), B = f.useRef(null), U = v ? b || !!v.closest("form") : !0, [j, K] = f.useState(/* @__PURE__ */ new Set()), I = Array.from(j).map((S) => S.props.value).join(";");
9107
9107
  return /* @__PURE__ */ p(Va, { ...h, children: /* @__PURE__ */ $(
9108
9108
  Th,
9109
9109
  {
@@ -9116,11 +9116,11 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9116
9116
  valueNodeHasChildren: C,
9117
9117
  onValueNodeHasChildrenChange: N,
9118
9118
  contentId: ht(),
9119
- value: O,
9120
- onValueChange: L,
9121
- open: E,
9122
- onOpenChange: k,
9123
- dir: R,
9119
+ value: M,
9120
+ onValueChange: z,
9121
+ open: R,
9122
+ onOpenChange: E,
9123
+ dir: k,
9124
9124
  triggerPointerDownPosRef: B,
9125
9125
  disabled: m,
9126
9126
  children: [
@@ -9140,7 +9140,7 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9140
9140
  children: n
9141
9141
  }
9142
9142
  ) }),
9143
- j ? /* @__PURE__ */ $(
9143
+ U ? /* @__PURE__ */ $(
9144
9144
  Zi,
9145
9145
  {
9146
9146
  "aria-hidden": !0,
@@ -9148,13 +9148,13 @@ var Sh = vi, Ch = yi, kh = Ei, Eh = [" ", "Enter", "ArrowUp", "ArrowDown"], Rh =
9148
9148
  tabIndex: -1,
9149
9149
  name: u,
9150
9150
  autoComplete: c,
9151
- value: O,
9152
- onChange: (S) => L(S.target.value),
9151
+ value: M,
9152
+ onChange: (S) => z(S.target.value),
9153
9153
  disabled: m,
9154
9154
  form: b,
9155
9155
  children: [
9156
- O === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9157
- Array.from(U)
9156
+ M === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
9157
+ Array.from(j)
9158
9158
  ]
9159
9159
  },
9160
9160
  I
@@ -9272,56 +9272,56 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9272
9272
  avoidCollisions: v,
9273
9273
  //
9274
9274
  ...y
9275
- } = e, w = ot(pt, n), [x, C] = f.useState(null), [N, R] = f.useState(null), E = re(t, (F) => C(F)), [k, O] = f.useState(null), [L, B] = f.useState(
9275
+ } = e, w = ot(pt, n), [x, C] = f.useState(null), [N, k] = f.useState(null), R = re(t, (F) => C(F)), [E, M] = f.useState(null), [z, B] = f.useState(
9276
9276
  null
9277
- ), j = Bn(n), [U, K] = f.useState(!1), I = f.useRef(!1);
9277
+ ), U = Bn(n), [j, K] = f.useState(!1), I = f.useRef(!1);
9278
9278
  f.useEffect(() => {
9279
9279
  if (x) return sp(x);
9280
9280
  }, [x]), yf();
9281
9281
  const S = f.useCallback(
9282
9282
  (F) => {
9283
- const [H, ...J] = j().map((te) => te.ref.current), [se] = J.slice(-1), oe = document.activeElement;
9283
+ const [H, ...J] = U().map((te) => te.ref.current), [se] = J.slice(-1), oe = document.activeElement;
9284
9284
  for (const te of F)
9285
9285
  if (te === oe || (te == null || te.scrollIntoView({ block: "nearest" }), te === H && N && (N.scrollTop = 0), te === se && N && (N.scrollTop = N.scrollHeight), te == null || te.focus(), document.activeElement !== oe)) return;
9286
9286
  },
9287
- [j, N]
9287
+ [U, N]
9288
9288
  ), T = f.useCallback(
9289
- () => S([k, x]),
9290
- [S, k, x]
9289
+ () => S([E, x]),
9290
+ [S, E, x]
9291
9291
  );
9292
9292
  f.useEffect(() => {
9293
- U && T();
9294
- }, [U, T]);
9295
- const { onOpenChange: A, triggerPointerDownPosRef: M } = w;
9293
+ j && T();
9294
+ }, [j, T]);
9295
+ const { onOpenChange: A, triggerPointerDownPosRef: O } = w;
9296
9296
  f.useEffect(() => {
9297
9297
  if (x) {
9298
9298
  let F = { x: 0, y: 0 };
9299
9299
  const H = (se) => {
9300
9300
  var oe, te;
9301
9301
  F = {
9302
- x: Math.abs(Math.round(se.pageX) - (((oe = M.current) == null ? void 0 : oe.x) ?? 0)),
9303
- y: Math.abs(Math.round(se.pageY) - (((te = M.current) == null ? void 0 : te.y) ?? 0))
9302
+ x: Math.abs(Math.round(se.pageX) - (((oe = O.current) == null ? void 0 : oe.x) ?? 0)),
9303
+ y: Math.abs(Math.round(se.pageY) - (((te = O.current) == null ? void 0 : te.y) ?? 0))
9304
9304
  };
9305
9305
  }, J = (se) => {
9306
- F.x <= 10 && F.y <= 10 ? se.preventDefault() : x.contains(se.target) || A(!1), document.removeEventListener("pointermove", H), M.current = null;
9306
+ F.x <= 10 && F.y <= 10 ? se.preventDefault() : x.contains(se.target) || A(!1), document.removeEventListener("pointermove", H), O.current = null;
9307
9307
  };
9308
- return M.current !== null && (document.addEventListener("pointermove", H), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
9308
+ return O.current !== null && (document.addEventListener("pointermove", H), document.addEventListener("pointerup", J, { capture: !0, once: !0 })), () => {
9309
9309
  document.removeEventListener("pointermove", H), document.removeEventListener("pointerup", J, { capture: !0 });
9310
9310
  };
9311
9311
  }
9312
- }, [x, A, M]), f.useEffect(() => {
9312
+ }, [x, A, O]), f.useEffect(() => {
9313
9313
  const F = () => A(!1);
9314
9314
  return window.addEventListener("blur", F), window.addEventListener("resize", F), () => {
9315
9315
  window.removeEventListener("blur", F), window.removeEventListener("resize", F);
9316
9316
  };
9317
9317
  }, [A]);
9318
9318
  const [P, Q] = Qi((F) => {
9319
- const H = j().filter((oe) => !oe.disabled), J = H.find((oe) => oe.ref.current === document.activeElement), se = el(H, F, J);
9319
+ const H = U().filter((oe) => !oe.disabled), J = H.find((oe) => oe.ref.current === document.activeElement), se = el(H, F, J);
9320
9320
  se && setTimeout(() => se.ref.current.focus());
9321
9321
  }), ie = f.useCallback(
9322
9322
  (F, H, J) => {
9323
9323
  const se = !I.current && !J;
9324
- (w.value !== void 0 && w.value === H || se) && (O(F), se && (I.current = !0));
9324
+ (w.value !== void 0 && w.value === H || se) && (M(F), se && (I.current = !0));
9325
9325
  },
9326
9326
  [w.value]
9327
9327
  ), G = f.useCallback(() => x == null ? void 0 : x.focus(), [x]), Z = f.useCallback(
@@ -9348,15 +9348,15 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9348
9348
  scope: n,
9349
9349
  content: x,
9350
9350
  viewport: N,
9351
- onViewportChange: R,
9351
+ onViewportChange: k,
9352
9352
  itemRefCallback: ie,
9353
- selectedItem: k,
9353
+ selectedItem: E,
9354
9354
  onItemLeave: G,
9355
9355
  itemTextRefCallback: Z,
9356
9356
  focusSelectedItem: T,
9357
- selectedItemText: L,
9357
+ selectedItemText: z,
9358
9358
  position: o,
9359
- isPositioned: U,
9359
+ isPositioned: j,
9360
9360
  searchRef: P,
9361
9361
  children: /* @__PURE__ */ p(sa, { as: Oh, allowPinchZoom: !0, children: /* @__PURE__ */ p(
9362
9362
  Xs,
@@ -9390,7 +9390,7 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9390
9390
  ...y,
9391
9391
  ...X,
9392
9392
  onPlaced: () => K(!0),
9393
- ref: E,
9393
+ ref: R,
9394
9394
  style: {
9395
9395
  // flex layout so we can place the scroll buttons properly
9396
9396
  display: "flex",
@@ -9402,7 +9402,7 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9402
9402
  onKeyDown: q(y.onKeyDown, (F) => {
9403
9403
  const H = F.ctrlKey || F.altKey || F.metaKey;
9404
9404
  if (F.key === "Tab" && F.preventDefault(), !H && F.key.length === 1 && Q(F.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(F.key)) {
9405
- let se = j().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
9405
+ let se = U().filter((oe) => !oe.disabled).map((oe) => oe.ref.current);
9406
9406
  if (["ArrowUp", "End"].includes(F.key) && (se = se.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(F.key)) {
9407
9407
  const oe = F.target, te = se.indexOf(oe);
9408
9408
  se = se.slice(te + 1);
@@ -9422,11 +9422,11 @@ var Ae = 10, [zi, rt] = It(pt), Mh = "SelectContentImpl", Oh = /* @__PURE__ */ F
9422
9422
  );
9423
9423
  $i.displayName = Mh;
9424
9424
  var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9425
- const { __scopeSelect: n, onPlaced: o, ...r } = e, s = ot(pt, n), a = rt(pt, n), [i, l] = f.useState(null), [d, u] = f.useState(null), c = re(t, (E) => u(E)), m = Bn(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
9425
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, s = ot(pt, n), a = rt(pt, n), [i, l] = f.useState(null), [d, u] = f.useState(null), c = re(t, (R) => u(R)), m = Bn(n), g = f.useRef(!1), b = f.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: w } = a, x = f.useCallback(() => {
9426
9426
  if (s.trigger && s.valueNode && i && d && h && v && y) {
9427
- const E = s.trigger.getBoundingClientRect(), k = d.getBoundingClientRect(), O = s.valueNode.getBoundingClientRect(), L = y.getBoundingClientRect();
9427
+ const R = s.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), M = s.valueNode.getBoundingClientRect(), z = y.getBoundingClientRect();
9428
9428
  if (s.dir !== "rtl") {
9429
- const oe = L.left - k.left, te = O.left - oe, ue = E.left - te, fe = E.width + ue, st = Math.max(fe, k.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9429
+ const oe = z.left - E.left, te = M.left - oe, ue = R.left - te, fe = R.width + ue, st = Math.max(fe, E.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9430
9430
  Ae,
9431
9431
  // Prevents the content from going off the starting edge of the
9432
9432
  // viewport. It may still go off the ending edge, but this can be
@@ -9437,13 +9437,13 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9437
9437
  ]);
9438
9438
  i.style.minWidth = fe + "px", i.style.left = Ne + "px";
9439
9439
  } else {
9440
- const oe = k.right - L.right, te = window.innerWidth - O.right - oe, ue = window.innerWidth - E.right - te, fe = E.width + ue, st = Math.max(fe, k.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9440
+ const oe = E.right - z.right, te = window.innerWidth - M.right - oe, ue = window.innerWidth - R.right - te, fe = R.width + ue, st = Math.max(fe, E.width), qe = window.innerWidth - Ae, Ne = xo(te, [
9441
9441
  Ae,
9442
9442
  Math.max(Ae, qe - st)
9443
9443
  ]);
9444
9444
  i.style.minWidth = fe + "px", i.style.right = Ne + "px";
9445
9445
  }
9446
- const B = m(), j = window.innerHeight - Ae * 2, U = h.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), M = I + S + U + A + T, P = Math.min(v.offsetHeight * 5, M), Q = window.getComputedStyle(h), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = E.top + E.height / 2 - Ae, Y = j - Z, X = v.offsetHeight / 2, F = v.offsetTop + X, H = I + S + F, J = M - H;
9446
+ const B = m(), U = window.innerHeight - Ae * 2, j = h.scrollHeight, K = window.getComputedStyle(d), I = parseInt(K.borderTopWidth, 10), S = parseInt(K.paddingTop, 10), T = parseInt(K.borderBottomWidth, 10), A = parseInt(K.paddingBottom, 10), O = I + S + j + A + T, P = Math.min(v.offsetHeight * 5, O), Q = window.getComputedStyle(h), ie = parseInt(Q.paddingTop, 10), G = parseInt(Q.paddingBottom, 10), Z = R.top + R.height / 2 - Ae, Y = U - Z, X = v.offsetHeight / 2, F = v.offsetTop + X, H = I + S + F, J = O - H;
9447
9447
  if (H <= Z) {
9448
9448
  const oe = B.length > 0 && v === B[B.length - 1].ref.current;
9449
9449
  i.style.bottom = "0px";
@@ -9463,7 +9463,7 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9463
9463
  ) + J;
9464
9464
  i.style.height = ue + "px", h.scrollTop = H - Z + h.offsetTop;
9465
9465
  }
9466
- i.style.margin = `${Ae}px 0`, i.style.minHeight = P + "px", i.style.maxHeight = j + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9466
+ i.style.margin = `${Ae}px 0`, i.style.minHeight = P + "px", i.style.maxHeight = U + "px", o == null || o(), requestAnimationFrame(() => g.current = !0);
9467
9467
  }
9468
9468
  }, [
9469
9469
  m,
@@ -9482,9 +9482,9 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9482
9482
  de(() => {
9483
9483
  d && N(window.getComputedStyle(d).zIndex);
9484
9484
  }, [d]);
9485
- const R = f.useCallback(
9486
- (E) => {
9487
- E && b.current === !0 && (x(), w == null || w(), b.current = !1);
9485
+ const k = f.useCallback(
9486
+ (R) => {
9487
+ R && b.current === !0 && (x(), w == null || w(), b.current = !1);
9488
9488
  },
9489
9489
  [x, w]
9490
9490
  );
@@ -9494,7 +9494,7 @@ var Lh = "SelectItemAlignedPosition", Fi = f.forwardRef((e, t) => {
9494
9494
  scope: n,
9495
9495
  contentWrapper: i,
9496
9496
  shouldExpandOnScrollRef: g,
9497
- onScrollButtonChange: R,
9497
+ onScrollButtonChange: k,
9498
9498
  children: /* @__PURE__ */ p(
9499
9499
  "div",
9500
9500
  {
@@ -10202,15 +10202,15 @@ var Ht = "Tooltip", [kg, Gt] = Un(Ht), yl = (e) => {
10202
10202
  } = e, l = sr(Ht, e.__scopeTooltip), d = jn(t), [u, c] = f.useState(null), m = ht(), g = f.useRef(0), b = a ?? l.disableHoverableContent, h = i ?? l.delayDuration, v = f.useRef(!1), [y, w] = Ue({
10203
10203
  prop: o,
10204
10204
  defaultProp: r ?? !1,
10205
- onChange: (E) => {
10206
- E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(No))) : l.onClose(), s == null || s(E);
10205
+ onChange: (R) => {
10206
+ R ? (l.onOpen(), document.dispatchEvent(new CustomEvent(No))) : l.onClose(), s == null || s(R);
10207
10207
  },
10208
10208
  caller: Ht
10209
10209
  }), x = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), C = f.useCallback(() => {
10210
10210
  window.clearTimeout(g.current), g.current = 0, v.current = !1, w(!0);
10211
10211
  }, [w]), N = f.useCallback(() => {
10212
10212
  window.clearTimeout(g.current), g.current = 0, w(!1);
10213
- }, [w]), R = f.useCallback(() => {
10213
+ }, [w]), k = f.useCallback(() => {
10214
10214
  window.clearTimeout(g.current), g.current = window.setTimeout(() => {
10215
10215
  v.current = !0, w(!0), g.current = 0;
10216
10216
  }, h);
@@ -10227,8 +10227,8 @@ var Ht = "Tooltip", [kg, Gt] = Un(Ht), yl = (e) => {
10227
10227
  trigger: u,
10228
10228
  onTriggerChange: c,
10229
10229
  onTriggerEnter: f.useCallback(() => {
10230
- l.isOpenDelayedRef.current ? R() : C();
10231
- }, [l.isOpenDelayedRef, R, C]),
10230
+ l.isOpenDelayedRef.current ? k() : C();
10231
+ }, [l.isOpenDelayedRef, k, C]),
10232
10232
  onTriggerLeave: f.useCallback(() => {
10233
10233
  b ? N() : (window.clearTimeout(g.current), g.current = 0);
10234
10234
  }, [N, b]),
@@ -11752,7 +11752,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11752
11752
  customerEmail: a,
11753
11753
  customerName: i
11754
11754
  }) => {
11755
- const [l, d] = le([]), [u, c] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), C = We(null), N = We(/* @__PURE__ */ new Set()), R = fn(() => l.filter((I) => I.manifest.permissions.includes("identity:extend")).map((I) => I.id), [l]);
11755
+ const [l, d] = le([]), [u, c] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), C = We(null), N = We(/* @__PURE__ */ new Set()), k = fn(() => l.filter((I) => I.manifest.permissions.includes("identity:extend")).map((I) => I.id), [l]);
11756
11756
  ce(() => {
11757
11757
  (async () => {
11758
11758
  const S = e;
@@ -11770,8 +11770,8 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11770
11770
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${S}`), d([]), y(!0);
11771
11771
  return;
11772
11772
  }
11773
- const A = await T.json(), M = ms(typeof window < "u" ? window.location.search : ""), P = await zc(A, M), { tokens: Q, errors: ie } = await bb(P, n, o, M);
11774
- d(P), c(M), g(new Map(Q)), h(ie);
11773
+ const A = await T.json(), O = ms(typeof window < "u" ? window.location.search : ""), P = await zc(A, O), { tokens: Q, errors: ie } = await bb(P, n, o, O);
11774
+ d(P), c(O), g(new Map(Q)), h(ie);
11775
11775
  } catch (T) {
11776
11776
  console.error("Failed to load extensions:", T);
11777
11777
  } finally {
@@ -11785,7 +11785,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11785
11785
  const T = [];
11786
11786
  await Promise.all(
11787
11787
  l.filter((A) => A.manifest.permissions.includes("data:fetch")).map(async (A) => {
11788
- const M = u.find((Z) => Z.extensionId === A.id), P = M == null ? void 0 : M.token, Q = M == null ? void 0 : M.mode, ie = Dt(n, "/proxy-token"), G = await fetch(ie, {
11788
+ const O = u.find((Z) => Z.extensionId === A.id), P = O == null ? void 0 : O.token, Q = O == null ? void 0 : O.mode, ie = Dt(n, "/proxy-token"), G = await fetch(ie, {
11789
11789
  method: "POST",
11790
11790
  headers: { "Content-Type": "application/json" },
11791
11791
  body: JSON.stringify({
@@ -11802,10 +11802,10 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11802
11802
  console.warn(`[embeddables] Proxy token refresh failed for extension ${A.id} (${G.status}) — using stale token`);
11803
11803
  })
11804
11804
  ), T.length > 0 && g((A) => {
11805
- const M = new Map(A);
11805
+ const O = new Map(A);
11806
11806
  for (const [P, Q] of T)
11807
- M.set(P, Q);
11808
- return M;
11807
+ O.set(P, Q);
11808
+ return O;
11809
11809
  });
11810
11810
  }, 3300 * 1e3);
11811
11811
  return () => clearInterval(S);
@@ -11816,37 +11816,37 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11816
11816
  const T = S.data;
11817
11817
  if ((T == null ? void 0 : T.type) !== "extension-ready")
11818
11818
  return;
11819
- const A = T.extensionId, M = l.find((ie) => ie.id === A);
11820
- if (!(M != null && M.bundleUrl))
11819
+ const A = T.extensionId, O = l.find((ie) => ie.id === A);
11820
+ if (!(O != null && O.bundleUrl))
11821
11821
  return;
11822
11822
  const P = u.find((ie) => ie.extensionId === A);
11823
- if (Oc(M.bundleUrl) && (P == null ? void 0 : P.mode) !== "staging")
11823
+ if (Oc(O.bundleUrl) && (P == null ? void 0 : P.mode) !== "staging")
11824
11824
  return;
11825
11825
  const Q = m.get(A);
11826
11826
  Q && ct(A, { type: "extension-encryption-key", encryptionKey: Q.encryptionKey });
11827
11827
  };
11828
11828
  return window.addEventListener("message", I), () => window.removeEventListener("message", I);
11829
11829
  }, [l, u, m]);
11830
- const E = _e((I, S) => {
11830
+ const R = _e((I, S) => {
11831
11831
  const T = uo();
11832
- for (const [A, M] of T)
11833
- M.manifest.permissions.includes("identity:subscribe") && ct(A, {
11832
+ for (const [A, O] of T)
11833
+ O.manifest.permissions.includes("identity:subscribe") && ct(A, {
11834
11834
  type: "extension-event",
11835
11835
  eventType: I,
11836
11836
  payload: { type: I, state: S, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
11837
11837
  });
11838
- }, []), k = _e(async (I) => {
11838
+ }, []), E = _e(async (I) => {
11839
11839
  const S = uo(), T = [];
11840
- for (const [M, P] of S) {
11840
+ for (const [O, P] of S) {
11841
11841
  if (!P.manifest.permissions.includes("identity:extend")) continue;
11842
11842
  const Q = new Promise((ie) => {
11843
- const G = `enrich_${M}_${Date.now()}`, Z = (Y) => {
11843
+ const G = `enrich_${O}_${Date.now()}`, Z = (Y) => {
11844
11844
  const X = Y.data;
11845
11845
  (X == null ? void 0 : X.type) !== "identity-extend-response" || X.id !== G || (window.removeEventListener("message", Z), X.additionalClaims ? ie(X.additionalClaims) : ie({}));
11846
11846
  };
11847
11847
  window.addEventListener("message", Z), setTimeout(() => {
11848
11848
  window.removeEventListener("message", Z), ie({});
11849
- }, 5e3), ct(M, {
11849
+ }, 5e3), ct(O, {
11850
11850
  type: "identity-extend-request",
11851
11851
  id: G,
11852
11852
  claims: I
@@ -11858,7 +11858,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11858
11858
  return {};
11859
11859
  const A = await Promise.all(T);
11860
11860
  return Object.assign({}, ...A);
11861
- }, []), O = _e(async (I) => {
11861
+ }, []), M = _e(async (I) => {
11862
11862
  if (!n || !o || !e)
11863
11863
  return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!n, appId: !!o, instanceId: !!e }), null;
11864
11864
  const S = Dt(n, `/instances/${o}/${e}/identity`);
@@ -11876,7 +11876,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11876
11876
  } catch (T) {
11877
11877
  return console.warn("[embeddables] Identity sign request failed:", T), null;
11878
11878
  }
11879
- }, [n, o, e]), L = _e((I) => {
11879
+ }, [n, o, e]), z = _e((I) => {
11880
11880
  const S = window.zE;
11881
11881
  S && S("messenger", "loginUser", async (T) => {
11882
11882
  T(I);
@@ -11884,33 +11884,33 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11884
11884
  }, []), B = _e(() => {
11885
11885
  const I = window.zE;
11886
11886
  I && I("messenger", "logoutUser");
11887
- }, []), j = _e((I) => {
11887
+ }, []), U = _e((I) => {
11888
11888
  console.log("[embeddables] Running sign lifecycle for user:", I.id);
11889
11889
  const { email: S, name: T } = I, A = { external_id: String(I.id) };
11890
11890
  (async () => {
11891
- const M = await k({ ...A, email: S, name: T });
11892
- console.log("[embeddables] Enriched claims:", M);
11893
- const P = await O({
11891
+ const O = await E({ ...A, email: S, name: T });
11892
+ console.log("[embeddables] Enriched claims:", O);
11893
+ const P = await M({
11894
11894
  ...A,
11895
- ...M,
11895
+ ...O,
11896
11896
  email: S,
11897
11897
  name: T
11898
11898
  });
11899
- console.log("[embeddables] Sign result:", { hasToken: !!P }), P && L(P);
11899
+ console.log("[embeddables] Sign result:", { hasToken: !!P }), P && z(P);
11900
11900
  })();
11901
- }, [k, O, L]), U = _e((I) => {
11902
- if (R.length > 0 && N.current.size < R.length) {
11903
- console.log(`[embeddables] Deferring sign lifecycle — waiting for identity:extend extensions: ${N.current.size}/${R.length} ready`), C.current = I;
11901
+ }, [E, M, z]), j = _e((I) => {
11902
+ if (k.length > 0 && N.current.size < k.length) {
11903
+ console.log(`[embeddables] Deferring sign lifecycle — waiting for identity:extend extensions: ${N.current.size}/${k.length} ready`), C.current = I;
11904
11904
  return;
11905
11905
  }
11906
- console.log("[embeddables] No identity:extend extensions (or all ready) — signing immediately"), j(I);
11907
- }, [R, j]);
11906
+ console.log("[embeddables] No identity:extend extensions (or all ready) — signing immediately"), U(I);
11907
+ }, [k, U]);
11908
11908
  ce(() => {
11909
11909
  if (!v) {
11910
11910
  console.log("[embeddables] Identity effect skipped — extensions not loaded yet");
11911
11911
  return;
11912
11912
  }
11913
- if (console.log("[embeddables] Identity effect running", { initialized: v, customerId: !!s, extendExtensions: R.length }), s) {
11913
+ if (console.log("[embeddables] Identity effect running", { initialized: v, customerId: !!s, extendExtensions: k.length }), s) {
11914
11914
  console.log("[embeddables] Identity from props:", { customerId: s, customerEmail: a, customerName: i });
11915
11915
  const I = {
11916
11916
  authenticated: !0,
@@ -11923,21 +11923,21 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11923
11923
  };
11924
11924
  x((S) => {
11925
11925
  var T, A;
11926
- return S.authenticated && ((T = S.user) == null ? void 0 : T.id) === ((A = I.user) == null ? void 0 : A.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), U(I.user), E("identity.login", I), I);
11926
+ return S.authenticated && ((T = S.user) == null ? void 0 : T.id) === ((A = I.user) == null ? void 0 : A.id) ? S : (console.log("[embeddables] Identity state changed (props), starting sign lifecycle"), j(I.user), R("identity.login", I), I);
11927
11927
  });
11928
11928
  } else {
11929
11929
  if (s === void 0)
11930
11930
  return;
11931
- x((I) => I.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), B(), E("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : I);
11931
+ x((I) => I.authenticated ? (console.log("[embeddables] Customer props cleared, logging out"), B(), R("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : I);
11932
11932
  }
11933
- }, [v, s, a, i, R, U, E, B]), ce(() => {
11933
+ }, [v, s, a, i, k, j, R, B]), ce(() => {
11934
11934
  if (!v || s !== void 0)
11935
11935
  return;
11936
11936
  const I = () => {
11937
11937
  const T = document.getElementById("stackable-identity");
11938
11938
  if (T)
11939
11939
  try {
11940
- const A = JSON.parse(T.textContent ?? "{}"), M = {
11940
+ const A = JSON.parse(T.textContent ?? "{}"), O = {
11941
11941
  authenticated: !0,
11942
11942
  user: {
11943
11943
  id: String(A.customerId ?? ""),
@@ -11948,26 +11948,26 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11948
11948
  };
11949
11949
  x((P) => {
11950
11950
  var Q, ie;
11951
- return P.authenticated && ((Q = P.user) == null ? void 0 : Q.id) === ((ie = M.user) == null ? void 0 : ie.id) ? P : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), U(M.user), E("identity.login", M), M);
11951
+ return P.authenticated && ((Q = P.user) == null ? void 0 : Q.id) === ((ie = O.user) == null ? void 0 : ie.id) ? P : (console.log("[embeddables] Identity state changed (DOM), starting sign lifecycle"), j(O.user), R("identity.login", O), O);
11952
11952
  });
11953
11953
  } catch {
11954
11954
  console.warn("[embeddables] Failed to parse #stackable-identity JSON");
11955
11955
  }
11956
11956
  else
11957
- x((A) => A.authenticated ? (B(), E("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : A);
11957
+ x((A) => A.authenticated ? (B(), R("identity.logout", { authenticated: !1, user: null }), { authenticated: !1, user: null }) : A);
11958
11958
  };
11959
11959
  I();
11960
11960
  const S = new MutationObserver(I);
11961
11961
  return S.observe(document.head, { childList: !0, subtree: !0 }), S.observe(document.body, { childList: !0, subtree: !0 }), () => S.disconnect();
11962
- }, [v, s, U, E, B]), ce(() => {
11962
+ }, [v, s, j, R, B]), ce(() => {
11963
11963
  if (!w.authenticated)
11964
11964
  return;
11965
11965
  const I = (S) => {
11966
11966
  const T = S.data;
11967
11967
  if ((T == null ? void 0 : T.type) !== "extension-ready")
11968
11968
  return;
11969
- const A = T.extensionId, M = l.find((P) => P.id === A);
11970
- M != null && M.manifest.permissions.includes("identity:subscribe") && ct(A, {
11969
+ const A = T.extensionId, O = l.find((P) => P.id === A);
11970
+ O != null && O.manifest.permissions.includes("identity:subscribe") && ct(A, {
11971
11971
  type: "extension-event",
11972
11972
  eventType: "identity.login",
11973
11973
  payload: { type: "identity.login", state: w, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
@@ -11975,31 +11975,31 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
11975
11975
  };
11976
11976
  return window.addEventListener("message", I), () => window.removeEventListener("message", I);
11977
11977
  }, [w, l]), ce(() => {
11978
- if (R.length === 0)
11978
+ if (k.length === 0)
11979
11979
  return;
11980
11980
  const I = (T) => {
11981
11981
  const A = T.data;
11982
11982
  if ((A == null ? void 0 : A.type) !== "extension-ready")
11983
11983
  return;
11984
- const M = A.extensionId;
11985
- if (R.includes(M) && (N.current.add(M), console.log(`[embeddables] identity:extend extension ready: ${M} (${N.current.size}/${R.length})`), N.current.size >= R.length && C.current)) {
11984
+ const O = A.extensionId;
11985
+ if (k.includes(O) && (N.current.add(O), console.log(`[embeddables] identity:extend extension ready: ${O} (${N.current.size}/${k.length})`), N.current.size >= k.length && C.current)) {
11986
11986
  console.log("[embeddables] All identity:extend extensions ready, running deferred sign lifecycle");
11987
11987
  const P = C.current;
11988
- C.current = null, j(P);
11988
+ C.current = null, U(P);
11989
11989
  }
11990
11990
  };
11991
11991
  window.addEventListener("message", I);
11992
11992
  const S = setTimeout(() => {
11993
11993
  if (C.current) {
11994
- console.warn(`[embeddables] identity:extend timeout (5s) — signing with ${N.current.size}/${R.length} extensions ready`);
11994
+ console.warn(`[embeddables] identity:extend timeout (5s) — signing with ${N.current.size}/${k.length} extensions ready`);
11995
11995
  const T = C.current;
11996
- C.current = null, j(T);
11996
+ C.current = null, U(T);
11997
11997
  }
11998
11998
  }, 5e3);
11999
11999
  return () => {
12000
12000
  window.removeEventListener("message", I), clearTimeout(S);
12001
12001
  };
12002
- }, [R, j]);
12002
+ }, [k, U]);
12003
12003
  const K = fn(
12004
12004
  () => ({
12005
12005
  // TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
@@ -12019,7 +12019,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
12019
12019
  method: S.method ?? "GET",
12020
12020
  headers: S.headers ?? {},
12021
12021
  body: S.body ?? null
12022
- }, M = Dt(n, "/proxy"), P = await fetch(M, {
12022
+ }, O = Dt(n, "/proxy"), P = await fetch(O, {
12023
12023
  method: "POST",
12024
12024
  headers: {
12025
12025
  "Content-Type": "application/json",
@@ -12044,11 +12044,11 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", Nl = {
12044
12044
  ...S.closeButton != null && { closeButton: S.closeButton }
12045
12045
  };
12046
12046
  if (S.fetch) {
12047
- const A = (P) => new Promise((Q) => setTimeout(Q, P)), M = Promise.all([
12047
+ const A = (P) => new Promise((Q) => setTimeout(Q, P)), O = Promise.all([
12048
12048
  K["data.fetch"](I, S.fetch),
12049
12049
  A(vb)
12050
12050
  ]).then(([P]) => P);
12051
- yt.promise(M, {
12051
+ yt.promise(O, {
12052
12052
  loading: S.loading ?? S.message,
12053
12053
  success: S.success ?? S.message,
12054
12054
  error: S.error ?? "Something went wrong",
@@ -12315,77 +12315,77 @@ const kb = ({ ...e }) => {
12315
12315
  const a = Math.max(
12316
12316
  lo,
12317
12317
  Math.min(co, s)
12318
- ), [i, l] = le("account"), [d, u] = le(a), [c, m] = le(!1), [g, b] = le(null), [, h] = le(!1), [v, y] = le(!1), w = We(null), x = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12318
+ ), [i, l] = le("extensions"), [d, u] = le(a), [c, m] = le(!1), [g, b] = le("loading"), [h, v] = le(!1), y = We(null), w = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12319
12319
  mode: "embedded",
12320
- conversationList: { targetElement: "#widget_conversations" },
12321
- messageLog: { targetElement: "#widget_messages" }
12320
+ messageLog: { targetElement: "#widget_messages" },
12321
+ conversationList: { targetElement: "#widget_conversations" }
12322
12322
  }), window.zE("messenger:set", "customization", {
12323
12323
  common: { hideHeader: !1 },
12324
- conversationList: { hideHeader: !0, hideNewConversationButton: !0 },
12325
- messageLog: { hideHeader: !0 }
12324
+ messageLog: { hideHeader: !0 },
12325
+ conversationList: { hideHeader: !0, hideNewConversationButton: !0 }
12326
12326
  }), !0), []);
12327
12327
  ce(() => {
12328
- if (x()) {
12329
- h(!0);
12328
+ if (w()) {
12329
+ b("ready");
12330
12330
  return;
12331
12331
  }
12332
- const E = setInterval(() => {
12333
- x() && (h(!0), clearInterval(E));
12334
- }, 100), k = setTimeout(() => {
12335
- clearInterval(E), b("Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured."), console.warn("Zendesk widget failed to load after 10 seconds");
12332
+ const k = setInterval(() => {
12333
+ w() && (b("ready"), clearInterval(k));
12334
+ }, 100), R = setTimeout(() => {
12335
+ clearInterval(k), b((E) => E === "ready" ? E : (console.warn("Zendesk widget failed to load after 10 seconds"), "error"));
12336
12336
  }, 1e4);
12337
12337
  return () => {
12338
- clearInterval(E), clearTimeout(k);
12338
+ clearInterval(k), clearTimeout(R);
12339
12339
  };
12340
- }, [x]);
12341
- const C = _e((E) => {
12342
- const { detail: k } = E;
12343
- !window.zE || !(k != null && k.payload) || window.zE("messenger:ui", "newConversation", k.payload);
12340
+ }, [w]);
12341
+ const x = _e((k) => {
12342
+ const { detail: R } = k;
12343
+ !window.zE || !(R != null && R.payload) || window.zE("messenger:ui", "newConversation", R.payload);
12344
12344
  }, []);
12345
- ce(() => (window.addEventListener("ext-action-newConversation", C), () => {
12346
- window.removeEventListener("ext-action-newConversation", C);
12347
- }), [C]), ce(() => {
12348
- if (!v) return;
12349
- const E = (O) => {
12350
- if (!w.current) return;
12351
- const L = w.current.getBoundingClientRect();
12352
- if ((c ? L.width : L.height) === 0) return;
12353
- const j = c ? (O.clientX - L.left) / L.width * 100 : (O.clientY - L.top) / L.height * 100, U = Math.max(
12345
+ ce(() => (window.addEventListener("ext-action-newConversation", x), () => {
12346
+ window.removeEventListener("ext-action-newConversation", x);
12347
+ }), [x]), ce(() => {
12348
+ if (!h) return;
12349
+ const k = (E) => {
12350
+ if (!y.current) return;
12351
+ const M = y.current.getBoundingClientRect();
12352
+ if ((c ? M.width : M.height) === 0) return;
12353
+ const B = c ? (E.clientX - M.left) / M.width * 100 : (E.clientY - M.top) / M.height * 100, U = Math.max(
12354
12354
  lo,
12355
- Math.min(co, j)
12355
+ Math.min(co, B)
12356
12356
  );
12357
12357
  u(U);
12358
- }, k = () => {
12359
- y(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
12358
+ }, R = () => {
12359
+ v(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
12360
12360
  };
12361
- return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", k), window.addEventListener("blur", k), () => {
12362
- window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", k), window.removeEventListener("blur", k), document.body.style.cursor = "", document.body.style.userSelect = "";
12361
+ return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", k), window.addEventListener("mouseup", R), window.addEventListener("blur", R), () => {
12362
+ window.removeEventListener("mousemove", k), window.removeEventListener("mouseup", R), window.removeEventListener("blur", R), document.body.style.cursor = "", document.body.style.userSelect = "";
12363
12363
  };
12364
- }, [v, c]), ce(() => {
12365
- if (!w.current) return;
12366
- const E = w.current, k = () => {
12367
- const L = getComputedStyle(E).flexDirection === "row";
12368
- m(L);
12364
+ }, [h, c]), ce(() => {
12365
+ if (!y.current) return;
12366
+ const k = y.current, R = () => {
12367
+ const M = getComputedStyle(k).flexDirection === "row";
12368
+ m(M);
12369
12369
  };
12370
- k();
12371
- const O = new ResizeObserver(k);
12372
- return O.observe(E), () => {
12373
- O.disconnect();
12370
+ R();
12371
+ const E = new ResizeObserver(R);
12372
+ return E.observe(k), () => {
12373
+ E.disconnect();
12374
12374
  };
12375
12375
  }, []);
12376
- const N = _e((E) => {
12377
- if (E.detail === 2) {
12376
+ const C = _e((k) => {
12377
+ if (k.detail === 2) {
12378
12378
  u(a);
12379
12379
  return;
12380
12380
  }
12381
- E.preventDefault(), y(!0);
12382
- }, [a]), R = { customerId: o, customerEmail: r };
12381
+ k.preventDefault(), v(!0);
12382
+ }, [a]), N = { customerId: o, customerEmail: r };
12383
12383
  return /* @__PURE__ */ $("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
12384
12384
  /* @__PURE__ */ p("style", {
12385
12385
  // eslint-disable-next-line @stylistic/quotes
12386
12386
  children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
12387
12387
  }),
12388
- /* @__PURE__ */ $("div", { ref: w, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
12388
+ /* @__PURE__ */ $("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
12389
12389
  /* @__PURE__ */ $(
12390
12390
  "div",
12391
12391
  {
@@ -12394,7 +12394,7 @@ const kb = ({ ...e }) => {
12394
12394
  style: { flexBasis: `${d}%` },
12395
12395
  children: [
12396
12396
  /* @__PURE__ */ $("div", { className: "flex items-center justify-between px-4 py-3", children: [
12397
- /* @__PURE__ */ p("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
12397
+ /* @__PURE__ */ p("h2", { className: "font-semibold text-sm text-foreground", children: i === "extensions" ? "My Profile" : "My Conversations" }),
12398
12398
  /* @__PURE__ */ $("div", { className: "flex items-center gap-1", children: [
12399
12399
  e && /* @__PURE__ */ p("div", { className: "flex mr-1 gap-1", children: e }),
12400
12400
  /* @__PURE__ */ $("div", { className: "flex rounded-lg bg-muted p-1", children: [
@@ -12402,13 +12402,13 @@ const kb = ({ ...e }) => {
12402
12402
  /* @__PURE__ */ p(
12403
12403
  "button",
12404
12404
  {
12405
- onClick: () => l("account"),
12405
+ onClick: () => l("extensions"),
12406
12406
  className: V(
12407
12407
  // eslint-disable-next-line @stylistic/max-len
12408
12408
  "rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
12409
- i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
12409
+ i === "extensions" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
12410
12410
  ),
12411
- title: "My Account",
12411
+ title: "My Profile",
12412
12412
  children: /* @__PURE__ */ p(xs, { className: "h-4 w-4" })
12413
12413
  }
12414
12414
  ),
@@ -12434,7 +12434,7 @@ const kb = ({ ...e }) => {
12434
12434
  Zt,
12435
12435
  {
12436
12436
  target: "slot.header",
12437
- context: R,
12437
+ context: N,
12438
12438
  className: "flex-none"
12439
12439
  }
12440
12440
  ) }),
@@ -12442,15 +12442,15 @@ const kb = ({ ...e }) => {
12442
12442
  Zt,
12443
12443
  {
12444
12444
  target: "slot.content",
12445
- context: R,
12445
+ context: N,
12446
12446
  className: "flex flex-col gap-2"
12447
12447
  }
12448
12448
  )
12449
12449
  ] }),
12450
12450
  /* @__PURE__ */ p("div", { className: V(
12451
12451
  "h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
12452
- i === "account" && "hidden"
12453
- ), children: /* @__PURE__ */ p(Ab, {}) })
12452
+ i === "extensions" && "hidden"
12453
+ ), children: g === "error" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: "Error loading conversations." }) }) : /* @__PURE__ */ p(Ab, {}) })
12454
12454
  ] })
12455
12455
  ]
12456
12456
  }
@@ -12462,13 +12462,13 @@ const kb = ({ ...e }) => {
12462
12462
  className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
12463
12463
  style: { flexBasis: `${100 - d}%` },
12464
12464
  children: [
12465
- /* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: g ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: g }) }) : /* @__PURE__ */ p(_b, {}) }),
12465
+ /* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: g === "error" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: "Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured." }) }) : /* @__PURE__ */ p(_b, {}) }),
12466
12466
  /* @__PURE__ */ $("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
12467
12467
  /* @__PURE__ */ p(
12468
12468
  Zt,
12469
12469
  {
12470
12470
  target: "slot.footer",
12471
- context: R,
12471
+ context: N,
12472
12472
  className: "flex items-center gap-1",
12473
12473
  fallback: /* @__PURE__ */ $(Fe, { children: [
12474
12474
  /* @__PURE__ */ p("div", { children: "powered by" }),
@@ -12480,12 +12480,12 @@ const kb = ({ ...e }) => {
12480
12480
  Zt,
12481
12481
  {
12482
12482
  target: "slot.footer-links",
12483
- context: R,
12483
+ context: N,
12484
12484
  className: "flex items-center gap-1",
12485
12485
  separator: /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "/" }),
12486
- render: ({ children: E, index: k }) => /* @__PURE__ */ $(Fe, { children: [
12487
- k === 0 && /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "+" }),
12488
- E
12486
+ render: ({ children: k, index: R }) => /* @__PURE__ */ $(Fe, { children: [
12487
+ R === 0 && /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "+" }),
12488
+ k
12489
12489
  ] })
12490
12490
  }
12491
12491
  )
@@ -12501,7 +12501,7 @@ const kb = ({ ...e }) => {
12501
12501
  c ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
12502
12502
  ),
12503
12503
  style: c ? { left: `${d}%` } : { top: `${d}%` },
12504
- onMouseDown: N,
12504
+ onMouseDown: C,
12505
12505
  role: "separator",
12506
12506
  "aria-label": "Resize panels",
12507
12507
  "aria-orientation": c ? "vertical" : "horizontal",
@@ -12514,17 +12514,17 @@ const kb = ({ ...e }) => {
12514
12514
  className: V(
12515
12515
  "rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
12516
12516
  c ? "h-20 w-0.5" : "h-0.5 w-20",
12517
- v ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
12517
+ h ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
12518
12518
  )
12519
12519
  }
12520
12520
  )
12521
12521
  }
12522
12522
  ),
12523
- v && /* @__PURE__ */ p(
12523
+ h && /* @__PURE__ */ p(
12524
12524
  "div",
12525
12525
  {
12526
12526
  className: V("absolute inset-0 z-40", c ? "cursor-col-resize" : "cursor-row-resize"),
12527
- onMouseUp: () => y(!1)
12527
+ onMouseUp: () => v(!1)
12528
12528
  }
12529
12529
  )
12530
12530
  ] })