teodor-new-chat-ui 3.0.68 → 3.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2352,22 +2352,22 @@ Xe.getAdapter = zc.getAdapter;
2352
2352
  Xe.HttpStatusCode = oi;
2353
2353
  Xe.default = Xe;
2354
2354
  const {
2355
- Axios: UT,
2356
- AxiosError: WT,
2357
- CanceledError: VT,
2358
- isCancel: GT,
2359
- CancelToken: KT,
2360
- VERSION: YT,
2361
- all: qT,
2362
- Cancel: XT,
2363
- isAxiosError: JT,
2364
- spread: ZT,
2365
- toFormData: QT,
2366
- AxiosHeaders: eR,
2367
- HttpStatusCode: tR,
2368
- formToJSON: nR,
2369
- getAdapter: rR,
2370
- mergeConfig: oR
2355
+ Axios: WT,
2356
+ AxiosError: VT,
2357
+ CanceledError: GT,
2358
+ isCancel: KT,
2359
+ CancelToken: YT,
2360
+ VERSION: qT,
2361
+ all: XT,
2362
+ Cancel: JT,
2363
+ isAxiosError: ZT,
2364
+ spread: QT,
2365
+ toFormData: eR,
2366
+ AxiosHeaders: tR,
2367
+ HttpStatusCode: nR,
2368
+ formToJSON: rR,
2369
+ getAdapter: oR,
2370
+ mergeConfig: sR
2371
2371
  } = Xe, fl = typeof window < "u" ? window.__API_BASE_URL__ : void 0, si = fl ? fl.replace(/\/+$/, "") : void 0;
2372
2372
  !si && typeof window < "u" && console.warn("API base URL is not configured. The API client will need to be configured via apiConfig prop or window.__API_BASE_URL__.");
2373
2373
  let To = null;
@@ -6726,7 +6726,7 @@ function Dt(e) {
6726
6726
  n((r) => r ?? String(Vx++));
6727
6727
  }, [e]), e || (t ? `radix-${t}` : "");
6728
6728
  }
6729
- var Jo = "Collapsible", [Gx, sR] = $t(Jo), [Kx, ea] = Gx(Jo), ju = f.forwardRef(
6729
+ var Jo = "Collapsible", [Gx, iR] = $t(Jo), [Kx, ea] = Gx(Jo), ju = f.forwardRef(
6730
6730
  (e, t) => {
6731
6731
  const {
6732
6732
  __scopeCollapsible: n,
@@ -6836,7 +6836,11 @@ const Ml = Xx, Dl = ku, Pu = new URL("data:video/mp2t;base64,Ly8vIDxyZWZlcmVuY2U
6836
6836
  } catch {
6837
6837
  return !1;
6838
6838
  }
6839
- })(), Zx = br.includes("data:"), Zo = Jx && !Zx, ra = (e) => typeof e == "object" && e !== null, Ls = (e) => typeof e == "function" ? e : ra(e) && typeof e.parse == "function" ? e.parse : null;
6839
+ })(), Zx = br.includes("data:"), Qx = (() => {
6840
+ if (typeof navigator > "u") return !1;
6841
+ const e = navigator.userAgent.toLowerCase();
6842
+ return e.includes("safari") && !e.includes("chrome") && !e.includes("android");
6843
+ })(), Zo = Jx && !(Zx && Qx), ra = (e) => typeof e == "object" && e !== null, Ls = (e) => typeof e == "function" ? e : ra(e) && typeof e.parse == "function" ? e.parse : null;
6840
6844
  let Xr = null;
6841
6845
  async function Ll(e) {
6842
6846
  try {
@@ -6847,7 +6851,7 @@ async function Ll(e) {
6847
6851
  throw Xr = null, t;
6848
6852
  }
6849
6853
  }
6850
- const Qx = (e) => ra(e) && typeof e.highlightElement == "function" ? { highlightElement: e.highlightElement } : null;
6854
+ const eb = (e) => ra(e) && typeof e.highlightElement == "function" ? { highlightElement: e.highlightElement } : null;
6851
6855
  console.log("[MarkdownContent] worker url", br);
6852
6856
  const pi = [];
6853
6857
  let mi = !1;
@@ -6890,7 +6894,7 @@ function gi(e) {
6890
6894
  console.warn("[MarkdownContent] markWorkerOnline notify failed", t);
6891
6895
  }
6892
6896
  }
