deep-chat-dev 9.0.254 → 9.0.256
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/custom-elements.json +10315 -10302
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.js +198 -180
- package/dist/services/openAI/realtime/openAIRealtimeButton.d.ts +2 -1
- package/dist/services/openAI/realtime/openAIRealtimeButton.d.ts.map +1 -1
- package/dist/services/openAI/realtime/openAIRealtimeIO.d.ts.map +1 -1
- package/dist/services/utils/baseServiceIO.d.ts.map +1 -1
- package/dist/types/openAI.d.ts +2 -2
- package/dist/types/openAIRealtime.d.ts +5 -5
- package/dist/types/openAIRealtime.d.ts.map +1 -1
- package/dist/utils/HTTP/stream.d.ts.map +1 -1
- package/dist/utils/HTTP/websocket.d.ts.map +1 -1
- package/dist/views/chat/input/buttons/buttonInnerElements.d.ts +1 -1
- package/dist/views/chat/input/buttons/buttonInnerElements.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/deepChat.js
CHANGED
@@ -211,7 +211,7 @@ var $t = /*#__PURE__*/_createClass(function $t() {
|
|
211
211
|
_classCallCheck(this, $t);
|
212
212
|
});
|
213
213
|
$t.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), $t.IS_CHROMIUM = window.chrome, $t.IS_MOBILE = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
214
|
-
var
|
214
|
+
var De = $t;
|
215
215
|
var U = /* @__PURE__ */function (n) {
|
216
216
|
return n.ESCAPE = "Escape", n.ENTER = "Enter", n.TAB = "Tab", n.ARROW_UP = "ArrowUp", n.ARROW_DOWN = "ArrowDown", n.ARROW_RIGHT = "ArrowRight", n.ARROW_LEFT = "ArrowLeft", n.BACKSPACE = "Backspace", n.DELETE = "Delete", n.META = "Meta", n.CONTROL = "Control", n;
|
217
217
|
}(U || {});
|
@@ -285,7 +285,7 @@ var Xe = /*#__PURE__*/function () {
|
|
285
285
|
function clear() {
|
286
286
|
var t;
|
287
287
|
var e = window.scrollY;
|
288
|
-
this.inputElementRef.classList.contains("text-input-disabled") || (Object.assign(this.inputElementRef.style, (t = this._config.placeholder) == null ? void 0 : t.style), this.inputElementRef.textContent = "", ai.focusEndOfInput(this.inputElementRef)),
|
288
|
+
this.inputElementRef.classList.contains("text-input-disabled") || (Object.assign(this.inputElementRef.style, (t = this._config.placeholder) == null ? void 0 : t.style), this.inputElementRef.textContent = "", ai.focusEndOfInput(this.inputElementRef)), De.IS_CHROMIUM && window.scrollTo({
|
289
289
|
top: e
|
290
290
|
});
|
291
291
|
}
|
@@ -294,7 +294,7 @@ var Xe = /*#__PURE__*/function () {
|
|
294
294
|
value: function createInputElement() {
|
295
295
|
var t, i, s, r;
|
296
296
|
var e = document.createElement("div");
|
297
|
-
return e.id = Xe.TEXT_INPUT_ID, e.classList.add("text-input-styling"), e.role = "textbox",
|
297
|
+
return e.id = Xe.TEXT_INPUT_ID, e.classList.add("text-input-styling"), e.role = "textbox", De.IS_CHROMIUM && Xe.preventAutomaticScrollUpOnNewLine(e), typeof this._config.disabled == "boolean" && this._config.disabled === !0 ? (e.contentEditable = "false", e.classList.add("text-input-disabled"), e.setAttribute("aria-disabled", "true")) : (e.contentEditable = "true", e.removeAttribute("aria-disabled"), this.addEventListeners(e)), Object.assign(e.style, (t = this._config.styles) == null ? void 0 : t.text), Object.assign(e.style, (i = this._config.placeholder) == null ? void 0 : i.style), (r = (s = this._config.placeholder) == null ? void 0 : s.style) != null && r.color || e.setAttribute("textcolor", ""), e;
|
298
298
|
}
|
299
299
|
}, {
|
300
300
|
key: "removePlaceholderStyle",
|
@@ -325,7 +325,7 @@ var Xe = /*#__PURE__*/function () {
|
|
325
325
|
key: "onKeydown",
|
326
326
|
value: function onKeydown(e) {
|
327
327
|
var t;
|
328
|
-
e.key === U.ENTER && !
|
328
|
+
e.key === U.ENTER && !De.IS_MOBILE && !this._isComposing && !e.ctrlKey && !e.shiftKey && (e.preventDefault(), (t = this.submit) == null || t.call(this));
|
329
329
|
}
|
330
330
|
}, {
|
331
331
|
key: "onInput",
|
@@ -393,7 +393,7 @@ var ai = /*#__PURE__*/function () {
|
|
393
393
|
key: "focusFromParentElement",
|
394
394
|
value: function focusFromParentElement(e) {
|
395
395
|
var t = e.querySelector("#".concat(vi.TEXT_INPUT_ID));
|
396
|
-
t && (
|
396
|
+
t && (De.IS_SAFARI && t.focus(), ai.focusEndOfInput(t));
|
397
397
|
}
|
398
398
|
}]);
|
399
399
|
}();
|
@@ -550,7 +550,7 @@ var ht = /*#__PURE__*/function () {
|
|
550
550
|
}]);
|
551
551
|
}();
|
552
552
|
ht.BUBBLE_CLASS = "deep-chat-loading-message-bubble", ht.DOTS_CONTAINER_CLASS = "deep-chat-loading-message-dots-container";
|
553
|
-
var
|
553
|
+
var Ne = ht;
|
554
554
|
var ce = /*#__PURE__*/function () {
|
555
555
|
function ce() {
|
556
556
|
_classCallCheck(this, ce);
|
@@ -944,11 +944,11 @@ var J = /*#__PURE__*/function () {
|
|
944
944
|
}
|
945
945
|
}]);
|
946
946
|
}();
|
947
|
-
var
|
948
|
-
function
|
949
|
-
_classCallCheck(this,
|
947
|
+
var ke = /*#__PURE__*/function () {
|
948
|
+
function ke() {
|
949
|
+
_classCallCheck(this, ke);
|
950
950
|
}
|
951
|
-
return _createClass(
|
951
|
+
return _createClass(ke, null, [{
|
952
952
|
key: "addElement",
|
953
953
|
value: function addElement(e, t) {
|
954
954
|
e.appendOuterContainerElemet(t), e.focusMode || (e.elementRef.scrollTop = e.elementRef.scrollHeight);
|
@@ -958,7 +958,7 @@ var Me = /*#__PURE__*/function () {
|
|
958
958
|
value: function createElements(e, t, i, s) {
|
959
959
|
var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : !1;
|
960
960
|
var o = e.createMessageElementsOnOrientation("", i, s, r);
|
961
|
-
return o.bubbleElement.classList.add(
|
961
|
+
return o.bubbleElement.classList.add(ke.HTML_BUBBLE_CLASS), o.bubbleElement.innerHTML = t, o;
|
962
962
|
}
|
963
963
|
}, {
|
964
964
|
key: "overwriteElements",
|
@@ -970,15 +970,15 @@ var Me = /*#__PURE__*/function () {
|
|
970
970
|
key: "overwrite",
|
971
971
|
value: function overwrite(e, t, i, s) {
|
972
972
|
var r = e.messageToElements,
|
973
|
-
o = y.overwriteMessage(r, s, t, i, "html",
|
974
|
-
return o &&
|
973
|
+
o = y.overwriteMessage(r, s, t, i, "html", ke.HTML_BUBBLE_CLASS);
|
974
|
+
return o && ke.overwriteElements(e, t, o), o;
|
975
975
|
}
|
976
976
|
}, {
|
977
977
|
key: "create",
|
978
978
|
value: function create(e, t, i) {
|
979
979
|
var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
980
980
|
var o;
|
981
|
-
var r =
|
981
|
+
var r = ke.createElements(e, t, i, s);
|
982
982
|
return y.fillEmptyMessageElement(r.bubbleElement, t), J.apply(e, r.outerContainer), te.flagHTMLUpdateClass(r.bubbleElement), e.applyCustomStyles(r, i, !1, (o = e.messageStyles) == null ? void 0 : o.html), r;
|
983
983
|
}
|
984
984
|
}, {
|
@@ -991,13 +991,13 @@ var Me = /*#__PURE__*/function () {
|
|
991
991
|
s.status = !1;
|
992
992
|
}
|
993
993
|
if (r && e.messageElementRefs.length > 0 && J.isTemporaryBasedOnHTML(t)) return;
|
994
|
-
var o =
|
995
|
-
return r ||
|
994
|
+
var o = ke.create(e, t, i, r);
|
995
|
+
return r || ke.addElement(e, o.outerContainer), o;
|
996
996
|
}
|
997
997
|
}]);
|
998
998
|
}();
|
999
|
-
|
1000
|
-
var _e =
|
999
|
+
ke.HTML_BUBBLE_CLASS = "html-message";
|
1000
|
+
var _e = ke;
|
1001
1001
|
var hi;
|
1002
1002
|
function En(n) {
|
1003
1003
|
return hi = hi || document.createElement("textarea"), hi.innerHTML = "&" + n + ";", hi.value;
|
@@ -1874,7 +1874,7 @@ function wr(n, e, t, i) {
|
|
1874
1874
|
Y,
|
1875
1875
|
je,
|
1876
1876
|
ae,
|
1877
|
-
|
1877
|
+
Ce = !0,
|
1878
1878
|
ye,
|
1879
1879
|
ie,
|
1880
1880
|
Is,
|
@@ -1895,7 +1895,7 @@ function wr(n, e, t, i) {
|
|
1895
1895
|
type: "list_item_open",
|
1896
1896
|
lines: ae = [e, 0],
|
1897
1897
|
level: n.level++
|
1898
|
-
}), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = v - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || Y) && (
|
1898
|
+
}), a = n.blkIndent, l = n.tight, o = n.tShift[e], c = n.parentType, n.tShift[e] = v - n.bMarks[e], n.blkIndent = r, n.tight = !0, n.parentType = "list", n.parser.tokenize(n, e, t, !0), (!n.tight || Y) && (Ce = !1), Y = n.line - e > 1 && n.isEmpty(n.line - 1), n.blkIndent = a, n.tShift[e] = o, n.tight = l, n.parentType = c, n.tokens.push({
|
1899
1899
|
type: "list_item_close",
|
1900
1900
|
level: --n.level
|
1901
1901
|
}), s = e = n.line, ae[1] = s, v = n.bMarks[e], !(s >= t || n.isEmpty(s) || n.tShift[s] < n.blkIndent));) {
|
@@ -1912,7 +1912,7 @@ function wr(n, e, t, i) {
|
|
1912
1912
|
return n.tokens.push({
|
1913
1913
|
type: g ? "ordered_list_close" : "bullet_list_close",
|
1914
1914
|
level: --n.level
|
1915
|
-
}), je[1] = s, n.line = s,
|
1915
|
+
}), je[1] = s, n.line = s, Ce && xr(n, M), !0;
|
1916
1916
|
}
|
1917
1917
|
function Ar(n, e, t, i) {
|
1918
1918
|
var s,
|
@@ -3026,7 +3026,7 @@ var F = /*#__PURE__*/function () {
|
|
3026
3026
|
}, {
|
3027
3027
|
key: "apply",
|
3028
3028
|
value: function apply(e, t, i) {
|
3029
|
-
|
3029
|
+
Ne.setRing(t.bubbleElement, i == null ? void 0 : i.bubble), i != null && i.bubble && (i = JSON.parse(JSON.stringify(i)), delete i.bubble), e.applyCustomStyles(t, "history", !1, i);
|
3030
3030
|
}
|
3031
3031
|
}, {
|
3032
3032
|
key: "addLoadHistoryMessage",
|
@@ -3078,7 +3078,7 @@ var F = /*#__PURE__*/function () {
|
|
3078
3078
|
}]);
|
3079
3079
|
}();
|
3080
3080
|
F.CLASS = "loading-history-message", F.FULL_VIEW_CLASS = "loading-history-message-full-view", F.SMALL_CLASS = "loading-history-message-small";
|
3081
|
-
var
|
3081
|
+
var Be = F;
|
3082
3082
|
var Wt = /*#__PURE__*/function () {
|
3083
3083
|
function Wt() {
|
3084
3084
|
_classCallCheck(this, Wt);
|
@@ -3146,15 +3146,15 @@ var kn = /*#__PURE__*/function () {
|
|
3146
3146
|
}
|
3147
3147
|
}]);
|
3148
3148
|
}();
|
3149
|
-
var
|
3150
|
-
function
|
3149
|
+
var Re = /*#__PURE__*/function (_kn) {
|
3150
|
+
function Re(e) {
|
3151
3151
|
var _this3;
|
3152
|
-
_classCallCheck(this,
|
3153
|
-
_this3 = _callSuper(this,
|
3152
|
+
_classCallCheck(this, Re);
|
3153
|
+
_this3 = _callSuper(this, Re, ["avatar-container"]), _this3._avatars = e;
|
3154
3154
|
return _this3;
|
3155
3155
|
}
|
3156
|
-
_inherits(
|
3157
|
-
return _createClass(
|
3156
|
+
_inherits(Re, _kn);
|
3157
|
+
return _createClass(Re, [{
|
3158
3158
|
key: "addBesideMsg",
|
3159
3159
|
value: function addBesideMsg(e, t) {
|
3160
3160
|
var i = typeof this._avatars == "boolean" ? void 0 : this._avatars,
|
@@ -3167,9 +3167,9 @@ var Ce = /*#__PURE__*/function (_kn) {
|
|
3167
3167
|
value: function createAvatar(e, t) {
|
3168
3168
|
var r, o, a, l, c;
|
3169
3169
|
var i = document.createElement("img");
|
3170
|
-
e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ts, i.onerror =
|
3170
|
+
e === y.USER_ROLE ? (i.src = ((r = t == null ? void 0 : t.user) == null ? void 0 : r.src) || ((o = t == null ? void 0 : t["default"]) == null ? void 0 : o.src) || ts, i.onerror = Re.errorFallback.bind(this, ts)) : (i.src = ((a = t == null ? void 0 : t[e]) == null ? void 0 : a.src) || ((l = t == null ? void 0 : t.ai) == null ? void 0 : l.src) || ((c = t == null ? void 0 : t["default"]) == null ? void 0 : c.src) || Vs, i.onerror = Re.errorFallback.bind(this, Vs)), i.classList.add("avatar"), i.alt = "".concat(e, " avatar");
|
3171
3171
|
var s = document.createElement("div");
|
3172
|
-
return s.classList.add(this.className), s.appendChild(i), t &&
|
3172
|
+
return s.classList.add(this.className), s.appendChild(i), t && Re.applyCustomStyles(s, i, t, e), s;
|
3173
3173
|
}
|
3174
3174
|
}, {
|
3175
3175
|
key: "getPosition",
|
@@ -3193,10 +3193,10 @@ var Ce = /*#__PURE__*/function (_kn) {
|
|
3193
3193
|
key: "applyCustomStyles",
|
3194
3194
|
value: function applyCustomStyles(e, t, i, s) {
|
3195
3195
|
var r, o, a, l;
|
3196
|
-
if ((r = i["default"]) != null && r.styles &&
|
3197
|
-
(a = i.ai) != null && a.styles &&
|
3196
|
+
if ((r = i["default"]) != null && r.styles && Re.applyCustomStylesToElements(e, t, i["default"].styles), s === y.USER_ROLE) (o = i.user) != null && o.styles && Re.applyCustomStylesToElements(e, t, i.user.styles);else {
|
3197
|
+
(a = i.ai) != null && a.styles && Re.applyCustomStylesToElements(e, t, i.ai.styles);
|
3198
3198
|
var c = (l = i[s]) == null ? void 0 : l.styles;
|
3199
|
-
c &&
|
3199
|
+
c && Re.applyCustomStylesToElements(e, t, c);
|
3200
3200
|
}
|
3201
3201
|
}
|
3202
3202
|
}]);
|
@@ -3249,7 +3249,7 @@ var Z = /*#__PURE__*/function () {
|
|
3249
3249
|
var _this5 = this;
|
3250
3250
|
_classCallCheck(this, Z);
|
3251
3251
|
var t;
|
3252
|
-
this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = Z.createContainerElement(), this.messageStyles = te.processMessageStyles(e.messageStyles), this._remarkable = ti.createNew(e.remarkable), e.avatars && (this.avatar = new
|
3252
|
+
this.messageElementRefs = [], this.htmlClassUtilities = {}, this.messageToElements = [], this.elementRef = Z.createContainerElement(), this.messageStyles = te.processMessageStyles(e.messageStyles), this._remarkable = ti.createNew(e.remarkable), e.avatars && (this.avatar = new Re(e.avatars)), e.names && (this.name = new zt(e.names)), this._onMessage = yi.onMessage.bind(this, e), e.htmlClassUtilities && (this.htmlClassUtilities = e.htmlClassUtilities), this.focusMode = e.focusMode, this.focusMode || (this._lastGroupMessagesElement = document.createElement("div")), typeof this.focusMode != "boolean" && (t = this.focusMode) != null && t.fade && Ei.setFade(this.elementRef, this.focusMode.fade), setTimeout(function () {
|
3253
3253
|
_this5.submitUserMessage = e.submitUserMessage;
|
3254
3254
|
});
|
3255
3255
|
}
|
@@ -3341,7 +3341,7 @@ var Z = /*#__PURE__*/function () {
|
|
3341
3341
|
var o;
|
3342
3342
|
s || (o = this._introPanel) == null || o.hide();
|
3343
3343
|
var r = this.messageElementRefs[this.messageElementRefs.length - 1];
|
3344
|
-
return
|
3344
|
+
return Be.changeFullViewToSmall(this), !i && Z.isTemporaryElement(r) && (this.revealRoleElementsIfTempRemoved(r, t), this.removeLastMessage()), this.createMessageElements(e, t, i);
|
3345
3345
|
}
|
3346
3346
|
// this can be tested by having an ai message, then a temp ai message with html that submits new user message:
|
3347
3347
|
// https://github.com/OvidijusParsiunas/deep-chat/issues/258
|
@@ -3468,7 +3468,7 @@ var Z = /*#__PURE__*/function () {
|
|
3468
3468
|
}, {
|
3469
3469
|
key: "isLoadingMessage",
|
3470
3470
|
value: function isLoadingMessage(e) {
|
3471
|
-
return e == null ? void 0 : e.bubbleElement.classList.contains(
|
3471
|
+
return e == null ? void 0 : e.bubbleElement.classList.contains(Ne.BUBBLE_CLASS);
|
3472
3472
|
}
|
3473
3473
|
}]);
|
3474
3474
|
}();
|
@@ -3519,7 +3519,7 @@ var _ = /*#__PURE__*/function () {
|
|
3519
3519
|
}, {
|
3520
3520
|
key: "overwriteMessage",
|
3521
3521
|
value: function overwriteMessage(e, t, i, s, r, o) {
|
3522
|
-
var a = _.getLastElementsByClass(t, [_.getRoleClass(s), o], [
|
3522
|
+
var a = _.getLastElementsByClass(t, [_.getRoleClass(s), o], [Ne.BUBBLE_CLASS]),
|
3523
3523
|
l = _.getLastMessage(e, s, r);
|
3524
3524
|
return l && (l[r] = i), a;
|
3525
3525
|
}
|
@@ -3542,10 +3542,12 @@ var _ = /*#__PURE__*/function () {
|
|
3542
3542
|
}, {
|
3543
3543
|
key: "getLastMessageBubbleElement",
|
3544
3544
|
value: function getLastMessageBubbleElement(e) {
|
3545
|
-
var t, i, s;
|
3546
|
-
return Array.from(((s = (i = (t = _.getLastMessageElement(e)) == null ? void 0 : t.children) == null ? void 0 : i[0]) == null ? void 0 : s.children) || []).
|
3547
|
-
return
|
3548
|
-
|
3545
|
+
var t, i, s, r;
|
3546
|
+
return (r = Array.from(((s = (i = (t = _.getLastMessageElement(e)) == null ? void 0 : t.children) == null ? void 0 : i[0]) == null ? void 0 : s.children) || []).map(function (o) {
|
3547
|
+
return Array.from((o == null ? void 0 : o.children) || []).find(function (a) {
|
3548
|
+
return a.classList.contains("message-bubble");
|
3549
|
+
});
|
3550
|
+
})) == null ? void 0 : r[0];
|
3549
3551
|
}
|
3550
3552
|
}, {
|
3551
3553
|
key: "getLastMessageElement",
|
@@ -4099,7 +4101,7 @@ function No(n, e) {
|
|
4099
4101
|
}
|
4100
4102
|
function _ae() {
|
4101
4103
|
_ae = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
4102
|
-
var
|
4104
|
+
var Ce, ye, ie;
|
4103
4105
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
4104
4106
|
while (1) switch (_context6.prev = _context6.next) {
|
4105
4107
|
case 0:
|
@@ -4131,7 +4133,7 @@ function No(n, e) {
|
|
4131
4133
|
_context6.prev = 14;
|
4132
4134
|
_context6.t0 = _context6["catch"](1);
|
4133
4135
|
if (!m.signal.aborted) try {
|
4134
|
-
ie = (
|
4136
|
+
ie = (Ce = a == null ? void 0 : a(_context6.t0)) !== null && Ce !== void 0 ? Ce : g;
|
4135
4137
|
window.clearTimeout(v), v = window.setTimeout(ae, ie);
|
4136
4138
|
} catch (ie) {
|
4137
4139
|
M(), h(ie);
|
@@ -4239,7 +4241,7 @@ var A = /*#__PURE__*/function () {
|
|
4239
4241
|
var u = !1;
|
4240
4242
|
fetch(((h = e.connectSettings) == null ? void 0 : h.url) || e.url || "", s).then(/*#__PURE__*/function () {
|
4241
4243
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(f) {
|
4242
|
-
var v, M, m, p, g, _yield$m$read, Y, je, ae,
|
4244
|
+
var v, M, m, p, g, _yield$m$read, Y, je, ae, Ce, ye;
|
4243
4245
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
4244
4246
|
while (1) switch (_context8.prev = _context8.next) {
|
4245
4247
|
case 0:
|
@@ -4284,8 +4286,8 @@ var A = /*#__PURE__*/function () {
|
|
4284
4286
|
}
|
4285
4287
|
_context8.t0 = ae;
|
4286
4288
|
case 21:
|
4287
|
-
|
4288
|
-
ye = _typeof(
|
4289
|
+
Ce = _context8.t0;
|
4290
|
+
ye = _typeof(Ce) == "object" ? Ce : {
|
4289
4291
|
text: ae
|
4290
4292
|
};
|
4291
4293
|
A.handleMessage(e, t, i, c, ye, o, a);
|
@@ -4466,7 +4468,8 @@ var A = /*#__PURE__*/function () {
|
|
4466
4468
|
_o3 = J.splitHTML(i.html);
|
4467
4469
|
_o3.length === 0 && (_o3 = i.html.split("")), A.populateMessages(e, _o3, new we(e), r, "html", 0, s);
|
4468
4470
|
}
|
4469
|
-
|
4471
|
+
i.error && (E.displayError(e, i.error), t.onClose());
|
4472
|
+
case 13:
|
4470
4473
|
case "end":
|
4471
4474
|
return _context11.stop();
|
4472
4475
|
}
|
@@ -4680,12 +4683,12 @@ var q = /*#__PURE__*/function () {
|
|
4680
4683
|
var s = {};
|
4681
4684
|
t.onmessage = /*#__PURE__*/function () {
|
4682
4685
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(r) {
|
4683
|
-
var o, a, l, c;
|
4686
|
+
var o, a, l, c, _l, _c;
|
4684
4687
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
4685
4688
|
while (1) switch (_context14.prev = _context14.next) {
|
4686
4689
|
case 0:
|
4687
4690
|
if (!e.extractResultData) {
|
4688
|
-
_context14.next =
|
4691
|
+
_context14.next = 22;
|
4689
4692
|
break;
|
4690
4693
|
}
|
4691
4694
|
_context14.prev = 1;
|
@@ -4703,23 +4706,39 @@ var q = /*#__PURE__*/function () {
|
|
4703
4706
|
}
|
4704
4707
|
throw Error(k.INVALID_RESPONSE(o, "server", !!e.deepChat.responseInterceptor, a));
|
4705
4708
|
case 8:
|
4706
|
-
if (A.isSimulation(e.stream)) {
|
4707
|
-
|
4708
|
-
|
4709
|
-
}
|
4710
|
-
|
4709
|
+
if (!A.isSimulation(e.stream)) {
|
4710
|
+
_context14.next = 13;
|
4711
|
+
break;
|
4712
|
+
}
|
4713
|
+
l = q.stream.bind(_this9, e, i, s), c = s[o.role || y.AI_ROLE];
|
4714
|
+
A.upsertWFiles(i, l, c, a);
|
4715
|
+
_context14.next = 17;
|
4716
|
+
break;
|
4717
|
+
case 13:
|
4718
|
+
_l = Array.isArray(a) ? a : [a], _c = _l.find(function (d) {
|
4719
|
+
return typeof d.error == "string";
|
4711
4720
|
});
|
4712
|
-
|
4721
|
+
if (!_c) {
|
4722
|
+
_context14.next = 16;
|
4723
|
+
break;
|
4724
|
+
}
|
4725
|
+
throw _c.error;
|
4726
|
+
case 16:
|
4727
|
+
_l.forEach(function (d) {
|
4728
|
+
return i.addNewMessage(d);
|
4729
|
+
});
|
4730
|
+
case 17:
|
4731
|
+
_context14.next = 22;
|
4713
4732
|
break;
|
4714
|
-
case
|
4715
|
-
_context14.prev =
|
4733
|
+
case 19:
|
4734
|
+
_context14.prev = 19;
|
4716
4735
|
_context14.t0 = _context14["catch"](1);
|
4717
4736
|
E.displayError(i, _context14.t0, "Error in server message");
|
4718
|
-
case
|
4737
|
+
case 22:
|
4719
4738
|
case "end":
|
4720
4739
|
return _context14.stop();
|
4721
4740
|
}
|
4722
|
-
}, _callee14, null, [[1,
|
4741
|
+
}, _callee14, null, [[1, 19]]);
|
4723
4742
|
}));
|
4724
4743
|
return function (_x33) {
|
4725
4744
|
return _ref6.apply(this, arguments);
|
@@ -5307,7 +5326,7 @@ var He = /*#__PURE__*/function () {
|
|
5307
5326
|
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
5308
5327
|
while (1) switch (_context24.prev = _context24.next) {
|
5309
5328
|
case 0:
|
5310
|
-
t =
|
5329
|
+
t = Be.addMessage(this._messages);
|
5311
5330
|
_context24.next = 3;
|
5312
5331
|
return e();
|
5313
5332
|
case 3:
|
@@ -5390,7 +5409,7 @@ var He = /*#__PURE__*/function () {
|
|
5390
5409
|
break;
|
5391
5410
|
}
|
5392
5411
|
_this13._isLoading = !0;
|
5393
|
-
t =
|
5412
|
+
t = Be.addMessage(_this13._messages, !1);
|
5394
5413
|
_context25.prev = 3;
|
5395
5414
|
_context25.next = 6;
|
5396
5415
|
return e(_this13._index++);
|
@@ -5438,7 +5457,7 @@ var He = /*#__PURE__*/function () {
|
|
5438
5457
|
while (1) switch (_context27.prev = _context27.next) {
|
5439
5458
|
case 0:
|
5440
5459
|
this._isLoading = !0;
|
5441
|
-
t =
|
5460
|
+
t = Be.addMessage(this._messages);
|
5442
5461
|
_context27.prev = 2;
|
5443
5462
|
_context27.next = 5;
|
5444
5463
|
return e(this._index++);
|
@@ -5809,24 +5828,18 @@ var nt = /*#__PURE__*/function () {
|
|
5809
5828
|
return _regeneratorRuntime().wrap(function _callee34$(_context34) {
|
5810
5829
|
while (1) switch (_context34.prev = _context34.next) {
|
5811
5830
|
case 0:
|
5812
|
-
if (!e.error) {
|
5813
|
-
_context34.next = 2;
|
5814
|
-
break;
|
5815
|
-
}
|
5816
|
-
throw e.error;
|
5817
|
-
case 2:
|
5818
5831
|
if (!e.result) {
|
5819
|
-
_context34.next =
|
5832
|
+
_context34.next = 2;
|
5820
5833
|
break;
|
5821
5834
|
}
|
5822
5835
|
return _context34.abrupt("return", te.handleResponseProperty(e));
|
5823
|
-
case
|
5836
|
+
case 2:
|
5824
5837
|
if (!E.validateResponseFormat(e, !!this.stream)) {
|
5825
|
-
_context34.next =
|
5838
|
+
_context34.next = 4;
|
5826
5839
|
break;
|
5827
5840
|
}
|
5828
5841
|
return _context34.abrupt("return", e);
|
5829
|
-
case
|
5842
|
+
case 4:
|
5830
5843
|
case "end":
|
5831
5844
|
return _context34.stop();
|
5832
5845
|
}
|
@@ -5940,19 +5953,19 @@ var Si = /*#__PURE__*/function () {
|
|
5940
5953
|
}
|
5941
5954
|
}]);
|
5942
5955
|
}();
|
5943
|
-
var
|
5956
|
+
var Le = /*#__PURE__*/function (_HTMLElement) {
|
5944
5957
|
// If this is not working, try using propertyName directly
|
5945
|
-
function
|
5958
|
+
function Le() {
|
5946
5959
|
var _this17;
|
5947
|
-
_classCallCheck(this,
|
5948
|
-
_this17 = _callSuper(this,
|
5949
|
-
var t =
|
5960
|
+
_classCallCheck(this, Le);
|
5961
|
+
_this17 = _callSuper(this, Le), _this17._waitingToRender_ = !1, _this17._propUpdated_ = !1, Object.keys(Le._attributeToProperty_).forEach(function (e) {
|
5962
|
+
var t = Le._attributeToProperty_[e];
|
5950
5963
|
_this17.constructPropertyAccessors(t), _this17.hasOwnProperty(e) || _this17.constructPropertyAccessors(t, e);
|
5951
5964
|
});
|
5952
5965
|
return _this17;
|
5953
5966
|
}
|
5954
|
-
_inherits(
|
5955
|
-
return _createClass(
|
5967
|
+
_inherits(Le, _HTMLElement);
|
5968
|
+
return _createClass(Le, [{
|
5956
5969
|
key: "constructPropertyAccessors",
|
5957
5970
|
value:
|
5958
5971
|
// need to be called here as accessors need to be set for the class instance
|
@@ -5971,8 +5984,8 @@ var ke = /*#__PURE__*/function (_HTMLElement) {
|
|
5971
5984
|
key: "attributeChangedCallback",
|
5972
5985
|
value: function attributeChangedCallback(e, t, i) {
|
5973
5986
|
if (t === i) return;
|
5974
|
-
var s =
|
5975
|
-
r =
|
5987
|
+
var s = Le._attributes_[e](i),
|
5988
|
+
r = Le._attributeToProperty_[e];
|
5976
5989
|
this[r] = s;
|
5977
5990
|
}
|
5978
5991
|
}, {
|
@@ -5981,19 +5994,19 @@ var ke = /*#__PURE__*/function (_HTMLElement) {
|
|
5981
5994
|
}], [{
|
5982
5995
|
key: "observedAttributes",
|
5983
5996
|
get: function get() {
|
5984
|
-
return Object.keys(
|
5997
|
+
return Object.keys(Le._attributes_) || [];
|
5985
5998
|
}
|
5986
5999
|
}]);
|
5987
6000
|
}(/*#__PURE__*/_wrapNativeSuper(HTMLElement));
|
5988
|
-
|
5989
|
-
var ss =
|
6001
|
+
Le._attributes_ = {}, Le._attributeToProperty_ = {};
|
6002
|
+
var ss = Le;
|
5990
6003
|
var Bo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path d=\"\n\t\t\tM669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536\n\t\t\tc-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764\n\t\t\tc59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033\n\t\t\tl-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888\n\t\t\tc0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541\n\t\t\tc103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174\n\t\t\tc31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763\n\t\t\tc-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z\n\t\t\tM599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897\n\t\t\tc0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854\n\t\t\tc-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513\n\t\t\tL638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z\"\n\t\t\t/>\n</svg>\n",
|
5991
6004
|
Fo = "<?xml version=\"1.0\" standalone=\"no\"?>\n<svg version=\"1.1\"\n\txmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n\txmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"0.9em\" height=\"0.9em\"\n\tviewBox=\"0 0 1200 1200\" enable-background=\"new 0 0 1200 1200\">\n\t\t<path id=\"path6686\" inkscape:connector-curvature=\"0\" d=\"M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612\n\t\t\tc-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612\n\t\t\tC699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557\n\t\t\tc-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763\n\t\t\tc59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557\n\t\t\tc103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179\n\t\t\tc31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764\n\t\t\tc-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769\n\t\t\tc156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02\n\t\t\tC317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z\"/>\n</svg>\n";
|
5992
|
-
var
|
5993
|
-
function
|
5994
|
-
_classCallCheck(this,
|
6005
|
+
var Fe = /*#__PURE__*/function () {
|
6006
|
+
function Fe() {
|
6007
|
+
_classCallCheck(this, Fe);
|
5995
6008
|
}
|
5996
|
-
return _createClass(
|
6009
|
+
return _createClass(Fe, null, [{
|
5997
6010
|
key: "createSVGElement",
|
5998
6011
|
value: function createSVGElement(e) {
|
5999
6012
|
return new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
|
@@ -6014,7 +6027,7 @@ var ze = /*#__PURE__*/function () {
|
|
6014
6027
|
}, {
|
6015
6028
|
key: "createIconElement",
|
6016
6029
|
value: function createIconElement(e, t) {
|
6017
|
-
var i =
|
6030
|
+
var i = Fe.createSVGElement(e);
|
6018
6031
|
return i.id = t, i.classList.add("visibility-icon"), i;
|
6019
6032
|
}
|
6020
6033
|
// prettier-ignore
|
@@ -7135,11 +7148,11 @@ var jo = /*#__PURE__*/function (_li2) {
|
|
7135
7148
|
}]);
|
7136
7149
|
}(li);
|
7137
7150
|
var ci = "data:image/png;base64,";
|
7138
|
-
var
|
7139
|
-
function
|
7140
|
-
_classCallCheck(this,
|
7151
|
+
var Te = /*#__PURE__*/function () {
|
7152
|
+
function Te() {
|
7153
|
+
_classCallCheck(this, Te);
|
7141
7154
|
}
|
7142
|
-
return _createClass(
|
7155
|
+
return _createClass(Te, null, [{
|
7143
7156
|
key: "buildHeaders",
|
7144
7157
|
value: function buildHeaders(e) {
|
7145
7158
|
return {
|
@@ -7159,7 +7172,7 @@ var Ae = /*#__PURE__*/function () {
|
|
7159
7172
|
return {
|
7160
7173
|
url: "https://api.stability.ai/v1/engines/list",
|
7161
7174
|
method: "GET",
|
7162
|
-
handleVerificationResult:
|
7175
|
+
handleVerificationResult: Te.handleVerificationResult
|
7163
7176
|
};
|
7164
7177
|
}
|
7165
7178
|
}]);
|
@@ -7190,7 +7203,7 @@ var wi = /*#__PURE__*/function (_qi) {
|
|
7190
7203
|
}
|
7191
7204
|
}
|
7192
7205
|
};
|
7193
|
-
_this27 = _callSuper(this, wi, [e,
|
7206
|
+
_this27 = _callSuper(this, wi, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this27.url = "https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale", _this27.textInputPlaceholderText = "Describe image changes", _this27.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Upscale</b></div>\n <p>Upload an image to generate a new one with higher resolution.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7194
7207
|
var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageUpscale;
|
7195
7208
|
_typeof(r) == "object" && (r.engine_id && (_this27.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/upscale")), wi.cleanConfig(r), Object.assign(_this27.rawBody, r)), _this27.canSendMessage = wi.canSendFileMessage;
|
7196
7209
|
return _this27;
|
@@ -7297,7 +7310,7 @@ var Ai = /*#__PURE__*/function (_qi2) {
|
|
7297
7310
|
}
|
7298
7311
|
}
|
7299
7312
|
};
|
7300
|
-
_this28 = _callSuper(this, Ai, [e,
|
7313
|
+
_this28 = _callSuper(this, Ai, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this28.url = "https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking", _this28._maskSource = "MASK_IMAGE_WHITE", _this28.textInputPlaceholderText = "Describe image changes", _this28.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI</b></div>\n <div style=\"width: 100%; text-align: center; margin-left: -10px; margin-top: 5px\"><b>Image to Image Masking</b></div>\n <p>Upload an image, its mask image to create a new one based on the changes you have described for the mask area.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7301
7314
|
var r = (o = t == null ? void 0 : t.stabilityAI) == null ? void 0 : o.imageToImageMasking;
|
7302
7315
|
_typeof(r) == "object" && (r.engine_id && (_this28.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/image-to-image/masking")), r.weight !== void 0 && r.weight !== null && (_this28._imageWeight = r.weight), r.mask_source !== void 0 && r.mask_source !== null && (_this28._maskSource = r.mask_source), Ai.cleanConfig(r), Object.assign(_this28.rawBody, r)), _this28.canSendMessage = Ai.canSendFileTextMessage;
|
7303
7316
|
return _this28;
|
@@ -7666,7 +7679,7 @@ var Ti = /*#__PURE__*/function (_qi3) {
|
|
7666
7679
|
}
|
7667
7680
|
}
|
7668
7681
|
};
|
7669
|
-
_this31 = _callSuper(this, Ti, [e,
|
7682
|
+
_this31 = _callSuper(this, Ti, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i, s]), _this31.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image", _this31.textInputPlaceholderText = "Describe image changes", _this31.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Image to Image</b></div>\n <p>Upload an image to create a new one with the changes you have described.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7670
7683
|
var r = (o = t.stabilityAI) == null ? void 0 : o.imageToImage;
|
7671
7684
|
_typeof(r) == "object" && (r.engine_id && (_this31.url = "https://api.stability.ai/v1/generation/".concat(r.engine_id, "/text-to-image")), r.weight !== void 0 && r.weight !== null && (_this31._imageWeight = r.weight), Ti.cleanConfig(r), Object.assign(_this31.rawBody, r)), _this31.canSendMessage = Ti.canSendFileTextMessage;
|
7672
7685
|
return _this31;
|
@@ -7804,7 +7817,7 @@ var Ci = /*#__PURE__*/function (_qi4) {
|
|
7804
7817
|
var r;
|
7805
7818
|
var t = JSON.parse(JSON.stringify(e.directConnection)),
|
7806
7819
|
i = t.stabilityAI;
|
7807
|
-
_this32 = _callSuper(this, Ci, [e,
|
7820
|
+
_this32 = _callSuper(this, Ci, [e, Te.buildKeyVerificationDetails(), Te.buildHeaders, i]), _this32.url = "https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image", _this32.textInputPlaceholderText = "Describe an image", _this32.introPanelMarkUp = "\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Stability AI: Text to Image</b></div>\n <p>Insert text to generate an image.</p>\n <p>Click <a href=\"https://platform.stability.ai/\">here</a> for more info.</p>";
|
7808
7821
|
var s = (r = t.stabilityAI) == null ? void 0 : r.textToImage;
|
7809
7822
|
_typeof(s) == "object" && (s.engine_id && (_this32.url = "https://api.stability.ai/v1/generation/".concat(s.engine_id, "/text-to-image")), s.weight !== void 0 && s.weight !== null && (_this32._imageWeight = s.weight), Ci.cleanConfig(s), Object.assign(_this32.rawBody, s)), _this32.canSendMessage = Ci.canSendTextMessage;
|
7810
7823
|
return _this32;
|
@@ -8314,7 +8327,7 @@ var ne = /*#__PURE__*/function () {
|
|
8314
8327
|
}]);
|
8315
8328
|
}();
|
8316
8329
|
ne.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", ne.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
|
8317
|
-
var
|
8330
|
+
var Me = ne;
|
8318
8331
|
var Ge = /*#__PURE__*/function (_G3) {
|
8319
8332
|
// prettier-ignore
|
8320
8333
|
function Ge(e, t, i, s, r, o) {
|
@@ -8461,7 +8474,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8461
8474
|
break;
|
8462
8475
|
}
|
8463
8476
|
_context76.next = 16;
|
8464
|
-
return
|
8477
|
+
return Me.storeFiles(this, e, i, this.urlSegments.storeFiles);
|
8465
8478
|
case 16:
|
8466
8479
|
_context76.t1 = _context76.sent;
|
8467
8480
|
_context76.next = 20;
|
@@ -8544,7 +8557,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8544
8557
|
_context78.next = 6;
|
8545
8558
|
break;
|
8546
8559
|
}
|
8547
|
-
throw e.error.message.startsWith(
|
8560
|
+
throw e.error.message.startsWith(Me.FILES_WITH_TEXT_ERROR) ? Error("Please send text with your file(s)") : e.error.message;
|
8548
8561
|
case 6:
|
8549
8562
|
_context78.next = 8;
|
8550
8563
|
return this.assignThreadAndRun(e);
|
@@ -8628,7 +8641,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8628
8641
|
case 9:
|
8629
8642
|
i = _context80.sent;
|
8630
8643
|
case 10:
|
8631
|
-
return _context80.abrupt("return",
|
8644
|
+
return _context80.abrupt("return", Me.processAPIMessages(this, i, t, this.urlSegments));
|
8632
8645
|
case 11:
|
8633
8646
|
case "end":
|
8634
8647
|
return _context80.stop();
|
@@ -8729,7 +8742,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8729
8742
|
_context82.next = 8;
|
8730
8743
|
break;
|
8731
8744
|
}
|
8732
|
-
throw Error(
|
8745
|
+
throw Error(Me.FUNCTION_TOOL_RESP_ERROR);
|
8733
8746
|
case 8:
|
8734
8747
|
_context82.next = 10;
|
8735
8748
|
return Promise.all(i);
|
@@ -8741,7 +8754,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8741
8754
|
_context82.next = 13;
|
8742
8755
|
break;
|
8743
8756
|
}
|
8744
|
-
throw Error(
|
8757
|
+
throw Error(Me.FUNCTION_TOOL_RESP_ERROR);
|
8745
8758
|
case 13:
|
8746
8759
|
r = s.map(function (l, c) {
|
8747
8760
|
return {
|
@@ -8829,7 +8842,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8829
8842
|
key: "parseStreamResult",
|
8830
8843
|
value: function () {
|
8831
8844
|
var _parseStreamResult = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee84(e) {
|
8832
|
-
var t, i, s, r, o, a, l, c, _a3,
|
8845
|
+
var t, i, s, r, o, a, l, c, _a3, _l2;
|
8833
8846
|
return _regeneratorRuntime().wrap(function _callee84$(_context84) {
|
8834
8847
|
while (1) switch (_context84.prev = _context84.next) {
|
8835
8848
|
case 0:
|
@@ -8846,7 +8859,7 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8846
8859
|
}
|
8847
8860
|
l = e.content.find(function (d) {
|
8848
8861
|
return !!d.text;
|
8849
|
-
}) || e.content[0], c =
|
8862
|
+
}) || e.content[0], c = Me.getFilesAndText.bind(this, this, {
|
8850
8863
|
role: "assistant",
|
8851
8864
|
content: e.content
|
8852
8865
|
}, this.urlSegments, l);
|
@@ -8870,12 +8883,12 @@ var Ge = /*#__PURE__*/function (_G3) {
|
|
8870
8883
|
break;
|
8871
8884
|
}
|
8872
8885
|
_context84.next = 11;
|
8873
|
-
return
|
8886
|
+
return Me.processStreamMessages(this, e.delta.content, this.urlSegments);
|
8874
8887
|
case 11:
|
8875
|
-
|
8888
|
+
_l2 = _context84.sent;
|
8876
8889
|
return _context84.abrupt("return", {
|
8877
|
-
text:
|
8878
|
-
files:
|
8890
|
+
text: _l2[0].text,
|
8891
|
+
files: _l2[1].files
|
8879
8892
|
});
|
8880
8893
|
case 13:
|
8881
8894
|
return _context84.abrupt("return", {
|
@@ -9319,7 +9332,7 @@ var Ln = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\"
|
|
9319
9332
|
}, {
|
9320
9333
|
key: "tryAddSVGElement",
|
9321
9334
|
value: function tryAddSVGElement(e, t, i, s) {
|
9322
|
-
i ? e.push(
|
9335
|
+
i ? e.push(Fe.createSVGElement(i)) : i !== "" && s && e.push(t);
|
9323
9336
|
}
|
9324
9337
|
}, {
|
9325
9338
|
key: "createCustomElements",
|
@@ -9340,8 +9353,8 @@ var Ln = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg height=\"1.4em\"
|
|
9340
9353
|
}
|
9341
9354
|
}]);
|
9342
9355
|
}();
|
9343
|
-
re.
|
9344
|
-
var
|
9356
|
+
re.INPUT_BUTTON_SVG_TEXT_CLASS = "input-button-svg-text", re.INPUT_BUTTON_INNER_TEXT_CLASS = "text-button", re.INPUT_BUTTON_SVG_CLASS = "input-button-svg";
|
9357
|
+
var Ae = re;
|
9345
9358
|
var Gt = /*#__PURE__*/function () {
|
9346
9359
|
function Gt() {
|
9347
9360
|
_classCallCheck(this, Gt);
|
@@ -9406,7 +9419,7 @@ var lt = /*#__PURE__*/function () {
|
|
9406
9419
|
_classCallCheck(this, lt);
|
9407
9420
|
this._mouseState = {
|
9408
9421
|
state: "default"
|
9409
|
-
}, this.isCustom = !1, N.addAttributes(e), this.elementRef = e, this.svg =
|
9422
|
+
}, this.isCustom = !1, N.addAttributes(e), this.elementRef = e, this.svg = Fe.createSVGElement(t), this.customStyles = s, this.position = i, this.dropupText = r;
|
9410
9423
|
}
|
9411
9424
|
return _createClass(lt, [{
|
9412
9425
|
key: "buttonMouseLeave",
|
@@ -9455,7 +9468,7 @@ var lt = /*#__PURE__*/function () {
|
|
9455
9468
|
key: "changeElementsByState",
|
9456
9469
|
value: function changeElementsByState(e) {
|
9457
9470
|
var _this$elementRef;
|
9458
|
-
(_this$elementRef = this.elementRef).replaceChildren.apply(_this$elementRef, _toConsumableArray(e)),
|
9471
|
+
(_this$elementRef = this.elementRef).replaceChildren.apply(_this$elementRef, _toConsumableArray(e)), Ae.reassignClassBasedOnChildren(this.elementRef, e);
|
9459
9472
|
}
|
9460
9473
|
}, {
|
9461
9474
|
key: "buildDefaultIconElement",
|
@@ -9466,7 +9479,7 @@ var lt = /*#__PURE__*/function () {
|
|
9466
9479
|
}, {
|
9467
9480
|
key: "createInnerElements",
|
9468
9481
|
value: function createInnerElements(e, t, i) {
|
9469
|
-
var s =
|
9482
|
+
var s = Ae.createCustomElements(t, this.svg, i);
|
9470
9483
|
if (s && s.length > 0) {
|
9471
9484
|
if (this.position === "dropup-menu") {
|
9472
9485
|
var r = this.svg.cloneNode(!0);
|
@@ -9500,24 +9513,29 @@ var Fi = /*#__PURE__*/function (_lt) {
|
|
9500
9513
|
}, {
|
9501
9514
|
key: "createInnerButtonElements",
|
9502
9515
|
value: function createInnerButtonElements(e, t) {
|
9503
|
-
return
|
9516
|
+
return Ae.createCustomElements(e, this.svg, t) || [this.svg];
|
9517
|
+
}
|
9518
|
+
}, {
|
9519
|
+
key: "changeState",
|
9520
|
+
value: function changeState(e) {
|
9521
|
+
this.changeElementsByState(e), this.elementRef.classList.replace(Ae.INPUT_BUTTON_SVG_CLASS, "deep-chat-openai-realtime-button");
|
9504
9522
|
}
|
9505
9523
|
}, {
|
9506
9524
|
key: "changeToActive",
|
9507
9525
|
value: function changeToActive() {
|
9508
|
-
this.
|
9526
|
+
this.changeState(this._innerElements.active), this.reapplyStateStyle("active", ["unavailable", "default"]), this.isActive = !0;
|
9509
9527
|
}
|
9510
9528
|
}, {
|
9511
9529
|
key: "changeToDefault",
|
9512
9530
|
value: function changeToDefault() {
|
9513
9531
|
var e, t, i, s;
|
9514
|
-
this.
|
9532
|
+
this.changeState(this._innerElements["default"]), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i.unavailable && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s.unavailable), this.reapplyStateStyle("default", ["active", "unavailable"]), this.isActive = !1;
|
9515
9533
|
}
|
9516
9534
|
}, {
|
9517
9535
|
key: "changeToUnavailable",
|
9518
9536
|
value: function changeToUnavailable() {
|
9519
9537
|
var e, t, i, s;
|
9520
|
-
this.
|
9538
|
+
this.changeState(this._innerElements.unavailable), (e = this.customStyles) != null && e.active && D.unsetAllCSS(this.elementRef, (t = this.customStyles) == null ? void 0 : t.active), (i = this.customStyles) != null && i["default"] && D.unsetAllCSS(this.elementRef, (s = this.customStyles) == null ? void 0 : s["default"]), this.reapplyStateStyle("unavailable", ["default", "active"]), this.isActive = !1;
|
9521
9539
|
}
|
9522
9540
|
}]);
|
9523
9541
|
}(lt);
|
@@ -9784,7 +9802,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
9784
9802
|
var _this42 = this;
|
9785
9803
|
var t;
|
9786
9804
|
var e = new ki((t = this._buttonsConfig) == null ? void 0 : t.microphone);
|
9787
|
-
return e.elementRef.classList.
|
9805
|
+
return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-mute"), e.elementRef.onclick = function () {
|
9788
9806
|
e.isActive ? (_this42.toggleMute(!0), e.elementRef.classList.replace(C.MUTE_ACTIVE, C.BUTTON_DEFAULT), e.changeToDefault(), _this42._isMuted = !1) : (_this42.toggleMute(!1), e.elementRef.classList.replace(C.BUTTON_DEFAULT, C.MUTE_ACTIVE), N.removeAriaAttributes(e.elementRef), e.changeToActive(), _this42._isMuted = !0);
|
9789
9807
|
}, e;
|
9790
9808
|
}
|
@@ -9802,7 +9820,7 @@ var In = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg viewBox=\"0 0 32 32\"
|
|
9802
9820
|
var _this43 = this;
|
9803
9821
|
var t;
|
9804
9822
|
var e = new ki((t = this._buttonsConfig) == null ? void 0 : t.toggle);
|
9805
|
-
return e.elementRef.classList.
|
9823
|
+
return e.elementRef.classList.add(C.BUTTON_DEFAULT, "deep-chat-openai-realtime-toggle"), e.elementRef.onclick = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee93() {
|
9806
9824
|
var i, s;
|
9807
9825
|
return _regeneratorRuntime().wrap(function _callee93$(_context93) {
|
9808
9826
|
while (1) switch (_context93.prev = _context93.next) {
|
@@ -12027,7 +12045,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12027
12045
|
key: "createAudioElement",
|
12028
12046
|
value: function createAudioElement(e, t) {
|
12029
12047
|
var i = document.createElement("audio");
|
12030
|
-
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0,
|
12048
|
+
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, De.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(t === y.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
|
12031
12049
|
}
|
12032
12050
|
}, {
|
12033
12051
|
key: "createNewAudioMessage",
|
@@ -12046,7 +12064,7 @@ var ta = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<svg version=\"1.1\"
|
|
12046
12064
|
t.classList.add("any-file-message-contents");
|
12047
12065
|
var i = document.createElement("div");
|
12048
12066
|
i.classList.add("any-file-message-icon-container");
|
12049
|
-
var s =
|
12067
|
+
var s = Fe.createSVGElement(ta);
|
12050
12068
|
s.classList.add("any-file-message-icon"), i.appendChild(s);
|
12051
12069
|
var r = document.createElement("div");
|
12052
12070
|
return r.classList.add("any-file-message-text"), r.textContent = e.name || H.DEFAULT_FILE_NAME, t.appendChild(i), t.appendChild(r), H.processContent("any", t, e.src, r.textContent);
|
@@ -12246,7 +12264,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12246
12264
|
if (_typeof(e) == "object") {
|
12247
12265
|
if (!t && e.displayLoading) {
|
12248
12266
|
var s = e.displayLoading.history;
|
12249
|
-
s != null && s.small &&
|
12267
|
+
s != null && s.small && Be.addMessage(this, !1), s != null && s.full && Be.addMessage(this);
|
12250
12268
|
}
|
12251
12269
|
e.displayErrors && (e.displayErrors["default"] && this.addNewErrorMessage("", ""), e.displayErrors.service && this.addNewErrorMessage("service", ""), e.displayErrors.speechToText && this.addNewErrorMessage("speechToText", "")), (i = e.displayLoading) != null && i.message && this.addLoadingMessage(), e.response && (this.customDemoResponse = e.response);
|
12252
12270
|
}
|
@@ -12399,9 +12417,9 @@ var de = /*#__PURE__*/function (_he) {
|
|
12399
12417
|
value: function addDefaultLoadingMessage() {
|
12400
12418
|
var e = this.createMessageElements("", y.AI_ROLE),
|
12401
12419
|
t = e.bubbleElement;
|
12402
|
-
e.bubbleElement.classList.add(
|
12420
|
+
e.bubbleElement.classList.add(Ne.DOTS_CONTAINER_CLASS);
|
12403
12421
|
var i = document.createElement("div");
|
12404
|
-
return i.classList.add("loading-message-dots"), t.appendChild(i),
|
12422
|
+
return i.classList.add("loading-message-dots"), t.appendChild(i), Ne.setDots(t, this.messageStyles), e;
|
12405
12423
|
}
|
12406
12424
|
}, {
|
12407
12425
|
key: "addLoadingMessage",
|
@@ -12412,7 +12430,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12412
12430
|
if (he.isLoadingMessage(t) || !e && !this._isLoadingMessageAllowed) return;
|
12413
12431
|
var i = (a = (o = (r = this.messageStyles) == null ? void 0 : r.loading) == null ? void 0 : o.message) == null ? void 0 : a.html,
|
12414
12432
|
s = i ? _e.createElements(this, i, y.AI_ROLE, !1) : this.addDefaultLoadingMessage();
|
12415
|
-
this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(
|
12433
|
+
this.appendOuterContainerElemet(s.outerContainer), s.bubbleElement.classList.add(Ne.BUBBLE_CLASS), this.applyCustomStyles(s, y.AI_ROLE, !1, (d = (c = (l = this.messageStyles) == null ? void 0 : l.loading) == null ? void 0 : c.message) == null ? void 0 : d.styles), this.focusMode || X.scrollToBottom(this.elementRef);
|
12416
12434
|
}
|
12417
12435
|
}, {
|
12418
12436
|
key: "populateIntroPanel",
|
@@ -12497,7 +12515,7 @@ var de = /*#__PURE__*/function (_he) {
|
|
12497
12515
|
}, {
|
12498
12516
|
key: "isActiveElement",
|
12499
12517
|
value: function isActiveElement(e) {
|
12500
|
-
return e ? e.contains(
|
12518
|
+
return e ? e.contains(Ne.BUBBLE_CLASS) || e.contains(Be.CLASS) || e.contains(we.MESSAGE_CLASS) : !1;
|
12501
12519
|
}
|
12502
12520
|
}]);
|
12503
12521
|
}(he);
|
@@ -12613,7 +12631,7 @@ var Js = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "micropho
|
|
12613
12631
|
var u;
|
12614
12632
|
return ((u = d.svg) == null ? void 0 : u.content) === "";
|
12615
12633
|
});
|
12616
|
-
l.classList.contains(
|
12634
|
+
l.classList.contains(Ae.INPUT_BUTTON_INNER_TEXT_CLASS) ? (c || t.appendChild(Q.createItemIcon(o, i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(l.textContent, i == null ? void 0 : i.text))) : (c || t.appendChild(Q.createItemIcon(s.children[0], i == null ? void 0 : i.iconContainer)), t.appendChild(Q.createItemText(r, i == null ? void 0 : i.text)));
|
12617
12635
|
}
|
12618
12636
|
}, {
|
12619
12637
|
key: "createItem",
|
@@ -13411,10 +13429,10 @@ function Vi() {
|
|
13411
13429
|
s += l;
|
13412
13430
|
} else if (a.textContent !== null) {
|
13413
13431
|
if (s + a.textContent.length > i) {
|
13414
|
-
var
|
13415
|
-
|
13432
|
+
var _l3 = document.createRange();
|
13433
|
+
_l3.setStart(a, i - s), _l3.collapse(!0);
|
13416
13434
|
var c = window.getSelection();
|
13417
|
-
return c == null || c.removeAllRanges(), c == null || c.addRange(
|
13435
|
+
return c == null || c.removeAllRanges(), c == null || c.addRange(_l3), t.focus(), -1;
|
13418
13436
|
}
|
13419
13437
|
s += a.textContent.length, r += a.textContent.length;
|
13420
13438
|
}
|
@@ -14506,32 +14524,32 @@ var Zt = /*#__PURE__*/function (_Hi) {
|
|
14506
14524
|
}(Hi);
|
14507
14525
|
Zt.MICROPHONE_RESET_TIMEOUT_MS = 300;
|
14508
14526
|
var ri = Zt;
|
14509
|
-
var
|
14527
|
+
var Pe = /*#__PURE__*/function () {
|
14510
14528
|
// prettier-ignore
|
14511
|
-
function
|
14529
|
+
function Pe(e, t, i, s) {
|
14512
14530
|
var _this77 = this;
|
14513
|
-
_classCallCheck(this,
|
14531
|
+
_classCallCheck(this, Pe);
|
14514
14532
|
this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", t.maxNumberOfFiles && (this._fileCountLimit = t.maxNumberOfFiles), this._toggleContainerDisplay = i, this._fileAttachmentsContainerRef = s, t.acceptedFormats && (this._acceptedFormat = t.acceptedFormats), setTimeout(function () {
|
14515
14533
|
_this77._validationHandler = e._validationHandler;
|
14516
14534
|
});
|
14517
14535
|
}
|
14518
|
-
return _createClass(
|
14536
|
+
return _createClass(Pe, [{
|
14519
14537
|
key: "attemptAddFile",
|
14520
14538
|
value: function attemptAddFile(e, t) {
|
14521
|
-
return
|
14539
|
+
return Pe.isFileTypeValid(e, this._acceptedFormat) ? (this.addAttachmentBasedOnType(e, t, !0), !0) : !1;
|
14522
14540
|
}
|
14523
14541
|
}, {
|
14524
14542
|
key: "addAttachmentBasedOnType",
|
14525
14543
|
value: function addAttachmentBasedOnType(e, t, i) {
|
14526
|
-
var s =
|
14544
|
+
var s = Pe.getTypeFromBlob(e);
|
14527
14545
|
if (s === "image") {
|
14528
|
-
var r =
|
14546
|
+
var r = Pe.createImageAttachment(t);
|
14529
14547
|
this.addFileAttachment(e, "image", r, i);
|
14530
14548
|
} else if (s === "audio") {
|
14531
14549
|
var _r2 = oi.createAudioAttachment(t);
|
14532
14550
|
this.addFileAttachment(e, "audio", _r2, i);
|
14533
14551
|
} else {
|
14534
|
-
var _r3 =
|
14552
|
+
var _r3 = Pe.createAnyFileAttachment(e.name);
|
14535
14553
|
this.addFileAttachment(e, "any", _r3, i);
|
14536
14554
|
}
|
14537
14555
|
}
|
@@ -14539,7 +14557,7 @@ var Oe = /*#__PURE__*/function () {
|
|
14539
14557
|
key: "addFileAttachment",
|
14540
14558
|
value: function addFileAttachment(e, t, i, s) {
|
14541
14559
|
var a;
|
14542
|
-
var r =
|
14560
|
+
var r = Pe.createContainer(i);
|
14543
14561
|
if (this._attachments.length >= this._fileCountLimit) {
|
14544
14562
|
var l = this._attachments[this._attachments.length - 1].removeButton;
|
14545
14563
|
l == null || l.click();
|
@@ -14625,7 +14643,7 @@ var Oe = /*#__PURE__*/function () {
|
|
14625
14643
|
key: "createAnyFileAttachment",
|
14626
14644
|
value: function createAnyFileAttachment(e) {
|
14627
14645
|
var t = document.createElement("div");
|
14628
|
-
t.classList.add("border-bound-attachment"),
|
14646
|
+
t.classList.add("border-bound-attachment"), De.IS_SAFARI && t.classList.add("border-bound-attachment-safari");
|
14629
14647
|
var i = document.createElement("div");
|
14630
14648
|
i.classList.add("any-file-attachment-text");
|
14631
14649
|
var s = document.createElement("div");
|
@@ -14639,19 +14657,19 @@ var Oe = /*#__PURE__*/function () {
|
|
14639
14657
|
}
|
14640
14658
|
}]);
|
14641
14659
|
}();
|
14642
|
-
var
|
14660
|
+
var Ie = /*#__PURE__*/function (_Pe) {
|
14643
14661
|
// prettier-ignore
|
14644
|
-
function
|
14645
|
-
_classCallCheck(this,
|
14646
|
-
return _callSuper(this,
|
14662
|
+
function Ie(e, t, i, s) {
|
14663
|
+
_classCallCheck(this, Ie);
|
14664
|
+
return _callSuper(this, Ie, [e, t, i, s]);
|
14647
14665
|
}
|
14648
|
-
_inherits(
|
14649
|
-
return _createClass(
|
14666
|
+
_inherits(Ie, _Pe);
|
14667
|
+
return _createClass(Ie, [{
|
14650
14668
|
key: "createTimer",
|
14651
14669
|
value: function createTimer(e, t) {
|
14652
14670
|
var _this78 = this;
|
14653
14671
|
var i = 0;
|
14654
|
-
var s = t !== void 0 && t <
|
14672
|
+
var s = t !== void 0 && t < Ie.TIMER_LIMIT_S ? t : Ie.TIMER_LIMIT_S;
|
14655
14673
|
return setInterval(function () {
|
14656
14674
|
var a;
|
14657
14675
|
i += 1, i === s && ((a = _this78.stopPlaceholderCallback) == null || a.call(_this78), _this78.clearTimer()), i === 600 && e.classList.add("audio-placeholder-text-4-digits");
|
@@ -14663,12 +14681,12 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14663
14681
|
}, {
|
14664
14682
|
key: "createPlaceholderAudioAttachment",
|
14665
14683
|
value: function createPlaceholderAudioAttachment(e) {
|
14666
|
-
var t =
|
14684
|
+
var t = Ie.createAudioContainer(),
|
14667
14685
|
i = document.createElement("div");
|
14668
14686
|
i.classList.add("audio-placeholder-text-3-digits");
|
14669
14687
|
var s = document.createElement("div");
|
14670
14688
|
s.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), s.appendChild(i);
|
14671
|
-
var r =
|
14689
|
+
var r = Fe.createSVGElement(os);
|
14672
14690
|
return r.classList.add("attachment-icon", "stop-icon", "not-removable-attachment-icon"), i.textContent = "0:00", this._activePlaceholderTimer = this.createTimer(i, e), t.appendChild(s), this.addPlaceholderAudioAttachmentEvents(t, r, s), t;
|
14673
14691
|
}
|
14674
14692
|
}, {
|
@@ -14700,7 +14718,7 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14700
14718
|
key: "completePlaceholderAttachment",
|
14701
14719
|
value: function completePlaceholderAttachment(e, t) {
|
14702
14720
|
var i = this._activePlaceholderAttachment;
|
14703
|
-
i && (i.file = e,
|
14721
|
+
i && (i.file = e, Ie.addAudioElements(i.attachmentContainerElement.children[0], t), i.removeButton = this.createRemoveAttachmentButton(i), i.attachmentContainerElement.appendChild(i.removeButton), this._activePlaceholderAttachment = void 0, this.clearTimer());
|
14704
14722
|
}
|
14705
14723
|
}, {
|
14706
14724
|
key: "removePlaceholderAttachment",
|
@@ -14716,7 +14734,7 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14716
14734
|
key: "createAudioContainer",
|
14717
14735
|
value: function createAudioContainer() {
|
14718
14736
|
var e = document.createElement("div");
|
14719
|
-
return e.classList.add("border-bound-attachment", "audio-attachment-icon-container"),
|
14737
|
+
return e.classList.add("border-bound-attachment", "audio-attachment-icon-container"), De.IS_SAFARI && e.classList.add("border-bound-attachment-safari"), e;
|
14720
14738
|
}
|
14721
14739
|
}, {
|
14722
14740
|
key: "addAudioElements",
|
@@ -14724,9 +14742,9 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14724
14742
|
var i = e.parentElement ? X.cloneElement(e) : e,
|
14725
14743
|
s = document.createElement("audio");
|
14726
14744
|
s.src = t;
|
14727
|
-
var r =
|
14745
|
+
var r = Fe.createSVGElement(In);
|
14728
14746
|
r.classList.add("attachment-icon", "play-icon");
|
14729
|
-
var o =
|
14747
|
+
var o = Fe.createSVGElement(os);
|
14730
14748
|
o.classList.add("attachment-icon", "stop-icon"), i.replaceChildren(r), s.onplay = function () {
|
14731
14749
|
i.replaceChildren(o);
|
14732
14750
|
}, s.onpause = function () {
|
@@ -14740,8 +14758,8 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14740
14758
|
}, {
|
14741
14759
|
key: "createAudioAttachment",
|
14742
14760
|
value: function createAudioAttachment(e) {
|
14743
|
-
var t =
|
14744
|
-
return
|
14761
|
+
var t = Ie.createAudioContainer();
|
14762
|
+
return Ie.addAudioElements(t, e), t;
|
14745
14763
|
}
|
14746
14764
|
}, {
|
14747
14765
|
key: "stopAttachmentPlayback",
|
@@ -14750,9 +14768,9 @@ var Le = /*#__PURE__*/function (_Oe) {
|
|
14750
14768
|
(s = (i = (t = e.children[0]) == null ? void 0 : t.children) == null ? void 0 : i[0]) != null && s.classList.contains("stop-icon") && e.children[0].click();
|
14751
14769
|
}
|
14752
14770
|
}]);
|
14753
|
-
}(
|
14754
|
-
|
14755
|
-
var oi =
|
14771
|
+
}(Pe);
|
14772
|
+
Ie.TIMER_LIMIT_S = 5999;
|
14773
|
+
var oi = Ie;
|
14756
14774
|
var Ra = /*#__PURE__*/function () {
|
14757
14775
|
function Ra() {
|
14758
14776
|
_classCallCheck(this, Ra);
|
@@ -14762,7 +14780,7 @@ var Ra = /*#__PURE__*/function () {
|
|
14762
14780
|
value:
|
14763
14781
|
// prettier-ignore
|
14764
14782
|
function create(e, t, i, s, r) {
|
14765
|
-
return r === "audio" ? new oi(e, t, i, s) : new
|
14783
|
+
return r === "audio" ? new oi(e, t, i, s) : new Pe(e, t, i, s);
|
14766
14784
|
}
|
14767
14785
|
}]);
|
14768
14786
|
}();
|
@@ -14961,7 +14979,7 @@ var ge = /*#__PURE__*/function () {
|
|
14961
14979
|
value: function createSVGButton(e) {
|
14962
14980
|
var t = document.createElement("div");
|
14963
14981
|
t.classList.add("modal-button", "modal-svg-button");
|
14964
|
-
var i =
|
14982
|
+
var i = Fe.createSVGElement(e);
|
14965
14983
|
return i.classList.add("modal-svg-button-icon"), t.appendChild(i), t;
|
14966
14984
|
}
|
14967
14985
|
}, {
|
@@ -15034,15 +15052,15 @@ var Ni = /*#__PURE__*/function (_lt5) {
|
|
15034
15052
|
}
|
15035
15053
|
}]);
|
15036
15054
|
}(lt);
|
15037
|
-
var
|
15038
|
-
function
|
15039
|
-
_classCallCheck(this,
|
15055
|
+
var Oe = /*#__PURE__*/function () {
|
15056
|
+
function Oe() {
|
15057
|
+
_classCallCheck(this, Oe);
|
15040
15058
|
}
|
15041
|
-
return _createClass(
|
15059
|
+
return _createClass(Oe, null, [{
|
15042
15060
|
key: "create",
|
15043
15061
|
value: function create(e, t, i) {
|
15044
|
-
var s =
|
15045
|
-
|
15062
|
+
var s = Oe.createElement(i);
|
15063
|
+
Oe.addEvents(s, e, t), e.appendChild(s);
|
15046
15064
|
}
|
15047
15065
|
}, {
|
15048
15066
|
key: "createElement",
|
@@ -15054,13 +15072,13 @@ var Ie = /*#__PURE__*/function () {
|
|
15054
15072
|
key: "addEvents",
|
15055
15073
|
value: function addEvents(e, t, i) {
|
15056
15074
|
t.ondragenter = function (s) {
|
15057
|
-
s.preventDefault(),
|
15075
|
+
s.preventDefault(), Oe.display(e);
|
15058
15076
|
}, e.ondragleave = function (s) {
|
15059
|
-
s.preventDefault(),
|
15077
|
+
s.preventDefault(), Oe.hide(e);
|
15060
15078
|
}, e.ondragover = function (s) {
|
15061
15079
|
s.preventDefault();
|
15062
15080
|
}, e.ondrop = function (s) {
|
15063
|
-
s.preventDefault(),
|
15081
|
+
s.preventDefault(), Oe.uploadFile(i, s), Oe.hide(e);
|
15064
15082
|
};
|
15065
15083
|
}
|
15066
15084
|
}, {
|
@@ -15333,21 +15351,21 @@ var P = /*#__PURE__*/function (_lt6) {
|
|
15333
15351
|
key: "createCustomElements",
|
15334
15352
|
value: function createCustomElements() {
|
15335
15353
|
var _this89 = this;
|
15336
|
-
var e =
|
15354
|
+
var e = Ae.createCustomElements("submit", this.svg, this.customStyles),
|
15337
15355
|
t = {
|
15338
15356
|
loading: void 0,
|
15339
15357
|
stop: void 0
|
15340
15358
|
};
|
15341
15359
|
return Object.keys(t).forEach(function (i) {
|
15342
15360
|
var s = i,
|
15343
|
-
r =
|
15361
|
+
r = Ae.createCustomElements(s, _this89.svg, _this89.customStyles);
|
15344
15362
|
r && (t[s] = r);
|
15345
15363
|
}), t.submit = e || this.buildDefaultIconElement("submit-icon"), t;
|
15346
15364
|
}
|
15347
15365
|
}, {
|
15348
15366
|
key: "createDisabledIconElement",
|
15349
15367
|
value: function createDisabledIconElement(e) {
|
15350
|
-
return
|
15368
|
+
return Ae.createCustomElements("disabled", this.svg, this.customStyles) || [e[0].cloneNode(!0)];
|
15351
15369
|
}
|
15352
15370
|
// prettier-ignore
|
15353
15371
|
}, {
|
@@ -15432,7 +15450,7 @@ var P = /*#__PURE__*/function (_lt6) {
|
|
15432
15450
|
e.files && (t.files = Array.from(e.files).map(function (i) {
|
15433
15451
|
return {
|
15434
15452
|
file: i,
|
15435
|
-
type:
|
15453
|
+
type: Pe.getTypeFromBlob(i)
|
15436
15454
|
};
|
15437
15455
|
})), setTimeout(function () {
|
15438
15456
|
return _this90.attemptSubmit(t, !0);
|
@@ -15620,7 +15638,7 @@ var Cs = /*#__PURE__*/function (_et) {
|
|
15620
15638
|
var _this92$addButtonsAnd = _this92.addButtonsAndTheirEvents(t),
|
15621
15639
|
r = _this92$addButtonsAnd.captureButton,
|
15622
15640
|
o = _this92$addButtonsAnd.submitButton;
|
15623
|
-
_this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon =
|
15641
|
+
_this92._captureButton = r, _this92._submitButton = o, _this92._captureIcon = _this92._captureButton.children[0], _this92._refreshIcon = Fe.createSVGElement(La), _this92._refreshIcon.classList.add("modal-svg-button-icon", "modal-svg-refresh-icon"), (s == null ? void 0 : s.format) === "jpeg" && (_this92._format = "image/jpeg"), s != null && s.dimensions && (_this92._dimensions = s.dimensions), _this92._contentRef.appendChild(_this92._canvas), _this92.extensionCloseCallback = _this92.stop;
|
15624
15642
|
return _this92;
|
15625
15643
|
}
|
15626
15644
|
_inherits(Cs, _et);
|
@@ -15795,7 +15813,7 @@ var Kt = /*#__PURE__*/function () {
|
|
15795
15813
|
button: new Ma(_d, t.recordAudio)
|
15796
15814
|
};
|
15797
15815
|
}
|
15798
|
-
return
|
15816
|
+
return Oe.isEnabled(r, e.dragAndDrop) && Oe.create(i, r, e.dragAndDrop), r;
|
15799
15817
|
}
|
15800
15818
|
// prettier-ignore
|
15801
15819
|
}], [{
|
@@ -15857,7 +15875,7 @@ var Ms = /*#__PURE__*/function () {
|
|
15857
15875
|
}
|
15858
15876
|
}]);
|
15859
15877
|
}();
|
15860
|
-
var Da = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#loading-validate-key-property{display:inline-block;width:50px;height:50px}#loading-validate-key-property:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:loading-spinner 1.4s linear infinite}#deep-chat-openai-realtime-container{height:100%;width:100%}#deep-chat-openai-realtime-avatar-container{height:60%;width:100%;display:flex;justify-content:center;align-items:center}#deep-chat-openai-realtime-avatar{border-radius:50%;height:110px;border:1px solid rgb(215,215,215);padding:8px;-webkit-user-select:none;user-select:none;margin-top:20px}#deep-chat-openai-realtime-buttons-container{height:40%;display:flex;position:relative}.deep-chat-openai-realtime-button-container{height:100%;width:50%;display:flex;justify-content:center;align-items:center}.deep-chat-openai-realtime-button{width:70px;height:70px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer}.deep-chat-openai-realtime-button-default{background-color:#e3e3e3}.deep-chat-openai-realtime-button-default:hover{background-color:#d4d4d4}.deep-chat-openai-realtime-button-default:active{background-color:#c5c5c5}.deep-chat-openai-realtime-button-loading{opacity:.7;pointer-events:none}.deep-chat-openai-realtime-mute-active{background-color:#ffe7e7}.deep-chat-openai-realtime-mute-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-mute-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-mute>*{height:30px;width:30px}.deep-chat-openai-realtime-mute-active>*{filter:brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(1360%) hue-rotate(325deg) brightness(95%) contrast(92%)}.deep-chat-openai-realtime-toggle>*{height:32px;width:32px;padding-left:3px;filter:brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(4537%) hue-rotate(208deg) brightness(105%) contrast(91%)}.deep-chat-openai-realtime-button-unavailable{opacity:.45;pointer-events:none}#deep-chat-openai-realtime-error{color:red;position:absolute;top:calc(50% + 40px);left:50%;transform:translate(-50%,-50%);font-size:17px}#deep-chat-openai-realtime-loading{position:absolute;font-size:15px;top:50%;left:50%;transform:translate(-50%,-50%)}#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-key{display:inline-block;width:16px;height:16px}#loading-key: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-spinner 1.2s linear infinite}#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}@keyframes loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.deep-chat-last-group-messages-active{height:100%}.loading-history-message-full-view{position:absolute;height:70%;width:100%;display:flex;align-items:center}.loading-history-message-small{height:20px;margin-bottom:30px}.loading-history-message-small>div>div{scale:.6}.loading-history-message{margin-top:0;width:100%;max-width:100%;display:flex;justify-content:center;background-color:unset}.loading-history{width:70px}.loading-history div{position:absolute;width:var(--loading-history-width);height:var(--loading-history-height);margin:var(--loading-history-margin);border:var(--loading-history-border);border-radius:50%;animation:loading-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--loading-history-color) transparent transparent transparent}.loading-history div:nth-child(1){animation-delay:-.45s}.loading-history div:nth-child(2){animation-delay:-.3s}.loading-history div:nth-child(3){animation-delay:-.15s}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.deep-chat-loading-message-dots-container{width:1em;padding:.6em .75em .6em 1.3em}.loading-message-dots{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite linear alternate;animation-delay:.5s}.loading-message-dots:before,.loading-message-dots:after{content:\"\";display:inline-block;position:absolute;top:0}.loading-message-dots:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:0s}.loading-message-dots:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:1s}@keyframes loading-message-dots{0%{background-color:var(--loading-message-color)}50%,to{background-color:var(--loading-message-color-fade)}}.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{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}.role-hidden{display:none}.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:3}.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:2;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}.loading-submit-button{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:loading-submit-button 1.5s infinite linear;bottom:-.75em}@keyframes loading-submit-button{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}}.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-svg-text{padding:1px;height:1.65em;display:flex}.input-button-svg-text>svg{padding:.22rem}.input-button-svg-text>div{margin-left:2px}.input-button:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.input-button:active:not(:hover){background-color:transparent}.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;width:max-content}#custom-icon{height:100%;width:1.2em}.custom-button-container-default{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%);color:#505050}.custom-button-container-default>.dropup-menu-item-icon{color:unset}.custom-button-container-default>svg{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%)}.custom-button-container-default>.dropup-menu-item-icon>svg{position:absolute;left:.2em}.custom-button-container-active{background-color:#edf7ff;color:#0285ff}.custom-button-container-active:hover,.custom-button-container-active:focus-visible{background-color:#def0ff}.custom-button-container-active:active{background-color:#d2eaff}.custom-button-container-active>svg{filter:brightness(0) saturate(100%) invert(32%) sepia(34%) saturate(4196%) hue-rotate(196deg) brightness(107%) contrast(104%)}.custom-button-container-disabled{color:#aeaeae;cursor:auto}.custom-button-container-disabled>div{pointer-events:none}.custom-button-container-disabled:hover,.custom-button-container-disabled:focus-visible{background-color:transparent}.custom-button-container-disabled:active{background-color:transparent}.custom-button-container-disabled>svg{filter:brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(818%) hue-rotate(28deg) brightness(102%) contrast(100%)}#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}[contenteditable]:empty:before{content:attr(deep-chat-placeholder-text);pointer-events:none}[contenteditable][textcolor]:empty:before{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-button>*{pointer-events:none}#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:hover,.dropup-menu-item:focus-visible{background-color:#f3f3f3}.dropup-menu-item:active{background-color:#ebebeb}.dropup-menu-item:active:not(:hover){background-color:transparent}.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}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}#dropup-menu-item-icon-element-custom{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.28em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%)}.dropup-menu-item-text{margin-left:.56em;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}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
|
15878
|
+
var Da = "#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#loading-validate-key-property{display:inline-block;width:50px;height:50px}#loading-validate-key-property:after{content:\" \";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:loading-spinner 1.4s linear infinite}#deep-chat-openai-realtime-container{height:100%;width:100%}#deep-chat-openai-realtime-avatar-container{height:60%;width:100%;display:flex;justify-content:center;align-items:center}#deep-chat-openai-realtime-avatar{border-radius:50%;height:110px;border:1px solid rgb(215,215,215);padding:8px;-webkit-user-select:none;user-select:none;margin-top:20px}#deep-chat-openai-realtime-buttons-container{height:40%;display:flex;position:relative}.deep-chat-openai-realtime-button-container{height:100%;width:50%;display:flex;justify-content:center;align-items:center}.deep-chat-openai-realtime-button{width:70px;height:70px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer}.deep-chat-openai-realtime-button-default{background-color:#e3e3e3}.deep-chat-openai-realtime-button-default:hover{background-color:#d4d4d4}.deep-chat-openai-realtime-button-default:active{background-color:#c5c5c5}.deep-chat-openai-realtime-button-loading{opacity:.7;pointer-events:none}.deep-chat-openai-realtime-mute-active{background-color:#ffe7e7}.deep-chat-openai-realtime-mute-active:hover{background-color:#ffdede}.deep-chat-openai-realtime-mute-active:active{background-color:#ffd2d2}.deep-chat-openai-realtime-mute>*{height:30px;width:30px}.deep-chat-openai-realtime-mute-active>*{filter:brightness(0) saturate(100%) invert(35%) sepia(60%) saturate(1360%) hue-rotate(325deg) brightness(95%) contrast(92%)}.deep-chat-openai-realtime-toggle>*{height:32px;width:32px;padding-left:3px;filter:brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(4537%) hue-rotate(208deg) brightness(105%) contrast(91%)}.deep-chat-openai-realtime-button-unavailable{opacity:.45;pointer-events:none}#deep-chat-openai-realtime-error{color:red;position:absolute;top:calc(50% + 40px);left:50%;transform:translate(-50%,-50%);font-size:17px}#deep-chat-openai-realtime-loading{position:absolute;font-size:15px;top:50%;left:50%;transform:translate(-50%,-50%)}#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-key{display:inline-block;width:16px;height:16px}#loading-key: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-spinner 1.2s linear infinite}#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}@keyframes loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.deep-chat-last-group-messages-active{height:100%}.loading-history-message-full-view{position:absolute;height:70%;width:100%;display:flex;align-items:center}.loading-history-message-small{height:20px;margin-bottom:30px}.loading-history-message-small>div>div{scale:.6}.loading-history-message{margin-top:0;width:100%;max-width:100%;display:flex;justify-content:center;background-color:unset}.loading-history{width:70px}.loading-history div{position:absolute;width:var(--loading-history-width);height:var(--loading-history-height);margin:var(--loading-history-margin);border:var(--loading-history-border);border-radius:50%;animation:loading-spinner 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--loading-history-color) transparent transparent transparent}.loading-history div:nth-child(1){animation-delay:-.45s}.loading-history div:nth-child(2){animation-delay:-.3s}.loading-history div:nth-child(3){animation-delay:-.15s}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.deep-chat-loading-message-dots-container{width:1em;padding:.6em .75em .6em 1.3em}.loading-message-dots{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite linear alternate;animation-delay:.5s}.loading-message-dots:before,.loading-message-dots:after{content:\"\";display:inline-block;position:absolute;top:0}.loading-message-dots:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:0s}.loading-message-dots:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--loading-message-color);color:var(--loading-message-color);animation:loading-message-dots 1s infinite alternate;animation-delay:1s}@keyframes loading-message-dots{0%{background-color:var(--loading-message-color)}50%,to{background-color:var(--loading-message-color-fade)}}.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{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}.role-hidden{display:none}.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:3}.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:2;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}.loading-submit-button{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:loading-submit-button 1.5s infinite linear;bottom:-.75em}@keyframes loading-submit-button{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}}.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-svg-text{padding:1px;height:1.65em;display:flex}.input-button-svg-text>svg{padding:.22rem}.input-button-svg-text>div{margin-left:2px}.input-button:hover,.input-button:focus-visible{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.input-button:active:not(:hover){background-color:transparent}.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;width:max-content}#custom-icon{height:100%;width:1.2em}.custom-button-container-default{color:#505050}.custom-button-container-default>.dropup-menu-item-icon{color:unset}.custom-button-container-default>svg{filter:brightness(0) saturate(100%) invert(39%) sepia(1%) saturate(0%) hue-rotate(83deg) brightness(93%) contrast(90%)}.custom-button-container-default>.dropup-menu-item-icon>svg{position:absolute;left:.2em}.custom-button-container-active{background-color:#edf7ff;color:#0285ff}.custom-button-container-active:hover,.custom-button-container-active:focus-visible{background-color:#def0ff}.custom-button-container-active:active{background-color:#d2eaff}.custom-button-container-active>svg{filter:brightness(0) saturate(100%) invert(32%) sepia(34%) saturate(4196%) hue-rotate(196deg) brightness(107%) contrast(104%)}.custom-button-container-disabled{color:#aeaeae;cursor:auto}.custom-button-container-disabled>div{pointer-events:none}.custom-button-container-disabled:hover,.custom-button-container-disabled:focus-visible{background-color:transparent}.custom-button-container-disabled:active{background-color:transparent}.custom-button-container-disabled>svg{filter:brightness(0) saturate(100%) invert(67%) sepia(0%) saturate(818%) hue-rotate(28deg) brightness(102%) contrast(100%)}#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}[contenteditable]:empty:before{content:attr(deep-chat-placeholder-text);pointer-events:none}[contenteditable][textcolor]:empty:before{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-button>*{pointer-events:none}#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:hover,.dropup-menu-item:focus-visible{background-color:#f3f3f3}.dropup-menu-item:active{background-color:#ebebeb}.dropup-menu-item:active:not(:hover){background-color:transparent}.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}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}#dropup-menu-item-icon-element-custom{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.28em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%)}.dropup-menu-item-text{margin-left:.56em;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}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}";
|
15861
15879
|
var Ba = Object.defineProperty,
|
15862
15880
|
w = function w(n, e, t, i) {
|
15863
15881
|
for (var s = void 0, r = n.length - 1, o; r >= 0; r--) (o = n[r]) && (s = o(e, t, s) || s);
|