lr-chatbot 0.24.0 → 0.24.2
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/index.js +193 -193
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -608,7 +608,7 @@ Jc.DEFAULT_COMPONENT_STYLE = {
|
|
|
608
608
|
};
|
|
609
609
|
var la = Jc, ke = /* @__PURE__ */ function(t) {
|
|
610
610
|
return t.ESCAPE = "Escape", t.ENTER = "Enter", t.TAB = "Tab", t.ARROW_UP = "ArrowUp", t.ARROW_DOWN = "ArrowDown", t.ARROW_RIGHT = "ArrowRight", t.ARROW_LEFT = "ArrowLeft", t.BACKSPACE = "Backspace", t.DELETE = "Delete", t.META = "Meta", t.CONTROL = "Control", t;
|
|
611
|
-
}(ke || {}), Pr,
|
|
611
|
+
}(ke || {}), Pr, gn = (Pr = /* @__PURE__ */ k(function t() {
|
|
612
612
|
w(this, t);
|
|
613
613
|
}), Pr.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Pr.IS_CHROMIUM = window.chrome, Pr), Zc = /* @__PURE__ */ function() {
|
|
614
614
|
function t() {
|
|
@@ -674,7 +674,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
674
674
|
key: "createInputElement",
|
|
675
675
|
value: function(e) {
|
|
676
676
|
var n, i, a = document.createElement("div");
|
|
677
|
-
return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS),
|
|
677
|
+
return a.id = t.TEXT_INPUT_ID, a.classList.add("text-input-styling", t.PLACEHOLDER_TEXT_CLASS), gn.IS_CHROMIUM && t.preventAutomaticScrollUpOnNewLine(a), typeof (e == null ? void 0 : e.disabled) == "boolean" && e.disabled === !0 ? (a.contentEditable = "false", a.classList.add("text-input-disabled")) : (a.contentEditable = "true", this.addEventListeners(a, e)), Object.assign(a.style, (n = e == null ? void 0 : e.styles) == null ? void 0 : n.text), Object.assign(a.style, (i = e == null ? void 0 : e.placeholder) == null ? void 0 : i.style), a;
|
|
678
678
|
}
|
|
679
679
|
}, {
|
|
680
680
|
key: "removeTextIfPlaceholder",
|
|
@@ -692,7 +692,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
692
692
|
key: "onFocus",
|
|
693
693
|
value: function(e) {
|
|
694
694
|
var n = this;
|
|
695
|
-
|
|
695
|
+
gn.IS_SAFARI ? setTimeout(function() {
|
|
696
696
|
n.removeTextIfPlaceholder();
|
|
697
697
|
}) : this.removeTextIfPlaceholder(), Object.assign(this.elementRef.style, e);
|
|
698
698
|
}
|
|
@@ -740,7 +740,7 @@ var uh = Zc, dh = /* @__PURE__ */ function() {
|
|
|
740
740
|
key: "clear",
|
|
741
741
|
value: function(e) {
|
|
742
742
|
var n = window.scrollY;
|
|
743
|
-
e.classList.contains("text-input-disabled") || (e.textContent = ""),
|
|
743
|
+
e.classList.contains("text-input-disabled") || (e.textContent = ""), gn.IS_CHROMIUM && window.scrollTo({
|
|
744
744
|
top: n
|
|
745
745
|
});
|
|
746
746
|
}
|
|
@@ -1248,7 +1248,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1248
1248
|
var o = i.getElementsByClassName(s);
|
|
1249
1249
|
Array.from(o || []).forEach(function(l) {
|
|
1250
1250
|
var c = t.getProcessedStyles(n, l, s);
|
|
1251
|
-
|
|
1251
|
+
vn.applyStylesToElement(l, c), t.applyEvents(l, s);
|
|
1252
1252
|
});
|
|
1253
1253
|
});
|
|
1254
1254
|
var a = i.getElementsByClassName(bh);
|
|
@@ -1257,7 +1257,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
1259
|
}]);
|
|
1260
|
-
}(),
|
|
1260
|
+
}(), vn = /* @__PURE__ */ function() {
|
|
1261
1261
|
function t() {
|
|
1262
1262
|
w(this, t);
|
|
1263
1263
|
}
|
|
@@ -1331,7 +1331,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1331
1331
|
key: "overwrite",
|
|
1332
1332
|
value: function(e, n, i, a) {
|
|
1333
1333
|
var s = e.messages, o = J.overwriteMessage(s, a, n, i, "html", "html-message");
|
|
1334
|
-
return o && (o.bubbleElement.innerHTML = n,
|
|
1334
|
+
return o && (o.bubbleElement.innerHTML = n, vn.apply(e, o.outerContainer), $e.flagHTMLUpdateClass(o.bubbleElement)), o;
|
|
1335
1335
|
}
|
|
1336
1336
|
// prettier-ignore
|
|
1337
1337
|
}, {
|
|
@@ -1344,7 +1344,7 @@ var J = qr, nu = /* @__PURE__ */ function() {
|
|
|
1344
1344
|
s.status = !1;
|
|
1345
1345
|
}
|
|
1346
1346
|
var u = t.createElements(e, n, i, o);
|
|
1347
|
-
return J.fillEmptyMessageElement(u.bubbleElement, n),
|
|
1347
|
+
return J.fillEmptyMessageElement(u.bubbleElement, n), vn.apply(e, u.outerContainer), $e.flagHTMLUpdateClass(u.bubbleElement), e.applyCustomStyles(u, i, !1, (l = e.messageStyles) == null ? void 0 : l.html), o || t.addElement(e, u.outerContainer), u;
|
|
1348
1348
|
}
|
|
1349
1349
|
}]);
|
|
1350
1350
|
}(), Fr;
|
|
@@ -3412,7 +3412,7 @@ var Me = pu, ci = /* @__PURE__ */ function() {
|
|
|
3412
3412
|
var e, n, i = this._messages.textElementsToText;
|
|
3413
3413
|
if (!this._endStreamAfterOperation && !(this._fileAdded && !this._elements)) {
|
|
3414
3414
|
if (!this._elements) throw Error(fe.NO_VALID_STREAM_EVENTS_SENT);
|
|
3415
|
-
(e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements &&
|
|
3415
|
+
(e = this._elements.bubbleElement) != null && e.classList.contains(t.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && zr.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === t.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((n = this._elements.bubbleElement) == null ? void 0 : n.innerHTML) || ""), this._elements && vn.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(fu.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
}, {
|
|
@@ -3870,7 +3870,7 @@ var ye = /* @__PURE__ */ function() {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
if (i.html) {
|
|
3872
3872
|
n.onOpen();
|
|
3873
|
-
var o =
|
|
3873
|
+
var o = vn.splitHTML(i.html);
|
|
3874
3874
|
t.populateMessages(o, new yt(e), a, "html");
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
@@ -5169,7 +5169,7 @@ var mf = vu, gf = /* @__PURE__ */ function() {
|
|
|
5169
5169
|
e.replaceChildren(a);
|
|
5170
5170
|
}
|
|
5171
5171
|
}]);
|
|
5172
|
-
}(),
|
|
5172
|
+
}(), Wn = /* @__PURE__ */ function() {
|
|
5173
5173
|
function t() {
|
|
5174
5174
|
w(this, t);
|
|
5175
5175
|
}
|
|
@@ -5232,8 +5232,8 @@ var mf = vu, gf = /* @__PURE__ */ function() {
|
|
|
5232
5232
|
}
|
|
5233
5233
|
}]);
|
|
5234
5234
|
}();
|
|
5235
|
-
|
|
5236
|
-
var Fo =
|
|
5235
|
+
Wn.DOWNLOAD_BUTTON_CLASS = "deep-chat-download-button", Wn.UPLOAD_BUTTON_CLASS = "deep-chat-upload-button", Wn.FILE_INPUT_CLASS = "deep-chat-file-input", Wn.EXPORT_BUTTON_CLASS = "deep-chat-export-button";
|
|
5236
|
+
var Fo = Wn, $o = {
|
|
5237
5237
|
model_list: [
|
|
5238
5238
|
// Llama-2
|
|
5239
5239
|
{
|
|
@@ -9670,7 +9670,7 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9670
9670
|
key: "createAudioElement",
|
|
9671
9671
|
value: function(e, n) {
|
|
9672
9672
|
var i = document.createElement("audio");
|
|
9673
|
-
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0,
|
|
9673
|
+
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, gn.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(n === J.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
|
|
9674
9674
|
}
|
|
9675
9675
|
}, {
|
|
9676
9676
|
key: "addNewAudioMessage",
|
|
@@ -9839,7 +9839,7 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9839
9839
|
}, {
|
|
9840
9840
|
key: "populateIntroPanel",
|
|
9841
9841
|
value: function(n, i, a) {
|
|
9842
|
-
(n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (
|
|
9842
|
+
(n || i) && (this._introPanel = new Kf(n, i, a), this._introPanel._elementRef && (vn.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
|
|
9843
9843
|
}
|
|
9844
9844
|
}, {
|
|
9845
9845
|
key: "addMultipleFiles",
|
|
@@ -9910,7 +9910,7 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9910
9910
|
return Array.isArray(n) ? n : n instanceof Error ? [n.message] : typeof n == "string" ? [n] : z(n) == "object" && n.error ? [n.error] : [];
|
|
9911
9911
|
}
|
|
9912
9912
|
}]);
|
|
9913
|
-
}(fu),
|
|
9913
|
+
}(fu), Gn = /* @__PURE__ */ function() {
|
|
9914
9914
|
function t() {
|
|
9915
9915
|
w(this, t);
|
|
9916
9916
|
}
|
|
@@ -9945,8 +9945,8 @@ var Gf = /* @__PURE__ */ function() {
|
|
|
9945
9945
|
}
|
|
9946
9946
|
}]);
|
|
9947
9947
|
}();
|
|
9948
|
-
|
|
9949
|
-
var em =
|
|
9948
|
+
Gn.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", Gn.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", Gn.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", Gn.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
|
|
9949
|
+
var em = Gn, di = /* @__PURE__ */ function() {
|
|
9950
9950
|
function t() {
|
|
9951
9951
|
w(this, t);
|
|
9952
9952
|
}
|
|
@@ -10590,17 +10590,17 @@ var zo = wr, pm = /* @__PURE__ */ function() {
|
|
|
10590
10590
|
}]);
|
|
10591
10591
|
}();
|
|
10592
10592
|
Ai.WebSpeechTranscript = pm;
|
|
10593
|
-
var
|
|
10594
|
-
Object.defineProperty(
|
|
10593
|
+
var An = {};
|
|
10594
|
+
Object.defineProperty(An, "__esModule", {
|
|
10595
10595
|
value: !0
|
|
10596
10596
|
});
|
|
10597
|
-
|
|
10598
|
-
var
|
|
10597
|
+
An.Browser = void 0;
|
|
10598
|
+
var Kn = /* @__PURE__ */ k(function t() {
|
|
10599
10599
|
w(this, t);
|
|
10600
10600
|
});
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
return
|
|
10601
|
+
An.Browser = Kn;
|
|
10602
|
+
Kn.IS_SAFARI = function() {
|
|
10603
|
+
return Kn._IS_SAFARI === void 0 && (Kn._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), Kn._IS_SAFARI;
|
|
10604
10604
|
};
|
|
10605
10605
|
var kr = {}, Ri = {};
|
|
10606
10606
|
Object.defineProperty(Ri, "__esModule", {
|
|
@@ -10852,7 +10852,7 @@ Object.defineProperty(_r, "__esModule", {
|
|
|
10852
10852
|
value: !0
|
|
10853
10853
|
});
|
|
10854
10854
|
_r.CommandUtils = void 0;
|
|
10855
|
-
var qo = Sr, ym = Jt, bm =
|
|
10855
|
+
var qo = Sr, ym = Jt, bm = An, Vo = Zt, Wo = Kt, wm = /* @__PURE__ */ function() {
|
|
10856
10856
|
function t() {
|
|
10857
10857
|
w(this, t);
|
|
10858
10858
|
}
|
|
@@ -10947,7 +10947,7 @@ Object.defineProperty(Ii, "__esModule", {
|
|
|
10947
10947
|
value: !0
|
|
10948
10948
|
});
|
|
10949
10949
|
Ii.Highlight = void 0;
|
|
10950
|
-
var km = Jt,
|
|
10950
|
+
var km = Jt, Ln = Zt, _m = /* @__PURE__ */ function() {
|
|
10951
10951
|
function t() {
|
|
10952
10952
|
w(this, t);
|
|
10953
10953
|
}
|
|
@@ -10962,7 +10962,7 @@ var km = Jt, In = Zt, _m = /* @__PURE__ */ function() {
|
|
|
10962
10962
|
value: function(e, n) {
|
|
10963
10963
|
var i = window.getSelection();
|
|
10964
10964
|
if (i != null && i.focusNode) {
|
|
10965
|
-
var a =
|
|
10965
|
+
var a = Ln.Cursor.getGenericElementCursorOffset(n, i, !0), s = Ln.Cursor.getGenericElementCursorOffset(n, i, !1);
|
|
10966
10966
|
e.isHighlighted = a !== s;
|
|
10967
10967
|
}
|
|
10968
10968
|
}
|
|
@@ -10976,8 +10976,8 @@ var km = Jt, In = Zt, _m = /* @__PURE__ */ function() {
|
|
|
10976
10976
|
value: function(e, n) {
|
|
10977
10977
|
var i = window.getSelection();
|
|
10978
10978
|
if (i) {
|
|
10979
|
-
var a =
|
|
10980
|
-
i.deleteFromDocument(),
|
|
10979
|
+
var a = Ln.Cursor.getGenericElementCursorOffset(n, i, !0);
|
|
10980
|
+
i.deleteFromDocument(), Ln.Cursor.setOffsetForGeneric(n, a), e.isHighlighted = !1;
|
|
10981
10981
|
}
|
|
10982
10982
|
}
|
|
10983
10983
|
}, {
|
|
@@ -10986,7 +10986,7 @@ var km = Jt, In = Zt, _m = /* @__PURE__ */ function() {
|
|
|
10986
10986
|
var i = n.selectionStart, a = n.selectionEnd, s = n.value;
|
|
10987
10987
|
if (i && a) {
|
|
10988
10988
|
var o = s.substring(0, i) + s.substring(a);
|
|
10989
|
-
n.value = o,
|
|
10989
|
+
n.value = o, Ln.Cursor.setOffsetForPrimitive(n, i, e.autoScroll);
|
|
10990
10990
|
}
|
|
10991
10991
|
e.isHighlighted = !1;
|
|
10992
10992
|
}
|
|
@@ -11054,7 +11054,7 @@ Object.defineProperty(kr, "__esModule", {
|
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
kr.Speech = void 0;
|
|
11057
|
-
var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe = Jt, ma = Li, Zo =
|
|
11057
|
+
var Ko = Ri, xm = Oi, Jo = _r, Dr = Sr, fa = Ii, Xe = Jt, ma = Li, Zo = An, Yo = Zt, ga = Kt, Em = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
w(this, t), this.finalTranscript = "", this.interimSpan = Xe.Elements.createInterimSpan(), this.finalSpan = Xe.Elements.createGenericSpan(), this.scrollingSpan = Xe.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
|
|
11060
11060
|
}
|
|
@@ -11167,7 +11167,7 @@ Object.defineProperty(Ei, "__esModule", {
|
|
|
11167
11167
|
value: !0
|
|
11168
11168
|
});
|
|
11169
11169
|
Ei.WebSpeech = void 0;
|
|
11170
|
-
var Xo = Ai, Qo =
|
|
11170
|
+
var Xo = Ai, Qo = An, Am = kr, Tm = /* @__PURE__ */ function(t) {
|
|
11171
11171
|
function r() {
|
|
11172
11172
|
return w(this, r), q(this, r);
|
|
11173
11173
|
}
|
|
@@ -11836,7 +11836,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
|
|
|
11836
11836
|
key: "createAnyFileAttachment",
|
|
11837
11837
|
value: function(e) {
|
|
11838
11838
|
var n = document.createElement("div");
|
|
11839
|
-
n.classList.add("border-bound-attachment"),
|
|
11839
|
+
n.classList.add("border-bound-attachment"), gn.IS_SAFARI && n.classList.add("border-bound-attachment-safari");
|
|
11840
11840
|
var i = document.createElement("div");
|
|
11841
11841
|
i.classList.add("any-file-attachment-text");
|
|
11842
11842
|
var a = document.createElement("div");
|
|
@@ -11926,7 +11926,7 @@ var Ls = Tu, Ms = /* @__PURE__ */ function() {
|
|
|
11926
11926
|
key: "createAudioContainer",
|
|
11927
11927
|
value: function() {
|
|
11928
11928
|
var n = document.createElement("div");
|
|
11929
|
-
return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"),
|
|
11929
|
+
return n.classList.add("border-bound-attachment", "audio-attachment-icon-container"), gn.IS_SAFARI && n.classList.add("border-bound-attachment-safari"), n;
|
|
11930
11930
|
}
|
|
11931
11931
|
}, {
|
|
11932
11932
|
key: "addAudioElements",
|
|
@@ -12175,7 +12175,7 @@ var os = Ru, Hm = /* @__PURE__ */ function() {
|
|
|
12175
12175
|
}]);
|
|
12176
12176
|
}();
|
|
12177
12177
|
Ou.MODAL_CLOSE_TIMEOUT_MS = 190;
|
|
12178
|
-
var
|
|
12178
|
+
var Jn = Ou, jm = /* @__PURE__ */ function(t) {
|
|
12179
12179
|
function r(e, n, i, a, s, o) {
|
|
12180
12180
|
var l;
|
|
12181
12181
|
w(this, r);
|
|
@@ -12205,7 +12205,7 @@ var Kn = Ou, jm = /* @__PURE__ */ function(t) {
|
|
|
12205
12205
|
}, {
|
|
12206
12206
|
key: "addClickEvent",
|
|
12207
12207
|
value: function(n, i) {
|
|
12208
|
-
var a = this.triggerImportPrompt.bind(this, this._inputElement), s =
|
|
12208
|
+
var a = this.triggerImportPrompt.bind(this, this._inputElement), s = Jn.createTextModalFunc(n, i, a);
|
|
12209
12209
|
this.elementRef.onclick = this.click.bind(this, s);
|
|
12210
12210
|
}
|
|
12211
12211
|
}, {
|
|
@@ -12812,11 +12812,11 @@ var Vm = Zr, Wm = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12812
12812
|
return V(r, t), k(r, [{
|
|
12813
12813
|
key: "addButtonsAndTheirEvents",
|
|
12814
12814
|
value: function(n) {
|
|
12815
|
-
var i =
|
|
12815
|
+
var i = Jn.createSVGButton(Gm);
|
|
12816
12816
|
i.classList.add("modal-svg-camera-button"), i.children[0].classList.add("modal-svg-camera-icon");
|
|
12817
12817
|
var a = this.addCloseButton(Km, !0);
|
|
12818
12818
|
a.classList.add("modal-svg-close-button"), a.children[0].classList.add("modal-svg-close-icon");
|
|
12819
|
-
var s =
|
|
12819
|
+
var s = Jn.createSVGButton(Jm);
|
|
12820
12820
|
return s.classList.add("modal-svg-submit-button"), this.addButtons(i, s), this.addButtonEvents(i, a, s, n), {
|
|
12821
12821
|
captureButton: i,
|
|
12822
12822
|
submitButton: s
|
|
@@ -12844,7 +12844,7 @@ var Vm = Zr, Wm = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12844
12844
|
n._captureButton.replaceChildren(n._captureIcon), n._captureButton.classList.replace("modal-svg-refresh-button", "modal-svg-camera-button");
|
|
12845
12845
|
var i = n._canvas.getContext("2d");
|
|
12846
12846
|
i == null || i.clearRect(0, 0, n._canvas.width, n._canvas.height);
|
|
12847
|
-
},
|
|
12847
|
+
}, Jn.MODAL_CLOSE_TIMEOUT_MS);
|
|
12848
12848
|
}
|
|
12849
12849
|
}, {
|
|
12850
12850
|
key: "start",
|
|
@@ -12903,7 +12903,7 @@ var Vm = Zr, Wm = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12903
12903
|
return o.openCameraModal.bind(o, o);
|
|
12904
12904
|
}
|
|
12905
12905
|
}]);
|
|
12906
|
-
}(
|
|
12906
|
+
}(Jn), Ym = `<?xml version="1.0" encoding="utf-8"?>
|
|
12907
12907
|
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
12908
12908
|
<path d="M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path>
|
|
12909
12909
|
</svg>`, Xm = /* @__PURE__ */ function(t) {
|
|
@@ -13401,7 +13401,7 @@ hn.elementStyles = [], hn.shadowRootOptions = { mode: "open" }, hn[Zn("elementPr
|
|
|
13401
13401
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13402
13402
|
*/
|
|
13403
13403
|
const Yn = globalThis, pi = Yn.trustedTypes, dl = pi ? pi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Mu = "$lit$", vt = `lit$${Math.random().toFixed(9).slice(2)}$`, Pu = "?" + vt, d0 = `<${Pu}>`, jt = document, lr = () => jt.createComment(""), cr = (t) => t === null || typeof t != "object" && typeof t != "function", Fu = Array.isArray, h0 = (t) => Fu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", wa = `[
|
|
13404
|
-
\f\r]`,
|
|
13404
|
+
\f\r]`, Mn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hl = /-->/g, pl = />/g, Ft = RegExp(`>|${wa}(?:([^\\s"'>=/]+)(${wa}*=${wa}*(?:[^
|
|
13405
13405
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), fl = /'/g, ml = /"/g, $u = /^(?:script|style|textarea|title)$/i, Nu = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), be = Nu(1), st = Nu(2), St = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), gl = /* @__PURE__ */ new WeakMap(), $t = jt.createTreeWalker(jt, 129);
|
|
13406
13406
|
function Du(t, r) {
|
|
13407
13407
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -13409,13 +13409,13 @@ function Du(t, r) {
|
|
|
13409
13409
|
}
|
|
13410
13410
|
const p0 = (t, r) => {
|
|
13411
13411
|
const e = t.length - 1, n = [];
|
|
13412
|
-
let i, a = r === 2 ? "<svg>" : "", s =
|
|
13412
|
+
let i, a = r === 2 ? "<svg>" : "", s = Mn;
|
|
13413
13413
|
for (let o = 0; o < e; o++) {
|
|
13414
13414
|
const l = t[o];
|
|
13415
13415
|
let c, u, d = -1, h = 0;
|
|
13416
|
-
for (; h < l.length && (s.lastIndex = h, u = s.exec(l), u !== null); ) h = s.lastIndex, s ===
|
|
13416
|
+
for (; h < l.length && (s.lastIndex = h, u = s.exec(l), u !== null); ) h = s.lastIndex, s === Mn ? u[1] === "!--" ? s = hl : u[1] !== void 0 ? s = pl : u[2] !== void 0 ? ($u.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = Ft) : u[3] !== void 0 && (s = Ft) : s === Ft ? u[0] === ">" ? (s = i ?? Mn, d = -1) : u[1] === void 0 ? d = -2 : (d = s.lastIndex - u[2].length, c = u[1], s = u[3] === void 0 ? Ft : u[3] === '"' ? ml : fl) : s === ml || s === fl ? s = Ft : s === hl || s === pl ? s = Mn : (s = Ft, i = void 0);
|
|
13417
13417
|
const p = s === Ft && t[o + 1].startsWith("/>") ? " " : "";
|
|
13418
|
-
a += s ===
|
|
13418
|
+
a += s === Mn ? l + d0 : d >= 0 ? (n.push(c), l.slice(0, d) + Mu + l.slice(d) + vt + p) : l + vt + (d === -2 ? o : p);
|
|
13419
13419
|
}
|
|
13420
13420
|
return [Du(t, a + (t[e] || "<?>") + (r === 2 ? "</svg>" : "")), n];
|
|
13421
13421
|
};
|
|
@@ -13456,12 +13456,12 @@ class ur {
|
|
|
13456
13456
|
return n.innerHTML = r, n;
|
|
13457
13457
|
}
|
|
13458
13458
|
}
|
|
13459
|
-
function
|
|
13459
|
+
function yn(t, r, e = t, n) {
|
|
13460
13460
|
var s, o;
|
|
13461
13461
|
if (r === St) return r;
|
|
13462
13462
|
let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
|
|
13463
13463
|
const a = cr(r) ? void 0 : r._$litDirective$;
|
|
13464
|
-
return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r =
|
|
13464
|
+
return (i == null ? void 0 : i.constructor) !== a && ((o = i == null ? void 0 : i._$AO) == null || o.call(i, !1), a === void 0 ? i = void 0 : (i = new a(t), i._$AT(t, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (r = yn(t, i._$AS(t, r.values), i, n)), r;
|
|
13465
13465
|
}
|
|
13466
13466
|
class f0 {
|
|
13467
13467
|
constructor(r, e) {
|
|
@@ -13511,7 +13511,7 @@ class Cr {
|
|
|
13511
13511
|
return this._$AB;
|
|
13512
13512
|
}
|
|
13513
13513
|
_$AI(r, e = this) {
|
|
13514
|
-
r =
|
|
13514
|
+
r = yn(this, r, e), cr(r) ? r === oe || r == null || r === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : r !== this._$AH && r !== St && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : h0(r) ? this.k(r) : this._(r);
|
|
13515
13515
|
}
|
|
13516
13516
|
S(r) {
|
|
13517
13517
|
return this._$AA.parentNode.insertBefore(r, this._$AB);
|
|
@@ -13567,11 +13567,11 @@ class ji {
|
|
|
13567
13567
|
_$AI(r, e = this, n, i) {
|
|
13568
13568
|
const a = this.strings;
|
|
13569
13569
|
let s = !1;
|
|
13570
|
-
if (a === void 0) r =
|
|
13570
|
+
if (a === void 0) r = yn(this, r, e, 0), s = !cr(r) || r !== this._$AH && r !== St, s && (this._$AH = r);
|
|
13571
13571
|
else {
|
|
13572
13572
|
const o = r;
|
|
13573
13573
|
let l, c;
|
|
13574
|
-
for (r = a[0], l = 0; l < a.length - 1; l++) c =
|
|
13574
|
+
for (r = a[0], l = 0; l < a.length - 1; l++) c = yn(this, o[n + l], e, l), c === St && (c = this._$AH[l]), s || (s = !cr(c) || c !== this._$AH[l]), c === oe ? r = oe : r !== oe && (r += (c ?? "") + a[l + 1]), this._$AH[l] = c;
|
|
13575
13575
|
}
|
|
13576
13576
|
s && !i && this.j(r);
|
|
13577
13577
|
}
|
|
@@ -13600,7 +13600,7 @@ class v0 extends ji {
|
|
|
13600
13600
|
super(r, e, n, i, a), this.type = 5;
|
|
13601
13601
|
}
|
|
13602
13602
|
_$AI(r, e = this) {
|
|
13603
|
-
if ((r =
|
|
13603
|
+
if ((r = yn(this, r, e, 0) ?? oe) === St) return;
|
|
13604
13604
|
const n = this._$AH, i = r === oe && n !== oe || r.capture !== n.capture || r.once !== n.once || r.passive !== n.passive, a = r !== oe && (n === oe || i);
|
|
13605
13605
|
i && this.element.removeEventListener(this.name, this, n), a && this.element.addEventListener(this.name, this, r), this._$AH = r;
|
|
13606
13606
|
}
|
|
@@ -13617,7 +13617,7 @@ class y0 {
|
|
|
13617
13617
|
return this._$AM._$AU;
|
|
13618
13618
|
}
|
|
13619
13619
|
_$AI(r) {
|
|
13620
|
-
|
|
13620
|
+
yn(this, r);
|
|
13621
13621
|
}
|
|
13622
13622
|
}
|
|
13623
13623
|
const ka = Yn.litHtmlPolyfillSupport;
|
|
@@ -14027,23 +14027,23 @@ const Bu = zi(class extends Ns {
|
|
|
14027
14027
|
return St;
|
|
14028
14028
|
}
|
|
14029
14029
|
});
|
|
14030
|
-
var Hu = typeof global == "object" && global && global.Object === Object && global, C0 = typeof self == "object" && self && self.Object === Object && self, Ze = Hu || C0 || Function("return this")(), Ct = Ze.Symbol, ju = Object.prototype, x0 = ju.hasOwnProperty, E0 = ju.toString,
|
|
14030
|
+
var Hu = typeof global == "object" && global && global.Object === Object && global, C0 = typeof self == "object" && self && self.Object === Object && self, Ze = Hu || C0 || Function("return this")(), Ct = Ze.Symbol, ju = Object.prototype, x0 = ju.hasOwnProperty, E0 = ju.toString, Pn = Ct ? Ct.toStringTag : void 0;
|
|
14031
14031
|
function A0(t) {
|
|
14032
|
-
var r = x0.call(t,
|
|
14032
|
+
var r = x0.call(t, Pn), e = t[Pn];
|
|
14033
14033
|
try {
|
|
14034
|
-
t[
|
|
14034
|
+
t[Pn] = void 0;
|
|
14035
14035
|
var n = !0;
|
|
14036
14036
|
} catch {
|
|
14037
14037
|
}
|
|
14038
14038
|
var i = E0.call(t);
|
|
14039
|
-
return n && (r ? t[
|
|
14039
|
+
return n && (r ? t[Pn] = e : delete t[Pn]), i;
|
|
14040
14040
|
}
|
|
14041
14041
|
var T0 = Object.prototype, R0 = T0.toString;
|
|
14042
14042
|
function O0(t) {
|
|
14043
14043
|
return R0.call(t);
|
|
14044
14044
|
}
|
|
14045
14045
|
var I0 = "[object Null]", L0 = "[object Undefined]", vl = Ct ? Ct.toStringTag : void 0;
|
|
14046
|
-
function
|
|
14046
|
+
function Tn(t) {
|
|
14047
14047
|
return t == null ? t === void 0 ? L0 : I0 : vl && vl in Object(t) ? A0(t) : O0(t);
|
|
14048
14048
|
}
|
|
14049
14049
|
function Rt(t) {
|
|
@@ -14051,7 +14051,7 @@ function Rt(t) {
|
|
|
14051
14051
|
}
|
|
14052
14052
|
var M0 = "[object Symbol]";
|
|
14053
14053
|
function qi(t) {
|
|
14054
|
-
return typeof t == "symbol" || Rt(t) &&
|
|
14054
|
+
return typeof t == "symbol" || Rt(t) && Tn(t) == M0;
|
|
14055
14055
|
}
|
|
14056
14056
|
function P0(t, r) {
|
|
14057
14057
|
for (var e = -1, n = t == null ? 0 : t.length, i = Array(n); ++e < n; )
|
|
@@ -14120,7 +14120,7 @@ var G0 = "[object AsyncFunction]", K0 = "[object Function]", J0 = "[object Gener
|
|
|
14120
14120
|
function Bs(t) {
|
|
14121
14121
|
if (!We(t))
|
|
14122
14122
|
return !1;
|
|
14123
|
-
var r =
|
|
14123
|
+
var r = Tn(t);
|
|
14124
14124
|
return r == K0 || r == J0 || r == G0 || r == Z0;
|
|
14125
14125
|
}
|
|
14126
14126
|
var Sa = Ze["__core-js_shared__"], Sl = function() {
|
|
@@ -14250,11 +14250,11 @@ function fg(t, r) {
|
|
|
14250
14250
|
function js() {
|
|
14251
14251
|
}
|
|
14252
14252
|
var mg = 4294967295;
|
|
14253
|
-
function
|
|
14253
|
+
function bn(t) {
|
|
14254
14254
|
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = mg, this.__views__ = [];
|
|
14255
14255
|
}
|
|
14256
|
-
|
|
14257
|
-
|
|
14256
|
+
bn.prototype = Wi(js.prototype);
|
|
14257
|
+
bn.prototype.constructor = bn;
|
|
14258
14258
|
function gg() {
|
|
14259
14259
|
}
|
|
14260
14260
|
var Wu = fi ? function(t) {
|
|
@@ -14268,11 +14268,11 @@ function bg(t) {
|
|
|
14268
14268
|
}
|
|
14269
14269
|
return r;
|
|
14270
14270
|
}
|
|
14271
|
-
function
|
|
14271
|
+
function wn(t, r) {
|
|
14272
14272
|
this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
14273
14273
|
}
|
|
14274
|
-
|
|
14275
|
-
|
|
14274
|
+
wn.prototype = Wi(js.prototype);
|
|
14275
|
+
wn.prototype.constructor = wn;
|
|
14276
14276
|
function Us(t, r) {
|
|
14277
14277
|
var e = -1, n = t.length;
|
|
14278
14278
|
for (r || (r = Array(n)); ++e < n; )
|
|
@@ -14280,26 +14280,26 @@ function Us(t, r) {
|
|
|
14280
14280
|
return r;
|
|
14281
14281
|
}
|
|
14282
14282
|
function wg(t) {
|
|
14283
|
-
if (t instanceof
|
|
14283
|
+
if (t instanceof bn)
|
|
14284
14284
|
return t.clone();
|
|
14285
|
-
var r = new
|
|
14285
|
+
var r = new wn(t.__wrapped__, t.__chain__);
|
|
14286
14286
|
return r.__actions__ = Us(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
|
|
14287
14287
|
}
|
|
14288
14288
|
var kg = Object.prototype, _g = kg.hasOwnProperty;
|
|
14289
14289
|
function mi(t) {
|
|
14290
|
-
if (Rt(t) && !it(t) && !(t instanceof
|
|
14291
|
-
if (t instanceof
|
|
14290
|
+
if (Rt(t) && !it(t) && !(t instanceof bn)) {
|
|
14291
|
+
if (t instanceof wn)
|
|
14292
14292
|
return t;
|
|
14293
14293
|
if (_g.call(t, "__wrapped__"))
|
|
14294
14294
|
return wg(t);
|
|
14295
14295
|
}
|
|
14296
|
-
return new
|
|
14296
|
+
return new wn(t);
|
|
14297
14297
|
}
|
|
14298
14298
|
mi.prototype = js.prototype;
|
|
14299
14299
|
mi.prototype.constructor = mi;
|
|
14300
14300
|
function Sg(t) {
|
|
14301
14301
|
var r = bg(t), e = mi[r];
|
|
14302
|
-
if (typeof e != "function" || !(r in
|
|
14302
|
+
if (typeof e != "function" || !(r in bn.prototype))
|
|
14303
14303
|
return !1;
|
|
14304
14304
|
if (t === e)
|
|
14305
14305
|
return !0;
|
|
@@ -14508,9 +14508,9 @@ function pv(t, r, e, n) {
|
|
|
14508
14508
|
}
|
|
14509
14509
|
return s;
|
|
14510
14510
|
}
|
|
14511
|
-
var Ol = "__lodash_placeholder__", Ca = 1, fv = 2, mv = 4, Il = 8,
|
|
14511
|
+
var Ol = "__lodash_placeholder__", Ca = 1, fv = 2, mv = 4, Il = 8, Fn = 128, Ll = 256, gv = Math.min;
|
|
14512
14512
|
function vv(t, r) {
|
|
14513
|
-
var e = t[1], n = r[1], i = e | n, a = i < (Ca | fv |
|
|
14513
|
+
var e = t[1], n = r[1], i = e | n, a = i < (Ca | fv | Fn), s = n == Fn && e == Il || n == Fn && e == Ll && t[7].length <= r[8] || n == (Fn | Ll) && r[7].length <= r[8] && e == Il;
|
|
14514
14514
|
if (!(a || s))
|
|
14515
14515
|
return t;
|
|
14516
14516
|
n & Ca && (t[2] = r[2], i |= e & Ca ? 0 : mv);
|
|
@@ -14519,7 +14519,7 @@ function vv(t, r) {
|
|
|
14519
14519
|
var l = t[3];
|
|
14520
14520
|
t[3] = l ? qu(l, o, r[4]) : o, t[4] = l ? vi(t[3], Ol) : r[4];
|
|
14521
14521
|
}
|
|
14522
|
-
return o = r[5], o && (l = t[5], t[5] = l ? Vu(l, o, r[6]) : o, t[6] = l ? vi(t[5], Ol) : r[6]), o = r[7], o && (t[7] = o), n &
|
|
14522
|
+
return o = r[5], o && (l = t[5], t[5] = l ? Vu(l, o, r[6]) : o, t[6] = l ? vi(t[5], Ol) : r[6]), o = r[7], o && (t[7] = o), n & Fn && (t[8] = t[8] == null ? r[8] : gv(t[8], r[8])), t[9] == null && (t[9] = r[9]), t[0] = r[0], t[1] = i, t;
|
|
14523
14523
|
}
|
|
14524
14524
|
var yv = "Expected a function", Ml = 1, bv = 2, xa = 8, Ea = 16, Aa = 32, Pl = 64, Fl = Math.max;
|
|
14525
14525
|
function wv(t, r, e, n, i, a, s, o) {
|
|
@@ -14623,7 +14623,7 @@ function Rv(t, r) {
|
|
|
14623
14623
|
}
|
|
14624
14624
|
var Ov = "[object Arguments]";
|
|
14625
14625
|
function Nl(t) {
|
|
14626
|
-
return Rt(t) &&
|
|
14626
|
+
return Rt(t) && Tn(t) == Ov;
|
|
14627
14627
|
}
|
|
14628
14628
|
var td = Object.prototype, Iv = td.hasOwnProperty, Lv = td.propertyIsEnumerable, hr = Nl(/* @__PURE__ */ function() {
|
|
14629
14629
|
return arguments;
|
|
@@ -14637,7 +14637,7 @@ var nd = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
14637
14637
|
de[Yv] = de[Xv] = de[Qv] = de[e1] = de[t1] = de[n1] = de[r1] = de[i1] = de[a1] = !0;
|
|
14638
14638
|
de[$v] = de[Nv] = de[Jv] = de[Dv] = de[Zv] = de[Bv] = de[Hv] = de[jv] = de[Uv] = de[zv] = de[qv] = de[Vv] = de[Wv] = de[Gv] = de[Kv] = !1;
|
|
14639
14639
|
function s1(t) {
|
|
14640
|
-
return Rt(t) && Ws(t.length) && !!de[
|
|
14640
|
+
return Rt(t) && Ws(t.length) && !!de[Tn(t)];
|
|
14641
14641
|
}
|
|
14642
14642
|
function o1(t) {
|
|
14643
14643
|
return function(r) {
|
|
@@ -14885,7 +14885,7 @@ function t2(t) {
|
|
|
14885
14885
|
}
|
|
14886
14886
|
var ld = u1(Object.getPrototypeOf, Object), n2 = "[object Object]", r2 = Function.prototype, i2 = Object.prototype, cd = r2.toString, a2 = i2.hasOwnProperty, s2 = cd.call(Object);
|
|
14887
14887
|
function o2(t) {
|
|
14888
|
-
if (!Rt(t) ||
|
|
14888
|
+
if (!Rt(t) || Tn(t) != n2)
|
|
14889
14889
|
return !1;
|
|
14890
14890
|
var r = ld(t);
|
|
14891
14891
|
if (r === null)
|
|
@@ -14917,15 +14917,15 @@ function p2(t, r) {
|
|
|
14917
14917
|
}
|
|
14918
14918
|
return e.set(t, r), this.size = e.size, this;
|
|
14919
14919
|
}
|
|
14920
|
-
function
|
|
14920
|
+
function Rn(t) {
|
|
14921
14921
|
var r = this.__data__ = new ft(t);
|
|
14922
14922
|
this.size = r.size;
|
|
14923
14923
|
}
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14924
|
+
Rn.prototype.clear = l2;
|
|
14925
|
+
Rn.prototype.delete = c2;
|
|
14926
|
+
Rn.prototype.get = u2;
|
|
14927
|
+
Rn.prototype.has = d2;
|
|
14928
|
+
Rn.prototype.set = p2;
|
|
14929
14929
|
var ud = typeof exports == "object" && exports && !exports.nodeType && exports, zl = ud && typeof module == "object" && module && !module.nodeType && module, f2 = zl && zl.exports === ud, ql = f2 ? Ze.Buffer : void 0;
|
|
14930
14930
|
ql && ql.allocUnsafe;
|
|
14931
14931
|
function m2(t, r) {
|
|
@@ -15004,7 +15004,7 @@ function A2(t, r, e, n, i, a, s) {
|
|
|
15004
15004
|
}
|
|
15005
15005
|
function dd(t, r, e, n, i) {
|
|
15006
15006
|
t !== r && S2(r, function(a, s) {
|
|
15007
|
-
if (i || (i = new
|
|
15007
|
+
if (i || (i = new Rn()), We(a))
|
|
15008
15008
|
A2(t, r, s, e, dd, n, i);
|
|
15009
15009
|
else {
|
|
15010
15010
|
var o = n ? n(cs(t, s), a, s + "", t, r, i) : void 0;
|
|
@@ -15014,7 +15014,7 @@ function dd(t, r, e, n, i) {
|
|
|
15014
15014
|
}
|
|
15015
15015
|
var T2 = "[object String]";
|
|
15016
15016
|
function R2(t) {
|
|
15017
|
-
return typeof t == "string" || !it(t) && Rt(t) &&
|
|
15017
|
+
return typeof t == "string" || !it(t) && Rt(t) && Tn(t) == T2;
|
|
15018
15018
|
}
|
|
15019
15019
|
var O2 = Av(function(t, r, e) {
|
|
15020
15020
|
dd(t, r, e);
|
|
@@ -16987,7 +16987,7 @@ var dy = {
|
|
|
16987
16987
|
}
|
|
16988
16988
|
}]), t;
|
|
16989
16989
|
}();
|
|
16990
|
-
function
|
|
16990
|
+
function $n() {
|
|
16991
16991
|
var t, r, e = new Promise(function(n, i) {
|
|
16992
16992
|
t = n, r = i;
|
|
16993
16993
|
});
|
|
@@ -18503,7 +18503,7 @@ var ki = function(t) {
|
|
|
18503
18503
|
return (b = i.store)[v].apply(b, arguments), i;
|
|
18504
18504
|
};
|
|
18505
18505
|
});
|
|
18506
|
-
var g =
|
|
18506
|
+
var g = $n(), y = function() {
|
|
18507
18507
|
var b = function($, R) {
|
|
18508
18508
|
i.isInitialized && !i.initializedStoreOnce && i.logger.warn("init: i18next is already initialized. You should call init just once!"), i.isInitialized = !0, i.options.isClone || i.logger.log("initialized", i.options), i.emit("initialized", i.options), g.resolve(R), s($, R);
|
|
18509
18509
|
};
|
|
@@ -18545,7 +18545,7 @@ var ki = function(t) {
|
|
|
18545
18545
|
}, {
|
|
18546
18546
|
key: "reloadResources",
|
|
18547
18547
|
value: function(i, a, s) {
|
|
18548
|
-
var o =
|
|
18548
|
+
var o = $n();
|
|
18549
18549
|
return i || (i = this.languages), a || (a = this.options.ns), s || (s = Hr), this.services.backendConnector.reload(i, a, function(l) {
|
|
18550
18550
|
o.resolve(), s(l);
|
|
18551
18551
|
}), o;
|
|
@@ -18574,7 +18574,7 @@ var ki = function(t) {
|
|
|
18574
18574
|
value: function(i, a) {
|
|
18575
18575
|
var s = this;
|
|
18576
18576
|
this.isLanguageChangingTo = i;
|
|
18577
|
-
var o =
|
|
18577
|
+
var o = $n();
|
|
18578
18578
|
this.emit("languageChanging", i);
|
|
18579
18579
|
var l = function(h) {
|
|
18580
18580
|
s.language = h, s.languages = s.services.languageUtils.toResolveHierarchy(h), s.resolvedLanguage = void 0, s.setResolvedLanguage(h);
|
|
@@ -18652,7 +18652,7 @@ var ki = function(t) {
|
|
|
18652
18652
|
}, {
|
|
18653
18653
|
key: "loadNamespaces",
|
|
18654
18654
|
value: function(i, a) {
|
|
18655
|
-
var s = this, o =
|
|
18655
|
+
var s = this, o = $n();
|
|
18656
18656
|
return this.options.ns ? (typeof i == "string" && (i = [i]), i.forEach(function(l) {
|
|
18657
18657
|
s.options.ns.indexOf(l) < 0 && s.options.ns.push(l);
|
|
18658
18658
|
}), this.loadResources(function(l) {
|
|
@@ -18662,7 +18662,7 @@ var ki = function(t) {
|
|
|
18662
18662
|
}, {
|
|
18663
18663
|
key: "loadLanguages",
|
|
18664
18664
|
value: function(i, a) {
|
|
18665
|
-
var s =
|
|
18665
|
+
var s = $n();
|
|
18666
18666
|
typeof i == "string" && (i = [i]);
|
|
18667
18667
|
var o = this.options.preload || [], l = i.filter(function(c) {
|
|
18668
18668
|
return o.indexOf(c) < 0;
|
|
@@ -19086,7 +19086,7 @@ function bd(t, r) {
|
|
|
19086
19086
|
const { toString: ib } = Object.prototype, { getPrototypeOf: Qs } = Object, Qi = /* @__PURE__ */ ((t) => (r) => {
|
|
19087
19087
|
const e = ib.call(r);
|
|
19088
19088
|
return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
|
|
19089
|
-
})(/* @__PURE__ */ Object.create(null)), ct = (t) => (t = t.toLowerCase(), (r) => Qi(r) === t), ea = (t) => (r) => typeof r === t, { isArray:
|
|
19089
|
+
})(/* @__PURE__ */ Object.create(null)), ct = (t) => (t = t.toLowerCase(), (r) => Qi(r) === t), ea = (t) => (r) => typeof r === t, { isArray: On } = Array, fr = ea("undefined");
|
|
19090
19090
|
function ab(t) {
|
|
19091
19091
|
return t !== null && !fr(t) && t.constructor !== null && !fr(t.constructor) && qe(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
19092
19092
|
}
|
|
@@ -19109,7 +19109,7 @@ function Tr(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
|
19109
19109
|
if (t === null || typeof t > "u")
|
|
19110
19110
|
return;
|
|
19111
19111
|
let n, i;
|
|
19112
|
-
if (typeof t != "object" && (t = [t]),
|
|
19112
|
+
if (typeof t != "object" && (t = [t]), On(t))
|
|
19113
19113
|
for (n = 0, i = t.length; n < i; n++)
|
|
19114
19114
|
r.call(null, t[n], n, t);
|
|
19115
19115
|
else {
|
|
@@ -19132,7 +19132,7 @@ const Sd = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
19132
19132
|
function hs() {
|
|
19133
19133
|
const { caseless: t } = Cd(this) && this || {}, r = {}, e = (n, i) => {
|
|
19134
19134
|
const a = t && _d(r, i) || i;
|
|
19135
|
-
Xr(r[a]) && Xr(n) ? r[a] = hs(r[a], n) : Xr(n) ? r[a] = hs({}, n) :
|
|
19135
|
+
Xr(r[a]) && Xr(n) ? r[a] = hs(r[a], n) : Xr(n) ? r[a] = hs({}, n) : On(n) ? r[a] = n.slice() : r[a] = n;
|
|
19136
19136
|
};
|
|
19137
19137
|
for (let n = 0, i = arguments.length; n < i; n++)
|
|
19138
19138
|
arguments[n] && Tr(arguments[n], e);
|
|
@@ -19160,7 +19160,7 @@ const vb = (t, r, e, { allOwnKeys: n } = {}) => (Tr(r, (i, a) => {
|
|
|
19160
19160
|
return n !== -1 && n === e;
|
|
19161
19161
|
}, _b = (t) => {
|
|
19162
19162
|
if (!t) return null;
|
|
19163
|
-
if (
|
|
19163
|
+
if (On(t)) return t;
|
|
19164
19164
|
let r = t.length;
|
|
19165
19165
|
if (!kd(r)) return null;
|
|
19166
19166
|
const e = new Array(r);
|
|
@@ -19212,7 +19212,7 @@ const vb = (t, r, e, { allOwnKeys: n } = {}) => (Tr(r, (i, a) => {
|
|
|
19212
19212
|
e[a] = !0;
|
|
19213
19213
|
});
|
|
19214
19214
|
};
|
|
19215
|
-
return
|
|
19215
|
+
return On(t) ? n(t) : n(String(t).split(r)), e;
|
|
19216
19216
|
}, Ib = () => {
|
|
19217
19217
|
}, Lb = (t, r) => (t = +t, Number.isFinite(t) ? t : r), Pa = "abcdefghijklmnopqrstuvwxyz", bc = "0123456789", Ed = {
|
|
19218
19218
|
DIGIT: bc,
|
|
@@ -19235,7 +19235,7 @@ const Fb = (t) => {
|
|
|
19235
19235
|
return;
|
|
19236
19236
|
if (!("toJSON" in n)) {
|
|
19237
19237
|
r[i] = n;
|
|
19238
|
-
const a =
|
|
19238
|
+
const a = On(n) ? [] : {};
|
|
19239
19239
|
return Tr(n, (s, o) => {
|
|
19240
19240
|
const l = e(s, i + 1);
|
|
19241
19241
|
!fr(l) && (a[o] = l);
|
|
@@ -19246,7 +19246,7 @@ const Fb = (t) => {
|
|
|
19246
19246
|
};
|
|
19247
19247
|
return e(t, 0);
|
|
19248
19248
|
}, $b = ct("AsyncFunction"), Nb = (t) => t && (ta(t) || qe(t)) && qe(t.then) && qe(t.catch), E = {
|
|
19249
|
-
isArray:
|
|
19249
|
+
isArray: On,
|
|
19250
19250
|
isArrayBuffer: wd,
|
|
19251
19251
|
isBuffer: ab,
|
|
19252
19252
|
isFormData: fb,
|
|
@@ -19684,7 +19684,7 @@ const Qb = E.toObjectSet([
|
|
|
19684
19684
|
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] && Qb[e]) && (e === "set-cookie" ? r[e] ? r[e].push(n) : r[e] = [n] : r[e] = r[e] ? r[e] + ", " + n : n);
|
|
19685
19685
|
}), r;
|
|
19686
19686
|
}, Sc = Symbol("internals");
|
|
19687
|
-
function
|
|
19687
|
+
function Nn(t) {
|
|
19688
19688
|
return t && String(t).trim().toLowerCase();
|
|
19689
19689
|
}
|
|
19690
19690
|
function Qr(t) {
|
|
@@ -19729,7 +19729,7 @@ class Ve {
|
|
|
19729
19729
|
set(r, e, n) {
|
|
19730
19730
|
const i = this;
|
|
19731
19731
|
function a(o, l, c) {
|
|
19732
|
-
const u =
|
|
19732
|
+
const u = Nn(l);
|
|
19733
19733
|
if (!u)
|
|
19734
19734
|
throw new Error("header name must be a non-empty string");
|
|
19735
19735
|
const d = E.findKey(i, u);
|
|
@@ -19739,7 +19739,7 @@ class Ve {
|
|
|
19739
19739
|
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !n3(r) ? s(e3(r), e) : r != null && a(e, r, n), this;
|
|
19740
19740
|
}
|
|
19741
19741
|
get(r, e) {
|
|
19742
|
-
if (r =
|
|
19742
|
+
if (r = Nn(r), r) {
|
|
19743
19743
|
const n = E.findKey(this, r);
|
|
19744
19744
|
if (n) {
|
|
19745
19745
|
const i = this[n];
|
|
@@ -19756,7 +19756,7 @@ class Ve {
|
|
|
19756
19756
|
}
|
|
19757
19757
|
}
|
|
19758
19758
|
has(r, e) {
|
|
19759
|
-
if (r =
|
|
19759
|
+
if (r = Nn(r), r) {
|
|
19760
19760
|
const n = E.findKey(this, r);
|
|
19761
19761
|
return !!(n && this[n] !== void 0 && (!e || Fa(this, this[n], n, e)));
|
|
19762
19762
|
}
|
|
@@ -19766,7 +19766,7 @@ class Ve {
|
|
|
19766
19766
|
const n = this;
|
|
19767
19767
|
let i = !1;
|
|
19768
19768
|
function a(s) {
|
|
19769
|
-
if (s =
|
|
19769
|
+
if (s = Nn(s), s) {
|
|
19770
19770
|
const o = E.findKey(n, s);
|
|
19771
19771
|
o && (!e || Fa(n, n[o], o, e)) && (delete n[o], i = !0);
|
|
19772
19772
|
}
|
|
@@ -19825,7 +19825,7 @@ class Ve {
|
|
|
19825
19825
|
accessors: {}
|
|
19826
19826
|
}).accessors, i = this.prototype;
|
|
19827
19827
|
function a(s) {
|
|
19828
|
-
const o =
|
|
19828
|
+
const o = Nn(s);
|
|
19829
19829
|
n[o] || (i3(i, s), n[o] = !0);
|
|
19830
19830
|
}
|
|
19831
19831
|
return E.isArray(r) ? r.forEach(a) : a(r), this;
|
|
@@ -20115,7 +20115,7 @@ function Ec(t) {
|
|
|
20115
20115
|
});
|
|
20116
20116
|
}
|
|
20117
20117
|
const Ac = (t) => t instanceof Ve ? { ...t } : t;
|
|
20118
|
-
function
|
|
20118
|
+
function kn(t, r) {
|
|
20119
20119
|
r = r || {};
|
|
20120
20120
|
const e = {};
|
|
20121
20121
|
function n(c, u, d) {
|
|
@@ -20255,7 +20255,7 @@ class Dt {
|
|
|
20255
20255
|
}
|
|
20256
20256
|
}
|
|
20257
20257
|
_request(r, e) {
|
|
20258
|
-
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e =
|
|
20258
|
+
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = kn(this.defaults, e);
|
|
20259
20259
|
const { transitional: n, paramsSerializer: i, headers: a } = e;
|
|
20260
20260
|
n !== void 0 && ms.assertOptions(n, {
|
|
20261
20261
|
silentJSONParsing: gt.transitional(gt.boolean),
|
|
@@ -20314,14 +20314,14 @@ class Dt {
|
|
|
20314
20314
|
return u;
|
|
20315
20315
|
}
|
|
20316
20316
|
getUri(r) {
|
|
20317
|
-
r =
|
|
20317
|
+
r = kn(this.defaults, r);
|
|
20318
20318
|
const e = $d(r.baseURL, r.url);
|
|
20319
20319
|
return Id(e, r.params, r.paramsSerializer);
|
|
20320
20320
|
}
|
|
20321
20321
|
}
|
|
20322
20322
|
E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
20323
20323
|
Dt.prototype[r] = function(e, n) {
|
|
20324
|
-
return this.request(
|
|
20324
|
+
return this.request(kn(n || {}, {
|
|
20325
20325
|
method: r,
|
|
20326
20326
|
url: e,
|
|
20327
20327
|
data: (n || {}).data
|
|
@@ -20331,7 +20331,7 @@ E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
|
20331
20331
|
E.forEach(["post", "put", "patch"], function(r) {
|
|
20332
20332
|
function e(n) {
|
|
20333
20333
|
return function(a, s, o) {
|
|
20334
|
-
return this.request(
|
|
20334
|
+
return this.request(kn(o || {}, {
|
|
20335
20335
|
method: r,
|
|
20336
20336
|
headers: n ? {
|
|
20337
20337
|
"Content-Type": "multipart/form-data"
|
|
@@ -20489,7 +20489,7 @@ Object.entries(gs).forEach(([t, r]) => {
|
|
|
20489
20489
|
function Bd(t) {
|
|
20490
20490
|
const r = new Dt(t), e = bd(Dt.prototype.request, r);
|
|
20491
20491
|
return E.extend(e, Dt.prototype, r, { allOwnKeys: !0 }), E.extend(e, r, null, { allOwnKeys: !0 }), e.create = function(i) {
|
|
20492
|
-
return Bd(
|
|
20492
|
+
return Bd(kn(t, i));
|
|
20493
20493
|
}, e;
|
|
20494
20494
|
}
|
|
20495
20495
|
const H = Bd(Rr);
|
|
@@ -20506,7 +20506,7 @@ H.all = function(r) {
|
|
|
20506
20506
|
};
|
|
20507
20507
|
H.spread = g3;
|
|
20508
20508
|
H.isAxiosError = v3;
|
|
20509
|
-
H.mergeConfig =
|
|
20509
|
+
H.mergeConfig = kn;
|
|
20510
20510
|
H.AxiosHeaders = Ve;
|
|
20511
20511
|
H.formToJSON = (t) => Pd(E.isHTMLForm(t) ? new FormData(t) : t);
|
|
20512
20512
|
H.getAdapter = Nd.getAdapter;
|
|
@@ -20585,13 +20585,13 @@ const se = (t, r) => {
|
|
|
20585
20585
|
var e;
|
|
20586
20586
|
return H.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === r;
|
|
20587
20587
|
};
|
|
20588
|
-
var
|
|
20588
|
+
var zn, sn;
|
|
20589
20589
|
class vs {
|
|
20590
20590
|
}
|
|
20591
|
-
D(vs, "ContentTranslationGet", (
|
|
20592
|
-
}, D(
|
|
20591
|
+
D(vs, "ContentTranslationGet", (zn = class {
|
|
20592
|
+
}, D(zn, "isBadRequestProblemDetail", (r) => H.isAxiosError(r) && se(r, 400)), D(zn, "isUnauthorizeProblemDetail", (r) => H.isAxiosError(r) && se(r, 401)), D(zn, "isProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), zn)), D(vs, "ContentReportPost", (sn = class {
|
|
20593
20593
|
}, D(sn, "isBadRequestProblemDetail", (r) => H.isAxiosError(r) && se(r, 400)), D(sn, "isUnauthorizeProblemDetail", (r) => H.isAxiosError(r) && se(r, 401)), D(sn, "isValidationProblemDetails", (r) => H.isAxiosError(r) && se(r, 422)), D(sn, "isProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), sn));
|
|
20594
|
-
const
|
|
20594
|
+
const mn = class mn extends ro {
|
|
20595
20595
|
constructor() {
|
|
20596
20596
|
super(...arguments);
|
|
20597
20597
|
/** ContentService API methods */
|
|
@@ -20603,7 +20603,7 @@ const fn = class fn extends ro {
|
|
|
20603
20603
|
* @request GET:/api/content/translation
|
|
20604
20604
|
*/
|
|
20605
20605
|
D(this, "contentTranslationGet", (e, n = {}) => this.request({
|
|
20606
|
-
path:
|
|
20606
|
+
path: mn.Endpoints.contentTranslationGet,
|
|
20607
20607
|
method: "GET",
|
|
20608
20608
|
query: e,
|
|
20609
20609
|
...n
|
|
@@ -20616,7 +20616,7 @@ const fn = class fn extends ro {
|
|
|
20616
20616
|
* @request POST:/api/content/report
|
|
20617
20617
|
*/
|
|
20618
20618
|
D(this, "contentReportPost", (e, n = {}) => this.request({
|
|
20619
|
-
path:
|
|
20619
|
+
path: mn.Endpoints.contentReportPost,
|
|
20620
20620
|
method: "POST",
|
|
20621
20621
|
body: e,
|
|
20622
20622
|
type: "multipart/form-data",
|
|
@@ -20625,12 +20625,12 @@ const fn = class fn extends ro {
|
|
|
20625
20625
|
}
|
|
20626
20626
|
};
|
|
20627
20627
|
/** ContentService API static endpoints */
|
|
20628
|
-
D(
|
|
20628
|
+
D(mn, "Endpoints", {
|
|
20629
20629
|
contentTranslationGet: "/api/content/translation",
|
|
20630
20630
|
contentReportPost: "/api/content/report"
|
|
20631
20631
|
}), /** ContentService API static errors typeguards */
|
|
20632
|
-
D(
|
|
20633
|
-
let ys =
|
|
20632
|
+
D(mn, "Errors", vs);
|
|
20633
|
+
let ys = mn;
|
|
20634
20634
|
class y3 {
|
|
20635
20635
|
constructor(r) {
|
|
20636
20636
|
this.config = r;
|
|
@@ -21020,7 +21020,7 @@ var P3 = Object.defineProperty, F3 = Object.getOwnPropertyDescriptor, ao = (t, r
|
|
|
21020
21020
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21021
21021
|
return n && i && P3(r, e, i), i;
|
|
21022
21022
|
};
|
|
21023
|
-
let
|
|
21023
|
+
let _n = class extends me {
|
|
21024
21024
|
constructor() {
|
|
21025
21025
|
super(...arguments), this.active = !0, this.blurring = !1;
|
|
21026
21026
|
}
|
|
@@ -21032,22 +21032,22 @@ let kn = class extends me {
|
|
|
21032
21032
|
`;
|
|
21033
21033
|
}
|
|
21034
21034
|
};
|
|
21035
|
-
|
|
21035
|
+
_n.styles = [me.styles, M3];
|
|
21036
21036
|
ao([
|
|
21037
21037
|
Z({ type: Boolean, reflect: !0 })
|
|
21038
|
-
],
|
|
21038
|
+
], _n.prototype, "active", 2);
|
|
21039
21039
|
ao([
|
|
21040
21040
|
Z({ type: Boolean, reflect: !0 })
|
|
21041
|
-
],
|
|
21042
|
-
|
|
21041
|
+
], _n.prototype, "blurring", 2);
|
|
21042
|
+
_n = ao([
|
|
21043
21043
|
Be("lr-dimmer")
|
|
21044
|
-
],
|
|
21044
|
+
], _n);
|
|
21045
21045
|
var $3 = Object.defineProperty, N3 = Object.getOwnPropertyDescriptor, D3 = (t, r, e, n) => {
|
|
21046
21046
|
for (var i = n > 1 ? void 0 : n ? N3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21047
21047
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21048
21048
|
return n && i && $3(r, e, i), i;
|
|
21049
21049
|
};
|
|
21050
|
-
let Ic = class extends
|
|
21050
|
+
let Ic = class extends _n {
|
|
21051
21051
|
constructor() {
|
|
21052
21052
|
super(...arguments), this.active = !0;
|
|
21053
21053
|
}
|
|
@@ -21558,12 +21558,12 @@ const Da = /* @__PURE__ */ new WeakMap(), z3 = zi(class extends zd {
|
|
|
21558
21558
|
margin-block-start: auto !important;
|
|
21559
21559
|
}`
|
|
21560
21560
|
};
|
|
21561
|
-
var
|
|
21561
|
+
var qn, Vn, on, ln, cn, un, qa, Va;
|
|
21562
21562
|
class ht {
|
|
21563
21563
|
}
|
|
21564
|
-
D(ht, "ChatbotConversationsGet", (
|
|
21565
|
-
}, D(
|
|
21566
|
-
}, D(
|
|
21564
|
+
D(ht, "ChatbotConversationsGet", (qn = class {
|
|
21565
|
+
}, D(qn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && se(r, 404)), D(qn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), D(qn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && se(r, 503)), qn)), D(ht, "ChatbotConversationsSummaryGet", (Vn = class {
|
|
21566
|
+
}, D(Vn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && se(r, 404)), D(Vn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), D(Vn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && se(r, 503)), Vn)), D(ht, "ChatbotConversationsPost", (on = class {
|
|
21567
21567
|
}, D(on, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && se(r, 400)), D(on, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && se(r, 404)), D(on, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), D(on, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && se(r, 503)), on)), D(ht, "ChatbotConversationsRatePost", (ln = class {
|
|
21568
21568
|
}, D(ln, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && se(r, 400)), D(ln, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && se(r, 404)), D(ln, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), D(ln, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && se(r, 503)), ln)), D(ht, "ChatbotConversationsMessagesRatePost", (cn = class {
|
|
21569
21569
|
}, D(cn, "isBadRequestProblemDetails", (r) => H.isAxiosError(r) && se(r, 400)), D(cn, "isNotFoundProblemDetails", (r) => H.isAxiosError(r) && se(r, 404)), D(cn, "isInternalServerErrorProblemDetails", (r) => H.isAxiosError(r) && se(r, 500)), D(cn, "isServiceUnavailableProblemDetails", (r) => H.isAxiosError(r) && se(r, 503)), cn)), D(ht, "ChatbotConversationsInteractionsSummarizePost", (un = class {
|
|
@@ -21700,7 +21700,7 @@ D(Ue, "Endpoints", {
|
|
|
21700
21700
|
chatbotIntegrationsGet: "/api/chatbot/integrations"
|
|
21701
21701
|
}), /** ChatbotService API static errors typeguards */
|
|
21702
21702
|
D(Ue, "Errors", ht);
|
|
21703
|
-
let
|
|
21703
|
+
let Sn = Ue;
|
|
21704
21704
|
const V3 = /* @__PURE__ */ new WeakMap();
|
|
21705
21705
|
let Lc = 0;
|
|
21706
21706
|
const Ba = /* @__PURE__ */ new Map(), Mc = /* @__PURE__ */ new WeakSet(), Pc = () => new Promise((t) => requestAnimationFrame(t)), Fc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], $c = [{ opacity: 0 }], Nc = [{ opacity: 0 }, { opacity: 1 }], Dc = (t, r) => {
|
|
@@ -22238,25 +22238,25 @@ var aw = Object.defineProperty, sw = Object.getOwnPropertyDescriptor, Kd = (t, r
|
|
|
22238
22238
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22239
22239
|
return n && i && aw(r, e, i), i;
|
|
22240
22240
|
};
|
|
22241
|
-
let
|
|
22241
|
+
let Cn = class extends we {
|
|
22242
22242
|
constructor() {
|
|
22243
22243
|
super(...arguments), this.variant = "on-light";
|
|
22244
22244
|
}
|
|
22245
22245
|
};
|
|
22246
|
-
|
|
22246
|
+
Cn.styles = [we.styles, iw];
|
|
22247
22247
|
Kd([
|
|
22248
22248
|
Z({ type: String, reflect: !0 })
|
|
22249
|
-
],
|
|
22250
|
-
|
|
22249
|
+
], Cn.prototype, "variant", 2);
|
|
22250
|
+
Cn = Kd([
|
|
22251
22251
|
Be("lr-pill")
|
|
22252
|
-
],
|
|
22252
|
+
], Cn);
|
|
22253
22253
|
const ra = Symbol("lr-chatbot-message-context");
|
|
22254
22254
|
var ow = Object.defineProperty, lw = Object.getOwnPropertyDescriptor, ia = (t, r, e, n) => {
|
|
22255
22255
|
for (var i = n > 1 ? void 0 : n ? lw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22256
22256
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22257
22257
|
return n && i && ow(r, e, i), i;
|
|
22258
22258
|
};
|
|
22259
|
-
let
|
|
22259
|
+
let xn = class extends Cn {
|
|
22260
22260
|
constructor() {
|
|
22261
22261
|
super(...arguments), this.channel = "", this.shouldGetSummary = !1;
|
|
22262
22262
|
}
|
|
@@ -22285,19 +22285,19 @@ let Cn = class extends Sn {
|
|
|
22285
22285
|
r && window.open(r, "_blank");
|
|
22286
22286
|
}
|
|
22287
22287
|
};
|
|
22288
|
-
|
|
22288
|
+
xn.styles = [Cn.styles, rw];
|
|
22289
22289
|
ia([
|
|
22290
22290
|
Z({ type: String })
|
|
22291
|
-
],
|
|
22291
|
+
], xn.prototype, "channel", 2);
|
|
22292
22292
|
ia([
|
|
22293
22293
|
Z({ type: Boolean })
|
|
22294
|
-
],
|
|
22294
|
+
], xn.prototype, "shouldGetSummary", 2);
|
|
22295
22295
|
ia([
|
|
22296
22296
|
oo({ context: ra })
|
|
22297
|
-
],
|
|
22298
|
-
|
|
22297
|
+
], xn.prototype, "messageContext", 2);
|
|
22298
|
+
xn = ia([
|
|
22299
22299
|
Be("lr-chatbot-escalation-pill")
|
|
22300
|
-
],
|
|
22300
|
+
], xn);
|
|
22301
22301
|
const cw = Te`
|
|
22302
22302
|
:host {
|
|
22303
22303
|
display: flex;
|
|
@@ -22371,7 +22371,7 @@ let zt = class extends me {
|
|
|
22371
22371
|
var n, i, a;
|
|
22372
22372
|
if (!((n = this.messageContext) != null && n.apiUrl) || !((i = this.messageContext) != null && i.conversationId) || !((a = this.messageContext) != null && a.messageId))
|
|
22373
22373
|
throw Error("Missing information to call API on message rating");
|
|
22374
|
-
const r = new
|
|
22374
|
+
const r = new Sn({
|
|
22375
22375
|
baseURL: this.messageContext.apiUrl,
|
|
22376
22376
|
withCredentials: !0,
|
|
22377
22377
|
method: "POST"
|
|
@@ -22554,7 +22554,7 @@ var _w = Object.defineProperty, Sw = Object.getOwnPropertyDescriptor, Mr = (t, r
|
|
|
22554
22554
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22555
22555
|
return n && i && _w(r, e, i), i;
|
|
22556
22556
|
};
|
|
22557
|
-
let
|
|
22557
|
+
let En = class extends me {
|
|
22558
22558
|
constructor() {
|
|
22559
22559
|
super(...arguments), this.score = null, this.label = "", this._broadcastController = new Wd(
|
|
22560
22560
|
this,
|
|
@@ -22562,7 +22562,7 @@ let xn = class extends me {
|
|
|
22562
22562
|
), this.rating = 0;
|
|
22563
22563
|
}
|
|
22564
22564
|
getConversationId() {
|
|
22565
|
-
return localStorage.getItem(
|
|
22565
|
+
return localStorage.getItem(fn);
|
|
22566
22566
|
}
|
|
22567
22567
|
async handleSubmit(t) {
|
|
22568
22568
|
var r, e;
|
|
@@ -22572,7 +22572,7 @@ let xn = class extends me {
|
|
|
22572
22572
|
try {
|
|
22573
22573
|
const n = t.target;
|
|
22574
22574
|
if (n) {
|
|
22575
|
-
const i = new FormData(n), a = new
|
|
22575
|
+
const i = new FormData(n), a = new Sn({
|
|
22576
22576
|
baseURL: this.messageContext.apiUrl,
|
|
22577
22577
|
withCredentials: !0,
|
|
22578
22578
|
method: "POST"
|
|
@@ -22580,7 +22580,7 @@ let xn = class extends me {
|
|
|
22580
22580
|
this.rating = s;
|
|
22581
22581
|
const o = {
|
|
22582
22582
|
score: s,
|
|
22583
|
-
feedback:
|
|
22583
|
+
feedback: null
|
|
22584
22584
|
};
|
|
22585
22585
|
await a.chatbotConversationsRatePost(this.messageContext.conversationId, o), this.getConversationId() || this._broadcastController.send({
|
|
22586
22586
|
action: "addMessage",
|
|
@@ -22606,19 +22606,19 @@ let xn = class extends me {
|
|
|
22606
22606
|
};
|
|
22607
22607
|
Mr([
|
|
22608
22608
|
oo({ context: ra })
|
|
22609
|
-
],
|
|
22609
|
+
], En.prototype, "messageContext", 2);
|
|
22610
22610
|
Mr([
|
|
22611
22611
|
Yt()
|
|
22612
|
-
],
|
|
22612
|
+
], En.prototype, "score", 2);
|
|
22613
22613
|
Mr([
|
|
22614
22614
|
Z({ type: String })
|
|
22615
|
-
],
|
|
22615
|
+
], En.prototype, "label", 2);
|
|
22616
22616
|
Mr([
|
|
22617
22617
|
Yt()
|
|
22618
|
-
],
|
|
22619
|
-
|
|
22618
|
+
], En.prototype, "rating", 2);
|
|
22619
|
+
En = Mr([
|
|
22620
22620
|
Be("lr-chatbot-conversation-rating")
|
|
22621
|
-
],
|
|
22621
|
+
], En);
|
|
22622
22622
|
function Cw(t) {
|
|
22623
22623
|
const r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/g;
|
|
22624
22624
|
return t.replace(r, (n) => `<a href="${n}" style="color: inherit" target="_blank">${n}</a>`);
|
|
@@ -22682,7 +22682,7 @@ mt([
|
|
|
22682
22682
|
Je = mt([
|
|
22683
22683
|
Be("lr-chatbot-message")
|
|
22684
22684
|
], Je);
|
|
22685
|
-
const
|
|
22685
|
+
const Dn = (t) => {
|
|
22686
22686
|
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e = Cw(r);
|
|
22687
22687
|
return `<lr-chatbot-message
|
|
22688
22688
|
${t.apiUrl ? `apiUrl="${t.apiUrl}"` : ""}
|
|
@@ -22698,58 +22698,58 @@ const Nn = (t) => {
|
|
|
22698
22698
|
};
|
|
22699
22699
|
var Aw = Object.defineProperty, Tw = Object.getOwnPropertyDescriptor, Jd = (t) => {
|
|
22700
22700
|
throw TypeError(t);
|
|
22701
|
-
},
|
|
22701
|
+
}, In = (t, r, e, n) => {
|
|
22702
22702
|
for (var i = n > 1 ? void 0 : n ? Tw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22703
22703
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22704
22704
|
return n && i && Aw(r, e, i), i;
|
|
22705
|
-
}, Zd = (t, r, e) => r.has(t) || Jd("Cannot " + e),
|
|
22706
|
-
const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname,
|
|
22705
|
+
}, Zd = (t, r, e) => r.has(t) || Jd("Cannot " + e), Bn = (t, r, e) => (Zd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Hn = (t, r, e) => r.has(t) ? Jd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), jn = (t, r, e, n) => (Zd(t, r, "write to private field"), r.set(t, e), e), ri, ii, ai, si, oi;
|
|
22706
|
+
const Yd = "lr.chatbot.broadcast_channel." + document.location.hostname, fn = "lr.chatbot.conversation_id", Un = "lr.chatbot.conversation_state";
|
|
22707
22707
|
let Tt = class extends me {
|
|
22708
22708
|
constructor() {
|
|
22709
22709
|
super({
|
|
22710
22710
|
translationsLoaderGetter: () => new J3(this.apiUrl, this.country, this.language),
|
|
22711
22711
|
fetchAsyncServerTranslations: !0
|
|
22712
|
-
}),
|
|
22712
|
+
}), Hn(this, ri, "/bff"), Hn(this, ii, !1), Hn(this, ai, !1), Hn(this, si, !1), Hn(this, oi, !1), this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new Wd(
|
|
22713
22713
|
this,
|
|
22714
22714
|
Yd
|
|
22715
22715
|
), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
22716
22716
|
}
|
|
22717
22717
|
get apiUrl() {
|
|
22718
|
-
return
|
|
22718
|
+
return Bn(this, ri);
|
|
22719
22719
|
}
|
|
22720
22720
|
set apiUrl(t) {
|
|
22721
|
-
|
|
22721
|
+
jn(this, ri, t);
|
|
22722
22722
|
}
|
|
22723
22723
|
get opened() {
|
|
22724
|
-
return
|
|
22724
|
+
return Bn(this, ii);
|
|
22725
22725
|
}
|
|
22726
22726
|
set opened(t) {
|
|
22727
|
-
|
|
22727
|
+
jn(this, ii, t);
|
|
22728
22728
|
}
|
|
22729
22729
|
get minimized() {
|
|
22730
|
-
return
|
|
22730
|
+
return Bn(this, ai);
|
|
22731
22731
|
}
|
|
22732
22732
|
set minimized(t) {
|
|
22733
|
-
|
|
22733
|
+
jn(this, ai, t);
|
|
22734
22734
|
}
|
|
22735
22735
|
get sticky() {
|
|
22736
|
-
return
|
|
22736
|
+
return Bn(this, si);
|
|
22737
22737
|
}
|
|
22738
22738
|
set sticky(t) {
|
|
22739
|
-
|
|
22739
|
+
jn(this, si, t);
|
|
22740
22740
|
}
|
|
22741
22741
|
get exitOverlay() {
|
|
22742
|
-
return
|
|
22742
|
+
return Bn(this, oi);
|
|
22743
22743
|
}
|
|
22744
22744
|
set exitOverlay(t) {
|
|
22745
|
-
|
|
22745
|
+
jn(this, oi, t);
|
|
22746
22746
|
}
|
|
22747
22747
|
getVersion() {
|
|
22748
|
-
return "LR Chatbot - 0.24.
|
|
22748
|
+
return "LR Chatbot - 0.24.2";
|
|
22749
22749
|
}
|
|
22750
22750
|
async connectedCallback() {
|
|
22751
22751
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
22752
|
-
const t = localStorage.getItem(
|
|
22752
|
+
const t = localStorage.getItem(Un);
|
|
22753
22753
|
t && (t === "minimized" || t === "opened" && (() => {
|
|
22754
22754
|
const e = `(max-width: ${C.devices.mobile.max}px)`;
|
|
22755
22755
|
return window.matchMedia(e).matches;
|
|
@@ -22788,7 +22788,7 @@ let Tt = class extends me {
|
|
|
22788
22788
|
this.deepChat = t, this.deepChat && (this.setDeepChatStyle(), this.setDeepChatTranslations(), this.setChatConnection(), await this.setDeepChatHistory());
|
|
22789
22789
|
}
|
|
22790
22790
|
getCurrentConversationId() {
|
|
22791
|
-
return localStorage.getItem(
|
|
22791
|
+
return localStorage.getItem(fn);
|
|
22792
22792
|
}
|
|
22793
22793
|
createConversationHistoryTask() {
|
|
22794
22794
|
return new vd(this, {
|
|
@@ -22803,13 +22803,13 @@ let Tt = class extends me {
|
|
|
22803
22803
|
const t = this.getCurrentConversationId();
|
|
22804
22804
|
if (t)
|
|
22805
22805
|
try {
|
|
22806
|
-
return await new
|
|
22806
|
+
return await new Sn({
|
|
22807
22807
|
baseURL: this.apiUrl,
|
|
22808
22808
|
withCredentials: !0,
|
|
22809
22809
|
method: "GET"
|
|
22810
22810
|
}).chatbotConversationsGet(t);
|
|
22811
22811
|
} catch {
|
|
22812
|
-
console.error("Error while fetching chatbot conversation history");
|
|
22812
|
+
console.error("Error while fetching chatbot conversation history"), localStorage.removeItem(fn);
|
|
22813
22813
|
}
|
|
22814
22814
|
}
|
|
22815
22815
|
setInitialMessages() {
|
|
@@ -22822,7 +22822,7 @@ let Tt = class extends me {
|
|
|
22822
22822
|
},
|
|
22823
22823
|
{
|
|
22824
22824
|
role: "ai",
|
|
22825
|
-
html:
|
|
22825
|
+
html: Dn({ slot: Re("chatbot:introMessage") })
|
|
22826
22826
|
}
|
|
22827
22827
|
];
|
|
22828
22828
|
}
|
|
@@ -22835,7 +22835,7 @@ let Tt = class extends me {
|
|
|
22835
22835
|
...this.deepChat.history ?? [],
|
|
22836
22836
|
...t.messages.map((r) => ({
|
|
22837
22837
|
role: r.sender === "system" ? "ai" : "user",
|
|
22838
|
-
html:
|
|
22838
|
+
html: Dn({
|
|
22839
22839
|
apiUrl: this.apiUrl,
|
|
22840
22840
|
conversationId: this.getCurrentConversationId() ?? void 0,
|
|
22841
22841
|
messageId: r.messageId ?? "",
|
|
@@ -22884,7 +22884,7 @@ let Tt = class extends me {
|
|
|
22884
22884
|
this.deepChat.connect = {
|
|
22885
22885
|
handler: async (t, r) => {
|
|
22886
22886
|
try {
|
|
22887
|
-
const e = t.messages[0].text, n = new
|
|
22887
|
+
const e = t.messages[0].text, n = new Sn({
|
|
22888
22888
|
baseURL: this.apiUrl,
|
|
22889
22889
|
withCredentials: !0,
|
|
22890
22890
|
method: "POST"
|
|
@@ -22903,8 +22903,8 @@ let Tt = class extends me {
|
|
|
22903
22903
|
const s = await n.chatbotConversationsPost(i);
|
|
22904
22904
|
if (!s.message)
|
|
22905
22905
|
throw Error();
|
|
22906
|
-
s.conversation_id && a === null && localStorage.setItem(
|
|
22907
|
-
const o =
|
|
22906
|
+
s.conversation_id && a === null && localStorage.setItem(fn, s.conversation_id);
|
|
22907
|
+
const o = Dn({
|
|
22908
22908
|
apiUrl: this.apiUrl,
|
|
22909
22909
|
conversationId: s.conversation_id ?? void 0,
|
|
22910
22910
|
messageId: s.message_id ?? void 0,
|
|
@@ -22914,7 +22914,7 @@ let Tt = class extends me {
|
|
|
22914
22914
|
});
|
|
22915
22915
|
this._shouldEndConversation = s.message_status === "end_conversation", this.setConversationTimeout(), this.observeInputChanges(), r.onResponse({ html: o, role: "ai" });
|
|
22916
22916
|
} catch {
|
|
22917
|
-
const n =
|
|
22917
|
+
const n = Dn({
|
|
22918
22918
|
slot: Re("chatbot:errorMessage")
|
|
22919
22919
|
});
|
|
22920
22920
|
r.onResponse({
|
|
@@ -22940,7 +22940,7 @@ let Tt = class extends me {
|
|
|
22940
22940
|
if (!this._isConversationDone) {
|
|
22941
22941
|
this._isConversationDone = !0, (r = this.deepChat) == null || r.addMessage({
|
|
22942
22942
|
role: "ai",
|
|
22943
|
-
html:
|
|
22943
|
+
html: Dn({
|
|
22944
22944
|
conversationId: t ?? void 0,
|
|
22945
22945
|
apiUrl: this.apiUrl,
|
|
22946
22946
|
showConversationRating: !0,
|
|
@@ -22948,7 +22948,7 @@ let Tt = class extends me {
|
|
|
22948
22948
|
})
|
|
22949
22949
|
}), this.conversationTimeout && (clearTimeout(this.conversationTimeout), this.conversationTimeout = void 0);
|
|
22950
22950
|
const e = this.getCurrentConversationId();
|
|
22951
|
-
e && (localStorage.removeItem(
|
|
22951
|
+
e && (localStorage.removeItem(fn), localStorage.removeItem(Un), this._broadcastController.send({
|
|
22952
22952
|
action: "end-conversation",
|
|
22953
22953
|
payload: { conversationId: e }
|
|
22954
22954
|
}));
|
|
@@ -22977,17 +22977,17 @@ let Tt = class extends me {
|
|
|
22977
22977
|
this._isConversationDone = !1, this._shouldEndConversation = !1, this.deepChat && ((t = this.deepChat) == null || t.clearMessages(), this.setInitialMessages(), this.enableDeepChatTextInput());
|
|
22978
22978
|
}
|
|
22979
22979
|
minimize() {
|
|
22980
|
-
this.minimized || (this.minimized = !0, this.opened = !1, localStorage.setItem(
|
|
22980
|
+
this.minimized || (this.minimized = !0, this.opened = !1, localStorage.setItem(Un, "minimized"));
|
|
22981
22981
|
}
|
|
22982
22982
|
open() {
|
|
22983
22983
|
if (!this.opened) {
|
|
22984
|
-
this.opened = !0, this.minimized = !1, localStorage.setItem(
|
|
22984
|
+
this.opened = !0, this.minimized = !1, localStorage.setItem(Un, "opened"), this._broadcastController.send({ action: "open" });
|
|
22985
22985
|
const t = new CustomEvent("chatBotWindowOpen", { detail: "true" });
|
|
22986
22986
|
window.dispatchEvent(t);
|
|
22987
22987
|
}
|
|
22988
22988
|
}
|
|
22989
22989
|
close() {
|
|
22990
|
-
(this.opened || this.minimized) && (localStorage.removeItem(
|
|
22990
|
+
(this.opened || this.minimized) && (localStorage.removeItem(fn), localStorage.removeItem(Un), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
|
|
22991
22991
|
}
|
|
22992
22992
|
renderExitOverlay() {
|
|
22993
22993
|
return be`
|
|
@@ -23089,27 +23089,27 @@ ai = /* @__PURE__ */ new WeakMap();
|
|
|
23089
23089
|
si = /* @__PURE__ */ new WeakMap();
|
|
23090
23090
|
oi = /* @__PURE__ */ new WeakMap();
|
|
23091
23091
|
Tt.styles = [me.styles, q3];
|
|
23092
|
-
|
|
23092
|
+
In([
|
|
23093
23093
|
Z({ type: String })
|
|
23094
23094
|
], Tt.prototype, "apiUrl", 1);
|
|
23095
|
-
|
|
23095
|
+
In([
|
|
23096
23096
|
Z({ type: Boolean, reflect: !0 })
|
|
23097
23097
|
], Tt.prototype, "opened", 1);
|
|
23098
|
-
|
|
23098
|
+
In([
|
|
23099
23099
|
Z({ type: Boolean, reflect: !0 })
|
|
23100
23100
|
], Tt.prototype, "minimized", 1);
|
|
23101
|
-
|
|
23101
|
+
In([
|
|
23102
23102
|
Z({ type: Boolean })
|
|
23103
23103
|
], Tt.prototype, "sticky", 1);
|
|
23104
|
-
|
|
23104
|
+
In([
|
|
23105
23105
|
Z({ type: Boolean })
|
|
23106
23106
|
], Tt.prototype, "exitOverlay", 1);
|
|
23107
|
-
Tt =
|
|
23107
|
+
Tt = In([
|
|
23108
23108
|
Be("lr-chatbot")
|
|
23109
23109
|
], Tt);
|
|
23110
23110
|
export {
|
|
23111
23111
|
Tt as Chatbot,
|
|
23112
23112
|
Yd as LR_CHATBOT_BROADCAST_CHANNEL_ID,
|
|
23113
|
-
|
|
23113
|
+
fn as LR_CHATBOT_LOCALSTORAGE_CONVERSATION_ID
|
|
23114
23114
|
};
|
|
23115
23115
|
//# sourceMappingURL=index.js.map
|