deep-chat-dev 9.0.116 → 9.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/deepChat.js CHANGED
@@ -468,11 +468,11 @@ var Vn = /*#__PURE__*/function () {
468
468
  }();
469
469
  Vn.LOAD_VOICES_MS = 200;
470
470
  var jt = Vn;
471
- var Ie = /*#__PURE__*/function () {
472
- function Ie() {
473
- _classCallCheck(this, Ie);
471
+ var Le = /*#__PURE__*/function () {
472
+ function Le() {
473
+ _classCallCheck(this, Le);
474
474
  }
475
- _createClass(Ie, null, [{
475
+ _createClass(Le, null, [{
476
476
  key: "checkForContainerStyles",
477
477
  value: function checkForContainerStyles(e, t) {
478
478
  var i = e.containerStyle;
@@ -510,7 +510,7 @@ var Ie = /*#__PURE__*/function () {
510
510
  (t = e.children[0]) != null && t.classList.contains("deep-chat-update-message") && (console.error('The "deep-chat-update-message" html class is deprecated since version 1.4.4.'), console.error("Please change to using {..., overwrite: true} object: https://deepchat.dev/docs/connect#Response"));
511
511
  }
512
512
  }]);
513
- return Ie;
513
+ return Le;
514
514
  }();
515
515
  var ii = /*#__PURE__*/function () {
516
516
  function _e() {
@@ -787,7 +787,7 @@ var Xe = /*#__PURE__*/function () {
787
787
  value: function overwrite(e, t, i, n) {
788
788
  var r = e.messages,
789
789
  o = v.overwriteMessage(r, n, t, i, "html", "html-message");
790
- return o && (o.bubbleElement.innerHTML = t, re.apply(e, o.outerContainer), Ie.flagHTMLUpdateClass(o.bubbleElement)), o;
790
+ return o && (o.bubbleElement.innerHTML = t, re.apply(e, o.outerContainer), Le.flagHTMLUpdateClass(o.bubbleElement)), o;
791
791
  }
792
792
  // prettier-ignore
793
793
  }, {
@@ -800,7 +800,7 @@ var Xe = /*#__PURE__*/function () {
800
800
  r.status = !1;
801
801
  }
802
802
  var o = Xe.createElements(e, t, i);
803
- return v.fillEmptyMessageElement(o.bubbleElement, t), re.apply(e, o.outerContainer), Ie.flagHTMLUpdateClass(o.bubbleElement), e.applyCustomStyles(o, i, !1, (a = e.messageStyles) == null ? void 0 : a.html), Xe.addElement(e, o.outerContainer), o;
803
+ return v.fillEmptyMessageElement(o.bubbleElement, t), re.apply(e, o.outerContainer), Le.flagHTMLUpdateClass(o.bubbleElement), e.applyCustomStyles(o, i, !1, (a = e.messageStyles) == null ? void 0 : a.html), Xe.addElement(e, o.outerContainer), o;
804
804
  }
805
805
  }]);
806
806
  return Xe;
@@ -840,15 +840,15 @@ function Di(s) {
840
840
  }
841
841
  return String.fromCharCode(s);
842
842
  }
843
- var Ls = /&([a-z#][a-z0-9]{1,31});/gi,
844
- Is = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
843
+ var Is = /&([a-z#][a-z0-9]{1,31});/gi,
844
+ Ls = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
845
845
  function Rs(s, e) {
846
846
  var t = 0,
847
847
  i = Kn(e);
848
- return e !== i ? i : e.charCodeAt(0) === 35 && Is.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), $n(t)) ? Di(t) : s;
848
+ return e !== i ? i : e.charCodeAt(0) === 35 && Ls.test(e) && (t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10), $n(t)) ? Di(t) : s;
849
849
  }
850
850
  function Re(s) {
851
- return s.indexOf("&") < 0 ? s : s.replace(Ls, Rs);
851
+ return s.indexOf("&") < 0 ? s : s.replace(Is, Rs);
852
852
  }
853
853
  var Ns = /[&<>"]/,
854
854
  Os = /[&<>"]/g,
@@ -2297,8 +2297,8 @@ function kr(s, e) {
2297
2297
  content: i.replace(Ar, "$1")
2298
2298
  }), s.pos = s.posMax + 1, s.posMax = n, !0);
2299
2299
  }
2300
- var Lr = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2301
- function Ir(s, e) {
2300
+ var Ir = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
2301
+ function Lr(s, e) {
2302
2302
  var t,
2303
2303
  i,
2304
2304
  n = s.posMax,
@@ -2314,7 +2314,7 @@ function Ir(s, e) {
2314
2314
  return !t || r + 1 === s.pos || (i = s.src.slice(r + 1, s.pos), i.match(/(^|[^\\])(\\\\)*\s/)) ? (s.pos = r, !1) : (s.posMax = s.pos, s.pos = r + 1, e || s.push({
2315
2315
  type: "sup",
2316
2316
  level: s.level,
2317
- content: i.replace(Lr, "$1")
2317
+ content: i.replace(Ir, "$1")
2318
2318
  }), s.pos = s.posMax + 1, s.posMax = n, !0);
2319
2319
  }
2320
2320
  function Rr(s, e) {
@@ -2484,7 +2484,7 @@ function io(s, e) {
2484
2484
  }
2485
2485
  return e || (s.pending += "&"), s.pos++, !0;
2486
2486
  }
2487
- var Ai = [["text", xr], ["newline", Er], ["escape", _r], ["backticks", wr], ["del", Sr], ["ins", Mr], ["mark", Tr], ["emphasis", Cr], ["sub", kr], ["sup", Ir], ["links", Rr], ["footnote_inline", Nr], ["footnote_ref", Or], ["autolink", Fr], ["htmltag", Qr], ["entity", io]];
2487
+ var Ai = [["text", xr], ["newline", Er], ["escape", _r], ["backticks", wr], ["del", Sr], ["ins", Mr], ["mark", Tr], ["emphasis", Cr], ["sub", kr], ["sup", Lr], ["links", Rr], ["footnote_inline", Nr], ["footnote_ref", Or], ["autolink", Fr], ["htmltag", Qr], ["entity", io]];
2488
2488
  function si() {
2489
2489
  this.ruler = new G();
2490
2490
  for (var s = 0; s < Ai.length; s++) this.ruler.push(Ai[s][0], Ai[s][1]);
@@ -3553,7 +3553,7 @@ var rs = /*#__PURE__*/function () {
3553
3553
  _context4.t0 = i;
3554
3554
  case 5:
3555
3555
  n = _context4.t0;
3556
- n.error ? (t.addNewErrorMessage("service", n.error), e.completionsHandlers.onFinish()) : L.isSimulation(e.deepChat.stream) ? L.simulate(t, e.streamHandlers, n) : (t.addNewMessage(n), e.completionsHandlers.onFinish());
3556
+ n.error ? (t.addNewErrorMessage("service", n.error), e.completionsHandlers.onFinish()) : I.isSimulation(e.deepChat.stream) ? I.simulate(t, e.streamHandlers, n) : (t.addNewMessage(n), e.completionsHandlers.onFinish());
3557
3557
  case 7:
3558
3558
  case "end":
3559
3559
  return _context4.stop();
@@ -3567,7 +3567,7 @@ var rs = /*#__PURE__*/function () {
3567
3567
  value: function requestStream(e, t) {
3568
3568
  setTimeout(function () {
3569
3569
  var i = lt.getResponse(e);
3570
- L.simulate(e, t, i);
3570
+ I.simulate(e, t, i);
3571
3571
  }, 400);
3572
3572
  }
3573
3573
  }]);
@@ -3575,11 +3575,11 @@ var rs = /*#__PURE__*/function () {
3575
3575
  }();
3576
3576
  rs.URL = "deep-chat-demo";
3577
3577
  var ye = rs;
3578
- var L = /*#__PURE__*/function () {
3579
- function L() {
3580
- _classCallCheck(this, L);
3578
+ var I = /*#__PURE__*/function () {
3579
+ function I() {
3580
+ _classCallCheck(this, I);
3581
3581
  }
3582
- _createClass(L, null, [{
3582
+ _createClass(I, null, [{
3583
3583
  key: "request",
3584
3584
  value: // prettier-ignore
3585
3585
  function () {
@@ -3631,7 +3631,7 @@ var L = /*#__PURE__*/function () {
3631
3631
  _context7.next = 16;
3632
3632
  break;
3633
3633
  }
3634
- return _context7.abrupt("return", Le.stream(e, o, i));
3634
+ return _context7.abrupt("return", Ie.stream(e, o, i));
3635
3635
  case 16:
3636
3636
  if (!(((f = e.requestSettings) == null ? void 0 : f.url) === ye.URL)) {
3637
3637
  _context7.next = 18;
@@ -3743,7 +3743,7 @@ var L = /*#__PURE__*/function () {
3743
3743
  }, i), !1), i.text) {
3744
3744
  t.onOpen();
3745
3745
  var r = i.text.split("");
3746
- L.populateMessages(r, new Qe(e), n);
3746
+ I.populateMessages(r, new Qe(e), n);
3747
3747
  }
3748
3748
  }
3749
3749
  }, {
@@ -3756,10 +3756,10 @@ var L = /*#__PURE__*/function () {
3756
3756
  text: r
3757
3757
  });
3758
3758
  var o = setTimeout(function () {
3759
- L.populateMessages(e, t, i, n + 1);
3759
+ I.populateMessages(e, t, i, n + 1);
3760
3760
  }, i.simulationInterim || 6);
3761
3761
  i.abortStream.abort = function () {
3762
- L.abort(o, t, i.onClose);
3762
+ I.abort(o, t, i.onClose);
3763
3763
  };
3764
3764
  } else t.finaliseStreamedMessage(), i.onClose();
3765
3765
  }
@@ -3774,13 +3774,13 @@ var L = /*#__PURE__*/function () {
3774
3774
  clearTimeout(e), t.finaliseStreamedMessage(), i();
3775
3775
  }
3776
3776
  }]);
3777
- return L;
3777
+ return I;
3778
3778
  }();
3779
- var Le = /*#__PURE__*/function () {
3780
- function Le() {
3781
- _classCallCheck(this, Le);
3779
+ var Ie = /*#__PURE__*/function () {
3780
+ function Ie() {
3781
+ _classCallCheck(this, Ie);
3782
3782
  }
3783
- _createClass(Le, null, [{
3783
+ _createClass(Ie, null, [{
3784
3784
  key: "request",
3785
3785
  value: function () {
3786
3786
  var _request2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(e, t, i) {
@@ -3813,7 +3813,7 @@ var Le = /*#__PURE__*/function () {
3813
3813
  _context8.t0 = c;
3814
3814
  case 8:
3815
3815
  d = _context8.t0;
3816
- E.validateResponseFormat(d) ? typeof d.error == "string" ? (console.error(d.error), i.addNewErrorMessage("service", d.error), e.completionsHandlers.onFinish()) : L.isSimulation(e.deepChat.stream) ? L.simulate(i, e.streamHandlers, d) : (i.addNewMessage(d), e.completionsHandlers.onFinish()) : (console.error(C.INVALID_RESPONSE(c, "server", !!e.deepChat.responseInterceptor, d)), i.addNewErrorMessage("service", "Error in server message"), e.completionsHandlers.onFinish());
3816
+ E.validateResponseFormat(d) ? typeof d.error == "string" ? (console.error(d.error), i.addNewErrorMessage("service", d.error), e.completionsHandlers.onFinish()) : I.isSimulation(e.deepChat.stream) ? I.simulate(i, e.streamHandlers, d) : (i.addNewMessage(d), e.completionsHandlers.onFinish()) : (console.error(C.INVALID_RESPONSE(c, "server", !!e.deepChat.responseInterceptor, d)), i.addNewErrorMessage("service", "Error in server message"), e.completionsHandlers.onFinish());
3817
3817
  case 10:
3818
3818
  case "end":
3819
3819
  return _context8.stop();
@@ -3823,7 +3823,7 @@ var Le = /*#__PURE__*/function () {
3823
3823
  return function r(_x18) {
3824
3824
  return _ref2.apply(this, arguments);
3825
3825
  };
3826
- }(), o = Le.generateOptionalSignals();
3826
+ }(), o = Ie.generateOptionalSignals();
3827
3827
  (l = (a = e.requestSettings).handler) == null || l.call(a, t, _objectSpread(_objectSpread({}, o), {}, {
3828
3828
  onResponse: r
3829
3829
  }));
@@ -3857,7 +3857,7 @@ var Le = /*#__PURE__*/function () {
3857
3857
  e.streamHandlers.abortStream.abort = function () {
3858
3858
  o.finaliseStreamedMessage(), e.streamHandlers.onClose(), n = !1;
3859
3859
  };
3860
- var d = Le.generateOptionalSignals();
3860
+ var d = Ie.generateOptionalSignals();
3861
3861
  (p = (u = e.requestSettings).handler) == null || p.call(u, t, _objectSpread(_objectSpread({}, d), {}, {
3862
3862
  onOpen: a,
3863
3863
  onResponse: c,
@@ -3906,7 +3906,7 @@ var Le = /*#__PURE__*/function () {
3906
3906
  _context10.t0 = d;
3907
3907
  case 7:
3908
3908
  u = _context10.t0;
3909
- E.validateResponseFormat(u) ? typeof u.error == "string" ? (console.error(u.error), t.isLastMessageError() || t.addNewErrorMessage("service", u.error)) : e.deepChat.stream ? L.simulate(t, e.streamHandlers, u) : t.addNewMessage(u) : (console.error(C.INVALID_RESPONSE(d, "server", !!e.deepChat.responseInterceptor, u)), t.addNewErrorMessage("service", "Error in server message"));
3909
+ E.validateResponseFormat(u) ? typeof u.error == "string" ? (console.error(u.error), t.isLastMessageError() || t.addNewErrorMessage("service", u.error)) : e.deepChat.stream ? I.simulate(t, e.streamHandlers, u) : t.addNewMessage(u) : (console.error(C.INVALID_RESPONSE(d, "server", !!e.deepChat.responseInterceptor, u)), t.addNewErrorMessage("service", "Error in server message"));
3910
3910
  case 9:
3911
3911
  case "end":
3912
3912
  return _context10.stop();
@@ -3917,7 +3917,7 @@ var Le = /*#__PURE__*/function () {
3917
3917
  return _ref3.apply(this, arguments);
3918
3918
  };
3919
3919
  }(),
3920
- a = Le.generateOptionalSignals();
3920
+ a = Ie.generateOptionalSignals();
3921
3921
  (c = (l = e.requestSettings).handler) == null || c.call(l, void 0, _objectSpread(_objectSpread({}, a), {}, {
3922
3922
  onOpen: n,
3923
3923
  onResponse: o,
@@ -3940,7 +3940,7 @@ var Le = /*#__PURE__*/function () {
3940
3940
  };
3941
3941
  }
3942
3942
  }]);
3943
- return Le;
3943
+ return Ie;
3944
3944
  }();
3945
3945
  var S = /*#__PURE__*/function () {
3946
3946
  function S() {
@@ -3990,7 +3990,7 @@ var S = /*#__PURE__*/function () {
3990
3990
  _context12.next = 13;
3991
3991
  break;
3992
3992
  }
3993
- return _context12.abrupt("return", Le.request(e, o, i));
3993
+ return _context12.abrupt("return", Ie.request(e, o, i));
3994
3994
  case 13:
3995
3995
  if (!(((g = e.requestSettings) == null ? void 0 : g.url) === ye.URL)) {
3996
3996
  _context12.next = 15;
@@ -4043,7 +4043,7 @@ var S = /*#__PURE__*/function () {
4043
4043
  }
4044
4044
  throw Error(C.INVALID_RESPONSE(f, "response", !!e.deepChat.responseInterceptor, _));
4045
4045
  case 15:
4046
- w.makingAnotherRequest || (L.isSimulation(e.deepChat.stream) ? L.simulate(i, e.streamHandlers, w) : (i.addNewMessage(w), c()));
4046
+ w.makingAnotherRequest || (I.isSimulation(e.deepChat.stream) ? I.simulate(i, e.streamHandlers, w) : (i.addNewMessage(w), c()));
4047
4047
  case 16:
4048
4048
  case "end":
4049
4049
  return _context11.stop();
@@ -4103,7 +4103,7 @@ var S = /*#__PURE__*/function () {
4103
4103
  a = _context13.sent;
4104
4104
  a.timeoutMS ? setTimeout(function () {
4105
4105
  S.executePollRequest(e, t, i, n);
4106
- }, a.timeoutMS) : L.isSimulation(e.deepChat.stream) ? L.simulate(n, e.streamHandlers, a) : (n.addNewMessage(a), r());
4106
+ }, a.timeoutMS) : I.isSimulation(e.deepChat.stream) ? I.simulate(n, e.streamHandlers, a) : (n.addNewMessage(a), r());
4107
4107
  case 13:
4108
4108
  case "end":
4109
4109
  return _context13.stop();
@@ -4245,7 +4245,7 @@ var Y = /*#__PURE__*/function () {
4245
4245
  if (!document.body.contains(e.deepChat)) return;
4246
4246
  var i = e.requestSettings.websocket;
4247
4247
  if (i) {
4248
- if (e.requestSettings.handler) return Le.websocket(e, t);
4248
+ if (e.requestSettings.handler) return Ie.websocket(e, t);
4249
4249
  try {
4250
4250
  var n = typeof i != "boolean" ? i : void 0,
4251
4251
  r = new WebSocket(e.requestSettings.url || "", n);
@@ -4304,7 +4304,7 @@ var Y = /*#__PURE__*/function () {
4304
4304
  }
4305
4305
  throw Error(C.INVALID_RESPONSE(a, "server", !!e.deepChat.responseInterceptor, l));
4306
4306
  case 14:
4307
- L.isSimulation(e.deepChat.stream) ? L.simulate(i, e.streamHandlers, c) : i.addNewMessage(c);
4307
+ I.isSimulation(e.deepChat.stream) ? I.simulate(i, e.streamHandlers, c) : i.addNewMessage(c);
4308
4308
  _context15.next = 20;
4309
4309
  break;
4310
4310
  case 17:
@@ -4404,11 +4404,11 @@ var Y = /*#__PURE__*/function () {
4404
4404
  }]);
4405
4405
  return Y;
4406
4406
  }();
4407
- var I = /*#__PURE__*/function () {
4408
- function I() {
4409
- _classCallCheck(this, I);
4407
+ var L = /*#__PURE__*/function () {
4408
+ function L() {
4409
+ _classCallCheck(this, L);
4410
4410
  }
4411
- _createClass(I, null, [{
4411
+ _createClass(L, null, [{
4412
4412
  key: "parseConfig",
4413
4413
  value:
4414
4414
  // prettier-ignore
@@ -4437,7 +4437,7 @@ var I = /*#__PURE__*/function () {
4437
4437
  var n = {
4438
4438
  acceptedFormats: ""
4439
4439
  };
4440
- e.fileTypes.mixedFiles = I.parseConfig(e.requestSettings, n, t, i);
4440
+ e.fileTypes.mixedFiles = L.parseConfig(e.requestSettings, n, t, i);
4441
4441
  }
4442
4442
  }
4443
4443
  // needs to be set after audio to overwrite maxNumberOfFiles
@@ -4450,7 +4450,7 @@ var I = /*#__PURE__*/function () {
4450
4450
  var o = _objectSpread({
4451
4451
  acceptedFormats: "audio/*"
4452
4452
  }, ((a = e.fileTypes.audio) == null ? void 0 : a.files) || {});
4453
- i && (navigator.mediaDevices.getUserMedia !== void 0 ? (e.recordAudio = I.parseConfig(e.requestSettings, o, t, i), _typeof(i) == "object" && i.files && ((_l$files = (l = e.recordAudio).files) !== null && _l$files !== void 0 ? _l$files : l.files = {}, e.recordAudio.files.format = (c = i.files) == null ? void 0 : c.format, e.recordAudio.files.maxDurationSeconds = (d = i.files) == null ? void 0 : d.maxDurationSeconds, (u = e.fileTypes.audio) != null && u.files && ((_p$maxNumberOfFiles = (p = e.fileTypes.audio.files).maxNumberOfFiles) !== null && _p$maxNumberOfFiles !== void 0 ? _p$maxNumberOfFiles : p.maxNumberOfFiles = i.files.maxNumberOfFiles))) : n || (e.fileTypes.audio = I.parseConfig(e.requestSettings, o, t, i)));
4453
+ i && (navigator.mediaDevices.getUserMedia !== void 0 ? (e.recordAudio = L.parseConfig(e.requestSettings, o, t, i), _typeof(i) == "object" && i.files && ((_l$files = (l = e.recordAudio).files) !== null && _l$files !== void 0 ? _l$files : l.files = {}, e.recordAudio.files.format = (c = i.files) == null ? void 0 : c.format, e.recordAudio.files.maxDurationSeconds = (d = i.files) == null ? void 0 : d.maxDurationSeconds, (u = e.fileTypes.audio) != null && u.files && ((_p$maxNumberOfFiles = (p = e.fileTypes.audio.files).maxNumberOfFiles) !== null && _p$maxNumberOfFiles !== void 0 ? _p$maxNumberOfFiles : p.maxNumberOfFiles = i.files.maxNumberOfFiles))) : n || (e.fileTypes.audio = L.parseConfig(e.requestSettings, o, t, i)));
4454
4454
  }
4455
4455
  // prettier-ignore
4456
4456
  }, {
@@ -4460,7 +4460,7 @@ var I = /*#__PURE__*/function () {
4460
4460
  var o = _objectSpread({
4461
4461
  acceptedFormats: "audio/*"
4462
4462
  }, (n == null ? void 0 : n.files) || {});
4463
- e.fileTypes.audio = I.parseConfig(e.requestSettings, o, t, i);
4463
+ e.fileTypes.audio = L.parseConfig(e.requestSettings, o, t, i);
4464
4464
  }
4465
4465
  // prettier-ignore
4466
4466
  }, {
@@ -4470,7 +4470,7 @@ var I = /*#__PURE__*/function () {
4470
4470
  var o = _objectSpread({
4471
4471
  acceptedFormats: "image/gif"
4472
4472
  }, (n == null ? void 0 : n.files) || {});
4473
- e.fileTypes.gifs = I.parseConfig(e.requestSettings, o, t, i);
4473
+ e.fileTypes.gifs = L.parseConfig(e.requestSettings, o, t, i);
4474
4474
  }
4475
4475
  // needs to be set after images to overwrite maxNumberOfFiles
4476
4476
  // prettier-ignore
@@ -4482,7 +4482,7 @@ var I = /*#__PURE__*/function () {
4482
4482
  var o = _objectSpread({
4483
4483
  acceptedFormats: "image/*"
4484
4484
  }, ((a = e.fileTypes.images) == null ? void 0 : a.files) || {});
4485
- i && (navigator.mediaDevices.getUserMedia !== void 0 ? (e.camera = I.parseConfig(e.requestSettings, o, t, i), _typeof(i) == "object" && (e.camera.modalContainerStyle = i.modalContainerStyle, i.files && ((_l$files2 = (l = e.camera).files) !== null && _l$files2 !== void 0 ? _l$files2 : l.files = {}, e.camera.files.format = (c = i.files) == null ? void 0 : c.format, e.camera.files.dimensions = (d = i.files) == null ? void 0 : d.dimensions))) : n || (e.fileTypes.images = I.parseConfig(e.requestSettings, o, t, i)));
4485
+ i && (navigator.mediaDevices.getUserMedia !== void 0 ? (e.camera = L.parseConfig(e.requestSettings, o, t, i), _typeof(i) == "object" && (e.camera.modalContainerStyle = i.modalContainerStyle, i.files && ((_l$files2 = (l = e.camera).files) !== null && _l$files2 !== void 0 ? _l$files2 : l.files = {}, e.camera.files.format = (c = i.files) == null ? void 0 : c.format, e.camera.files.dimensions = (d = i.files) == null ? void 0 : d.dimensions))) : n || (e.fileTypes.images = L.parseConfig(e.requestSettings, o, t, i)));
4486
4486
  }
4487
4487
  // prettier-ignore
4488
4488
  }, {
@@ -4492,7 +4492,7 @@ var I = /*#__PURE__*/function () {
4492
4492
  var o = _objectSpread({
4493
4493
  acceptedFormats: "image/*"
4494
4494
  }, (n == null ? void 0 : n.files) || {});
4495
- e.fileTypes.images = I.parseConfig(e.requestSettings, o, t, i);
4495
+ e.fileTypes.images = L.parseConfig(e.requestSettings, o, t, i);
4496
4496
  }
4497
4497
  // default for direct service
4498
4498
  }, {
@@ -4505,19 +4505,19 @@ var I = /*#__PURE__*/function () {
4505
4505
  }, {
4506
4506
  key: "set",
4507
4507
  value: function set(e, t, i) {
4508
- I.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), I.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
4508
+ L.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), L.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
4509
4509
  var n = vt.createNew();
4510
- I.processImagesConfig(t, n, e.images, i == null ? void 0 : i.images), I.processCamera(t, n, e.camera, e.images), I.processGifConfig(t, n, e.gifs, i == null ? void 0 : i.gifs), I.processAudioConfig(t, n, e.audio, i == null ? void 0 : i.audio), I.processMicrophone(t, n, e.microphone, e.audio), I.processMixedFiles(t, n, e.mixedFiles);
4510
+ L.processImagesConfig(t, n, e.images, i == null ? void 0 : i.images), L.processCamera(t, n, e.camera, e.images), L.processGifConfig(t, n, e.gifs, i == null ? void 0 : i.gifs), L.processAudioConfig(t, n, e.audio, i == null ? void 0 : i.audio), L.processMicrophone(t, n, e.microphone, e.audio), L.processMixedFiles(t, n, e.mixedFiles);
4511
4511
  }
4512
4512
  }]);
4513
- return I;
4513
+ return L;
4514
4514
  }();
4515
4515
  var Ne = /*#__PURE__*/function () {
4516
4516
  function Ne(e, t, i) {
4517
4517
  var _a$url;
4518
4518
  _classCallCheck(this, Ne);
4519
4519
  var n, r, o, a;
4520
- this.rawBody = {}, this.validateConfigKey = !1, this.canSendMessage = Ne.canSendMessage, this.requestSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (n = e.request) == null ? void 0 : n.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, I.set(e, this, t), e.request && (this.requestSettings = e.request), this.demo && ((_a$url = (a = this.requestSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = ye.URL), this.requestSettings.websocket && Y.setup(this);
4520
+ this.rawBody = {}, this.validateConfigKey = !1, this.canSendMessage = Ne.canSendMessage, this.requestSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = e, this.demo = i, Object.assign(this.rawBody, (n = e.request) == null ? void 0 : n.additionalBodyProps), this.totalMessagesMaxCharLength = (r = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : r.totalMessagesMaxCharLength, this.maxMessages = (o = e == null ? void 0 : e.requestBodyLimits) == null ? void 0 : o.maxMessages, L.set(e, this, t), e.request && (this.requestSettings = e.request), this.demo && ((_a$url = (a = this.requestSettings).url) !== null && _a$url !== void 0 ? _a$url : a.url = ye.URL), this.requestSettings.websocket && Y.setup(this);
4521
4521
  }
4522
4522
  _createClass(Ne, [{
4523
4523
  key: "verifyKey",
@@ -4545,7 +4545,7 @@ var Ne = /*#__PURE__*/function () {
4545
4545
  case 0:
4546
4546
  i = _args17.length > 2 && _args17[2] !== undefined ? _args17[2] : !0;
4547
4547
  n = this.deepChat.stream;
4548
- return _context17.abrupt("return", n && !L.isSimulation(n) ? L.request(this, e, t) : S.request(this, e, t, i));
4548
+ return _context17.abrupt("return", n && !I.isSimulation(n) ? I.request(this, e, t) : S.request(this, e, t, i));
4549
4549
  case 3:
4550
4550
  case "end":
4551
4551
  return _context17.stop();
@@ -4679,7 +4679,7 @@ var Ne = /*#__PURE__*/function () {
4679
4679
  _context22.next = 4;
4680
4680
  break;
4681
4681
  }
4682
- return _context22.abrupt("return", Ie.handleResponseProperty(e));
4682
+ return _context22.abrupt("return", Le.handleResponseProperty(e));
4683
4683
  case 4:
4684
4684
  if (!E.validateResponseFormat(e)) {
4685
4685
  _context22.next = 6;
@@ -6624,16 +6624,16 @@ var Gt = /*#__PURE__*/function (_ri3) {
6624
6624
  }]);
6625
6625
  return Gt;
6626
6626
  }(ri);
6627
- var Lo = /*#__PURE__*/function (_je6) {
6628
- _inherits(Lo, _je6);
6629
- function Lo(e) {
6630
- _classCallCheck(this, Lo);
6627
+ var Io = /*#__PURE__*/function (_je6) {
6628
+ _inherits(Io, _je6);
6629
+ function Io(e) {
6630
+ _classCallCheck(this, Io);
6631
6631
  var n, r, o;
6632
6632
  var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.translation,
6633
6633
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6634
- return _callSuper(this, Lo, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
6634
+ return _callSuper(this, Io, [e, "Insert text to translate", "Helsinki-NLP/opus-tatoeba-en-ja", t, i]);
6635
6635
  }
6636
- _createClass(Lo, [{
6636
+ _createClass(Io, [{
6637
6637
  key: "extractResultData",
6638
6638
  value: function () {
6639
6639
  var _extractResultData9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(e) {
@@ -6661,7 +6661,7 @@ var Lo = /*#__PURE__*/function (_je6) {
6661
6661
  return extractResultData;
6662
6662
  }()
6663
6663
  }]);
6664
- return Lo;
6664
+ return Io;
6665
6665
  }(je);
6666
6666
  var Vt = /*#__PURE__*/function (_ri4) {
6667
6667
  _inherits(Vt, _ri4);
@@ -6757,18 +6757,18 @@ var Vt = /*#__PURE__*/function (_ri4) {
6757
6757
  }]);
6758
6758
  return Vt;
6759
6759
  }(ri);
6760
- var Io = /*#__PURE__*/function (_je7) {
6761
- _inherits(Io, _je7);
6762
- function Io(e) {
6760
+ var Lo = /*#__PURE__*/function (_je7) {
6761
+ _inherits(Lo, _je7);
6762
+ function Lo(e) {
6763
6763
  var _this23;
6764
- _classCallCheck(this, Io);
6764
+ _classCallCheck(this, Lo);
6765
6765
  var n, r, o;
6766
6766
  var t = (r = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : r.fillMask,
6767
6767
  i = (o = e.directConnection) == null ? void 0 : o.huggingFace;
6768
- _this23 = _callSuper(this, Io, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this23.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this23.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
6768
+ _this23 = _callSuper(this, Lo, [e, "The goal of life is [MASK].", "bert-base-uncased", t, i]), _this23.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Hugging Face</b></div>\n <p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>\n <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>", _this23.permittedErrorPrefixes = ["Authorization header", "No mask_token"];
6769
6769
  return _this23;
6770
6770
  }
6771
- _createClass(Io, [{
6771
+ _createClass(Lo, [{
6772
6772
  key: "extractResultData",
6773
6773
  value: function () {
6774
6774
  var _extractResultData11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(e) {
@@ -6796,7 +6796,7 @@ var Io = /*#__PURE__*/function (_je7) {
6796
6796
  return extractResultData;
6797
6797
  }()
6798
6798
  }]);
6799
- return Io;
6799
+ return Lo;
6800
6800
  }(je);
6801
6801
  var Wt = /*#__PURE__*/function () {
6802
6802
  function Wt() {
@@ -8212,23 +8212,23 @@ var ge = /*#__PURE__*/function () {
8212
8212
  var ai = /*#__PURE__*/function (_q10) {
8213
8213
  _inherits(ne, _q10);
8214
8214
  function ne(e) {
8215
- var _l$headers, _c$OpenAIBeta;
8215
+ var _c$headers, _d$OpenAIBeta;
8216
8216
  var _this34;
8217
8217
  _classCallCheck(this, ne);
8218
- var r, o, a, l, c;
8218
+ var r, o, a, l, c, d;
8219
8219
  var t = JSON.parse(JSON.stringify(e.directConnection)),
8220
8220
  i = t.openAI;
8221
- _this34 = _callSuper(this, ne, [e, N.buildKeyVerificationDetails(), N.buildHeaders, i]), _this34.insertKeyPlaceholderText = "OpenAI API Key", _this34.getKeyLink = "https://platform.openai.com/account/api-keys", _this34.url = "", _this34.permittedErrorPrefixes = ["Incorrect"], _this34.searchedForThreadId = !1, _this34.newAssistantDetails = {
8221
+ _this34 = _callSuper(this, ne, [e, N.buildKeyVerificationDetails(), N.buildHeaders, i]), _this34.insertKeyPlaceholderText = "OpenAI API Key", _this34.getKeyLink = "https://platform.openai.com/account/api-keys", _this34.url = "", _this34.permittedErrorPrefixes = ["Incorrect"], _this34.searchedForThreadId = !1, _this34.config = {}, _this34.newAssistantDetails = {
8222
8222
  model: "gpt-4"
8223
8223
  };
8224
8224
  var n = (r = t.openAI) == null ? void 0 : r.assistant;
8225
8225
  if (_typeof(n) == "object") {
8226
- _this34.rawBody.assistantId = n.assistant_id, Object.assign(_this34.newAssistantDetails, n.new_assistant);
8226
+ _this34.config = n, Object.assign(_this34.newAssistantDetails, _this34.config.new_assistant);
8227
8227
  var _ref10 = (a = (o = e.directConnection) == null ? void 0 : o.openAI) == null ? void 0 : a.assistant,
8228
- d = _ref10.function_handler;
8229
- d && (_this34._functionHandler = d);
8230
- }
8231
- (_l$headers = (l = _this34.requestSettings).headers) !== null && _l$headers !== void 0 ? _l$headers : l.headers = {}, (_c$OpenAIBeta = (c = _this34.requestSettings.headers)["OpenAI-Beta"]) !== null && _c$OpenAIBeta !== void 0 ? _c$OpenAIBeta : c["OpenAI-Beta"] = "assistants=v1", _this34.maxMessages = 1;
8228
+ u = _ref10.function_handler;
8229
+ u && (_this34._functionHandler = u);
8230
+ } else (l = t.openAI) != null && l.assistant && (t.openAI.assistant = n);
8231
+ (_c$headers = (c = _this34.requestSettings).headers) !== null && _c$headers !== void 0 ? _c$headers : c.headers = {}, (_d$OpenAIBeta = (d = _this34.requestSettings.headers)["OpenAI-Beta"]) !== null && _d$OpenAIBeta !== void 0 ? _d$OpenAIBeta : d["OpenAI-Beta"] = "assistants=v1", _this34.maxMessages = 1;
8232
8232
  return _this34;
8233
8233
  }
8234
8234
  _createClass(ne, [{
@@ -8268,7 +8268,8 @@ var ai = /*#__PURE__*/function (_q10) {
8268
8268
  key: "callServiceAPI",
8269
8269
  value: function () {
8270
8270
  var _callServiceAPI18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee79(e, t, i) {
8271
- var n;
8271
+ var _r$assistant_id;
8272
+ var r, n;
8272
8273
  return _regeneratorRuntime().wrap(function _callee79$(_context79) {
8273
8274
  while (1) switch (_context79.prev = _context79.next) {
8274
8275
  case 0:
@@ -8278,31 +8279,43 @@ var ai = /*#__PURE__*/function (_q10) {
8278
8279
  }
8279
8280
  throw new Error("Request settings have not been set up");
8280
8281
  case 2:
8281
- _context79.t0 = this.rawBody.assistant_id;
8282
- if (_context79.t0) {
8282
+ if (!((_r$assistant_id = (r = this.rawBody).assistant_id) !== null && _r$assistant_id !== void 0)) {
8283
8283
  _context79.next = 6;
8284
8284
  break;
8285
8285
  }
8286
- _context79.next = 6;
8287
- return this.createNewAssistant();
8286
+ _r$assistant_id;
8287
+ _context79.next = 12;
8288
+ break;
8288
8289
  case 6:
8290
+ _context79.t0 = this.config.assistant_id;
8291
+ if (_context79.t0) {
8292
+ _context79.next = 11;
8293
+ break;
8294
+ }
8295
+ _context79.next = 10;
8296
+ return this.createNewAssistant();
8297
+ case 10:
8298
+ _context79.t0 = _context79.sent;
8299
+ case 11:
8300
+ r.assistant_id = _context79.t0;
8301
+ case 12:
8289
8302
  this.searchedForThreadId || this.searchPreviousMessagesForThreadId(e.messages);
8290
8303
  if (!i) {
8291
- _context79.next = 13;
8304
+ _context79.next = 19;
8292
8305
  break;
8293
8306
  }
8294
- _context79.next = 10;
8307
+ _context79.next = 16;
8295
8308
  return ge.storeFiles(this, e, i);
8296
- case 10:
8309
+ case 16:
8297
8310
  _context79.t1 = _context79.sent;
8298
- _context79.next = 14;
8311
+ _context79.next = 20;
8299
8312
  break;
8300
- case 13:
8313
+ case 19:
8301
8314
  _context79.t1 = void 0;
8302
- case 14:
8315
+ case 20:
8303
8316
  n = _context79.t1;
8304
8317
  this.requestSettings.method = "POST", this.callService(e, t, n);
8305
- case 16:
8318
+ case 22:
8306
8319
  case "end":
8307
8320
  return _context79.stop();
8308
8321
  }
@@ -8327,9 +8340,7 @@ var ai = /*#__PURE__*/function (_q10) {
8327
8340
  return N.directFetch(this, JSON.parse(JSON.stringify(this.newAssistantDetails)), "POST");
8328
8341
  case 4:
8329
8342
  e = _context80.sent;
8330
- this.rawBody.assistant_id = e.id;
8331
- _context80.next = 11;
8332
- break;
8343
+ return _context80.abrupt("return", (this.config.assistant_id = e.id, this.config.assistant_id));
8333
8344
  case 8:
8334
8345
  _context80.prev = 8;
8335
8346
  _context80.t0 = _context80["catch"](0);
@@ -8761,7 +8772,7 @@ var ht = /*#__PURE__*/function (_q12) {
8761
8772
  throw new Error("Request settings have not been set up");
8762
8773
  case 2:
8763
8774
  i = this.preprocessBody(this.rawBody, t), n = this.deepChat.stream;
8764
- n && (_typeof(n) != "object" || !n.simulation) || i.stream ? (i.stream = !0, L.request(this, i, e)) : S.request(this, i, e);
8775
+ n && (_typeof(n) != "object" || !n.simulation) || i.stream ? (i.stream = !0, I.request(this, i, e)) : S.request(this, i, e);
8765
8776
  case 4:
8766
8777
  case "end":
8767
8778
  return _context87.stop();
@@ -9013,7 +9024,7 @@ var Go = /*#__PURE__*/function () {
9013
9024
  if (t.openAI) return t.openAI.images ? new Uo(e) : t.openAI.speechToText ? new Po(e) : t.openAI.textToSpeech ? new Oo(e) : t.openAI.assistant ? new qo(e) : new ht(e);
9014
9025
  if (t.assemblyAI) return new en(e);
9015
9026
  if (t.cohere) return t.cohere.textGeneration ? new Ro(e) : t.cohere.summarization ? new No(e) : new Ho(e);
9016
- if (t.huggingFace) return t.huggingFace.textGeneration ? new To(e) : t.huggingFace.summarization ? new Ao(e) : t.huggingFace.translation ? new Lo(e) : t.huggingFace.fillMask ? new Io(e) : t.huggingFace.questionAnswer ? new Co(e) : t.huggingFace.audioSpeechRecognition ? new Mo(e) : t.huggingFace.audioClassification ? new wo(e) : t.huggingFace.imageClassification ? new So(e) : new ko(e);
9027
+ if (t.huggingFace) return t.huggingFace.textGeneration ? new To(e) : t.huggingFace.summarization ? new Ao(e) : t.huggingFace.translation ? new Io(e) : t.huggingFace.fillMask ? new Lo(e) : t.huggingFace.questionAnswer ? new Co(e) : t.huggingFace.audioSpeechRecognition ? new Mo(e) : t.huggingFace.audioClassification ? new wo(e) : t.huggingFace.imageClassification ? new So(e) : new ko(e);
9017
9028
  if (t.azure) {
9018
9029
  if (t.azure.speechToText) return new Bo(e);
9019
9030
  if (t.azure.textToSpeech) return new Fo(e);
@@ -9294,7 +9305,7 @@ var me = /*#__PURE__*/function (_$e) {
9294
9305
  value: function populateInitialMessages(e) {
9295
9306
  var _this39 = this;
9296
9307
  e.forEach(function (t) {
9297
- Ie.processInitialMessageFile(t), _this39.addNewMessage(t, !0);
9308
+ Le.processInitialMessageFile(t), _this39.addNewMessage(t, !0);
9298
9309
  }), setTimeout(function () {
9299
9310
  return Z.scrollToBottom(_this39.elementRef);
9300
9311
  }, 0);
@@ -10646,7 +10657,7 @@ var Ce = /*#__PURE__*/function () {
10646
10657
  }, {
10647
10658
  key: "attach",
10648
10659
  value: function attach(e, t, i, n, r) {
10649
- var o = e.validateInput || Ie.processValidateInput(e);
10660
+ var o = e.validateInput || Le.processValidateInput(e);
10650
10661
  e._validationHandler = /*#__PURE__*/function () {
10651
10662
  var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee98(a) {
10652
10663
  var l;
@@ -10941,12 +10952,12 @@ var aa = /*#__PURE__*/function () {
10941
10952
  return aa;
10942
10953
  }();
10943
10954
  hi.PreResultUtils = aa;
10944
- var Lt = {},
10945
- It = {};
10946
- Object.defineProperty(It, "__esModule", {
10955
+ var It = {},
10956
+ Lt = {};
10957
+ Object.defineProperty(Lt, "__esModule", {
10947
10958
  value: !0
10948
10959
  });
10949
- It.AutoScroll = void 0;
10960
+ Lt.AutoScroll = void 0;
10950
10961
  var sn = /*#__PURE__*/function () {
10951
10962
  function sn() {
10952
10963
  _classCallCheck(this, sn);
@@ -10983,7 +10994,7 @@ var sn = /*#__PURE__*/function () {
10983
10994
  }]);
10984
10995
  return sn;
10985
10996
  }();
10986
- It.AutoScroll = sn;
10997
+ Lt.AutoScroll = sn;
10987
10998
  var Be = {};
10988
10999
  Object.defineProperty(Be, "__esModule", {
10989
11000
  value: !0
@@ -11124,11 +11135,11 @@ var ft = /*#__PURE__*/function () {
11124
11135
  return ft;
11125
11136
  }();
11126
11137
  ze.Cursor = ft;
11127
- Object.defineProperty(Lt, "__esModule", {
11138
+ Object.defineProperty(It, "__esModule", {
11128
11139
  value: !0
11129
11140
  });
11130
- Lt.CommandUtils = void 0;
11131
- var Tn = It,
11141
+ It.CommandUtils = void 0;
11142
+ var Tn = Lt,
11132
11143
  ca = Be,
11133
11144
  da = nt,
11134
11145
  Cn = ze,
@@ -11228,7 +11239,7 @@ var J = /*#__PURE__*/function () {
11228
11239
  }]);
11229
11240
  return J;
11230
11241
  }();
11231
- Lt.CommandUtils = J;
11242
+ It.CommandUtils = J;
11232
11243
  var pi = {};
11233
11244
  Object.defineProperty(pi, "__esModule", {
11234
11245
  value: !0
@@ -11357,16 +11368,16 @@ Object.defineProperty(kt, "__esModule", {
11357
11368
  value: !0
11358
11369
  });
11359
11370
  kt.Speech = void 0;
11360
- var Ln = ui,
11371
+ var In = ui,
11361
11372
  pa = hi,
11362
- In = Lt,
11363
- Pt = It,
11373
+ Ln = It,
11374
+ Pt = Lt,
11364
11375
  ki = pi,
11365
11376
  ie = Be,
11366
- Li = fi,
11377
+ Ii = fi,
11367
11378
  Rn = nt,
11368
11379
  Nn = ze,
11369
- Ii = Fe;
11380
+ Li = Fe;
11370
11381
  var fa = /*#__PURE__*/function () {
11371
11382
  function fa() {
11372
11383
  _classCallCheck(this, fa);
@@ -11376,19 +11387,19 @@ var fa = /*#__PURE__*/function () {
11376
11387
  key: "prepareBeforeStart",
11377
11388
  value: function prepareBeforeStart(e) {
11378
11389
  var t, i;
11379
- if (e != null && e.element) if (Ln.EventListeners.add(this, e), Array.isArray(e.element)) {
11390
+ if (e != null && e.element) if (In.EventListeners.add(this, e), Array.isArray(e.element)) {
11380
11391
  var r = e.element.find(function (o) {
11381
11392
  return o === document.activeElement;
11382
11393
  }) || e.element[0];
11383
11394
  if (!r) return;
11384
11395
  this.prepare(r);
11385
11396
  } else this.prepare(e.element);
11386
- (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (t = e == null ? void 0 : e.textColor) === null || t === void 0 ? void 0 : t["final"], ie.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = In.CommandUtils.process(this._options.commands));
11397
+ (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (t = e == null ? void 0 : e.textColor) === null || t === void 0 ? void 0 : t["final"], ie.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = Ln.CommandUtils.process(this._options.commands));
11387
11398
  }
11388
11399
  }, {
11389
11400
  key: "prepare",
11390
11401
  value: function prepare(e) {
11391
- Li.Padding.setState(this, e), ki.Highlight.setState(this, e), this.isTargetInShadow = ie.Elements.isInsideShadowDOM(e), ie.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
11402
+ Ii.Padding.setState(this, e), ki.Highlight.setState(this, e), this.isTargetInShadow = ie.Elements.isInsideShadowDOM(e), ie.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
11392
11403
  }
11393
11404
  // there was an attempt to optimize this by not having to restart the service and just reset state:
11394
11405
  // unfortunately it did not work because the service would still continue firing the intermediate and final results
@@ -11403,10 +11414,10 @@ var fa = /*#__PURE__*/function () {
11403
11414
  key: "updateElements",
11404
11415
  value: function updateElements(e, t, i) {
11405
11416
  var n;
11406
- var r = Ii.Text.capitalize(t);
11417
+ var r = Li.Text.capitalize(t);
11407
11418
  if (this.finalTranscript === r && e === "") return;
11408
11419
  pa.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
11409
- var o = this.commands && In.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
11420
+ var o = this.commands && Ln.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
11410
11421
  if (o) {
11411
11422
  if (o.doNotProcessTranscription) return;
11412
11423
  e = "", i = "";
@@ -11421,7 +11432,7 @@ var fa = /*#__PURE__*/function () {
11421
11432
  }, {
11422
11433
  key: "updatePrimitiveElement",
11423
11434
  value: function updatePrimitiveElement(e, t, i) {
11424
- this.isHighlighted && ki.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || Li.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && Li.Padding.adjustSateForNoTextPrimitiveElement(this);
11435
+ this.isHighlighted && ki.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || Ii.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && Ii.Padding.adjustSateForNoTextPrimitiveElement(this);
11425
11436
  var n = this.startPadding + this.finalTranscript + t;
11426
11437
  if (e.value = n + this.endPadding, !this.isTargetInShadow) {
11427
11438
  var r = n.length + this.numberOfSpacesAfterNewText;
@@ -11433,17 +11444,17 @@ var fa = /*#__PURE__*/function () {
11433
11444
  key: "updateGenericElement",
11434
11445
  value: function updateGenericElement(e, t, i) {
11435
11446
  this.isHighlighted && ki.Highlight.removeForGeneric(this, e), this.spansPopulated || ie.Elements.appendSpans(this, e);
11436
- var n = (i ? "" : this.startPadding) + Ii.Text.lineBreak(this.finalTranscript);
11447
+ var n = (i ? "" : this.startPadding) + Li.Text.lineBreak(this.finalTranscript);
11437
11448
  this.finalSpan.innerHTML = n;
11438
11449
  var r = Pt.AutoScroll.isRequired(this.autoScroll, e);
11439
11450
  Pt.AutoScroll.changeStateIfNeeded(this, r);
11440
- var o = Ii.Text.lineBreak(t) + (i ? "" : this.endPadding);
11451
+ var o = Li.Text.lineBreak(t) + (i ? "" : this.endPadding);
11441
11452
  this.interimSpan.innerHTML = o, Rn.Browser.IS_SAFARI() && this.insertInCursorLocation && Nn.Cursor.setOffsetForSafariGeneric(e, n.length + o.length), r && Pt.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
11442
11453
  }
11443
11454
  }, {
11444
11455
  key: "finalise",
11445
11456
  value: function finalise(e) {
11446
- this._genericElement && (e ? (this.finalSpan = ie.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = ie.Elements.createInterimSpan(), this.scrollingSpan = ie.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), Ln.EventListeners.remove(this);
11457
+ this._genericElement && (e ? (this.finalSpan = ie.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = ie.Elements.createInterimSpan(), this.scrollingSpan = ie.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), In.EventListeners.remove(this);
11447
11458
  }
11448
11459
  }, {
11449
11460
  key: "setInterimColorToFinal",
@@ -11914,7 +11925,7 @@ Object.defineProperty(gs, "__esModule", {
11914
11925
  value: !0
11915
11926
  });
11916
11927
  var Bn = ci,
11917
- xa = Lt,
11928
+ xa = It,
11918
11929
  ee = mi,
11919
11930
  Ea = gi;
11920
11931
  var Je = /*#__PURE__*/function () {
@@ -12291,7 +12302,7 @@ var _i = /*#__PURE__*/function (_Tt4) {
12291
12302
  return _regeneratorRuntime().wrap(function _callee104$(_context104) {
12292
12303
  while (1) switch (_context104.prev = _context104.next) {
12293
12304
  case 0:
12294
- typeof e == "string" && (e = Ie.processSubmitUserMessage(e));
12305
+ typeof e == "string" && (e = Le.processSubmitUserMessage(e));
12295
12306
  t = {
12296
12307
  text: e.text
12297
12308
  };
@@ -12733,12 +12744,12 @@ var on = /*#__PURE__*/function () {
12733
12744
  }]);
12734
12745
  return on;
12735
12746
  }();
12736
- var La = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.7em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}\n";
12737
- var Ia = Object.defineProperty,
12747
+ var Ia = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:\" \";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!\n Theme: a11y-dark\n Author: @ericwbailey\n Maintainer: @ericwbailey\n\n Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css\n*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.7em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}\n";
12748
+ var La = Object.defineProperty,
12738
12749
  Ra = Object.getOwnPropertyDescriptor,
12739
12750
  x = function x(s, e, t, i) {
12740
12751
  for (var n = i > 1 ? void 0 : i ? Ra(e, t) : e, r = s.length - 1, o; r >= 0; r--) (o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
12741
- return i && n && Ia(e, t, n), n;
12752
+ return i && n && La(e, t, n), n;
12742
12753
  };
12743
12754
  var b = /*#__PURE__*/function (_yo) {
12744
12755
  _inherits(b, _yo);
@@ -12755,7 +12766,7 @@ var b = /*#__PURE__*/function (_yo) {
12755
12766
  return console.warn("addMessage failed - please wait for chat view to render before calling this property.");
12756
12767
  }, Vo.appendStyleSheetToHead(), _this67._elementRef = document.createElement("div"), _this67._elementRef.id = "container", _this67.attachShadow({
12757
12768
  mode: "open"
12758
- }).appendChild(_this67._elementRef), Si.apply(La, _this67.shadowRoot), setTimeout(function () {
12769
+ }).appendChild(_this67._elementRef), Si.apply(Ia, _this67.shadowRoot), setTimeout(function () {
12759
12770
  _this67._hasBeenRendered || _this67.onRender();
12760
12771
  }, 20);
12761
12772
  return _this67;
@@ -12770,7 +12781,7 @@ var b = /*#__PURE__*/function (_yo) {
12770
12781
  key: "onRender",
12771
12782
  value: function onRender() {
12772
12783
  var _this$_childElement;
12773
- (!this._activeService || this._activeService.demo) && (this._activeService = Go.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Si.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Si.applyDefaultStyleToComponent(this.style, this.chatStyle), Ie.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateConfigKey ? Ft.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof q) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], on.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof q && P.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, Bt.onRender(this);
12784
+ (!this._activeService || this._activeService.demo) && (this._activeService = Go.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Si.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Si.applyDefaultStyleToComponent(this.style, this.chatStyle), Le.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateConfigKey ? Ft.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof q) || this._activeService.key ? ((_this$_childElement = this._childElement) !== null && _this$_childElement !== void 0 ? _this$_childElement : this._childElement = this.children[0], on.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof q && P.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, Bt.onRender(this);
12774
12785
  }
12775
12786
  }, {
12776
12787
  key: "disconnectedCallback",