@voxket-ai/voxket-live 1.1.10 โ†’ 1.1.11

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.
Files changed (3) hide show
  1. package/dist/index.cjs +13 -13
  2. package/dist/index.js +173 -173
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5274,7 +5274,7 @@ const _t = (e) => {
5274
5274
  "left-bottom"
5275
5275
  ], k = () => [..._(), fe, de], C = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], A = () => [fe, de, l], O = () => [dr, "full", "auto", ...A()], b = () => [Fn, "none", "subgrid", fe, de], M = () => ["auto", {
5276
5276
  span: ["full", Fn, fe, de]
5277
- }, Fn, fe, de], I = () => [Fn, "auto", fe, de], F = () => ["auto", "min", "max", "fr", fe, de], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ie = () => ["auto", ...A()], X = () => [dr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], V = () => [e, fe, de], U = () => [..._(), $u, Bu, {
5277
+ }, Fn, fe, de], I = () => [Fn, "auto", fe, de], F = () => ["auto", "min", "max", "fr", fe, de], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], re = () => ["auto", ...A()], X = () => [dr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...A()], V = () => [e, fe, de], U = () => [..._(), $u, Bu, {
5278
5278
  position: [fe, de]
5279
5279
  }], x = () => ["no-repeat", {
5280
5280
  repeat: ["", "x", "y", "space", "round"]
@@ -5829,63 +5829,63 @@ const _t = (e) => {
5829
5829
  * @see https://tailwindcss.com/docs/margin
5830
5830
  */
5831
5831
  m: [{
5832
- m: ie()
5832
+ m: re()
5833
5833
  }],
5834
5834
  /**
5835
5835
  * Margin X
5836
5836
  * @see https://tailwindcss.com/docs/margin
5837
5837
  */
5838
5838
  mx: [{
5839
- mx: ie()
5839
+ mx: re()
5840
5840
  }],
5841
5841
  /**
5842
5842
  * Margin Y
5843
5843
  * @see https://tailwindcss.com/docs/margin
5844
5844
  */
5845
5845
  my: [{
5846
- my: ie()
5846
+ my: re()
5847
5847
  }],
5848
5848
  /**
5849
5849
  * Margin Start
5850
5850
  * @see https://tailwindcss.com/docs/margin
5851
5851
  */
5852
5852
  ms: [{
5853
- ms: ie()
5853
+ ms: re()
5854
5854
  }],
5855
5855
  /**
5856
5856
  * Margin End
5857
5857
  * @see https://tailwindcss.com/docs/margin
5858
5858
  */
5859
5859
  me: [{
5860
- me: ie()
5860
+ me: re()
5861
5861
  }],
5862
5862
  /**
5863
5863
  * Margin Top
5864
5864
  * @see https://tailwindcss.com/docs/margin
5865
5865
  */
5866
5866
  mt: [{
5867
- mt: ie()
5867
+ mt: re()
5868
5868
  }],
5869
5869
  /**
5870
5870
  * Margin Right
5871
5871
  * @see https://tailwindcss.com/docs/margin
5872
5872
  */
5873
5873
  mr: [{
5874
- mr: ie()
5874
+ mr: re()
5875
5875
  }],
5876
5876
  /**
5877
5877
  * Margin Bottom
5878
5878
  * @see https://tailwindcss.com/docs/margin
5879
5879
  */
5880
5880
  mb: [{
5881
- mb: ie()
5881
+ mb: re()
5882
5882
  }],
5883
5883
  /**
5884
5884
  * Margin Left
5885
5885
  * @see https://tailwindcss.com/docs/margin
5886
5886
  */
5887
5887
  ml: [{
5888
- ml: ie()
5888
+ ml: re()
5889
5889
  }],
5890
5890
  /**
5891
5891
  * Space Between X
@@ -8478,7 +8478,7 @@ function Bo({
8478
8478
  }, G = (x) => {
8479
8479
  const $ = Array.from(x.target.files || []);
8480
8480
  $.length > 0 && k && k($), I.current && (I.current.value = "");
8481
- }, ie = We(
8481
+ }, re = We(
8482
8482
  "flex items-center gap-3 px-3 py-2 w-full backdrop-blur-xl border-t",
8483
8483
  E ? "justify-between" : "justify-center",
8484
8484
  t === "light" ? "bg-white/95 border-gray-200" : "bg-black/90 border-gray-800"
@@ -8494,7 +8494,7 @@ function Bo({
8494
8494
  n ? "opacity-50 cursor-not-allowed" : "hover:scale-105"
8495
8495
  );
8496
8496
  }, V = () => /* @__PURE__ */ g("div", { className: "w-5 h-5 animate-spin rounded-full border-2 border-current border-t-transparent" });
8497
- return /* @__PURE__ */ N("div", { className: ie, children: [
8497
+ return /* @__PURE__ */ N("div", { className: re, children: [
8498
8498
  E && /* @__PURE__ */ N("div", { className: "flex items-center gap-2 flex-1", children: [
8499
8499
  C && k && /* @__PURE__ */ N(Tt, { children: [
8500
8500
  /* @__PURE__ */ g(
@@ -10175,12 +10175,12 @@ function EE() {
10175
10175
  var F = _(), D = R(r);
10176
10176
  if (D) {
10177
10177
  if (b(), !R(i)) return C("property missing ':'");
10178
- var G = R(o), ie = F({
10178
+ var G = R(o), re = F({
10179
10179
  type: h,
10180
10180
  property: m(D[0].replace(e, d)),
10181
10181
  value: G ? m(G[0].replace(e, d)) : d
10182
10182
  });
10183
- return R(s), ie;
10183
+ return R(s), re;
10184
10184
  }
10185
10185
  }
10186
10186
  function I() {
@@ -11984,7 +11984,7 @@ function KS(e, t, n) {
11984
11984
  return S === null || ye(S) ? I(S) : Fe(S) ? (e.consume(S), M) : n(S);
11985
11985
  }
11986
11986
  function I(S) {
11987
- return S === 45 && i === 2 ? (e.consume(S), ie) : S === 60 && i === 1 ? (e.consume(S), X) : S === 62 && i === 4 ? (e.consume(S), $) : S === 63 && i === 3 ? (e.consume(S), x) : S === 93 && i === 5 ? (e.consume(S), U) : ye(S) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(WS, K, F)(S)) : S === null || ye(S) ? (e.exit("htmlFlowData"), F(S)) : (e.consume(S), I);
11987
+ return S === 45 && i === 2 ? (e.consume(S), re) : S === 60 && i === 1 ? (e.consume(S), X) : S === 62 && i === 4 ? (e.consume(S), $) : S === 63 && i === 3 ? (e.consume(S), x) : S === 93 && i === 5 ? (e.consume(S), U) : ye(S) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(WS, K, F)(S)) : S === null || ye(S) ? (e.exit("htmlFlowData"), F(S)) : (e.consume(S), I);
11988
11988
  }
11989
11989
  function F(S) {
11990
11990
  return e.check(jS, D, K)(S);
@@ -11995,7 +11995,7 @@ function KS(e, t, n) {
11995
11995
  function G(S) {
11996
11996
  return S === null || ye(S) ? F(S) : (e.enter("htmlFlowData"), I(S));
11997
11997
  }
11998
- function ie(S) {
11998
+ function re(S) {
11999
11999
  return S === 45 ? (e.consume(S), x) : I(S);
12000
12000
  }
12001
12001
  function X(S) {
@@ -12064,7 +12064,7 @@ function XS(e, t, n) {
12064
12064
  return x === 45 ? (e.consume(x), h) : d(x);
12065
12065
  }
12066
12066
  function h(x) {
12067
- return x === 62 ? ie(x) : x === 45 ? f(x) : d(x);
12067
+ return x === 62 ? re(x) : x === 45 ? f(x) : d(x);
12068
12068
  }
12069
12069
  function m(x) {
12070
12070
  const $ = "CDATA[";
@@ -12077,16 +12077,16 @@ function XS(e, t, n) {
12077
12077
  return x === 93 ? (e.consume(x), y) : p(x);
12078
12078
  }
12079
12079
  function y(x) {
12080
- return x === 62 ? ie(x) : x === 93 ? (e.consume(x), y) : p(x);
12080
+ return x === 62 ? re(x) : x === 93 ? (e.consume(x), y) : p(x);
12081
12081
  }
12082
12082
  function E(x) {
12083
- return x === null || x === 62 ? ie(x) : ye(x) ? (s = E, X(x)) : (e.consume(x), E);
12083
+ return x === null || x === 62 ? re(x) : ye(x) ? (s = E, X(x)) : (e.consume(x), E);
12084
12084
  }
12085
12085
  function w(x) {
12086
12086
  return x === null ? n(x) : x === 63 ? (e.consume(x), _) : ye(x) ? (s = w, X(x)) : (e.consume(x), w);
12087
12087
  }
12088
12088
  function _(x) {
12089
- return x === 62 ? ie(x) : w(x);
12089
+ return x === 62 ? re(x) : w(x);
12090
12090
  }
12091
12091
  function k(x) {
12092
12092
  return $t(x) ? (e.consume(x), C) : n(x);
@@ -12095,13 +12095,13 @@ function XS(e, t, n) {
12095
12095
  return x === 45 || Lt(x) ? (e.consume(x), C) : R(x);
12096
12096
  }
12097
12097
  function R(x) {
12098
- return ye(x) ? (s = R, X(x)) : Fe(x) ? (e.consume(x), R) : ie(x);
12098
+ return ye(x) ? (s = R, X(x)) : Fe(x) ? (e.consume(x), R) : re(x);
12099
12099
  }
12100
12100
  function A(x) {
12101
12101
  return x === 45 || Lt(x) ? (e.consume(x), A) : x === 47 || x === 62 || tt(x) ? O(x) : n(x);
12102
12102
  }
12103
12103
  function O(x) {
12104
- return x === 47 ? (e.consume(x), ie) : x === 58 || x === 95 || $t(x) ? (e.consume(x), b) : ye(x) ? (s = O, X(x)) : Fe(x) ? (e.consume(x), O) : ie(x);
12104
+ return x === 47 ? (e.consume(x), re) : x === 58 || x === 95 || $t(x) ? (e.consume(x), b) : ye(x) ? (s = O, X(x)) : Fe(x) ? (e.consume(x), O) : re(x);
12105
12105
  }
12106
12106
  function b(x) {
12107
12107
  return x === 45 || x === 46 || x === 58 || x === 95 || Lt(x) ? (e.consume(x), b) : M(x);
@@ -12121,7 +12121,7 @@ function XS(e, t, n) {
12121
12121
  function G(x) {
12122
12122
  return x === 47 || x === 62 || tt(x) ? O(x) : n(x);
12123
12123
  }
12124
- function ie(x) {
12124
+ function re(x) {
12125
12125
  return x === 62 ? (e.consume(x), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(x);
12126
12126
  }
12127
12127
  function X(x) {
@@ -12751,7 +12751,7 @@ function Bk(e, t, n) {
12751
12751
  }
12752
12752
  function R(M, I) {
12753
12753
  return F;
12754
- function F(D, G, ie) {
12754
+ function F(D, G, re) {
12755
12755
  let X, V, U, x;
12756
12756
  return Array.isArray(D) ? (
12757
12757
  /* c8 ignore next 1 */
@@ -12776,7 +12776,7 @@ function Bk(e, t, n) {
12776
12776
  }
12777
12777
  }
12778
12778
  function K(B) {
12779
- return X = B, V = 0, B.length === 0 ? ie : S(B[V]);
12779
+ return X = B, V = 0, B.length === 0 ? re : S(B[V]);
12780
12780
  }
12781
12781
  function S(B) {
12782
12782
  return q;
@@ -12796,7 +12796,7 @@ function Bk(e, t, n) {
12796
12796
  return M(U, x), G;
12797
12797
  }
12798
12798
  function te(B) {
12799
- return x.restore(), ++V < X.length ? S(X[V]) : ie;
12799
+ return x.restore(), ++V < X.length ? S(X[V]) : re;
12800
12800
  }
12801
12801
  }
12802
12802
  }
@@ -12807,9 +12807,9 @@ function Bk(e, t, n) {
12807
12807
  const M = m(), I = c.previous, F = c.currentConstruct, D = c.events.length, G = Array.from(a);
12808
12808
  return {
12809
12809
  from: D,
12810
- restore: ie
12810
+ restore: re
12811
12811
  };
12812
- function ie() {
12812
+ function re() {
12813
12813
  r = M, c.previous = I, c.currentConstruct = F, c.events.length = D, a = G, b();
12814
12814
  }
12815
12815
  }
@@ -12976,8 +12976,8 @@ function qk(e) {
12976
12976
  definitionLabelString: s,
12977
12977
  definitionTitleString: s,
12978
12978
  emphasis: o(ke),
12979
- hardBreakEscape: o(ne),
12980
- hardBreakTrailing: o(ne),
12979
+ hardBreakEscape: o(ie),
12980
+ hardBreakTrailing: o(ie),
12981
12981
  htmlFlow: o(me, s),
12982
12982
  htmlFlowData: O,
12983
12983
  htmlText: o(me, s),
@@ -13034,7 +13034,7 @@ function qk(e) {
13034
13034
  label: U,
13035
13035
  labelText: V,
13036
13036
  lineEnding: M,
13037
- link: l(ie),
13037
+ link: l(re),
13038
13038
  listItem: l(),
13039
13039
  listOrdered: l(),
13040
13040
  listUnordered: l(),
@@ -13284,7 +13284,7 @@ function qk(e) {
13284
13284
  const H = this.resume(), J = this.stack[this.stack.length - 1];
13285
13285
  J.value = H;
13286
13286
  }
13287
- function ie() {
13287
+ function re() {
13288
13288
  const H = this.stack[this.stack.length - 1];
13289
13289
  if (this.data.inReference) {
13290
13290
  const J = this.data.referenceType || "shortcut";
@@ -13399,7 +13399,7 @@ function qk(e) {
13399
13399
  children: []
13400
13400
  };
13401
13401
  }
13402
- function ne() {
13402
+ function ie() {
13403
13403
  return {
13404
13404
  type: "break"
13405
13405
  };
@@ -22346,7 +22346,7 @@ function fN(e) {
22346
22346
  },
22347
22347
  C
22348
22348
  ]
22349
- }, ie = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", X = {
22349
+ }, re = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", X = {
22350
22350
  match: [
22351
22351
  /const|var|let/,
22352
22352
  /\s+/,
@@ -22355,7 +22355,7 @@ function fN(e) {
22355
22355
  /=\s*/,
22356
22356
  /(async\s*)?/,
22357
22357
  // async is optional
22358
- t.lookahead(ie)
22358
+ t.lookahead(re)
22359
22359
  ],
22360
22360
  keywords: "async",
22361
22361
  className: {
@@ -22410,7 +22410,7 @@ function fN(e) {
22410
22410
  // we have to count the parens to make sure we actually have the
22411
22411
  // correct bounding ( ) before the =>. There could be any number of
22412
22412
  // sub-expressions inside also surrounded by parens.
22413
- begin: ie,
22413
+ begin: re,
22414
22414
  returnBegin: !0,
22415
22415
  end: "\\s*=>",
22416
22416
  contains: [
@@ -25090,8 +25090,8 @@ function AN(e) {
25090
25090
  keyword: y,
25091
25091
  literal: ((D) => {
25092
25092
  const G = [];
25093
- return D.forEach((ie) => {
25094
- G.push(ie), ie.toLowerCase() === ie ? G.push(ie.toUpperCase()) : G.push(ie.toLowerCase());
25093
+ return D.forEach((re) => {
25094
+ G.push(re), re.toLowerCase() === re ? G.push(re.toUpperCase()) : G.push(re.toLowerCase());
25095
25095
  }), G;
25096
25096
  })(v),
25097
25097
  built_in: E
@@ -28635,7 +28635,7 @@ function tA(e) {
28635
28635
  // Consume .keyword to prevent highlighting properties and methods as keywords.
28636
28636
  match: Ze(/\./, Bt(...Hs)),
28637
28637
  relevance: 0
28638
- }, s = Hs.filter((ne) => typeof ne == "string").concat(["_|0"]), a = Hs.filter((ne) => typeof ne != "string").concat(ZN).map(Ql), l = { variants: [
28638
+ }, s = Hs.filter((ie) => typeof ie == "string").concat(["_|0"]), a = Hs.filter((ie) => typeof ie != "string").concat(ZN).map(Ql), l = { variants: [
28639
28639
  {
28640
28640
  className: "keyword",
28641
28641
  match: Bt(...a, ...$d)
@@ -28695,34 +28695,34 @@ function tA(e) {
28695
28695
  // binary-literal
28696
28696
  { match: /\b0b([01]_*)+\b/ }
28697
28697
  ]
28698
- }, _ = (ne = "") => ({
28698
+ }, _ = (ie = "") => ({
28699
28699
  className: "subst",
28700
28700
  variants: [
28701
- { match: Ze(/\\/, ne, /[0\\tnr"']/) },
28702
- { match: Ze(/\\/, ne, /u\{[0-9a-fA-F]{1,8}\}/) }
28701
+ { match: Ze(/\\/, ie, /[0\\tnr"']/) },
28702
+ { match: Ze(/\\/, ie, /u\{[0-9a-fA-F]{1,8}\}/) }
28703
28703
  ]
28704
- }), k = (ne = "") => ({
28704
+ }), k = (ie = "") => ({
28705
28705
  className: "subst",
28706
- match: Ze(/\\/, ne, /[\t ]*(?:[\r\n]|\r\n)/)
28707
- }), C = (ne = "") => ({
28706
+ match: Ze(/\\/, ie, /[\t ]*(?:[\r\n]|\r\n)/)
28707
+ }), C = (ie = "") => ({
28708
28708
  className: "subst",
28709
28709
  label: "interpol",
28710
- begin: Ze(/\\/, ne, /\(/),
28710
+ begin: Ze(/\\/, ie, /\(/),
28711
28711
  end: /\)/
28712
- }), R = (ne = "") => ({
28713
- begin: Ze(ne, /"""/),
28714
- end: Ze(/"""/, ne),
28712
+ }), R = (ie = "") => ({
28713
+ begin: Ze(ie, /"""/),
28714
+ end: Ze(/"""/, ie),
28715
28715
  contains: [
28716
- _(ne),
28717
- k(ne),
28718
- C(ne)
28716
+ _(ie),
28717
+ k(ie),
28718
+ C(ie)
28719
28719
  ]
28720
- }), A = (ne = "") => ({
28721
- begin: Ze(ne, /"/),
28722
- end: Ze(/"/, ne),
28720
+ }), A = (ie = "") => ({
28721
+ begin: Ze(ie, /"/),
28722
+ end: Ze(/"/, ie),
28723
28723
  contains: [
28724
- _(ne),
28725
- C(ne)
28724
+ _(ie),
28725
+ C(ie)
28726
28726
  ]
28727
28727
  }), O = {
28728
28728
  className: "string",
@@ -28748,8 +28748,8 @@ function tA(e) {
28748
28748
  begin: /\/[^\s](?=[^/\n]*\/)/,
28749
28749
  end: /\//,
28750
28750
  contains: b
28751
- }, I = (ne) => {
28752
- const me = Ze(ne, /\//), Te = Ze(/\//, ne);
28751
+ }, I = (ie) => {
28752
+ const me = Ze(ie, /\//), Te = Ze(/\//, ie);
28753
28753
  return {
28754
28754
  begin: me,
28755
28755
  end: Te,
@@ -28773,13 +28773,13 @@ function tA(e) {
28773
28773
  }, D = { match: Ze(/`/, yn, /`/) }, G = {
28774
28774
  className: "variable",
28775
28775
  match: /\$\d+/
28776
- }, ie = {
28776
+ }, re = {
28777
28777
  className: "variable",
28778
28778
  match: `\\$${To}+`
28779
28779
  }, X = [
28780
28780
  D,
28781
28781
  G,
28782
- ie
28782
+ re
28783
28783
  ], V = {
28784
28784
  match: /(@|#(un)?)available/,
28785
28785
  scope: "keyword",
@@ -29024,8 +29024,8 @@ function tA(e) {
29024
29024
  }
29025
29025
  ]
29026
29026
  };
29027
- for (const ne of O.variants) {
29028
- const me = ne.contains.find((Ce) => Ce.label === "interpol");
29027
+ for (const ie of O.variants) {
29028
+ const me = ie.contains.find((Ce) => Ce.label === "interpol");
29029
29029
  me.keywords = c;
29030
29030
  const Te = [
29031
29031
  ...u,
@@ -29559,7 +29559,7 @@ function nA(e) {
29559
29559
  },
29560
29560
  C
29561
29561
  ]
29562
- }, ie = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", X = {
29562
+ }, re = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", X = {
29563
29563
  match: [
29564
29564
  /const|var|let/,
29565
29565
  /\s+/,
@@ -29568,7 +29568,7 @@ function nA(e) {
29568
29568
  /=\s*/,
29569
29569
  /(async\s*)?/,
29570
29570
  // async is optional
29571
- t.lookahead(ie)
29571
+ t.lookahead(re)
29572
29572
  ],
29573
29573
  keywords: "async",
29574
29574
  className: {
@@ -29623,7 +29623,7 @@ function nA(e) {
29623
29623
  // we have to count the parens to make sure we actually have the
29624
29624
  // correct bounding ( ) before the =>. There could be any number of
29625
29625
  // sub-expressions inside also surrounded by parens.
29626
- begin: ie,
29626
+ begin: re,
29627
29627
  returnBegin: !0,
29628
29628
  end: "\\s*=>",
29629
29629
  contains: [
@@ -30503,8 +30503,8 @@ function cA() {
30503
30503
  } : T instanceof Set && (T.add = T.clear = T.delete = function() {
30504
30504
  throw new Error("set is read-only");
30505
30505
  }), Object.freeze(T), Object.getOwnPropertyNames(T).forEach((W) => {
30506
- const re = T[W], Ne = typeof re;
30507
- (Ne === "object" || Ne === "function") && !Object.isFrozen(re) && e(re);
30506
+ const ne = T[W], Ne = typeof ne;
30507
+ (Ne === "object" || Ne === "function") && !Object.isFrozen(ne) && e(ne);
30508
30508
  }), T;
30509
30509
  }
30510
30510
  class t {
@@ -30522,23 +30522,23 @@ function cA() {
30522
30522
  return T.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
30523
30523
  }
30524
30524
  function r(T, ...W) {
30525
- const re = /* @__PURE__ */ Object.create(null);
30525
+ const ne = /* @__PURE__ */ Object.create(null);
30526
30526
  for (const Ne in T)
30527
- re[Ne] = T[Ne];
30527
+ ne[Ne] = T[Ne];
30528
30528
  return W.forEach(function(Ne) {
30529
30529
  for (const ht in Ne)
30530
- re[ht] = Ne[ht];
30530
+ ne[ht] = Ne[ht];
30531
30531
  }), /** @type {T} */
30532
- re;
30532
+ ne;
30533
30533
  }
30534
30534
  const i = "</span>", o = (T) => !!T.scope, s = (T, { prefix: W }) => {
30535
30535
  if (T.startsWith("language:"))
30536
30536
  return T.replace("language:", "language-");
30537
30537
  if (T.includes(".")) {
30538
- const re = T.split(".");
30538
+ const ne = T.split(".");
30539
30539
  return [
30540
- `${W}${re.shift()}`,
30541
- ...re.map((Ne, ht) => `${Ne}${"_".repeat(ht + 1)}`)
30540
+ `${W}${ne.shift()}`,
30541
+ ...ne.map((Ne, ht) => `${Ne}${"_".repeat(ht + 1)}`)
30542
30542
  ].join(" ");
30543
30543
  }
30544
30544
  return `${W}${T}`;
@@ -30550,8 +30550,8 @@ function cA() {
30550
30550
  * @param {Tree} parseTree - the parse tree (must support `walk` API)
30551
30551
  * @param {{classPrefix: string}} options
30552
30552
  */
30553
- constructor(W, re) {
30554
- this.buffer = "", this.classPrefix = re.classPrefix, W.walk(this);
30553
+ constructor(W, ne) {
30554
+ this.buffer = "", this.classPrefix = ne.classPrefix, W.walk(this);
30555
30555
  }
30556
30556
  /**
30557
30557
  * Adds texts to the output stream
@@ -30566,11 +30566,11 @@ function cA() {
30566
30566
  * @param {Node} node */
30567
30567
  openNode(W) {
30568
30568
  if (!o(W)) return;
30569
- const re = s(
30569
+ const ne = s(
30570
30570
  W.scope,
30571
30571
  { prefix: this.classPrefix }
30572
30572
  );
30573
- this.span(re);
30573
+ this.span(ne);
30574
30574
  }
30575
30575
  /**
30576
30576
  * Adds a node close to the output stream (if needed)
@@ -30614,8 +30614,8 @@ function cA() {
30614
30614
  }
30615
30615
  /** @param {string} scope */
30616
30616
  openNode(W) {
30617
- const re = l({ scope: W });
30618
- this.add(re), this.stack.push(re);
30617
+ const ne = l({ scope: W });
30618
+ this.add(ne), this.stack.push(ne);
30619
30619
  }
30620
30620
  closeNode() {
30621
30621
  if (this.stack.length > 1)
@@ -30638,15 +30638,15 @@ function cA() {
30638
30638
  * @param {Renderer} builder
30639
30639
  * @param {Node} node
30640
30640
  */
30641
- static _walk(W, re) {
30642
- return typeof re == "string" ? W.addText(re) : re.children && (W.openNode(re), re.children.forEach((Ne) => this._walk(W, Ne)), W.closeNode(re)), W;
30641
+ static _walk(W, ne) {
30642
+ return typeof ne == "string" ? W.addText(ne) : ne.children && (W.openNode(ne), ne.children.forEach((Ne) => this._walk(W, Ne)), W.closeNode(ne)), W;
30643
30643
  }
30644
30644
  /**
30645
30645
  * @param {Node} node
30646
30646
  */
30647
30647
  static _collapse(W) {
30648
- typeof W != "string" && W.children && (W.children.every((re) => typeof re == "string") ? W.children = [W.children.join("")] : W.children.forEach((re) => {
30649
- c._collapse(re);
30648
+ typeof W != "string" && W.children && (W.children.every((ne) => typeof ne == "string") ? W.children = [W.children.join("")] : W.children.forEach((ne) => {
30649
+ c._collapse(ne);
30650
30650
  }));
30651
30651
  }
30652
30652
  }
@@ -30674,9 +30674,9 @@ function cA() {
30674
30674
  * @param {Emitter & {root: DataNode}} emitter
30675
30675
  * @param {string} name
30676
30676
  */
30677
- __addSublanguage(W, re) {
30677
+ __addSublanguage(W, ne) {
30678
30678
  const Ne = W.root;
30679
- re && (Ne.scope = `language:${re}`), this.add(Ne);
30679
+ ne && (Ne.scope = `language:${ne}`), this.add(Ne);
30680
30680
  }
30681
30681
  toHTML() {
30682
30682
  return new a(this, this.options).value();
@@ -30698,7 +30698,7 @@ function cA() {
30698
30698
  return p("(?:", T, ")?");
30699
30699
  }
30700
30700
  function p(...T) {
30701
- return T.map((re) => d(re)).join("");
30701
+ return T.map((ne) => d(ne)).join("");
30702
30702
  }
30703
30703
  function v(T) {
30704
30704
  const W = T[T.length - 1];
@@ -30711,15 +30711,15 @@ function cA() {
30711
30711
  return new RegExp(T.toString() + "|").exec("").length - 1;
30712
30712
  }
30713
30713
  function w(T, W) {
30714
- const re = T && T.exec(W);
30715
- return re && re.index === 0;
30714
+ const ne = T && T.exec(W);
30715
+ return ne && ne.index === 0;
30716
30716
  }
30717
30717
  const _ = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
30718
30718
  function k(T, { joinWith: W }) {
30719
- let re = 0;
30719
+ let ne = 0;
30720
30720
  return T.map((Ne) => {
30721
- re += 1;
30722
- const ht = re;
30721
+ ne += 1;
30722
+ const ht = ne;
30723
30723
  let pt = d(Ne), he = "";
30724
30724
  for (; pt.length > 0; ) {
30725
30725
  const ue = _.exec(pt);
@@ -30727,7 +30727,7 @@ function cA() {
30727
30727
  he += pt;
30728
30728
  break;
30729
30729
  }
30730
- he += pt.substring(0, ue.index), pt = pt.substring(ue.index + ue[0].length), ue[0][0] === "\\" && ue[1] ? he += "\\" + String(Number(ue[1]) + ht) : (he += ue[0], ue[0] === "(" && re++);
30730
+ he += pt.substring(0, ue.index), pt = pt.substring(ue.index + ue[0].length), ue[0][0] === "\\" && ue[1] ? he += "\\" + String(Number(ue[1]) + ht) : (he += ue[0], ue[0] === "(" && ne++);
30731
30731
  }
30732
30732
  return he;
30733
30733
  }).map((Ne) => `(${Ne})`).join(W);
@@ -30745,8 +30745,8 @@ function cA() {
30745
30745
  end: /$/,
30746
30746
  relevance: 0,
30747
30747
  /** @type {ModeCallback} */
30748
- "on:begin": (re, Ne) => {
30749
- re.index !== 0 && Ne.ignoreMatch();
30748
+ "on:begin": (ne, Ne) => {
30749
+ ne.index !== 0 && Ne.ignoreMatch();
30750
30750
  }
30751
30751
  }, T);
30752
30752
  }, D = {
@@ -30758,7 +30758,7 @@ function cA() {
30758
30758
  end: "'",
30759
30759
  illegal: "\\n",
30760
30760
  contains: [D]
30761
- }, ie = {
30761
+ }, re = {
30762
30762
  scope: "string",
30763
30763
  begin: '"',
30764
30764
  end: '"',
@@ -30766,7 +30766,7 @@ function cA() {
30766
30766
  contains: [D]
30767
30767
  }, X = {
30768
30768
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
30769
- }, V = function(T, W, re = {}) {
30769
+ }, V = function(T, W, ne = {}) {
30770
30770
  const Ne = r(
30771
30771
  {
30772
30772
  scope: "comment",
@@ -30774,7 +30774,7 @@ function cA() {
30774
30774
  end: W,
30775
30775
  contains: []
30776
30776
  },
30777
- re
30777
+ ne
30778
30778
  );
30779
30779
  Ne.contains.push({
30780
30780
  scope: "doctag",
@@ -30886,12 +30886,12 @@ function cA() {
30886
30886
  T,
30887
30887
  {
30888
30888
  /** @type {ModeCallback} */
30889
- "on:begin": (W, re) => {
30890
- re.data._beginMatch = W[1];
30889
+ "on:begin": (W, ne) => {
30890
+ ne.data._beginMatch = W[1];
30891
30891
  },
30892
30892
  /** @type {ModeCallback} */
30893
- "on:end": (W, re) => {
30894
- re.data._beginMatch !== W[1] && re.ignoreMatch();
30893
+ "on:end": (W, ne) => {
30894
+ ne.data._beginMatch !== W[1] && ne.ignoreMatch();
30895
30895
  }
30896
30896
  }
30897
30897
  );
@@ -30903,7 +30903,7 @@ function cA() {
30903
30903
  NUMBER_MODE: K,
30904
30904
  NUMBER_RE: O,
30905
30905
  PHRASAL_WORDS_MODE: X,
30906
- QUOTE_STRING_MODE: ie,
30906
+ QUOTE_STRING_MODE: re,
30907
30907
  REGEXP_MODE: te,
30908
30908
  RE_STARTERS_RE: I,
30909
30909
  SHEBANG: F,
@@ -30929,21 +30929,21 @@ function cA() {
30929
30929
  T.begin = T.match, delete T.match;
30930
30930
  }
30931
30931
  }
30932
- function ne(T, W) {
30932
+ function ie(T, W) {
30933
30933
  T.relevance === void 0 && (T.relevance = 1);
30934
30934
  }
30935
30935
  const me = (T, W) => {
30936
30936
  if (!T.beforeMatch) return;
30937
30937
  if (T.starts) throw new Error("beforeMatch cannot be used with starts");
30938
- const re = Object.assign({}, T);
30938
+ const ne = Object.assign({}, T);
30939
30939
  Object.keys(T).forEach((Ne) => {
30940
30940
  delete T[Ne];
30941
- }), T.keywords = re.keywords, T.begin = p(re.beforeMatch, f(re.begin)), T.starts = {
30941
+ }), T.keywords = ne.keywords, T.begin = p(ne.beforeMatch, f(ne.begin)), T.starts = {
30942
30942
  relevance: 0,
30943
30943
  contains: [
30944
- Object.assign(re, { endsParent: !0 })
30944
+ Object.assign(ne, { endsParent: !0 })
30945
30945
  ]
30946
- }, T.relevance = 0, delete re.beforeMatch;
30946
+ }, T.relevance = 0, delete ne.beforeMatch;
30947
30947
  }, Te = [
30948
30948
  "of",
30949
30949
  "and",
@@ -30960,9 +30960,9 @@ function cA() {
30960
30960
  "value"
30961
30961
  // common variable name
30962
30962
  ], Ce = "keyword";
30963
- function le(T, W, re = Ce) {
30963
+ function le(T, W, ne = Ce) {
30964
30964
  const Ne = /* @__PURE__ */ Object.create(null);
30965
- return typeof T == "string" ? ht(re, T.split(" ")) : Array.isArray(T) ? ht(re, T) : Object.keys(T).forEach(function(pt) {
30965
+ return typeof T == "string" ? ht(ne, T.split(" ")) : Array.isArray(T) ? ht(ne, T) : Object.keys(T).forEach(function(pt) {
30966
30966
  Object.assign(
30967
30967
  Ne,
30968
30968
  le(T[pt], W, pt)
@@ -30988,12 +30988,12 @@ function cA() {
30988
30988
  }, H = (T, W) => {
30989
30989
  bt[`${T}/${W}`] || (console.log(`Deprecated as of ${T}. ${W}`), bt[`${T}/${W}`] = !0);
30990
30990
  }, J = new Error();
30991
- function ve(T, W, { key: re }) {
30991
+ function ve(T, W, { key: ne }) {
30992
30992
  let Ne = 0;
30993
- const ht = T[re], pt = {}, he = {};
30993
+ const ht = T[ne], pt = {}, he = {};
30994
30994
  for (let ue = 1; ue <= W.length; ue++)
30995
30995
  he[ue + Ne] = ht[ue], pt[ue + Ne] = !0, Ne += E(W[ue - 1]);
30996
- T[re] = he, T[re]._emit = pt, T[re]._multi = !0;
30996
+ T[ne] = he, T[ne]._emit = pt, T[ne]._multi = !0;
30997
30997
  }
30998
30998
  function Oe(T) {
30999
30999
  if (Array.isArray(T.begin)) {
@@ -31026,7 +31026,7 @@ function cA() {
31026
31026
  "m" + (T.case_insensitive ? "i" : "") + (T.unicodeRegex ? "u" : "") + (ue ? "g" : "")
31027
31027
  );
31028
31028
  }
31029
- class re {
31029
+ class ne {
31030
31030
  constructor() {
31031
31031
  this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
31032
31032
  }
@@ -31056,7 +31056,7 @@ function cA() {
31056
31056
  // @ts-ignore
31057
31057
  getMatcher(ue) {
31058
31058
  if (this.multiRegexes[ue]) return this.multiRegexes[ue];
31059
- const _e = new re();
31059
+ const _e = new ne();
31060
31060
  return this.rules.slice(ue).forEach(([Mt, xt]) => _e.addRule(Mt, xt)), _e.compile(), this.multiRegexes[ue] = _e, _e;
31061
31061
  }
31062
31062
  resumingScanAtSamePosition() {
@@ -31104,7 +31104,7 @@ function cA() {
31104
31104
  // raw array if they wanted to perhaps manipulate it, etc.
31105
31105
  ke,
31106
31106
  // default to 1 relevance if not specified
31107
- ne
31107
+ ie
31108
31108
  ].forEach((xt) => xt(he, ue)), he.isCompiled = !0;
31109
31109
  let Mt = null;
31110
31110
  return typeof he.keywords == "object" && he.keywords.$pattern && (he.keywords = Object.assign({}, he.keywords), Mt = he.keywords.$pattern, delete he.keywords.$pattern), Mt = Mt || /\w+/, he.keywords && (he.keywords = le(he.keywords, T.case_insensitive)), _e.keywordPatternRe = W(Mt, !0), ue && (he.begin || (he.begin = /\B|\b/), _e.beginRe = W(_e.begin), !he.end && !he.endsWithParent && (he.end = /\B|\b/), he.end && (_e.endRe = W(_e.end)), _e.terminatorEnd = d(_e.end) || "", he.endsWithParent && ue.terminatorEnd && (_e.terminatorEnd += (he.end ? "|" : "") + ue.terminatorEnd)), he.illegal && (_e.illegalRe = W(
@@ -31137,12 +31137,12 @@ function cA() {
31137
31137
  }
31138
31138
  var St = "11.11.1";
31139
31139
  class Jt extends Error {
31140
- constructor(W, re) {
31141
- super(W), this.name = "HTMLInjectionError", this.html = re;
31140
+ constructor(W, ne) {
31141
+ super(W), this.name = "HTMLInjectionError", this.html = ne;
31142
31142
  }
31143
31143
  }
31144
31144
  const Rt = n, Yn = r, qr = Symbol("nomatch"), ae = 7, ot = function(T) {
31145
- const W = /* @__PURE__ */ Object.create(null), re = /* @__PURE__ */ Object.create(null), Ne = [];
31145
+ const W = /* @__PURE__ */ Object.create(null), ne = /* @__PURE__ */ Object.create(null), Ne = [];
31146
31146
  let ht = !0;
31147
31147
  const pt = "Could not find the language '{}', did you forget to load/include a language module?", he = { disableAutodetect: !0, name: "Plain text", contains: [] };
31148
31148
  let ue = {
@@ -31406,7 +31406,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), kt = ee, nt = be), Ve
31406
31406
  return Li.secondBest = Ln, Li;
31407
31407
  }
31408
31408
  function km(ee, be, Ve) {
31409
- const nt = be && re[be] || Ve;
31409
+ const nt = be && ne[be] || Ve;
31410
31410
  ee.classList.add("hljs"), ee.classList.add(`language-${nt}`);
31411
31411
  }
31412
31412
  function os(ee) {
@@ -31472,18 +31472,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), kt = ee, nt = be), Ve
31472
31472
  }
31473
31473
  function Am(ee) {
31474
31474
  delete W[ee];
31475
- for (const be of Object.keys(re))
31476
- re[be] === ee && delete re[be];
31475
+ for (const be of Object.keys(ne))
31476
+ ne[be] === ee && delete ne[be];
31477
31477
  }
31478
31478
  function Mm() {
31479
31479
  return Object.keys(W);
31480
31480
  }
31481
31481
  function Dn(ee) {
31482
- return ee = (ee || "").toLowerCase(), W[ee] || W[re[ee]];
31482
+ return ee = (ee || "").toLowerCase(), W[ee] || W[ne[ee]];
31483
31483
  }
31484
31484
  function fc(ee, { languageName: be }) {
31485
31485
  typeof ee == "string" && (ee = [ee]), ee.forEach((Ve) => {
31486
- re[Ve.toLowerCase()] = be;
31486
+ ne[Ve.toLowerCase()] = be;
31487
31487
  });
31488
31488
  }
31489
31489
  function hc(ee) {
@@ -32033,7 +32033,7 @@ function Jl({
32033
32033
  smartScrollToBottom: O,
32034
32034
  handleScroll: b,
32035
32035
  scrollToBottom: M
32036
- } = CA(), { isMobile: I, isFullscreen: F, setIsFullscreen: D } = TA(), [G, ie] = P.useState(/* @__PURE__ */ new Set()), [X, V] = P.useState([]), U = zt(t);
32036
+ } = CA(), { isMobile: I, isFullscreen: F, setIsFullscreen: D } = TA(), [G, re] = P.useState(/* @__PURE__ */ new Set()), [X, V] = P.useState([]), U = zt(t);
32037
32037
  P.useEffect(() => (F && I && (document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.width = "100%", document.body.style.height = "100%", document.documentElement.requestFullscreen && document.documentElement.requestFullscreen().catch(console.log)), () => {
32038
32038
  F && I && (document.body.style.overflow = "unset", document.body.style.position = "unset", document.body.style.width = "unset", document.body.style.height = "unset", document.fullscreenElement && document.exitFullscreen().catch(console.log));
32039
32039
  }), [F, I]);
@@ -32073,7 +32073,7 @@ function Jl({
32073
32073
  }, [_, O, R]), P.useEffect(() => {
32074
32074
  w.forEach((L) => {
32075
32075
  const se = `${L.created_at}-${L.type}`;
32076
- G.has(se) || (console.log("Processing tool execution:", se), ie((ke) => new Set(ke).add(se)), setTimeout(() => {
32076
+ G.has(se) || (console.log("Processing tool execution:", se), re((ke) => new Set(ke).add(se)), setTimeout(() => {
32077
32077
  const ke = {
32078
32078
  id: `tool_${se}`,
32079
32079
  content: "",
@@ -32103,13 +32103,13 @@ function Jl({
32103
32103
  }, [w, G, f, R, O]), P.useEffect(() => {
32104
32104
  const L = (pe) => {
32105
32105
  if (console.log("ChatView: Received message:", pe), h(!1), _ && pe.sender.type === "agent") {
32106
- console.log("ChatView: Queuing agent message due to active interaction:", _.methodName), y((ne) => [...ne, pe]);
32106
+ console.log("ChatView: Queuing agent message due to active interaction:", _.methodName), y((ie) => [...ie, pe]);
32107
32107
  return;
32108
32108
  }
32109
- f((ne) => {
32109
+ f((ie) => {
32110
32110
  var Te;
32111
- if (ne.some((Ce) => Ce.id === pe.id))
32112
- return console.log("ChatView: Message already exists, skipping:", pe.id), ne;
32111
+ if (ie.some((Ce) => Ce.id === pe.id))
32112
+ return console.log("ChatView: Message already exists, skipping:", pe.id), ie;
32113
32113
  if (console.log("ChatView: Adding new message:", pe.id), pe.sender.type === "agent" && (p((Ce) => new Set(Ce).add(pe.id)), !((Te = pe.metadata) != null && Te.streaming))) {
32114
32114
  const Ce = pe.content.length * 35 + 1e3;
32115
32115
  setTimeout(() => {
@@ -32119,12 +32119,12 @@ function Jl({
32119
32119
  });
32120
32120
  }, Ce);
32121
32121
  }
32122
- return [...ne, pe];
32122
+ return [...ie, pe];
32123
32123
  }), setTimeout(() => {
32124
32124
  R && O(!0);
32125
32125
  }, 0);
32126
32126
  }, se = (pe) => {
32127
- var ne;
32127
+ var ie;
32128
32128
  if (console.log("ChatView: Updated message:", pe), _ && pe.sender.type === "agent") {
32129
32129
  console.log("ChatView: Queuing agent message update due to active interaction:", _.methodName), y((me) => {
32130
32130
  const Te = me.findIndex((Ce) => Ce.id === pe.id);
@@ -32138,12 +32138,12 @@ function Jl({
32138
32138
  }
32139
32139
  f((me) => me.map((Te) => Te.id === pe.id ? { ...pe } : Te)), setTimeout(() => {
32140
32140
  R && O(!0);
32141
- }, 0), (ne = pe.metadata) != null && ne.streaming || p((me) => {
32141
+ }, 0), (ie = pe.metadata) != null && ie.streaming || p((me) => {
32142
32142
  const Te = new Set(me);
32143
32143
  return Te.delete(pe.id), Te;
32144
32144
  });
32145
32145
  }, ke = (pe) => {
32146
- console.log("ChatView: Sent message:", pe), h(!1), f((ne) => ne.some((Te) => Te.id === pe.id) ? (console.log("ChatView: Sent message already exists, skipping:", pe.id), ne) : (console.log("ChatView: Adding sent message:", pe.id), [...ne, pe])), setTimeout(() => {
32146
+ console.log("ChatView: Sent message:", pe), h(!1), f((ie) => ie.some((Te) => Te.id === pe.id) ? (console.log("ChatView: Sent message already exists, skipping:", pe.id), ie) : (console.log("ChatView: Adding sent message:", pe.id), [...ie, pe])), setTimeout(() => {
32147
32147
  R && O(!0);
32148
32148
  }, 0);
32149
32149
  };
@@ -32151,14 +32151,14 @@ function Jl({
32151
32151
  e.off("chat.message.received", L), e.off("chat.message.updated", se), e.off("chat.message.sent", ke);
32152
32152
  };
32153
32153
  }, [e, _, R, O, h, f, p, y]), P.useEffect(() => {
32154
- const L = (ne) => {
32155
- console.log("ChatView: RPC interaction started:", ne);
32154
+ const L = (ie) => {
32155
+ console.log("ChatView: RPC interaction started:", ie);
32156
32156
  const me = e.getCurrentInteraction();
32157
32157
  console.log("ChatView: Got interaction from client:", me == null ? void 0 : me.methodName), k(me), R && (O(!0), setTimeout(() => {
32158
32158
  R && O(!1);
32159
32159
  }, 100));
32160
- }, se = (ne) => {
32161
- if (console.log("ChatView: RPC interaction completed:", ne), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages"), f((me) => {
32160
+ }, se = (ie) => {
32161
+ if (console.log("ChatView: RPC interaction completed:", ie), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages"), f((me) => {
32162
32162
  const Te = [...me];
32163
32163
  return v.forEach((Ce) => {
32164
32164
  var At;
@@ -32174,9 +32174,9 @@ function Jl({
32174
32174
  }), Te;
32175
32175
  }), y([]), setTimeout(() => {
32176
32176
  R && O(!0);
32177
- }, 0)), ne && ne.response && ne.response.success) {
32177
+ }, 0)), ie && ie.response && ie.response.success) {
32178
32178
  let me = null;
32179
- ne.response.successView ? me = ne.response.successView : ne.successView && (me = ne.successView), f((Te) => {
32179
+ ie.response.successView ? me = ie.response.successView : ie.successView && (me = ie.successView), f((Te) => {
32180
32180
  const Ce = [...Te].reverse().findIndex((bt) => bt.sender.type === "participant");
32181
32181
  let le = Te.length;
32182
32182
  Ce !== -1 && (le = Te.length - Ce);
@@ -32199,7 +32199,7 @@ function Jl({
32199
32199
  return Re.splice(le, 0, At), Re;
32200
32200
  });
32201
32201
  }
32202
- }, ke = async (ne) => {
32202
+ }, ke = async (ie) => {
32203
32203
  _ && (console.log("ChatView: Dismissing active interaction due to timeout"), e.dismissCurrentInteraction()), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages after timeout"), f((Te) => {
32204
32204
  const Ce = [...Te];
32205
32205
  return v.forEach((le) => {
@@ -32218,7 +32218,7 @@ function Jl({
32218
32218
  R && O(!0);
32219
32219
  }, 0));
32220
32220
  let me = null;
32221
- ne && ne.response && ne.response.timeoutView ? me = ne.response.timeoutView : ne && ne.timeoutView && (me = ne.timeoutView), f((Te) => {
32221
+ ie && ie.response && ie.response.timeoutView ? me = ie.response.timeoutView : ie && ie.timeoutView && (me = ie.timeoutView), f((Te) => {
32222
32222
  const Ce = {
32223
32223
  id: `timeout_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
32224
32224
  content: "",
@@ -32237,8 +32237,8 @@ function Jl({
32237
32237
  }), setTimeout(() => {
32238
32238
  e.getCurrentInteraction() || k(null);
32239
32239
  }, 100);
32240
- }, pe = async (ne) => {
32241
- console.log("ChatView: RPC interaction dismissed:", ne), console.log("ChatView: Current interaction before dismiss:", _ == null ? void 0 : _.methodName), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages after dismissal"), f((me) => {
32240
+ }, pe = async (ie) => {
32241
+ console.log("ChatView: RPC interaction dismissed:", ie), console.log("ChatView: Current interaction before dismiss:", _ == null ? void 0 : _.methodName), k(null), v.length > 0 && (console.log("ChatView: Processing", v.length, "queued messages after dismissal"), f((me) => {
32242
32242
  const Te = [...me];
32243
32243
  return v.forEach((Ce) => {
32244
32244
  var At;
@@ -32377,7 +32377,7 @@ function Jl({
32377
32377
  /* @__PURE__ */ g("p", { className: `text-xs ${F && I ? "text-gray-300" : U.text.muted}`, children: "Your conversation will begin shortly" })
32378
32378
  ] }) : /* @__PURE__ */ g("div", { className: "w-full space-y-3 py-4 flex-1 flex flex-col justify-end", children: /* @__PURE__ */ N("div", { className: "space-y-3", children: [
32379
32379
  d.map((L, se) => {
32380
- var ke, pe, ne, me;
32380
+ var ke, pe, ie, me;
32381
32381
  return /* @__PURE__ */ g("div", { children: ((ke = L.metadata) == null ? void 0 : ke.type) === "successView" ? /* @__PURE__ */ g("div", { className: "flex w-full justify-end mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row-reverse flex items-end gap-3 max-w-[85%] min-w-0", children: [
32382
32382
  /* @__PURE__ */ g(
32383
32383
  Le.div,
@@ -32405,7 +32405,7 @@ function Jl({
32405
32405
  minute: "2-digit"
32406
32406
  }) })
32407
32407
  ] })
32408
- ] }) }) : ((ne = L.metadata) == null ? void 0 : ne.type) === "visualization" ? /* @__PURE__ */ g("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
32408
+ ] }) }) : ((ie = L.metadata) == null ? void 0 : ie.type) === "visualization" ? /* @__PURE__ */ g("div", { className: "flex w-full justify-start mb-4 px-1", children: /* @__PURE__ */ N("div", { className: "relative group flex-row flex items-end gap-3 max-w-[85%] min-w-0", children: [
32409
32409
  /* @__PURE__ */ g("div", { className: `w-6 h-6 rounded-full flex items-center justify-center text-white text-xs font-semibold flex-shrink-0 shadow-lg ${t === "light" ? "bg-gradient-to-br from-blue-500 to-purple-600" : "bg-gradient-to-br from-gray-600 to_gray-700"}`, children: K }),
32410
32410
  /* @__PURE__ */ N("div", { className: `flex h-full flex-col justify-between border px-3 py-2 rounded-2xl shadow-lg backdrop-bl-sm message-bubble rounded-bl-md message-hover border-gray-200 dark:border-gray-700 ${U.chatMessage.other} min-w-0 max-w-full break-words overflow-hidden`, style: { overflowWrap: "anywhere", wordBreak: "break-word", hyphens: "auto" }, children: [
32411
32411
  L.metadata.view,
@@ -32643,7 +32643,7 @@ const Yg = Me.forwardRef(({
32643
32643
  p && c && u(!1);
32644
32644
  }, [p, c]);
32645
32645
  const G = Me.useCallback((B) => {
32646
- }, []), ie = Me.useCallback(() => {
32646
+ }, []), re = Me.useCallback(() => {
32647
32647
  var B, q, j;
32648
32648
  try {
32649
32649
  p && (v(null), (B = o == null ? void 0 : o.dismissCurrentInteraction) == null || B.call(o)), u(!1), f(!1), (q = o == null ? void 0 : o.endSession) == null || q.call(o), (j = o == null ? void 0 : o.disconnect) == null || j.call(o), a == null || a();
@@ -32731,7 +32731,7 @@ const Yg = Me.forwardRef(({
32731
32731
  chatOpen: c,
32732
32732
  onToggleChat: () => u(!c),
32733
32733
  showEndCall: !0,
32734
- onEndCall: ie
32734
+ onEndCall: re
32735
32735
  }
32736
32736
  ) })
32737
32737
  ] });
@@ -32791,7 +32791,7 @@ function NA({
32791
32791
  audioTrack: null
32792
32792
  }, M = P.useMemo(() => e.getRemoteParticipants(), [e, k]), I = fo(e, "microphone"), F = fo(e, "camera"), D = fo(e, "screenShare"), G = P.useCallback(async () => {
32793
32793
  F.pending || await F.toggle();
32794
- }, [F]), ie = P.useCallback(async () => {
32794
+ }, [F]), re = P.useCallback(async () => {
32795
32795
  D.pending || await D.toggle();
32796
32796
  }, [D]), X = P.useCallback(() => {
32797
32797
  l((te) => !te);
@@ -32990,7 +32990,7 @@ function NA({
32990
32990
  showScreenShare: m,
32991
32991
  screenShareEnabled: D.enabled,
32992
32992
  screenShareLoading: D.pending,
32993
- onToggleScreenShare: ie,
32993
+ onToggleScreenShare: re,
32994
32994
  showChatToggle: !0,
32995
32995
  chatOpen: a,
32996
32996
  onToggleChat: X,
@@ -33147,7 +33147,7 @@ function IA() {
33147
33147
  }
33148
33148
  }
33149
33149
  }
33150
- var k = l, C = c, R = a, A = s, O = t, b = u, M = r, I = m, F = h, D = n, G = o, ie = i, X = d, V = !1;
33150
+ var k = l, C = c, R = a, A = s, O = t, b = u, M = r, I = m, F = h, D = n, G = o, re = i, X = d, V = !1;
33151
33151
  function U(L) {
33152
33152
  return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(L) || _(L) === l;
33153
33153
  }
@@ -33187,7 +33187,7 @@ function IA() {
33187
33187
  function xe(L) {
33188
33188
  return _(L) === d;
33189
33189
  }
33190
- Ge.AsyncMode = k, Ge.ConcurrentMode = C, Ge.ContextConsumer = R, Ge.ContextProvider = A, Ge.Element = O, Ge.ForwardRef = b, Ge.Fragment = M, Ge.Lazy = I, Ge.Memo = F, Ge.Portal = D, Ge.Profiler = G, Ge.StrictMode = ie, Ge.Suspense = X, Ge.isAsyncMode = U, Ge.isConcurrentMode = x, Ge.isContextConsumer = $, Ge.isContextProvider = K, Ge.isElement = S, Ge.isForwardRef = Y, Ge.isFragment = te, Ge.isLazy = B, Ge.isMemo = q, Ge.isPortal = j, Ge.isProfiler = ce, Ge.isStrictMode = Q, Ge.isSuspense = xe, Ge.isValidElementType = w, Ge.typeOf = _;
33190
+ Ge.AsyncMode = k, Ge.ConcurrentMode = C, Ge.ContextConsumer = R, Ge.ContextProvider = A, Ge.Element = O, Ge.ForwardRef = b, Ge.Fragment = M, Ge.Lazy = I, Ge.Memo = F, Ge.Portal = D, Ge.Profiler = G, Ge.StrictMode = re, Ge.Suspense = X, Ge.isAsyncMode = U, Ge.isConcurrentMode = x, Ge.isContextConsumer = $, Ge.isContextProvider = K, Ge.isElement = S, Ge.isForwardRef = Y, Ge.isFragment = te, Ge.isLazy = B, Ge.isMemo = q, Ge.isPortal = j, Ge.isProfiler = ce, Ge.isStrictMode = Q, Ge.isSuspense = xe, Ge.isValidElementType = w, Ge.typeOf = _;
33191
33191
  }()), Ge;
33192
33192
  }
33193
33193
  var qd;
@@ -33382,7 +33382,7 @@ function DA() {
33382
33382
  }
33383
33383
  function y(x) {
33384
33384
  function $(K, S, Y, te, B, q) {
33385
- var j = K[S], ce = ie(j);
33385
+ var j = K[S], ce = re(j);
33386
33386
  if (ce !== x) {
33387
33387
  var Q = X(j);
33388
33388
  return new p(
@@ -33403,7 +33403,7 @@ function DA() {
33403
33403
  return new p("Property `" + B + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
33404
33404
  var q = K[S];
33405
33405
  if (!Array.isArray(q)) {
33406
- var j = ie(q);
33406
+ var j = re(q);
33407
33407
  return new p("Invalid " + te + " `" + B + "` of type " + ("`" + j + "` supplied to `" + Y + "`, expected an array."));
33408
33408
  }
33409
33409
  for (var ce = 0; ce < q.length; ce++) {
@@ -33419,7 +33419,7 @@ function DA() {
33419
33419
  function x($, K, S, Y, te) {
33420
33420
  var B = $[K];
33421
33421
  if (!a(B)) {
33422
- var q = ie(B);
33422
+ var q = re(B);
33423
33423
  return new p("Invalid " + Y + " `" + te + "` of type " + ("`" + q + "` supplied to `" + S + "`, expected a single ReactElement."));
33424
33424
  }
33425
33425
  return null;
@@ -33430,7 +33430,7 @@ function DA() {
33430
33430
  function x($, K, S, Y, te) {
33431
33431
  var B = $[K];
33432
33432
  if (!e.isValidElementType(B)) {
33433
- var q = ie(B);
33433
+ var q = re(B);
33434
33434
  return new p("Invalid " + Y + " `" + te + "` of type " + ("`" + q + "` supplied to `" + S + "`, expected a single ReactElement type."));
33435
33435
  }
33436
33436
  return null;
@@ -33468,7 +33468,7 @@ function DA() {
33468
33468
  function $(K, S, Y, te, B) {
33469
33469
  if (typeof x != "function")
33470
33470
  return new p("Property `" + B + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
33471
- var q = K[S], j = ie(q);
33471
+ var q = K[S], j = re(q);
33472
33472
  if (j !== "object")
33473
33473
  return new p("Invalid " + te + " `" + B + "` of type " + ("`" + j + "` supplied to `" + Y + "`, expected an object."));
33474
33474
  for (var ce in q)
@@ -33516,7 +33516,7 @@ function DA() {
33516
33516
  }
33517
33517
  function I(x) {
33518
33518
  function $(K, S, Y, te, B) {
33519
- var q = K[S], j = ie(q);
33519
+ var q = K[S], j = re(q);
33520
33520
  if (j !== "object")
33521
33521
  return new p("Invalid " + te + " `" + B + "` of type `" + j + "` " + ("supplied to `" + Y + "`, expected `object`."));
33522
33522
  for (var ce in x) {
@@ -33533,7 +33533,7 @@ function DA() {
33533
33533
  }
33534
33534
  function F(x) {
33535
33535
  function $(K, S, Y, te, B) {
33536
- var q = K[S], j = ie(q);
33536
+ var q = K[S], j = re(q);
33537
33537
  if (j !== "object")
33538
33538
  return new p("Invalid " + te + " `" + B + "` of type `" + j + "` " + ("supplied to `" + Y + "`, expected `object`."));
33539
33539
  var ce = t({}, K[S], x);
@@ -33590,14 +33590,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
33590
33590
  function G(x, $) {
33591
33591
  return x === "symbol" ? !0 : $ ? $["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && $ instanceof Symbol : !1;
33592
33592
  }
33593
- function ie(x) {
33593
+ function re(x) {
33594
33594
  var $ = typeof x;
33595
33595
  return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : G($, x) ? "symbol" : $;
33596
33596
  }
33597
33597
  function X(x) {
33598
33598
  if (typeof x > "u" || x === null)
33599
33599
  return "" + x;
33600
- var $ = ie(x);
33600
+ var $ = re(x);
33601
33601
  if ($ === "object") {
33602
33602
  if (x instanceof Date)
33603
33603
  return "date";
@@ -35128,13 +35128,13 @@ function JM(e = {}) {
35128
35128
  const G = (V = (X = F.theme.components) == null ? void 0 : X[c]) == null ? void 0 : V.styleOverrides;
35129
35129
  if (!G)
35130
35130
  return null;
35131
- const ie = {};
35131
+ const re = {};
35132
35132
  for (const U in G)
35133
- ie[U] = po(F, G[U], F.theme.modularCssLayers ? "theme" : void 0);
35134
- return h(F, ie);
35133
+ re[U] = po(F, G[U], F.theme.modularCssLayers ? "theme" : void 0);
35134
+ return h(F, re);
35135
35135
  }), c && !v && O.push(function(F) {
35136
- var ie, X;
35137
- const D = F.theme, G = (X = (ie = D == null ? void 0 : D.components) == null ? void 0 : ie[c]) == null ? void 0 : X.variants;
35136
+ var re, X;
35137
+ const D = F.theme, G = (X = (re = D == null ? void 0 : D.components) == null ? void 0 : re[c]) == null ? void 0 : X.variants;
35138
35138
  return G ? om(F, G, [], F.theme.modularCssLayers ? "theme" : void 0) : null;
35139
35139
  }), y || O.push(Br), Array.isArray(A[0])) {
35140
35140
  const I = A.shift(), F = new Array(R.length).fill(""), D = new Array(O.length).fill("");
@@ -38783,7 +38783,7 @@ function ia({
38783
38783
  }, Q = (se) => {
38784
38784
  k((ke) => [...ke, se]);
38785
38785
  }, xe = (se) => {
38786
- console.log("๐Ÿ“ VoxketProvider: Received transcription:", se), R((ke) => ke.find((ne) => ne.id === se.id) ? (console.log("๐Ÿ“ VoxketProvider: Duplicate transcription detected, skipping:", se.id), ke) : (console.log("๐Ÿ“ VoxketProvider: Adding new transcription:", se.id), [...ke, se]));
38786
+ console.log("๐Ÿ“ VoxketProvider: Received transcription:", se), R((ke) => ke.find((ie) => ie.id === se.id) ? (console.log("๐Ÿ“ VoxketProvider: Duplicate transcription detected, skipping:", se.id), ke) : (console.log("๐Ÿ“ VoxketProvider: Adding new transcription:", se.id), [...ke, se]));
38787
38787
  }, L = () => {
38788
38788
  console.log("๐Ÿงน VoxketProvider: Clearing chat messages and transcriptions"), k([]), R([]);
38789
38789
  };
@@ -39809,7 +39809,7 @@ function TI(e) {
39809
39809
  onDisplayTypeChange: F,
39810
39810
  participantMetadata: D,
39811
39811
  popupModalityMode: G = "all"
39812
- } = e, [ie, X] = P.useState(!1), [V, U] = P.useState(null), [x, $] = P.useState(() => {
39812
+ } = e, [re, X] = P.useState(!1), [V, U] = P.useState(null), [x, $] = P.useState(() => {
39813
39813
  try {
39814
39814
  if (I)
39815
39815
  return !!I.getCurrentSession();
@@ -39843,7 +39843,7 @@ function TI(e) {
39843
39843
  console.error("Error determining current mode:", T);
39844
39844
  }
39845
39845
  return "welcome";
39846
- }), [L, se] = P.useState(!1), [ke, pe] = P.useState(!1), [ne, me] = P.useState(null), [Te, Ce] = P.useState(!1);
39846
+ }), [L, se] = P.useState(!1), [ke, pe] = P.useState(!1), [ie, me] = P.useState(null), [Te, Ce] = P.useState(!1);
39847
39847
  P.useEffect(() => {
39848
39848
  A === "fullscreen" && console.log("๐ŸŽฏ Widget: Switched to fullscreen mode");
39849
39849
  }, [A]), P.useEffect(() => {
@@ -39877,7 +39877,7 @@ function TI(e) {
39877
39877
  } catch (ae) {
39878
39878
  return console.error("โŒ Failed to create VoxketClient:", ae), U(ae), X(!0), null;
39879
39879
  }
39880
- }, [I, o, i, r, Y, B, R]), At = P.useMemo(() => A === "popup" ? ne ? [ne] : ["voice", "chat", "video"] : R, [A, ne, R]), Re = P.useMemo(() => {
39880
+ }, [I, o, i, r, Y, B, R]), At = P.useMemo(() => R, [R]), Re = P.useMemo(() => {
39881
39881
  try {
39882
39882
  if (!le)
39883
39883
  return console.warn("โš ๏ธ No VoxketClient available, creating fallback room"), new so();
@@ -40060,7 +40060,7 @@ function TI(e) {
40060
40060
  {
40061
40061
  onClick: () => {
40062
40062
  if (J) {
40063
- !ne && (j != null && j.activeModalities) && (j.activeModalities.includes("chat") ? me("chat") : j.activeModalities.includes("video") ? me("video") : j.activeModalities.includes("voice") && me("voice")), pe(!1), se(!0), M && M(!0);
40063
+ !ie && (j != null && j.activeModalities) && (j.activeModalities.includes("chat") ? me("chat") : j.activeModalities.includes("video") ? me("video") : j.activeModalities.includes("voice") && me("voice")), pe(!1), se(!0), M && M(!0);
40064
40064
  return;
40065
40065
  }
40066
40066
  pe(!1), se(!0), M && M(!0);
@@ -40132,7 +40132,7 @@ function TI(e) {
40132
40132
  ] }) });
40133
40133
  })()
40134
40134
  ] });
40135
- if (ie || !le) {
40135
+ if (re || !le) {
40136
40136
  const ae = (V == null ? void 0 : V.message) || "VoxketWidget encountered an error. Please check your configuration.";
40137
40137
  return /* @__PURE__ */ g("div", { className: `voxket-widget-root theme-${y} flex items-center justify-center p-8 ${u || ""}`, style: {
40138
40138
  width: d || "400px",