@factorialco/f0-react 6.65.1 → 6.66.1

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.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as t, Fragment as R1 } from "react/jsx-runtime";
2
- import { useInsertionEffect as Dr, forwardRef as m, useRef as $, useEffect as z, useLayoutEffect as re, useState as B, useMemo as X, useId as U1, useCallback as j, createContext as z1, useContext as $1, createElement as jr, memo as _r } from "react";
3
- import { X as Zr, Y as Or, Z as Ur, _ as ut, $ as zr, a0 as Gr, a1 as Wr, a2 as qr, a3 as Xr, a4 as Yr, a5 as ft, a6 as Kr, a7 as Qr, a8 as ne, a9 as Jr, aa as en, ab as tn, ac as rn, ad as nn, ae as on, af as sn, ag as an, y as ht, ah as ln, ai as cn, o as oe, aj as Ct, ak as G1, n as pt, al as dn, am as un, an as fn, ao as hn, ap as Cn, aq as F1, ar as pn, as as mt, at as mn, au as gn, l as M1, av as wn, aw as vn, ax as gt, ay as Ln, az as xn, aA as bn, aB as kn, aC as yn, aD as Mn, aE as wt, aF as Rn, aG as Fn, aH as Nn, aI as Sn, aJ as Vn, aK as Tn, aL as Hn, aM as An, aN as En, aO as $n, aP as Bn, aQ as In, E as Pn, aR as Dn, aS as jn, aT as _n, aU as Zn, aV as On, aW as Un, aX as zn, aY as Gn, aZ as Wn, a_ as qn, a$ as Xn, b0 as Yn, b1 as Kn, b2 as Qn, b3 as Jn, b4 as eo, b5 as to, b6 as ro, U as vt, b7 as no, b8 as oo, b9 as so, ba as ao, bb as Lt, R as xt, bc as io, i as lo, bd as co, be as uo, bf as fo, bg as ho, bh as Co, bi as bt, bj as po, bk as mo, bl as go, bm as wo, bn as vo, bo as Lo, j as xo, bp as kt, bq as yt, br as bo, bs as Mt, bt as ko, bu as se, q as yo, bv as ae, bw as Mo, bx as Ro, by as ie, O as Fo, Q as No, bz as Rt, bA as So, bB as Vo, bC as To, bD as Ho, bE as Ao, bF as Eo, bG as $o, bH as Bo, bI as Io, bJ as Po, bK as Ft, bL as Do, bM as jo, bN as _o, bO as Zo, u as G, bP as n1, bQ as Oo, S as u1, bR as Nt, V as o1, bS as Uo, m as w1, bT as zo, bU as s1, bV as C1, bW as L1, bX as Y, bY as St, t as le, bZ as Go, x as ce, b as k1, b_ as Wo, b$ as qo, c0 as Xo, d as Vt, c1 as Yo, c2 as Ko, c3 as de, c4 as Qo, c5 as Jo, c6 as es, c7 as He, c8 as ts, c9 as Tt, ca as Ht, cb as rs, cc as ns, cd as os, ce as ss, cf as as, cg as At, ch as is, ci as ls, cj as cs, ck as E1, cl as Et, cm as $t, cn as Bt, c as J1, co as Ae, cp as It, cq as ds, cr as us, cs as B1, ct as fs, cu as hs, cv as Cs, cw as ue, cx as ps, cy as ms, cz as gs, cA as ws, cB as vs, cC as Ls, w as xs, s as bs, cD as K1, v as Pt, cE as ks, cF as ys, cG as Ee, cH as Dt, cI as jt, cJ as Ms, cK as Rs, cL as Fs, cM as Ns, cN as Ss, cO as Vs } from "./F0CanvasPanel-Db99rzA7.js";
2
+ import { useInsertionEffect as Dr, forwardRef as m, useRef as $, useEffect as z, useLayoutEffect as re, useState as I, useMemo as X, useId as U1, useCallback as _, createContext as z1, useContext as $1, createElement as _r, memo as jr } from "react";
3
+ import { X as Zr, Y as Or, Z as Ur, _ as ut, $ as zr, a0 as Gr, a1 as Wr, a2 as qr, a3 as Xr, a4 as Yr, a5 as ft, a6 as Kr, a7 as Qr, a8 as ne, a9 as Jr, aa as en, ab as tn, ac as rn, ad as nn, ae as on, af as sn, ag as an, y as ht, ah as ln, ai as cn, o as oe, aj as Ct, ak as G1, n as pt, al as dn, am as un, an as fn, ao as hn, ap as Cn, aq as F1, ar as pn, as as mt, at as mn, au as gn, l as M1, av as wn, aw as vn, ax as gt, ay as Ln, az as xn, aA as bn, aB as kn, aC as yn, aD as Mn, aE as wt, aF as Rn, aG as Fn, aH as Nn, aI as Sn, aJ as Vn, aK as Tn, aL as Hn, aM as An, aN as En, aO as $n, aP as Bn, aQ as In, E as Pn, aR as Dn, aS as _n, aT as jn, aU as Zn, aV as On, aW as Un, aX as zn, aY as Gn, aZ as Wn, a_ as qn, a$ as Xn, b0 as Yn, b1 as Kn, b2 as Qn, b3 as Jn, b4 as eo, b5 as to, b6 as ro, U as vt, b7 as no, b8 as oo, b9 as so, ba as ao, bb as Lt, R as xt, bc as io, i as lo, bd as co, be as uo, bf as fo, bg as ho, bh as Co, bi as bt, bj as po, bk as mo, bl as go, bm as wo, bn as vo, bo as Lo, j as xo, bp as kt, bq as yt, br as bo, bs as Mt, bt as ko, bu as se, q as yo, bv as ae, bw as Mo, bx as Ro, by as ie, O as Fo, Q as No, bz as Rt, bA as So, bB as Vo, bC as To, bD as Ho, bE as Ao, bF as Eo, bG as $o, bH as Bo, bI as Io, bJ as Po, bK as Ft, bL as Do, bM as _o, bN as jo, bO as Zo, u as G, bP as n1, bQ as Oo, S as u1, bR as Nt, V as o1, bS as Uo, m as w1, bT as zo, bU as s1, bV as C1, bW as L1, bX as Q, bY as St, t as le, bZ as Go, x as ce, b as k1, b_ as Wo, b$ as qo, c0 as Xo, d as Vt, c1 as Yo, c2 as Ko, c3 as de, c4 as Qo, c5 as Jo, c6 as es, c7 as He, c8 as ts, c9 as Tt, ca as Ht, cb as rs, cc as ns, cd as os, ce as ss, cf as as, cg as At, ch as is, ci as ls, cj as cs, ck as E1, cl as Et, cm as $t, cn as Bt, c as J1, co as Ae, cp as It, cq as ds, cr as us, cs as B1, ct as fs, cu as hs, cv as Cs, cw as ue, cx as ps, cy as ms, cz as gs, cA as ws, cB as vs, cC as Ls, w as xs, s as bs, cD as K1, v as Pt, cE as ks, cF as ys, cG as Ee, cH as Dt, cI as _t, cJ as Ms, cK as Rs, cL as Fs, cM as Ns, cN as Ss, cO as Vs } from "./F0CanvasPanel-Db99rzA7.js";
4
4
  import { d as b, f as f1, u as Ts } from "./tooltip-DTpaXpXW.js";
5
- import { createPortal as _t } from "react-dom";
5
+ import { createPortal as jt } from "react-dom";
6
6
  import { defaultTranslations as Hs } from "./i18n-provider-defaults.js";
7
7
  import { useTrackVolume as As } from "@livekit/components-react";
8
8
  import { F as Es } from "./Printer-BD-FEi_2.js";
@@ -10,7 +10,7 @@ import { F as $s, c as Bs, b as Is, a as Ps } from "./VolumeMuted-DKLKhxyd.js";
10
10
  function Ds(e, r, n) {
11
11
  Dr(() => e.on(r, n), [e, r, n]);
12
12
  }
13
- const js = (e, r) => /* @__PURE__ */ i(
13
+ const _s = (e, r) => /* @__PURE__ */ i(
14
14
  "svg",
15
15
  {
16
16
  xmlns: "http://www.w3.org/2000/svg",
@@ -46,7 +46,7 @@ const js = (e, r) => /* @__PURE__ */ i(
46
46
  )
47
47
  ]
48
48
  }
49
- ), _s = m(js), Zs = (e, r) => /* @__PURE__ */ i(
49
+ ), js = m(_s), Zs = (e, r) => /* @__PURE__ */ i(
50
50
  "svg",
51
51
  {
52
52
  xmlns: "http://www.w3.org/2000/svg",
@@ -693,7 +693,7 @@ const js = (e, r) => /* @__PURE__ */ i(
693
693
  /* @__PURE__ */ t("path", { stroke: "currentColor", strokeLinecap: "round", d: "M18 16L18 20" })
694
694
  ]
695
695
  }
696
- ), Da = m(Pa), ja = (e, r) => /* @__PURE__ */ t(
696
+ ), Da = m(Pa), _a = (e, r) => /* @__PURE__ */ t(
697
697
  "svg",
698
698
  {
699
699
  xmlns: "http://www.w3.org/2000/svg",
@@ -710,7 +710,7 @@ const js = (e, r) => /* @__PURE__ */ i(
710
710
  }
711
711
  )
712
712
  }
713
- ), _a = m(ja), Za = (e, r) => /* @__PURE__ */ i(
713
+ ), ja = m(_a), Za = (e, r) => /* @__PURE__ */ i(
714
714
  "svg",
715
715
  {
716
716
  xmlns: "http://www.w3.org/2000/svg",
@@ -1416,7 +1416,7 @@ const js = (e, r) => /* @__PURE__ */ i(
1416
1416
  )
1417
1417
  ]
1418
1418
  }
1419
- ), Di = m(Pi), ji = (e, r) => /* @__PURE__ */ t(
1419
+ ), Di = m(Pi), _i = (e, r) => /* @__PURE__ */ t(
1420
1420
  "svg",
1421
1421
  {
1422
1422
  xmlns: "http://www.w3.org/2000/svg",
@@ -1432,7 +1432,7 @@ const js = (e, r) => /* @__PURE__ */ i(
1432
1432
  }
1433
1433
  )
1434
1434
  }
1435
- ), _i = m(ji), Zi = (e, r) => /* @__PURE__ */ i(
1435
+ ), ji = m(_i), Zi = (e, r) => /* @__PURE__ */ i(
1436
1436
  "svg",
1437
1437
  {
1438
1438
  xmlns: "http://www.w3.org/2000/svg",
@@ -2305,7 +2305,7 @@ const js = (e, r) => /* @__PURE__ */ i(
2305
2305
  }
2306
2306
  )
2307
2307
  }
2308
- ), D5 = m(P5), j5 = (e, r) => /* @__PURE__ */ i(
2308
+ ), D5 = m(P5), _5 = (e, r) => /* @__PURE__ */ i(
2309
2309
  "svg",
2310
2310
  {
2311
2311
  xmlns: "http://www.w3.org/2000/svg",
@@ -2324,7 +2324,7 @@ const js = (e, r) => /* @__PURE__ */ i(
2324
2324
  )
2325
2325
  ]
2326
2326
  }
2327
- ), _5 = m(j5), Z5 = (e, r) => /* @__PURE__ */ i(
2327
+ ), j5 = m(_5), Z5 = (e, r) => /* @__PURE__ */ i(
2328
2328
  "svg",
2329
2329
  {
2330
2330
  xmlns: "http://www.w3.org/2000/svg",
@@ -3178,7 +3178,7 @@ const js = (e, r) => /* @__PURE__ */ i(
3178
3178
  }
3179
3179
  ), Ut = m(D0);
3180
3180
  Ut.displayName = "ShoppingCart";
3181
- const j0 = (e, r) => /* @__PURE__ */ i(
3181
+ const _0 = (e, r) => /* @__PURE__ */ i(
3182
3182
  "svg",
3183
3183
  {
3184
3184
  xmlns: "http://www.w3.org/2000/svg",
@@ -3217,7 +3217,7 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3217
3217
  )
3218
3218
  ]
3219
3219
  }
3220
- ), _0 = m(j0), Z0 = (e, r) => /* @__PURE__ */ i(
3220
+ ), j0 = m(_0), Z0 = (e, r) => /* @__PURE__ */ i(
3221
3221
  "svg",
3222
3222
  {
3223
3223
  xmlns: "http://www.w3.org/2000/svg",
@@ -3741,7 +3741,7 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3741
3741
  }
3742
3742
  ), v2 = m(w2), L2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3743
3743
  __proto__: null,
3744
- AcademicCap: _s,
3744
+ AcademicCap: js,
3745
3745
  Add: Zr,
3746
3746
  Ai: Or,
3747
3747
  Alert: Ur,
@@ -3799,7 +3799,7 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3799
3799
  Clock: un,
3800
3800
  ClockBack: Ia,
3801
3801
  ClockPlus: Da,
3802
- Cloud: _a,
3802
+ Cloud: ja,
3803
3803
  Code: fn,
3804
3804
  Coffee: Oa,
3805
3805
  Command: za,
@@ -3857,11 +3857,11 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3857
3857
  Greater: Dn,
3858
3858
  Group: Ai,
3859
3859
  GroupBy: $i,
3860
- Handle: jn,
3860
+ Handle: _n,
3861
3861
  Handshake: Ii,
3862
3862
  HardDrive: Di,
3863
- HeadcountPlanning: _i,
3864
- Heading1: _n,
3863
+ HeadcountPlanning: ji,
3864
+ Heading1: jn,
3865
3865
  Heading2: Zn,
3866
3866
  Heading3: On,
3867
3867
  Headset: Oi,
@@ -3913,7 +3913,7 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3913
3913
  MonitorDot: $5,
3914
3914
  MonitorSmartphone: I5,
3915
3915
  Moon: D5,
3916
- Mouse: _5,
3916
+ Mouse: j5,
3917
3917
  MoveDown: co,
3918
3918
  MoveTop: O5,
3919
3919
  MoveUp: uo,
@@ -3966,7 +3966,7 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3966
3966
  Share: Ro,
3967
3967
  Shield: P0,
3968
3968
  ShoppingCart: Ut,
3969
- SignPost: _0,
3969
+ SignPost: j0,
3970
3970
  Sleep: O0,
3971
3971
  Sliders: ie,
3972
3972
  SolidPause: Fo,
