@telia-ace/widget-conversation-flamingo 1.1.104-rc.1 → 1.1.105-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +39 -39
  2. package/index.mjs +144 -153
  3. package/package.json +2 -2
package/index.mjs CHANGED
@@ -179,8 +179,8 @@ function Zi(n, e, t) {
179
179
  }
180
180
  function a(p, g) {
181
181
  s[p] && (i[p] = function(f) {
182
- return new Promise(function(k, W) {
183
- r.push([p, f, k, W]) > 1 || l(p, f);
182
+ return new Promise(function(k, Z) {
183
+ r.push([p, f, k, Z]) > 1 || l(p, f);
184
184
  });
185
185
  }, g && (i[p] = g(i[p])));
186
186
  }
@@ -557,7 +557,7 @@ function Ji(n) {
557
557
  function er(n) {
558
558
  return x(n == null ? void 0 : n.lift);
559
559
  }
560
- function V(n) {
560
+ function X(n) {
561
561
  return function(e) {
562
562
  if (er(e))
563
563
  return e.lift(function(t) {
@@ -919,7 +919,7 @@ function ur(n, e) {
919
919
  });
920
920
  });
921
921
  }
922
- function G(n, e, t, s, i) {
922
+ function Y(n, e, t, s, i) {
923
923
  s === void 0 && (s = 0), i === void 0 && (i = !1);
924
924
  var r = e.schedule(function() {
925
925
  t(), i ? n.add(this.schedule(null, s)) : this.unsubscribe();
@@ -928,24 +928,24 @@ function G(n, e, t, s, i) {
928
928
  return r;
929
929
  }
930
930
  function Ks(n, e) {
931
- return e === void 0 && (e = 0), V(function(t, s) {
931
+ return e === void 0 && (e = 0), X(function(t, s) {
932
932
  t.subscribe(z(s, function(i) {
933
- return G(s, n, function() {
933
+ return Y(s, n, function() {
934
934
  return s.next(i);
935
935
  }, e);
936
936
  }, function() {
937
- return G(s, n, function() {
937
+ return Y(s, n, function() {
938
938
  return s.complete();
939
939
  }, e);
940
940
  }, function(i) {
941
- return G(s, n, function() {
941
+ return Y(s, n, function() {
942
942
  return s.error(i);
943
943
  }, e);
944
944
  }));
945
945
  });
946
946
  }
947
947
  function Qs(n, e) {
948
- return e === void 0 && (e = 0), V(function(t, s) {
948
+ return e === void 0 && (e = 0), X(function(t, s) {
949
949
  s.add(n.schedule(function() {
950
950
  return t.subscribe(s);
951
951
  }, e));
@@ -968,8 +968,8 @@ function fr(n, e) {
968
968
  function gr(n, e) {
969
969
  return new T(function(t) {
970
970
  var s;
971
- return G(t, e, function() {
972
- s = n[Fs](), G(t, e, function() {
971
+ return Y(t, e, function() {
972
+ s = n[Fs](), Y(t, e, function() {
973
973
  var i, r, o;
974
974
  try {
975
975
  i = s.next(), r = i.value, o = i.done;
@@ -988,9 +988,9 @@ function Xs(n, e) {
988
988
  if (!n)
989
989
  throw new Error("Iterable cannot be null");
990
990
  return new T(function(t) {
991
- G(t, e, function() {
991
+ Y(t, e, function() {
992
992
  var s = n[Symbol.asyncIterator]();
993
- G(t, e, function() {
993
+ Y(t, e, function() {
994
994
  s.next().then(function(i) {
995
995
  i.done ? t.complete() : t.next(i.value);
996
996
  });
@@ -1028,7 +1028,7 @@ function Bt() {
1028
1028
  return gt(n, t);
1029
1029
  }
1030
1030
  function Xe(n, e) {
1031
- return V(function(t, s) {
1031
+ return X(function(t, s) {
1032
1032
  var i = 0;
1033
1033
  t.subscribe(z(s, function(r) {
1034
1034
  s.next(n.call(e, r, i++));
@@ -1099,7 +1099,7 @@ function Er(n, e, t) {
1099
1099
  };
1100
1100
  }
1101
1101
  function Dn(n, e, t) {
1102
- n ? G(t, n, e) : e();
1102
+ n ? Y(t, n, e) : e();
1103
1103
  }
1104
1104
  function Tr(n, e, t, s, i, r, o, a) {
1105
1105
  var l = [], c = 0, h = 0, u = !1, d = function() {
@@ -1109,19 +1109,19 @@ function Tr(n, e, t, s, i, r, o, a) {
1109
1109
  }, g = function(f) {
1110
1110
  c++;
1111
1111
  var k = !1;
1112
- D(t(f, h++)).subscribe(z(e, function(W) {
1113
- e.next(W);
1112
+ D(t(f, h++)).subscribe(z(e, function(Z) {
1113
+ e.next(Z);
1114
1114
  }, function() {
1115
1115
  k = !0;
1116
1116
  }, void 0, function() {
1117
1117
  if (k)
1118
1118
  try {
1119
1119
  c--;
1120
- for (var W = function() {
1120
+ for (var Z = function() {
1121
1121
  var J = l.shift();
1122
1122
  o || g(J);
1123
1123
  }; l.length && c < s; )
1124
- W();
1124
+ Z();
1125
1125
  d();
1126
1126
  } catch (J) {
1127
1127
  e.error(J);
@@ -1138,7 +1138,7 @@ function sn(n, e, t) {
1138
1138
  return Xe(function(r, o) {
1139
1139
  return e(s, r, i, o);
1140
1140
  })(D(n(s, i)));
1141
- }, t) : (typeof e == "number" && (t = e), V(function(s, i) {
1141
+ }, t) : (typeof e == "number" && (t = e), X(function(s, i) {
1142
1142
  return Tr(s, i, n, t);
1143
1143
  }));
1144
1144
  }
@@ -1196,7 +1196,7 @@ function Ur() {
1196
1196
  function jt(n) {
1197
1197
  return n <= 0 ? function() {
1198
1198
  return He;
1199
- } : V(function(e, t) {
1199
+ } : X(function(e, t) {
1200
1200
  var s = 0;
1201
1201
  e.subscribe(z(t, function(i) {
1202
1202
  ++s <= n && (t.next(i), n <= s && t.complete());
@@ -1204,7 +1204,7 @@ function jt(n) {
1204
1204
  });
1205
1205
  }
1206
1206
  function pe(n, e) {
1207
- return V(function(t, s) {
1207
+ return X(function(t, s) {
1208
1208
  var i = null, r = 0, o = !1, a = function() {
1209
1209
  return o && !i && s.complete();
1210
1210
  };
@@ -1222,7 +1222,7 @@ function pe(n, e) {
1222
1222
  });
1223
1223
  }
1224
1224
  function Ht(n) {
1225
- return V(function(e, t) {
1225
+ return X(function(e, t) {
1226
1226
  D(n).subscribe(z(t, function() {
1227
1227
  return t.complete();
1228
1228
  }, Qe)), !t.closed && e.subscribe(t);
@@ -1232,7 +1232,7 @@ function Nt() {
1232
1232
  for (var n = [], e = 0; e < arguments.length; e++)
1233
1233
  n[e] = arguments[e];
1234
1234
  var t = js(n);
1235
- return V(function(s, i) {
1235
+ return X(function(s, i) {
1236
1236
  for (var r = n.length, o = new Array(r), a = n.map(function() {
1237
1237
  return !1;
1238
1238
  }), l = !1, c = function(u) {
@@ -1249,7 +1249,7 @@ function Nt() {
1249
1249
  }));
1250
1250
  });
1251
1251
  }
1252
- var K = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(K || {});
1252
+ var G = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(G || {});
1253
1253
  const Br = () => "10000000-1000-4000-8000-100000000000".replace(
1254
1254
  /[018]/g,
1255
1255
  (n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
@@ -1344,7 +1344,7 @@ class Nr {
1344
1344
  }
1345
1345
  print(e, t = "html", s = this.name) {
1346
1346
  const i = new mt(
1347
- K.Agent,
1347
+ G.Agent,
1348
1348
  { name: s },
1349
1349
  [
1350
1350
  {
@@ -1364,7 +1364,7 @@ class Dr {
1364
1364
  }
1365
1365
  print(e) {
1366
1366
  const t = new mt(
1367
- K.User,
1367
+ G.User,
1368
1368
  { name: this.name },
1369
1369
  [
1370
1370
  {
@@ -1384,7 +1384,7 @@ class qr {
1384
1384
  }
1385
1385
  print(e) {
1386
1386
  const t = new mt(
1387
- K.System,
1387
+ G.System,
1388
1388
  { name: this.name },
1389
1389
  [
1390
1390
  {
@@ -1412,7 +1412,7 @@ class zl {
1412
1412
  disconnected() {
1413
1413
  }
1414
1414
  onUserSubmit(e) {
1415
- this.print(K.User, e.text);
1415
+ this.print(G.User, e.text);
1416
1416
  }
1417
1417
  print(e, t) {
1418
1418
  const s = new mt(
@@ -1522,7 +1522,7 @@ const Fr = (n) => new ti(typeof n == "string" ? n : n + "", void 0, on), L = (n,
1522
1522
  * Copyright 2017 Google LLC
1523
1523
  * SPDX-License-Identifier: BSD-3-Clause
1524
1524
  */
1525
- const { is: Wr, defineProperty: Yr, getOwnPropertyDescriptor: Gr, getOwnPropertyNames: Kr, getOwnPropertySymbols: Qr, getPrototypeOf: Xr } = Object, Q = globalThis, Wn = Q.trustedTypes, Vr = Wn ? Wn.emptyScript : "", Et = Q.reactiveElementPolyfillSupport, Ce = (n, e) => n, Je = { toAttribute(n, e) {
1525
+ const { is: Wr, defineProperty: Yr, getOwnPropertyDescriptor: Gr, getOwnPropertyNames: Kr, getOwnPropertySymbols: Qr, getPrototypeOf: Xr } = Object, K = globalThis, Wn = K.trustedTypes, Vr = Wn ? Wn.emptyScript : "", Et = K.reactiveElementPolyfillSupport, Ce = (n, e) => n, Je = { toAttribute(n, e) {
1526
1526
  switch (e) {
1527
1527
  case Boolean:
1528
1528
  n = n ? Vr : null;
@@ -1551,7 +1551,7 @@ const { is: Wr, defineProperty: Yr, getOwnPropertyDescriptor: Gr, getOwnProperty
1551
1551
  }
1552
1552
  return t;
1553
1553
  } }, an = (n, e) => !Wr(n, e), Yn = { attribute: !0, type: String, converter: Je, reflect: !1, hasChanged: an };
1554
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Q.litPropertyMetadata ?? (Q.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1554
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), K.litPropertyMetadata ?? (K.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1555
1555
  let le = class extends HTMLElement {
1556
1556
  static addInitializer(e) {
1557
1557
  this._$Ei(), (this.l ?? (this.l = [])).push(e);
@@ -1750,15 +1750,15 @@ let le = class extends HTMLElement {
1750
1750
  firstUpdated(e) {
1751
1751
  }
1752
1752
  };
1753
- le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[Ce("elementProperties")] = /* @__PURE__ */ new Map(), le[Ce("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: le }), (Q.reactiveElementVersions ?? (Q.reactiveElementVersions = [])).push("2.0.4");
1753
+ le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[Ce("elementProperties")] = /* @__PURE__ */ new Map(), le[Ce("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: le }), (K.reactiveElementVersions ?? (K.reactiveElementVersions = [])).push("2.0.4");
1754
1754
  /**
1755
1755
  * @license
1756
1756
  * Copyright 2017 Google LLC
1757
1757
  * SPDX-License-Identifier: BSD-3-Clause
1758
1758
  */
1759
- const Ae = globalThis, et = Ae.trustedTypes, Gn = et ? et.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ni = "$lit$", Y = `lit$${Math.random().toFixed(9).slice(2)}$`, si = "?" + Y, Jr = `<${si}>`, ie = document, Re = () => ie.createComment(""), Pe = (n) => n === null || typeof n != "object" && typeof n != "function", ln = Array.isArray, eo = (n) => ln(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Tt = `[
1759
+ const Ae = globalThis, et = Ae.trustedTypes, Gn = et ? et.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ni = "$lit$", W = `lit$${Math.random().toFixed(9).slice(2)}$`, si = "?" + W, Jr = `<${si}>`, ie = document, Re = () => ie.createComment(""), Pe = (n) => n === null || typeof n != "object" && typeof n != "function", ln = Array.isArray, eo = (n) => ln(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Tt = `[
1760
1760
  \f\r]`, ke = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kn = /-->/g, Qn = />/g, ee = RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
1761
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xn = /'/g, Vn = /"/g, ii = /^(?:script|style|textarea|title)$/i, to = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), v = to(1), X = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Jn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
1761
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xn = /'/g, Vn = /"/g, ii = /^(?:script|style|textarea|title)$/i, to = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), v = to(1), Q = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Jn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
1762
1762
  function ri(n, e) {
1763
1763
  if (!ln(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1764
1764
  return Gn !== void 0 ? Gn.createHTML(e) : e;
@@ -1771,7 +1771,7 @@ const no = (n, e) => {
1771
1771
  let c, h, u = -1, d = 0;
1772
1772
  for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); ) d = o.lastIndex, o === ke ? h[1] === "!--" ? o = Kn : h[1] !== void 0 ? o = Qn : h[2] !== void 0 ? (ii.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = i ?? ke, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? Vn : Xn) : o === Vn || o === Xn ? o = ee : o === Kn || o === Qn ? o = ke : (o = ee, i = void 0);
1773
1773
  const p = o === ee && n[a + 1].startsWith("/>") ? " " : "";
1774
- r += o === ke ? l + Jr : u >= 0 ? (s.push(c), l.slice(0, u) + ni + l.slice(u) + Y + p) : l + Y + (u === -2 ? a : p);
1774
+ r += o === ke ? l + Jr : u >= 0 ? (s.push(c), l.slice(0, u) + ni + l.slice(u) + W + p) : l + W + (u === -2 ? a : p);
1775
1775
  }
1776
1776
  return [ri(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
1777
1777
  };
@@ -1788,11 +1788,11 @@ let qt = class oi {
1788
1788
  for (; (i = ne.nextNode()) !== null && l.length < a; ) {
1789
1789
  if (i.nodeType === 1) {
1790
1790
  if (i.hasAttributes()) for (const u of i.getAttributeNames()) if (u.endsWith(ni)) {
1791
- const d = h[o++], p = i.getAttribute(u).split(Y), g = /([.?@])?(.*)/.exec(d);
1791
+ const d = h[o++], p = i.getAttribute(u).split(W), g = /([.?@])?(.*)/.exec(d);
1792
1792
  l.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? io : g[1] === "?" ? ro : g[1] === "@" ? oo : vt }), i.removeAttribute(u);
1793
- } else u.startsWith(Y) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
1793
+ } else u.startsWith(W) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
1794
1794
  if (ii.test(i.tagName)) {
1795
- const u = i.textContent.split(Y), d = u.length - 1;
1795
+ const u = i.textContent.split(W), d = u.length - 1;
1796
1796
  if (d > 0) {
1797
1797
  i.textContent = et ? et.emptyScript : "";
1798
1798
  for (let p = 0; p < d; p++) i.append(u[p], Re()), ne.nextNode(), l.push({ type: 2, index: ++r });
@@ -1802,7 +1802,7 @@ let qt = class oi {
1802
1802
  } else if (i.nodeType === 8) if (i.data === si) l.push({ type: 2, index: r });
1803
1803
  else {
1804
1804
  let u = -1;
1805
- for (; (u = i.data.indexOf(Y, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += Y.length - 1;
1805
+ for (; (u = i.data.indexOf(W, u + 1)) !== -1; ) l.push({ type: 7, index: r }), u += W.length - 1;
1806
1806
  }
1807
1807
  r++;
1808
1808
  }
@@ -1814,7 +1814,7 @@ let qt = class oi {
1814
1814
  };
1815
1815
  function be(n, e, t = n, s) {
1816
1816
  var o, a;
1817
- if (e === X) return e;
1817
+ if (e === Q) return e;
1818
1818
  let i = s !== void 0 ? (o = t._$Co) == null ? void 0 : o[s] : t._$Cl;
1819
1819
  const r = Pe(e) ? void 0 : e._$litDirective$;
1820
1820
  return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = i : t._$Cl = i), i !== void 0 && (e = be(n, i._$AS(n, e.values), i, s)), e;
@@ -1867,7 +1867,7 @@ class Ne {
1867
1867
  return this._$AB;
1868
1868
  }
1869
1869
  _$AI(e, t = this) {
1870
- e = be(this, e, t), Pe(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== X && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : eo(e) ? this.k(e) : this._(e);
1870
+ e = be(this, e, t), Pe(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== Q && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : eo(e) ? this.k(e) : this._(e);
1871
1871
  }
1872
1872
  O(e) {
1873
1873
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -1923,11 +1923,11 @@ class vt {
1923
1923
  _$AI(e, t = this, s, i) {
1924
1924
  const r = this.strings;
1925
1925
  let o = !1;
1926
- if (r === void 0) e = be(this, e, t, 0), o = !Pe(e) || e !== this._$AH && e !== X, o && (this._$AH = e);
1926
+ if (r === void 0) e = be(this, e, t, 0), o = !Pe(e) || e !== this._$AH && e !== Q, o && (this._$AH = e);
1927
1927
  else {
1928
1928
  const a = e;
1929
1929
  let l, c;
1930
- for (e = r[0], l = 0; l < r.length - 1; l++) c = be(this, a[s + l], t, l), c === X && (c = this._$AH[l]), o || (o = !Pe(c) || c !== this._$AH[l]), c === m ? e = m : e !== m && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
1930
+ for (e = r[0], l = 0; l < r.length - 1; l++) c = be(this, a[s + l], t, l), c === Q && (c = this._$AH[l]), o || (o = !Pe(c) || c !== this._$AH[l]), c === m ? e = m : e !== m && (e += (c ?? "") + r[l + 1]), this._$AH[l] = c;
1931
1931
  }
1932
1932
  o && !i && this.j(e);
1933
1933
  }
@@ -1956,7 +1956,7 @@ class oo extends vt {
1956
1956
  super(e, t, s, i, r), this.type = 5;
1957
1957
  }
1958
1958
  _$AI(e, t = this) {
1959
- if ((e = be(this, e, t, 0) ?? m) === X) return;
1959
+ if ((e = be(this, e, t, 0) ?? m) === Q) return;
1960
1960
  const s = this._$AH, i = e === m && s !== m || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, r = e !== m && (s === m || i);
1961
1961
  i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
1962
1962
  }
@@ -2014,7 +2014,7 @@ let S = class extends le {
2014
2014
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
2015
2015
  }
2016
2016
  render() {
2017
- return X;
2017
+ return Q;
2018
2018
  }
2019
2019
  };
2020
2020
  var Ls;
@@ -2108,7 +2108,7 @@ const co = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
2108
2108
  };
2109
2109
  let he, ai, bt, li = !1, tt = !1, cn = !1, R = !1, ns = null, Ft = !1;
2110
2110
  const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, ci = yt.HTMLElement || class {
2111
- }, E = {
2111
+ }, A = {
2112
2112
  $flags$: 0,
2113
2113
  $resourcesUrl$: "",
2114
2114
  jmp: (n) => n(),
@@ -2136,7 +2136,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2136
2136
  })(), hi = (n, e, t, s) => {
2137
2137
  t && t.map(([i, r, o]) => {
2138
2138
  const a = xo(n, i), l = $o(e, o), c = wo(i);
2139
- E.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => E.rel(a, r, l, c));
2139
+ A.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => A.rel(a, r, l, c));
2140
2140
  });
2141
2141
  }, $o = (n, e) => (t) => {
2142
2142
  try {
@@ -2221,7 +2221,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2221
2221
  if (e === "ref")
2222
2222
  s && s(n);
2223
2223
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2224
- e[2] === "-" ? e = e.slice(3) : us(yt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && E.rel(n, e, t, !1), s && E.ael(n, e, s, !1);
2224
+ e[2] === "-" ? e = e.slice(3) : us(yt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && A.rel(n, e, t, !1), s && A.ael(n, e, s, !1);
2225
2225
  else {
2226
2226
  const l = hn(s);
2227
2227
  if ((o || l && s !== null) && !i)
@@ -2264,13 +2264,13 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2264
2264
  }
2265
2265
  return o["s-hn"] = bt, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ai, o["s-sn"] = i.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === i.$tag$ && n.$elm$ && Oe(n.$elm$, !1)), o;
2266
2266
  }, Oe = (n, e) => {
2267
- E.$flags$ |= 1;
2267
+ A.$flags$ |= 1;
2268
2268
  const t = n.childNodes;
2269
2269
  for (let s = t.length - 1; s >= 0; s--) {
2270
2270
  const i = t[s];
2271
2271
  i["s-hn"] !== bt && i["s-ol"] && (gi(i).insertBefore(i, dn(i)), i["s-ol"].remove(), i["s-ol"] = void 0, cn = !0), e && Oe(i, e);
2272
2272
  }
2273
- E.$flags$ &= -2;
2273
+ A.$flags$ &= -2;
2274
2274
  }, pi = (n, e, t, s, i, r) => {
2275
2275
  let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
2276
2276
  for (o.shadowRoot && o.tagName === bt && (o = o.shadowRoot); i <= r; ++i)
@@ -2349,7 +2349,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2349
2349
  const t = n.$hostElement$, s = n.$cmpMeta$, i = n.$vnode$ || nt(null, null), r = Lo(e) ? e : fe(null, null, e);
2350
2350
  bt = t.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, he = t["s-sc"], ai = t["s-cr"], li = (s.$flags$ & 1) !== 0, tt = !1, ue(i, r);
2351
2351
  {
2352
- if (E.$flags$ |= 1, cn) {
2352
+ if (A.$flags$ |= 1, cn) {
2353
2353
  vi(r.$elm$);
2354
2354
  let o, a, l, c, h, u, d = 0;
2355
2355
  for (; d < M.length; d++)
@@ -2365,7 +2365,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2365
2365
  } else
2366
2366
  a.nodeType === 1 && (a.hidden = !0);
2367
2367
  }
2368
- tt && mi(r.$elm$), E.$flags$ &= -2, M.length = 0;
2368
+ tt && mi(r.$elm$), A.$flags$ &= -2, M.length = 0;
2369
2369
  }
2370
2370
  }, zo = (n) => n, Uo = (n, e, t) => {
2371
2371
  const s = zo(n);
@@ -2378,7 +2378,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2378
2378
  })
2379
2379
  };
2380
2380
  }, Bo = (n, e, t) => {
2381
- const s = E.ce(e, t);
2381
+ const s = A.ce(e, t);
2382
2382
  return n.dispatchEvent(s), s;
2383
2383
  }, jo = (n, e) => {
2384
2384
  }, yi = (n, e) => (n.$flags$ |= 16, jo(n, n.$ancestorComponent$), sa(() => Ho(n, e))), Ho = (n, e) => {
@@ -2450,7 +2450,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2450
2450
  {
2451
2451
  const r = /* @__PURE__ */ new Map();
2452
2452
  i.attributeChangedCallback = function(o, a, l) {
2453
- E.jmp(() => {
2453
+ A.jmp(() => {
2454
2454
  const c = r.get(o);
2455
2455
  if (this.hasOwnProperty(c))
2456
2456
  l = this[c], delete this[c];
@@ -2481,7 +2481,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2481
2481
  e.$ancestorComponent$, yi(e, !0);
2482
2482
  }, Ko = (n) => {
2483
2483
  }, Qo = (n) => {
2484
- if (!(E.$flags$ & 1)) {
2484
+ if (!(A.$flags$ & 1)) {
2485
2485
  const e = $t(n), t = e.$cmpMeta$, s = re("connectedCallback", t.$tagName$);
2486
2486
  e.$flags$ & 1 ? (hi(n, e, t.$listeners$), Ko(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Xo(n), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
2487
2487
  if (r & 31 && n.hasOwnProperty(i)) {
@@ -2494,7 +2494,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2494
2494
  const e = n["s-cr"] = N.createComment("");
2495
2495
  e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
2496
2496
  }, Vo = (n) => {
2497
- if (!(E.$flags$ & 1)) {
2497
+ if (!(A.$flags$ & 1)) {
2498
2498
  const e = $t(n);
2499
2499
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2500
2500
  }
@@ -2531,7 +2531,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2531
2531
  };
2532
2532
  return hi(n, t, e.$listeners$), xi.set(n, t);
2533
2533
  }, us = (n, e) => e in n, De = (n, e) => (0, console.error)(n, e), it = /* @__PURE__ */ new Map(), ea = [], ds = [], wi = [], ta = (n, e) => (t) => {
2534
- n.push(t), Ft || (Ft = !0, e && E.$flags$ & 4 ? na(Zt) : E.raf(Zt));
2534
+ n.push(t), Ft || (Ft = !0, e && A.$flags$ & 4 ? na(Zt) : A.raf(Zt));
2535
2535
  }, ps = (n) => {
2536
2536
  for (let e = 0; e < n.length; e++)
2537
2537
  try {
@@ -2541,7 +2541,7 @@ const yt = typeof window < "u" ? window : {}, N = yt.document || { head: {} }, c
2541
2541
  }
2542
2542
  n.length = 0;
2543
2543
  }, Zt = () => {
2544
- ps(ds), ps(wi), (Ft = ds.length > 0) && E.raf(Zt);
2544
+ ps(ds), ps(wi), (Ft = ds.length > 0) && A.raf(Zt);
2545
2545
  }, na = (n) => bo().then(n), sa = /* @__PURE__ */ ta(wi, !0), ia = (n = {}) => {
2546
2546
  const { content: e = "", title: t, attributes: s = [] } = n;
2547
2547
  let i = "", r = [
@@ -2690,7 +2690,7 @@ function w(n) {
2690
2690
  * Copyright 2017 Google LLC
2691
2691
  * SPDX-License-Identifier: BSD-3-Clause
2692
2692
  */
2693
- function C(n) {
2693
+ function E(n) {
2694
2694
  return w({ ...n, state: !0, attribute: !1 });
2695
2695
  }
2696
2696
  /**
@@ -2842,7 +2842,7 @@ const ye = wt(class extends pn {
2842
2842
  const o = !!e[r];
2843
2843
  o === this.st.has(r) || (i = this.nt) != null && i.has(r) || (o ? (t.add(r), this.st.add(r)) : (t.remove(r), this.st.delete(r)));
2844
2844
  }
2845
- return X;
2845
+ return Q;
2846
2846
  }
2847
2847
  });
2848
2848
  var wa = Object.defineProperty, ka = (n, e, t, s) => {
@@ -3390,16 +3390,16 @@ qe([
3390
3390
  w({ attribute: !1 })
3391
3391
  ], F.prototype, "application");
3392
3392
  qe([
3393
- C()
3393
+ E()
3394
3394
  ], F.prototype, "active");
3395
3395
  qe([
3396
- C()
3396
+ E()
3397
3397
  ], F.prototype, "triggerVisible");
3398
3398
  qe([
3399
- C()
3399
+ E()
3400
3400
  ], F.prototype, "loaded");
3401
3401
  qe([
3402
- C()
3402
+ E()
3403
3403
  ], F.prototype, "icon");
3404
3404
  var Ra = Object.defineProperty, te = (n, e, t, s) => {
3405
3405
  for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -3894,10 +3894,10 @@ fn([
3894
3894
  w({ attribute: !0 })
3895
3895
  ], $e.prototype, "name");
3896
3896
  fn([
3897
- C()
3897
+ E()
3898
3898
  ], $e.prototype, "widget");
3899
3899
  fn([
3900
- C()
3900
+ E()
3901
3901
  ], $e.prototype, "status");
3902
3902
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", ot);
3903
3903
  customElements.get("ace-trigger") || customElements.define("ace-trigger", F);
@@ -4166,7 +4166,7 @@ const En = class En extends S {
4166
4166
  render() {
4167
4167
  var e, t;
4168
4168
  switch (this.entry.type) {
4169
- case K.System:
4169
+ case G.System:
4170
4170
  return v`
4171
4171
  <div class="conversation-system-message">
4172
4172
  ${this.entry.messages.map(
@@ -4184,7 +4184,7 @@ const En = class En extends S {
4184
4184
  <span>${this._getTimestamp(this.entry.timestamp)}</span>
4185
4185
  </div>
4186
4186
  `;
4187
- case K.Agent:
4187
+ case G.Agent:
4188
4188
  return v`<div
4189
4189
  class=${ye({
4190
4190
  "conversation-agent-message": !0,
@@ -4213,7 +4213,7 @@ const En = class En extends S {
4213
4213
  )}
4214
4214
  </div>
4215
4215
  </div>`;
4216
- case K.User:
4216
+ case G.User:
4217
4217
  return v`<div
4218
4218
  class=${ye({
4219
4219
  "conversation-user-message": !0,
@@ -4559,7 +4559,7 @@ class Qt extends pn {
4559
4559
  }
4560
4560
  render(e) {
4561
4561
  if (e === m || e == null) return this._t = void 0, this.it = e;
4562
- if (e === X) return e;
4562
+ if (e === Q) return e;
4563
4563
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
4564
4564
  if (e === this.it) return this._t;
4565
4565
  this.it = e;
@@ -4646,13 +4646,13 @@ function y(n, e = "") {
4646
4646
  const s = {
4647
4647
  replace: (i, r) => {
4648
4648
  let o = typeof r == "string" ? r : r.source;
4649
- return o = o.replace(A.caret, "$1"), t = t.replace(i, o), s;
4649
+ return o = o.replace(C.caret, "$1"), t = t.replace(i, o), s;
4650
4650
  },
4651
4651
  getRegex: () => new RegExp(t, e)
4652
4652
  };
4653
4653
  return s;
4654
4654
  }
4655
- const A = {
4655
+ const C = {
4656
4656
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
4657
4657
  outputLinkReplace: /\\([\[\]])/g,
4658
4658
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -4791,15 +4791,15 @@ const A = {
4791
4791
  }, _s = (n) => Sl[n];
4792
4792
  function U(n, e) {
4793
4793
  if (e) {
4794
- if (A.escapeTest.test(n))
4795
- return n.replace(A.escapeReplace, _s);
4796
- } else if (A.escapeTestNoEncode.test(n))
4797
- return n.replace(A.escapeReplaceNoEncode, _s);
4794
+ if (C.escapeTest.test(n))
4795
+ return n.replace(C.escapeReplace, _s);
4796
+ } else if (C.escapeTestNoEncode.test(n))
4797
+ return n.replace(C.escapeReplaceNoEncode, _s);
4798
4798
  return n;
4799
4799
  }
4800
4800
  function Cs(n) {
4801
4801
  try {
4802
- n = encodeURI(n).replace(A.percentDecode, "%");
4802
+ n = encodeURI(n).replace(C.percentDecode, "%");
4803
4803
  } catch {
4804
4804
  return null;
4805
4805
  }
@@ -4807,12 +4807,12 @@ function Cs(n) {
4807
4807
  }
4808
4808
  function As(n, e) {
4809
4809
  var r;
4810
- const t = n.replace(A.findPipe, (o, a, l) => {
4810
+ const t = n.replace(C.findPipe, (o, a, l) => {
4811
4811
  let c = !1, h = a;
4812
4812
  for (; --h >= 0 && l[h] === "\\"; )
4813
4813
  c = !c;
4814
4814
  return c ? "|" : " |";
4815
- }), s = t.split(A.splitPipe);
4815
+ }), s = t.split(C.splitPipe);
4816
4816
  let i = 0;
4817
4817
  if (s[0].trim() || s.shift(), s.length > 0 && !((r = s.at(-1)) != null && r.trim()) && s.pop(), e)
4818
4818
  if (s.length > e)
@@ -4821,7 +4821,7 @@ function As(n, e) {
4821
4821
  for (; s.length < e; )
4822
4822
  s.push("");
4823
4823
  for (; i < s.length; i++)
4824
- s[i] = s[i].trim().replace(A.slashPipe, "|");
4824
+ s[i] = s[i].trim().replace(C.slashPipe, "|");
4825
4825
  return s;
4826
4826
  }
4827
4827
  function _e(n, e, t) {
@@ -5058,12 +5058,12 @@ ${u}` : u;
5058
5058
  }
5059
5059
  }
5060
5060
  r.loose || (a ? r.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (a = !0));
5061
- let k = null, W;
5062
- this.options.gfm && (k = this.rules.other.listIsTask.exec(u), k && (W = k[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), r.items.push({
5061
+ let k = null, Z;
5062
+ this.options.gfm && (k = this.rules.other.listIsTask.exec(u), k && (Z = k[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), r.items.push({
5063
5063
  type: "list_item",
5064
5064
  raw: h,
5065
5065
  task: !!k,
5066
- checked: W,
5066
+ checked: Z,
5067
5067
  loose: !1,
5068
5068
  text: u,
5069
5069
  tokens: []
@@ -5374,7 +5374,7 @@ ${u}` : u;
5374
5374
  }
5375
5375
  }
5376
5376
  }
5377
- class O {
5377
+ class P {
5378
5378
  constructor(e) {
5379
5379
  $(this, "tokens");
5380
5380
  $(this, "options");
@@ -5387,7 +5387,7 @@ class O {
5387
5387
  top: !0
5388
5388
  };
5389
5389
  const t = {
5390
- other: A,
5390
+ other: C,
5391
5391
  block: Ye.normal,
5392
5392
  inline: Se.normal
5393
5393
  };
@@ -5406,19 +5406,19 @@ class O {
5406
5406
  * Static Lex Method
5407
5407
  */
5408
5408
  static lex(e, t) {
5409
- return new O(t).lex(e);
5409
+ return new P(t).lex(e);
5410
5410
  }
5411
5411
  /**
5412
5412
  * Static Lex Inline Method
5413
5413
  */
5414
5414
  static lexInline(e, t) {
5415
- return new O(t).inlineTokens(e);
5415
+ return new P(t).inlineTokens(e);
5416
5416
  }
5417
5417
  /**
5418
5418
  * Preprocessing
5419
5419
  */
5420
5420
  lex(e) {
5421
- e = e.replace(A.carriageReturn, `
5421
+ e = e.replace(C.carriageReturn, `
5422
5422
  `), this.blockTokens(e, this.tokens);
5423
5423
  for (let t = 0; t < this.inlineQueue.length; t++) {
5424
5424
  const s = this.inlineQueue[t];
@@ -5428,7 +5428,7 @@ class O {
5428
5428
  }
5429
5429
  blockTokens(e, t = [], s = !1) {
5430
5430
  var i, r, o;
5431
- for (this.options.pedantic && (e = e.replace(A.tabCharGlobal, " ").replace(A.spaceLine, "")); e; ) {
5431
+ for (this.options.pedantic && (e = e.replace(C.tabCharGlobal, " ").replace(C.spaceLine, "")); e; ) {
5432
5432
  let a;
5433
5433
  if ((r = (i = this.options.extensions) == null ? void 0 : i.block) != null && r.some((c) => (a = c.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1))
5434
5434
  continue;
@@ -5631,7 +5631,7 @@ class Ue {
5631
5631
  }
5632
5632
  code({ text: e, lang: t, escaped: s }) {
5633
5633
  var o;
5634
- const i = (o = (t || "").match(A.notSpaceStart)) == null ? void 0 : o[0], r = e.replace(A.endingNewline, "") + `
5634
+ const i = (o = (t || "").match(C.notSpaceStart)) == null ? void 0 : o[0], r = e.replace(C.endingNewline, "") + `
5635
5635
  `;
5636
5636
  return i ? '<pre><code class="language-' + U(i) + '">' + (s ? r : U(r, !0)) + `</code></pre>
5637
5637
  ` : "<pre><code>" + (s ? r : U(r, !0)) + `</code></pre>
@@ -5784,7 +5784,7 @@ class wn {
5784
5784
  return "";
5785
5785
  }
5786
5786
  }
5787
- class I {
5787
+ class O {
5788
5788
  constructor(e) {
5789
5789
  $(this, "options");
5790
5790
  $(this, "renderer");
@@ -5795,13 +5795,13 @@ class I {
5795
5795
  * Static Parse Method
5796
5796
  */
5797
5797
  static parse(e, t) {
5798
- return new I(t).parse(e);
5798
+ return new O(t).parse(e);
5799
5799
  }
5800
5800
  /**
5801
5801
  * Static Parse Inline Method
5802
5802
  */
5803
5803
  static parseInline(e, t) {
5804
- return new I(t).parseInline(e);
5804
+ return new O(t).parseInline(e);
5805
5805
  }
5806
5806
  /**
5807
5807
  * Parse Loop
@@ -5975,13 +5975,13 @@ class Le {
5975
5975
  * Provide function to tokenize markdown
5976
5976
  */
5977
5977
  provideLexer() {
5978
- return this.block ? O.lex : O.lexInline;
5978
+ return this.block ? P.lex : P.lexInline;
5979
5979
  }
5980
5980
  /**
5981
5981
  * Provide function to parse tokens
5982
5982
  */
5983
5983
  provideParser() {
5984
- return this.block ? I.parse : I.parseInline;
5984
+ return this.block ? O.parse : O.parseInline;
5985
5985
  }
5986
5986
  }
5987
5987
  $(Le, "passThroughHooks", /* @__PURE__ */ new Set([
@@ -5995,10 +5995,10 @@ class Al {
5995
5995
  $(this, "options", this.setOptions);
5996
5996
  $(this, "parse", this.parseMarkdown(!0));
5997
5997
  $(this, "parseInline", this.parseMarkdown(!1));
5998
- $(this, "Parser", I);
5998
+ $(this, "Parser", O);
5999
5999
  $(this, "Renderer", Ue);
6000
6000
  $(this, "TextRenderer", wn);
6001
- $(this, "Lexer", O);
6001
+ $(this, "Lexer", P);
6002
6002
  $(this, "Tokenizer", ut);
6003
6003
  $(this, "Hooks", Le);
6004
6004
  this.use(...e);
@@ -6120,10 +6120,10 @@ class Al {
6120
6120
  return this.defaults = { ...this.defaults, ...e }, this;
6121
6121
  }
6122
6122
  lexer(e, t) {
6123
- return O.lex(e, t ?? this.defaults);
6123
+ return P.lex(e, t ?? this.defaults);
6124
6124
  }
6125
6125
  parser(e, t) {
6126
- return I.parse(e, t ?? this.defaults);
6126
+ return O.parse(e, t ?? this.defaults);
6127
6127
  }
6128
6128
  parseMarkdown(e) {
6129
6129
  return (s, i) => {
@@ -6135,7 +6135,7 @@ class Al {
6135
6135
  if (typeof s != "string")
6136
6136
  return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(s) + ", string expected"));
6137
6137
  o.hooks && (o.hooks.options = o, o.hooks.block = e);
6138
- const l = o.hooks ? o.hooks.provideLexer() : e ? O.lex : O.lexInline, c = o.hooks ? o.hooks.provideParser() : e ? I.parse : I.parseInline;
6138
+ const l = o.hooks ? o.hooks.provideLexer() : e ? P.lex : P.lexInline, c = o.hooks ? o.hooks.provideParser() : e ? O.parse : O.parseInline;
6139
6139
  if (o.async)
6140
6140
  return Promise.resolve(o.hooks ? o.hooks.preprocess(s) : s).then((h) => l(h, o)).then((h) => o.hooks ? o.hooks.processAllTokens(h) : h).then((h) => o.walkTokens ? Promise.all(this.walkTokens(h, o.walkTokens)).then(() => h) : h).then((h) => c(h, o)).then((h) => o.hooks ? o.hooks.postprocess(h) : h).catch(a);
6141
6141
  try {
@@ -6178,12 +6178,12 @@ b.walkTokens = function(n, e) {
6178
6178
  return oe.walkTokens(n, e);
6179
6179
  };
6180
6180
  b.parseInline = oe.parseInline;
6181
- b.Parser = I;
6182
- b.parser = I.parse;
6181
+ b.Parser = O;
6182
+ b.parser = O.parse;
6183
6183
  b.Renderer = Ue;
6184
6184
  b.TextRenderer = wn;
6185
- b.Lexer = O;
6186
- b.lexer = O.lex;
6185
+ b.Lexer = P;
6186
+ b.lexer = P.lex;
6187
6187
  b.Tokenizer = ut;
6188
6188
  b.Hooks = Le;
6189
6189
  b.parse = b;
@@ -6192,8 +6192,8 @@ b.setOptions;
6192
6192
  b.use;
6193
6193
  b.walkTokens;
6194
6194
  b.parseInline;
6195
- I.parse;
6196
- O.lex;
6195
+ O.parse;
6196
+ P.lex;
6197
6197
  var El = Object.defineProperty, ji = (n, e, t, s) => {
6198
6198
  for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
6199
6199
  (o = n[r]) && (i = o(e, t, i) || i);
@@ -6321,7 +6321,7 @@ ji([
6321
6321
  w({ attribute: !1 })
6322
6322
  ], Be.prototype, "message");
6323
6323
  ji([
6324
- C()
6324
+ E()
6325
6325
  ], Be.prototype, "showLightbox");
6326
6326
  var Tl = Object.defineProperty, Ll = (n, e, t, s) => {
6327
6327
  for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -6416,7 +6416,7 @@ let dt = In;
6416
6416
  Ll([
6417
6417
  w({ attribute: !0 })
6418
6418
  ], dt.prototype, "imageUrl");
6419
- var Rl = Object.defineProperty, Z = (n, e, t, s) => {
6419
+ var Rl = Object.defineProperty, V = (n, e, t, s) => {
6420
6420
  for (var i = void 0, r = n.length - 1, o; r >= 0; r--)
6421
6421
  (o = n[r]) && (i = o(e, t, i) || i);
6422
6422
  return i && Rl(e, t, i), i;
@@ -6430,7 +6430,7 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
6430
6430
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", dt);
6431
6431
  const Ts = Ai(S), Mn = class Mn extends Ts {
6432
6432
  constructor() {
6433
- super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = B(), this.conversationFeedRef = B(), this.formRef = B(), this.inputRef = B(), this.scrollRef = B(), this.counterRef = B(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Ha(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new H("waiting"), this.stateMachine = new Da(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
6433
+ super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = B(), this.conversationFeedRef = B(), this.formRef = B(), this.inputRef = B(), this.scrollRef = B(), this.counterRef = B(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Ha(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new H("waiting"), this.stateMachine = new Da(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
6434
6434
  pe((e) => e ? e == null ? void 0 : e.provider$ : Bt(null))
6435
6435
  ), this.userTyping$ = new _();
6436
6436
  }
@@ -6501,12 +6501,6 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
6501
6501
  enableInput() {
6502
6502
  this.disabledInput = !1;
6503
6503
  }
6504
- enableSkipToLatestMessage() {
6505
- this.disabledSkipToLatest = !1;
6506
- }
6507
- disableSkipToLatestMessage() {
6508
- this.disabledSkipToLatest = !0;
6509
- }
6510
6504
  disableSubmit() {
6511
6505
  this.disabledSubmit = !0;
6512
6506
  }
@@ -6670,12 +6664,12 @@ const Ts = Ai(S), Mn = class Mn extends Ts {
6670
6664
  ${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
6671
6665
  </div>
6672
6666
  </form>
6673
- ${this.disabledSkipToLatest ? m : v`<button
6674
- class="skip-to-latest-message-button"
6675
- @click=${this.skipToLatestMessage}
6676
- >
6677
- ${this.skipToLatestMessageLabel}
6678
- </button>`}
6667
+ <button
6668
+ class="skip-to-latest-message-button"
6669
+ @click=${this.skipToLatestMessage}
6670
+ >
6671
+ ${this.skipToLatestMessageLabel}
6672
+ </button>
6679
6673
  </div>`;
6680
6674
  }
6681
6675
  };
@@ -6965,45 +6959,42 @@ Mn.styles = [
6965
6959
  }
6966
6960
  `
6967
6961
  ];
6968
- let P = Mn;
6969
- Z([
6970
- C()
6971
- ], P.prototype, "message");
6972
- Z([
6973
- C()
6974
- ], P.prototype, "disabledInput");
6975
- Z([
6976
- C()
6977
- ], P.prototype, "disabledSkipToLatest");
6978
- Z([
6979
- C()
6980
- ], P.prototype, "disabledSubmit");
6981
- Z([
6982
- C()
6983
- ], P.prototype, "chatOverlayActive");
6984
- Z([
6985
- C()
6986
- ], P.prototype, "textAreaLength");
6987
- Z([
6988
- C()
6989
- ], P.prototype, "platform");
6990
- Z([
6991
- C()
6992
- ], P.prototype, "entries");
6993
- Z([
6994
- C()
6995
- ], P.prototype, "typing");
6962
+ let I = Mn;
6963
+ V([
6964
+ E()
6965
+ ], I.prototype, "message");
6966
+ V([
6967
+ E()
6968
+ ], I.prototype, "disabledInput");
6969
+ V([
6970
+ E()
6971
+ ], I.prototype, "disabledSubmit");
6972
+ V([
6973
+ E()
6974
+ ], I.prototype, "chatOverlayActive");
6975
+ V([
6976
+ E()
6977
+ ], I.prototype, "textAreaLength");
6978
+ V([
6979
+ E()
6980
+ ], I.prototype, "platform");
6981
+ V([
6982
+ E()
6983
+ ], I.prototype, "entries");
6984
+ V([
6985
+ E()
6986
+ ], I.prototype, "typing");
6996
6987
  const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6997
6988
  __proto__: null,
6998
- Conversation: P,
6999
- default: P
6989
+ Conversation: I,
6990
+ default: I
7000
6991
  }, Symbol.toStringTag, { value: "Module" }));
7001
6992
  export {
7002
6993
  Nr as Agent,
7003
- P as Conversation,
6994
+ I as Conversation,
7004
6995
  Il as ConversationComponent,
7005
6996
  mt as ConversationEntry,
7006
- K as ConversationMessageType,
6997
+ G as ConversationMessageType,
7007
6998
  Rs as ConversationPlatform,
7008
6999
  zl as ConversationProvider,
7009
7000
  Dr as User,