6893
- function eb(e) {
6897
+ function tb(e) {
6894
6898
  if (!Zo)
6895
6899
  return null;
6896
6900
  const t = e.indexOf("data:");
@@ -6911,7 +6915,7 @@ function eb(e) {
6911
6915
  return console.warn("[MarkdownContent] failed to decode embedded data URI", o), null;
6912
6916
  }
6913
6917
  }
6914
- async function tb(e) {
6918
+ async function nb(e) {
6915
6919
  if (Zo)
6916
6920
  try {
6917
6921
  let t = "";
@@ -6937,9 +6941,9 @@ async function tb(e) {
6937
6941
  console.error("[MarkdownContent] fetch worker failed", t);
6938
6942
  }
6939
6943
  }
6940
- function nb() {
6944
+ function rb() {
6941
6945
  if (br.includes("data:")) {
6942
- const e = eb(br);
6946
+ const e = tb(br);
6943
6947
  if (e) {
6944
6948
  gi(e);
6945
6949
  return;
@@ -6951,17 +6955,17 @@ function nb() {
6951
6955
  const e = new Worker(Pu, { type: "module" });
6952
6956
  gi(e);
6953
6957
  } catch (e) {
6954
- console.warn("[MarkdownContent] worker constructor failed, will try fetch+blob fallback", e), tb(br);
6958
+ console.warn("[MarkdownContent] worker constructor failed, will try fetch+blob fallback", e), nb(br);
6955
6959
  }
6956
6960
  }
6957
- Zo ? nb() : console.warn("[MarkdownContent] module workers not supported; falling back to main-thread markdown parsing");
6961
+ Zo ? rb() : console.warn("[MarkdownContent] module workers not supported; falling back to main-thread markdown parsing");
6958
6962
  const Bn = /* @__PURE__ */ new Map();
6959
- function rb(e) {
6963
+ function ob(e) {
6960
6964
  const t = e.slice(0, 64), n = e.length > 64 ? e.slice(-64) : "";
6961
6965
  return `${e.length}:${t}:${n}`;
6962
6966
  }
6963
6967
  function Jr({ content: e, className: t = "", fallback: n = /* @__PURE__ */ l.jsx("div", { "aria-busy": !0, children: "Rendering…" }) }) {
6964
- const r = rb(e), [o, s] = fe(() => Bn.get(r) ?? null);
6968
+ const r = ob(e), [o, s] = fe(() => Bn.get(r) ?? null);
6965
6969
  Ve(() => {
6966
6970
  if (Bn.has(r)) {
6967
6971
  const g = Bn.get(r) ?? null;
@@ -7028,7 +7032,7 @@ function Jr({ content: e, className: t = "", fallback: n = /* @__PURE__ */ l.jsx
7028
7032
  if (!u)
7029
7033
  import("./index-BixObhJB.js").then((b) => {
7030
7034
  if (d) return;
7031
- const w = Qx(b.default ?? b);
7035
+ const w = eb(b.default ?? b);
7032
7036
  if (w) {
7033
7037
  u = w;
7034
7038
  try {
@@ -7069,7 +7073,7 @@ async function Ou(e, t) {
7069
7073
  async function Bl(e, t) {
7070
7074
  return await (await Ou(`/chat/files/${e}/view`, t)).text();
7071
7075
  }
7072
- async function ob(e, t) {
7076
+ async function sb(e, t) {
7073
7077
  const n = await Ou(`/chat/files/${e}/download`, t), r = URL.createObjectURL(n);
7074
7078
  let o = `file_${e}`;
7075
7079
  try {
@@ -7080,9 +7084,9 @@ async function ob(e, t) {
7080
7084
  const s = document.createElement("a");
7081
7085
  s.href = r, s.download = o, document.body.appendChild(s), s.click(), s.remove(), setTimeout(() => URL.revokeObjectURL(r), 6e4);
7082
7086
  }
7083
- const sb = 1, ib = 1e6;
7087
+ const ib = 1, ab = 1e6;
7084
7088
  let Fs = 0;
7085
- function ab() {
7089
+ function lb() {
7086
7090
  return Fs = (Fs + 1) % Number.MAX_SAFE_INTEGER, Fs.toString();
7087
7091
  }
7088
7092
  const Bs = /* @__PURE__ */ new Map(), Hl = (e) => {
@@ -7093,14 +7097,14 @@ const Bs = /* @__PURE__ */ new Map(), Hl = (e) => {
7093
7097
  type: "REMOVE_TOAST",
7094
7098
  toastId: e
7095
7099
  });
7096
- }, ib);
7100
+ }, ab);
7097
7101
  Bs.set(e, t);
7098
- }, lb = (e, t) => {
7102
+ }, cb = (e, t) => {
7099
7103
  switch (t.type) {
7100
7104
  case "ADD_TOAST":
7101
7105
  return {
7102
7106
  ...e,
7103
- toasts: [t.toast, ...e.toasts].slice(0, sb)
7107
+ toasts: [t.toast, ...e.toasts].slice(0, ib)
7104
7108
  };
7105
7109
  case "UPDATE_TOAST":
7106
7110
  return {
@@ -7135,12 +7139,12 @@ const Bs = /* @__PURE__ */ new Map(), Hl = (e) => {
7135
7139
  }, uo = [];
7136
7140
  let fo = { toasts: [] };
7137
7141
  function wr(e) {
7138
- fo = lb(fo, e), uo.forEach((t) => {
7142
+ fo = cb(fo, e), uo.forEach((t) => {
7139
7143
  t(fo);
7140
7144
  });
7141
7145
  }
7142
- function cb({ ...e }) {
7143
- const t = ab(), n = (o) => wr({
7146
+ function ub({ ...e }) {
7147
+ const t = lb(), n = (o) => wr({
7144
7148
  type: "UPDATE_TOAST",
7145
7149
  toast: { ...o, id: t }
7146
7150
  }), r = () => wr({ type: "DISMISS_TOAST", toastId: t });
@@ -7167,7 +7171,7 @@ function oa() {
7167
7171
  n > -1 && uo.splice(n, 1);
7168
7172
  }), [e]), {
7169
7173
  ...e,
7170
- toast: cb,
7174
+ toast: ub,
7171
7175
  dismiss: (n) => wr({ type: "DISMISS_TOAST", toastId: n })
7172
7176
  };
7173
7177
  }
@@ -7180,7 +7184,7 @@ function ot(e) {
7180
7184
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
7181
7185
  }, []);
7182
7186
  }
7183
- function ub(e, t = globalThis == null ? void 0 : globalThis.document) {
7187
+ function db(e, t = globalThis == null ? void 0 : globalThis.document) {
7184
7188
  const n = ot(e);
7185
7189
  f.useEffect(() => {
7186
7190
  const r = (o) => {
@@ -7189,7 +7193,7 @@ function ub(e, t = globalThis == null ? void 0 : globalThis.document) {
7189
7193
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
7190
7194
  }, [n, t]);
7191
7195
  }
7192
- var db = "DismissableLayer", vi = "dismissableLayer.update", fb = "dismissableLayer.pointerDownOutside", hb = "dismissableLayer.focusOutside", $l, Mu = f.createContext({
7196
+ var fb = "DismissableLayer", vi = "dismissableLayer.update", hb = "dismissableLayer.pointerDownOutside", pb = "dismissableLayer.focusOutside", $l, Mu = f.createContext({
7193
7197
  layers: /* @__PURE__ */ new Set(),
7194
7198
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
7195
7199
  branches: /* @__PURE__ */ new Set()
@@ -7203,14 +7207,14 @@ var db = "DismissableLayer", vi = "dismissableLayer.update", fb = "dismissableLa
7203
7207
  onInteractOutside: i,
7204
7208
  onDismiss: a,
7205
7209
  ...c
7206
- } = e, u = f.useContext(Mu), [d, h] = f.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = f.useState({}), g = Ce(t, (R) => h(R)), v = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = v.indexOf(m), w = d ? v.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, E = w >= b, S = gb((R) => {
7210
+ } = e, u = f.useContext(Mu), [d, h] = f.useState(null), p = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = f.useState({}), g = Ce(t, (R) => h(R)), v = Array.from(u.layers), [m] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = v.indexOf(m), w = d ? v.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, E = w >= b, S = vb((R) => {
7207
7211
  const I = R.target, A = [...u.branches].some((k) => k.contains(I));
7208
7212
  !E || A || (o == null || o(R), i == null || i(R), R.defaultPrevented || a == null || a());
7209
- }, p), C = vb((R) => {
7213
+ }, p), C = xb((R) => {
7210
7214
  const I = R.target;
7211
7215
  [...u.branches].some((k) => k.contains(I)) || (s == null || s(R), i == null || i(R), R.defaultPrevented || a == null || a());
7212
7216
  }, p);
7213
- return ub((R) => {
7217
+ return db((R) => {
7214
7218
  w === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
7215
7219
  }, p), f.useEffect(() => {
7216
7220
  if (d)
@@ -7241,8 +7245,8 @@ var db = "DismissableLayer", vi = "dismissableLayer.update", fb = "dismissableLa
7241
7245
  );
7242
7246
  }
7243
7247
  );
7244
- $r.displayName = db;
7245
- var pb = "DismissableLayerBranch", mb = f.forwardRef((e, t) => {
7248
+ $r.displayName = fb;
7249
+ var mb = "DismissableLayerBranch", gb = f.forwardRef((e, t) => {
7246
7250
  const n = f.useContext(Mu), r = f.useRef(null), o = Ce(t, r);
7247
7251
  return f.useEffect(() => {
7248
7252
  const s = r.current;
@@ -7252,8 +7256,8 @@ var pb = "DismissableLayerBranch", mb = f.forwardRef((e, t) => {
7252
7256
  };
7253
7257
  }, [n.branches]), /* @__PURE__ */ l.jsx(me.div, { ...e, ref: o });
7254
7258
  });
7255
- mb.displayName = pb;
7256
- function gb(e, t = globalThis == null ? void 0 : globalThis.document) {
7259
+ gb.displayName = mb;
7260
+ function vb(e, t = globalThis == null ? void 0 : globalThis.document) {
7257
7261
  const n = ot(e), r = f.useRef(!1), o = f.useRef(() => {
7258
7262
  });
7259
7263
  return f.useEffect(() => {
@@ -7261,7 +7265,7 @@ function gb(e, t = globalThis == null ? void 0 : globalThis.document) {
7261
7265
  if (a.target && !r.current) {
7262
7266
  let c = function() {
7263
7267
  Du(
7264
- fb,
7268
+ hb,
7265
7269
  n,
7266
7270
  u,
7267
7271
  { discrete: !0 }
@@ -7283,11 +7287,11 @@ function gb(e, t = globalThis == null ? void 0 : globalThis.document) {
7283
7287
  onPointerDownCapture: () => r.current = !0
7284
7288
  };
7285
7289
  }
7286
- function vb(e, t = globalThis == null ? void 0 : globalThis.document) {
7290
+ function xb(e, t = globalThis == null ? void 0 : globalThis.document) {
7287
7291
  const n = ot(e), r = f.useRef(!1);
7288
7292
  return f.useEffect(() => {
7289
7293
  const o = (s) => {
7290
- s.target && !r.current && Du(hb, n, { originalEvent: s }, {
7294
+ s.target && !r.current && Du(pb, n, { originalEvent: s }, {
7291
7295
  discrete: !1
7292
7296
  });
7293
7297
  };
@@ -7305,7 +7309,7 @@ function Du(e, t, n, { discrete: r }) {
7305
7309
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
7306
7310
  t && o.addEventListener(e, t, { once: !0 }), r ? Nu(o, s) : o.dispatchEvent(s);
7307
7311
  }
7308
- var Hs = "focusScope.autoFocusOnMount", $s = "focusScope.autoFocusOnUnmount", Ul = { bubbles: !1, cancelable: !0 }, xb = "FocusScope", Qo = f.forwardRef((e, t) => {
7312
+ var Hs = "focusScope.autoFocusOnMount", $s = "focusScope.autoFocusOnUnmount", Ul = { bubbles: !1, cancelable: !0 }, bb = "FocusScope", Qo = f.forwardRef((e, t) => {
7309
7313
  const {
7310
7314
  loop: n = !1,
7311
7315
  trapped: r = !1,
@@ -7348,7 +7352,7 @@ var Hs = "focusScope.autoFocusOnMount", $s = "focusScope.autoFocusOnUnmount", Ul
7348
7352
  const v = document.activeElement;
7349
7353
  if (!a.contains(v)) {
7350
7354
  const b = new CustomEvent(Hs, Ul);
7351
- a.addEventListener(Hs, u), a.dispatchEvent(b), b.defaultPrevented || (bb(Tb(Lu(a)), { select: !0 }), document.activeElement === v && sn(a));
7355
+ a.addEventListener(Hs, u), a.dispatchEvent(b), b.defaultPrevented || (wb(Rb(Lu(a)), { select: !0 }), document.activeElement === v && sn(a));
7352
7356
  }
7353
7357
  return () => {
7354
7358
  a.removeEventListener(Hs, u), setTimeout(() => {
@@ -7363,7 +7367,7 @@ var Hs = "focusScope.autoFocusOnMount", $s = "focusScope.autoFocusOnUnmount", Ul
7363
7367
  if (!n && !r || x.paused) return;
7364
7368
  const m = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, b = document.activeElement;
7365
7369
  if (m && b) {
7366
- const w = v.currentTarget, [y, E] = wb(w);
7370
+ const w = v.currentTarget, [y, E] = yb(w);
7367
7371
  y && E ? !v.shiftKey && b === E ? (v.preventDefault(), n && sn(y, { select: !0 })) : v.shiftKey && b === y && (v.preventDefault(), n && sn(E, { select: !0 })) : b === w && v.preventDefault();
7368
7372
  }
7369
7373
  },
@@ -7371,13 +7375,13 @@ var Hs = "focusScope.autoFocusOnMount", $s = "focusScope.autoFocusOnUnmount", Ul
7371
7375
  );
7372
7376
  return /* @__PURE__ */ l.jsx(me.div, { tabIndex: -1, ...i, ref: p, onKeyDown: g });
7373
7377
  });
7374
- Qo.displayName = xb;
7375
- function bb(e, { select: t = !1 } = {}) {
7378
+ Qo.displayName = bb;
7379
+ function wb(e, { select: t = !1 } = {}) {
7376
7380
  const n = document.activeElement;
7377
7381
  for (const r of e)
7378
7382
  if (sn(r, { select: t }), document.activeElement !== n) return;
7379
7383
  }
7380
- function wb(e) {
7384
+ function yb(e) {
7381
7385
  const t = Lu(e), n = Wl(t, e), r = Wl(t.reverse(), e);
7382
7386
  return [n, r];
7383
7387
  }
@@ -7393,9 +7397,9 @@ function Lu(e) {
7393
7397
  }
7394
7398
  function Wl(e, t) {
7395
7399
  for (const n of e)
7396
- if (!yb(n, { upTo: t })) return n;
7400
+ if (!Sb(n, { upTo: t })) return n;
7397
7401
  }
7398
- function yb(e, { upTo: t }) {
7402
+ function Sb(e, { upTo: t }) {
7399
7403
  if (getComputedStyle(e).visibility === "hidden") return !0;
7400
7404
  for (; e; ) {
7401
7405
  if (t !== void 0 && e === t) return !1;
@@ -7404,17 +7408,17 @@ function yb(e, { upTo: t }) {
7404
7408
  }
7405
7409
  return !1;
7406
7410
  }
7407
- function Sb(e) {
7411
+ function Cb(e) {
7408
7412
  return e instanceof HTMLInputElement && "select" in e;
7409
7413
  }
7410
7414
  function sn(e, { select: t = !1 } = {}) {
7411
7415
  if (e && e.focus) {
7412
7416
  const n = document.activeElement;
7413
- e.focus({ preventScroll: !0 }), e !== n && Sb(e) && t && e.select();
7417
+ e.focus({ preventScroll: !0 }), e !== n && Cb(e) && t && e.select();
7414
7418
  }
7415
7419
  }
7416
- var Vl = Cb();
7417
- function Cb() {
7420
+ var Vl = Tb();
7421
+ function Tb() {
7418
7422
  let e = [];
7419
7423
  return {
7420
7424
  add(t) {
@@ -7431,17 +7435,17 @@ function Gl(e, t) {
7431
7435
  const n = [...e], r = n.indexOf(t);
7432
7436
  return r !== -1 && n.splice(r, 1), n;
7433
7437
  }
7434
- function Tb(e) {
7438
+ function Rb(e) {
7435
7439
  return e.filter((t) => t.tagName !== "A");
7436
7440
  }
7437
- var Rb = "Portal", es = f.forwardRef((e, t) => {
7441
+ var Eb = "Portal", es = f.forwardRef((e, t) => {
7438
7442
  var a;
7439
7443
  const { container: n, ...r } = e, [o, s] = f.useState(!1);
7440
7444
  tt(() => s(!0), []);
7441
7445
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
7442
7446
  return i ? bc.createPortal(/* @__PURE__ */ l.jsx(me.div, { ...r, ref: t }), i) : null;
7443
7447
  });
7444
- es.displayName = Rb;
7448
+ es.displayName = Eb;
7445
7449
  var zs = 0;
7446
7450
  function sa() {
7447
7451
  f.useEffect(() => {
@@ -7472,16 +7476,16 @@ function Fu(e, t) {
7472
7476
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
7473
7477
  return n;
7474
7478
  }
7475
- function Eb(e, t, n) {
7479
+ function Ib(e, t, n) {
7476
7480
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
7477
7481
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
7478
7482
  return e.concat(s || Array.prototype.slice.call(t));
7479
7483
  }
7480
- var ho = "right-scroll-bar-position", po = "width-before-scroll-bar", Ib = "with-scroll-bars-hidden", Nb = "--removed-body-scroll-bar-size";
7484
+ var ho = "right-scroll-bar-position", po = "width-before-scroll-bar", Nb = "with-scroll-bars-hidden", jb = "--removed-body-scroll-bar-size";
7481
7485
  function Us(e, t) {
7482
7486
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
7483
7487
  }
7484
- function jb(e, t) {
7488
+ function Ab(e, t) {
7485
7489
  var n = fe(function() {
7486
7490
  return {
7487
7491
  // value
@@ -7502,14 +7506,14 @@ function jb(e, t) {
7502
7506
  })[0];
7503
7507
  return n.callback = t, n.facade;
7504
7508
  }
7505
- var Ab = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Yl = /* @__PURE__ */ new WeakMap();
7506
- function kb(e, t) {
7507
- var n = jb(null, function(r) {
7509
+ var kb = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Yl = /* @__PURE__ */ new WeakMap();
7510
+ function Pb(e, t) {
7511
+ var n = Ab(null, function(r) {
7508
7512
  return e.forEach(function(o) {
7509
7513
  return Us(o, r);
7510
7514
  });
7511
7515
  });
7512
- return Ab(function() {
7516
+ return kb(function() {
7513
7517
  var r = Yl.get(n);
7514
7518
  if (r) {
7515
7519
  var o = new Set(r), s = new Set(e), i = n.current;
@@ -7522,11 +7526,11 @@ function kb(e, t) {
7522
7526
  Yl.set(n, e);
7523
7527
  }, [e]), n;
7524
7528
  }
7525
- function Pb(e) {
7529
+ function _b(e) {
7526
7530
  return e;
7527
7531
  }
7528
- function _b(e, t) {
7529
- t === void 0 && (t = Pb);
7532
+ function Ob(e, t) {
7533
+ t === void 0 && (t = _b);
7530
7534
  var n = [], r = !1, o = {
7531
7535
  read: function() {
7532
7536
  if (r)
@@ -7580,9 +7584,9 @@ function _b(e, t) {
7580
7584
  };
7581
7585
  return o;
7582
7586
  }
7583
- function Ob(e) {
7587
+ function Mb(e) {
7584
7588
  e === void 0 && (e = {});
7585
- var t = _b(null);
7589
+ var t = Ob(null);
7586
7590
  return t.options = Vt({ async: !0, ssr: !1 }, e), t;
7587
7591
  }
7588
7592
  var Bu = function(e) {
@@ -7595,16 +7599,16 @@ var Bu = function(e) {
7595
7599
  return f.createElement(r, Vt({}, n));
7596
7600
  };
7597
7601
  Bu.isSideCarExport = !0;
7598
- function Mb(e, t) {
7602
+ function Db(e, t) {
7599
7603
  return e.useMedium(t), Bu;
7600
7604
  }
7601
- var Hu = Ob(), Ws = function() {
7605
+ var Hu = Mb(), Ws = function() {
7602
7606
  }, ts = f.forwardRef(function(e, t) {
7603
7607
  var n = f.useRef(null), r = f.useState({
7604
7608
  onScrollCapture: Ws,
7605
7609
  onWheelCapture: Ws,
7606
7610
  onTouchMoveCapture: Ws
7607
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, h = e.shards, p = e.sideCar, x = e.noRelative, g = e.noIsolation, v = e.inert, m = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, y = e.gapMode, E = Fu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = p, C = kb([n, t]), R = Vt(Vt({}, E), o);
7611
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, h = e.shards, p = e.sideCar, x = e.noRelative, g = e.noIsolation, v = e.inert, m = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, y = e.gapMode, E = Fu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = p, C = Pb([n, t]), R = Vt(Vt({}, E), o);
7608
7612
  return f.createElement(
7609
7613
  f.Fragment,
7610
7614
  null,
@@ -7621,37 +7625,37 @@ ts.classNames = {
7621
7625
  fullWidth: po,
7622
7626
  zeroRight: ho
7623
7627
  };
7624
- var Db = function() {
7628
+ var Lb = function() {
7625
7629
  if (typeof __webpack_nonce__ < "u")
7626
7630
  return __webpack_nonce__;
7627
7631
  };
7628
- function Lb() {
7632
+ function Fb() {
7629
7633
  if (!document)
7630
7634
  return null;
7631
7635
  var e = document.createElement("style");
7632
7636
  e.type = "text/css";
7633
- var t = Db();
7637
+ var t = Lb();
7634
7638
  return t && e.setAttribute("nonce", t), e;
7635
7639
  }
7636
- function Fb(e, t) {
7640
+ function Bb(e, t) {
7637
7641
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
7638
7642
  }
7639
- function Bb(e) {
7643
+ function Hb(e) {
7640
7644
  var t = document.head || document.getElementsByTagName("head")[0];
7641
7645
  t.appendChild(e);
7642
7646
  }
7643
- var Hb = function() {
7647
+ var $b = function() {
7644
7648
  var e = 0, t = null;
7645
7649
  return {
7646
7650
  add: function(n) {
7647
- e == 0 && (t = Lb()) && (Fb(t, n), Bb(t)), e++;
7651
+ e == 0 && (t = Fb()) && (Bb(t, n), Hb(t)), e++;
7648
7652
  },
7649
7653
  remove: function() {
7650
7654
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
7651
7655
  }
7652
7656
  };
7653
- }, $b = function() {
7654
- var e = Hb();
7657
+ }, zb = function() {
7658
+ var e = $b();
7655
7659
  return function(t, n) {
7656
7660
  f.useEffect(function() {
7657
7661
  return e.add(t), function() {
@@ -7660,35 +7664,35 @@ var Hb = function() {
7660
7664
  }, [t && n]);
7661
7665
  };
7662
7666
  }, $u = function() {
7663
- var e = $b(), t = function(n) {
7667
+ var e = zb(), t = function(n) {
7664
7668
  var r = n.styles, o = n.dynamic;
7665
7669
  return e(r, o), null;
7666
7670
  };
7667
7671
  return t;
7668
- }, zb = {
7672
+ }, Ub = {
7669
7673
  left: 0,
7670
7674
  top: 0,
7671
7675
  right: 0,
7672
7676
  gap: 0
7673
7677
  }, Vs = function(e) {
7674
7678
  return parseInt(e || "", 10) || 0;
7675
- }, Ub = function(e) {
7679
+ }, Wb = function(e) {
7676
7680
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
7677
7681
  return [Vs(n), Vs(r), Vs(o)];
7678
- }, Wb = function(e) {
7682
+ }, Vb = function(e) {
7679
7683
  if (e === void 0 && (e = "margin"), typeof window > "u")
7680
- return zb;
7681
- var t = Ub(e), n = document.documentElement.clientWidth, r = window.innerWidth;
7684
+ return Ub;
7685
+ var t = Wb(e), n = document.documentElement.clientWidth, r = window.innerWidth;
7682
7686
  return {
7683
7687
  left: t[0],
7684
7688
  top: t[1],
7685
7689
  right: t[2],
7686
7690
  gap: Math.max(0, r - n + t[2] - t[0])
7687
7691
  };
7688
- }, Vb = $u(), Kn = "data-scroll-locked", Gb = function(e, t, n, r) {
7692
+ }, Gb = $u(), Kn = "data-scroll-locked", Kb = function(e, t, n, r) {
7689
7693
  var o = e.left, s = e.top, i = e.right, a = e.gap;
7690
7694
  return n === void 0 && (n = "margin"), `
7691
- .`.concat(Ib, ` {
7695
+ .`.concat(Nb, ` {
7692
7696
  overflow: hidden `).concat(r, `;
7693
7697
  padding-right: `).concat(a, "px ").concat(r, `;
7694
7698
  }
@@ -7726,26 +7730,26 @@ var Hb = function() {
7726
7730
  }
7727
7731
 
7728
7732
  body[`).concat(Kn, `] {
7729
- `).concat(Nb, ": ").concat(a, `px;
7733
+ `).concat(jb, ": ").concat(a, `px;
7730
7734
  }
7731
7735
  `);
7732
7736
  }, ql = function() {
7733
7737
  var e = parseInt(document.body.getAttribute(Kn) || "0", 10);
7734
7738
  return isFinite(e) ? e : 0;
7735
- }, Kb = function() {
7739
+ }, Yb = function() {
7736
7740
  f.useEffect(function() {
7737
7741
  return document.body.setAttribute(Kn, (ql() + 1).toString()), function() {
7738
7742
  var e = ql() - 1;
7739
7743
  e <= 0 ? document.body.removeAttribute(Kn) : document.body.setAttribute(Kn, e.toString());
7740
7744
  };
7741
7745
  }, []);
7742
- }, Yb = function(e) {
7746
+ }, qb = function(e) {
7743
7747
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
7744
- Kb();
7748
+ Yb();
7745
7749
  var s = f.useMemo(function() {
7746
- return Wb(o);
7750
+ return Vb(o);
7747
7751
  }, [o]);
7748
- return f.createElement(Vb, { styles: Gb(s, !t, o, n ? "" : "!important") });
7752
+ return f.createElement(Gb, { styles: Kb(s, !t, o, n ? "" : "!important") });
7749
7753
  }, xi = !1;
7750
7754
  if (typeof window < "u")
7751
7755
  try {
@@ -7758,7 +7762,7 @@ if (typeof window < "u")
7758
7762
  } catch {
7759
7763
  xi = !1;
7760
7764
  }
7761
- var Hn = xi ? { passive: !1 } : !1, qb = function(e) {
7765
+ var Hn = xi ? { passive: !1 } : !1, Xb = function(e) {
7762
7766
  return e.tagName === "TEXTAREA";
7763
7767
  }, zu = function(e, t) {
7764
7768
  if (!(e instanceof Element))
@@ -7767,11 +7771,11 @@ var Hn = xi ? { passive: !1 } : !1, qb = function(e) {
7767
7771
  return (
7768
7772
  // not-not-scrollable
7769
7773
  n[t] !== "hidden" && // contains scroll inside self
7770
- !(n.overflowY === n.overflowX && !qb(e) && n[t] === "visible")
7774
+ !(n.overflowY === n.overflowX && !Xb(e) && n[t] === "visible")
7771
7775
  );
7772
- }, Xb = function(e) {
7773
- return zu(e, "overflowY");
7774
7776
  }, Jb = function(e) {
7777
+ return zu(e, "overflowY");
7778
+ }, Zb = function(e) {
7775
7779
  return zu(e, "overflowX");
7776
7780
  }, Xl = function(e, t) {
7777
7781
  var n = t.ownerDocument, r = t;
@@ -7786,14 +7790,14 @@ var Hn = xi ? { passive: !1 } : !1, qb = function(e) {
7786
7790
  r = r.parentNode;
7787
7791
  } while (r && r !== n.body);
7788
7792
  return !1;
7789
- }, Zb = function(e) {
7793
+ }, Qb = function(e) {
7790
7794
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
7791
7795
  return [
7792
7796
  t,
7793
7797
  n,
7794
7798
  r
7795
7799
  ];
7796
- }, Qb = function(e) {
7800
+ }, ew = function(e) {
7797
7801
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
7798
7802
  return [
7799
7803
  t,
@@ -7801,13 +7805,13 @@ var Hn = xi ? { passive: !1 } : !1, qb = function(e) {
7801
7805
  r
7802
7806
  ];
7803
7807
  }, Uu = function(e, t) {
7804
- return e === "v" ? Xb(t) : Jb(t);
7808
+ return e === "v" ? Jb(t) : Zb(t);
7805
7809
  }, Wu = function(e, t) {
7806
- return e === "v" ? Zb(t) : Qb(t);
7807
- }, ew = function(e, t) {
7810
+ return e === "v" ? Qb(t) : ew(t);
7811
+ }, tw = function(e, t) {
7808
7812
  return e === "h" && t === "rtl" ? -1 : 1;
7809
- }, tw = function(e, t, n, r, o) {
7810
- var s = ew(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0, h = 0, p = 0;
7813
+ }, nw = function(e, t, n, r, o) {
7814
+ var s = tw(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), u = !1, d = i > 0, h = 0, p = 0;
7811
7815
  do {
7812
7816
  if (!a)
7813
7817
  break;
@@ -7827,22 +7831,22 @@ var Hn = xi ? { passive: !1 } : !1, qb = function(e) {
7827
7831
  return [e.deltaX, e.deltaY];
7828
7832
  }, Zl = function(e) {
7829
7833
  return e && "current" in e ? e.current : e;
7830
- }, nw = function(e, t) {
7834
+ }, rw = function(e, t) {
7831
7835
  return e[0] === t[0] && e[1] === t[1];
7832
- }, rw = function(e) {
7836
+ }, ow = function(e) {
7833
7837
  return `
7834
7838
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
7835
7839
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
7836
7840
  `);
7837
- }, ow = 0, $n = [];
7838
- function sw(e) {
7839
- var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(ow++)[0], s = f.useState($u)[0], i = f.useRef(e);
7841
+ }, sw = 0, $n = [];
7842
+ function iw(e) {
7843
+ var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(sw++)[0], s = f.useState($u)[0], i = f.useRef(e);
7840
7844
  f.useEffect(function() {
7841
7845
  i.current = e;
7842
7846
  }, [e]), f.useEffect(function() {
7843
7847
  if (e.inert) {
7844
7848
  document.body.classList.add("block-interactivity-".concat(o));
7845
- var v = Eb([e.lockRef.current], (e.shards || []).map(Zl), !0).filter(Boolean);
7849
+ var v = Ib([e.lockRef.current], (e.shards || []).map(Zl), !0).filter(Boolean);
7846
7850
  return v.forEach(function(m) {
7847
7851
  return m.classList.add("allow-interactivity-".concat(o));
7848
7852
  }), function() {
@@ -7866,12 +7870,12 @@ function sw(e) {
7866
7870
  if (!r.current && "changedTouches" in v && (y || E) && (r.current = S), !S)
7867
7871
  return !0;
7868
7872
  var A = r.current || S;
7869
- return tw(A, m, v, A === "h" ? y : E);
7873
+ return nw(A, m, v, A === "h" ? y : E);
7870
7874
  }, []), c = f.useCallback(function(v) {
7871
7875
  var m = v;
7872
7876
  if (!(!$n.length || $n[$n.length - 1] !== s)) {
7873
7877
  var b = "deltaY" in m ? Jl(m) : Qr(m), w = t.current.filter(function(S) {
7874
- return S.name === m.type && (S.target === m.target || m.target === S.shadowParent) && nw(S.delta, b);
7878
+ return S.name === m.type && (S.target === m.target || m.target === S.shadowParent) && rw(S.delta, b);
7875
7879
  })[0];
7876
7880
  if (w && w.should) {
7877
7881
  m.cancelable && m.preventDefault();
@@ -7885,7 +7889,7 @@ function sw(e) {
7885
7889
  }
7886
7890
  }
7887
7891
  }, []), u = f.useCallback(function(v, m, b, w) {
7888
- var y = { name: v, delta: m, target: b, should: w, shadowParent: iw(b) };
7892
+ var y = { name: v, delta: m, target: b, should: w, shadowParent: aw(b) };
7889
7893
  t.current.push(y), setTimeout(function() {
7890
7894
  t.current = t.current.filter(function(E) {
7891
7895
  return E !== y;
@@ -7913,28 +7917,28 @@ function sw(e) {
7913
7917
  return f.createElement(
7914
7918
  f.Fragment,
7915
7919
  null,
7916
- g ? f.createElement(s, { styles: rw(o) }) : null,
7917
- x ? f.createElement(Yb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
7920
+ g ? f.createElement(s, { styles: ow(o) }) : null,
7921
+ x ? f.createElement(qb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
7918
7922
  );
7919
7923
  }
7920
- function iw(e) {
7924
+ function aw(e) {
7921
7925
  for (var t = null; e !== null; )
7922
7926
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
7923
7927
  return t;
7924
7928
  }
7925
- const aw = Mb(Hu, sw);
7929
+ const lw = Db(Hu, iw);
7926
7930
  var ns = f.forwardRef(function(e, t) {
7927
- return f.createElement(ts, Vt({}, e, { ref: t, sideCar: aw }));
7931
+ return f.createElement(ts, Vt({}, e, { ref: t, sideCar: lw }));
7928
7932
  });
7929
7933
  ns.classNames = ts.classNames;
7930
- var lw = function(e) {
7934
+ var cw = function(e) {
7931
7935
  if (typeof document > "u")
7932
7936
  return null;
7933
7937
  var t = Array.isArray(e) ? e[0] : e;
7934
7938
  return t.ownerDocument.body;
7935
7939
  }, zn = /* @__PURE__ */ new WeakMap(), eo = /* @__PURE__ */ new WeakMap(), to = {}, Gs = 0, Vu = function(e) {
7936
7940
  return e && (e.host || Vu(e.parentNode));
7937
- }, cw = function(e, t) {
7941
+ }, uw = function(e, t) {
7938
7942
  return t.map(function(n) {
7939
7943
  if (e.contains(n))
7940
7944
  return n;
@@ -7943,8 +7947,8 @@ var lw = function(e) {
7943
7947
  }).filter(function(n) {
7944
7948
  return !!n;
7945
7949
  });
7946
- }, uw = function(e, t, n, r) {
7947
- var o = cw(t, Array.isArray(e) ? e : [e]);
7950
+ }, dw = function(e, t, n, r) {
7951
+ var o = uw(t, Array.isArray(e) ? e : [e]);
7948
7952
  to[n] || (to[n] = /* @__PURE__ */ new WeakMap());
7949
7953
  var s = to[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), u = function(h) {
7950
7954
  !h || a.has(h) || (a.add(h), u(h.parentNode));
@@ -7971,11 +7975,11 @@ var lw = function(e) {
7971
7975
  };
7972
7976
  }, ia = function(e, t, n) {
7973
7977
  n === void 0 && (n = "data-aria-hidden");
7974
- var r = Array.from(Array.isArray(e) ? e : [e]), o = lw(e);
7975
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), uw(r, o, n, "aria-hidden")) : function() {
7978
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = cw(e);
7979
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), dw(r, o, n, "aria-hidden")) : function() {
7976
7980
  return null;
7977
7981
  };
7978
- }, rs = "Dialog", [Gu, iR] = $t(rs), [dw, zt] = Gu(rs), Ku = (e) => {
7982
+ }, rs = "Dialog", [Gu, aR] = $t(rs), [fw, zt] = Gu(rs), Ku = (e) => {
7979
7983
  const {
7980
7984
  __scopeDialog: t,
7981
7985
  children: n,
@@ -7990,7 +7994,7 @@ var lw = function(e) {
7990
7994
  caller: rs
7991
7995
  });
7992
7996
  return /* @__PURE__ */ l.jsx(
7993
- dw,
7997
+ fw,
7994
7998
  {
7995
7999
  scope: t,
7996
8000
  triggerRef: a,
@@ -8026,27 +8030,27 @@ var Yu = "DialogTrigger", qu = f.forwardRef(
8026
8030
  }
8027
8031
  );
8028
8032
  qu.displayName = Yu;
8029
- var aa = "DialogPortal", [fw, Xu] = Gu(aa, {
8033
+ var aa = "DialogPortal", [hw, Xu] = Gu(aa, {
8030
8034
  forceMount: void 0
8031
8035
  }), Ju = (e) => {
8032
8036
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = zt(aa, t);
8033
- return /* @__PURE__ */ l.jsx(fw, { scope: t, forceMount: n, children: f.Children.map(r, (i) => /* @__PURE__ */ l.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(es, { asChild: !0, container: o, children: i }) })) });
8037
+ return /* @__PURE__ */ l.jsx(hw, { scope: t, forceMount: n, children: f.Children.map(r, (i) => /* @__PURE__ */ l.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(es, { asChild: !0, container: o, children: i }) })) });
8034
8038
  };
8035
8039
  Ju.displayName = aa;
8036
8040
  var jo = "DialogOverlay", Zu = f.forwardRef(
8037
8041
  (e, t) => {
8038
8042
  const n = Xu(jo, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = zt(jo, e.__scopeDialog);
8039
- return s.modal ? /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ l.jsx(pw, { ...o, ref: t }) }) : null;
8043
+ return s.modal ? /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ l.jsx(mw, { ...o, ref: t }) }) : null;
8040
8044
  }
8041
8045
  );
8042
8046
  Zu.displayName = jo;
8043
- var hw = Xn("DialogOverlay.RemoveScroll"), pw = f.forwardRef(
8047
+ var pw = Xn("DialogOverlay.RemoveScroll"), mw = f.forwardRef(
8044
8048
  (e, t) => {
8045
8049
  const { __scopeDialog: n, ...r } = e, o = zt(jo, n);
8046
8050
  return (
8047
8051
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
8048
8052
  // ie. when `Overlay` and `Content` are siblings
8049
- /* @__PURE__ */ l.jsx(ns, { as: hw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l.jsx(
8053
+ /* @__PURE__ */ l.jsx(ns, { as: pw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l.jsx(
8050
8054
  me.div,
8051
8055
  {
8052
8056
  "data-state": ca(o.open),
@@ -8060,11 +8064,11 @@ var hw = Xn("DialogOverlay.RemoveScroll"), pw = f.forwardRef(
8060
8064
  ), Nn = "DialogContent", Qu = f.forwardRef(
8061
8065
  (e, t) => {
8062
8066
  const n = Xu(Nn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = zt(Nn, e.__scopeDialog);
8063
- return /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ l.jsx(mw, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(gw, { ...o, ref: t }) });
8067
+ return /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ l.jsx(gw, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(vw, { ...o, ref: t }) });
8064
8068
  }
8065
8069
  );
8066
8070
  Qu.displayName = Nn;
8067
- var mw = f.forwardRef(
8071
+ var gw = f.forwardRef(
8068
8072
  (e, t) => {
8069
8073
  const n = zt(Nn, e.__scopeDialog), r = f.useRef(null), o = Ce(t, n.contentRef, r);
8070
8074
  return f.useEffect(() => {
@@ -8092,7 +8096,7 @@ var mw = f.forwardRef(
8092
8096
  }
8093
8097
  );
8094
8098
  }
8095
- ), gw = f.forwardRef(
8099
+ ), vw = f.forwardRef(
8096
8100
  (e, t) => {
8097
8101
  const n = zt(Nn, e.__scopeDialog), r = f.useRef(!1), o = f.useRef(!1);
8098
8102
  return /* @__PURE__ */ l.jsx(
@@ -8143,8 +8147,8 @@ var mw = f.forwardRef(
8143
8147
  }
8144
8148
  ),
8145
8149
  /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
8146
- /* @__PURE__ */ l.jsx(vw, { titleId: a.titleId }),
8147
- /* @__PURE__ */ l.jsx(bw, { contentRef: c, descriptionId: a.descriptionId })
8150
+ /* @__PURE__ */ l.jsx(xw, { titleId: a.titleId }),
8151
+ /* @__PURE__ */ l.jsx(ww, { contentRef: c, descriptionId: a.descriptionId })
8148
8152
  ] })
8149
8153
  ] });
8150
8154
  }
@@ -8180,11 +8184,11 @@ sd.displayName = od;
8180
8184
  function ca(e) {
8181
8185
  return e ? "open" : "closed";
8182
8186
  }
8183
- var id = "DialogTitleWarning", [aR, ad] = Mx(id, {
8187
+ var id = "DialogTitleWarning", [lR, ad] = Mx(id, {
8184
8188
  contentName: Nn,
8185
8189
  titleName: la,
8186
8190
  docsSlug: "dialog"
8187
- }), vw = ({ titleId: e }) => {
8191
+ }), xw = ({ titleId: e }) => {
8188
8192
  const t = ad(id), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
8189
8193
 
8190
8194
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -8193,15 +8197,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8193
8197
  return f.useEffect(() => {
8194
8198
  e && (document.getElementById(e) || console.error(n));
8195
8199
  }, [n, e]), null;
8196
- }, xw = "DialogDescriptionWarning", bw = ({ contentRef: e, descriptionId: t }) => {
8197
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ad(xw).contentName}}.`;
8200
+ }, bw = "DialogDescriptionWarning", ww = ({ contentRef: e, descriptionId: t }) => {
8201
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ad(bw).contentName}}.`;
8198
8202
  return f.useEffect(() => {
8199
8203
  var s;
8200
8204
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
8201
8205
  t && o && (document.getElementById(t) || console.warn(r));
8202
8206
  }, [r, e, t]), null;
8203
- }, ld = Ku, ww = qu, cd = Ju, os = Zu, ss = Qu, Tn = td, is = rd, ud = sd;
8204
- const yw = ld, Sw = cd, dd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8207
+ }, ld = Ku, yw = qu, cd = Ju, os = Zu, ss = Qu, Tn = td, is = rd, ud = sd;
8208
+ const Sw = ld, Cw = cd, dd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8205
8209
  os,
8206
8210
  {
8207
8211
  ref: n,
@@ -8229,7 +8233,7 @@ const fd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
8229
8233
  }
8230
8234
  return i(t), s;
8231
8235
  }, [t]);
8232
- return /* @__PURE__ */ l.jsxs(Sw, { children: [
8236
+ return /* @__PURE__ */ l.jsxs(Cw, { children: [
8233
8237
  /* @__PURE__ */ l.jsx(dd, {}),
8234
8238
  /* @__PURE__ */ l.jsxs(
8235
8239
  ss,
@@ -8279,7 +8283,7 @@ const pd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8279
8283
  }
8280
8284
  ));
8281
8285
  pd.displayName = Tn.displayName;
8282
- const Cw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8286
+ const Tw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8283
8287
  is,
8284
8288
  {
8285
8289
  ref: n,
@@ -8287,8 +8291,8 @@ const Cw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
8287
8291
  ...t
8288
8292
  }
8289
8293
  ));
8290
- Cw.displayName = is.displayName;
8291
- function Tw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8294
+ Tw.displayName = is.displayName;
8295
+ function Rw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8292
8296
  const [s, i] = fe(!1), [a, c] = fe(null), [u, d] = fe(null), { toast: h } = oa();
8293
8297
  Ve(() => {
8294
8298
  e && n && p();
@@ -8308,7 +8312,7 @@ function Tw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8308
8312
  }, x = async () => {
8309
8313
  if (n)
8310
8314
  try {
8311
- await ob(n), h({ title: "Download started", description: `Downloading ${r}` });
8315
+ await sb(n), h({ title: "Download started", description: `Downloading ${r}` });
8312
8316
  } catch (b) {
8313
8317
  console.error("Failed to download file:", b), h({ title: "Download failed", description: String(b), variant: "destructive" });
8314
8318
  }
@@ -8352,7 +8356,7 @@ function Tw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8352
8356
  ] }),
8353
8357
  /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground", children: "This file type cannot be previewed. Use download or external view." })
8354
8358
  ] }) : /* @__PURE__ */ l.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ l.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), m = () => o.startsWith("image/") ? /* @__PURE__ */ l.jsx(wc, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(Ua, { className: "h-5 w-5" });
8355
- return /* @__PURE__ */ l.jsx(yw, { open: e, onOpenChange: t, children: /* @__PURE__ */ l.jsxs(fd, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
8359
+ return /* @__PURE__ */ l.jsx(Sw, { open: e, onOpenChange: t, children: /* @__PURE__ */ l.jsxs(fd, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
8356
8360
  /* @__PURE__ */ l.jsx(hd, { children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between", children: [
8357
8361
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3", children: [
8358
8362
  m(),
@@ -8397,7 +8401,7 @@ function Tw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8397
8401
  ] }) });
8398
8402
  }
8399
8403
  const mo = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
8400
- function Rw({ className: e }) {
8404
+ function Ew({ className: e }) {
8401
8405
  const [t, n] = fe(0);
8402
8406
  return Ve(() => {
8403
8407
  const r = setInterval(() => n((o) => (o + 1) % 4), 500);
@@ -8414,7 +8418,7 @@ function Rw({ className: e }) {
8414
8418
  }
8415
8419
  );
8416
8420
  }
8417
- const Ew = K.memo(function({
8421
+ const Iw = K.memo(function({
8418
8422
  message: t,
8419
8423
  messageIndex: n,
8420
8424
  isStreamingMessage: r = !1,
@@ -8449,7 +8453,7 @@ const Ew = K.memo(function({
8449
8453
  default:
8450
8454
  return "text-[hsl(var(--chat-bubble-ai-text))]";
8451
8455
  }
8452
- }, [_]), oe = wn(() => Iw(t.content), [t.content]), F = wn(() => Pw(t.content), [t.content]), Q = wn(() => t.content.filter((ce) => ce.type === "image_url"), [t.content]), de = wn(() => t.content.filter((ce) => ce.type === "file"), [t.content]);
8456
+ }, [_]), oe = wn(() => Nw(t.content), [t.content]), F = wn(() => _w(t.content), [t.content]), Q = wn(() => t.content.filter((ce) => ce.type === "image_url"), [t.content]), de = wn(() => t.content.filter((ce) => ce.type === "file"), [t.content]);
8453
8457
  Ve(() => {
8454
8458
  console.log("[DEBUG] MessageComponent render:", {
8455
8459
  messageId: t.id,
@@ -8460,7 +8464,7 @@ const Ew = K.memo(function({
8460
8464
  fileParts: de.map((ce) => ({ type: ce.type, name: ce.name, url: ce.url }))
8461
8465
  });
8462
8466
  }, [t.id, t.content, de, Q]);
8463
- const be = Ow(oe, r ? o : 0), Y = async () => {
8467
+ const be = Mw(oe, r ? o : 0), Y = async () => {
8464
8468
  try {
8465
8469
  const ce = z ? Un(t.content) : oe;
8466
8470
  await navigator.clipboard.writeText(ce), E(!0), setTimeout(() => E(!1), 2e3), w == null || w(ce);
@@ -8538,11 +8542,11 @@ const Ew = K.memo(function({
8538
8542
  if (t.model === "reflection") {
8539
8543
  const ve = oe.trim(), H = Ks(ve);
8540
8544
  if (H && typeof H == "object")
8541
- return /* @__PURE__ */ l.jsx(Mw, { data: H });
8545
+ return /* @__PURE__ */ l.jsx(Dw, { data: H });
8542
8546
  }
8543
8547
  if (z && F.name === "get_issues") {
8544
8548
  const ve = t.content.find((Be) => Be.type === "tool_result"), H = (ve == null ? void 0 : ve.output) ?? Un(t.content), ae = gd(H);
8545
- if (ae) return /* @__PURE__ */ l.jsx(Dw, { issues: ae });
8549
+ if (ae) return /* @__PURE__ */ l.jsx(Lw, { issues: ae });
8546
8550
  }
8547
8551
  if (z && !R) {
8548
8552
  const ve = Un(t.content).slice(0, 80).replace(/\s+/g, " ");
@@ -8567,8 +8571,8 @@ const Ew = K.memo(function({
8567
8571
  ] }) });
8568
8572
  }
8569
8573
  if (z && R && !d) {
8570
- const ve = Lw(t.content);
8571
- if (ve && Nw(ve))
8574
+ const ve = Fw(t.content);
8575
+ if (ve && jw(ve))
8572
8576
  return /* @__PURE__ */ l.jsx(Jr, { content: ve.trim() });
8573
8577
  const H = Un(t.content);
8574
8578
  return /* @__PURE__ */ l.jsx("div", { className: "font-mono text-sm text-current", children: /* @__PURE__ */ l.jsx("pre", { className: D("whitespace-pre-wrap break-words text-current", O && "text-xs"), children: H }) });
@@ -8578,9 +8582,9 @@ const Ew = K.memo(function({
8578
8582
  r ? /* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
8579
8583
  (() => {
8580
8584
  const ve = Ks(be);
8581
- return ve !== null ? /* @__PURE__ */ l.jsx(Ql, { data: ve }) : /* @__PURE__ */ l.jsx(Jr, { content: Aw(jw(be)) });
8585
+ return ve !== null ? /* @__PURE__ */ l.jsx(Ql, { data: ve }) : /* @__PURE__ */ l.jsx(Jr, { content: kw(Aw(be)) });
8582
8586
  })(),
8583
- /* @__PURE__ */ l.jsx(Rw, { className: D(X, O ? "text-xs" : "text-sm") })
8587
+ /* @__PURE__ */ l.jsx(Ew, { className: D(X, O ? "text-xs" : "text-sm") })
8584
8588
  ] }) : (() => {
8585
8589
  const ve = Ks(oe.trim());
8586
8590
  if (ve !== null) return /* @__PURE__ */ l.jsx(Ql, { data: ve });
@@ -8622,7 +8626,7 @@ const Ew = K.memo(function({
8622
8626
  ] }, H)) }),
8623
8627
  je
8624
8628
  ] });
8625
- }, Le = wn(() => _w(t), [t]);
8629
+ }, Le = wn(() => Ow(t), [t]);
8626
8630
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
8627
8631
  /* @__PURE__ */ l.jsx("div", { className: D(le(), g.container), children: /* @__PURE__ */ l.jsxs("div", { className: D(se(), g.content), children: [
8628
8632
  (a || c || z) && /* @__PURE__ */ l.jsxs(
@@ -8780,7 +8784,7 @@ const Ew = K.memo(function({
8780
8784
  )
8781
8785
  ] }) }),
8782
8786
  L && /* @__PURE__ */ l.jsx(
8783
- Tw,
8787
+ Rw,
8784
8788
  {
8785
8789
  isOpen: N,
8786
8790
  onClose: () => {
@@ -8793,15 +8797,15 @@ const Ew = K.memo(function({
8793
8797
  )
8794
8798
  ] });
8795
8799
  }, (e, t) => e.message.id === t.message.id && e.message.content === t.message.content);
8796
- function Iw(e) {
8800
+ function Nw(e) {
8797
8801
  const t = e.filter((n) => n.type === "text").map((n) => n.text).join("");
8798
8802
  return t || JSON.stringify(e);
8799
8803
  }
8800
- function Nw(e) {
8804
+ function jw(e) {
8801
8805
  return e.includes(`
8802
8806
  `) || e.includes("```") || /[-*] /.test(e) || /#+\s/.test(e);
8803
8807
  }
8804
- function jw(e) {
8808
+ function Aw(e) {
8805
8809
  let t = e;
8806
8810
  try {
8807
8811
  (t.match(/```/g) || []).length % 2 === 1 && (t += "\n```"), (t.replace(/```[\s\S]*?```/g, "").match(new RegExp("(?<!`)`(?!`)", "g")) || []).length % 2 === 1 && (t += "`");
@@ -8809,7 +8813,7 @@ function jw(e) {
8809
8813
  }
8810
8814
  return t;
8811
8815
  }
8812
- function Aw(e) {
8816
+ function kw(e) {
8813
8817
  let t = e;
8814
8818
  try {
8815
8819
  const n = [], r = [], o = "\0F", s = "\0I";
@@ -8855,12 +8859,12 @@ function Ql({ data: e }) {
8855
8859
  s,
8856
8860
  ":"
8857
8861
  ] }),
8858
- /* @__PURE__ */ l.jsx("dd", { className: "inline", children: kw(i) })
8862
+ /* @__PURE__ */ l.jsx("dd", { className: "inline", children: Pw(i) })
8859
8863
  ] }, s)) }) });
8860
8864
  }
8861
8865
  return /* @__PURE__ */ l.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: yr(e) });
8862
8866
  }
8863
- function kw(e) {
8867
+ function Pw(e) {
8864
8868
  if (e == null) return String(e);
8865
8869
  const t = typeof e;
8866
8870
  if (t === "string" || t === "number" || t === "boolean") return String(e);
@@ -8908,17 +8912,17 @@ function yr(e) {
8908
8912
  return "";
8909
8913
  }
8910
8914
  }
8911
- function Pw(e) {
8915
+ function _w(e) {
8912
8916
  const t = e.find((r) => r.type === "tool_call"), n = e.find((r) => r.type === "tool_result");
8913
8917
  return {
8914
8918
  name: t == null ? void 0 : t.name,
8915
8919
  toolCallId: (n == null ? void 0 : n.toolCallId) ?? (t == null ? void 0 : t.id)
8916
8920
  };
8917
8921
  }
8918
- function _w(e) {
8922
+ function Ow(e) {
8919
8923
  return e.name && e.name.trim() ? e.name : e.model && e.model.includes("/") ? e.model.split("/").pop() || null : e.model || null;
8920
8924
  }
8921
- function Ow(e, t) {
8925
+ function Mw(e, t) {
8922
8926
  const [n, r] = fe(e);
8923
8927
  return Ve(() => {
8924
8928
  if (!t) {
@@ -8929,7 +8933,7 @@ function Ow(e, t) {
8929
8933
  return () => clearTimeout(o);
8930
8934
  }, [e, t]), n;
8931
8935
  }
8932
- function Mw({ data: e }) {
8936
+ function Dw({ data: e }) {
8933
8937
  return /* @__PURE__ */ l.jsx("dl", { className: "grid grid-cols-1 gap-y-2", children: Object.entries(e).map(([t, n]) => /* @__PURE__ */ l.jsxs("div", { className: "flex", children: [
8934
8938
  /* @__PURE__ */ l.jsxs("dt", { className: "font-semibold mr-2", children: [
8935
8939
  t,
@@ -8982,7 +8986,7 @@ function gd(e) {
8982
8986
  }
8983
8987
  return Object.values(n).some((i) => i.length > 0) ? n : null;
8984
8988
  }
8985
- function Dw({ issues: e }) {
8989
+ function Lw({ issues: e }) {
8986
8990
  const t = [
8987
8991
  { key: "desirability", title: "Desirability" },
8988
8992
  { key: "feasibility", title: "Feasibility" },
@@ -9014,14 +9018,14 @@ function Un(e) {
9014
9018
  }
9015
9019
  return yr(e);
9016
9020
  }
9017
- function Lw(e) {
9021
+ function Fw(e) {
9018
9022
  const t = e.find((r) => r.type === "tool_result");
9019
9023
  if (!t) return null;
9020
9024
  const n = t.output;
9021
9025
  return typeof n == "string" ? n : null;
9022
9026
  }
9023
9027
  const go = 1e4;
9024
- function Fw(e) {
9028
+ function Bw(e) {
9025
9029
  if (typeof e != "string")
9026
9030
  return String(e);
9027
9031
  const t = [
@@ -9048,16 +9052,16 @@ function Fw(e) {
9048
9052
  `).replace(/<li>(.*?)<\/li>/gi, `- $1
9049
9053
  `).trim() : n.replace(/</g, "&lt;").replace(/>/g, "&gt;").trim();
9050
9054
  }
9051
- function Bw(e, t = go) {
9055
+ function Hw(e, t = go) {
9052
9056
  if (!e || typeof e != "string")
9053
9057
  throw new Error("Invalid content: must be a non-empty string");
9054
9058
  if (e.length > t)
9055
9059
  throw new Error(`Message exceeds maximum length of ${t} characters`);
9056
9060
  return e;
9057
9061
  }
9058
- function Hw(e) {
9062
+ function $w(e) {
9059
9063
  let t;
9060
- return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), Bw(t), Fw(t);
9064
+ return typeof e == "string" ? t = e : typeof e == "object" && e !== null ? t = JSON.stringify(e) : t = String(e), Hw(t), Bw(t);
9061
9065
  }
9062
9066
  function ua(e) {
9063
9067
  const t = e + "CollectionProvider", [n, r] = $t(t), [o, s] = n(
@@ -9099,20 +9103,20 @@ function ua(e) {
9099
9103
  r
9100
9104
  ];
9101
9105
  }
9102
- var $w = f.createContext(void 0);
9106
+ var zw = f.createContext(void 0);
9103
9107
  function as(e) {
9104
- const t = f.useContext($w);
9108
+ const t = f.useContext(zw);
9105
9109
  return e || t || "ltr";
9106
9110
  }
9107
- const zw = ["top", "right", "bottom", "left"], dn = Math.min, bt = Math.max, ko = Math.round, no = Math.floor, Yt = (e) => ({
9111
+ const Uw = ["top", "right", "bottom", "left"], dn = Math.min, bt = Math.max, ko = Math.round, no = Math.floor, Yt = (e) => ({
9108
9112
  x: e,
9109
9113
  y: e
9110
- }), Uw = {
9114
+ }), Ww = {
9111
9115
  left: "right",
9112
9116
  right: "left",
9113
9117
  bottom: "top",
9114
9118
  top: "bottom"
9115
- }, Ww = {
9119
+ }, Vw = {
9116
9120
  start: "end",
9117
9121
  end: "start"
9118
9122
  };
@@ -9134,48 +9138,48 @@ function da(e) {
9134
9138
  function fa(e) {
9135
9139
  return e === "y" ? "height" : "width";
9136
9140
  }
9137
- const Vw = /* @__PURE__ */ new Set(["top", "bottom"]);
9141
+ const Gw = /* @__PURE__ */ new Set(["top", "bottom"]);
9138
9142
  function Kt(e) {
9139
- return Vw.has(rn(e)) ? "y" : "x";
9143
+ return Gw.has(rn(e)) ? "y" : "x";
9140
9144
  }
9141
9145
  function ha(e) {
9142
9146
  return da(Kt(e));
9143
9147
  }
9144
- function Gw(e, t, n) {
9148
+ function Kw(e, t, n) {
9145
9149
  n === void 0 && (n = !1);
9146
9150
  const r = ir(e), o = ha(e), s = fa(o);
9147
9151
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
9148
9152
  return t.reference[s] > t.floating[s] && (i = Po(i)), [i, Po(i)];
9149
9153
  }
9150
- function Kw(e) {
9154
+ function Yw(e) {
9151
9155
  const t = Po(e);
9152
9156
  return [wi(e), t, wi(t)];
9153
9157
  }
9154
9158
  function wi(e) {
9155
- return e.replace(/start|end/g, (t) => Ww[t]);
9159
+ return e.replace(/start|end/g, (t) => Vw[t]);
9156
9160
  }
9157
- const ec = ["left", "right"], tc = ["right", "left"], Yw = ["top", "bottom"], qw = ["bottom", "top"];
9158
- function Xw(e, t, n) {
9161
+ const ec = ["left", "right"], tc = ["right", "left"], qw = ["top", "bottom"], Xw = ["bottom", "top"];
9162
+ function Jw(e, t, n) {
9159
9163
  switch (e) {
9160
9164
  case "top":
9161
9165
  case "bottom":
9162
9166
  return n ? t ? tc : ec : t ? ec : tc;
9163
9167
  case "left":
9164
9168
  case "right":
9165
- return t ? Yw : qw;
9169
+ return t ? qw : Xw;
9166
9170
  default:
9167
9171
  return [];
9168
9172
  }
9169
9173
  }
9170
- function Jw(e, t, n, r) {
9174
+ function Zw(e, t, n, r) {
9171
9175
  const o = ir(e);
9172
- let s = Xw(rn(e), n === "start", r);
9176
+ let s = Jw(rn(e), n === "start", r);
9173
9177
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(wi)))), s;
9174
9178
  }
9175
9179
  function Po(e) {
9176
- return e.replace(/left|right|bottom|top/g, (t) => Uw[t]);
9180
+ return e.replace(/left|right|bottom|top/g, (t) => Ww[t]);
9177
9181
  }
9178
- function Zw(e) {
9182
+ function Qw(e) {
9179
9183
  return {
9180
9184
  top: 0,
9181
9185
  right: 0,
@@ -9185,7 +9189,7 @@ function Zw(e) {
9185
9189
  };
9186
9190
  }
9187
9191
  function vd(e) {
9188
- return typeof e != "number" ? Zw(e) : {
9192
+ return typeof e != "number" ? Qw(e) : {
9189
9193
  top: e,
9190
9194
  right: e,
9191
9195
  bottom: e,
@@ -9258,7 +9262,7 @@ function nc(e, t, n) {
9258
9262
  }
9259
9263
  return x;
9260
9264
  }
9261
- const Qw = async (e, t, n) => {
9265
+ const ey = async (e, t, n) => {
9262
9266
  const {
9263
9267
  placement: r = "bottom",
9264
9268
  strategy: o = "absolute",
@@ -9364,7 +9368,7 @@ async function Ir(e, t) {
9364
9368
  right: (S.right - b.right + g.right) / E.x
9365
9369
  };
9366
9370
  }
9367
- const ey = (e) => ({
9371
+ const ty = (e) => ({
9368
9372
  name: "arrow",
9369
9373
  options: e,
9370
9374
  async fn(t) {
@@ -9401,7 +9405,7 @@ const ey = (e) => ({
9401
9405
  reset: L
9402
9406
  };
9403
9407
  }
9404
- }), ty = function(e) {
9408
+ }), ny = function(e) {
9405
9409
  return e === void 0 && (e = {}), {
9406
9410
  name: "flip",
9407
9411
  options: e,
@@ -9425,12 +9429,12 @@ const ey = (e) => ({
9425
9429
  } = nn(e, t);
9426
9430
  if ((n = s.arrow) != null && n.alignmentOffset)
9427
9431
  return {};
9428
- const b = rn(o), w = Kt(a), y = rn(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = p || (y || !v ? [Po(a)] : Kw(a)), C = g !== "none";
9429
- !p && C && S.push(...Jw(a, v, g, E));
9432
+ const b = rn(o), w = Kt(a), y = rn(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = p || (y || !v ? [Po(a)] : Yw(a)), C = g !== "none";
9433
+ !p && C && S.push(...Zw(a, v, g, E));
9430
9434
  const R = [a, ...S], I = await Ir(t, m), A = [];
9431
9435
  let k = ((r = s.flip) == null ? void 0 : r.overflows) || [];
9432
9436
  if (d && A.push(I[b]), h) {
9433
- const N = Gw(o, i, E);
9437
+ const N = Kw(o, i, E);
9434
9438
  A.push(I[N[0]], I[N[1]]);
9435
9439
  }
9436
9440
  if (k = [...k, {
@@ -9492,9 +9496,9 @@ function rc(e, t) {
9492
9496
  };
9493
9497
  }
9494
9498
  function oc(e) {
9495
- return zw.some((t) => e[t] >= 0);
9499
+ return Uw.some((t) => e[t] >= 0);
9496
9500
  }
9497
- const ny = function(e) {
9501
+ const ry = function(e) {
9498
9502
  return e === void 0 && (e = {}), {
9499
9503
  name: "hide",
9500
9504
  options: e,
@@ -9536,7 +9540,7 @@ const ny = function(e) {
9536
9540
  }
9537
9541
  };
9538
9542
  }, xd = /* @__PURE__ */ new Set(["left", "top"]);
9539
- async function ry(e, t) {
9543
+ async function oy(e, t) {
9540
9544
  const {
9541
9545
  placement: n,
9542
9546
  platform: r,
@@ -9563,7 +9567,7 @@ async function ry(e, t) {
9563
9567
  y: x * d
9564
9568
  };
9565
9569
  }
9566
- const oy = function(e) {
9570
+ const sy = function(e) {
9567
9571
  return e === void 0 && (e = 0), {
9568
9572
  name: "offset",
9569
9573
  options: e,
@@ -9574,7 +9578,7 @@ const oy = function(e) {
9574
9578
  y: s,
9575
9579
  placement: i,
9576
9580
  middlewareData: a
9577
- } = t, c = await ry(t, e);
9581
+ } = t, c = await oy(t, e);
9578
9582
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
9579
9583
  x: o + c.x,
9580
9584
  y: s + c.y,
@@ -9585,7 +9589,7 @@ const oy = function(e) {
9585
9589
  };
9586
9590
  }
9587
9591
  };
9588
- }, sy = function(e) {
9592
+ }, iy = function(e) {
9589
9593
  return e === void 0 && (e = {}), {
9590
9594
  name: "shift",
9591
9595
  options: e,
@@ -9641,7 +9645,7 @@ const oy = function(e) {
9641
9645
  };
9642
9646
  }
9643
9647
  };
9644
- }, iy = function(e) {
9648
+ }, ay = function(e) {
9645
9649
  return e === void 0 && (e = {}), {
9646
9650
  options: e,
9647
9651
  fn(t) {
@@ -9683,7 +9687,7 @@ const oy = function(e) {
9683
9687
  };
9684
9688
  }
9685
9689
  };
9686
- }, ay = function(e) {
9690
+ }, ly = function(e) {
9687
9691
  return e === void 0 && (e = {}), {
9688
9692
  name: "size",
9689
9693
  options: e,
@@ -9750,7 +9754,7 @@ function qt(e) {
9750
9754
  function sc(e) {
9751
9755
  return !ls() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof St(e).ShadowRoot;
9752
9756
  }
9753
- const ly = /* @__PURE__ */ new Set(["inline", "contents"]);
9757
+ const cy = /* @__PURE__ */ new Set(["inline", "contents"]);
9754
9758
  function zr(e) {
9755
9759
  const {
9756
9760
  overflow: t,
@@ -9758,15 +9762,15 @@ function zr(e) {
9758
9762
  overflowY: r,
9759
9763
  display: o
9760
9764
  } = Bt(e);
9761
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !ly.has(o);
9765
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !cy.has(o);
9762
9766
  }
9763
- const cy = /* @__PURE__ */ new Set(["table", "td", "th"]);
9764
- function uy(e) {
9765
- return cy.has(ar(e));
9767
+ const uy = /* @__PURE__ */ new Set(["table", "td", "th"]);
9768
+ function dy(e) {
9769
+ return uy.has(ar(e));
9766
9770
  }
9767
- const dy = [":popover-open", ":modal"];
9771
+ const fy = [":popover-open", ":modal"];
9768
9772
  function cs(e) {
9769
- return dy.some((t) => {
9773
+ return fy.some((t) => {
9770
9774
  try {
9771
9775
  return e.matches(t);
9772
9776
  } catch {
@@ -9774,12 +9778,12 @@ function cs(e) {
9774
9778
  }
9775
9779
  });
9776
9780
  }
9777
- const fy = ["transform", "translate", "scale", "rotate", "perspective"], hy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], py = ["paint", "layout", "strict", "content"];
9781
+ const hy = ["transform", "translate", "scale", "rotate", "perspective"], py = ["transform", "translate", "scale", "rotate", "perspective", "filter"], my = ["paint", "layout", "strict", "content"];
9778
9782
  function pa(e) {
9779
9783
  const t = ma(), n = Ft(e) ? Bt(e) : e;
9780
- return fy.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || hy.some((r) => (n.willChange || "").includes(r)) || py.some((r) => (n.contain || "").includes(r));
9784
+ return hy.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || py.some((r) => (n.willChange || "").includes(r)) || my.some((r) => (n.contain || "").includes(r));
9781
9785
  }
9782
- function my(e) {
9786
+ function gy(e) {
9783
9787
  let t = fn(e);
9784
9788
  for (; qt(t) && !Zn(t); ) {
9785
9789
  if (pa(t))
@@ -9793,9 +9797,9 @@ function my(e) {
9793
9797
  function ma() {
9794
9798
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
9795
9799
  }
9796
- const gy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
9800
+ const vy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
9797
9801
  function Zn(e) {
9798
- return gy.has(ar(e));
9802
+ return vy.has(ar(e));
9799
9803
  }
9800
9804
  function Bt(e) {
9801
9805
  return St(e).getComputedStyle(e);
@@ -9866,15 +9870,15 @@ function Yn(e) {
9866
9870
  y: a
9867
9871
  };
9868
9872
  }
9869
- const vy = /* @__PURE__ */ Yt(0);
9873
+ const xy = /* @__PURE__ */ Yt(0);
9870
9874
  function Sd(e) {
9871
9875
  const t = St(e);
9872
- return !ma() || !t.visualViewport ? vy : {
9876
+ return !ma() || !t.visualViewport ? xy : {
9873
9877
  x: t.visualViewport.offsetLeft,
9874
9878
  y: t.visualViewport.offsetTop
9875
9879
  };
9876
9880
  }
9877
- function xy(e, t, n) {
9881
+ function by(e, t, n) {
9878
9882
  return t === void 0 && (t = !1), !n || t && n !== St(e) ? !1 : t;
9879
9883
  }
9880
9884
  function jn(e, t, n, r) {
@@ -9882,7 +9886,7 @@ function jn(e, t, n, r) {
9882
9886
  const o = e.getBoundingClientRect(), s = ga(e);
9883
9887
  let i = Yt(1);
9884
9888
  t && (r ? Ft(r) && (i = Yn(r)) : i = Yn(e));
9885
- const a = xy(s, n, r) ? Sd(s) : Yt(0);
9889
+ const a = by(s, n, r) ? Sd(s) : Yt(0);
9886
9890
  let c = (o.left + a.x) / i.x, u = (o.top + a.y) / i.y, d = o.width / i.x, h = o.height / i.y;
9887
9891
  if (s) {
9888
9892
  const p = St(s), x = r && Ft(r) ? St(r) : r;
@@ -9910,7 +9914,7 @@ function Cd(e, t) {
9910
9914
  y: o
9911
9915
  };
9912
9916
  }
9913
- function by(e) {
9917
+ function wy(e) {
9914
9918
  let {
9915
9919
  elements: t,
9916
9920
  rect: n,
@@ -9937,10 +9941,10 @@ function by(e) {
9937
9941
  y: n.y * u.y - c.scrollTop * u.y + d.y + p.y
9938
9942
  };
9939
9943
  }
9940
- function wy(e) {
9944
+ function yy(e) {
9941
9945
  return Array.from(e.getClientRects());
9942
9946
  }
9943
- function yy(e) {
9947
+ function Sy(e) {
9944
9948
  const t = Jt(e), n = us(e), r = e.ownerDocument.body, o = bt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = bt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
9945
9949
  let i = -n.scrollLeft + ds(e);
9946
9950
  const a = -n.scrollTop;
@@ -9952,7 +9956,7 @@ function yy(e) {
9952
9956
  };
9953
9957
  }
9954
9958
  const ic = 25;
9955
- function Sy(e, t) {
9959
+ function Cy(e, t) {
9956
9960
  const n = St(e), r = Jt(e), o = n.visualViewport;
9957
9961
  let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
9958
9962
  if (o) {
@@ -9972,8 +9976,8 @@ function Sy(e, t) {
9972
9976
  y: c
9973
9977
  };
9974
9978
  }
9975
- const Cy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
9976
- function Ty(e, t) {
9979
+ const Ty = /* @__PURE__ */ new Set(["absolute", "fixed"]);
9980
+ function Ry(e, t) {
9977
9981
  const n = jn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = qt(e) ? Yn(e) : Yt(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, u = r * s.y;
9978
9982
  return {
9979
9983
  width: i,
@@ -9985,11 +9989,11 @@ function Ty(e, t) {
9985
9989
  function ac(e, t, n) {
9986
9990
  let r;
9987
9991
  if (t === "viewport")
9988
- r = Sy(e, n);
9992
+ r = Cy(e, n);
9989
9993
  else if (t === "document")
9990
- r = yy(Jt(e));
9994
+ r = Sy(Jt(e));
9991
9995
  else if (Ft(t))
9992
- r = Ty(t, n);
9996
+ r = Ry(t, n);
9993
9997
  else {
9994
9998
  const o = Sd(e);
9995
9999
  r = {
@@ -10005,7 +10009,7 @@ function Td(e, t) {
10005
10009
  const n = fn(e);
10006
10010
  return n === t || !Ft(n) || Zn(n) ? !1 : Bt(n).position === "fixed" || Td(n, t);
10007
10011
  }
10008
- function Ry(e, t) {
10012
+ function Ey(e, t) {
10009
10013
  const n = t.get(e);
10010
10014
  if (n)
10011
10015
  return n;
@@ -10014,18 +10018,18 @@ function Ry(e, t) {
10014
10018
  let i = s ? fn(e) : e;
10015
10019
  for (; Ft(i) && !Zn(i); ) {
10016
10020
  const a = Bt(i), c = pa(i);
10017
- !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Cy.has(o.position) || zr(i) && !c && Td(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = fn(i);
10021
+ !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Ty.has(o.position) || zr(i) && !c && Td(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = fn(i);
10018
10022
  }
10019
10023
  return t.set(e, r), r;
10020
10024
  }
10021
- function Ey(e) {
10025
+ function Iy(e) {
10022
10026
  let {
10023
10027
  element: t,
10024
10028
  boundary: n,
10025
10029
  rootBoundary: r,
10026
10030
  strategy: o
10027
10031
  } = e;
10028
- const i = [...n === "clippingAncestors" ? cs(t) ? [] : Ry(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
10032
+ const i = [...n === "clippingAncestors" ? cs(t) ? [] : Ey(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((u, d) => {
10029
10033
  const h = ac(t, d, o);
10030
10034
  return u.top = bt(h.top, u.top), u.right = dn(h.right, u.right), u.bottom = dn(h.bottom, u.bottom), u.left = bt(h.left, u.left), u;
10031
10035
  }, ac(t, a, o));
@@ -10036,7 +10040,7 @@ function Ey(e) {
10036
10040
  y: c.top
10037
10041
  };
10038
10042
  }
10039
- function Iy(e) {
10043
+ function Ny(e) {
10040
10044
  const {
10041
10045
  width: t,
10042
10046
  height: n
@@ -10046,7 +10050,7 @@ function Iy(e) {
10046
10050
  height: n
10047
10051
  };
10048
10052
  }
10049
- function Ny(e, t, n) {
10053
+ function jy(e, t, n) {
10050
10054
  const r = qt(t), o = Jt(t), s = n === "fixed", i = jn(e, !0, s, t);
10051
10055
  let a = {
10052
10056
  scrollLeft: 0,
@@ -10095,14 +10099,14 @@ function Rd(e, t) {
10095
10099
  return n;
10096
10100
  }
10097
10101
  let r = lc(e, t);
10098
- for (; r && uy(r) && Ys(r); )
10102
+ for (; r && dy(r) && Ys(r); )
10099
10103
  r = lc(r, t);
10100
- return r && Zn(r) && Ys(r) && !pa(r) ? n : r || my(e) || n;
10104
+ return r && Zn(r) && Ys(r) && !pa(r) ? n : r || gy(e) || n;
10101
10105
  }
10102
- const jy = async function(e) {
10106
+ const Ay = async function(e) {
10103
10107
  const t = this.getOffsetParent || Rd, n = this.getDimensions, r = await n(e.floating);
10104
10108
  return {
10105
- reference: Ny(e.reference, await t(e.floating), e.strategy),
10109
+ reference: jy(e.reference, await t(e.floating), e.strategy),
10106
10110
  floating: {
10107
10111
  x: 0,
10108
10112
  y: 0,
@@ -10111,25 +10115,25 @@ const jy = async function(e) {
10111
10115
  }
10112
10116
  };
10113
10117
  };
10114
- function Ay(e) {
10118
+ function ky(e) {
10115
10119
  return Bt(e).direction === "rtl";
10116
10120
  }
10117
- const ky = {
10118
- convertOffsetParentRelativeRectToViewportRelativeRect: by,
10121
+ const Py = {
10122
+ convertOffsetParentRelativeRectToViewportRelativeRect: wy,
10119
10123
  getDocumentElement: Jt,
10120
- getClippingRect: Ey,
10124
+ getClippingRect: Iy,
10121
10125
  getOffsetParent: Rd,
10122
- getElementRects: jy,
10123
- getClientRects: wy,
10124
- getDimensions: Iy,
10126
+ getElementRects: Ay,
10127
+ getClientRects: yy,
10128
+ getDimensions: Ny,
10125
10129
  getScale: Yn,
10126
10130
  isElement: Ft,
10127
- isRTL: Ay
10131
+ isRTL: ky
10128
10132
  };
10129
10133
  function Ed(e, t) {
10130
10134
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
10131
10135
  }
10132
- function Py(e, t) {
10136
+ function _y(e, t) {
10133
10137
  let n = null, r;
10134
10138
  const o = Jt(e);
10135
10139
  function s() {
@@ -10175,7 +10179,7 @@ function Py(e, t) {
10175
10179
  }
10176
10180
  return i(!0), s;
10177
10181
  }
10178
- function _y(e, t, n, r) {
10182
+ function Oy(e, t, n, r) {
10179
10183
  r === void 0 && (r = {});
10180
10184
  const {
10181
10185
  ancestorScroll: o = !0,
@@ -10189,7 +10193,7 @@ function _y(e, t, n, r) {
10189
10193
  passive: !0
10190
10194
  }), s && b.addEventListener("resize", n);
10191
10195
  });
10192
- const h = u && a ? Py(u, n) : null;
10196
+ const h = u && a ? _y(u, n) : null;
10193
10197
  let p = -1, x = null;
10194
10198
  i && (x = new ResizeObserver((b) => {
10195
10199
  let [w] = b;
@@ -10211,21 +10215,21 @@ function _y(e, t, n, r) {
10211
10215
  }), h == null || h(), (b = x) == null || b.disconnect(), x = null, c && cancelAnimationFrame(g);
10212
10216
  };
10213
10217
  }
10214
- const Oy = oy, My = sy, Dy = ty, Ly = ay, Fy = ny, cc = ey, By = iy, Hy = (e, t, n) => {
10218
+ const My = sy, Dy = iy, Ly = ny, Fy = ly, By = ry, cc = ty, Hy = ay, $y = (e, t, n) => {
10215
10219
  const r = /* @__PURE__ */ new Map(), o = {
10216
- platform: ky,
10220
+ platform: Py,
10217
10221
  ...n
10218
10222
  }, s = {
10219
10223
  ...o.platform,
10220
10224
  _c: r
10221
10225
  };
10222
- return Qw(e, t, {
10226
+ return ey(e, t, {
10223
10227
  ...o,
10224
10228
  platform: s
10225
10229
  });
10226
10230
  };
10227
- var $y = typeof document < "u", zy = function() {
10228
- }, vo = $y ? Dp : zy;
10231
+ var zy = typeof document < "u", Uy = function() {
10232
+ }, vo = zy ? Dp : Uy;
10229
10233
  function Oo(e, t) {
10230
10234
  if (e === t)
10231
10235
  return !0;
@@ -10269,7 +10273,7 @@ function qs(e) {
10269
10273
  t.current = e;
10270
10274
  }), t;
10271
10275
  }
10272
- function Uy(e) {
10276
+ function Wy(e) {
10273
10277
  e === void 0 && (e = {});
10274
10278
  const {
10275
10279
  placement: t = "bottom",
@@ -10304,7 +10308,7 @@ function Uy(e) {
10304
10308
  strategy: n,
10305
10309
  middleware: p
10306
10310
  };
10307
- M.current && (O.platform = M.current), Hy(C.current, R.current, O).then((_) => {
10311
+ M.current && (O.platform = M.current), $y(C.current, R.current, O).then((_) => {
10308
10312
  const z = {
10309
10313
  ..._,
10310
10314
  // The floating element's position may be recomputed while it's closed
@@ -10371,7 +10375,7 @@ function Uy(e) {
10371
10375
  floatingStyles: q
10372
10376
  }), [d, G, $, L, q]);
10373
10377
  }
10374
- const Wy = (e) => {
10378
+ const Vy = (e) => {
10375
10379
  function t(n) {
10376
10380
  return {}.hasOwnProperty.call(n, "current");
10377
10381
  }
@@ -10392,17 +10396,14 @@ const Wy = (e) => {
10392
10396
  }).fn(n) : {};
10393
10397
  }
10394
10398
  };
10395
- }, Vy = (e, t) => ({
10396
- ...Oy(e),
10397
- options: [e, t]
10398
- }), Gy = (e, t) => ({
10399
+ }, Gy = (e, t) => ({
10399
10400
  ...My(e),
10400
10401
  options: [e, t]
10401
10402
  }), Ky = (e, t) => ({
10402
- ...By(e),
10403
+ ...Dy(e),
10403
10404
  options: [e, t]
10404
10405
  }), Yy = (e, t) => ({
10405
- ...Dy(e),
10406
+ ...Hy(e),
10406
10407
  options: [e, t]
10407
10408
  }), qy = (e, t) => ({
10408
10409
  ...Ly(e),
@@ -10411,10 +10412,13 @@ const Wy = (e) => {
10411
10412
  ...Fy(e),
10412
10413
  options: [e, t]
10413
10414
  }), Jy = (e, t) => ({
10414
- ...Wy(e),
10415
+ ...By(e),
10416
+ options: [e, t]
10417
+ }), Zy = (e, t) => ({
10418
+ ...Vy(e),
10415
10419
  options: [e, t]
10416
10420
  });
10417
- var Zy = "Arrow", Nd = f.forwardRef((e, t) => {
10421
+ var Qy = "Arrow", Nd = f.forwardRef((e, t) => {
10418
10422
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
10419
10423
  return /* @__PURE__ */ l.jsx(
10420
10424
  me.svg,
@@ -10429,8 +10433,8 @@ var Zy = "Arrow", Nd = f.forwardRef((e, t) => {
10429
10433
  }
10430
10434
  );
10431
10435
  });
10432
- Nd.displayName = Zy;
10433
- var Qy = Nd;
10436
+ Nd.displayName = Qy;
10437
+ var eS = Nd;
10434
10438
  function jd(e) {
10435
10439
  const [t, n] = f.useState(void 0);
10436
10440
  return tt(() => {
@@ -10453,9 +10457,9 @@ function jd(e) {
10453
10457
  n(void 0);
10454
10458
  }, [e]), t;
10455
10459
  }
10456
- var va = "Popper", [Ad, lr] = $t(va), [eS, kd] = Ad(va), Pd = (e) => {
10460
+ var va = "Popper", [Ad, lr] = $t(va), [tS, kd] = Ad(va), Pd = (e) => {
10457
10461
  const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
10458
- return /* @__PURE__ */ l.jsx(eS, { scope: t, anchor: r, onAnchorChange: o, children: n });
10462
+ return /* @__PURE__ */ l.jsx(tS, { scope: t, anchor: r, onAnchorChange: o, children: n });
10459
10463
  };
10460
10464
  Pd.displayName = va;
10461
10465
  var _d = "PopperAnchor", Od = f.forwardRef(
@@ -10468,7 +10472,7 @@ var _d = "PopperAnchor", Od = f.forwardRef(
10468
10472
  }
10469
10473
  );
10470
10474
  Od.displayName = _d;
10471
- var xa = "PopperContent", [tS, nS] = Ad(xa), Md = f.forwardRef(
10475
+ var xa = "PopperContent", [nS, rS] = Ad(xa), Md = f.forwardRef(
10472
10476
  (e, t) => {
10473
10477
  var Y, P, Z, ne, le, se;
10474
10478
  const {
@@ -10488,38 +10492,38 @@ var xa = "PopperContent", [tS, nS] = Ad(xa), Md = f.forwardRef(
10488
10492
  ...v
10489
10493
  } = e, m = kd(xa, n), [b, w] = f.useState(null), y = Ce(t, (ke) => w(ke)), [E, S] = f.useState(null), C = jd(E), R = (C == null ? void 0 : C.width) ?? 0, I = (C == null ? void 0 : C.height) ?? 0, A = r + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, M = Array.isArray(u) ? u : [u], W = M.length > 0, G = {
10490
10494
  padding: k,
10491
- boundary: M.filter(oS),
10495
+ boundary: M.filter(sS),
10492
10496
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
10493
10497
  altBoundary: W
10494
- }, { refs: N, floatingStyles: $, placement: L, isPositioned: q, middlewareData: O } = Uy({
10498
+ }, { refs: N, floatingStyles: $, placement: L, isPositioned: q, middlewareData: O } = Wy({
10495
10499
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
10496
10500
  strategy: "fixed",
10497
10501
  placement: A,
10498
- whileElementsMounted: (...ke) => _y(...ke, {
10502
+ whileElementsMounted: (...ke) => Oy(...ke, {
10499
10503
  animationFrame: x === "always"
10500
10504
  }),
10501
10505
  elements: {
10502
10506
  reference: m.anchor
10503
10507
  },
10504
10508
  middleware: [
10505
- Vy({ mainAxis: o + I, alignmentAxis: i }),
10506
- c && Gy({
10509
+ Gy({ mainAxis: o + I, alignmentAxis: i }),
10510
+ c && Ky({
10507
10511
  mainAxis: !0,
10508
10512
  crossAxis: !1,
10509
- limiter: h === "partial" ? Ky() : void 0,
10513
+ limiter: h === "partial" ? Yy() : void 0,
10510
10514
  ...G
10511
10515
  }),
10512
- c && Yy({ ...G }),
10513
- qy({
10516
+ c && qy({ ...G }),
10517
+ Xy({
10514
10518
  ...G,
10515
10519
  apply: ({ elements: ke, rects: Fe, availableWidth: Le, availableHeight: ce }) => {
10516
10520
  const { width: je, height: ve } = Fe.reference, H = ke.floating.style;
10517
10521
  H.setProperty("--radix-popper-available-width", `${Le}px`), H.setProperty("--radix-popper-available-height", `${ce}px`), H.setProperty("--radix-popper-anchor-width", `${je}px`), H.setProperty("--radix-popper-anchor-height", `${ve}px`);
10518
10522
  }
10519
10523
  }),
10520
- E && Jy({ element: E, padding: a }),
10521
- sS({ arrowWidth: R, arrowHeight: I }),
10522
- p && Xy({ strategy: "referenceHidden", ...G })
10524
+ E && Zy({ element: E, padding: a }),
10525
+ iS({ arrowWidth: R, arrowHeight: I }),
10526
+ p && Jy({ strategy: "referenceHidden", ...G })
10523
10527
  ]
10524
10528
  }), [_, z] = Fd(L), X = ot(g);
10525
10529
  tt(() => {
@@ -10553,7 +10557,7 @@ var xa = "PopperContent", [tS, nS] = Ad(xa), Md = f.forwardRef(
10553
10557
  },
10554
10558
  dir: e.dir,
10555
10559
  children: /* @__PURE__ */ l.jsx(
10556
- tS,
10560
+ nS,
10557
10561
  {
10558
10562
  scope: n,
10559
10563
  placedSide: _,
@@ -10583,13 +10587,13 @@ var xa = "PopperContent", [tS, nS] = Ad(xa), Md = f.forwardRef(
10583
10587
  }
10584
10588
  );
10585
10589
  Md.displayName = xa;
10586
- var Dd = "PopperArrow", rS = {
10590
+ var Dd = "PopperArrow", oS = {
10587
10591
  top: "bottom",
10588
10592
  right: "left",
10589
10593
  bottom: "top",
10590
10594
  left: "right"
10591
10595
  }, Ld = f.forwardRef(function(t, n) {
10592
- const { __scopePopper: r, ...o } = t, s = nS(Dd, r), i = rS[s.placedSide];
10596
+ const { __scopePopper: r, ...o } = t, s = rS(Dd, r), i = oS[s.placedSide];
10593
10597
  return (
10594
10598
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
10595
10599
  // doesn't report size as we'd expect on SVG elements.
@@ -10618,7 +10622,7 @@ var Dd = "PopperArrow", rS = {
10618
10622
  visibility: s.shouldHideArrow ? "hidden" : void 0
10619
10623
  },
10620
10624
  children: /* @__PURE__ */ l.jsx(
10621
- Qy,
10625
+ eS,
10622
10626
  {
10623
10627
  ...o,
10624
10628
  ref: n,
@@ -10634,10 +10638,10 @@ var Dd = "PopperArrow", rS = {
10634
10638
  );
10635
10639
  });
10636
10640
  Ld.displayName = Dd;
10637
- function oS(e) {
10641
+ function sS(e) {
10638
10642
  return e !== null;
10639
10643
  }
10640
- var sS = (e) => ({
10644
+ var iS = (e) => ({
10641
10645
  name: "transformOrigin",
10642
10646
  options: e,
10643
10647
  fn(t) {
@@ -10651,14 +10655,14 @@ function Fd(e) {
10651
10655
  const [t, n = "center"] = e.split("-");
10652
10656
  return [t, n];
10653
10657
  }
10654
- var ba = Pd, wa = Od, ya = Md, Sa = Ld, Xs = "rovingFocusGroup.onEntryFocus", iS = { bubbles: !1, cancelable: !0 }, Ur = "RovingFocusGroup", [Si, Bd, aS] = ua(Ur), [lS, Hd] = $t(
10658
+ var ba = Pd, wa = Od, ya = Md, Sa = Ld, Xs = "rovingFocusGroup.onEntryFocus", aS = { bubbles: !1, cancelable: !0 }, Ur = "RovingFocusGroup", [Si, Bd, lS] = ua(Ur), [cS, Hd] = $t(
10655
10659
  Ur,
10656
- [aS]
10657
- ), [cS, uS] = lS(Ur), $d = f.forwardRef(
10658
- (e, t) => /* @__PURE__ */ l.jsx(Si.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(Si.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(dS, { ...e, ref: t }) }) })
10660
+ [lS]
10661
+ ), [uS, dS] = cS(Ur), $d = f.forwardRef(
10662
+ (e, t) => /* @__PURE__ */ l.jsx(Si.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(Si.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l.jsx(fS, { ...e, ref: t }) }) })
10659
10663
  );
10660
10664
  $d.displayName = Ur;
10661
- var dS = f.forwardRef((e, t) => {
10665
+ var fS = f.forwardRef((e, t) => {
10662
10666
  const {
10663
10667
  __scopeRovingFocusGroup: n,
10664
10668
  orientation: r,
@@ -10681,7 +10685,7 @@ var dS = f.forwardRef((e, t) => {
10681
10685
  if (I)
10682
10686
  return I.addEventListener(Xs, y), () => I.removeEventListener(Xs, y);
10683
10687
  }, [y]), /* @__PURE__ */ l.jsx(
10684
- cS,
10688
+ uS,
10685
10689
  {
10686
10690
  scope: n,
10687
10691
  orientation: r,
@@ -10715,7 +10719,7 @@ var dS = f.forwardRef((e, t) => {
10715
10719
  onFocus: ee(e.onFocus, (I) => {
10716
10720
  const A = !S.current;
10717
10721
  if (I.target === I.currentTarget && A && !b) {
10718
- const k = new CustomEvent(Xs, iS);
10722
+ const k = new CustomEvent(Xs, aS);
10719
10723
  if (I.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
10720
10724
  const M = E().filter((L) => L.focusable), W = M.find((L) => L.active), G = M.find((L) => L.id === v), $ = [W, G, ...M].filter(
10721
10725
  Boolean
@@ -10739,7 +10743,7 @@ var dS = f.forwardRef((e, t) => {
10739
10743
  tabStopId: s,
10740
10744
  children: i,
10741
10745
  ...a
10742
- } = e, c = Dt(), u = s || c, d = uS(zd, n), h = d.currentTabStopId === u, p = Bd(n), { onFocusableItemAdd: x, onFocusableItemRemove: g, currentTabStopId: v } = d;
10746
+ } = e, c = Dt(), u = s || c, d = dS(zd, n), h = d.currentTabStopId === u, p = Bd(n), { onFocusableItemAdd: x, onFocusableItemRemove: g, currentTabStopId: v } = d;
10743
10747
  return f.useEffect(() => {
10744
10748
  if (r)
10745
10749
  return x(), () => g();
@@ -10767,7 +10771,7 @@ var dS = f.forwardRef((e, t) => {
10767
10771
  return;
10768
10772
  }
10769
10773
  if (m.target !== m.currentTarget) return;
10770
- const b = pS(m, d.orientation, d.dir);
10774
+ const b = mS(m, d.orientation, d.dir);
10771
10775
  if (b !== void 0) {
10772
10776
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
10773
10777
  m.preventDefault();
@@ -10776,7 +10780,7 @@ var dS = f.forwardRef((e, t) => {
10776
10780
  else if (b === "prev" || b === "next") {
10777
10781
  b === "prev" && y.reverse();
10778
10782
  const E = y.indexOf(m.currentTarget);
10779
- y = d.loop ? mS(y, E + 1) : y.slice(E + 1);
10783
+ y = d.loop ? gS(y, E + 1) : y.slice(E + 1);
10780
10784
  }
10781
10785
  setTimeout(() => Wd(y));
10782
10786
  }
@@ -10789,7 +10793,7 @@ var dS = f.forwardRef((e, t) => {
10789
10793
  }
10790
10794
  );
10791
10795
  Ud.displayName = zd;
10792
- var fS = {
10796
+ var hS = {
10793
10797
  ArrowLeft: "prev",
10794
10798
  ArrowUp: "prev",
10795
10799
  ArrowRight: "next",
@@ -10799,33 +10803,33 @@ var fS = {
10799
10803
  PageDown: "last",
10800
10804
  End: "last"
10801
10805
  };
10802
- function hS(e, t) {
10806
+ function pS(e, t) {
10803
10807
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
10804
10808
  }
10805
- function pS(e, t, n) {
10806
- const r = hS(e.key, n);
10809
+ function mS(e, t, n) {
10810
+ const r = pS(e.key, n);
10807
10811
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
10808
- return fS[r];
10812
+ return hS[r];
10809
10813
  }
10810
10814
  function Wd(e, t = !1) {
10811
10815
  const n = document.activeElement;
10812
10816
  for (const r of e)
10813
10817
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
10814
10818
  }
10815
- function mS(e, t) {
10819
+ function gS(e, t) {
10816
10820
  return e.map((n, r) => e[(t + r) % e.length]);
10817
10821
  }
10818
- var gS = $d, vS = Ud, Ci = ["Enter", " "], xS = ["ArrowDown", "PageUp", "Home"], Vd = ["ArrowUp", "PageDown", "End"], bS = [...xS, ...Vd], wS = {
10822
+ var vS = $d, xS = Ud, Ci = ["Enter", " "], bS = ["ArrowDown", "PageUp", "Home"], Vd = ["ArrowUp", "PageDown", "End"], wS = [...bS, ...Vd], yS = {
10819
10823
  ltr: [...Ci, "ArrowRight"],
10820
10824
  rtl: [...Ci, "ArrowLeft"]
10821
- }, yS = {
10825
+ }, SS = {
10822
10826
  ltr: ["ArrowLeft"],
10823
10827
  rtl: ["ArrowRight"]
10824
- }, Wr = "Menu", [jr, SS, CS] = ua(Wr), [On, Gd] = $t(Wr, [
10825
- CS,
10828
+ }, Wr = "Menu", [jr, CS, TS] = ua(Wr), [On, Gd] = $t(Wr, [
10829
+ TS,
10826
10830
  lr,
10827
10831
  Hd
10828
- ]), fs = lr(), Kd = Hd(), [TS, Mn] = On(Wr), [RS, Vr] = On(Wr), Yd = (e) => {
10832
+ ]), fs = lr(), Kd = Hd(), [RS, Mn] = On(Wr), [ES, Vr] = On(Wr), Yd = (e) => {
10829
10833
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = fs(t), [c, u] = f.useState(null), d = f.useRef(!1), h = ot(s), p = as(o);
10830
10834
  return f.useEffect(() => {
10831
10835
  const x = () => {
@@ -10835,7 +10839,7 @@ var gS = $d, vS = Ud, Ci = ["Enter", " "], xS = ["ArrowDown", "PageUp", "Home"],
10835
10839
  document.removeEventListener("keydown", x, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
10836
10840
  };
10837
10841
  }, []), /* @__PURE__ */ l.jsx(ba, { ...a, children: /* @__PURE__ */ l.jsx(
10838
- TS,
10842
+ RS,
10839
10843
  {
10840
10844
  scope: t,
10841
10845
  open: n,
@@ -10843,7 +10847,7 @@ var gS = $d, vS = Ud, Ci = ["Enter", " "], xS = ["ArrowDown", "PageUp", "Home"],
10843
10847
  content: c,
10844
10848
  onContentChange: u,
10845
10849
  children: /* @__PURE__ */ l.jsx(
10846
- RS,
10850
+ ES,
10847
10851
  {
10848
10852
  scope: t,
10849
10853
  onClose: f.useCallback(() => h(!1), [h]),
@@ -10857,26 +10861,26 @@ var gS = $d, vS = Ud, Ci = ["Enter", " "], xS = ["ArrowDown", "PageUp", "Home"],
10857
10861
  ) });
10858
10862
  };
10859
10863
  Yd.displayName = Wr;
10860
- var ES = "MenuAnchor", Ca = f.forwardRef(
10864
+ var IS = "MenuAnchor", Ca = f.forwardRef(
10861
10865
  (e, t) => {
10862
10866
  const { __scopeMenu: n, ...r } = e, o = fs(n);
10863
10867
  return /* @__PURE__ */ l.jsx(wa, { ...o, ...r, ref: t });
10864
10868
  }
10865
10869
  );
10866
- Ca.displayName = ES;
10867
- var Ta = "MenuPortal", [IS, qd] = On(Ta, {
10870
+ Ca.displayName = IS;
10871
+ var Ta = "MenuPortal", [NS, qd] = On(Ta, {
10868
10872
  forceMount: void 0
10869
10873
  }), Xd = (e) => {
10870
10874
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Mn(Ta, t);
10871
- return /* @__PURE__ */ l.jsx(IS, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(es, { asChild: !0, container: o, children: r }) }) });
10875
+ return /* @__PURE__ */ l.jsx(NS, { scope: t, forceMount: n, children: /* @__PURE__ */ l.jsx(vt, { present: n || s.open, children: /* @__PURE__ */ l.jsx(es, { asChild: !0, container: o, children: r }) }) });
10872
10876
  };
10873
10877
  Xd.displayName = Ta;
10874
- var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10878
+ var jt = "MenuContent", [jS, Ra] = On(jt), Jd = f.forwardRef(
10875
10879
  (e, t) => {
10876
10880
  const n = qd(jt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Mn(jt, e.__scopeMenu), i = Vr(jt, e.__scopeMenu);
10877
- return /* @__PURE__ */ l.jsx(jr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ l.jsx(jr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ l.jsx(jS, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(AS, { ...o, ref: t }) }) }) });
10881
+ return /* @__PURE__ */ l.jsx(jr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l.jsx(vt, { present: r || s.open, children: /* @__PURE__ */ l.jsx(jr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ l.jsx(AS, { ...o, ref: t }) : /* @__PURE__ */ l.jsx(kS, { ...o, ref: t }) }) }) });
10878
10882
  }
10879
- ), jS = f.forwardRef(
10883
+ ), AS = f.forwardRef(
10880
10884
  (e, t) => {
10881
10885
  const n = Mn(jt, e.__scopeMenu), r = f.useRef(null), o = Ce(t, r);
10882
10886
  return f.useEffect(() => {
@@ -10899,7 +10903,7 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10899
10903
  }
10900
10904
  );
10901
10905
  }
10902
- ), AS = f.forwardRef((e, t) => {
10906
+ ), kS = f.forwardRef((e, t) => {
10903
10907
  const n = Mn(jt, e.__scopeMenu);
10904
10908
  return /* @__PURE__ */ l.jsx(
10905
10909
  Ea,
@@ -10912,7 +10916,7 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10912
10916
  onDismiss: () => n.onOpenChange(!1)
10913
10917
  }
10914
10918
  );
10915
- }), kS = Xn("MenuContent.ScrollLock"), Ea = f.forwardRef(
10919
+ }), PS = Xn("MenuContent.ScrollLock"), Ea = f.forwardRef(
10916
10920
  (e, t) => {
10917
10921
  const {
10918
10922
  __scopeMenu: n,
@@ -10929,9 +10933,9 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10929
10933
  onDismiss: x,
10930
10934
  disableOutsideScroll: g,
10931
10935
  ...v
10932
- } = e, m = Mn(jt, n), b = Vr(jt, n), w = fs(n), y = Kd(n), E = SS(n), [S, C] = f.useState(null), R = f.useRef(null), I = Ce(t, R, m.onContentChange), A = f.useRef(0), k = f.useRef(""), M = f.useRef(0), W = f.useRef(null), G = f.useRef("right"), N = f.useRef(0), $ = g ? ns : f.Fragment, L = g ? { as: kS, allowPinchZoom: !0 } : void 0, q = (_) => {
10936
+ } = e, m = Mn(jt, n), b = Vr(jt, n), w = fs(n), y = Kd(n), E = CS(n), [S, C] = f.useState(null), R = f.useRef(null), I = Ce(t, R, m.onContentChange), A = f.useRef(0), k = f.useRef(""), M = f.useRef(0), W = f.useRef(null), G = f.useRef("right"), N = f.useRef(0), $ = g ? ns : f.Fragment, L = g ? { as: PS, allowPinchZoom: !0 } : void 0, q = (_) => {
10933
10937
  var Y, P;
10934
- const z = k.current + _, X = E().filter((Z) => !Z.disabled), oe = document.activeElement, F = (Y = X.find((Z) => Z.ref.current === oe)) == null ? void 0 : Y.textValue, Q = X.map((Z) => Z.textValue), de = US(Q, z, F), be = (P = X.find((Z) => Z.textValue === de)) == null ? void 0 : P.ref.current;
10938
+ const z = k.current + _, X = E().filter((Z) => !Z.disabled), oe = document.activeElement, F = (Y = X.find((Z) => Z.ref.current === oe)) == null ? void 0 : Y.textValue, Q = X.map((Z) => Z.textValue), de = WS(Q, z, F), be = (P = X.find((Z) => Z.textValue === de)) == null ? void 0 : P.ref.current;
10935
10939
  (function Z(ne) {
10936
10940
  k.current = ne, window.clearTimeout(A.current), ne !== "" && (A.current = window.setTimeout(() => Z(""), 1e3));
10937
10941
  })(z), be && setTimeout(() => be.focus());
@@ -10939,10 +10943,10 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10939
10943
  f.useEffect(() => () => window.clearTimeout(A.current), []), sa();
10940
10944
  const O = f.useCallback((_) => {
10941
10945
  var X, oe;
10942
- return G.current === ((X = W.current) == null ? void 0 : X.side) && VS(_, (oe = W.current) == null ? void 0 : oe.area);
10946
+ return G.current === ((X = W.current) == null ? void 0 : X.side) && GS(_, (oe = W.current) == null ? void 0 : oe.area);
10943
10947
  }, []);
10944
10948
  return /* @__PURE__ */ l.jsx(
10945
- NS,
10949
+ jS,
10946
10950
  {
10947
10951
  scope: n,
10948
10952
  searchRef: k,
@@ -10990,7 +10994,7 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
10990
10994
  onInteractOutside: p,
10991
10995
  onDismiss: x,
10992
10996
  children: /* @__PURE__ */ l.jsx(
10993
- gS,
10997
+ vS,
10994
10998
  {
10995
10999
  asChild: !0,
10996
11000
  ...y,
@@ -11019,10 +11023,10 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
11019
11023
  const X = _.target.closest("[data-radix-menu-content]") === _.currentTarget, oe = _.ctrlKey || _.altKey || _.metaKey, F = _.key.length === 1;
11020
11024
  X && (_.key === "Tab" && _.preventDefault(), !oe && F && q(_.key));
11021
11025
  const Q = R.current;
11022
- if (_.target !== Q || !bS.includes(_.key)) return;
11026
+ if (_.target !== Q || !wS.includes(_.key)) return;
11023
11027
  _.preventDefault();
11024
11028
  const be = E().filter((Y) => !Y.disabled).map((Y) => Y.ref.current);
11025
- Vd.includes(_.key) && be.reverse(), $S(be);
11029
+ Vd.includes(_.key) && be.reverse(), zS(be);
11026
11030
  }),
11027
11031
  onBlur: ee(e.onBlur, (_) => {
11028
11032
  _.currentTarget.contains(_.target) || (window.clearTimeout(A.current), k.current = "");
@@ -11050,20 +11054,20 @@ var jt = "MenuContent", [NS, Ra] = On(jt), Jd = f.forwardRef(
11050
11054
  }
11051
11055
  );
11052
11056
  Jd.displayName = jt;
11053
- var PS = "MenuGroup", Ia = f.forwardRef(
11057
+ var _S = "MenuGroup", Ia = f.forwardRef(
11054
11058
  (e, t) => {
11055
11059
  const { __scopeMenu: n, ...r } = e;
11056
11060
  return /* @__PURE__ */ l.jsx(me.div, { role: "group", ...r, ref: t });
11057
11061
  }
11058
11062
  );
11059
- Ia.displayName = PS;
11060
- var _S = "MenuLabel", Zd = f.forwardRef(
11063
+ Ia.displayName = _S;
11064
+ var OS = "MenuLabel", Zd = f.forwardRef(
11061
11065
  (e, t) => {
11062
11066
  const { __scopeMenu: n, ...r } = e;
11063
11067
  return /* @__PURE__ */ l.jsx(me.div, { ...r, ref: t });
11064
11068
  }
11065
11069
  );
11066
- Zd.displayName = _S;
11070
+ Zd.displayName = OS;
11067
11071
  var Mo = "MenuItem", dc = "menu.itemSelect", hs = f.forwardRef(
11068
11072
  (e, t) => {
11069
11073
  const { disabled: n = !1, onSelect: r, ...o } = e, s = f.useRef(null), i = Vr(Mo, e.__scopeMenu), a = Ra(Mo, e.__scopeMenu), c = Ce(t, s), u = f.useRef(!1), d = () => {
@@ -11109,7 +11113,7 @@ var Qd = f.forwardRef(
11109
11113
  scope: n,
11110
11114
  disabled: r,
11111
11115
  textValue: o ?? p,
11112
- children: /* @__PURE__ */ l.jsx(vS, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ l.jsx(
11116
+ children: /* @__PURE__ */ l.jsx(xS, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ l.jsx(
11113
11117
  me.div,
11114
11118
  {
11115
11119
  role: "menuitem",
@@ -11135,7 +11139,7 @@ var Qd = f.forwardRef(
11135
11139
  }
11136
11140
  );
11137
11141
  }
11138
- ), OS = "MenuCheckboxItem", ef = f.forwardRef(
11142
+ ), MS = "MenuCheckboxItem", ef = f.forwardRef(
11139
11143
  (e, t) => {
11140
11144
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
11141
11145
  return /* @__PURE__ */ l.jsx(sf, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ l.jsx(
@@ -11155,21 +11159,21 @@ var Qd = f.forwardRef(
11155
11159
  ) });
11156
11160
  }
11157
11161
  );
11158
- ef.displayName = OS;
11159
- var tf = "MenuRadioGroup", [MS, DS] = On(
11162
+ ef.displayName = MS;
11163
+ var tf = "MenuRadioGroup", [DS, LS] = On(
11160
11164
  tf,
11161
11165
  { value: void 0, onValueChange: () => {
11162
11166
  } }
11163
11167
  ), nf = f.forwardRef(
11164
11168
  (e, t) => {
11165
11169
  const { value: n, onValueChange: r, ...o } = e, s = ot(r);
11166
- return /* @__PURE__ */ l.jsx(MS, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ l.jsx(Ia, { ...o, ref: t }) });
11170
+ return /* @__PURE__ */ l.jsx(DS, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ l.jsx(Ia, { ...o, ref: t }) });
11167
11171
  }
11168
11172
  );
11169
11173
  nf.displayName = tf;
11170
11174
  var rf = "MenuRadioItem", of = f.forwardRef(
11171
11175
  (e, t) => {
11172
- const { value: n, ...r } = e, o = DS(rf, e.__scopeMenu), s = n === o.value;
11176
+ const { value: n, ...r } = e, o = LS(rf, e.__scopeMenu), s = n === o.value;
11173
11177
  return /* @__PURE__ */ l.jsx(sf, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ l.jsx(
11174
11178
  hs,
11175
11179
  {
@@ -11191,12 +11195,12 @@ var rf = "MenuRadioItem", of = f.forwardRef(
11191
11195
  }
11192
11196
  );
11193
11197
  of.displayName = rf;
11194
- var Na = "MenuItemIndicator", [sf, LS] = On(
11198
+ var Na = "MenuItemIndicator", [sf, FS] = On(
11195
11199
  Na,
11196
11200
  { checked: !1 }
11197
11201
  ), af = f.forwardRef(
11198
11202
  (e, t) => {
11199
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = LS(Na, n);
11203
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = FS(Na, n);
11200
11204
  return /* @__PURE__ */ l.jsx(
11201
11205
  vt,
11202
11206
  {
@@ -11214,7 +11218,7 @@ var Na = "MenuItemIndicator", [sf, LS] = On(
11214
11218
  }
11215
11219
  );
11216
11220
  af.displayName = Na;
11217
- var FS = "MenuSeparator", lf = f.forwardRef(
11221
+ var BS = "MenuSeparator", lf = f.forwardRef(
11218
11222
  (e, t) => {
11219
11223
  const { __scopeMenu: n, ...r } = e;
11220
11224
  return /* @__PURE__ */ l.jsx(
@@ -11228,15 +11232,15 @@ var FS = "MenuSeparator", lf = f.forwardRef(
11228
11232
  );
11229
11233
  }
11230
11234
  );
11231
- lf.displayName = FS;
11232
- var BS = "MenuArrow", cf = f.forwardRef(
11235
+ lf.displayName = BS;
11236
+ var HS = "MenuArrow", cf = f.forwardRef(
11233
11237
  (e, t) => {
11234
11238
  const { __scopeMenu: n, ...r } = e, o = fs(n);
11235
11239
  return /* @__PURE__ */ l.jsx(Sa, { ...o, ...r, ref: t });
11236
11240
  }
11237
11241
  );
11238
- cf.displayName = BS;
11239
- var HS = "MenuSub", [lR, uf] = On(HS), mr = "MenuSubTrigger", df = f.forwardRef(
11242
+ cf.displayName = HS;
11243
+ var $S = "MenuSub", [cR, uf] = On($S), mr = "MenuSubTrigger", df = f.forwardRef(
11240
11244
  (e, t) => {
11241
11245
  const n = Mn(mr, e.__scopeMenu), r = Vr(mr, e.__scopeMenu), o = uf(mr, e.__scopeMenu), s = Ra(mr, e.__scopeMenu), i = f.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = s, u = { __scopeMenu: e.__scopeMenu }, d = f.useCallback(() => {
11242
11246
  i.current && window.clearTimeout(i.current), i.current = null;
@@ -11300,7 +11304,7 @@ var HS = "MenuSub", [lR, uf] = On(HS), mr = "MenuSubTrigger", df = f.forwardRef(
11300
11304
  onKeyDown: ee(e.onKeyDown, (h) => {
11301
11305
  var x;
11302
11306
  const p = s.searchRef.current !== "";
11303
- e.disabled || p && h.key === " " || wS[r.dir].includes(h.key) && (n.onOpenChange(!0), (x = n.content) == null || x.focus(), h.preventDefault());
11307
+ e.disabled || p && h.key === " " || yS[r.dir].includes(h.key) && (n.onOpenChange(!0), (x = n.content) == null || x.focus(), h.preventDefault());
11304
11308
  })
11305
11309
  }
11306
11310
  ) });
@@ -11335,7 +11339,7 @@ var ff = "MenuSubContent", hf = f.forwardRef(
11335
11339
  }),
11336
11340
  onKeyDown: ee(e.onKeyDown, (d) => {
11337
11341
  var x;
11338
- const h = d.currentTarget.contains(d.target), p = yS[i.dir].includes(d.key);
11342
+ const h = d.currentTarget.contains(d.target), p = SS[i.dir].includes(d.key);
11339
11343
  h && p && (s.onOpenChange(!1), (x = a.trigger) == null || x.focus(), d.preventDefault());
11340
11344
  })
11341
11345
  }
@@ -11352,24 +11356,24 @@ function Do(e) {
11352
11356
  function ja(e) {
11353
11357
  return Do(e) ? "indeterminate" : e ? "checked" : "unchecked";
11354
11358
  }
11355
- function $S(e) {
11359
+ function zS(e) {
11356
11360
  const t = document.activeElement;
11357
11361
  for (const n of e)
11358
11362
  if (n === t || (n.focus(), document.activeElement !== t)) return;
11359
11363
  }
11360
- function zS(e, t) {
11364
+ function US(e, t) {
11361
11365
  return e.map((n, r) => e[(t + r) % e.length]);
11362
11366
  }
11363
- function US(e, t, n) {
11367
+ function WS(e, t, n) {
11364
11368
  const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
11365
- let i = zS(e, Math.max(s, 0));
11369
+ let i = US(e, Math.max(s, 0));
11366
11370
  o.length === 1 && (i = i.filter((u) => u !== n));
11367
11371
  const c = i.find(
11368
11372
  (u) => u.toLowerCase().startsWith(o.toLowerCase())
11369
11373
  );
11370
11374
  return c !== n ? c : void 0;
11371
11375
  }
11372
- function WS(e, t) {
11376
+ function VS(e, t) {
11373
11377
  const { x: n, y: r } = e;
11374
11378
  let o = !1;
11375
11379
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -11378,18 +11382,18 @@ function WS(e, t) {
11378
11382
  }
11379
11383
  return o;
11380
11384
  }
11381
- function VS(e, t) {
11385
+ function GS(e, t) {
11382
11386
  if (!t) return !1;
11383
11387
  const n = { x: e.clientX, y: e.clientY };
11384
- return WS(n, t);
11388
+ return VS(n, t);
11385
11389
  }
11386
11390
  function Ar(e) {
11387
11391
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
11388
11392
  }
11389
- var GS = Yd, KS = Ca, YS = Xd, qS = Jd, XS = Ia, JS = Zd, ZS = hs, QS = ef, e0 = nf, t0 = of, n0 = af, r0 = lf, o0 = cf, s0 = df, i0 = hf, ps = "DropdownMenu", [a0, cR] = $t(
11393
+ var KS = Yd, YS = Ca, qS = Xd, XS = Jd, JS = Ia, ZS = Zd, QS = hs, e0 = ef, t0 = nf, n0 = of, r0 = af, o0 = lf, s0 = cf, i0 = df, a0 = hf, ps = "DropdownMenu", [l0, uR] = $t(
11390
11394
  ps,
11391
11395
  [Gd]
11392
- ), ht = Gd(), [l0, mf] = a0(ps), gf = (e) => {
11396
+ ), ht = Gd(), [c0, mf] = l0(ps), gf = (e) => {
11393
11397
  const {
11394
11398
  __scopeDropdownMenu: t,
11395
11399
  children: n,
@@ -11405,7 +11409,7 @@ var GS = Yd, KS = Ca, YS = Xd, qS = Jd, XS = Ia, JS = Zd, ZS = hs, QS = ef, e0 =
11405
11409
  caller: ps
11406
11410
  });
11407
11411
  return /* @__PURE__ */ l.jsx(
11408
- l0,
11412
+ c0,
11409
11413
  {
11410
11414
  scope: t,
11411
11415
  triggerId: Dt(),
@@ -11415,7 +11419,7 @@ var GS = Yd, KS = Ca, YS = Xd, qS = Jd, XS = Ia, JS = Zd, ZS = hs, QS = ef, e0 =
11415
11419
  onOpenChange: h,
11416
11420
  onOpenToggle: f.useCallback(() => h((p) => !p), [h]),
11417
11421
  modal: a,
11418
- children: /* @__PURE__ */ l.jsx(GS, { ...c, open: d, onOpenChange: h, dir: r, modal: a, children: n })
11422
+ children: /* @__PURE__ */ l.jsx(KS, { ...c, open: d, onOpenChange: h, dir: r, modal: a, children: n })
11419
11423
  }
11420
11424
  );
11421
11425
  };
@@ -11423,7 +11427,7 @@ gf.displayName = ps;
11423
11427
  var vf = "DropdownMenuTrigger", xf = f.forwardRef(
11424
11428
  (e, t) => {
11425
11429
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = mf(vf, n), i = ht(n);
11426
- return /* @__PURE__ */ l.jsx(KS, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
11430
+ return /* @__PURE__ */ l.jsx(YS, { asChild: !0, ...i, children: /* @__PURE__ */ l.jsx(
11427
11431
  me.button,
11428
11432
  {
11429
11433
  type: "button",
@@ -11447,16 +11451,16 @@ var vf = "DropdownMenuTrigger", xf = f.forwardRef(
11447
11451
  }
11448
11452
  );
11449
11453
  xf.displayName = vf;
11450
- var c0 = "DropdownMenuPortal", bf = (e) => {
11454
+ var u0 = "DropdownMenuPortal", bf = (e) => {
11451
11455
  const { __scopeDropdownMenu: t, ...n } = e, r = ht(t);
11452
- return /* @__PURE__ */ l.jsx(YS, { ...r, ...n });
11456
+ return /* @__PURE__ */ l.jsx(qS, { ...r, ...n });
11453
11457
  };
11454
- bf.displayName = c0;
11458
+ bf.displayName = u0;
11455
11459
  var wf = "DropdownMenuContent", yf = f.forwardRef(
11456
11460
  (e, t) => {
11457
11461
  const { __scopeDropdownMenu: n, ...r } = e, o = mf(wf, n), s = ht(n), i = f.useRef(!1);
11458
11462
  return /* @__PURE__ */ l.jsx(
11459
- qS,
11463
+ XS,
11460
11464
  {
11461
11465
  id: o.contentId,
11462
11466
  "aria-labelledby": o.triggerId,
@@ -11484,68 +11488,68 @@ var wf = "DropdownMenuContent", yf = f.forwardRef(
11484
11488
  }
11485
11489
  );
11486
11490
  yf.displayName = wf;
11487
- var u0 = "DropdownMenuGroup", d0 = f.forwardRef(
11491
+ var d0 = "DropdownMenuGroup", f0 = f.forwardRef(
11488
11492
  (e, t) => {
11489
11493
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11490
- return /* @__PURE__ */ l.jsx(XS, { ...o, ...r, ref: t });
11494
+ return /* @__PURE__ */ l.jsx(JS, { ...o, ...r, ref: t });
11491
11495
  }
11492
11496
  );
11493
- d0.displayName = u0;
11494
- var f0 = "DropdownMenuLabel", Sf = f.forwardRef(
11497
+ f0.displayName = d0;
11498
+ var h0 = "DropdownMenuLabel", Sf = f.forwardRef(
11495
11499
  (e, t) => {
11496
11500
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11497
- return /* @__PURE__ */ l.jsx(JS, { ...o, ...r, ref: t });
11501
+ return /* @__PURE__ */ l.jsx(ZS, { ...o, ...r, ref: t });
11498
11502
  }
11499
11503
  );
11500
- Sf.displayName = f0;
11501
- var h0 = "DropdownMenuItem", Cf = f.forwardRef(
11504
+ Sf.displayName = h0;
11505
+ var p0 = "DropdownMenuItem", Cf = f.forwardRef(
11502
11506
  (e, t) => {
11503
11507
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11504
- return /* @__PURE__ */ l.jsx(ZS, { ...o, ...r, ref: t });
11508
+ return /* @__PURE__ */ l.jsx(QS, { ...o, ...r, ref: t });
11505
11509
  }
11506
11510
  );
11507
- Cf.displayName = h0;
11508
- var p0 = "DropdownMenuCheckboxItem", Tf = f.forwardRef((e, t) => {
11509
- const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11510
- return /* @__PURE__ */ l.jsx(QS, { ...o, ...r, ref: t });
11511
- });
11512
- Tf.displayName = p0;
11513
- var m0 = "DropdownMenuRadioGroup", g0 = f.forwardRef((e, t) => {
11511
+ Cf.displayName = p0;
11512
+ var m0 = "DropdownMenuCheckboxItem", Tf = f.forwardRef((e, t) => {
11514
11513
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11515
11514
  return /* @__PURE__ */ l.jsx(e0, { ...o, ...r, ref: t });
11516
11515
  });
11517
- g0.displayName = m0;
11518
- var v0 = "DropdownMenuRadioItem", Rf = f.forwardRef((e, t) => {
11516
+ Tf.displayName = m0;
11517
+ var g0 = "DropdownMenuRadioGroup", v0 = f.forwardRef((e, t) => {
11519
11518
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11520
11519
  return /* @__PURE__ */ l.jsx(t0, { ...o, ...r, ref: t });
11521
11520
  });
11522
- Rf.displayName = v0;
11523
- var x0 = "DropdownMenuItemIndicator", Ef = f.forwardRef((e, t) => {
11521
+ v0.displayName = g0;
11522
+ var x0 = "DropdownMenuRadioItem", Rf = f.forwardRef((e, t) => {
11524
11523
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11525
11524
  return /* @__PURE__ */ l.jsx(n0, { ...o, ...r, ref: t });
11526
11525
  });
11527
- Ef.displayName = x0;
11528
- var b0 = "DropdownMenuSeparator", If = f.forwardRef((e, t) => {
11526
+ Rf.displayName = x0;
11527
+ var b0 = "DropdownMenuItemIndicator", Ef = f.forwardRef((e, t) => {
11529
11528
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11530
11529
  return /* @__PURE__ */ l.jsx(r0, { ...o, ...r, ref: t });
11531
11530
  });
11532
- If.displayName = b0;
11533
- var w0 = "DropdownMenuArrow", y0 = f.forwardRef(
11531
+ Ef.displayName = b0;
11532
+ var w0 = "DropdownMenuSeparator", If = f.forwardRef((e, t) => {
11533
+ const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11534
+ return /* @__PURE__ */ l.jsx(o0, { ...o, ...r, ref: t });
11535
+ });
11536
+ If.displayName = w0;
11537
+ var y0 = "DropdownMenuArrow", S0 = f.forwardRef(
11534
11538
  (e, t) => {
11535
11539
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11536
- return /* @__PURE__ */ l.jsx(o0, { ...o, ...r, ref: t });
11540
+ return /* @__PURE__ */ l.jsx(s0, { ...o, ...r, ref: t });
11537
11541
  }
11538
11542
  );
11539
- y0.displayName = w0;
11540
- var S0 = "DropdownMenuSubTrigger", Nf = f.forwardRef((e, t) => {
11543
+ S0.displayName = y0;
11544
+ var C0 = "DropdownMenuSubTrigger", Nf = f.forwardRef((e, t) => {
11541
11545
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11542
- return /* @__PURE__ */ l.jsx(s0, { ...o, ...r, ref: t });
11546
+ return /* @__PURE__ */ l.jsx(i0, { ...o, ...r, ref: t });
11543
11547
  });
11544
- Nf.displayName = S0;
11545
- var C0 = "DropdownMenuSubContent", jf = f.forwardRef((e, t) => {
11548
+ Nf.displayName = C0;
11549
+ var T0 = "DropdownMenuSubContent", jf = f.forwardRef((e, t) => {
11546
11550
  const { __scopeDropdownMenu: n, ...r } = e, o = ht(n);
11547
11551
  return /* @__PURE__ */ l.jsx(
11548
- i0,
11552
+ a0,
11549
11553
  {
11550
11554
  ...o,
11551
11555
  ...r,
@@ -11561,9 +11565,9 @@ var C0 = "DropdownMenuSubContent", jf = f.forwardRef((e, t) => {
11561
11565
  }
11562
11566
  );
11563
11567
  });
11564
- jf.displayName = C0;
11565
- var T0 = gf, R0 = xf, E0 = bf, Af = yf, kf = Sf, Pf = Cf, _f = Tf, Of = Rf, Mf = Ef, Df = If, Lf = Nf, Ff = jf;
11566
- const I0 = T0, N0 = R0, j0 = f.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
11568
+ jf.displayName = T0;
11569
+ var R0 = gf, E0 = xf, I0 = bf, Af = yf, kf = Sf, Pf = Cf, _f = Tf, Of = Rf, Mf = Ef, Df = If, Lf = Nf, Ff = jf;
11570
+ const N0 = R0, j0 = E0, A0 = f.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
11567
11571
  Lf,
11568
11572
  {
11569
11573
  ref: o,
@@ -11579,8 +11583,8 @@ const I0 = T0, N0 = R0, j0 = f.forwardRef(({ className: e, inset: t, children: n
11579
11583
  ]
11580
11584
  }
11581
11585
  ));
11582
- j0.displayName = Lf.displayName;
11583
- const A0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11586
+ A0.displayName = Lf.displayName;
11587
+ const k0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11584
11588
  Ff,
11585
11589
  {
11586
11590
  ref: n,
@@ -11591,8 +11595,8 @@ const A0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11591
11595
  ...t
11592
11596
  }
11593
11597
  ));
11594
- A0.displayName = Ff.displayName;
11595
- const Bf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(E0, { children: /* @__PURE__ */ l.jsx(
11598
+ k0.displayName = Ff.displayName;
11599
+ const Bf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(I0, { children: /* @__PURE__ */ l.jsx(
11596
11600
  Af,
11597
11601
  {
11598
11602
  ref: r,
@@ -11618,7 +11622,7 @@ const Ti = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
11618
11622
  }
11619
11623
  ));
11620
11624
  Ti.displayName = Pf.displayName;
11621
- const k0 = f.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
11625
+ const P0 = f.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ l.jsxs(
11622
11626
  _f,
11623
11627
  {
11624
11628
  ref: o,
@@ -11634,8 +11638,8 @@ const k0 = f.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
11634
11638
  ]
11635
11639
  }
11636
11640
  ));
11637
- k0.displayName = _f.displayName;
11638
- const P0 = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
11641
+ P0.displayName = _f.displayName;
11642
+ const _0 = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
11639
11643
  Of,
11640
11644
  {
11641
11645
  ref: r,
@@ -11650,8 +11654,8 @@ const P0 = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
11650
11654
  ]
11651
11655
  }
11652
11656
  ));
11653
- P0.displayName = Of.displayName;
11654
- const _0 = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ l.jsx(
11657
+ _0.displayName = Of.displayName;
11658
+ const O0 = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ l.jsx(
11655
11659
  kf,
11656
11660
  {
11657
11661
  ref: r,
@@ -11663,8 +11667,8 @@ const _0 = f.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
11663
11667
  ...n
11664
11668
  }
11665
11669
  ));
11666
- _0.displayName = kf.displayName;
11667
- const O0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11670
+ O0.displayName = kf.displayName;
11671
+ const M0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11668
11672
  Df,
11669
11673
  {
11670
11674
  ref: n,
@@ -11672,7 +11676,7 @@ const O0 = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
11672
11676
  ...t
11673
11677
  }
11674
11678
  ));
11675
- O0.displayName = Df.displayName;
11679
+ M0.displayName = Df.displayName;
11676
11680
  function xo({
11677
11681
  className: e = "",
11678
11682
  placeholder: t = "Type your message...",
@@ -11783,7 +11787,7 @@ function xo({
11783
11787
  if (J.length > go)
11784
11788
  return `Message too long (${J.length}/${go} characters)`;
11785
11789
  try {
11786
- return Hw(J), null;
11790
+ return $w(J), null;
11787
11791
  } catch (ie) {
11788
11792
  return (ie == null ? void 0 : ie.message) || "Invalid message";
11789
11793
  }
@@ -11926,7 +11930,7 @@ function xo({
11926
11930
  ))
11927
11931
  },
11928
11932
  itemContent: (J, ie) => /* @__PURE__ */ l.jsx(
11929
- Ew,
11933
+ Iw,
11930
11934
  {
11931
11935
  message: ie,
11932
11936
  messageIndex: J,
@@ -12015,8 +12019,8 @@ function xo({
12015
12019
  ] }),
12016
12020
  $ && /* @__PURE__ */ l.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: $ }),
12017
12021
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-end gap-2", children: [
12018
- (s || i) && /* @__PURE__ */ l.jsxs(I0, { children: [
12019
- /* @__PURE__ */ l.jsx(N0, { asChild: !0, children: /* @__PURE__ */ l.jsx(
12022
+ (s || i) && /* @__PURE__ */ l.jsxs(N0, { children: [
12023
+ /* @__PURE__ */ l.jsx(j0, { asChild: !0, children: /* @__PURE__ */ l.jsx(
12020
12024
  Ae,
12021
12025
  {
12022
12026
  type: "button",
@@ -12090,10 +12094,10 @@ kr.displayName = "Input";
12090
12094
  function Ri(e, [t, n]) {
12091
12095
  return Math.min(n, Math.max(t, e));
12092
12096
  }
12093
- function M0(e, t) {
12097
+ function D0(e, t) {
12094
12098
  return f.useReducer((n, r) => t[n][r] ?? n, e);
12095
12099
  }
12096
- var Aa = "ScrollArea", [Hf, uR] = $t(Aa), [D0, kt] = Hf(Aa), $f = f.forwardRef(
12100
+ var Aa = "ScrollArea", [Hf, dR] = $t(Aa), [L0, kt] = Hf(Aa), $f = f.forwardRef(
12097
12101
  (e, t) => {
12098
12102
  const {
12099
12103
  __scopeScrollArea: n,
@@ -12103,7 +12107,7 @@ var Aa = "ScrollArea", [Hf, uR] = $t(Aa), [D0, kt] = Hf(Aa), $f = f.forwardRef(
12103
12107
  ...i
12104
12108
  } = e, [a, c] = f.useState(null), [u, d] = f.useState(null), [h, p] = f.useState(null), [x, g] = f.useState(null), [v, m] = f.useState(null), [b, w] = f.useState(0), [y, E] = f.useState(0), [S, C] = f.useState(!1), [R, I] = f.useState(!1), A = Ce(t, (M) => c(M)), k = as(o);
12105
12109
  return /* @__PURE__ */ l.jsx(
12106
- D0,
12110
+ L0,
12107
12111
  {
12108
12112
  scope: n,
12109
12113
  type: r,
@@ -12191,11 +12195,11 @@ var Zt = "ScrollAreaScrollbar", ka = f.forwardRef(
12191
12195
  const { forceMount: n, ...r } = e, o = kt(Zt, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
12192
12196
  return f.useEffect(() => (a ? s(!0) : i(!0), () => {
12193
12197
  a ? s(!1) : i(!1);
12194
- }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ l.jsx(L0, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l.jsx(F0, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l.jsx(Wf, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l.jsx(Pa, { ...r, ref: t }) : null;
12198
+ }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ l.jsx(F0, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ l.jsx(B0, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ l.jsx(Wf, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ l.jsx(Pa, { ...r, ref: t }) : null;
12195
12199
  }
12196
12200
  );
12197
12201
  ka.displayName = Zt;
12198
- var L0 = f.forwardRef((e, t) => {
12202
+ var F0 = f.forwardRef((e, t) => {
12199
12203
  const { forceMount: n, ...r } = e, o = kt(Zt, e.__scopeScrollArea), [s, i] = f.useState(!1);
12200
12204
  return f.useEffect(() => {
12201
12205
  const a = o.scrollArea;
@@ -12218,8 +12222,8 @@ var L0 = f.forwardRef((e, t) => {
12218
12222
  ref: t
12219
12223
  }
12220
12224
  ) });
12221
- }), F0 = f.forwardRef((e, t) => {
12222
- const { forceMount: n, ...r } = e, o = kt(Zt, e.__scopeScrollArea), s = e.orientation === "horizontal", i = gs(() => c("SCROLL_END"), 100), [a, c] = M0("hidden", {
12225
+ }), B0 = f.forwardRef((e, t) => {
12226
+ const { forceMount: n, ...r } = e, o = kt(Zt, e.__scopeScrollArea), s = e.orientation === "horizontal", i = gs(() => c("SCROLL_END"), 100), [a, c] = D0("hidden", {
12223
12227
  hidden: {
12224
12228
  SCROLL: "scrolling"
12225
12229
  },
@@ -12292,10 +12296,10 @@ var L0 = f.forwardRef((e, t) => {
12292
12296
  onThumbPointerDown: (p) => i.current = p
12293
12297
  };
12294
12298
  function h(p, x) {
12295
- return W0(p, i.current, a, x);
12299
+ return V0(p, i.current, a, x);
12296
12300
  }
12297
12301
  return n === "horizontal" ? /* @__PURE__ */ l.jsx(
12298
- B0,
12302
+ H0,
12299
12303
  {
12300
12304
  ...d,
12301
12305
  ref: t,
@@ -12313,7 +12317,7 @@ var L0 = f.forwardRef((e, t) => {
12313
12317
  }
12314
12318
  }
12315
12319
  ) : n === "vertical" ? /* @__PURE__ */ l.jsx(
12316
- H0,
12320
+ $0,
12317
12321
  {
12318
12322
  ...d,
12319
12323
  ref: t,
@@ -12331,7 +12335,7 @@ var L0 = f.forwardRef((e, t) => {
12331
12335
  }
12332
12336
  }
12333
12337
  ) : null;
12334
- }), B0 = f.forwardRef((e, t) => {
12338
+ }), H0 = f.forwardRef((e, t) => {
12335
12339
  const { sizes: n, onSizesChange: r, ...o } = e, s = kt(Zt, e.__scopeScrollArea), [i, a] = f.useState(), c = f.useRef(null), u = Ce(t, c, s.onScrollbarXChange);
12336
12340
  return f.useEffect(() => {
12337
12341
  c.current && a(getComputedStyle(c.current));
@@ -12370,7 +12374,7 @@ var L0 = f.forwardRef((e, t) => {
12370
12374
  }
12371
12375
  }
12372
12376
  );
12373
- }), H0 = f.forwardRef((e, t) => {
12377
+ }), $0 = f.forwardRef((e, t) => {
12374
12378
  const { sizes: n, onSizesChange: r, ...o } = e, s = kt(Zt, e.__scopeScrollArea), [i, a] = f.useState(), c = f.useRef(null), u = Ce(t, c, s.onScrollbarYChange);
12375
12379
  return f.useEffect(() => {
12376
12380
  c.current && a(getComputedStyle(c.current));
@@ -12410,7 +12414,7 @@ var L0 = f.forwardRef((e, t) => {
12410
12414
  }
12411
12415
  }
12412
12416
  );
12413
- }), [$0, Vf] = Hf(Zt), Gf = f.forwardRef((e, t) => {
12417
+ }), [z0, Vf] = Hf(Zt), Gf = f.forwardRef((e, t) => {
12414
12418
  const {
12415
12419
  __scopeScrollArea: n,
12416
12420
  sizes: r,
@@ -12437,7 +12441,7 @@ var L0 = f.forwardRef((e, t) => {
12437
12441
  };
12438
12442
  return document.addEventListener("wheel", A, { passive: !1 }), () => document.removeEventListener("wheel", A, { passive: !1 });
12439
12443
  }, [y, g, E, S]), f.useEffect(C, [r, C]), Qn(g, R), Qn(x.content, R), /* @__PURE__ */ l.jsx(
12440
- $0,
12444
+ z0,
12441
12445
  {
12442
12446
  scope: n,
12443
12447
  scrollbar: g,
@@ -12467,9 +12471,9 @@ var L0 = f.forwardRef((e, t) => {
12467
12471
  }), Lo = "ScrollAreaThumb", Kf = f.forwardRef(
12468
12472
  (e, t) => {
12469
12473
  const { forceMount: n, ...r } = e, o = Vf(Lo, e.__scopeScrollArea);
12470
- return /* @__PURE__ */ l.jsx(vt, { present: n || o.hasThumb, children: /* @__PURE__ */ l.jsx(z0, { ref: t, ...r }) });
12474
+ return /* @__PURE__ */ l.jsx(vt, { present: n || o.hasThumb, children: /* @__PURE__ */ l.jsx(U0, { ref: t, ...r }) });
12471
12475
  }
12472
- ), z0 = f.forwardRef(
12476
+ ), U0 = f.forwardRef(
12473
12477
  (e, t) => {
12474
12478
  const { __scopeScrollArea: n, style: r, ...o } = e, s = kt(Lo, n), i = Vf(Lo, n), { onThumbPositionChange: a } = i, c = Ce(
12475
12479
  t,
@@ -12482,7 +12486,7 @@ var L0 = f.forwardRef((e, t) => {
12482
12486
  if (h) {
12483
12487
  const p = () => {
12484
12488
  if (d(), !u.current) {
12485
- const x = V0(h, a);
12489
+ const x = G0(h, a);
12486
12490
  u.current = x, a();
12487
12491
  }
12488
12492
  };
@@ -12512,11 +12516,11 @@ Kf.displayName = Lo;
12512
12516
  var _a = "ScrollAreaCorner", Yf = f.forwardRef(
12513
12517
  (e, t) => {
12514
12518
  const n = kt(_a, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
12515
- return n.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(U0, { ...e, ref: t }) : null;
12519
+ return n.type !== "scroll" && r ? /* @__PURE__ */ l.jsx(W0, { ...e, ref: t }) : null;
12516
12520
  }
12517
12521
  );
12518
12522
  Yf.displayName = _a;
12519
- var U0 = f.forwardRef((e, t) => {
12523
+ var W0 = f.forwardRef((e, t) => {
12520
12524
  const { __scopeScrollArea: n, ...r } = e, o = kt(_a, n), [s, i] = f.useState(0), [a, c] = f.useState(0), u = !!(s && a);
12521
12525
  return Qn(o.scrollbarX, () => {
12522
12526
  var h;
@@ -12554,7 +12558,7 @@ function ms(e) {
12554
12558
  const t = qf(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
12555
12559
  return Math.max(r, 18);
12556
12560
  }
12557
- function W0(e, t, n, r = "ltr") {
12561
+ function V0(e, t, n, r = "ltr") {
12558
12562
  const o = ms(n), s = o / 2, i = t || s, a = o - i, c = n.scrollbar.paddingStart + i, u = n.scrollbar.size - n.scrollbar.paddingEnd - a, d = n.content - n.viewport, h = r === "ltr" ? [0, d] : [d * -1, 0];
12559
12563
  return Xf([c, u], h)(e);
12560
12564
  }
@@ -12572,7 +12576,7 @@ function Xf(e, t) {
12572
12576
  function Jf(e, t) {
12573
12577
  return e > 0 && e < t;
12574
12578
  }
12575
- var V0 = (e, t = () => {
12579
+ var G0 = (e, t = () => {
12576
12580
  }) => {
12577
12581
  let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
12578
12582
  return function o() {
@@ -12600,7 +12604,7 @@ function Qn(e, t) {
12600
12604
  }
12601
12605
  }, [e, n]);
12602
12606
  }
12603
- var Zf = $f, G0 = Uf, K0 = Yf;
12607
+ var Zf = $f, K0 = Uf, Y0 = Yf;
12604
12608
  const Qf = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
12605
12609
  Zf,
12606
12610
  {
@@ -12608,9 +12612,9 @@ const Qf = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
12608
12612
  className: D("relative overflow-hidden", e),
12609
12613
  ...n,
12610
12614
  children: [
12611
- /* @__PURE__ */ l.jsx(G0, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
12615
+ /* @__PURE__ */ l.jsx(K0, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
12612
12616
  /* @__PURE__ */ l.jsx(eh, {}),
12613
- /* @__PURE__ */ l.jsx(K0, {})
12617
+ /* @__PURE__ */ l.jsx(Y0, {})
12614
12618
  ]
12615
12619
  }
12616
12620
  ));
@@ -12765,7 +12769,7 @@ function Ei({
12765
12769
  ] });
12766
12770
  }
12767
12771
  const th = vc(null);
12768
- function dR({ children: e, basePath: t = "/chat" }) {
12772
+ function fR({ children: e, basePath: t = "/chat" }) {
12769
12773
  const n = wn(() => t ? t === "/" ? "" : t.endsWith("/") ? t.slice(0, -1) : t : "/chat", [t]), r = {
12770
12774
  basePath: n,
12771
12775
  buildThreadPath: (o) => `${n}/${o}`,
@@ -12773,7 +12777,7 @@ function dR({ children: e, basePath: t = "/chat" }) {
12773
12777
  };
12774
12778
  return /* @__PURE__ */ l.jsx(th.Provider, { value: r, children: e });
12775
12779
  }
12776
- function fR() {
12780
+ function hR() {
12777
12781
  const e = xc(th);
12778
12782
  return e || {
12779
12783
  basePath: "/chat",
@@ -12785,7 +12789,7 @@ function qn(e) {
12785
12789
  if (!(typeof globalThis > "u"))
12786
12790
  return globalThis[e];
12787
12791
  }
12788
- function Y0(e) {
12792
+ function q0(e) {
12789
12793
  if (typeof e != "string") return;
12790
12794
  const t = e.trim();
12791
12795
  if (t)
@@ -12798,7 +12802,7 @@ function nh() {
12798
12802
  qn("__CHAT_API_URL__")
12799
12803
  ];
12800
12804
  for (const t of e) {
12801
- const n = Y0(t);
12805
+ const n = q0(t);
12802
12806
  if (n) return n;
12803
12807
  }
12804
12808
  }
@@ -12812,12 +12816,12 @@ function rh() {
12812
12816
  if (typeof t == "string" && t.trim())
12813
12817
  return t.trim();
12814
12818
  }
12815
- function q0() {
12819
+ function X0() {
12816
12820
  const e = {}, t = nh(), n = rh();
12817
12821
  return t && (e.baseUrl = t), n && (e.apiKey = n), e;
12818
12822
  }
12819
- function X0() {
12820
- const e = q0(), t = En.getAuthToken(), n = nh();
12823
+ function J0() {
12824
+ const e = X0(), t = En.getAuthToken(), n = nh();
12821
12825
  return {
12822
12826
  apiBaseUrl: e.baseUrl || En.baseUrl || n || "http://localhost:8000",
12823
12827
  apiKey: t || e.apiKey || rh() || "",
@@ -12835,7 +12839,7 @@ function X0() {
12835
12839
  };
12836
12840
  }
12837
12841
  const oh = "chat-settings";
12838
- function J0() {
12842
+ function Z0() {
12839
12843
  try {
12840
12844
  const e = localStorage.getItem(oh);
12841
12845
  return e ? JSON.parse(e) : {};
@@ -12843,15 +12847,15 @@ function J0() {
12843
12847
  return console.error("Failed to parse stored settings:", e), {};
12844
12848
  }
12845
12849
  }
12846
- function Z0(e) {
12850
+ function Q0(e) {
12847
12851
  try {
12848
12852
  localStorage.setItem(oh, JSON.stringify(e)), e.apiKey && En.setAuthToken(e.apiKey);
12849
12853
  } catch (t) {
12850
12854
  console.error("Failed to save settings:", t);
12851
12855
  }
12852
12856
  }
12853
- function hR() {
12854
- const e = X0(), t = J0(), n = En.getAuthToken();
12857
+ function pR() {
12858
+ const e = J0(), t = Z0(), n = En.getAuthToken();
12855
12859
  return {
12856
12860
  ...e,
12857
12861
  ...t,
@@ -12861,11 +12865,11 @@ function hR() {
12861
12865
  apiBaseUrl: En.baseUrl || t.apiBaseUrl || e.apiBaseUrl
12862
12866
  };
12863
12867
  }
12864
- function pR(e) {
12865
- e.apiKey && En.setAuthToken(e.apiKey), Z0(e);
12868
+ function mR(e) {
12869
+ e.apiKey && En.setAuthToken(e.apiKey), Q0(e);
12866
12870
  }
12867
12871
  const Js = 768;
12868
- function Q0() {
12872
+ function eC() {
12869
12873
  const [e, t] = f.useState(void 0);
12870
12874
  return f.useEffect(() => {
12871
12875
  const n = window.matchMedia(`(max-width: ${Js - 1}px)`), r = () => {
@@ -12874,8 +12878,8 @@ function Q0() {
12874
12878
  return n.addEventListener("change", r), t(window.innerWidth < Js), () => n.removeEventListener("change", r);
12875
12879
  }, []), !!e;
12876
12880
  }
12877
- var eC = "Separator", hc = "horizontal", tC = ["horizontal", "vertical"], sh = f.forwardRef((e, t) => {
12878
- const { decorative: n, orientation: r = hc, ...o } = e, s = nC(r) ? r : hc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
12881
+ var tC = "Separator", hc = "horizontal", nC = ["horizontal", "vertical"], sh = f.forwardRef((e, t) => {
12882
+ const { decorative: n, orientation: r = hc, ...o } = e, s = rC(r) ? r : hc, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
12879
12883
  return /* @__PURE__ */ l.jsx(
12880
12884
  me.div,
12881
12885
  {
@@ -12886,9 +12890,9 @@ var eC = "Separator", hc = "horizontal", tC = ["horizontal", "vertical"], sh = f
12886
12890
  }
12887
12891
  );
12888
12892
  });
12889
- sh.displayName = eC;
12890
- function nC(e) {
12891
- return tC.includes(e);
12893
+ sh.displayName = tC;
12894
+ function rC(e) {
12895
+ return nC.includes(e);
12892
12896
  }
12893
12897
  var ih = sh;
12894
12898
  const Oa = f.forwardRef(
@@ -12908,7 +12912,7 @@ const Oa = f.forwardRef(
12908
12912
  )
12909
12913
  );
12910
12914
  Oa.displayName = ih.displayName;
12911
- const ah = ld, rC = ww, oC = cd, lh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
12915
+ const ah = ld, oC = yw, sC = cd, lh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
12912
12916
  os,
12913
12917
  {
12914
12918
  className: D(
@@ -12920,7 +12924,7 @@ const ah = ld, rC = ww, oC = cd, lh = f.forwardRef(({ className: e, ...t }, n) =
12920
12924
  }
12921
12925
  ));
12922
12926
  lh.displayName = os.displayName;
12923
- const sC = _r(
12927
+ const iC = _r(
12924
12928
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
12925
12929
  {
12926
12930
  variants: {
@@ -12935,13 +12939,13 @@ const sC = _r(
12935
12939
  side: "right"
12936
12940
  }
12937
12941
  }
12938
- ), Ma = f.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(oC, { children: [
12942
+ ), Ma = f.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ l.jsxs(sC, { children: [
12939
12943
  /* @__PURE__ */ l.jsx(lh, {}),
12940
12944
  /* @__PURE__ */ l.jsxs(
12941
12945
  ss,
12942
12946
  {
12943
12947
  ref: o,
12944
- className: D(sC({ side: e }), t),
12948
+ className: D(iC({ side: e }), t),
12945
12949
  ...r,
12946
12950
  children: [
12947
12951
  n,
@@ -13010,7 +13014,7 @@ var fh = Object.freeze({
13010
13014
  clip: "rect(0, 0, 0, 0)",
13011
13015
  whiteSpace: "nowrap",
13012
13016
  wordWrap: "normal"
13013
- }), iC = "VisuallyHidden", hh = f.forwardRef(
13017
+ }), aC = "VisuallyHidden", hh = f.forwardRef(
13014
13018
  (e, t) => /* @__PURE__ */ l.jsx(
13015
13019
  me.span,
13016
13020
  {
@@ -13020,13 +13024,13 @@ var fh = Object.freeze({
13020
13024
  }
13021
13025
  )
13022
13026
  );
13023
- hh.displayName = iC;
13024
- var aC = hh, [vs, mR] = $t("Tooltip", [
13027
+ hh.displayName = aC;
13028
+ var lC = hh, [vs, gR] = $t("Tooltip", [
13025
13029
  lr
13026
- ]), xs = lr(), ph = "TooltipProvider", lC = 700, Ii = "tooltip.open", [cC, Da] = vs(ph), mh = (e) => {
13030
+ ]), xs = lr(), ph = "TooltipProvider", cC = 700, Ii = "tooltip.open", [uC, Da] = vs(ph), mh = (e) => {
13027
13031
  const {
13028
13032
  __scopeTooltip: t,
13029
- delayDuration: n = lC,
13033
+ delayDuration: n = cC,
13030
13034
  skipDelayDuration: r = 300,
13031
13035
  disableHoverableContent: o = !1,
13032
13036
  children: s
@@ -13035,7 +13039,7 @@ var aC = hh, [vs, mR] = $t("Tooltip", [
13035
13039
  const u = c.current;
13036
13040
  return () => window.clearTimeout(u);
13037
13041
  }, []), /* @__PURE__ */ l.jsx(
13038
- cC,
13042
+ uC,
13039
13043
  {
13040
13044
  scope: t,
13041
13045
  isOpenDelayedRef: i,
@@ -13059,7 +13063,7 @@ var aC = hh, [vs, mR] = $t("Tooltip", [
13059
13063
  );
13060
13064
  };
13061
13065
  mh.displayName = ph;
13062
- var Pr = "Tooltip", [uC, bs] = vs(Pr), gh = (e) => {
13066
+ var Pr = "Tooltip", [dC, bs] = vs(Pr), gh = (e) => {
13063
13067
  const {
13064
13068
  __scopeTooltip: t,
13065
13069
  children: n,
@@ -13087,7 +13091,7 @@ var Pr = "Tooltip", [uC, bs] = vs(Pr), gh = (e) => {
13087
13091
  return f.useEffect(() => () => {
13088
13092
  x.current && (window.clearTimeout(x.current), x.current = 0);
13089
13093
  }, []), /* @__PURE__ */ l.jsx(ba, { ...u, children: /* @__PURE__ */ l.jsx(
13090
- uC,
13094
+ dC,
13091
13095
  {
13092
13096
  scope: t,
13093
13097
  contentId: p,
@@ -13138,19 +13142,19 @@ var Ni = "TooltipTrigger", vh = f.forwardRef(
13138
13142
  }
13139
13143
  );
13140
13144
  vh.displayName = Ni;
13141
- var dC = "TooltipPortal", [gR, fC] = vs(dC, {
13145
+ var fC = "TooltipPortal", [vR, hC] = vs(fC, {
13142
13146
  forceMount: void 0
13143
13147
  }), er = "TooltipContent", xh = f.forwardRef(
13144
13148
  (e, t) => {
13145
- const n = fC(er, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = bs(er, e.__scopeTooltip);
13146
- return /* @__PURE__ */ l.jsx(vt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l.jsx(bh, { side: o, ...s, ref: t }) : /* @__PURE__ */ l.jsx(hC, { side: o, ...s, ref: t }) });
13149
+ const n = hC(er, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = bs(er, e.__scopeTooltip);
13150
+ return /* @__PURE__ */ l.jsx(vt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l.jsx(bh, { side: o, ...s, ref: t }) : /* @__PURE__ */ l.jsx(pC, { side: o, ...s, ref: t }) });
13147
13151
  }
13148
- ), hC = f.forwardRef((e, t) => {
13152
+ ), pC = f.forwardRef((e, t) => {
13149
13153
  const n = bs(er, e.__scopeTooltip), r = Da(er, e.__scopeTooltip), o = f.useRef(null), s = Ce(t, o), [i, a] = f.useState(null), { trigger: c, onClose: u } = n, d = o.current, { onPointerInTransitChange: h } = r, p = f.useCallback(() => {
13150
13154
  a(null), h(!1);
13151
13155
  }, [h]), x = f.useCallback(
13152
13156
  (g, v) => {
13153
- const m = g.currentTarget, b = { x: g.clientX, y: g.clientY }, w = xC(b, m.getBoundingClientRect()), y = bC(b, w), E = wC(v.getBoundingClientRect()), S = SC([...y, ...E]);
13157
+ const m = g.currentTarget, b = { x: g.clientX, y: g.clientY }, w = bC(b, m.getBoundingClientRect()), y = wC(b, w), E = yC(v.getBoundingClientRect()), S = CC([...y, ...E]);
13154
13158
  a(S), h(!0);
13155
13159
  },
13156
13160
  [h]
@@ -13165,13 +13169,13 @@ var dC = "TooltipPortal", [gR, fC] = vs(dC, {
13165
13169
  }, [c, d, x, p]), f.useEffect(() => {
13166
13170
  if (i) {
13167
13171
  const g = (v) => {
13168
- const m = v.target, b = { x: v.clientX, y: v.clientY }, w = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), y = !yC(b, i);
13172
+ const m = v.target, b = { x: v.clientX, y: v.clientY }, w = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), y = !SC(b, i);
13169
13173
  w ? p() : y && (p(), u());
13170
13174
  };
13171
13175
  return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
13172
13176
  }
13173
13177
  }, [c, d, i, u, p]), /* @__PURE__ */ l.jsx(bh, { ...e, ref: s });
13174
- }), [pC, mC] = vs(Pr, { isInside: !1 }), gC = am("TooltipContent"), bh = f.forwardRef(
13178
+ }), [mC, gC] = vs(Pr, { isInside: !1 }), vC = am("TooltipContent"), bh = f.forwardRef(
13175
13179
  (e, t) => {
13176
13180
  const {
13177
13181
  __scopeTooltip: n,
@@ -13214,8 +13218,8 @@ var dC = "TooltipPortal", [gR, fC] = vs(dC, {
13214
13218
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
13215
13219
  },
13216
13220
  children: [
13217
- /* @__PURE__ */ l.jsx(gC, { children: r }),
13218
- /* @__PURE__ */ l.jsx(pC, { scope: n, isInside: !0, children: /* @__PURE__ */ l.jsx(aC, { id: c.contentId, role: "tooltip", children: o || r }) })
13221
+ /* @__PURE__ */ l.jsx(vC, { children: r }),
13222
+ /* @__PURE__ */ l.jsx(mC, { scope: n, isInside: !0, children: /* @__PURE__ */ l.jsx(lC, { id: c.contentId, role: "tooltip", children: o || r }) })
13219
13223
  ]
13220
13224
  }
13221
13225
  )
@@ -13224,17 +13228,17 @@ var dC = "TooltipPortal", [gR, fC] = vs(dC, {
13224
13228
  }
13225
13229
  );
13226
13230
  xh.displayName = er;
13227
- var wh = "TooltipArrow", vC = f.forwardRef(
13231
+ var wh = "TooltipArrow", xC = f.forwardRef(
13228
13232
  (e, t) => {
13229
13233
  const { __scopeTooltip: n, ...r } = e, o = xs(n);
13230
- return mC(
13234
+ return gC(
13231
13235
  wh,
13232
13236
  n
13233
13237
  ).isInside ? null : /* @__PURE__ */ l.jsx(Sa, { ...o, ...r, ref: t });
13234
13238
  }
13235
13239
  );
13236
- vC.displayName = wh;
13237
- function xC(e, t) {
13240
+ xC.displayName = wh;
13241
+ function bC(e, t) {
13238
13242
  const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
13239
13243
  switch (Math.min(n, r, o, s)) {
13240
13244
  case s:
@@ -13249,7 +13253,7 @@ function xC(e, t) {
13249
13253
  throw new Error("unreachable");
13250
13254
  }
13251
13255
  }
13252
- function bC(e, t, n = 5) {
13256
+ function wC(e, t, n = 5) {
13253
13257
  const r = [];
13254
13258
  switch (t) {
13255
13259
  case "top":
@@ -13279,7 +13283,7 @@ function bC(e, t, n = 5) {
13279
13283
  }
13280
13284
  return r;
13281
13285
  }
13282
- function wC(e) {
13286
+ function yC(e) {
13283
13287
  const { top: t, right: n, bottom: r, left: o } = e;
13284
13288
  return [
13285
13289
  { x: o, y: t },
@@ -13288,7 +13292,7 @@ function wC(e) {
13288
13292
  { x: o, y: r }
13289
13293
  ];
13290
13294
  }
13291
- function yC(e, t) {
13295
+ function SC(e, t) {
13292
13296
  const { x: n, y: r } = e;
13293
13297
  let o = !1;
13294
13298
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -13297,11 +13301,11 @@ function yC(e, t) {
13297
13301
  }
13298
13302
  return o;
13299
13303
  }
13300
- function SC(e) {
13304
+ function CC(e) {
13301
13305
  const t = e.slice();
13302
- return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), CC(t);
13306
+ return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), TC(t);
13303
13307
  }
13304
- function CC(e) {
13308
+ function TC(e) {
13305
13309
  if (e.length <= 1) return e.slice();
13306
13310
  const t = [];
13307
13311
  for (let r = 0; r < e.length; r++) {
@@ -13326,8 +13330,8 @@ function CC(e) {
13326
13330
  }
13327
13331
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
13328
13332
  }
13329
- var TC = mh, RC = gh, EC = vh, yh = xh;
13330
- const IC = TC, NC = RC, jC = EC, Sh = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(
13333
+ var RC = mh, EC = gh, IC = vh, yh = xh;
13334
+ const NC = RC, jC = EC, AC = IC, Sh = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ l.jsx(
13331
13335
  yh,
13332
13336
  {
13333
13337
  ref: r,
@@ -13340,7 +13344,7 @@ const IC = TC, NC = RC, jC = EC, Sh = f.forwardRef(({ className: e, sideOffset:
13340
13344
  }
13341
13345
  ));
13342
13346
  Sh.displayName = yh.displayName;
13343
- const AC = "sidebar:state", kC = 60 * 60 * 24 * 7, PC = "16rem", _C = "18rem", OC = "3rem", MC = "b", Ch = f.createContext(null);
13347
+ const kC = "sidebar:state", PC = 60 * 60 * 24 * 7, _C = "16rem", OC = "18rem", MC = "3rem", DC = "b", Ch = f.createContext(null);
13344
13348
  function ws() {
13345
13349
  const e = f.useContext(Ch);
13346
13350
  if (!e)
@@ -13357,16 +13361,16 @@ const Th = f.forwardRef(
13357
13361
  children: s,
13358
13362
  ...i
13359
13363
  }, a) => {
13360
- const c = Q0(), [u, d] = f.useState(!1), [h, p] = f.useState(e), x = t ?? h, g = f.useCallback(
13364
+ const c = eC(), [u, d] = f.useState(!1), [h, p] = f.useState(e), x = t ?? h, g = f.useCallback(
13361
13365
  (w) => {
13362
13366
  const y = typeof w == "function" ? w(x) : w;
13363
- n ? n(y) : p(y), document.cookie = `${AC}=${y}; path=/; max-age=${kC}`;
13367
+ n ? n(y) : p(y), document.cookie = `${kC}=${y}; path=/; max-age=${PC}`;
13364
13368
  },
13365
13369
  [n, x]
13366
13370
  ), v = f.useCallback(() => c ? d((w) => !w) : g((w) => !w), [c, g, d]);
13367
13371
  f.useEffect(() => {
13368
13372
  const w = (y) => {
13369
- y.key === MC && (y.metaKey || y.ctrlKey) && (y.preventDefault(), v());
13373
+ y.key === DC && (y.metaKey || y.ctrlKey) && (y.preventDefault(), v());
13370
13374
  };
13371
13375
  return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
13372
13376
  }, [v]);
@@ -13382,12 +13386,12 @@ const Th = f.forwardRef(
13382
13386
  }),
13383
13387
  [m, x, g, c, u, d, v]
13384
13388
  );
13385
- return /* @__PURE__ */ l.jsx(Ch.Provider, { value: b, children: /* @__PURE__ */ l.jsx(IC, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
13389
+ return /* @__PURE__ */ l.jsx(Ch.Provider, { value: b, children: /* @__PURE__ */ l.jsx(NC, { delayDuration: 0, children: /* @__PURE__ */ l.jsx(
13386
13390
  "div",
13387
13391
  {
13388
13392
  style: {
13389
- "--sidebar-width": PC,
13390
- "--sidebar-width-icon": OC,
13393
+ "--sidebar-width": _C,
13394
+ "--sidebar-width-icon": MC,
13391
13395
  ...o
13392
13396
  },
13393
13397
  className: D(
@@ -13430,7 +13434,7 @@ const Rh = f.forwardRef(
13430
13434
  "data-mobile": "true",
13431
13435
  className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
13432
13436
  style: {
13433
- "--sidebar-width": _C
13437
+ "--sidebar-width": OC
13434
13438
  },
13435
13439
  side: e,
13436
13440
  children: /* @__PURE__ */ l.jsx("div", { className: "flex h-full w-full flex-col", children: o })
@@ -13505,7 +13509,7 @@ const Eh = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
13505
13509
  );
13506
13510
  });
13507
13511
  Eh.displayName = "SidebarTrigger";
13508
- const DC = f.forwardRef(({ className: e, ...t }, n) => {
13512
+ const LC = f.forwardRef(({ className: e, ...t }, n) => {
13509
13513
  const { toggleSidebar: r } = ws();
13510
13514
  return /* @__PURE__ */ l.jsx(
13511
13515
  "button",
@@ -13529,7 +13533,7 @@ const DC = f.forwardRef(({ className: e, ...t }, n) => {
13529
13533
  }
13530
13534
  );
13531
13535
  });
13532
- DC.displayName = "SidebarRail";
13536
+ LC.displayName = "SidebarRail";
13533
13537
  const Ih = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13534
13538
  "main",
13535
13539
  {
@@ -13543,7 +13547,7 @@ const Ih = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13543
13547
  }
13544
13548
  ));
13545
13549
  Ih.displayName = "SidebarInset";
13546
- const LC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13550
+ const FC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13547
13551
  kr,
13548
13552
  {
13549
13553
  ref: n,
@@ -13555,7 +13559,7 @@ const LC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13555
13559
  ...t
13556
13560
  }
13557
13561
  ));
13558
- LC.displayName = "SidebarInput";
13562
+ FC.displayName = "SidebarInput";
13559
13563
  const Nh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13560
13564
  "div",
13561
13565
  {
@@ -13566,7 +13570,7 @@ const Nh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13566
13570
  }
13567
13571
  ));
13568
13572
  Nh.displayName = "SidebarHeader";
13569
- const FC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13573
+ const BC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13570
13574
  "div",
13571
13575
  {
13572
13576
  ref: n,
@@ -13575,8 +13579,8 @@ const FC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13575
13579
  ...t
13576
13580
  }
13577
13581
  ));
13578
- FC.displayName = "SidebarFooter";
13579
- const BC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13582
+ BC.displayName = "SidebarFooter";
13583
+ const HC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13580
13584
  Oa,
13581
13585
  {
13582
13586
  ref: n,
@@ -13585,7 +13589,7 @@ const BC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13585
13589
  ...t
13586
13590
  }
13587
13591
  ));
13588
- BC.displayName = "SidebarSeparator";
13592
+ HC.displayName = "SidebarSeparator";
13589
13593
  const jh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13590
13594
  "div",
13591
13595
  {
@@ -13626,7 +13630,7 @@ const kh = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
13626
13630
  );
13627
13631
  });
13628
13632
  kh.displayName = "SidebarGroupLabel";
13629
- const HC = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
13633
+ const $C = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
13630
13634
  const o = t ? tr : "button";
13631
13635
  return /* @__PURE__ */ l.jsx(
13632
13636
  o,
@@ -13644,7 +13648,7 @@ const HC = f.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => {
13644
13648
  }
13645
13649
  );
13646
13650
  });
13647
- HC.displayName = "SidebarGroupAction";
13651
+ $C.displayName = "SidebarGroupAction";
13648
13652
  const Ph = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13649
13653
  "div",
13650
13654
  {
@@ -13675,7 +13679,7 @@ const Oh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13675
13679
  }
13676
13680
  ));
13677
13681
  Oh.displayName = "SidebarMenuItem";
13678
- const $C = _r(
13682
+ const zC = _r(
13679
13683
  "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
13680
13684
  {
13681
13685
  variants: {
@@ -13711,14 +13715,14 @@ const $C = _r(
13711
13715
  "data-sidebar": "menu-button",
13712
13716
  "data-size": r,
13713
13717
  "data-active": t,
13714
- className: D($C({ variant: n, size: r }), s),
13718
+ className: D(zC({ variant: n, size: r }), s),
13715
13719
  ...i
13716
13720
  }
13717
13721
  );
13718
13722
  return o ? (typeof o == "string" && (o = {
13719
13723
  children: o
13720
- }), /* @__PURE__ */ l.jsxs(NC, { children: [
13721
- /* @__PURE__ */ l.jsx(jC, { asChild: !0, children: h }),
13724
+ }), /* @__PURE__ */ l.jsxs(jC, { children: [
13725
+ /* @__PURE__ */ l.jsx(AC, { asChild: !0, children: h }),
13722
13726
  /* @__PURE__ */ l.jsx(
13723
13727
  Sh,
13724
13728
  {
@@ -13732,7 +13736,7 @@ const $C = _r(
13732
13736
  }
13733
13737
  );
13734
13738
  Mh.displayName = "SidebarMenuButton";
13735
- const zC = f.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => {
13739
+ const UC = f.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => {
13736
13740
  const s = t ? tr : "button";
13737
13741
  return /* @__PURE__ */ l.jsx(
13738
13742
  s,
@@ -13754,8 +13758,8 @@ const zC = f.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
13754
13758
  }
13755
13759
  );
13756
13760
  });
13757
- zC.displayName = "SidebarMenuAction";
13758
- const UC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13761
+ UC.displayName = "SidebarMenuAction";
13762
+ const WC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13759
13763
  "div",
13760
13764
  {
13761
13765
  ref: n,
@@ -13772,8 +13776,8 @@ const UC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13772
13776
  ...t
13773
13777
  }
13774
13778
  ));
13775
- UC.displayName = "SidebarMenuBadge";
13776
- const WC = f.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
13779
+ WC.displayName = "SidebarMenuBadge";
13780
+ const VC = f.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
13777
13781
  const o = f.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
13778
13782
  return /* @__PURE__ */ l.jsxs(
13779
13783
  "div",
@@ -13804,8 +13808,8 @@ const WC = f.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
13804
13808
  }
13805
13809
  );
13806
13810
  });
13807
- WC.displayName = "SidebarMenuSkeleton";
13808
- const VC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13811
+ VC.displayName = "SidebarMenuSkeleton";
13812
+ const GC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13809
13813
  "ul",
13810
13814
  {
13811
13815
  ref: n,
@@ -13818,10 +13822,10 @@ const VC = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13818
13822
  ...t
13819
13823
  }
13820
13824
  ));
13821
- VC.displayName = "SidebarMenuSub";
13822
- const GC = f.forwardRef(({ ...e }, t) => /* @__PURE__ */ l.jsx("li", { ref: t, ...e }));
13823
- GC.displayName = "SidebarMenuSubItem";
13824
- const KC = f.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, s) => {
13825
+ GC.displayName = "SidebarMenuSub";
13826
+ const KC = f.forwardRef(({ ...e }, t) => /* @__PURE__ */ l.jsx("li", { ref: t, ...e }));
13827
+ KC.displayName = "SidebarMenuSubItem";
13828
+ const YC = f.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, s) => {
13825
13829
  const i = e ? tr : "a";
13826
13830
  return /* @__PURE__ */ l.jsx(
13827
13831
  i,
@@ -13842,8 +13846,8 @@ const KC = f.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
13842
13846
  }
13843
13847
  );
13844
13848
  });
13845
- KC.displayName = "SidebarMenuSubButton";
13846
- function vR({
13849
+ YC.displayName = "SidebarMenuSubButton";
13850
+ function xR({
13847
13851
  header: e,
13848
13852
  sidebarTitle: t = "Threads",
13849
13853
  showThreads: n = !0,
@@ -13878,7 +13882,7 @@ function vR({
13878
13882
  ] })
13879
13883
  ] }) });
13880
13884
  }
13881
- var YC = "Label", Dh = f.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
13885
+ var qC = "Label", Dh = f.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
13882
13886
  me.label,
13883
13887
  {
13884
13888
  ...e,
@@ -13889,15 +13893,15 @@ var YC = "Label", Dh = f.forwardRef((e, t) => /* @__PURE__ */ l.jsx(
13889
13893
  }
13890
13894
  }
13891
13895
  ));
13892
- Dh.displayName = YC;
13896
+ Dh.displayName = qC;
13893
13897
  var Lh = Dh;
13894
- const qC = _r(
13898
+ const XC = _r(
13895
13899
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
13896
13900
  ), Et = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
13897
13901
  Lh,
13898
13902
  {
13899
13903
  ref: n,
13900
- className: D(qC(), e),
13904
+ className: D(XC(), e),
13901
13905
  ...t
13902
13906
  }
13903
13907
  ));
@@ -13906,7 +13910,7 @@ function Fh(e) {
13906
13910
  const t = f.useRef({ value: e, previous: e });
13907
13911
  return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
13908
13912
  }
13909
- var ys = "Switch", [XC, xR] = $t(ys), [JC, ZC] = XC(ys), Bh = f.forwardRef(
13913
+ var ys = "Switch", [JC, bR] = $t(ys), [ZC, QC] = JC(ys), Bh = f.forwardRef(
13910
13914
  (e, t) => {
13911
13915
  const {
13912
13916
  __scopeSwitch: n,
@@ -13925,7 +13929,7 @@ var ys = "Switch", [XC, xR] = $t(ys), [JC, ZC] = XC(ys), Bh = f.forwardRef(
13925
13929
  onChange: u,
13926
13930
  caller: ys
13927
13931
  });
13928
- return /* @__PURE__ */ l.jsxs(JC, { scope: n, checked: b, disabled: a, children: [
13932
+ return /* @__PURE__ */ l.jsxs(ZC, { scope: n, checked: b, disabled: a, children: [
13929
13933
  /* @__PURE__ */ l.jsx(
13930
13934
  me.button,
13931
13935
  {
@@ -13964,7 +13968,7 @@ var ys = "Switch", [XC, xR] = $t(ys), [JC, ZC] = XC(ys), Bh = f.forwardRef(
13964
13968
  Bh.displayName = ys;
13965
13969
  var Hh = "SwitchThumb", $h = f.forwardRef(
13966
13970
  (e, t) => {
13967
- const { __scopeSwitch: n, ...r } = e, o = ZC(Hh, n);
13971
+ const { __scopeSwitch: n, ...r } = e, o = QC(Hh, n);
13968
13972
  return /* @__PURE__ */ l.jsx(
13969
13973
  me.span,
13970
13974
  {
@@ -13977,7 +13981,7 @@ var Hh = "SwitchThumb", $h = f.forwardRef(
13977
13981
  }
13978
13982
  );
13979
13983
  $h.displayName = Hh;
13980
- var QC = "SwitchBubbleInput", zh = f.forwardRef(
13984
+ var eT = "SwitchBubbleInput", zh = f.forwardRef(
13981
13985
  ({
13982
13986
  __scopeSwitch: e,
13983
13987
  control: t,
@@ -14018,11 +14022,11 @@ var QC = "SwitchBubbleInput", zh = f.forwardRef(
14018
14022
  );
14019
14023
  }
14020
14024
  );
14021
- zh.displayName = QC;
14025
+ zh.displayName = eT;
14022
14026
  function Uh(e) {
14023
14027
  return e ? "checked" : "unchecked";
14024
14028
  }
14025
- var Wh = Bh, eT = $h;
14029
+ var Wh = Bh, tT = $h;
14026
14030
  const an = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14027
14031
  Wh,
14028
14032
  {
@@ -14033,7 +14037,7 @@ const an = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14033
14037
  ...t,
14034
14038
  ref: n,
14035
14039
  children: /* @__PURE__ */ l.jsx(
14036
- eT,
14040
+ tT,
14037
14041
  {
14038
14042
  className: D(
14039
14043
  "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
@@ -14043,10 +14047,10 @@ const an = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14043
14047
  }
14044
14048
  ));
14045
14049
  an.displayName = Wh.displayName;
14046
- var tT = [" ", "Enter", "ArrowUp", "ArrowDown"], nT = [" ", "Enter"], An = "Select", [Ss, Cs, rT] = ua(An), [cr, bR] = $t(An, [
14047
- rT,
14050
+ var nT = [" ", "Enter", "ArrowUp", "ArrowDown"], rT = [" ", "Enter"], An = "Select", [Ss, Cs, oT] = ua(An), [cr, wR] = $t(An, [
14051
+ oT,
14048
14052
  lr
14049
- ]), Ts = lr(), [oT, gn] = cr(An), [sT, iT] = cr(An), Vh = (e) => {
14053
+ ]), Ts = lr(), [sT, gn] = cr(An), [iT, aT] = cr(An), Vh = (e) => {
14050
14054
  const {
14051
14055
  __scopeSelect: t,
14052
14056
  children: n,
@@ -14074,7 +14078,7 @@ var tT = [" ", "Enter", "ArrowUp", "ArrowDown"], nT = [" ", "Enter"], An = "Sele
14074
14078
  caller: An
14075
14079
  }), M = f.useRef(null), W = m ? g || !!m.closest("form") : !0, [G, N] = f.useState(/* @__PURE__ */ new Set()), $ = Array.from(G).map((L) => L.props.value).join(";");
14076
14080
  return /* @__PURE__ */ l.jsx(ba, { ...v, children: /* @__PURE__ */ l.jsxs(
14077
- oT,
14081
+ sT,
14078
14082
  {
14079
14083
  required: x,
14080
14084
  scope: t,
@@ -14094,7 +14098,7 @@ var tT = [" ", "Enter", "ArrowUp", "ArrowDown"], nT = [" ", "Enter"], An = "Sele
14094
14098
  disabled: p,
14095
14099
  children: [
14096
14100
  /* @__PURE__ */ l.jsx(Ss.Provider, { scope: t, children: /* @__PURE__ */ l.jsx(
14097
- sT,
14101
+ iT,
14098
14102
  {
14099
14103
  scope: e.__scopeSelect,
14100
14104
  onNativeOptionAdd: f.useCallback((L) => {
@@ -14170,7 +14174,7 @@ var Gh = "SelectTrigger", Kh = f.forwardRef(
14170
14174
  }),
14171
14175
  onKeyDown: ee(o.onKeyDown, (v) => {
14172
14176
  const m = h.current !== "";
14173
- !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && p(v.key), !(m && v.key === " ") && tT.includes(v.key) && (g(), v.preventDefault());
14177
+ !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && p(v.key), !(m && v.key === " ") && nT.includes(v.key) && (g(), v.preventDefault());
14174
14178
  })
14175
14179
  }
14176
14180
  ) });
@@ -14194,15 +14198,15 @@ var Yh = "SelectValue", qh = f.forwardRef(
14194
14198
  }
14195
14199
  );
14196
14200
  qh.displayName = Yh;
14197
- var aT = "SelectIcon", Xh = f.forwardRef(
14201
+ var lT = "SelectIcon", Xh = f.forwardRef(
14198
14202
  (e, t) => {
14199
14203
  const { __scopeSelect: n, children: r, ...o } = e;
14200
14204
  return /* @__PURE__ */ l.jsx(me.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
14201
14205
  }
14202
14206
  );
14203
- Xh.displayName = aT;
14204
- var lT = "SelectPortal", Jh = (e) => /* @__PURE__ */ l.jsx(es, { asChild: !0, ...e });
14205
- Jh.displayName = lT;
14207
+ Xh.displayName = lT;
14208
+ var cT = "SelectPortal", Jh = (e) => /* @__PURE__ */ l.jsx(es, { asChild: !0, ...e });
14209
+ Jh.displayName = cT;
14206
14210
  var kn = "SelectContent", Zh = f.forwardRef(
14207
14211
  (e, t) => {
14208
14212
  const n = gn(kn, e.__scopeSelect), [r, o] = f.useState();
@@ -14219,7 +14223,7 @@ var kn = "SelectContent", Zh = f.forwardRef(
14219
14223
  }
14220
14224
  );
14221
14225
  Zh.displayName = kn;
14222
- var Ot = 10, [Qh, vn] = cr(kn), cT = "SelectContentImpl", uT = Xn("SelectContent.RemoveScroll"), ep = f.forwardRef(
14226
+ var Ot = 10, [Qh, vn] = cr(kn), uT = "SelectContentImpl", dT = Xn("SelectContent.RemoveScroll"), ep = f.forwardRef(
14223
14227
  (e, t) => {
14224
14228
  const {
14225
14229
  __scopeSelect: n,
@@ -14327,7 +14331,7 @@ var Ot = 10, [Qh, vn] = cr(kn), cT = "SelectContentImpl", uT = Xn("SelectContent
14327
14331
  position: r,
14328
14332
  isPositioned: G,
14329
14333
  searchRef: z,
14330
- children: /* @__PURE__ */ l.jsx(ns, { as: uT, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
14334
+ children: /* @__PURE__ */ l.jsx(ns, { as: dT, allowPinchZoom: !0, children: /* @__PURE__ */ l.jsx(
14331
14335
  Qo,
14332
14336
  {
14333
14337
  asChild: !0,
@@ -14389,8 +14393,8 @@ var Ot = 10, [Qh, vn] = cr(kn), cT = "SelectContentImpl", uT = Xn("SelectContent
14389
14393
  );
14390
14394
  }
14391
14395
  );
14392
- ep.displayName = cT;
14393
- var dT = "SelectItemAlignedPosition", tp = f.forwardRef((e, t) => {
14396
+ ep.displayName = uT;
14397
+ var fT = "SelectItemAlignedPosition", tp = f.forwardRef((e, t) => {
14394
14398
  const { __scopeSelect: n, onPlaced: r, ...o } = e, s = gn(kn, n), i = vn(kn, n), [a, c] = f.useState(null), [u, d] = f.useState(null), h = Ce(t, (R) => d(R)), p = Cs(n), x = f.useRef(!1), g = f.useRef(!0), { viewport: v, selectedItem: m, selectedItemText: b, focusSelectedItem: w } = i, y = f.useCallback(() => {
14395
14399
  if (s.trigger && s.valueNode && a && u && v && m && b) {
14396
14400
  const R = s.trigger.getBoundingClientRect(), I = u.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), k = b.getBoundingClientRect();
@@ -14458,7 +14462,7 @@ var dT = "SelectItemAlignedPosition", tp = f.forwardRef((e, t) => {
14458
14462
  [y, w]
14459
14463
  );
14460
14464
  return /* @__PURE__ */ l.jsx(
14461
- hT,
14465
+ pT,
14462
14466
  {
14463
14467
  scope: n,
14464
14468
  contentWrapper: a,
@@ -14494,8 +14498,8 @@ var dT = "SelectItemAlignedPosition", tp = f.forwardRef((e, t) => {
14494
14498
  }
14495
14499
  );
14496
14500
  });
14497
- tp.displayName = dT;
14498
- var fT = "SelectPopperPosition", ji = f.forwardRef((e, t) => {
14501
+ tp.displayName = fT;
14502
+ var hT = "SelectPopperPosition", ji = f.forwardRef((e, t) => {
14499
14503
  const {
14500
14504
  __scopeSelect: n,
14501
14505
  align: r = "start",
@@ -14523,8 +14527,8 @@ var fT = "SelectPopperPosition", ji = f.forwardRef((e, t) => {
14523
14527
  }
14524
14528
  );
14525
14529
  });
14526
- ji.displayName = fT;
14527
- var [hT, La] = cr(kn, {}), Ai = "SelectViewport", np = f.forwardRef(
14530
+ ji.displayName = hT;
14531
+ var [pT, La] = cr(kn, {}), Ai = "SelectViewport", np = f.forwardRef(
14528
14532
  (e, t) => {
14529
14533
  const { __scopeSelect: n, nonce: r, ...o } = e, s = vn(Ai, n), i = La(Ai, n), a = Ce(t, s.onViewportChange), c = f.useRef(0);
14530
14534
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
@@ -14577,21 +14581,21 @@ var [hT, La] = cr(kn, {}), Ai = "SelectViewport", np = f.forwardRef(
14577
14581
  }
14578
14582
  );
14579
14583
  np.displayName = Ai;
14580
- var rp = "SelectGroup", [pT, mT] = cr(rp), gT = f.forwardRef(
14584
+ var rp = "SelectGroup", [mT, gT] = cr(rp), vT = f.forwardRef(
14581
14585
  (e, t) => {
14582
14586
  const { __scopeSelect: n, ...r } = e, o = Dt();
14583
- return /* @__PURE__ */ l.jsx(pT, { scope: n, id: o, children: /* @__PURE__ */ l.jsx(me.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
14587
+ return /* @__PURE__ */ l.jsx(mT, { scope: n, id: o, children: /* @__PURE__ */ l.jsx(me.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
14584
14588
  }
14585
14589
  );
14586
- gT.displayName = rp;
14590
+ vT.displayName = rp;
14587
14591
  var op = "SelectLabel", sp = f.forwardRef(
14588
14592
  (e, t) => {
14589
- const { __scopeSelect: n, ...r } = e, o = mT(op, n);
14593
+ const { __scopeSelect: n, ...r } = e, o = gT(op, n);
14590
14594
  return /* @__PURE__ */ l.jsx(me.div, { id: o.id, ...r, ref: t });
14591
14595
  }
14592
14596
  );
14593
14597
  sp.displayName = op;
14594
- var Bo = "SelectItem", [vT, ip] = cr(Bo), ap = f.forwardRef(
14598
+ var Bo = "SelectItem", [xT, ip] = cr(Bo), ap = f.forwardRef(
14595
14599
  (e, t) => {
14596
14600
  const {
14597
14601
  __scopeSelect: n,
@@ -14613,7 +14617,7 @@ var Bo = "SelectItem", [vT, ip] = cr(Bo), ap = f.forwardRef(
14613
14617
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
14614
14618
  );
14615
14619
  return /* @__PURE__ */ l.jsx(
14616
- vT,
14620
+ xT,
14617
14621
  {
14618
14622
  scope: n,
14619
14623
  value: r,
@@ -14664,7 +14668,7 @@ var Bo = "SelectItem", [vT, ip] = cr(Bo), ap = f.forwardRef(
14664
14668
  }),
14665
14669
  onKeyDown: ee(i.onKeyDown, (w) => {
14666
14670
  var E;
14667
- ((E = c.searchRef) == null ? void 0 : E.current) !== "" && w.key === " " || (nT.includes(w.key) && b(), w.key === " " && w.preventDefault());
14671
+ ((E = c.searchRef) == null ? void 0 : E.current) !== "" && w.key === " " || (rT.includes(w.key) && b(), w.key === " " && w.preventDefault());
14668
14672
  })
14669
14673
  }
14670
14674
  )
@@ -14677,7 +14681,7 @@ var Bo = "SelectItem", [vT, ip] = cr(Bo), ap = f.forwardRef(
14677
14681
  ap.displayName = Bo;
14678
14682
  var gr = "SelectItemText", lp = f.forwardRef(
14679
14683
  (e, t) => {
14680
- const { __scopeSelect: n, className: r, style: o, ...s } = e, i = gn(gr, n), a = vn(gr, n), c = ip(gr, n), u = iT(gr, n), [d, h] = f.useState(null), p = Ce(
14684
+ const { __scopeSelect: n, className: r, style: o, ...s } = e, i = gn(gr, n), a = vn(gr, n), c = ip(gr, n), u = aT(gr, n), [d, h] = f.useState(null), p = Ce(
14681
14685
  t,
14682
14686
  (b) => h(b),
14683
14687
  c.onItemTextChange,
@@ -14778,21 +14782,21 @@ var hp = f.forwardRef((e, t) => {
14778
14782
  })
14779
14783
  }
14780
14784
  );
14781
- }), xT = "SelectSeparator", pp = f.forwardRef(
14785
+ }), bT = "SelectSeparator", pp = f.forwardRef(
14782
14786
  (e, t) => {
14783
14787
  const { __scopeSelect: n, ...r } = e;
14784
14788
  return /* @__PURE__ */ l.jsx(me.div, { "aria-hidden": !0, ...r, ref: t });
14785
14789
  }
14786
14790
  );
14787
- pp.displayName = xT;
14788
- var _i = "SelectArrow", bT = f.forwardRef(
14791
+ pp.displayName = bT;
14792
+ var _i = "SelectArrow", wT = f.forwardRef(
14789
14793
  (e, t) => {
14790
14794
  const { __scopeSelect: n, ...r } = e, o = Ts(n), s = gn(_i, n), i = vn(_i, n);
14791
14795
  return s.open && i.position === "popper" ? /* @__PURE__ */ l.jsx(Sa, { ...o, ...r, ref: t }) : null;
14792
14796
  }
14793
14797
  );
14794
- bT.displayName = _i;
14795
- var wT = "SelectBubbleInput", mp = f.forwardRef(
14798
+ wT.displayName = _i;
14799
+ var yT = "SelectBubbleInput", mp = f.forwardRef(
14796
14800
  ({ __scopeSelect: e, value: t, ...n }, r) => {
14797
14801
  const o = f.useRef(null), s = Ce(r, o), i = Fh(t);
14798
14802
  return f.useEffect(() => {
@@ -14817,7 +14821,7 @@ var wT = "SelectBubbleInput", mp = f.forwardRef(
14817
14821
  );
14818
14822
  }
14819
14823
  );
14820
- mp.displayName = wT;
14824
+ mp.displayName = yT;
14821
14825
  function gp(e) {
14822
14826
  return e === "" || e === void 0;
14823
14827
  }
@@ -14837,18 +14841,18 @@ function vp(e) {
14837
14841
  }
14838
14842
  function xp(e, t, n) {
14839
14843
  const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
14840
- let i = yT(e, Math.max(s, 0));
14844
+ let i = ST(e, Math.max(s, 0));
14841
14845
  o.length === 1 && (i = i.filter((u) => u !== n));
14842
14846
  const c = i.find(
14843
14847
  (u) => u.textValue.toLowerCase().startsWith(o.toLowerCase())
14844
14848
  );
14845
14849
  return c !== n ? c : void 0;
14846
14850
  }
14847
- function yT(e, t) {
14851
+ function ST(e, t) {
14848
14852
  return e.map((n, r) => e[(t + r) % e.length]);
14849
14853
  }
14850
- var ST = Vh, bp = Kh, CT = qh, TT = Xh, RT = Jh, wp = Zh, ET = np, yp = sp, Sp = ap, IT = lp, NT = up, Cp = dp, Tp = fp, Rp = pp;
14851
- const mc = ST, gc = CT, Oi = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
14854
+ var CT = Vh, bp = Kh, TT = qh, RT = Xh, ET = Jh, wp = Zh, IT = np, yp = sp, Sp = ap, NT = lp, jT = up, Cp = dp, Tp = fp, Rp = pp;
14855
+ const mc = CT, gc = TT, Oi = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
14852
14856
  bp,
14853
14857
  {
14854
14858
  ref: r,
@@ -14859,7 +14863,7 @@ const mc = ST, gc = CT, Oi = f.forwardRef(({ className: e, children: t, ...n },
14859
14863
  ...n,
14860
14864
  children: [
14861
14865
  t,
14862
- /* @__PURE__ */ l.jsx(TT, { asChild: !0, children: /* @__PURE__ */ l.jsx(Wn, { className: "h-4 w-4 opacity-50" }) })
14866
+ /* @__PURE__ */ l.jsx(RT, { asChild: !0, children: /* @__PURE__ */ l.jsx(Wn, { className: "h-4 w-4 opacity-50" }) })
14863
14867
  ]
14864
14868
  }
14865
14869
  ));
@@ -14890,7 +14894,7 @@ const Ip = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14890
14894
  }
14891
14895
  ));
14892
14896
  Ip.displayName = Tp.displayName;
14893
- const Mi = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ l.jsx(RT, { children: /* @__PURE__ */ l.jsxs(
14897
+ const Mi = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ l.jsx(ET, { children: /* @__PURE__ */ l.jsxs(
14894
14898
  wp,
14895
14899
  {
14896
14900
  ref: o,
@@ -14904,7 +14908,7 @@ const Mi = f.forwardRef(({ className: e, children: t, position: n = "popper", ..
14904
14908
  children: [
14905
14909
  /* @__PURE__ */ l.jsx(Ep, {}),
14906
14910
  /* @__PURE__ */ l.jsx(
14907
- ET,
14911
+ IT,
14908
14912
  {
14909
14913
  className: D(
14910
14914
  "p-1",
@@ -14918,7 +14922,7 @@ const Mi = f.forwardRef(({ className: e, children: t, position: n = "popper", ..
14918
14922
  }
14919
14923
  ) }));
14920
14924
  Mi.displayName = wp.displayName;
14921
- const jT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14925
+ const AT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14922
14926
  yp,
14923
14927
  {
14924
14928
  ref: n,
@@ -14926,7 +14930,7 @@ const jT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14926
14930
  ...t
14927
14931
  }
14928
14932
  ));
14929
- jT.displayName = yp.displayName;
14933
+ AT.displayName = yp.displayName;
14930
14934
  const bn = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ l.jsxs(
14931
14935
  Sp,
14932
14936
  {
@@ -14937,13 +14941,13 @@ const bn = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
14937
14941
  ),
14938
14942
  ...n,
14939
14943
  children: [
14940
- /* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(NT, { children: /* @__PURE__ */ l.jsx(Di, { className: "h-4 w-4" }) }) }),
14941
- /* @__PURE__ */ l.jsx(IT, { children: t })
14944
+ /* @__PURE__ */ l.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ l.jsx(jT, { children: /* @__PURE__ */ l.jsx(Di, { className: "h-4 w-4" }) }) }),
14945
+ /* @__PURE__ */ l.jsx(NT, { children: t })
14942
14946
  ]
14943
14947
  }
14944
14948
  ));
14945
14949
  bn.displayName = Sp.displayName;
14946
- const AT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14950
+ const kT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14947
14951
  Rp,
14948
14952
  {
14949
14953
  ref: n,
@@ -14951,7 +14955,7 @@ const AT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14951
14955
  ...t
14952
14956
  }
14953
14957
  ));
14954
- AT.displayName = Rp.displayName;
14958
+ kT.displayName = Rp.displayName;
14955
14959
  const bo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14956
14960
  "div",
14957
14961
  {
@@ -14985,7 +14989,7 @@ const yo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14985
14989
  }
14986
14990
  ));
14987
14991
  yo.displayName = "CardTitle";
14988
- const kT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14992
+ const PT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14989
14993
  "p",
14990
14994
  {
14991
14995
  ref: n,
@@ -14993,10 +14997,10 @@ const kT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
14993
14997
  ...t
14994
14998
  }
14995
14999
  ));
14996
- kT.displayName = "CardDescription";
15000
+ PT.displayName = "CardDescription";
14997
15001
  const So = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx("div", { ref: n, className: D("p-6 pt-0", e), ...t }));
14998
15002
  So.displayName = "CardContent";
14999
- const PT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15003
+ const _T = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15000
15004
  "div",
15001
15005
  {
15002
15006
  ref: n,
@@ -15004,8 +15008,8 @@ const PT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ l.jsx(
15004
15008
  ...t
15005
15009
  }
15006
15010
  ));
15007
- PT.displayName = "CardFooter";
15008
- const _T = {
15011
+ _T.displayName = "CardFooter";
15012
+ const OT = {
15009
15013
  api: {
15010
15014
  baseUrl: "http://localhost:8000/api",
15011
15015
  authToken: "",
@@ -15024,7 +15028,7 @@ const _T = {
15024
15028
  showTypingIndicator: !0
15025
15029
  }
15026
15030
  };
15027
- function wR({ settings: e, onSettingsChange: t, className: n = "" }) {
15031
+ function yR({ settings: e, onSettingsChange: t, className: n = "" }) {
15028
15032
  const [r, o] = fe(!1), [s, i] = fe(!1), [a, c] = fe(e), [u, d] = fe(!1), { toast: h } = oa();
15029
15033
  Ve(() => {
15030
15034
  const m = JSON.stringify(a) !== JSON.stringify(e);
@@ -15038,7 +15042,7 @@ function wR({ settings: e, onSettingsChange: t, className: n = "" }) {
15038
15042
  description: "Your chat configuration has been updated successfully."
15039
15043
  });
15040
15044
  }, x = () => {
15041
- c(_T), d(!0), h({
15045
+ c(OT), d(!0), h({
15042
15046
  title: "Settings reset",
15043
15047
  description: "Configuration has been reset to defaults."
15044
15048
  });
@@ -15060,7 +15064,7 @@ function wR({ settings: e, onSettingsChange: t, className: n = "" }) {
15060
15064
  }
15061
15065
  };
15062
15066
  return /* @__PURE__ */ l.jsxs(ah, { open: r, onOpenChange: o, children: [
15063
- /* @__PURE__ */ l.jsx(rC, { asChild: !0, children: /* @__PURE__ */ l.jsxs(Ae, { variant: "outline", size: "sm", className: n, children: [
15067
+ /* @__PURE__ */ l.jsx(oC, { asChild: !0, children: /* @__PURE__ */ l.jsxs(Ae, { variant: "outline", size: "sm", className: n, children: [
15064
15068
  /* @__PURE__ */ l.jsx(em, { className: "h-4 w-4 mr-2" }),
15065
15069
  "Settings",
15066
15070
  u && /* @__PURE__ */ l.jsx(Iu, { variant: "destructive", className: "ml-2 h-4 w-4 p-0" })
@@ -15309,7 +15313,7 @@ function wR({ settings: e, onSettingsChange: t, className: n = "" }) {
15309
15313
  ] })
15310
15314
  ] });
15311
15315
  }
15312
- function yR({
15316
+ function SR({
15313
15317
  layout: e = "sidebar",
15314
15318
  layoutSize: t = "desktop",
15315
15319
  showThreads: n = !0,
@@ -15388,29 +15392,29 @@ export {
15388
15392
  Vg as ApiClient,
15389
15393
  Vg as ChatApi,
15390
15394
  xo as ChatInterface,
15391
- vR as ChatMainLayout,
15395
+ xR as ChatMainLayout,
15392
15396
  ao as ChatProvider,
15393
- dR as ChatRoutingProvider,
15394
- wR as ChatSettings,
15397
+ fR as ChatRoutingProvider,
15398
+ yR as ChatSettings,
15395
15399
  Jr as MarkdownContent,
15396
- Ew as MessageComponent,
15400
+ Iw as MessageComponent,
15397
15401
  Ei as ThreadManager,
15398
15402
  En as apiClient,
15399
- pR as applySettings,
15403
+ mR as applySettings,
15400
15404
  En as chatApiClient,
15401
- yR as default,
15405
+ SR as default,
15402
15406
  Wg as del,
15403
15407
  _t as get,
15404
15408
  Hg as getChatToken,
15405
- hR as getCurrentSettings,
15406
- q0 as getDefaultApiConfig,
15407
- X0 as getDefaultChatSettings,
15409
+ pR as getCurrentSettings,
15410
+ X0 as getDefaultApiConfig,
15411
+ J0 as getDefaultChatSettings,
15408
15412
  $g as onChatTokenChanged,
15409
15413
  zg as post,
15410
15414
  Ug as put,
15411
15415
  hl as setChatToken,
15412
15416
  Hi as useChat,
15413
- fR as useChatRouting,
15417
+ hR as useChatRouting,
15414
15418
  Gg as useChatStream,
15415
15419
  Jg as useMessagesReducer
15416
15420
  };