@@ -3996,13 +3996,13 @@ const j0 = (e, r) => /* @__PURE__ */ i(
3996
3996
  Upsell: Ft,
3997
3997
  UserProtected: c2,
3998
3998
  Video: Do,
3999
- VideoRecorder: jo,
3999
+ VideoRecorder: _o,
4000
4000
  VideoRecorderNegative: u2,
4001
4001
  VolumeHigh: Bs,
4002
4002
  VolumeMid: Is,
4003
4003
  VolumeMuted: Ps,
4004
4004
  Wallet: h2,
4005
- Warning: _o,
4005
+ Warning: jo,
4006
4006
  Watch: p2,
4007
4007
  WhatsappChat: g2,
4008
4008
  Wifi: v2,
@@ -4448,7 +4448,7 @@ const F2 = ({
4448
4448
  inputValue: n,
4449
4449
  inProgress: o
4450
4450
  }) => {
4451
- const s = C1(), [a, c] = B(""), [d, l] = B(0), [f, u] = B(!1), C = $(null), g = $(null), h = $(null), w = e[d] ?? r;
4451
+ const s = C1(), [a, c] = I(""), [d, l] = I(0), [f, u] = I(!1), C = $(null), g = $(null), h = $(null), w = e[d] ?? r;
4452
4452
  return z(() => {
4453
4453
  const v = () => {
4454
4454
  g.current && (clearInterval(g.current), g.current = null), h.current && (clearInterval(h.current), h.current = null), C.current && (clearTimeout(C.current), C.current = null);
@@ -4487,7 +4487,7 @@ const F2 = ({
4487
4487
  e.length,
4488
4488
  s
4489
4489
  ]), n.length > 0 || o ? null : /* @__PURE__ */ t(L1, { children: /* @__PURE__ */ t(
4490
- Y.div,
4490
+ Q.div,
4491
4491
  {
4492
4492
  initial: { opacity: 0 },
4493
4493
  animate: { opacity: 1 },
@@ -4654,7 +4654,7 @@ const F2 = ({
4654
4654
  r.id
4655
4655
  )) }), H2 = 24;
4656
4656
  function A2(e = H2) {
4657
- const [r, n] = B(null), [o, s] = B({ start: !1, end: !1 });
4657
+ const [r, n] = I(null), [o, s] = I({ start: !1, end: !1 });
4658
4658
  z(() => {
4659
4659
  if (!r) return;
4660
4660
  const c = () => {
@@ -4683,7 +4683,7 @@ const E2 = 5, $2 = 46, B2 = 400, I2 = 16, P2 = 16;
4683
4683
  function D2(e, r = E2) {
4684
4684
  return e.length <= r ? e : [...e].sort(() => 0.5 - Math.random()).slice(0, r);
4685
4685
  }
4686
- const j2 = ({
4686
+ const _2 = ({
4687
4687
  suggestions: e,
4688
4688
  onItemClick: r,
4689
4689
  onItemHover: n,
@@ -4691,7 +4691,7 @@ const j2 = ({
4691
4691
  reserveTwoRows: s = !0,
4692
4692
  overflow: a = "wrap"
4693
4693
  }) => {
4694
- const [c, d] = B(null), l = $(null), f = a === "scroll", u = A2(), C = $(null), g = $(!1), h = U1(), w = U1(), v = c !== null ? e[c] : null;
4694
+ const [c, d] = I(null), l = $(null), f = a === "scroll", u = A2(), C = $(null), g = $(!1), h = U1(), w = U1(), v = c !== null ? e[c] : null;
4695
4695
  return e.length === 0 ? null : /* @__PURE__ */ i(
4696
4696
  le,
4697
4697
  {
@@ -4786,7 +4786,7 @@ const j2 = ({
4786
4786
  }
4787
4787
  ),
4788
4788
  /* @__PURE__ */ t("div", { className: "flex flex-col", children: D2(v.items).map((p, k) => /* @__PURE__ */ t(
4789
- _2,
4789
+ j2,
4790
4790
  {
4791
4791
  item: p,
4792
4792
  onHover: n,
@@ -4803,12 +4803,12 @@ const j2 = ({
4803
4803
  }
4804
4804
  );
4805
4805
  };
4806
- function _2({ item: e, onSelect: r, onHover: n }) {
4807
- const o = $(null), s = $(null), a = $(null), c = C1(), d = j(() => {
4806
+ function j2({ item: e, onSelect: r, onHover: n }) {
4807
+ const o = $(null), s = $(null), a = $(null), c = C1(), d = _(() => {
4808
4808
  a.current != null && (clearTimeout(a.current), a.current = null);
4809
4809
  const C = s.current, g = o.current;
4810
4810
  C && (C.style.transition = "none", C.style.transform = "translateX(0)", C.style.overflow = ""), g && (g.style.removeProperty("mask-image"), g.style.removeProperty("-webkit-mask-image"));
4811
- }, []), l = j(() => {
4811
+ }, []), l = _(() => {
4812
4812
  c || (a.current = window.setTimeout(() => {
4813
4813
  const C = s.current, g = o.current;
4814
4814
  if (!C || !g) return;
@@ -4819,9 +4819,9 @@ function _2({ item: e, onSelect: r, onHover: n }) {
4819
4819
  const p = `linear-gradient(90deg, transparent 0, #000 ${P2}px)`;
4820
4820
  g.style.setProperty("mask-image", p), g.style.setProperty("-webkit-mask-image", p), C.style.transition = `transform ${v}ms linear`, C.style.transform = `translateX(-${w}px)`;
4821
4821
  }, B2));
4822
- }, [c]), f = j(() => {
4822
+ }, [c]), f = _(() => {
4823
4823
  n?.(e), l();
4824
- }, [e, n, l]), u = j(() => {
4824
+ }, [e, n, l]), u = _(() => {
4825
4825
  n?.(null), d();
4826
4826
  }, [n, d]);
4827
4827
  return z(
@@ -4901,7 +4901,7 @@ function U2(e, r) {
4901
4901
  }
4902
4902
  const z2 = 4e3;
4903
4903
  function G2(e) {
4904
- const [r, n] = B([]), [o, s] = B(null), a = $(
4904
+ const [r, n] = I([]), [o, s] = I(null), a = $(
4905
4905
  null
4906
4906
  ), c = $(null), d = G(), l = e?.onUploadFiles, f = e?.allowedMimeTypes, u = e?.maxFiles, C = X(() => {
4907
4907
  if (f)
@@ -4910,7 +4910,7 @@ function G2(e) {
4910
4910
  z(() => {
4911
4911
  h.current = r.length;
4912
4912
  }, [r]);
4913
- const w = j((H) => {
4913
+ const w = _((H) => {
4914
4914
  a.current && clearTimeout(a.current), s(H), a.current = setTimeout(() => {
4915
4915
  s(null), a.current = null;
4916
4916
  }, z2);
@@ -4921,7 +4921,7 @@ function G2(e) {
4921
4921
  },
4922
4922
  []
4923
4923
  );
4924
- const v = j(
4924
+ const v = _(
4925
4925
  async (H) => {
4926
4926
  if (H.length === 0 || !l) return;
4927
4927
  const T = U2(H, f);
@@ -4939,11 +4939,11 @@ function G2(e) {
4939
4939
  id: crypto.randomUUID(),
4940
4940
  file: V,
4941
4941
  status: "uploading"
4942
- })), L = F.map((V) => V.id);
4942
+ })), x = F.map((V) => V.id);
4943
4943
  n((V) => [...V, ...F]);
4944
4944
  const S = (V) => n(
4945
4945
  (P) => P.map(
4946
- (A) => L.includes(A.id) ? { ...A, status: "error", errorMessage: V } : A
4946
+ (A) => x.includes(A.id) ? { ...A, status: "error", errorMessage: V } : A
4947
4947
  )
4948
4948
  );
4949
4949
  try {
@@ -4954,7 +4954,7 @@ function G2(e) {
4954
4954
  }
4955
4955
  n(
4956
4956
  (P) => P.map((A) => {
4957
- const N = F.findIndex((I) => I.id === A.id);
4957
+ const N = F.findIndex((B) => B.id === A.id);
4958
4958
  return N === -1 ? A : V[N] ? {
4959
4959
  ...A,
4960
4960
  status: "uploaded",
@@ -4979,14 +4979,14 @@ function G2(e) {
4979
4979
  d.ai.fileUploadError,
4980
4980
  w
4981
4981
  ]
4982
- ), p = j(
4982
+ ), p = _(
4983
4983
  async (H) => {
4984
4984
  await v(Array.from(H.target.files ?? [])), H.target.value = "";
4985
4985
  },
4986
4986
  [v]
4987
- ), k = j((H) => {
4987
+ ), k = _((H) => {
4988
4988
  n((T) => T.filter((F) => F.id !== H));
4989
- }, []), R = j(() => {
4989
+ }, []), R = _(() => {
4990
4990
  n([]);
4991
4991
  }, []);
4992
4992
  return {
@@ -5082,7 +5082,7 @@ function K2({
5082
5082
  searchPersons: o,
5083
5083
  textareaRef: s
5084
5084
  }) {
5085
- const [a, c] = B(!1), [d, l] = B(""), [f, u] = B([]), [C, g] = B(!1), [h, w] = B(0), [v, p] = B([]), k = $(-1), R = $(null), H = $(0), T = $(-1);
5085
+ const [a, c] = I(!1), [d, l] = I(""), [f, u] = I([]), [C, g] = I(!1), [h, w] = I(0), [v, p] = I([]), k = $(-1), R = $(null), H = $(0), T = $(-1);
5086
5086
  z(() => {
5087
5087
  if (!o) {
5088
5088
  c(!1);
@@ -5096,33 +5096,33 @@ function K2({
5096
5096
  if (N.atIndex === T.current)
5097
5097
  return;
5098
5098
  k.current = N.atIndex, l(N.query), c(!0), w(0), g(!0), R.current && clearTimeout(R.current);
5099
- const I = ++H.current;
5099
+ const B = ++H.current;
5100
5100
  return R.current = setTimeout(() => {
5101
- o(N.query).then((_) => {
5102
- I === H.current && (u(_), w(0), _.length === 0 && N.query.length > 0 && (T.current = N.atIndex, c(!1)));
5101
+ o(N.query).then((j) => {
5102
+ B === H.current && (u(j), w(0), j.length === 0 && N.query.length > 0 && (T.current = N.atIndex, c(!1)));
5103
5103
  }).catch(() => {
5104
- I === H.current && u([]);
5104
+ B === H.current && u([]);
5105
5105
  }).finally(() => {
5106
- I === H.current && g(!1);
5106
+ B === H.current && g(!1);
5107
5107
  });
5108
5108
  }, Y2), () => {
5109
5109
  R.current && clearTimeout(R.current);
5110
5110
  };
5111
5111
  }, [e, n, o, v]);
5112
- const F = j(() => {
5112
+ const F = _(() => {
5113
5113
  c(!1), l(""), u([]), w(0), k.current = -1;
5114
- }, []), L = j(
5114
+ }, []), x = _(
5115
5115
  (N) => {
5116
- const I = k.current;
5117
- if (I === -1) return;
5118
- const _ = `${N.firstName} ${N.lastName}`.trim(), Z = String(N.id), W = e.slice(0, I), J = e.slice(n), t1 = `@${_} `, K = W + t1 + J, Q = W.length + t1.length;
5119
- r(K), p((a1) => [...a1.filter((c1) => !(c1.id === Z && c1.name === _)), { id: Z, name: _ }]), F(), requestAnimationFrame(() => {
5116
+ const B = k.current;
5117
+ if (B === -1) return;
5118
+ const j = `${N.firstName} ${N.lastName}`.trim(), Z = String(N.id), W = e.slice(0, B), J = e.slice(n), t1 = `@${j} `, Y = W + t1 + J, K = W.length + t1.length;
5119
+ r(Y), p((a1) => [...a1.filter((c1) => !(c1.id === Z && c1.name === j)), { id: Z, name: j }]), F(), requestAnimationFrame(() => {
5120
5120
  const a1 = s.current;
5121
- a1 && (a1.focus(), a1.setSelectionRange(Q, Q));
5121
+ a1 && (a1.focus(), a1.setSelectionRange(K, K));
5122
5122
  });
5123
5123
  },
5124
5124
  [e, n, r, s, F]
5125
- ), S = j(
5125
+ ), S = _(
5126
5126
  (N) => {
5127
5127
  if (!a) return !1;
5128
5128
  if (N.key === "Escape")
@@ -5130,47 +5130,47 @@ function K2({
5130
5130
  if (f.length === 0) return !1;
5131
5131
  switch (N.key) {
5132
5132
  case "ArrowDown":
5133
- return N.preventDefault(), w((I) => (I + 1) % f.length), !0;
5133
+ return N.preventDefault(), w((B) => (B + 1) % f.length), !0;
5134
5134
  case "ArrowUp":
5135
5135
  return N.preventDefault(), w(
5136
- (I) => (I + f.length - 1) % f.length
5136
+ (B) => (B + f.length - 1) % f.length
5137
5137
  ), !0;
5138
5138
  case "Tab": {
5139
- const I = f[h];
5140
- if (I) {
5141
- const _ = `${I.firstName} ${I.lastName}`.trim();
5142
- if (d.length === 0 || _.toLowerCase().startsWith(d.toLowerCase()))
5143
- return N.preventDefault(), L(I), !0;
5139
+ const B = f[h];
5140
+ if (B) {
5141
+ const j = `${B.firstName} ${B.lastName}`.trim();
5142
+ if (d.length === 0 || j.toLowerCase().startsWith(d.toLowerCase()))
5143
+ return N.preventDefault(), x(B), !0;
5144
5144
  }
5145
5145
  return !1;
5146
5146
  }
5147
5147
  case "Enter":
5148
- return N.preventDefault(), f[h] && L(f[h]), !0;
5148
+ return N.preventDefault(), f[h] && x(f[h]), !0;
5149
5149
  default:
5150
5150
  return !1;
5151
5151
  }
5152
5152
  },
5153
- [a, f, h, d, L, F]
5154
- ), V = j(
5153
+ [a, f, h, d, x, F]
5154
+ ), V = _(
5155
5155
  (N) => {
5156
5156
  if (v.length === 0) return N;
5157
- let I = N;
5158
- const _ = [...v].sort((Z, W) => W.name.length - Z.name.length);
5159
- for (const Z of _) {
5157
+ let B = N;
5158
+ const j = [...v].sort((Z, W) => W.name.length - Z.name.length);
5159
+ for (const Z of j) {
5160
5160
  const W = `@${Z.name}`, J = `<entity-ref type="person" id="${$e(Z.id)}">${$e(Z.name)}</entity-ref>`;
5161
- for (; I.includes(W); )
5162
- I = I.replace(W, J);
5161
+ for (; B.includes(W); )
5162
+ B = B.replace(W, J);
5163
5163
  }
5164
- return I;
5164
+ return B;
5165
5165
  },
5166
5166
  [v]
5167
5167
  );
5168
5168
  z(() => {
5169
5169
  p(
5170
- (N) => N.filter((I) => {
5171
- const _ = `@${I.name}`, Z = e.indexOf(_);
5170
+ (N) => N.filter((B) => {
5171
+ const j = `@${B.name}`, Z = e.indexOf(j);
5172
5172
  if (Z === -1) return !1;
5173
- const W = e[Z + _.length];
5173
+ const W = e[Z + j.length];
5174
5174
  return W === " " || W === `
5175
5175
  ` || W === " ";
5176
5176
  })
@@ -5180,14 +5180,14 @@ function K2({
5180
5180
  if (!a || k.current === -1) return null;
5181
5181
  const N = s.current;
5182
5182
  if (!N) return null;
5183
- const I = X2(N, k.current), _ = N.offsetLeft + I.left, W = (N.offsetParent ? N.offsetParent.offsetHeight : 0) - (N.offsetTop + I.top);
5184
- return { left: _, bottom: W };
5183
+ const B = X2(N, k.current), j = N.offsetLeft + B.left, W = (N.offsetParent ? N.offsetParent.offsetHeight : 0) - (N.offsetTop + B.top);
5184
+ return { left: j, bottom: W };
5185
5185
  }, [a, e, n, s]), A = X(() => {
5186
5186
  if (!a || f.length === 0) return null;
5187
5187
  const N = f[h];
5188
5188
  if (!N) return null;
5189
- const I = `${N.firstName} ${N.lastName}`.trim();
5190
- return d.length === 0 ? I : I.toLowerCase().startsWith(d.toLowerCase()) ? I.slice(d.length) : null;
5189
+ const B = `${N.firstName} ${N.lastName}`.trim();
5190
+ return d.length === 0 ? B : B.toLowerCase().startsWith(d.toLowerCase()) ? B.slice(d.length) : null;
5191
5191
  }, [a, f, h, d]);
5192
5192
  return {
5193
5193
  isOpen: a,
@@ -5199,7 +5199,7 @@ function K2({
5199
5199
  popoverPosition: P,
5200
5200
  inlineCompletion: A,
5201
5201
  handleKeyDown: S,
5202
- selectPerson: L,
5202
+ selectPerson: x,
5203
5203
  transformMentions: V,
5204
5204
  close: F
5205
5205
  };
@@ -5227,20 +5227,20 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5227
5227
  fullscreen: H = !1,
5228
5228
  welcomeScreenSuggestions: T,
5229
5229
  onSuggestionClick: F,
5230
- welcomeScreenSuggestionsPlacement: L = "above",
5230
+ welcomeScreenSuggestionsPlacement: x = "above",
5231
5231
  welcomeScreenSuggestionsCollapsedByDefault: S = !1,
5232
5232
  welcomeScreenCards: V,
5233
5233
  padding: P = "default",
5234
5234
  ref: A
5235
5235
  }) => {
5236
- const N = G(), I = C1(), [_, Z] = B(""), [W, J] = B(0), [t1, K] = B(!1), [Q, a1] = B(!1), [p1, c1] = B(null), [q, d1] = B(!1), e1 = $(null), r1 = $(null), N1 = $(null), x1 = $(null);
5236
+ const N = G(), B = C1(), [j, Z] = I(""), [W, J] = I(0), [t1, Y] = I(!1), [K, a1] = I(!1), [p1, c1] = I(null), [q, d1] = I(!1), e1 = $(null), r1 = $(null), N1 = $(null), x1 = $(null);
5237
5237
  z(
5238
5238
  () => () => {
5239
5239
  x1.current && clearTimeout(x1.current);
5240
5240
  },
5241
5241
  []
5242
5242
  );
5243
- const x = c != null, { tracking: y, setFocusChatInputFunction: M } = k1(), D = j(
5243
+ const L = c != null, { tracking: y, setFocusChatInputFunction: M } = k1(), D = _(
5244
5244
  (O, v1) => {
5245
5245
  y?.onWelcomeSuggestionClick?.({
5246
5246
  item: O,
@@ -5263,14 +5263,14 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5263
5263
  transientError: Ce,
5264
5264
  showTransientError: q1
5265
5265
  } = G2(C), l1 = K2({
5266
- inputValue: _,
5266
+ inputValue: j,
5267
5267
  setInputValue: Z,
5268
5268
  cursorPosition: W,
5269
5269
  searchPersons: w,
5270
5270
  textareaRef: r1
5271
- }), pe = $(""), me = j((O) => {
5272
- const v1 = pe.current, Y1 = v1 && !/\s$/.test(v1) ? " " : "", _1 = `${v1}${Y1}${O}`;
5273
- Z(_1), J(_1.length);
5271
+ }), pe = $(""), me = _((O) => {
5272
+ const v1 = pe.current, Y1 = v1 && !/\s$/.test(v1) ? " " : "", j1 = `${v1}${Y1}${O}`;
5273
+ Z(j1), J(j1.length);
5274
5274
  }, []), yr = {
5275
5275
  "permission-denied": N.ai.micPermissionDenied,
5276
5276
  "device-error": N.ai.micError,
@@ -5282,22 +5282,22 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5282
5282
  me(O), r1.current?.focus();
5283
5283
  },
5284
5284
  onError: (O) => q1(yr[O])
5285
- }), ge = !!h && g1.isSupported, we = j(() => {
5286
- y?.onDictationStart?.(), pe.current = _, g1.start();
5287
- }, [_, g1, y]), Mr = j(() => {
5285
+ }), ge = !!h && g1.isSupported, we = _(() => {
5286
+ y?.onDictationStart?.(), pe.current = j, g1.start();
5287
+ }, [j, g1, y]), Mr = _(() => {
5288
5288
  y?.onDictationCancel?.(), g1.cancel();
5289
5289
  }, [g1, y]);
5290
5290
  z(() => {
5291
5291
  S || typeof window < "u" && window.location.hash.length === 0 && r1.current?.focus();
5292
5292
  }, []), z(() => {
5293
- if (x) {
5293
+ if (L) {
5294
5294
  M(null);
5295
5295
  return;
5296
5296
  }
5297
5297
  return M(() => {
5298
5298
  r1.current?.focus();
5299
5299
  }), () => M(null);
5300
- }, [x, M]), z(() => {
5300
+ }, [L, M]), z(() => {
5301
5301
  if (v)
5302
5302
  return v((O) => {
5303
5303
  I1(O);
@@ -5305,9 +5305,9 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5305
5305
  v(null);
5306
5306
  };
5307
5307
  }, [v, I1]);
5308
- const ve = g1.status === "recording", Rr = ve ? N.ai.listening : N.ai.inputPlaceholder, Le = E.filter((O) => O.status === "uploaded"), P1 = E.some((O) => O.status === "uploading"), xe = E.some((O) => O.status === "error"), D1 = _.trim().length > 0 || Le.length > 0;
5308
+ const ve = g1.status === "recording", Rr = ve ? N.ai.listening : N.ai.inputPlaceholder, Le = E.filter((O) => O.status === "uploaded"), P1 = E.some((O) => O.status === "uploading"), xe = E.some((O) => O.status === "error"), D1 = j.trim().length > 0 || Le.length > 0;
5309
5309
  z(() => {
5310
- if (!(!Q || P1)) {
5310
+ if (!(!K || P1)) {
5311
5311
  if (a1(!1), xe) {
5312
5312
  q1(N.ai.fileUploadBlockedSubmit);
5313
5313
  return;
@@ -5315,14 +5315,14 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5315
5315
  e1.current?.requestSubmit();
5316
5316
  }
5317
5317
  }, [
5318
- Q,
5318
+ K,
5319
5319
  P1,
5320
5320
  xe,
5321
5321
  q1,
5322
5322
  N.ai.fileUploadBlockedSubmit
5323
5323
  ]);
5324
5324
  const Fr = async (O) => {
5325
- if (O.preventDefault(), !x) {
5325
+ if (O.preventDefault(), !L) {
5326
5326
  if (l1.close(), n)
5327
5327
  r?.();
5328
5328
  else if (D1 && !t1) {
@@ -5331,22 +5331,22 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5331
5331
  return;
5332
5332
  }
5333
5333
  if (o) {
5334
- K(!0);
5334
+ Y(!0);
5335
5335
  try {
5336
5336
  if (await o() === !1) {
5337
5337
  r1.current?.focus();
5338
5338
  return;
5339
5339
  }
5340
5340
  } finally {
5341
- K(!1);
5341
+ Y(!1);
5342
5342
  }
5343
5343
  }
5344
- const v1 = l1.transformMentions(_.trim()), Y1 = J2(v1), _1 = Le.flatMap(
5344
+ const v1 = l1.transformMentions(j.trim()), Y1 = J2(v1), j1 = Le.flatMap(
5345
5345
  (Te) => Te.uploadedFile ? [Te.uploadedFile] : []
5346
5346
  ), Se = d, Ve = f;
5347
5347
  Se && l?.(null), Ve && u?.(null), await e({
5348
5348
  text: Y1,
5349
- files: _1,
5349
+ files: j1,
5350
5350
  context: Se,
5351
5351
  quote: Ve
5352
5352
  }), Z(""), kr();
@@ -5354,16 +5354,16 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5354
5354
  r1.current?.focus();
5355
5355
  }
5356
5356
  }, Nr = (O) => {
5357
- x || l1.handleKeyDown(O) || O.key === "Enter" && !O.shiftKey && (O.preventDefault(), n || e1.current?.requestSubmit());
5357
+ L || l1.handleKeyDown(O) || O.key === "Enter" && !O.shiftKey && (O.preventDefault(), n || e1.current?.requestSubmit());
5358
5358
  }, Sr = () => {
5359
5359
  J(r1.current?.selectionStart ?? 0);
5360
5360
  }, Vr = () => {
5361
5361
  N1.current && r1.current && (N1.current.scrollTop = r1.current.scrollTop);
5362
- }, be = p1 ? p1.prompt ?? p1.title : null, ke = ve ? [N.ai.listening] : be ? [be] : s ?? [], Tr = ke.length > 1, Hr = X(() => Z2(_, l1.mentions, {
5362
+ }, be = p1 ? p1.prompt ?? p1.title : null, ke = ve ? [N.ai.listening] : be ? [be] : s ?? [], Tr = ke.length > 1, Hr = X(() => Z2(j, l1.mentions, {
5363
5363
  cursorPosition: W,
5364
5364
  inlineCompletion: l1.inlineCompletion
5365
- }), [_, l1.mentions, W, l1.inlineCompletion]), Ar = l1.mentions.length > 0 || l1.inlineCompletion !== null, T1 = L === "inside", H1 = R && !!T && T.length > 0 && !!F ? /* @__PURE__ */ t(
5366
- j2,
5365
+ }), [j, l1.mentions, W, l1.inlineCompletion]), Ar = l1.mentions.length > 0 || l1.inlineCompletion !== null, T1 = x === "inside", H1 = R && !!T && T.length > 0 && !!F ? /* @__PURE__ */ t(
5366
+ _2,
5367
5367
  {
5368
5368
  suggestions: T,
5369
5369
  onItemClick: D,
@@ -5376,14 +5376,14 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5376
5376
  x1.current && clearTimeout(x1.current), x1.current = setTimeout(() => {
5377
5377
  Er(document.activeElement) || d1(!1);
5378
5378
  }, 0);
5379
- }, j1 = T1, Me = j1 && S, X1 = Me && !ye, Br = j1 && H1 ? (
5379
+ }, _1 = T1, Me = _1 && S, X1 = Me && !ye, Br = _1 && H1 ? (
5380
5380
  // Clicks are STOPPED here rather than bubbling to the form, whose onClick
5381
5381
  // focuses the textarea — the same guard `toolbarStart` takes. Without it,
5382
5382
  // pressing a chip would pull focus off the trigger and break the popover's
5383
5383
  // own Escape-restores-focus handling.
5384
5384
  /* @__PURE__ */ t("div", { onClick: (O) => O.stopPropagation(), children: H1 })
5385
5385
  ) : void 0, Re = {
5386
- duration: I ? 0 : 0.32,
5386
+ duration: B ? 0 : 0.32,
5387
5387
  ease: [0.4, 0, 0.2, 1]
5388
5388
  }, Fe = /* @__PURE__ */ t(
5389
5389
  x2,
@@ -5398,7 +5398,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5398
5398
  handleFileSelect: W1,
5399
5399
  inProgress: n,
5400
5400
  hasDataToSend: D1,
5401
- isPreSending: t1 || Q,
5401
+ isPreSending: t1 || K,
5402
5402
  canRecord: ge,
5403
5403
  recordingStatus: g1.status,
5404
5404
  recordingStream: g1.stream,
@@ -5412,7 +5412,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5412
5412
  0.5
5413
5413
  );
5414
5414
  return /* @__PURE__ */ i(
5415
- Y.div,
5415
+ Q.div,
5416
5416
  {
5417
5417
  ref: A,
5418
5418
  className: b(
@@ -5426,7 +5426,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5426
5426
  children: [
5427
5427
  /* @__PURE__ */ i("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
5428
5428
  H1 && !T1 && /* @__PURE__ */ t("div", { children: S ? /* @__PURE__ */ t(L1, { initial: !1, children: ye && /* @__PURE__ */ t(
5429
- Y.div,
5429
+ Q.div,
5430
5430
  {
5431
5431
  className: "overflow-hidden",
5432
5432
  initial: { opacity: 0, height: 0 },
@@ -5438,7 +5438,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5438
5438
  "welcome-suggestions"
5439
5439
  ) }) : H1 }),
5440
5440
  /* @__PURE__ */ t(M2, { creditWarning: a, children: /* @__PURE__ */ i(
5441
- Y.form,
5441
+ "form",
5442
5442
  {
5443
5443
  "aria-busy": n,
5444
5444
  ref: e1,
@@ -5467,21 +5467,12 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5467
5467
  "from-[#E55619] via-[#A1ADE5] to-[#E51943]",
5468
5468
  "after:transition-opacity after:delay-200 after:duration-300",
5469
5469
  "has-[textarea:focus]:after:opacity-100",
5470
- x && "after:opacity-100 border-f1-background-tertiary"
5470
+ !B && !L && "after:[animation:rotate-gradient_6s_linear_infinite_paused] has-[textarea:focus]:after:[animation:rotate-gradient_6s_linear_infinite_running]",
5471
+ !B && L && "after:[animation:rotate-gradient_6s_linear_infinite_running]",
5472
+ L && "after:opacity-100 border-f1-background-tertiary"
5471
5473
  ),
5472
- animate: {
5473
- "--gradient-angle": ["0deg", "360deg"]
5474
- },
5475
- transition: {
5476
- duration: 6,
5477
- ease: "linear",
5478
- repeat: 1 / 0
5479
- },
5480
- style: {
5481
- "--gradient-angle": "180deg"
5482
- },
5483
5474
  onClick: () => {
5484
- x || r1.current?.focus();
5475
+ L || r1.current?.focus();
5485
5476
  },
5486
5477
  onFocus: () => d1(!0),
5487
5478
  onBlur: $r,
@@ -5498,8 +5489,8 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5498
5489
  onSelect: l1.selectPerson
5499
5490
  }
5500
5491
  ),
5501
- /* @__PURE__ */ t(L1, { initial: !1, children: x ? /* @__PURE__ */ t(
5502
- Y.div,
5492
+ /* @__PURE__ */ t(L1, { initial: !1, children: L ? /* @__PURE__ */ t(
5493
+ Q.div,
5503
5494
  {
5504
5495
  className: "overflow-hidden",
5505
5496
  initial: { height: 0, opacity: 0 },
@@ -5508,19 +5499,19 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5508
5499
  height: 0,
5509
5500
  opacity: 0,
5510
5501
  transition: {
5511
- duration: I ? 0 : 0.22,
5502
+ duration: B ? 0 : 0.22,
5512
5503
  ease: [0.4, 0, 1, 1]
5513
5504
  }
5514
5505
  },
5515
5506
  transition: {
5516
- duration: I ? 0 : 0.4,
5507
+ duration: B ? 0 : 0.4,
5517
5508
  ease: [0.4, 0, 0.2, 1]
5518
5509
  },
5519
5510
  children: c
5520
5511
  },
5521
5512
  "clarifying"
5522
5513
  ) : /* @__PURE__ */ i(
5523
- Y.div,
5514
+ Q.div,
5524
5515
  {
5525
5516
  className: "overflow-hidden",
5526
5517
  initial: { height: 0, opacity: 0 },
@@ -5529,12 +5520,12 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5529
5520
  height: 0,
5530
5521
  opacity: 0,
5531
5522
  transition: {
5532
- duration: I ? 0 : 0.15,
5523
+ duration: B ? 0 : 0.15,
5533
5524
  ease: [0.55, 0, 1, 0.45]
5534
5525
  }
5535
5526
  },
5536
5527
  transition: {
5537
- duration: I ? 0 : 0.4,
5528
+ duration: B ? 0 : 0.4,
5538
5529
  ease: [0.4, 0, 0.2, 1]
5539
5530
  },
5540
5531
  children: [
@@ -5546,7 +5537,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5546
5537
  }
5547
5538
  ),
5548
5539
  /* @__PURE__ */ t(L1, { initial: !1, children: Ce && /* @__PURE__ */ t(
5549
- Y.div,
5540
+ Q.div,
5550
5541
  {
5551
5542
  role: "alert",
5552
5543
  "aria-live": "polite",
@@ -5555,7 +5546,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5555
5546
  animate: { opacity: 1, y: 0 },
5556
5547
  exit: { opacity: 0, y: -4 },
5557
5548
  transition: {
5558
- duration: I ? 0 : 0.2,
5549
+ duration: B ? 0 : 0.2,
5559
5550
  ease: "easeOut"
5560
5551
  },
5561
5552
  children: /* @__PURE__ */ i(
@@ -5587,17 +5578,17 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5587
5578
  "div",
5588
5579
  {
5589
5580
  className: b(
5590
- j1 && "flex items-end",
5581
+ _1 && "flex items-end",
5591
5582
  X1 && "pr-3"
5592
5583
  ),
5593
5584
  children: [
5594
- j1 && /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(Vt, { size: "sm", spin: n }) }),
5585
+ _1 && /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(Vt, { size: "sm", spin: n }) }),
5595
5586
  /* @__PURE__ */ t(
5596
5587
  S2,
5597
5588
  {
5598
5589
  textareaRef: r1,
5599
5590
  highlightRef: N1,
5600
- inputValue: _,
5591
+ inputValue: j,
5601
5592
  onInputChange: (O, v1) => {
5602
5593
  Z(O), J(v1);
5603
5594
  },
@@ -5646,7 +5637,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5646
5637
  {
5647
5638
  inProgress: n,
5648
5639
  hasDataToSend: D1,
5649
- isPreSending: t1 || Q,
5640
+ isPreSending: t1 || K,
5650
5641
  recordingStatus: g1.status,
5651
5642
  size: "sm"
5652
5643
  }
@@ -5658,7 +5649,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5658
5649
  }
5659
5650
  ),
5660
5651
  Me ? /* @__PURE__ */ t(L1, { initial: !1, children: !X1 && /* @__PURE__ */ t(
5661
- Y.div,
5652
+ Q.div,
5662
5653
  {
5663
5654
  className: "overflow-hidden",
5664
5655
  initial: { opacity: 0, height: 0 },
@@ -5679,8 +5670,8 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5679
5670
  ] }),
5680
5671
  Ir && /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(T2, { cards: V }) }),
5681
5672
  k && R && H && /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: k }),
5682
- /* @__PURE__ */ t(L1, { mode: "wait", initial: !1, children: x ? /* @__PURE__ */ i(
5683
- Y.div,
5673
+ /* @__PURE__ */ t(L1, { mode: "wait", initial: !1, children: L ? /* @__PURE__ */ i(
5674
+ Q.div,
5684
5675
  {
5685
5676
  className: "flex w-full max-w-content flex-row flex-wrap items-center justify-center gap-x-3 gap-y-1 text-sm font-medium text-f1-foreground-tertiary",
5686
5677
  initial: { opacity: 0 },
@@ -5707,14 +5698,14 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
5707
5698
  },
5708
5699
  "clarifying-nav-hint"
5709
5700
  ) : p?.text && !Ne && /* @__PURE__ */ i(
5710
- Y.div,
5701
+ Q.div,
5711
5702
  {
5712
5703
  className: "flex w-full max-w-content flex-row items-center justify-center gap-1",
5713
5704
  initial: { opacity: 0 },
5714
5705
  animate: { opacity: 1 },
5715
5706
  exit: { opacity: 0 },
5716
5707
  transition: {
5717
- duration: I ? 0 : 0.3,
5708
+ duration: B ? 0 : 0.3,
5718
5709
  ease: "easeOut"
5719
5710
  },
5720
5711
  children: [
@@ -5906,7 +5897,7 @@ function d6({
5906
5897
  title: r,
5907
5898
  ...n
5908
5899
  }) {
5909
- const o = G(), s = $(null), a = j(
5900
+ const o = G(), s = $(null), a = _(
5910
5901
  (c) => {
5911
5902
  if (!s.current) return;
5912
5903
  const d = r?.replace(/\s+/g, "_").toLowerCase() || "table";
@@ -6067,13 +6058,13 @@ function S1({
6067
6058
  mapToCard: o,
6068
6059
  fallbackCard: s
6069
6060
  }) {
6070
- const a = $(/* @__PURE__ */ new Map()), [c, d] = B(
6061
+ const a = $(/* @__PURE__ */ new Map()), [c, d] = I(
6071
6062
  () => a.current.get(e) ?? null
6072
- ), [l, f] = B(!1), [u, C] = B(!1), g = $(!0);
6063
+ ), [l, f] = I(!1), [u, C] = I(!1), g = $(!0);
6073
6064
  z(() => () => {
6074
6065
  g.current = !1;
6075
6066
  }, []);
6076
- const h = j(() => {
6067
+ const h = _(() => {
6077
6068
  if (c || l) return;
6078
6069
  const v = a.current.get(e);
6079
6070
  if (v) {
@@ -6612,7 +6603,7 @@ const he = z1(null);
6612
6603
  function El({
6613
6604
  children: e
6614
6605
  }) {
6615
- const [r, n] = B(0), o = $([]), s = j(
6606
+ const [r, n] = I(0), o = $([]), s = _(
6616
6607
  (c) => {
6617
6608
  const d = o.current, l = d.findIndex(
6618
6609
  (u) => u.formName === c.formName && u.customFieldName === c.customFieldName
@@ -6672,7 +6663,7 @@ function Pe(e) {
6672
6663
  function De(e) {
6673
6664
  return (e instanceof Date ? e : new Date(e)).toLocaleDateString();
6674
6665
  }
6675
- function je(e) {
6666
+ function _e(e) {
6676
6667
  return e.type === "item" ? e.text : "";
6677
6668
  }
6678
6669
  function or(e, r) {
@@ -6694,7 +6685,7 @@ function or(e, r) {
6694
6685
  if (Array.isArray(e))
6695
6686
  return { type: "item", text: e.map((o) => {
6696
6687
  const s = or(o);
6697
- return Array.isArray(s) ? s.map(je).join(", ") : je(s);
6688
+ return Array.isArray(s) ? s.map(_e).join(", ") : _e(s);
6698
6689
  }).filter(Boolean).join(", ") || "—" };
6699
6690
  if (typeof e == "object" && e !== null) {
6700
6691
  const n = e;
@@ -6724,23 +6715,23 @@ function sr({
6724
6715
  h.current = k, z(() => {
6725
6716
  typeof window > "u" || window.innerWidth < V6 || Ie.has(e) || (Ie.add(e), h.current());
6726
6717
  }, [e]);
6727
- const R = a && c ? Object.entries(a).map(([F, L]) => {
6718
+ const R = a && c ? Object.entries(a).map(([F, x]) => {
6728
6719
  const S = c[F], V = g?.(F, S, {
6729
- fieldType: L.fieldType,
6730
- customFieldName: L.customFieldName
6720
+ fieldType: x.fieldType,
6721
+ customFieldName: x.customFieldName
6731
6722
  });
6732
- if (!V && L.fieldType === "custom" && typeof S == "object" && S !== null)
6723
+ if (!V && x.fieldType === "custom" && typeof S == "object" && S !== null)
6733
6724
  return null;
6734
- const P = V ?? or(S, L.fieldType), A = ["richtext", "textarea"];
6725
+ const P = V ?? or(S, x.fieldType), A = ["richtext", "textarea"];
6735
6726
  return {
6736
- label: L.label,
6727
+ label: x.label,
6737
6728
  content: P,
6738
- verticalLayout: A.includes(L.fieldType ?? "")
6729
+ verticalLayout: A.includes(x.fieldType ?? "")
6739
6730
  };
6740
6731
  }).filter((F) => {
6741
6732
  if (!F) return !1;
6742
- const L = Array.isArray(F.content) ? F.content[0] : F.content;
6743
- return !(L?.type === "item" && L.text === "—");
6733
+ const x = Array.isArray(F.content) ? F.content[0] : F.content;
6734
+ return !(x?.type === "item" && x.text === "—");
6744
6735
  }) : [], H = R.slice(0, Be), T = R.length > Be;
6745
6736
  return /* @__PURE__ */ t(
6746
6737
  nr,
@@ -6805,7 +6796,7 @@ function ar({
6805
6796
  containerRef: e,
6806
6797
  enabled: r = !0
6807
6798
  }) {
6808
- const [n, o] = B(null), s = j(() => o(null), []);
6799
+ const [n, o] = I(null), s = _(() => o(null), []);
6809
6800
  return z(() => {
6810
6801
  if (!r || typeof window > "u") return;
6811
6802
  const a = e.current;
@@ -6828,9 +6819,9 @@ function ar({
6828
6819
  };
6829
6820
  }, [e, r]), { anchor: n, clear: s };
6830
6821
  }
6831
- const _e = 8, A1 = 8;
6822
+ const je = 8, A1 = 8;
6832
6823
  function ir({ anchor: e, onReply: r }) {
6833
- const n = G(), o = $(null), [s, a] = B(
6824
+ const n = G(), o = $(null), [s, a] = I(
6834
6825
  null
6835
6826
  );
6836
6827
  if (re(() => {
@@ -6841,8 +6832,8 @@ function ir({ anchor: e, onReply: r }) {
6841
6832
  const d = o.current;
6842
6833
  if (!d) return;
6843
6834
  const l = d.offsetWidth, f = d.offsetHeight, u = window.innerWidth, C = window.innerHeight;
6844
- let g = e.rect.top - f - _e;
6845
- g < A1 && (g = e.rect.bottom + _e), g = Math.min(
6835
+ let g = e.rect.top - f - je;
6836
+ g < A1 && (g = e.rect.bottom + je), g = Math.min(
6846
6837
  Math.max(g, A1),
6847
6838
  C - f - A1
6848
6839
  );
@@ -6853,7 +6844,7 @@ function ir({ anchor: e, onReply: r }) {
6853
6844
  a({ top: g, left: w });
6854
6845
  }, [e]), typeof document > "u" || !e) return null;
6855
6846
  const c = n.ai.reply;
6856
- return _t(
6847
+ return jt(
6857
6848
  /* @__PURE__ */ t(
6858
6849
  "div",
6859
6850
  {
@@ -6926,7 +6917,7 @@ const lr = z1(void 0), Bl = () => $1(lr), I6 = (e) => /* @__PURE__ */ t(At, { co
6926
6917
  reactionType: n,
6927
6918
  message: o
6928
6919
  }) => {
6929
- const [s, a] = B(""), c = G(), { title: d, label: l, placeholder: f } = n === "like" ? c.ai.feedbackModal.positive : c.ai.feedbackModal.negative, u = j(() => {
6920
+ const [s, a] = I(""), c = G(), { title: d, label: l, placeholder: f } = n === "like" ? c.ai.feedbackModal.positive : c.ai.feedbackModal.negative, u = _(() => {
6930
6921
  r(o, s);
6931
6922
  }, [s, o, r]), C = () => {
6932
6923
  e(o);
@@ -6969,8 +6960,8 @@ const lr = z1(void 0), Bl = () => $1(lr), I6 = (e) => /* @__PURE__ */ t(At, { co
6969
6960
  ) })
6970
6961
  }
6971
6962
  );
6972
- }, cr = z1(null), j6 = ({ children: e }) => {
6973
- const [r, n] = B(null), o = r ? {
6963
+ }, cr = z1(null), _6 = ({ children: e }) => {
6964
+ const [r, n] = I(null), o = r ? {
6974
6965
  isOpen: !0,
6975
6966
  currentReaction: r.action,
6976
6967
  currentMessage: r.message,
@@ -6992,7 +6983,7 @@ const lr = z1(void 0), Bl = () => $1(lr), I6 = (e) => /* @__PURE__ */ t(At, { co
6992
6983
  );
6993
6984
  return e;
6994
6985
  };
6995
- function _6(e) {
6986
+ function j6(e) {
6996
6987
  const r = dr();
6997
6988
  return { modal: r, handleSubmit: (s, a) => {
6998
6989
  (r.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: a }), r.close();
@@ -7005,7 +6996,7 @@ const Z6 = ({
7005
6996
  targetMessage: r,
7006
6997
  onCopy: n
7007
6998
  }) => {
7008
- const o = G(), { open: s } = dr(), [a, c] = B(null);
6999
+ const o = G(), { open: s } = dr(), [a, c] = I(null);
7009
7000
  return /* @__PURE__ */ i("div", { className: "flex", children: [
7010
7001
  /* @__PURE__ */ t(
7011
7002
  cs,
@@ -7070,7 +7061,7 @@ const Z6 = ({
7070
7061
  onOpenChange: a,
7071
7062
  lockOpen: c = !1
7072
7063
  }) => {
7073
- const [d, l] = B(s), f = C1(), u = o !== void 0, C = u ? o : d;
7064
+ const [d, l] = I(s), f = C1(), u = o !== void 0, C = u ? o : d;
7074
7065
  return /* @__PURE__ */ i(
7075
7066
  Et,
7076
7067
  {
@@ -7096,7 +7087,7 @@ const Z6 = ({
7096
7087
  }
7097
7088
  ),
7098
7089
  /* @__PURE__ */ t(Bt, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
7099
- Y.div,
7090
+ Q.div,
7100
7091
  {
7101
7092
  initial: !1,
7102
7093
  animate: {
@@ -7121,7 +7112,7 @@ const Z6 = ({
7121
7112
  inProgress: n,
7122
7113
  isWriting: o
7123
7114
  }) => {
7124
- const s = G(), [a, c] = B(!!n), d = $(n);
7115
+ const s = G(), [a, c] = I(!!n), d = $(n);
7125
7116
  z(() => {
7126
7117
  d.current && !n ? c(!1) : n && !a && c(!0), d.current = n;
7127
7118
  }, [n, a]);
@@ -7241,7 +7232,7 @@ const ur = (e) => /* @__PURE__ */ t(At, { content: e, format: "markdown" }), W6
7241
7232
  onClick: s,
7242
7233
  fullscreen: a = !1
7243
7234
  }) => {
7244
- const [c, d] = B(0), [l, f] = B(0), [u, C] = B("starting"), g = C1(), h = e[c] ?? "", w = e.join("\0"), v = $(!0);
7235
+ const [c, d] = I(0), [l, f] = I(0), [u, C] = I("starting"), g = C1(), h = e[c] ?? "", w = e.join("\0"), v = $(!0);
7245
7236
  z(() => {
7246
7237
  if (v.current) {
7247
7238
  v.current = !1;
@@ -7324,9 +7315,9 @@ function t4({
7324
7315
  turnsCount: s,
7325
7316
  freezeTurnMinHeight: a = !1
7326
7317
  }) {
7327
- const [c, d] = B(0), [l, f] = B(!1), u = $(s), C = $(a);
7318
+ const [c, d] = I(0), [l, f] = I(!1), u = $(s), C = $(a);
7328
7319
  C.current = a;
7329
- const g = j(
7320
+ const g = _(
7330
7321
  (w = "smooth") => {
7331
7322
  n.current?.scrollIntoView({ behavior: w });
7332
7323
  },
@@ -7342,7 +7333,7 @@ function t4({
7342
7333
  });
7343
7334
  return p.observe(w), p.observe(v), () => p.disconnect();
7344
7335
  }, [e, r]);
7345
- const h = j(() => {
7336
+ const h = _(() => {
7346
7337
  const w = e.current;
7347
7338
  if (!w) return;
7348
7339
  const { scrollTop: v, scrollHeight: p, clientHeight: k } = w, R = p - v - k;
@@ -7369,7 +7360,7 @@ const r4 = {
7369
7360
  },
7370
7361
  onThumbsDown: () => {
7371
7362
  }
7372
- }, Il = (e) => /* @__PURE__ */ t(j6, { children: /* @__PURE__ */ t(n4, { ...e }) }), n4 = ({
7363
+ }, Il = (e) => /* @__PURE__ */ t(_6, { children: /* @__PURE__ */ t(n4, { ...e }) }), n4 = ({
7373
7364
  turns: e,
7374
7365
  isLoadingThread: r = !1,
7375
7366
  interrupt: n,
@@ -7393,16 +7384,16 @@ const r4 = {
7393
7384
  onRegenerate: T,
7394
7385
  onCopy: F
7395
7386
  }) => {
7396
- const { modal: L, handleSubmit: S, handleClose: V } = _6(
7387
+ const { modal: x, handleSubmit: S, handleClose: V } = j6(
7397
7388
  h ?? r4
7398
- ), P = G(), A = R ?? P6, N = H ?? q6, I = X(() => {
7389
+ ), P = G(), A = R ?? P6, N = H ?? q6, B = X(() => {
7399
7390
  const q = o ?? P.ai.defaultInitialMessage;
7400
7391
  return (Array.isArray(q) ? q : [q]).filter((e1) => typeof e1 == "string" && e1.length > 0);
7401
- }, [o, P.ai.defaultInitialMessage]), _ = !r && e.length === 0 && I.length > 0, Z = $(null), W = $(null), J = $(null), t1 = $(null), K = $(null), { showScrollBtn: Q, turnMinHeight: a1, scrollToBottom: p1 } = t4({
7392
+ }, [o, P.ai.defaultInitialMessage]), j = !r && e.length === 0 && B.length > 0, Z = $(null), W = $(null), J = $(null), t1 = $(null), Y = $(null), { showScrollBtn: K, turnMinHeight: a1, scrollToBottom: p1 } = t4({
7402
7393
  viewportRef: Z,
7403
7394
  contentRef: W,
7404
7395
  endRef: J,
7405
- lastTurnRef: K,
7396
+ lastTurnRef: Y,
7406
7397
  turnsCount: e.length,
7407
7398
  freezeTurnMinHeight: w
7408
7399
  }), c1 = (q, d1) => {
@@ -7412,9 +7403,9 @@ const r4 = {
7412
7403
  onRendered: u,
7413
7404
  autoScrollIntoView: C,
7414
7405
  renderMarkdown: g
7415
- }, N1 = (x, y) => {
7406
+ }, N1 = (L, y) => {
7416
7407
  const M = {
7417
- message: x,
7408
+ message: L,
7418
7409
  inProgress: q.isInProgress,
7419
7410
  index: y,
7420
7411
  isCurrentMessage: !1,
@@ -7422,7 +7413,7 @@ const r4 = {
7422
7413
  UserMessage: N,
7423
7414
  onRegenerate: T,
7424
7415
  onCopy: F,
7425
- rawData: x.rawData || {},
7416
+ rawData: L.rawData || {},
7426
7417
  ...r1
7427
7418
  };
7428
7419
  return /* @__PURE__ */ t(
@@ -7432,9 +7423,9 @@ const r4 = {
7432
7423
  },
7433
7424
  `${d1}-u-${y}`
7434
7425
  );
7435
- }, x1 = (x, y) => {
7426
+ }, x1 = (L, y) => {
7436
7427
  const M = e1 && y === q.assistantMessages.length - 1, D = q.userMessages.length + y, E = {
7437
- message: x,
7428
+ message: L,
7438
7429
  inProgress: q.isInProgress,
7439
7430
  index: D,
7440
7431
  isCurrentMessage: M,
@@ -7442,7 +7433,7 @@ const r4 = {
7442
7433
  UserMessage: N,
7443
7434
  onRegenerate: T,
7444
7435
  onCopy: F,
7445
- rawData: x.rawData || {},
7436
+ rawData: L.rawData || {},
7446
7437
  ...r1
7447
7438
  };
7448
7439
  return /* @__PURE__ */ t(
@@ -7450,7 +7441,7 @@ const r4 = {
7450
7441
  {
7451
7442
  ...E,
7452
7443
  isGenerating: q.isInProgress && M,
7453
- isLoading: q.isInProgress && M && !x.content
7444
+ isLoading: q.isInProgress && M && !L.content
7454
7445
  },
7455
7446
  `${d1}-a-${y}`
7456
7447
  );
@@ -7458,7 +7449,7 @@ const r4 = {
7458
7449
  return /* @__PURE__ */ i(
7459
7450
  "div",
7460
7451
  {
7461
- ref: e1 ? K : void 0,
7452
+ ref: e1 ? Y : void 0,
7462
7453
  className: b(
7463
7454
  "flex flex-col items-start justify-start gap-2 px-1",
7464
7455
  e1 && "pb-5"
@@ -7468,7 +7459,7 @@ const r4 = {
7468
7459
  },
7469
7460
  children: [
7470
7461
  q.userMessages.map(
7471
- (x, y) => N1(x, y)
7462
+ (L, y) => N1(L, y)
7472
7463
  ),
7473
7464
  q.thinking && q.thinking.titles.length > 0 && /* @__PURE__ */ t(
7474
7465
  U6,
@@ -7480,7 +7471,7 @@ const r4 = {
7480
7471
  }
7481
7472
  ),
7482
7473
  q.assistantMessages.map(
7483
- (x, y) => x1(x, y)
7474
+ (L, y) => x1(L, y)
7484
7475
  ),
7485
7476
  q.endIndicator === "thinking" && /* @__PURE__ */ t(J1, { title: P.ai.thinking, status: "executing" }),
7486
7477
  q.endIndicator === "activity" && /* @__PURE__ */ t(J1, { status: "writing" }),
@@ -7522,15 +7513,15 @@ const r4 = {
7522
7513
  "div",
7523
7514
  {
7524
7515
  className: b(
7525
- _ ? "flex flex-1" : "flex flex-col gap-6",
7516
+ j ? "flex flex-1" : "flex flex-col gap-6",
7526
7517
  "w-full max-w-content"
7527
7518
  ),
7528
7519
  children: [
7529
7520
  r && /* @__PURE__ */ t(o4, {}),
7530
- _ && /* @__PURE__ */ t(
7521
+ j && /* @__PURE__ */ t(
7531
7522
  e4,
7532
7523
  {
7533
- messages: I,
7524
+ messages: B,
7534
7525
  caption: s,
7535
7526
  subtitle: a,
7536
7527
  cta: c,
@@ -7545,8 +7536,8 @@ const r4 = {
7545
7536
  ),
7546
7537
  /* @__PURE__ */ t("div", { ref: t1, className: "h-px shrink-0", "aria-hidden": !0 }),
7547
7538
  /* @__PURE__ */ t("footer", { className: "copilotKitMessagesFooter", ref: J, children: k }),
7548
- /* @__PURE__ */ t(L1, { children: Q && /* @__PURE__ */ t(
7549
- Y.div,
7539
+ /* @__PURE__ */ t(L1, { children: K && /* @__PURE__ */ t(
7540
+ Q.div,
7550
7541
  {
7551
7542
  className: "sticky bottom-2 z-10 flex justify-center",
7552
7543
  initial: { opacity: 0, scale: 0.8 },
@@ -7570,18 +7561,18 @@ const r4 = {
7570
7561
  )
7571
7562
  }
7572
7563
  ),
7573
- !v && !_ && /* @__PURE__ */ i(R1, { children: [
7564
+ !v && !j && /* @__PURE__ */ i(R1, { children: [
7574
7565
  /* @__PURE__ */ t(Ae, { position: "top" }, "shadow-top"),
7575
7566
  /* @__PURE__ */ t(Ae, { position: "bottom" }, "shadow-bottom")
7576
7567
  ] })
7577
7568
  ] }),
7578
- L.isOpen && /* @__PURE__ */ t(
7569
+ x.isOpen && /* @__PURE__ */ t(
7579
7570
  D6,
7580
7571
  {
7581
7572
  onSubmit: S,
7582
7573
  onClose: V,
7583
- reactionType: L.currentReaction,
7584
- message: L.currentMessage
7574
+ reactionType: x.currentReaction,
7575
+ message: x.currentMessage
7585
7576
  }
7586
7577
  )
7587
7578
  ] });
@@ -7599,7 +7590,7 @@ function Dl({
7599
7590
  }) {
7600
7591
  return /* @__PURE__ */ t(fr.Provider, { value: r, children: e });
7601
7592
  }
7602
- function jl() {
7593
+ function _l() {
7603
7594
  const e = $1(fr);
7604
7595
  if (e === null)
7605
7596
  throw new Error(
@@ -7611,7 +7602,7 @@ function s4() {
7611
7602
  const { canvasEntities: e } = k1();
7612
7603
  return e;
7613
7604
  }
7614
- function _l(e) {
7605
+ function jl(e) {
7615
7606
  const r = s4();
7616
7607
  if (!(!e || !r))
7617
7608
  return r[e];
@@ -7790,11 +7781,11 @@ const l4 = ({
7790
7781
  if (e !== "single") return 0;
7791
7782
  const S = n.findIndex((V) => o.includes(V.id));
7792
7783
  return S >= 0 ? S : 0;
7793
- })(), [H, T] = B(R), F = $([]);
7784
+ })(), [H, T] = I(R), F = $([]);
7794
7785
  z(() => {
7795
7786
  C && e === "single" && F.current[H]?.focus();
7796
7787
  }, []);
7797
- const L = (S) => {
7788
+ const x = (S) => {
7798
7789
  if (e !== "single") return;
7799
7790
  const V = n.length - 1;
7800
7791
  if (V < 0) return;
@@ -7827,7 +7818,7 @@ const l4 = ({
7827
7818
  "aria-label": r,
7828
7819
  children: [
7829
7820
  n.map((S, V) => /* @__PURE__ */ t(
7830
- Y.div,
7821
+ Q.div,
7831
7822
  {
7832
7823
  initial: k ? !1 : { opacity: 0, y: 4 },
7833
7824
  animate: { opacity: 1, y: 0 },
@@ -7847,7 +7838,7 @@ const l4 = ({
7847
7838
  mode: e,
7848
7839
  isTabStop: e === "single" ? V === H : void 0,
7849
7840
  onToggle: g,
7850
- onKeyNavigate: L
7841
+ onKeyNavigate: x
7851
7842
  }
7852
7843
  )
7853
7844
  },
@@ -7964,18 +7955,18 @@ const l4 = ({
7964
7955
  optional: H,
7965
7956
  allowCustomAnswer: T,
7966
7957
  customAnswerText: F,
7967
- isCustomAnswerActive: L
7968
- } = s, S = $(null), V = R ?? "single", P = c > 1, A = a === 0, N = a === c - 1, I = P ? n.t("ai.clarifyingQuestion.stepOf", {
7958
+ isCustomAnswerActive: x
7959
+ } = s, S = $(null), V = R ?? "single", P = c > 1, A = a === 0, N = a === c - 1, B = P ? n.t("ai.clarifyingQuestion.stepOf", {
7969
7960
  current: String(a + 1),
7970
7961
  total: String(c)
7971
- }) : void 0, _ = k.length > 0, Z = (F ?? "").trim().length > 0, W = _ || L && Z || H === !0, J = r === !0 && N, t1 = () => {
7962
+ }) : void 0, j = k.length > 0, Z = (F ?? "").trim().length > 0, W = j || x && Z || H === !0, J = r === !0 && N, t1 = () => {
7972
7963
  J || l();
7973
- }, K = () => {
7964
+ }, Y = () => {
7974
7965
  J || f();
7975
- }, Q = (e1) => {
7966
+ }, K = (e1) => {
7976
7967
  const r1 = V === "single" && k.includes(e1);
7977
7968
  d(e1), V === "single" && !N && !r1 && Promise.resolve().then(l);
7978
- }, a1 = N ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, p1 = H === !0 && !_ && !(L && Z), c1 = () => {
7969
+ }, a1 = N ? n.ai.clarifyingQuestion.submit : n.ai.clarifyingQuestion.next, p1 = H === !0 && !j && !(x && Z), c1 = () => {
7979
7970
  w(), requestAnimationFrame(() => {
7980
7971
  S.current?.focus();
7981
7972
  });
@@ -7984,7 +7975,7 @@ const l4 = ({
7984
7975
  }, d1 = o ? 0 : u4 / 2;
7985
7976
  return /* @__PURE__ */ i("div", { className: "flex flex-col", onKeyDown: q, children: [
7986
7977
  /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 pt-3", children: /* @__PURE__ */ t(L1, { mode: "wait", initial: !1, children: /* @__PURE__ */ i(
7987
- Y.div,
7978
+ Q.div,
7988
7979
  {
7989
7980
  className: "flex flex-col gap-3",
7990
7981
  initial: { opacity: 0 },
@@ -7996,7 +7987,7 @@ const l4 = ({
7996
7987
  c4,
7997
7988
  {
7998
7989
  question: v,
7999
- stepLabel: I,
7990
+ stepLabel: B,
8000
7991
  isFirstStep: A,
8001
7992
  isFinalStep: N,
8002
7993
  canProceed: W,
@@ -8013,13 +8004,13 @@ const l4 = ({
8013
8004
  options: p,
8014
8005
  selectedOptionIds: k,
8015
8006
  allowCustomAnswer: T,
8016
- hasSelection: _,
8007
+ hasSelection: j,
8017
8008
  hasCustomText: Z,
8018
8009
  customAnswerText: F,
8019
- isCustomAnswerActive: L,
8010
+ isCustomAnswerActive: x,
8020
8011
  canProceed: W,
8021
8012
  customInputRef: S,
8022
- onToggleOption: Q,
8013
+ onToggleOption: K,
8023
8014
  onActivateCustom: c1,
8024
8015
  onChangeCustomText: g,
8025
8016
  onToggleCustomActive: h,
@@ -8037,25 +8028,25 @@ const l4 = ({
8037
8028
  submitDisabled: J,
8038
8029
  label: a1,
8039
8030
  onConfirm: t1,
8040
- onSkip: K,
8031
+ onSkip: Y,
8041
8032
  showSkip: p1
8042
8033
  }
8043
8034
  )
8044
8035
  ] });
8045
8036
  };
8046
8037
  function Oe(e, r, n, o) {
8047
- const s = Math.max(1, Math.min(e, r)), a = Math.min(n, 20), d = Math.min(a + o, s), l = Math.min(d, Math.floor(e / 2)), f = Math.min(d, Math.floor(r / 2)), u = (c1) => c1 / e * 2 - 1, C = (c1) => c1 / r * 2 - 1, g = 0, h = e, w = 0, v = r, p = l, k = e - l, R = f, H = r - f, T = u(g), F = u(h), L = C(w), S = C(v), V = u(p), P = u(k), A = C(R), N = C(H), I = 0, _ = 0, Z = 1, W = 1, J = l / e, t1 = 1 - l / e, K = f / r, Q = 1 - f / r, a1 = new Float32Array([
8038
+ const s = Math.max(1, Math.min(e, r)), a = Math.min(n, 20), d = Math.min(a + o, s), l = Math.min(d, Math.floor(e / 2)), f = Math.min(d, Math.floor(r / 2)), u = (c1) => c1 / e * 2 - 1, C = (c1) => c1 / r * 2 - 1, g = 0, h = e, w = 0, v = r, p = l, k = e - l, R = f, H = r - f, T = u(g), F = u(h), x = C(w), S = C(v), V = u(p), P = u(k), A = C(R), N = C(H), B = 0, j = 0, Z = 1, W = 1, J = l / e, t1 = 1 - l / e, Y = f / r, K = 1 - f / r, a1 = new Float32Array([
8048
8039
  // Top strip
8049
8040
  T,
8050
- L,
8041
+ x,
8051
8042
  F,
8052
- L,
8043
+ x,
8053
8044
  T,
8054
8045
  A,
8055
8046
  T,
8056
8047
  A,
8057
8048
  F,
8058
- L,
8049
+ x,
8059
8050
  F,
8060
8051
  A,
8061
8052
  // Bottom strip
@@ -8099,57 +8090,57 @@ function Oe(e, r, n, o) {
8099
8090
  N
8100
8091
  ]), p1 = new Float32Array([
8101
8092
  // Top strip
8102
- I,
8103
- _,
8093
+ B,
8094
+ j,
8104
8095
  Z,
8105
- _,
8106
- I,
8107
- K,
8108
- I,
8109
- K,
8096
+ j,
8097
+ B,
8098
+ Y,
8099
+ B,
8100
+ Y,
8110
8101
  Z,
8111
- _,
8102
+ j,
8112
8103
  Z,
8113
- K,
8104
+ Y,
8114
8105
  // Bottom strip
8115
- I,
8116
- Q,
8106
+ B,
8107
+ K,
8117
8108
  Z,
8118
- Q,
8119
- I,
8109
+ K,
8110
+ B,
8120
8111
  W,
8121
- I,
8112
+ B,
8122
8113
  W,
8123
8114
  Z,
8124
- Q,
8115
+ K,
8125
8116
  Z,
8126
8117
  W,
8127
8118
  // Left strip
8128
- I,
8129
- K,
8119
+ B,
8120
+ Y,
8130
8121
  J,
8122
+ Y,
8123
+ B,
8131
8124
  K,
8132
- I,
8133
- Q,
8134
- I,
8135
- Q,
8136
- J,
8125
+ B,
8137
8126
  K,
8138
8127
  J,
8139
- Q,
8128
+ Y,
8129
+ J,
8130
+ K,
8140
8131
  // Right strip
8141
8132
  t1,
8142
- K,
8133
+ Y,
8143
8134
  Z,
8144
- K,
8135
+ Y,
8145
8136
  t1,
8146
- Q,
8137
+ K,
8147
8138
  t1,
8148
- Q,
8149
- Z,
8150
8139
  K,
8151
8140
  Z,
8152
- Q
8141
+ Y,
8142
+ Z,
8143
+ K
8153
8144
  ]);
8154
8145
  return { positions: a1, uvs: p1 };
8155
8146
  }
@@ -8824,15 +8815,15 @@ class F4 {
8824
8815
  }, P.src = o ?? "";
8825
8816
  });
8826
8817
  }
8827
- let F = await T(), L = (F.width & F.width - 1) === 0 && (F.height & F.height - 1) === 0;
8828
- return (r.wrapS !== rt || r.wrapT !== rt || r.minFilter !== tt && r.minFilter !== Q1) && !L && (F = this.makePowerOf2(F), L = !0), n.bindTexture(n.TEXTURE_2D, H), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, l), n.texImage2D(
8818
+ let F = await T(), x = (F.width & F.width - 1) === 0 && (F.height & F.height - 1) === 0;
8819
+ return (r.wrapS !== rt || r.wrapT !== rt || r.minFilter !== tt && r.minFilter !== Q1) && !x && (F = this.makePowerOf2(F), x = !0), n.bindTexture(n.TEXTURE_2D, H), n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, l), n.texImage2D(
8829
8820
  n.TEXTURE_2D,
8830
8821
  C,
8831
8822
  g,
8832
8823
  p,
8833
8824
  k,
8834
8825
  F
8835
- ), L && r.minFilter !== tt && r.minFilter !== Q1 && n.generateMipmap(n.TEXTURE_2D), n.texParameteri(
8826
+ ), x && r.minFilter !== tt && r.minFilter !== Q1 && n.generateMipmap(n.TEXTURE_2D), n.texParameteri(
8836
8827
  n.TEXTURE_2D,
8837
8828
  n.TEXTURE_WRAP_S,
8838
8829
  this.wrapS || nt
@@ -8873,7 +8864,7 @@ function S4({
8873
8864
  onError: C = console.error,
8874
8865
  onWarning: g = console.warn
8875
8866
  }) {
8876
- const h = $(null), w = $(null), v = $(null), p = $(null), k = $(void 0), R = $(void 0), H = $(!1), T = $(void 0), F = $(0), L = $([0, 0]), S = $([]), V = $(0), P = $(void 0), A = $({
8867
+ const h = $(null), w = $(null), v = $(null), p = $(null), k = $(void 0), R = $(void 0), H = $(!1), T = $(void 0), F = $(0), x = $([0, 0]), S = $([]), V = $(0), P = $(void 0), A = $({
8877
8868
  [We]: { type: "float", isNeeded: !1, value: 0 },
8878
8869
  [qe]: { type: "float", isNeeded: !1, value: 0 },
8879
8870
  [Xe]: { type: "vec4", isNeeded: !1, value: [0, 0, 0, 0] },
@@ -8885,19 +8876,19 @@ function S4({
8885
8876
  isNeeded: !1,
8886
8877
  value: [0, 0, 0, 0]
8887
8878
  }
8888
- }), N = $(o), I = (x, y) => {
8889
- const M = "width" in x ? x.width ?? 0 : 0, D = "height" in x ? x.height ?? 0 : 0, E = A.current.iChannelResolution;
8879
+ }), N = $(o), B = (L, y) => {
8880
+ const M = "width" in L ? L.width ?? 0 : 0, D = "height" in L ? L.height ?? 0 : 0, E = A.current.iChannelResolution;
8890
8881
  if (!E) return;
8891
8882
  const U = Array.isArray(E.value) ? E.value : E.value = [];
8892
8883
  U[y * 3] = M * f, U[y * 3 + 1] = D * f, U[y * 3 + 2] = 0;
8893
- }, _ = () => {
8884
+ }, j = () => {
8894
8885
  h.current && (w.current = h.current.getContext("webgl", d) || h.current.getContext(
8895
8886
  "experimental-webgl",
8896
8887
  d
8897
8888
  ), w.current?.getExtension("OES_standard_derivatives"), w.current?.getExtension("EXT_shader_texture_lod"));
8898
8889
  }, Z = () => {
8899
- const x = w.current;
8900
- v.current = x?.createBuffer() ?? null, x?.bindBuffer(x.ARRAY_BUFFER, v.current);
8890
+ const L = w.current;
8891
+ v.current = L?.createBuffer() ?? null, L?.bindBuffer(L.ARRAY_BUFFER, v.current);
8901
8892
  const y = [
8902
8893
  1,
8903
8894
  1,
@@ -8912,55 +8903,55 @@ function S4({
8912
8903
  -1,
8913
8904
  0
8914
8905
  ];
8915
- x?.bufferData(x.ARRAY_BUFFER, new Float32Array(y), x.STATIC_DRAW);
8906
+ L?.bufferData(L.ARRAY_BUFFER, new Float32Array(y), L.STATIC_DRAW);
8916
8907
  }, W = ({
8917
- alpha: x,
8908
+ alpha: L,
8918
8909
  beta: y,
8919
8910
  gamma: M
8920
8911
  }) => {
8921
8912
  A.current.iDeviceOrientation.value = [
8922
- x ?? 0,
8913
+ L ?? 0,
8923
8914
  y ?? 0,
8924
8915
  M ?? 0,
8925
8916
  window.orientation ?? 0
8926
8917
  ];
8927
- }, J = (x) => {
8928
- const [y = 0, M = 0] = ot(x), D = y - (T.current?.left ?? 0) - window.pageXOffset, E = (T.current?.height ?? 0) - M - (T.current?.top ?? 0) - window.pageYOffset;
8918
+ }, J = (L) => {
8919
+ const [y = 0, M = 0] = ot(L), D = y - (T.current?.left ?? 0) - window.pageXOffset, E = (T.current?.height ?? 0) - M - (T.current?.top ?? 0) - window.pageYOffset;
8929
8920
  H.current = !0;
8930
8921
  const U = Array.isArray(A.current.iMouse?.value) ? A.current.iMouse.value : void 0;
8931
- U && (U[2] = D, U[3] = E), L.current[0] = D, L.current[1] = E;
8932
- }, t1 = (x) => {
8922
+ U && (U[2] = D, U[3] = E), x.current[0] = D, x.current[1] = E;
8923
+ }, t1 = (L) => {
8933
8924
  T.current = h.current?.getBoundingClientRect();
8934
- const [y = 0, M = 0] = ot(x), D = y - (T.current?.left ?? 0), E = (T.current?.height ?? 0) - M - (T.current?.top ?? 0);
8925
+ const [y = 0, M = 0] = ot(L), D = y - (T.current?.left ?? 0), E = (T.current?.height ?? 0) - M - (T.current?.top ?? 0);
8935
8926
  if (l !== 1)
8936
- L.current[0] = D, L.current[1] = E;
8927
+ x.current[0] = D, x.current[1] = E;
8937
8928
  else {
8938
8929
  const U = Array.isArray(A.current.iMouse?.value) ? A.current.iMouse.value : void 0;
8939
8930
  U && (U[0] = D, U[1] = E);
8940
8931
  }
8932
+ }, Y = () => {
8933
+ const L = Array.isArray(A.current.iMouse?.value) ? A.current.iMouse.value : void 0;
8934
+ L && (L[2] = 0, L[3] = 0);
8941
8935
  }, K = () => {
8942
- const x = Array.isArray(A.current.iMouse?.value) ? A.current.iMouse.value : void 0;
8943
- x && (x[2] = 0, x[3] = 0);
8944
- }, Q = () => {
8945
- const x = w.current;
8946
- if (!x) return;
8936
+ const L = w.current;
8937
+ if (!L) return;
8947
8938
  T.current = h.current?.getBoundingClientRect();
8948
8939
  const y = f, M = Math.floor(
8949
8940
  (T.current?.width ?? 1) * y
8950
8941
  ), D = Math.floor(
8951
8942
  (T.current?.height ?? 1) * y
8952
8943
  );
8953
- if (x.canvas.width = M, x.canvas.height = D, A.current.iResolution?.isNeeded && p.current) {
8954
- const E = x.getUniformLocation(
8944
+ if (L.canvas.width = M, L.canvas.height = D, A.current.iResolution?.isNeeded && p.current) {
8945
+ const E = L.getUniformLocation(
8955
8946
  p.current,
8956
8947
  Qe
8957
8948
  );
8958
- x.uniform2fv(E, [x.canvas.width, x.canvas.height]);
8949
+ L.uniform2fv(E, [L.canvas.width, L.canvas.height]);
8959
8950
  }
8960
- }, a1 = (x, y) => {
8951
+ }, a1 = (L, y) => {
8961
8952
  const M = w.current;
8962
8953
  if (!M) return null;
8963
- const D = M.createShader(x);
8954
+ const D = M.createShader(L);
8964
8955
  if (!D) return null;
8965
8956
  if (M.shaderSource(D, y), M.compileShader(D), !M.getShaderParameter(D, M.COMPILE_STATUS)) {
8966
8957
  g?.(b1(`Error compiling the shader:
@@ -8969,10 +8960,10 @@ ${y}`));
8969
8960
  M.deleteShader(D), C?.(b1(`Shader compiler log: ${E}`));
8970
8961
  }
8971
8962
  return D;
8972
- }, p1 = (x, y) => {
8963
+ }, p1 = (L, y) => {
8973
8964
  const M = w.current;
8974
8965
  if (!M) return;
8975
- const D = a1(M.FRAGMENT_SHADER, x), E = a1(M.VERTEX_SHADER, y);
8966
+ const D = a1(M.FRAGMENT_SHADER, L), E = a1(M.VERTEX_SHADER, y);
8976
8967
  if (p.current = M.createProgram(), !(!p.current || !E || !D)) {
8977
8968
  if (M.attachShader(p.current, E), M.attachShader(p.current, D), M.linkProgram(p.current), !M.getProgramParameter(p.current, M.LINK_STATUS)) {
8978
8969
  C?.(
@@ -8991,8 +8982,8 @@ ${y}`));
8991
8982
  }
8992
8983
  }, c1 = () => {
8993
8984
  if (o)
8994
- for (const x of Object.keys(o)) {
8995
- const y = o[x];
8985
+ for (const L of Object.keys(o)) {
8986
+ const y = o[L];
8996
8987
  if (!y) continue;
8997
8988
  const { value: M, type: D } = y, E = M4(D);
8998
8989
  if (!E) continue;
@@ -9001,7 +8992,7 @@ ${y}`));
9001
8992
  const i1 = D.length, m1 = Number.parseInt(D.charAt(i1 - 3)), y1 = Math.floor(M.length / (m1 * m1));
9002
8993
  M.length > m1 * m1 && (U.arraySize = `[${y1}]`);
9003
8994
  } else b4(D, M) && (U.arraySize = `[${Math.floor(M.length / Number.parseInt(D.charAt(0)))}]`);
9004
- A.current[x] = {
8995
+ A.current[L] = {
9005
8996
  type: E,
9006
8997
  isNeeded: !1,
9007
8998
  value: M,
@@ -9009,8 +9000,8 @@ ${y}`));
9009
9000
  };
9010
9001
  }
9011
9002
  }, q = () => {
9012
- const x = w.current;
9013
- if (x)
9003
+ const L = w.current;
9004
+ if (L)
9014
9005
  if (n && n.length > 0) {
9015
9006
  A.current[`${Je}`] = {
9016
9007
  type: "vec3",
@@ -9022,8 +9013,8 @@ ${y}`));
9022
9013
  (M, D) => (A.current[`${L4}${D}`] = {
9023
9014
  type: "sampler2D",
9024
9015
  isNeeded: !1
9025
- }, I(M, D), S.current[D] = new F4(x), S.current[D]?.load(M).then((E) => {
9026
- I(E, D);
9016
+ }, B(M, D), S.current[D] = new F4(L), S.current[D]?.load(M).then((E) => {
9017
+ B(E, D);
9027
9018
  }))
9028
9019
  );
9029
9020
  Promise.all(y).then(() => {
@@ -9032,7 +9023,7 @@ ${y}`));
9032
9023
  C?.(M), u && u();
9033
9024
  });
9034
9025
  } else u && u();
9035
- }, d1 = (x) => {
9026
+ }, d1 = (L) => {
9036
9027
  const y = ze.includes(a ?? "highp"), M = `precision ${y ? a : ze[1]} float;
9037
9028
  `;
9038
9029
  y || g?.(
@@ -9041,9 +9032,9 @@ ${y}`));
9041
9032
  )
9042
9033
  );
9043
9034
  let D = M.concat(`#define DPR ${f.toFixed(1)}
9044
- `).concat(x.replace(/texture\(/g, "texture2D("));
9035
+ `).concat(L.replace(/texture\(/g, "texture2D("));
9045
9036
  for (const U of Object.keys(A.current))
9046
- if (x.includes(U)) {
9037
+ if (L.includes(U)) {
9047
9038
  const i1 = A.current[U];
9048
9039
  if (!i1) continue;
9049
9040
  D = N4(
@@ -9053,12 +9044,12 @@ ${y}`));
9053
9044
  D.lastIndexOf(M) + M.length
9054
9045
  ), i1.isNeeded = !0;
9055
9046
  }
9056
- return x.includes("mainImage") && (D = D.concat(w4)), D;
9057
- }, e1 = (x) => {
9047
+ return L.includes("mainImage") && (D = D.concat(w4)), D;
9048
+ }, e1 = (L) => {
9058
9049
  const y = w.current;
9059
9050
  if (!y || !p.current) return;
9060
- const M = V.current ? (x - V.current) / 1e3 : 0;
9061
- V.current = x;
9051
+ const M = V.current ? (L - V.current) / 1e3 : 0;
9052
+ V.current = L;
9062
9053
  const D = N.current;
9063
9054
  if (D)
9064
9055
  for (const E of Object.keys(D)) {
@@ -9152,7 +9143,7 @@ ${y}`));
9152
9143
  );
9153
9144
  }
9154
9145
  }
9155
- }, r1 = (x) => {
9146
+ }, r1 = (L) => {
9156
9147
  const y = w.current;
9157
9148
  if (!y) return;
9158
9149
  y.viewport(0, 0, y.drawingBufferWidth, y.drawingBufferHeight), y.clear(y.COLOR_BUFFER_BIT | y.DEPTH_BUFFER_BIT), y.bindBuffer(y.ARRAY_BUFFER, v.current), y.vertexAttribPointer(
@@ -9162,42 +9153,42 @@ ${y}`));
9162
9153
  !1,
9163
9154
  0,
9164
9155
  0
9165
- ), e1(x), y.drawArrays(y.TRIANGLE_STRIP, 0, 4);
9156
+ ), e1(L), y.drawArrays(y.TRIANGLE_STRIP, 0, 4);
9166
9157
  const M = A.current.iMouse?.value;
9167
9158
  if (A.current.iMouse?.isNeeded && l !== 1 && Array.isArray(M)) {
9168
9159
  const D = M[0] ?? 0, E = M[1] ?? 0;
9169
- M[0] = st(D, L.current[0] ?? 0, l), M[1] = st(E, L.current[1] ?? 0, l);
9160
+ M[0] = st(D, x.current[0] ?? 0, l), M[1] = st(E, x.current[1] ?? 0, l);
9170
9161
  }
9171
9162
  R.current = requestAnimationFrame(r1);
9172
9163
  }, N1 = () => {
9173
- const x = { passive: !0 };
9174
- A.current.iMouse?.isNeeded && h.current && (h.current.addEventListener("mousemove", t1, x), h.current.addEventListener("mouseout", K, x), h.current.addEventListener("mouseup", K, x), h.current.addEventListener("mousedown", J, x), h.current.addEventListener("touchmove", t1, x), h.current.addEventListener("touchend", K, x), h.current.addEventListener("touchstart", J, x)), A.current.iDeviceOrientation?.isNeeded && window.addEventListener(
9164
+ const L = { passive: !0 };
9165
+ A.current.iMouse?.isNeeded && h.current && (h.current.addEventListener("mousemove", t1, L), h.current.addEventListener("mouseout", Y, L), h.current.addEventListener("mouseup", Y, L), h.current.addEventListener("mousedown", J, L), h.current.addEventListener("touchmove", t1, L), h.current.addEventListener("touchend", Y, L), h.current.addEventListener("touchstart", J, L)), A.current.iDeviceOrientation?.isNeeded && window.addEventListener(
9175
9166
  "deviceorientation",
9176
9167
  W,
9177
- x
9178
- ), h.current && (P.current = new ResizeObserver(Q), P.current.observe(h.current), window.addEventListener("resize", Q, x));
9168
+ L
9169
+ ), h.current && (P.current = new ResizeObserver(K), P.current.observe(h.current), window.addEventListener("resize", K, L));
9179
9170
  }, x1 = () => {
9180
- const x = { passive: !0 };
9181
- A.current.iMouse?.isNeeded && h.current && (h.current.removeEventListener("mousemove", t1, x), h.current.removeEventListener("mouseout", K, x), h.current.removeEventListener("mouseup", K, x), h.current.removeEventListener("mousedown", J, x), h.current.removeEventListener("touchmove", t1, x), h.current.removeEventListener("touchend", K, x), h.current.removeEventListener("touchstart", J, x)), A.current.iDeviceOrientation?.isNeeded && window.removeEventListener(
9171
+ const L = { passive: !0 };
9172
+ A.current.iMouse?.isNeeded && h.current && (h.current.removeEventListener("mousemove", t1, L), h.current.removeEventListener("mouseout", Y, L), h.current.removeEventListener("mouseup", Y, L), h.current.removeEventListener("mousedown", J, L), h.current.removeEventListener("touchmove", t1, L), h.current.removeEventListener("touchend", Y, L), h.current.removeEventListener("touchstart", J, L)), A.current.iDeviceOrientation?.isNeeded && window.removeEventListener(
9182
9173
  "deviceorientation",
9183
9174
  W,
9184
- x
9185
- ), P.current && (P.current.disconnect(), window.removeEventListener("resize", Q, x));
9175
+ L
9176
+ ), P.current && (P.current.disconnect(), window.removeEventListener("resize", K, L));
9186
9177
  };
9187
9178
  return z(() => {
9188
9179
  N.current = o;
9189
9180
  }, [o]), z(() => {
9190
- const x = S.current;
9181
+ const L = S.current;
9191
9182
  function y() {
9192
- _();
9183
+ j();
9193
9184
  const M = w.current;
9194
- M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, c1(), q(), p1(d1(e || v4), r || Ge), Z(), requestAnimationFrame(r1), N1(), Q());
9185
+ M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, c1(), q(), p1(d1(e || v4), r || Ge), Z(), requestAnimationFrame(r1), N1(), K());
9195
9186
  }
9196
9187
  return requestAnimationFrame(y), () => {
9197
9188
  const M = w.current;
9198
9189
  if (M) {
9199
- if (M.getExtension("WEBGL_lose_context")?.loseContext(), M.useProgram(null), M.deleteProgram(p.current ?? null), x.length > 0)
9200
- for (const D of x)
9190
+ if (M.getExtension("WEBGL_lose_context")?.loseContext(), M.useProgram(null), M.deleteProgram(p.current ?? null), L.length > 0)
9191
+ for (const D of L)
9201
9192
  M.deleteTexture(D._webglTexture);
9202
9193
  p.current = null;
9203
9194
  }
@@ -9388,9 +9379,9 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
9388
9379
  repeatType: "mirror"
9389
9380
  };
9390
9381
  function Z1(e) {
9391
- const [r, n] = B(e), o = ds(e), s = $(null);
9382
+ const [r, n] = I(e), o = ds(e), s = $(null);
9392
9383
  Ds(o, "change", (c) => n(c));
9393
- const a = j(
9384
+ const a = _(
9394
9385
  (c, d) => {
9395
9386
  s.current = us(o, c, d);
9396
9387
  },
@@ -9399,7 +9390,7 @@ function Z1(e) {
9399
9390
  return { value: r, motionValue: o, controls: s, animate: a };
9400
9391
  }
9401
9392
  function B4(e, r) {
9402
- const [n, o] = B(T4), {
9393
+ const [n, o] = I(T4), {
9403
9394
  value: s,
9404
9395
  animate: a,
9405
9396
  motionValue: c
@@ -9614,20 +9605,20 @@ const zl = ({
9614
9605
  }
9615
9606
  }), mr = B1({
9616
9607
  base: "text-lg font-semibold text-f1-foreground line-clamp-3"
9617
- }), j4 = B1({
9608
+ }), _4 = B1({
9618
9609
  base: "text-sm text-f1-foreground-secondary leading-normal"
9619
9610
  }), O1 = B1({
9620
9611
  base: "text-sm font-medium text-f1-foreground leading-normal"
9621
- }), _4 = ({
9612
+ }), j4 = ({
9622
9613
  description: e,
9623
9614
  isRevealed: r,
9624
9615
  onAskOne: n
9625
9616
  }) => {
9626
9617
  const o = G(), s = C1();
9627
9618
  return /* @__PURE__ */ i(R1, { children: [
9628
- e && /* @__PURE__ */ t("span", { className: b(j4(), "truncate"), children: e }),
9619
+ e && /* @__PURE__ */ t("span", { className: b(_4(), "truncate"), children: e }),
9629
9620
  /* @__PURE__ */ t(L1, { children: n && r && /* @__PURE__ */ t(
9630
- Y.div,
9621
+ Q.div,
9631
9622
  {
9632
9623
  className: "absolute bottom-4 left-4 z-10",
9633
9624
  initial: { opacity: 0 },
@@ -9676,7 +9667,7 @@ const zl = ({
9676
9667
  return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col gap-2", children: [
9677
9668
  /* @__PURE__ */ t("span", { className: b(mr()), children: r }),
9678
9669
  /* @__PURE__ */ i(
9679
- Y.div,
9670
+ Q.div,
9680
9671
  {
9681
9672
  className: "flex flex-1 flex-col justify-end gap-2",
9682
9673
  animate: { opacity: s ? 0 : 1 },
@@ -9731,7 +9722,7 @@ const zl = ({
9731
9722
  }
9732
9723
  ),
9733
9724
  n && !Z4.has(o) && /* @__PURE__ */ t(
9734
- Y.span,
9725
+ Q.span,
9735
9726
  {
9736
9727
  className: b(O1()),
9737
9728
  animate: { opacity: s ? 0 : 1 },
@@ -9823,7 +9814,7 @@ const G4 = ({
9823
9814
  fill: `url(#${s})`,
9824
9815
  fillOpacity: 1,
9825
9816
  isAnimationActive: !1,
9826
- dot: (d) => /* @__PURE__ */ jr(
9817
+ dot: (d) => /* @__PURE__ */ _r(
9827
9818
  G4,
9828
9819
  {
9829
9820
  ...d,
@@ -9853,7 +9844,7 @@ const G4 = ({
9853
9844
  onAskOne: d,
9854
9845
  className: l,
9855
9846
  ...f
9856
- } = e, [u, C] = B(!1), [g, h] = B(!1), w = u || g, v = C1(), p = w && !!d, k = {
9847
+ } = e, [u, C] = I(!1), [g, h] = I(!1), w = u || g, v = C1(), p = w && !!d, k = {
9857
9848
  duration: v ? 0 : 0.2,
9858
9849
  ease: [0.33, 1, 0.68, 1]
9859
9850
  }, R = () => {
@@ -9909,7 +9900,7 @@ const G4 = ({
9909
9900
  onBlur: () => h(!1),
9910
9901
  children: [
9911
9902
  /* @__PURE__ */ t(
9912
- _4,
9903
+ j4,
9913
9904
  {
9914
9905
  description: n,
9915
9906
  isRevealed: w,
@@ -9919,7 +9910,7 @@ const G4 = ({
9919
9910
  f.content === "sparkline" ? /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col gap-2", children: [
9920
9911
  /* @__PURE__ */ t("span", { className: b(mr()), children: o }),
9921
9912
  /* @__PURE__ */ t(
9922
- Y.div,
9913
+ Q.div,
9923
9914
  {
9924
9915
  className: "-ml-4 flex flex-1 flex-col",
9925
9916
  animate: { opacity: p ? 0 : 1 },
@@ -10002,7 +9993,7 @@ function tl(e) {
10002
9993
  description: a,
10003
9994
  seeMoreLabel: c,
10004
9995
  maxCollapsedDescriptionLength: d = Lr
10005
- } = e, [l, f] = B(!1), u = U1(), C = $(null), g = K4(
9996
+ } = e, [l, f] = I(!1), u = U1(), C = $(null), g = K4(
10006
9997
  d
10007
9998
  ), h = a.length > g, w = l ? a : Q4(a, g), v = J4(e) ? e : null, p = el(e);
10008
9999
  return z(() => {
@@ -10075,7 +10066,7 @@ const rl = ({
10075
10066
  title: r,
10076
10067
  children: n
10077
10068
  }) => {
10078
- const [o, s] = B(!1), a = C1();
10069
+ const [o, s] = I(!1), a = C1();
10079
10070
  return /* @__PURE__ */ i(
10080
10071
  Et,
10081
10072
  {
@@ -10095,7 +10086,7 @@ const rl = ({
10095
10086
  )
10096
10087
  ] }),
10097
10088
  /* @__PURE__ */ t(Bt, { forceMount: !0, className: "data-[state=open]:mt-3", children: /* @__PURE__ */ t(
10098
- Y.div,
10089
+ Q.div,
10099
10090
  {
10100
10091
  initial: !1,
10101
10092
  animate: {
@@ -10162,7 +10153,7 @@ function il({
10162
10153
  title: r,
10163
10154
  filename: n
10164
10155
  }) {
10165
- const o = G(), s = $(null), a = r ?? o.ai.aiTable.title, c = j(
10156
+ const o = G(), s = $(null), a = r ?? o.ai.aiTable.title, c = _(
10166
10157
  (d) => {
10167
10158
  if (!s.current) return;
10168
10159
  const l = n ?? (a.replace(/\s+/g, "_").toLowerCase() || "table");
@@ -10260,7 +10251,7 @@ function il({
10260
10251
  }
10261
10252
  il.displayName = "F0AiTableCard";
10262
10253
  function ll({ credits: e, trigger: r }) {
10263
- const n = G(), [o, s] = B(!1), [a, c] = B(!1), [d, l] = B(!1), [f, u] = B(null), C = j(
10254
+ const n = G(), [o, s] = I(!1), [a, c] = I(!1), [d, l] = I(!1), [f, u] = I(null), C = _(
10264
10255
  (w) => {
10265
10256
  s(w), w && e?.fetchUsage && (c(!0), l(!1), e.fetchUsage().then((v) => {
10266
10257
  u(v), l(!1);
@@ -10341,7 +10332,7 @@ function ll({ credits: e, trigger: r }) {
10341
10332
  }) })
10342
10333
  ] }),
10343
10334
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ t("div", { className: "relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", children: /* @__PURE__ */ t(
10344
- Y.div,
10335
+ Q.div,
10345
10336
  {
10346
10337
  className: "h-full rounded-full",
10347
10338
  style: {
@@ -10389,7 +10380,7 @@ function dl({
10389
10380
  employeeCredits: e,
10390
10381
  trigger: r
10391
10382
  }) {
10392
- const n = G(), o = C1(), [s, a] = B(!1), [c, d] = B(!1), [l, f] = B(!1), [u, C] = B(null), g = j(
10383
+ const n = G(), o = C1(), [s, a] = I(!1), [c, d] = I(!1), [l, f] = I(!1), [u, C] = I(null), g = _(
10393
10384
  (p) => {
10394
10385
  a(p), p && e?.fetchUsage && (d(!0), f(!1), e.fetchUsage().then((k) => {
10395
10386
  C(k), f(!1);
@@ -10474,7 +10465,7 @@ function dl({
10474
10465
  }) })
10475
10466
  ] }),
10476
10467
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ t("div", { className: "relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", children: /* @__PURE__ */ t(
10477
- Y.div,
10468
+ Q.div,
10478
10469
  {
10479
10470
  className: "h-full rounded-full",
10480
10471
  style: {
@@ -10574,7 +10565,7 @@ const te = ({
10574
10565
  }
10575
10566
  ),
10576
10567
  /* @__PURE__ */ i(
10577
- Y.div,
10568
+ Q.div,
10578
10569
  {
10579
10570
  className: "flex shrink-0 items-center",
10580
10571
  initial: { opacity: 0 },
@@ -10613,7 +10604,7 @@ const te = ({
10613
10604
  }
10614
10605
  ) }),
10615
10606
  /* @__PURE__ */ i(
10616
- Y.div,
10607
+ Q.div,
10617
10608
  {
10618
10609
  className: "flex shrink-0 items-center",
10619
10610
  initial: { opacity: 0 },
@@ -10641,7 +10632,7 @@ const te = ({
10641
10632
  ) : /* @__PURE__ */ i("header", { className: b("flex justify-between px-4 py-3"), children: [
10642
10633
  /* @__PURE__ */ t("div", { className: "flex items-center", children: /* @__PURE__ */ t("h2", { className: "text-f1-foreground", children: r ?? "" }) }),
10643
10634
  /* @__PURE__ */ i(
10644
- Y.div,
10635
+ Q.div,
10645
10636
  {
10646
10637
  className: "flex items-center",
10647
10638
  initial: { opacity: 0 },
@@ -10678,12 +10669,12 @@ const te = ({
10678
10669
  };
10679
10670
  function ul(e) {
10680
10671
  const r = new Date(e), n = /* @__PURE__ */ new Date();
10681
- return Dt(r) ? "today" : jt(r) ? "yesterday" : Rs(r, n) ? "thisMonth" : "older";
10672
+ return Dt(r) ? "today" : _t(r) ? "yesterday" : Rs(r, n) ? "thisMonth" : "older";
10682
10673
  }
10683
10674
  function fl(e, r, n) {
10684
10675
  const o = new Date(e), s = Ee(o, "p", { locale: n });
10685
10676
  if (Dt(o)) return `${r.today}, ${s}`;
10686
- if (jt(o)) return `${r.yesterday}, ${s}`;
10677
+ if (_t(o)) return `${r.yesterday}, ${s}`;
10687
10678
  const a = !Ms(o, /* @__PURE__ */ new Date());
10688
10679
  return `${Ee(o, a ? "MMM d yyyy" : "MMM d", {
10689
10680
  locale: n
@@ -10824,9 +10815,9 @@ function it({
10824
10815
  onUnpin: a,
10825
10816
  onDelete: c
10826
10817
  }) {
10827
- const [d, l] = B(!0), f = j(() => {
10818
+ const [d, l] = I(!0), f = _(() => {
10828
10819
  l((C) => !C);
10829
- }, []), u = j(
10820
+ }, []), u = _(
10830
10821
  (C) => {
10831
10822
  (C.key === "Enter" || C.key === " ") && (C.preventDefault(), f());
10832
10823
  },
@@ -10896,12 +10887,12 @@ const Yl = ({
10896
10887
  onUnpinThread: l,
10897
10888
  onDeleteThread: f
10898
10889
  }) => {
10899
- const u = G(), [C, g] = B("");
10890
+ const u = G(), [C, g] = I("");
10900
10891
  z(() => {
10901
- const L = (S) => {
10892
+ const x = (S) => {
10902
10893
  S.key === "Escape" && e();
10903
10894
  };
10904
- return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
10895
+ return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
10905
10896
  }, [e]);
10906
10897
  const h = X(
10907
10898
  () => ({
@@ -10918,31 +10909,31 @@ const Yl = ({
10918
10909
  ]
10919
10910
  ), w = X(() => {
10920
10911
  if (!C.trim()) return o;
10921
- const L = C.toLowerCase();
10922
- return o.filter((S) => S.title.toLowerCase().includes(L));
10912
+ const x = C.toLowerCase();
10913
+ return o.filter((S) => S.title.toLowerCase().includes(x));
10923
10914
  }, [o, C]), v = X(
10924
- () => w.filter((L) => c.has(L.id)),
10915
+ () => w.filter((x) => c.has(x.id)),
10925
10916
  [w, c]
10926
10917
  ), p = X(
10927
- () => w.filter((L) => !c.has(L.id)),
10918
+ () => w.filter((x) => !c.has(x.id)),
10928
10919
  [w, c]
10929
10920
  ), k = X(
10930
10921
  () => hl(p),
10931
10922
  [p]
10932
- ), R = j(
10933
- (L, S) => {
10934
- r(L, S), e();
10923
+ ), R = _(
10924
+ (x, S) => {
10925
+ r(x, S), e();
10935
10926
  },
10936
10927
  [r, e]
10937
- ), H = j(() => {
10928
+ ), H = _(() => {
10938
10929
  n(), e();
10939
- }, [n, e]), T = j(
10940
- (L) => {
10941
- f(L);
10930
+ }, [n, e]), T = _(
10931
+ (x) => {
10932
+ f(x);
10942
10933
  },
10943
10934
  [f]
10944
10935
  ), F = v.length > 0 || k.length > 0;
10945
- return _t(
10936
+ return jt(
10946
10937
  /* @__PURE__ */ i(R1, { children: [
10947
10938
  /* @__PURE__ */ t(
10948
10939
  "div",
@@ -10979,7 +10970,7 @@ const Yl = ({
10979
10970
  {
10980
10971
  type: "text",
10981
10972
  value: C,
10982
- onChange: (L) => g(L.target.value),
10973
+ onChange: (x) => g(x.target.value),
10983
10974
  placeholder: u.ai.searchChats,
10984
10975
  className: b(
10985
10976
  "w-full",
@@ -11019,18 +11010,18 @@ const Yl = ({
11019
11010
  onDelete: T
11020
11011
  }
11021
11012
  ),
11022
- !s && !a && k.map((L) => /* @__PURE__ */ t(
11013
+ !s && !a && k.map((x) => /* @__PURE__ */ t(
11023
11014
  it,
11024
11015
  {
11025
- label: h[L.key],
11026
- threads: L.threads,
11016
+ label: h[x.key],
11017
+ threads: x.threads,
11027
11018
  pinnedIds: c,
11028
11019
  onSelect: R,
11029
11020
  onPin: d,
11030
11021
  onUnpin: l,
11031
11022
  onDelete: T
11032
11023
  },
11033
- L.key
11024
+ x.key
11034
11025
  ))
11035
11026
  ] })
11036
11027
  ]
@@ -11056,13 +11047,13 @@ function Kl({
11056
11047
  pinThread: o,
11057
11048
  unpinThread: s
11058
11049
  }) {
11059
- const [a, c] = B([]), [d, l] = B(!1), [f, u] = B(null), [C, g] = B(gl), [h, w] = B(() => /* @__PURE__ */ new Set()), v = j(async () => {
11050
+ const [a, c] = I([]), [d, l] = I(!1), [f, u] = I(null), [C, g] = I(gl), [h, w] = I(() => /* @__PURE__ */ new Set()), v = _(async () => {
11060
11051
  l(!0), u(null);
11061
11052
  try {
11062
- const L = await r();
11063
- c(L);
11064
- } catch (L) {
11065
- const S = L instanceof Error ? L.message : "Failed to fetch chat history";
11053
+ const x = await r();
11054
+ c(x);
11055
+ } catch (x) {
11056
+ const S = x instanceof Error ? x.message : "Failed to fetch chat history";
11066
11057
  u(S), c([]);
11067
11058
  } finally {
11068
11059
  l(!1);
@@ -11071,40 +11062,40 @@ function Kl({
11071
11062
  z(() => {
11072
11063
  e && v();
11073
11064
  }, [e, v]);
11074
- const p = j((L, S) => {
11065
+ const p = _((x, S) => {
11075
11066
  g((V) => {
11076
- if (S === V.has(L)) return V;
11067
+ if (S === V.has(x)) return V;
11077
11068
  const P = new Set(V);
11078
- return S ? P.add(L) : P.delete(L), dt(P), P;
11069
+ return S ? P.add(x) : P.delete(x), dt(P), P;
11079
11070
  });
11080
- }, []), k = j((L, S) => {
11071
+ }, []), k = _((x, S) => {
11081
11072
  w((V) => {
11082
- if (S === V.has(L)) return V;
11073
+ if (S === V.has(x)) return V;
11083
11074
  const P = new Set(V);
11084
- return S ? P.add(L) : P.delete(L), P;
11075
+ return S ? P.add(x) : P.delete(x), P;
11085
11076
  });
11086
- }, []), R = j(
11087
- (L, S) => {
11077
+ }, []), R = _(
11078
+ (x, S) => {
11088
11079
  const V = S ? o : s;
11089
- p(L, S), V && (k(L, !0), V(L).catch(() => p(L, !S)).finally(() => k(L, !1)));
11080
+ p(x, S), V && (k(x, !0), V(x).catch(() => p(x, !S)).finally(() => k(x, !1)));
11090
11081
  },
11091
11082
  [o, s, p, k]
11092
- ), H = j((L) => R(L, !0), [R]), T = j(
11093
- (L) => R(L, !1),
11083
+ ), H = _((x) => R(x, !0), [R]), T = _(
11084
+ (x) => R(x, !1),
11094
11085
  [R]
11095
- ), F = j(
11096
- async (L) => {
11097
- k(L, !0);
11086
+ ), F = _(
11087
+ async (x) => {
11088
+ k(x, !0);
11098
11089
  try {
11099
- await n(L), c((S) => S.filter((V) => V.id !== L)), g((S) => {
11100
- if (!S.has(L)) return S;
11090
+ await n(x), c((S) => S.filter((V) => V.id !== x)), g((S) => {
11091
+ if (!S.has(x)) return S;
11101
11092
  const V = new Set(S);
11102
- return V.delete(L), dt(V), V;
11093
+ return V.delete(x), dt(V), V;
11103
11094
  });
11104
11095
  } catch {
11105
11096
  v();
11106
11097
  } finally {
11107
- k(L, !1);
11098
+ k(x, !1);
11108
11099
  }
11109
11100
  },
11110
11101
  [n, v, k]
@@ -11121,7 +11112,7 @@ function Kl({
11121
11112
  deleteThread: F
11122
11113
  };
11123
11114
  }
11124
- const wl = Y.create(Vt), vl = ({
11115
+ const wl = Q.create(Vt), vl = ({
11125
11116
  label: e,
11126
11117
  reduceMotion: r
11127
11118
  }) => (
@@ -11170,7 +11161,7 @@ const wl = Y.create(Vt), vl = ({
11170
11161
  ]
11171
11162
  }
11172
11163
  )
11173
- ), Ql = _r(function({
11164
+ ), Ql = jr(function({
11174
11165
  active: r,
11175
11166
  label: n,
11176
11167
  className: o,
@@ -11187,7 +11178,7 @@ const wl = Y.create(Vt), vl = ({
11187
11178
  // pill centred in the visible area regardless of how tall the blurred
11188
11179
  // content is or how far it's scrolled.
11189
11180
  /* @__PURE__ */ t(
11190
- Y.div,
11181
+ Q.div,
11191
11182
  {
11192
11183
  className: "pointer-events-none sticky top-0 z-50 flex h-0 w-full items-start justify-center overflow-visible",
11193
11184
  initial: { opacity: 0, scale: c ? 1 : 0.95 },
@@ -11203,7 +11194,7 @@ const wl = Y.create(Vt), vl = ({
11203
11194
  }
11204
11195
  ) }),
11205
11196
  /* @__PURE__ */ t(
11206
- Y.div,
11197
+ Q.div,
11207
11198
  {
11208
11199
  className: b("flex flex-1 flex-col", r && "pointer-events-none"),
11209
11200
  initial: { filter: "blur(0px)" },
@@ -11221,7 +11212,7 @@ export {
11221
11212
  Q5 as D,
11222
11213
  q5 as E,
11223
11214
  El as F,
11224
- _s as G,
11215
+ js as G,
11225
11216
  Ki as H,
11226
11217
  Aa as I,
11227
11218
  Ta as J,
@@ -11231,11 +11222,11 @@ export {
11231
11222
  Sa as N,
11232
11223
  Cl as T,
11233
11224
  Pl as a,
11234
- jl as b,
11225
+ _l as b,
11235
11226
  S6 as c,
11236
11227
  $l as d,
11237
11228
  nr as e,
11238
- _l as f,
11229
+ jl as f,
11239
11230
  Zl as g,
11240
11231
  Tl as h,
11241
11232
  Ol as i,