lr-chatbot 0.31.7 → 0.31.8
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 +329 -327
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -608,9 +608,9 @@ tu.DEFAULT_COMPONENT_STYLE = {
|
|
|
608
608
|
};
|
|
609
609
|
var da = tu, 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 || {}),
|
|
611
|
+
}(ke || {}), Fr, bn = (Fr = /* @__PURE__ */ S(function t() {
|
|
612
612
|
_(this, t);
|
|
613
|
-
}),
|
|
613
|
+
}), Fr.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Fr.IS_CHROMIUM = window.chrome, Fr), nu = /* @__PURE__ */ function() {
|
|
614
614
|
function t() {
|
|
615
615
|
_(this, t);
|
|
616
616
|
}
|
|
@@ -882,7 +882,7 @@ var De = iu, au = /* @__PURE__ */ function() {
|
|
|
882
882
|
}]);
|
|
883
883
|
}();
|
|
884
884
|
au.LOAD_VOICES_MS = 200;
|
|
885
|
-
var
|
|
885
|
+
var qr = au, Be = /* @__PURE__ */ function() {
|
|
886
886
|
function t() {
|
|
887
887
|
_(this, t);
|
|
888
888
|
}
|
|
@@ -1048,7 +1048,7 @@ var Eo = su, ou = /* @__PURE__ */ function() {
|
|
|
1048
1048
|
}]);
|
|
1049
1049
|
}();
|
|
1050
1050
|
ou.NAME_CLASS = "name";
|
|
1051
|
-
var Ao = ou,
|
|
1051
|
+
var Ao = ou, Vr = /* @__PURE__ */ function() {
|
|
1052
1052
|
function t() {
|
|
1053
1053
|
_(this, t);
|
|
1054
1054
|
}
|
|
@@ -1139,8 +1139,8 @@ var Ao = ou, qr = /* @__PURE__ */ function() {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
}]);
|
|
1141
1141
|
}();
|
|
1142
|
-
|
|
1143
|
-
var Z =
|
|
1142
|
+
Vr.AI_ROLE = "ai", Vr.USER_ROLE = "user", Vr.EMPTY_MESSAGE_CLASS = "empty-message";
|
|
1143
|
+
var Z = Vr, lu = /* @__PURE__ */ function() {
|
|
1144
1144
|
function t() {
|
|
1145
1145
|
_(this, t);
|
|
1146
1146
|
}
|
|
@@ -1190,7 +1190,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
}, To = Object.keys(Qa),
|
|
1193
|
+
}, To = Object.keys(Qa), ci = /* @__PURE__ */ function() {
|
|
1194
1194
|
function t() {
|
|
1195
1195
|
_(this, t);
|
|
1196
1196
|
}
|
|
@@ -1279,7 +1279,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1279
1279
|
key: "applyClassUtilitiesToElement",
|
|
1280
1280
|
value: function(e, n) {
|
|
1281
1281
|
var i = n.events, a = n.styles;
|
|
1282
|
-
i && t.applyEventsToElement(e, i), a && !
|
|
1282
|
+
i && t.applyEventsToElement(e, i), a && !ci.doesElementContainDeepChatClass(e) && t.applyStylesToElement(e, a);
|
|
1283
1283
|
}
|
|
1284
1284
|
}, {
|
|
1285
1285
|
key: "applyCustomClassUtilities",
|
|
@@ -1294,7 +1294,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1294
1294
|
}, {
|
|
1295
1295
|
key: "apply",
|
|
1296
1296
|
value: function(e, n) {
|
|
1297
|
-
|
|
1297
|
+
ci.applyDeepChatUtilities(e, e.htmlClassUtilities, n), t.applyCustomClassUtilities(e.htmlClassUtilities, n);
|
|
1298
1298
|
}
|
|
1299
1299
|
}, {
|
|
1300
1300
|
key: "traverseNodes",
|
|
@@ -1347,9 +1347,9 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1347
1347
|
return Z.fillEmptyMessageElement(u.bubbleElement, n), kn.apply(e, u.outerContainer), Be.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
|
+
}(), Nr;
|
|
1351
1351
|
function cu(t) {
|
|
1352
|
-
return
|
|
1352
|
+
return Nr = Nr || document.createElement("textarea"), Nr.innerHTML = "&" + t + ";", Nr.value;
|
|
1353
1353
|
}
|
|
1354
1354
|
var Th = Object.prototype.hasOwnProperty;
|
|
1355
1355
|
function Rh(t, r) {
|
|
@@ -2338,7 +2338,7 @@ function pp(t, r, e, n) {
|
|
|
2338
2338
|
level: --t.level
|
|
2339
2339
|
}), p[1] = f[1] = l, t.line = l, !0;
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function Dr(t, r) {
|
|
2342
2342
|
var e, n, i = t.bMarks[r] + t.tShift[r], a = t.eMarks[r];
|
|
2343
2343
|
return i >= a || (n = t.src.charCodeAt(i++), n !== 126 && n !== 58) || (e = t.skipSpaces(i), i === e) || e >= a ? -1 : e;
|
|
2344
2344
|
}
|
|
@@ -2348,8 +2348,8 @@ function fp(t, r) {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
function mp(t, r, e, n) {
|
|
2350
2350
|
var i, a, s, o, l, c, u, d, h, p, f, g, y, v;
|
|
2351
|
-
if (n) return t.ddIndent < 0 ? !1 :
|
|
2352
|
-
if (u = r + 1, t.isEmpty(u) && ++u > e || t.tShift[u] < t.blkIndent || (i =
|
|
2351
|
+
if (n) return t.ddIndent < 0 ? !1 : Dr(t, r) >= 0;
|
|
2352
|
+
if (u = r + 1, t.isEmpty(u) && ++u > e || t.tShift[u] < t.blkIndent || (i = Dr(t, u), i < 0) || t.level >= t.options.maxNesting) return !1;
|
|
2353
2353
|
c = t.tokens.length, t.tokens.push({
|
|
2354
2354
|
type: "dl_open",
|
|
2355
2355
|
lines: l = [r, 0],
|
|
@@ -2378,10 +2378,10 @@ function mp(t, r, e, n) {
|
|
|
2378
2378
|
type: "dd_close",
|
|
2379
2379
|
level: --t.level
|
|
2380
2380
|
}), o[1] = u = t.line, u >= e || t.tShift[u] < t.blkIndent) break e;
|
|
2381
|
-
if (i =
|
|
2381
|
+
if (i = Dr(t, u), i < 0) break;
|
|
2382
2382
|
a = u;
|
|
2383
2383
|
}
|
|
2384
|
-
if (u >= e || (s = u, t.isEmpty(s)) || t.tShift[s] < t.blkIndent || (a = s + 1, a >= e) || (t.isEmpty(a) && a++, a >= e) || t.tShift[a] < t.blkIndent || (i =
|
|
2384
|
+
if (u >= e || (s = u, t.isEmpty(s)) || t.tShift[s] < t.blkIndent || (a = s + 1, a >= e) || (t.isEmpty(a) && a++, a >= e) || t.tShift[a] < t.blkIndent || (i = Dr(t, a), i < 0)) break;
|
|
2385
2385
|
}
|
|
2386
2386
|
return t.tokens.push({
|
|
2387
2387
|
type: "dl_close",
|
|
@@ -2416,11 +2416,11 @@ function gp(t, r) {
|
|
|
2416
2416
|
level: t.level
|
|
2417
2417
|
})), !0;
|
|
2418
2418
|
}
|
|
2419
|
-
var
|
|
2419
|
+
var Br = [["code", ep], ["fences", tp, ["paragraph", "blockquote", "list"]], ["blockquote", np, ["paragraph", "blockquote", "list"]], ["hr", rp, ["paragraph", "blockquote", "list"]], ["list", ap, ["paragraph", "blockquote"]], ["footnote", sp, ["paragraph"]], ["heading", op, ["paragraph", "blockquote"]], ["lheading", lp], ["htmlblock", hp, ["paragraph", "blockquote"]], ["table", pp, ["paragraph"]], ["deflist", mp, ["paragraph"]], ["paragraph", gp]];
|
|
2420
2420
|
function Rs() {
|
|
2421
2421
|
this.ruler = new He();
|
|
2422
|
-
for (var t = 0; t <
|
|
2423
|
-
alt: (
|
|
2422
|
+
for (var t = 0; t < Br.length; t++) this.ruler.push(Br[t][0], Br[t][1], {
|
|
2423
|
+
alt: (Br[t][2] || []).slice()
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
2426
|
Rs.prototype.tokenize = function(t, r, e) {
|
|
@@ -2768,12 +2768,12 @@ function Bp(t, r) {
|
|
|
2768
2768
|
level: t.level
|
|
2769
2769
|
})), t.pos += i[0].length, !0) : !1) : !1));
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function xi(t, r) {
|
|
2772
2772
|
return t = t.source, r = r || "", function e(n, i) {
|
|
2773
2773
|
return n ? (i = i.source || i, t = t.replace(n, i), e) : new RegExp(t, r);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
|
-
var jp = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, Hp = /[^"'=<>`\x00-\x20]+/, Up = /'[^']*'/, zp = /"[^"]*"/, qp =
|
|
2776
|
+
var jp = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, Hp = /[^"'=<>`\x00-\x20]+/, Up = /'[^']*'/, zp = /"[^"]*"/, qp = xi(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", Hp)("single_quoted", Up)("double_quoted", zp)(), Vp = xi(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", jp)("attr_value", qp)(), Wp = xi(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", Vp)(), Gp = /<\/[A-Za-z][A-Za-z0-9]*\s*>/, Kp = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/, Jp = /<[?].*?[?]>/, Zp = /<![A-Z]+\s+[^>]*>/, Yp = /<!\[CDATA\[[\s\S]*?\]\]>/, Xp = xi(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", Wp)("close_tag", Gp)("comment", Kp)("processing", Jp)("declaration", Zp)("cdata", Yp)();
|
|
2777
2777
|
function Qp(t) {
|
|
2778
2778
|
var r = t | 32;
|
|
2779
2779
|
return r >= 97 && r <= 122;
|
|
@@ -2801,12 +2801,12 @@ function rf(t, r) {
|
|
|
2801
2801
|
return r || (t.pending += "&"), t.pos++, !0;
|
|
2802
2802
|
}
|
|
2803
2803
|
var ma = [["text", kp], ["newline", _p], ["escape", Sp], ["backticks", Cp], ["del", xp], ["ins", Ep], ["mark", Ap], ["emphasis", Tp], ["sub", Op], ["sup", Lp], ["links", Mp], ["footnote_inline", Pp], ["footnote_ref", $p], ["autolink", Bp], ["htmltag", ef], ["entity", rf]];
|
|
2804
|
-
function
|
|
2804
|
+
function Ei() {
|
|
2805
2805
|
this.ruler = new He();
|
|
2806
2806
|
for (var t = 0; t < ma.length; t++) this.ruler.push(ma[t][0], ma[t][1]);
|
|
2807
2807
|
this.validateLink = af;
|
|
2808
2808
|
}
|
|
2809
|
-
|
|
2809
|
+
Ei.prototype.skipToken = function(t) {
|
|
2810
2810
|
var r = this.ruler.getRules(""), e = r.length, n = t.pos, i, a;
|
|
2811
2811
|
if ((a = t.cacheGet(n)) > 0) {
|
|
2812
2812
|
t.pos = a;
|
|
@@ -2818,7 +2818,7 @@ xi.prototype.skipToken = function(t) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
t.pos++, t.cacheSet(n, t.pos);
|
|
2820
2820
|
};
|
|
2821
|
-
|
|
2821
|
+
Ei.prototype.tokenize = function(t) {
|
|
2822
2822
|
for (var r = this.ruler.getRules(""), e = r.length, n = t.posMax, i, a; t.pos < n; ) {
|
|
2823
2823
|
for (a = 0; a < e && (i = r[a](t, !1), !i); a++) ;
|
|
2824
2824
|
if (i) {
|
|
@@ -2829,7 +2829,7 @@ xi.prototype.tokenize = function(t) {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
t.pending && t.pushPending();
|
|
2831
2831
|
};
|
|
2832
|
-
|
|
2832
|
+
Ei.prototype.parse = function(t, r, e, n) {
|
|
2833
2833
|
var i = new Yt(t, this, r, e, n);
|
|
2834
2834
|
this.tokenize(i);
|
|
2835
2835
|
};
|
|
@@ -2957,7 +2957,7 @@ function mt(t, r) {
|
|
|
2957
2957
|
import Remarkable from 'remarkable';
|
|
2958
2958
|
import linkify from 'remarkable/linkify';
|
|
2959
2959
|
new Remarkable().use(linkify)
|
|
2960
|
-
`), this.inline = new
|
|
2960
|
+
`), this.inline = new Ei(), this.block = new Rs(), this.core = new gu(), this.renderer = new Ts(), this.ruler = new He(), this.options = {}, this.configure(cf[t]), this.set(r || {});
|
|
2961
2961
|
}
|
|
2962
2962
|
mt.prototype.set = function(t) {
|
|
2963
2963
|
uu(this.options, t);
|
|
@@ -3125,7 +3125,7 @@ var rs = /* @__PURE__ */ function() {
|
|
|
3125
3125
|
}]);
|
|
3126
3126
|
}();
|
|
3127
3127
|
bu.DEFAULT_FILE_NAME = "file";
|
|
3128
|
-
var Pe = bu,
|
|
3128
|
+
var Pe = bu, ui = /* @__PURE__ */ function() {
|
|
3129
3129
|
function t() {
|
|
3130
3130
|
_(this, t);
|
|
3131
3131
|
}
|
|
@@ -3164,7 +3164,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3164
3164
|
}));
|
|
3165
3165
|
}
|
|
3166
3166
|
}]);
|
|
3167
|
-
}(),
|
|
3167
|
+
}(), Wr = /* @__PURE__ */ function() {
|
|
3168
3168
|
function t() {
|
|
3169
3169
|
_(this, t);
|
|
3170
3170
|
}
|
|
@@ -3214,7 +3214,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), wu = /* @__PURE__ */ function() {
|
|
3215
3215
|
function t(r) {
|
|
3216
3216
|
var e = this;
|
|
3217
|
-
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = rs.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage =
|
|
3217
|
+
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = rs.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = ui.onMessage.bind(this, r), r.htmlClassUtilities && (this.htmlClassUtilities = r.htmlClassUtilities), setTimeout(function() {
|
|
3218
3218
|
e.submitUserMessage = r.submitUserMessage;
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3294,7 +3294,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3294
3294
|
}, {
|
|
3295
3295
|
key: "applyCustomStyles",
|
|
3296
3296
|
value: function(e, n, i, a) {
|
|
3297
|
-
e && this.messageStyles &&
|
|
3297
|
+
e && this.messageStyles && Wr.applyCustomStyles(this.messageStyles, e, n, i, a);
|
|
3298
3298
|
}
|
|
3299
3299
|
}, {
|
|
3300
3300
|
key: "removeLastMessage",
|
|
@@ -3336,7 +3336,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3336
3336
|
}, {
|
|
3337
3337
|
key: "isTemporaryElement",
|
|
3338
3338
|
value: function(e) {
|
|
3339
|
-
return (e == null ? void 0 : e.bubbleElement.classList.contains("loading-message-text")) ||
|
|
3339
|
+
return (e == null ? void 0 : e.bubbleElement.classList.contains("loading-message-text")) || ci.isElementTemporary(e);
|
|
3340
3340
|
}
|
|
3341
3341
|
}, {
|
|
3342
3342
|
key: "createBaseElements",
|
|
@@ -3412,7 +3412,7 @@ var Pe = bu, 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(me.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 &&
|
|
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 && qr.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 && kn.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(wu.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
}, {
|
|
@@ -4673,7 +4673,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4673
4673
|
t.processImagesConfig(n, a, e.images, i == null ? void 0 : i.images), t.processCamera(n, a, e.camera, e.images), t.processGifConfig(n, a, e.gifs, i == null ? void 0 : i.gifs), t.processAudioConfig(n, a, e.audio, i == null ? void 0 : i.audio), t.processMicrophone(n, a, e.microphone, e.audio), t.processMixedFiles(n, a, e.mixedFiles);
|
|
4674
4674
|
}
|
|
4675
4675
|
}]);
|
|
4676
|
-
}(),
|
|
4676
|
+
}(), di = /* @__PURE__ */ function() {
|
|
4677
4677
|
function t(r, e, n) {
|
|
4678
4678
|
var i;
|
|
4679
4679
|
_(this, t);
|
|
@@ -4912,7 +4912,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4912
4912
|
return !0;
|
|
4913
4913
|
}
|
|
4914
4914
|
}]);
|
|
4915
|
-
}(
|
|
4915
|
+
}(di), bf = /* @__PURE__ */ function() {
|
|
4916
4916
|
function t() {
|
|
4917
4917
|
_(this, t);
|
|
4918
4918
|
}
|
|
@@ -5835,7 +5835,7 @@ var jo = Jn, Ho = {
|
|
|
5835
5835
|
});
|
|
5836
5836
|
}
|
|
5837
5837
|
}]);
|
|
5838
|
-
}(
|
|
5838
|
+
}(di);
|
|
5839
5839
|
mn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", mn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", mn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", mn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", mn.MODULE_SEARCH_LIMIT_S = 5;
|
|
5840
5840
|
var Ms = mn, Uo = /* @__PURE__ */ function() {
|
|
5841
5841
|
function t() {
|
|
@@ -6077,7 +6077,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
6077
6077
|
};
|
|
6078
6078
|
}
|
|
6079
6079
|
}]);
|
|
6080
|
-
}(),
|
|
6080
|
+
}(), Ai = /* @__PURE__ */ function(t) {
|
|
6081
6081
|
function r(e, n, i, a, s) {
|
|
6082
6082
|
var o;
|
|
6083
6083
|
return _(this, r), o = V(this, r, [e, n, i, a, s]), o.insertKeyPlaceholderText = "Stability AI API Key", o.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", o.permittedErrorPrefixes = ["Incorrect", "invalid_"], o;
|
|
@@ -6187,7 +6187,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
6187
6187
|
return !!(i != null && i[0]);
|
|
6188
6188
|
}
|
|
6189
6189
|
}]);
|
|
6190
|
-
}(
|
|
6190
|
+
}(Ai), Tf = /* @__PURE__ */ function(t) {
|
|
6191
6191
|
function r(e) {
|
|
6192
6192
|
var n;
|
|
6193
6193
|
_(this, r);
|
|
@@ -6291,7 +6291,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
6291
6291
|
return !!(i != null && i[0]) && !!(n && n.trim() !== "");
|
|
6292
6292
|
}
|
|
6293
6293
|
}]);
|
|
6294
|
-
}(
|
|
6294
|
+
}(Ai), Rf = /* @__PURE__ */ function(t) {
|
|
6295
6295
|
function r(e) {
|
|
6296
6296
|
_(this, r);
|
|
6297
6297
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.audioSpeechRecognition, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6628,7 +6628,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
6628
6628
|
return !!(i != null && i[0]) && !!(n && n.trim() !== "");
|
|
6629
6629
|
}
|
|
6630
6630
|
}]);
|
|
6631
|
-
}(
|
|
6631
|
+
}(Ai), $f = /* @__PURE__ */ function(t) {
|
|
6632
6632
|
function r(e) {
|
|
6633
6633
|
_(this, r);
|
|
6634
6634
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.translation, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6752,7 +6752,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
6752
6752
|
return !!(n && n.trim() !== "");
|
|
6753
6753
|
}
|
|
6754
6754
|
}]);
|
|
6755
|
-
}(
|
|
6755
|
+
}(Ai), Nf = /* @__PURE__ */ function(t) {
|
|
6756
6756
|
function r(e) {
|
|
6757
6757
|
var n;
|
|
6758
6758
|
_(this, r);
|
|
@@ -7117,7 +7117,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
7117
7117
|
}]);
|
|
7118
7118
|
}(Ie);
|
|
7119
7119
|
ls.DEFAULT_MODEL = "tts-1", ls.DEFAULT_VOIDE = "alloy";
|
|
7120
|
-
var jf = ls,
|
|
7120
|
+
var jf = ls, Gr = /* @__PURE__ */ function(t) {
|
|
7121
7121
|
function r(e) {
|
|
7122
7122
|
var n, i;
|
|
7123
7123
|
_(this, r);
|
|
@@ -7223,8 +7223,8 @@ var jf = ls, Wr = /* @__PURE__ */ function(t) {
|
|
|
7223
7223
|
}
|
|
7224
7224
|
}]);
|
|
7225
7225
|
}(Ie);
|
|
7226
|
-
|
|
7227
|
-
var Hf =
|
|
7226
|
+
Gr.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", Gr.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", Gr.DEFAULT_MODEL = "whisper-1";
|
|
7227
|
+
var Hf = Gr, Vt = /* @__PURE__ */ function() {
|
|
7228
7228
|
function t() {
|
|
7229
7229
|
_(this, t);
|
|
7230
7230
|
}
|
|
@@ -8187,7 +8187,7 @@ var Wf = Au, Gf = /* @__PURE__ */ function(t) {
|
|
|
8187
8187
|
}]);
|
|
8188
8188
|
}();
|
|
8189
8189
|
cs.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", cs.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.";
|
|
8190
|
-
var Ft = cs,
|
|
8190
|
+
var Ft = cs, Kr = /* @__PURE__ */ function(t) {
|
|
8191
8191
|
function r(e) {
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
_(this, r);
|
|
@@ -8760,8 +8760,8 @@ var Ft = cs, Gr = /* @__PURE__ */ function(t) {
|
|
|
8760
8760
|
}
|
|
8761
8761
|
}]);
|
|
8762
8762
|
}(Ie);
|
|
8763
|
-
|
|
8764
|
-
var Kf =
|
|
8763
|
+
Kr.THREAD_PREFIX = "https://api.openai.com/v1/threads", Kr.NEW_ASSISTANT_URL = "https://api.openai.com/v1/assistants", Kr.POLLING_TIMEOUT_MS = 800;
|
|
8764
|
+
var Kf = Kr, Jr = /* @__PURE__ */ function(t) {
|
|
8765
8765
|
function r(e) {
|
|
8766
8766
|
var n;
|
|
8767
8767
|
_(this, r);
|
|
@@ -8908,8 +8908,8 @@ var Kf = Gr, Kr = /* @__PURE__ */ function(t) {
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}]);
|
|
8910
8910
|
}(Ie);
|
|
8911
|
-
|
|
8912
|
-
var Jf =
|
|
8911
|
+
Jr.IMAGE_GENERATION_URL = "https://api.openai.com/v1/images/generations", Jr.IMAGE_VARIATIONS_URL = "https://api.openai.com/v1/images/variations", Jr.IMAGE_EDIT_URL = "https://api.openai.com/v1/images/edits";
|
|
8912
|
+
var Jf = Jr, Zf = /* @__PURE__ */ function(t) {
|
|
8913
8913
|
function r(e) {
|
|
8914
8914
|
var n, i, a;
|
|
8915
8915
|
_(this, r);
|
|
@@ -9364,7 +9364,7 @@ var Jf = Kr, Zf = /* @__PURE__ */ function(t) {
|
|
|
9364
9364
|
if (n.stabilityAI) return n.stabilityAI.imageToImage ? new Pf(e) : n.stabilityAI.imageToImageUpscale ? new Af(e) : n.stabilityAI.imageToImageMasking ? new Tf(e) : new Ff(e);
|
|
9365
9365
|
if (n.mistral) return new Xf(e);
|
|
9366
9366
|
}
|
|
9367
|
-
return i && (!a || !i.stream) ? new
|
|
9367
|
+
return i && (!a || !i.stream) ? new di(e) : new di(e, void 0, a || !0);
|
|
9368
9368
|
}
|
|
9369
9369
|
)
|
|
9370
9370
|
}]);
|
|
@@ -9712,13 +9712,13 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9712
9712
|
var s, o;
|
|
9713
9713
|
a = V(this, r, [e]);
|
|
9714
9714
|
var l = n.permittedErrorPrefixes, c = n.introPanelMarkUp, u = n.demo;
|
|
9715
|
-
return a._errorMessageOverrides = (s = e.errorMessages) == null ? void 0 : s.overrides, a._onClearMessages =
|
|
9715
|
+
return a._errorMessageOverrides = (s = e.errorMessages) == null ? void 0 : s.overrides, a._onClearMessages = ui.onClearMessages.bind(a, e), a._onError = ui.onError.bind(a, e), a._displayLoadingMessage = r.getDisplayLoadingMessage(e, n), a._permittedErrorPrefixes = l, a.addSetupMessageIfNeeded(e, n) || a.populateIntroPanel(i, c, e.introPanelStyle), a.addIntroductoryMessage(e, n), new rm(e, a, n), a._displayServiceErrorMessages = (o = e.errorMessages) == null ? void 0 : o.displayServiceErrorMessages, e.getMessages = function() {
|
|
9716
9716
|
return JSON.parse(JSON.stringify(a.messages));
|
|
9717
9717
|
}, e.clearMessages = a.clearMessages.bind(a, n), e.refreshMessages = a.refreshTextMessages.bind(a), e.scrollToBottom = De.scrollToBottom.bind(a, a.elementRef), e.addMessage = function(d, h) {
|
|
9718
9718
|
a.addAnyMessage(ne(ne({}, d), {}, {
|
|
9719
9719
|
sendUpdate: !!h
|
|
9720
9720
|
}), !h);
|
|
9721
|
-
}, n.isWebModel() && n.setUpMessages(a), u && a.prepareDemo(u), e.textToSpeech &&
|
|
9721
|
+
}, n.isWebModel() && n.setUpMessages(a), u && a.prepareDemo(u), e.textToSpeech && qr.processConfig(e.textToSpeech, function(d) {
|
|
9722
9722
|
a.textToSpeech = d;
|
|
9723
9723
|
}), a;
|
|
9724
9724
|
}
|
|
@@ -9768,9 +9768,9 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9768
9768
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, s = r.createMessageContent(n), o = {
|
|
9769
9769
|
status: n.overwrite
|
|
9770
9770
|
};
|
|
9771
|
-
if (!n.ignoreText && s.text !== void 0 && n.text !== null && (this.addNewTextMessage(s.text, s.role, o, a), !i && this.textToSpeech && s.role !== Z.USER_ROLE &&
|
|
9771
|
+
if (!n.ignoreText && s.text !== void 0 && n.text !== null && (this.addNewTextMessage(s.text, s.role, o, a), !i && this.textToSpeech && s.role !== Z.USER_ROLE && qr.speak(s.text, this.textToSpeech)), s.files && Array.isArray(s.files) && sm.addMessages(this, s.files, s.role, a), s.html !== void 0 && s.html !== null) {
|
|
9772
9772
|
var l = es.add(this, s.html, s.role, this.messageElementRefs, o, a);
|
|
9773
|
-
|
|
9773
|
+
ci.isElementTemporary(l) && delete s.html;
|
|
9774
9774
|
}
|
|
9775
9775
|
return this.isValidMessageContent(s) && !a && this.updateStateOnMessage(s, n.overwrite, n.sendUpdate, i), s;
|
|
9776
9776
|
}
|
|
@@ -9802,8 +9802,8 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9802
9802
|
h.classList.add("error-message-text");
|
|
9803
9803
|
var p = this.getPermittedMessage(i) || ((a = this._errorMessageOverrides) == null ? void 0 : a[n]) || ((s = this._errorMessageOverrides) == null ? void 0 : s.default) || "Error, please try again.";
|
|
9804
9804
|
this.renderText(h, p);
|
|
9805
|
-
var f =
|
|
9806
|
-
|
|
9805
|
+
var f = Wr.extractParticularSharedStyles(["fontSize", "fontFamily"], (o = this.messageStyles) == null ? void 0 : o.default);
|
|
9806
|
+
Wr.applyCustomStylesToElements(u, !1, f), Wr.applyCustomStylesToElements(u, !1, (l = this.messageStyles) == null ? void 0 : l.error), this.elementRef.appendChild(d), De.scrollToBottom(this.elementRef), this.textToSpeech && qr.speak(p, this.textToSpeech), (c = this._onError) == null || c.call(this, p);
|
|
9807
9807
|
}
|
|
9808
9808
|
}, {
|
|
9809
9809
|
key: "getPermittedMessage",
|
|
@@ -9946,7 +9946,7 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9946
9946
|
}]);
|
|
9947
9947
|
}();
|
|
9948
9948
|
Zn.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS = "text-input-container-left-adjustment", Zn.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS = "text-input-container-right-adjustment", Zn.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS = "text-input-container-left-small-adjustment", Zn.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS = "text-input-container-right-small-adjustment";
|
|
9949
|
-
var lm = Zn,
|
|
9949
|
+
var lm = Zn, hi = /* @__PURE__ */ function() {
|
|
9950
9950
|
function t() {
|
|
9951
9951
|
_(this, t);
|
|
9952
9952
|
}
|
|
@@ -10308,7 +10308,7 @@ var lm = Zn, di = /* @__PURE__ */ function() {
|
|
|
10308
10308
|
u && (s.addItem(u.button), n["dropup-menu"].splice(c, 1));
|
|
10309
10309
|
});
|
|
10310
10310
|
var o = Go.getPosition(n, a);
|
|
10311
|
-
|
|
10311
|
+
hi.addButton(e, s.buttonContainer, o), n[o].push({});
|
|
10312
10312
|
}
|
|
10313
10313
|
)
|
|
10314
10314
|
}, {
|
|
@@ -10317,7 +10317,7 @@ var lm = Zn, di = /* @__PURE__ */ function() {
|
|
|
10317
10317
|
["inside-left", "inside-right", "outside-left", "outside-right"].forEach(function(i) {
|
|
10318
10318
|
var a = i;
|
|
10319
10319
|
n[a].forEach(function(s) {
|
|
10320
|
-
|
|
10320
|
+
hi.addButton(e, s.button.elementRef, a);
|
|
10321
10321
|
});
|
|
10322
10322
|
});
|
|
10323
10323
|
}
|
|
@@ -10497,12 +10497,12 @@ var lm = Zn, di = /* @__PURE__ */ function() {
|
|
|
10497
10497
|
return n.id = "microphone-icon", n;
|
|
10498
10498
|
}
|
|
10499
10499
|
}]);
|
|
10500
|
-
}(kr), Ou = {},
|
|
10500
|
+
}(kr), Ou = {}, Ti = {}, Ri = {}, _r = {}, en = {};
|
|
10501
10501
|
Object.defineProperty(en, "__esModule", {
|
|
10502
10502
|
value: !0
|
|
10503
10503
|
});
|
|
10504
10504
|
en.Text = void 0;
|
|
10505
|
-
var
|
|
10505
|
+
var Oi = /* @__PURE__ */ function() {
|
|
10506
10506
|
function t() {
|
|
10507
10507
|
_(this, t);
|
|
10508
10508
|
}
|
|
@@ -10532,10 +10532,10 @@ var Ri = /* @__PURE__ */ function() {
|
|
|
10532
10532
|
}
|
|
10533
10533
|
}]);
|
|
10534
10534
|
}();
|
|
10535
|
-
en.Text =
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10535
|
+
en.Text = Oi;
|
|
10536
|
+
Oi.FIRST_CHAR_REGEX = /\S/;
|
|
10537
|
+
Oi.DOUBLE_LINE = /\n\n/g;
|
|
10538
|
+
Oi.ONE_LINE = /\n/g;
|
|
10539
10539
|
Object.defineProperty(_r, "__esModule", {
|
|
10540
10540
|
value: !0
|
|
10541
10541
|
});
|
|
@@ -10553,10 +10553,10 @@ var bm = en, wm = /* @__PURE__ */ function() {
|
|
|
10553
10553
|
}]);
|
|
10554
10554
|
}();
|
|
10555
10555
|
_r.Translate = wm;
|
|
10556
|
-
Object.defineProperty(
|
|
10556
|
+
Object.defineProperty(Ri, "__esModule", {
|
|
10557
10557
|
value: !0
|
|
10558
10558
|
});
|
|
10559
|
-
|
|
10559
|
+
Ri.WebSpeechTranscript = void 0;
|
|
10560
10560
|
var Ko = _r, km = /* @__PURE__ */ function() {
|
|
10561
10561
|
function t() {
|
|
10562
10562
|
_(this, t);
|
|
@@ -10589,7 +10589,7 @@ var Ko = _r, km = /* @__PURE__ */ function() {
|
|
|
10589
10589
|
}
|
|
10590
10590
|
}]);
|
|
10591
10591
|
}();
|
|
10592
|
-
|
|
10592
|
+
Ri.WebSpeechTranscript = km;
|
|
10593
10593
|
var Rn = {};
|
|
10594
10594
|
Object.defineProperty(Rn, "__esModule", {
|
|
10595
10595
|
value: !0
|
|
@@ -10602,11 +10602,11 @@ Rn.Browser = Yn;
|
|
|
10602
10602
|
Yn.IS_SAFARI = function() {
|
|
10603
10603
|
return Yn._IS_SAFARI === void 0 && (Yn._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), Yn._IS_SAFARI;
|
|
10604
10604
|
};
|
|
10605
|
-
var Sr = {},
|
|
10606
|
-
Object.defineProperty(
|
|
10605
|
+
var Sr = {}, Ii = {};
|
|
10606
|
+
Object.defineProperty(Ii, "__esModule", {
|
|
10607
10607
|
value: !0
|
|
10608
10608
|
});
|
|
10609
|
-
|
|
10609
|
+
Ii.EventListeners = void 0;
|
|
10610
10610
|
var Iu = /* @__PURE__ */ function() {
|
|
10611
10611
|
function t() {
|
|
10612
10612
|
_(this, t);
|
|
@@ -10649,13 +10649,13 @@ var Iu = /* @__PURE__ */ function() {
|
|
|
10649
10649
|
}
|
|
10650
10650
|
}]);
|
|
10651
10651
|
}();
|
|
10652
|
-
|
|
10652
|
+
Ii.EventListeners = Iu;
|
|
10653
10653
|
Iu.KEY_DOWN_TIMEOUT = null;
|
|
10654
|
-
var
|
|
10655
|
-
Object.defineProperty(
|
|
10654
|
+
var Li = {};
|
|
10655
|
+
Object.defineProperty(Li, "__esModule", {
|
|
10656
10656
|
value: !0
|
|
10657
10657
|
});
|
|
10658
|
-
|
|
10658
|
+
Li.PreResultUtils = void 0;
|
|
10659
10659
|
var _m = /* @__PURE__ */ function() {
|
|
10660
10660
|
function t() {
|
|
10661
10661
|
_(this, t);
|
|
@@ -10670,7 +10670,7 @@ var _m = /* @__PURE__ */ function() {
|
|
|
10670
10670
|
}
|
|
10671
10671
|
}]);
|
|
10672
10672
|
}();
|
|
10673
|
-
|
|
10673
|
+
Li.PreResultUtils = _m;
|
|
10674
10674
|
var Cr = {}, xr = {};
|
|
10675
10675
|
Object.defineProperty(xr, "__esModule", {
|
|
10676
10676
|
value: !0
|
|
@@ -10942,11 +10942,11 @@ var Jo = xr, Em = tn, Am = Rn, Zo = nn, Yo = en, Tm = /* @__PURE__ */ function()
|
|
|
10942
10942
|
}]);
|
|
10943
10943
|
}();
|
|
10944
10944
|
Cr.CommandUtils = Tm;
|
|
10945
|
-
var
|
|
10946
|
-
Object.defineProperty(
|
|
10945
|
+
var Mi = {};
|
|
10946
|
+
Object.defineProperty(Mi, "__esModule", {
|
|
10947
10947
|
value: !0
|
|
10948
10948
|
});
|
|
10949
|
-
|
|
10949
|
+
Mi.Highlight = void 0;
|
|
10950
10950
|
var Rm = tn, $n = nn, Om = /* @__PURE__ */ function() {
|
|
10951
10951
|
function t() {
|
|
10952
10952
|
_(this, t);
|
|
@@ -10992,12 +10992,12 @@ var Rm = tn, $n = nn, Om = /* @__PURE__ */ function() {
|
|
|
10992
10992
|
}
|
|
10993
10993
|
}]);
|
|
10994
10994
|
}();
|
|
10995
|
-
|
|
10996
|
-
var
|
|
10997
|
-
Object.defineProperty(
|
|
10995
|
+
Mi.Highlight = Om;
|
|
10996
|
+
var Pi = {};
|
|
10997
|
+
Object.defineProperty(Pi, "__esModule", {
|
|
10998
10998
|
value: !0
|
|
10999
10999
|
});
|
|
11000
|
-
|
|
11000
|
+
Pi.Padding = void 0;
|
|
11001
11001
|
var Im = tn, Xo = nn, sn = en, Lm = /* @__PURE__ */ function() {
|
|
11002
11002
|
function t() {
|
|
11003
11003
|
_(this, t);
|
|
@@ -11049,12 +11049,12 @@ var Im = tn, Xo = nn, sn = en, Lm = /* @__PURE__ */ function() {
|
|
|
11049
11049
|
}
|
|
11050
11050
|
}]);
|
|
11051
11051
|
}();
|
|
11052
|
-
|
|
11052
|
+
Pi.Padding = Lm;
|
|
11053
11053
|
Object.defineProperty(Sr, "__esModule", {
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
Sr.Speech = void 0;
|
|
11057
|
-
var Qo =
|
|
11057
|
+
var Qo = Ii, Mm = Li, el = Cr, jr = xr, va = Mi, nt = tn, ya = Pi, tl = Rn, nl = nn, ba = en, Pm = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
_(this, t), this.finalTranscript = "", this.interimSpan = nt.Elements.createInterimSpan(), this.finalSpan = nt.Elements.createGenericSpan(), this.scrollingSpan = nt.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
|
}
|
|
@@ -11114,7 +11114,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11114
11114
|
var s = a.length + this.numberOfSpacesAfterNewText;
|
|
11115
11115
|
nl.Cursor.setOffsetForPrimitive(e, s, this.autoScroll);
|
|
11116
11116
|
}
|
|
11117
|
-
this.autoScroll && tl.Browser.IS_SAFARI() && this.isCursorAtEnd &&
|
|
11117
|
+
this.autoScroll && tl.Browser.IS_SAFARI() && this.isCursorAtEnd && jr.AutoScroll.scrollSafariPrimitiveToEnd(e);
|
|
11118
11118
|
}
|
|
11119
11119
|
}, {
|
|
11120
11120
|
key: "updateGenericElement",
|
|
@@ -11122,10 +11122,10 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11122
11122
|
this.isHighlighted && va.Highlight.removeForGeneric(this, e), this.spansPopulated || nt.Elements.appendSpans(this, e);
|
|
11123
11123
|
var a = (i ? "" : this.startPadding) + ba.Text.lineBreak(this.finalTranscript);
|
|
11124
11124
|
this.finalSpan.innerHTML = a;
|
|
11125
|
-
var s =
|
|
11126
|
-
|
|
11125
|
+
var s = jr.AutoScroll.isRequired(this.autoScroll, e);
|
|
11126
|
+
jr.AutoScroll.changeStateIfNeeded(this, s);
|
|
11127
11127
|
var o = ba.Text.lineBreak(n) + (i ? "" : this.endPadding);
|
|
11128
|
-
this.interimSpan.innerHTML = o, tl.Browser.IS_SAFARI() && this.insertInCursorLocation && nl.Cursor.setOffsetForSafariGeneric(e, a.length + o.length), s &&
|
|
11128
|
+
this.interimSpan.innerHTML = o, tl.Browser.IS_SAFARI() && this.insertInCursorLocation && nl.Cursor.setOffsetForSafariGeneric(e, a.length + o.length), s && jr.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11129
11129
|
}
|
|
11130
11130
|
}, {
|
|
11131
11131
|
key: "finalise",
|
|
@@ -11163,11 +11163,11 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11163
11163
|
}]);
|
|
11164
11164
|
}();
|
|
11165
11165
|
Sr.Speech = Pm;
|
|
11166
|
-
Object.defineProperty(
|
|
11166
|
+
Object.defineProperty(Ti, "__esModule", {
|
|
11167
11167
|
value: !0
|
|
11168
11168
|
});
|
|
11169
|
-
|
|
11170
|
-
var rl =
|
|
11169
|
+
Ti.WebSpeech = void 0;
|
|
11170
|
+
var rl = Ri, il = Rn, $m = Sr, Fm = /* @__PURE__ */ function(t) {
|
|
11171
11171
|
function r() {
|
|
11172
11172
|
return _(this, r), V(this, r);
|
|
11173
11173
|
}
|
|
@@ -11226,12 +11226,12 @@ var rl = Ti, il = Rn, $m = Sr, Fm = /* @__PURE__ */ function(t) {
|
|
|
11226
11226
|
}
|
|
11227
11227
|
}]);
|
|
11228
11228
|
}($m.Speech);
|
|
11229
|
-
|
|
11230
|
-
var
|
|
11231
|
-
Object.defineProperty(
|
|
11229
|
+
Ti.WebSpeech = Fm;
|
|
11230
|
+
var $i = {};
|
|
11231
|
+
Object.defineProperty($i, "__esModule", {
|
|
11232
11232
|
value: !0
|
|
11233
11233
|
});
|
|
11234
|
-
|
|
11234
|
+
$i.GlobalState = void 0;
|
|
11235
11235
|
var Lu = /* @__PURE__ */ function() {
|
|
11236
11236
|
function t() {
|
|
11237
11237
|
_(this, t);
|
|
@@ -11245,13 +11245,13 @@ var Lu = /* @__PURE__ */ function() {
|
|
|
11245
11245
|
}
|
|
11246
11246
|
}]);
|
|
11247
11247
|
}();
|
|
11248
|
-
|
|
11248
|
+
$i.GlobalState = Lu;
|
|
11249
11249
|
Lu.doubleClickPending = !1;
|
|
11250
|
-
var
|
|
11251
|
-
Object.defineProperty(
|
|
11250
|
+
var Fi = {}, Ni = {};
|
|
11251
|
+
Object.defineProperty(Ni, "__esModule", {
|
|
11252
11252
|
value: !0
|
|
11253
11253
|
});
|
|
11254
|
-
|
|
11254
|
+
Ni.PreventConnectionStop = void 0;
|
|
11255
11255
|
var Nm = /* @__PURE__ */ function() {
|
|
11256
11256
|
function t() {
|
|
11257
11257
|
_(this, t);
|
|
@@ -11270,18 +11270,18 @@ var Nm = /* @__PURE__ */ function() {
|
|
|
11270
11270
|
}
|
|
11271
11271
|
}]);
|
|
11272
11272
|
}();
|
|
11273
|
-
|
|
11274
|
-
var
|
|
11275
|
-
Object.defineProperty(
|
|
11273
|
+
Ni.PreventConnectionStop = Nm;
|
|
11274
|
+
var Di = {}, Bi = {};
|
|
11275
|
+
Object.defineProperty(Bi, "__esModule", {
|
|
11276
11276
|
value: !0
|
|
11277
11277
|
});
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
Object.defineProperty(
|
|
11278
|
+
Bi.README_URL = void 0;
|
|
11279
|
+
Bi.README_URL = "https://github.com/OvidijusParsiunas/speech-to-element";
|
|
11280
|
+
Object.defineProperty(Di, "__esModule", {
|
|
11281
11281
|
value: !0
|
|
11282
11282
|
});
|
|
11283
|
-
|
|
11284
|
-
var wa =
|
|
11283
|
+
Di.AzureSpeechConfig = void 0;
|
|
11284
|
+
var wa = Bi, Dm = /* @__PURE__ */ function() {
|
|
11285
11285
|
function t() {
|
|
11286
11286
|
_(this, t);
|
|
11287
11287
|
}
|
|
@@ -11346,12 +11346,12 @@ var wa = Di, Dm = /* @__PURE__ */ function() {
|
|
|
11346
11346
|
}()
|
|
11347
11347
|
}]);
|
|
11348
11348
|
}();
|
|
11349
|
-
|
|
11350
|
-
var
|
|
11351
|
-
Object.defineProperty(
|
|
11349
|
+
Di.AzureSpeechConfig = Dm;
|
|
11350
|
+
var ji = {};
|
|
11351
|
+
Object.defineProperty(ji, "__esModule", {
|
|
11352
11352
|
value: !0
|
|
11353
11353
|
});
|
|
11354
|
-
|
|
11354
|
+
ji.StopTimeout = void 0;
|
|
11355
11355
|
var Mu = /* @__PURE__ */ function() {
|
|
11356
11356
|
function t() {
|
|
11357
11357
|
_(this, t);
|
|
@@ -11370,13 +11370,13 @@ var Mu = /* @__PURE__ */ function() {
|
|
|
11370
11370
|
}
|
|
11371
11371
|
}]);
|
|
11372
11372
|
}();
|
|
11373
|
-
|
|
11373
|
+
ji.StopTimeout = Mu;
|
|
11374
11374
|
Mu.DEFAULT_MS = 2e4;
|
|
11375
|
-
var
|
|
11376
|
-
Object.defineProperty(
|
|
11375
|
+
var Hi = {};
|
|
11376
|
+
Object.defineProperty(Hi, "__esModule", {
|
|
11377
11377
|
value: !0
|
|
11378
11378
|
});
|
|
11379
|
-
|
|
11379
|
+
Hi.AzureTranscript = void 0;
|
|
11380
11380
|
var Bm = _r, jm = /* @__PURE__ */ function() {
|
|
11381
11381
|
function t() {
|
|
11382
11382
|
_(this, t);
|
|
@@ -11399,12 +11399,12 @@ var Bm = _r, jm = /* @__PURE__ */ function() {
|
|
|
11399
11399
|
)
|
|
11400
11400
|
}]);
|
|
11401
11401
|
}();
|
|
11402
|
-
|
|
11403
|
-
Object.defineProperty(
|
|
11402
|
+
Hi.AzureTranscript = jm;
|
|
11403
|
+
Object.defineProperty(Fi, "__esModule", {
|
|
11404
11404
|
value: !0
|
|
11405
11405
|
});
|
|
11406
|
-
|
|
11407
|
-
var al =
|
|
11406
|
+
Fi.Azure = void 0;
|
|
11407
|
+
var al = Ni, sl = Di, ka = ji, ol = Hi, Hm = Sr, Um = /* @__PURE__ */ function(t) {
|
|
11408
11408
|
function r() {
|
|
11409
11409
|
var e;
|
|
11410
11410
|
return _(this, r), e = V(this, r, arguments), e._newTextPadding = "", e;
|
|
@@ -11553,11 +11553,11 @@ var al = Fi, sl = Ni, ka = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11553
11553
|
}
|
|
11554
11554
|
}]);
|
|
11555
11555
|
}(Hm.Speech);
|
|
11556
|
-
|
|
11556
|
+
Fi.Azure = Um;
|
|
11557
11557
|
Object.defineProperty(Ou, "__esModule", {
|
|
11558
11558
|
value: !0
|
|
11559
11559
|
});
|
|
11560
|
-
var ll =
|
|
11560
|
+
var ll = Ti, zm = Cr, Je = $i, qm = Fi, Vm = /* @__PURE__ */ function() {
|
|
11561
11561
|
function t() {
|
|
11562
11562
|
_(this, t);
|
|
11563
11563
|
}
|
|
@@ -11595,7 +11595,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11595
11595
|
Je.GlobalState.service && zm.CommandUtils.toggleCommandModeOff(Je.GlobalState.service);
|
|
11596
11596
|
}
|
|
11597
11597
|
}]);
|
|
11598
|
-
}(),
|
|
11598
|
+
}(), Zr = Ou.default = Vm, Wm = /* @__PURE__ */ function() {
|
|
11599
11599
|
function t(r, e) {
|
|
11600
11600
|
_(this, t), this.silenceMS = 2e3, this.stop = !0, typeof e == "boolean" && e === !1 && (this.stop = !1), typeof r == "number" && (this.silenceMS = r);
|
|
11601
11601
|
}
|
|
@@ -11605,7 +11605,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11605
11605
|
var i = this;
|
|
11606
11606
|
this._silenceTimeout = setTimeout(function() {
|
|
11607
11607
|
var a;
|
|
11608
|
-
(a = e.submit) == null || a.call(e),
|
|
11608
|
+
(a = e.submit) == null || a.call(e), Zr.stop(), i.stop || setTimeout(n, Fs.MICROPHONE_RESET_TIMEOUT_MS);
|
|
11609
11609
|
}, this.silenceMS);
|
|
11610
11610
|
}
|
|
11611
11611
|
}, {
|
|
@@ -11631,7 +11631,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11631
11631
|
var s = q(e.speechToText) == "object" ? e.speechToText : {};
|
|
11632
11632
|
a = V(this, r, [s == null ? void 0 : s.button]);
|
|
11633
11633
|
var o = a.processConfiguration(n, e.speechToText), l = o.serviceName, c = o.processedConfig;
|
|
11634
|
-
if (a._addErrorMessage = i, l === "webspeech" && !
|
|
11634
|
+
if (a._addErrorMessage = i, l === "webspeech" && !Zr.isWebSpeechSupported()) a.changeToUnsupported();
|
|
11635
11635
|
else {
|
|
11636
11636
|
var u = !e.textInput || !e.textInput.disabled;
|
|
11637
11637
|
a.elementRef.onclick = a.buttonClick.bind(a, n, u, l, c);
|
|
@@ -11654,7 +11654,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11654
11654
|
return y.toLowerCase().includes(g) ? (setTimeout(function() {
|
|
11655
11655
|
var v;
|
|
11656
11656
|
return (v = n.submit) == null ? void 0 : v.call(n);
|
|
11657
|
-
}),
|
|
11657
|
+
}), Zr.endCommandMode(), {
|
|
11658
11658
|
restart: !0,
|
|
11659
11659
|
removeNewText: !0
|
|
11660
11660
|
}) : null;
|
|
@@ -11667,7 +11667,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11667
11667
|
key: "buttonClick",
|
|
11668
11668
|
value: function(n, i, a, s) {
|
|
11669
11669
|
var o = this, l = s == null ? void 0 : s.events;
|
|
11670
|
-
n.removeTextIfPlaceholder(),
|
|
11670
|
+
n.removeTextIfPlaceholder(), Zr.toggle(a, ne({
|
|
11671
11671
|
insertInCursorLocation: !1,
|
|
11672
11672
|
element: i ? n.inputElementRef : void 0,
|
|
11673
11673
|
onError: function() {
|
|
@@ -12512,7 +12512,7 @@ var Xn = Fu, Jm = /* @__PURE__ */ function(t) {
|
|
|
12512
12512
|
return t.overwriteDefaultStyleWithSubmit(n, "loading"), t.overwriteDefaultStyleWithSubmit(n, "stop"), e != null && e.alwaysEnabled || t.setUpDisabledButton(n), n;
|
|
12513
12513
|
}
|
|
12514
12514
|
}]);
|
|
12515
|
-
}(),
|
|
12515
|
+
}(), Yr = /* @__PURE__ */ function(t) {
|
|
12516
12516
|
function r(e, n, i, a, s, o) {
|
|
12517
12517
|
var l;
|
|
12518
12518
|
_(this, r);
|
|
@@ -12786,8 +12786,8 @@ var Xn = Fu, Jm = /* @__PURE__ */ function(t) {
|
|
|
12786
12786
|
}
|
|
12787
12787
|
}]);
|
|
12788
12788
|
}(kr);
|
|
12789
|
-
|
|
12790
|
-
var Qm =
|
|
12789
|
+
Yr.SUBMIT_CLASS = "submit-button", Yr.LOADING_CLASS = "loading-button", Yr.DISABLED_CLASS = "disabled-button";
|
|
12790
|
+
var Qm = Yr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
12791
12791
|
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
12792
12792
|
<path d="M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z"/>
|
|
12793
12793
|
</svg>
|
|
@@ -13004,8 +13004,8 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13004
13004
|
key: "addElements",
|
|
13005
13005
|
value: function(e, n, i, a, s, o) {
|
|
13006
13006
|
De.addElements(e, n.elementRef);
|
|
13007
|
-
var l =
|
|
13008
|
-
lm.set(n.inputElementRef, l, s.elementRef, c),
|
|
13007
|
+
var l = hi.create(), c = hm.addButtons(l, i, a, o);
|
|
13008
|
+
lm.set(n.inputElementRef, l, s.elementRef, c), hi.add(e, l);
|
|
13009
13009
|
}
|
|
13010
13010
|
}]);
|
|
13011
13011
|
}(), l0 = /* @__PURE__ */ function() {
|
|
@@ -13070,7 +13070,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13070
13070
|
key: "onRender",
|
|
13071
13071
|
value: function() {
|
|
13072
13072
|
var n;
|
|
13073
|
-
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (da.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), da.applyDefaultStyleToComponent(this.style, this.chatStyle), Be.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vh.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((n = this._childElement) !== null && n !== void 0 || (this._childElement = this.children[0]), l0.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && Cf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0,
|
|
13073
|
+
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (da.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), da.applyDefaultStyleToComponent(this.style, this.chatStyle), Be.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vh.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((n = this._childElement) !== null && n !== void 0 || (this._childElement = this.children[0]), l0.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && Cf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, ui.onRender(this);
|
|
13074
13074
|
}
|
|
13075
13075
|
}, {
|
|
13076
13076
|
key: "disconnectedCallback",
|
|
@@ -13142,7 +13142,7 @@ function Lt(t) {
|
|
|
13142
13142
|
return t != null && typeof t == "object";
|
|
13143
13143
|
}
|
|
13144
13144
|
var w0 = "[object Symbol]";
|
|
13145
|
-
function
|
|
13145
|
+
function Ui(t) {
|
|
13146
13146
|
return typeof t == "symbol" || Lt(t) && On(t) == w0;
|
|
13147
13147
|
}
|
|
13148
13148
|
function k0(t, r) {
|
|
@@ -13156,7 +13156,7 @@ function ju(t) {
|
|
|
13156
13156
|
return t;
|
|
13157
13157
|
if (lt(t))
|
|
13158
13158
|
return k0(t, ju) + "";
|
|
13159
|
-
if (
|
|
13159
|
+
if (Ui(t))
|
|
13160
13160
|
return fl ? fl.call(t) : "";
|
|
13161
13161
|
var r = t + "";
|
|
13162
13162
|
return r == "0" && 1 / t == -_0 ? "-0" : r;
|
|
@@ -13179,7 +13179,7 @@ var ml = NaN, A0 = /^[-+]0x[0-9a-f]+$/i, T0 = /^0b[01]+$/i, R0 = /^0o[0-7]+$/i,
|
|
|
13179
13179
|
function I0(t) {
|
|
13180
13180
|
if (typeof t == "number")
|
|
13181
13181
|
return t;
|
|
13182
|
-
if (
|
|
13182
|
+
if (Ui(t))
|
|
13183
13183
|
return ml;
|
|
13184
13184
|
if (Ke(t)) {
|
|
13185
13185
|
var r = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -13248,13 +13248,13 @@ function J0(t) {
|
|
|
13248
13248
|
function Z0(t, r) {
|
|
13249
13249
|
return t == null ? void 0 : t[r];
|
|
13250
13250
|
}
|
|
13251
|
-
function
|
|
13251
|
+
function zi(t, r) {
|
|
13252
13252
|
var e = Z0(t, r);
|
|
13253
13253
|
return J0(e) ? e : void 0;
|
|
13254
13254
|
}
|
|
13255
|
-
var bl =
|
|
13256
|
-
return
|
|
13257
|
-
} : Bs, wl = Object.create,
|
|
13255
|
+
var bl = zi(Xe, "WeakMap"), pi = bl && new bl(), Hu = pi ? function(t, r) {
|
|
13256
|
+
return pi.set(t, r), t;
|
|
13257
|
+
} : Bs, wl = Object.create, qi = /* @__PURE__ */ function() {
|
|
13258
13258
|
function t() {
|
|
13259
13259
|
}
|
|
13260
13260
|
return function(r) {
|
|
@@ -13288,7 +13288,7 @@ function dr(t) {
|
|
|
13288
13288
|
case 7:
|
|
13289
13289
|
return new t(r[0], r[1], r[2], r[3], r[4], r[5], r[6]);
|
|
13290
13290
|
}
|
|
13291
|
-
var e =
|
|
13291
|
+
var e = qi(t.prototype), n = t.apply(e, r);
|
|
13292
13292
|
return Ke(n) ? n : e;
|
|
13293
13293
|
};
|
|
13294
13294
|
}
|
|
@@ -13345,12 +13345,12 @@ var ng = 4294967295;
|
|
|
13345
13345
|
function _n(t) {
|
|
13346
13346
|
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = ng, this.__views__ = [];
|
|
13347
13347
|
}
|
|
13348
|
-
_n.prototype =
|
|
13348
|
+
_n.prototype = qi(Us.prototype);
|
|
13349
13349
|
_n.prototype.constructor = _n;
|
|
13350
13350
|
function rg() {
|
|
13351
13351
|
}
|
|
13352
|
-
var qu =
|
|
13353
|
-
return
|
|
13352
|
+
var qu = pi ? function(t) {
|
|
13353
|
+
return pi.get(t);
|
|
13354
13354
|
} : rg, kl = {}, ig = Object.prototype, ag = ig.hasOwnProperty;
|
|
13355
13355
|
function sg(t) {
|
|
13356
13356
|
for (var r = t.name + "", e = kl[r], n = ag.call(kl, r) ? e.length : 0; n--; ) {
|
|
@@ -13363,7 +13363,7 @@ function sg(t) {
|
|
|
13363
13363
|
function Sn(t, r) {
|
|
13364
13364
|
this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
13365
13365
|
}
|
|
13366
|
-
Sn.prototype =
|
|
13366
|
+
Sn.prototype = qi(Us.prototype);
|
|
13367
13367
|
Sn.prototype.constructor = Sn;
|
|
13368
13368
|
function zs(t, r) {
|
|
13369
13369
|
var e = -1, n = t.length;
|
|
@@ -13378,7 +13378,7 @@ function og(t) {
|
|
|
13378
13378
|
return r.__actions__ = zs(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
|
|
13379
13379
|
}
|
|
13380
13380
|
var lg = Object.prototype, cg = lg.hasOwnProperty;
|
|
13381
|
-
function
|
|
13381
|
+
function fi(t) {
|
|
13382
13382
|
if (Lt(t) && !lt(t) && !(t instanceof _n)) {
|
|
13383
13383
|
if (t instanceof Sn)
|
|
13384
13384
|
return t;
|
|
@@ -13387,10 +13387,10 @@ function pi(t) {
|
|
|
13387
13387
|
}
|
|
13388
13388
|
return new Sn(t);
|
|
13389
13389
|
}
|
|
13390
|
-
|
|
13391
|
-
|
|
13390
|
+
fi.prototype = Us.prototype;
|
|
13391
|
+
fi.prototype.constructor = fi;
|
|
13392
13392
|
function ug(t) {
|
|
13393
|
-
var r = sg(t), e =
|
|
13393
|
+
var r = sg(t), e = fi[r];
|
|
13394
13394
|
if (typeof e != "function" || !(r in _n.prototype))
|
|
13395
13395
|
return !1;
|
|
13396
13396
|
if (t === e)
|
|
@@ -13431,14 +13431,14 @@ function bg(t) {
|
|
|
13431
13431
|
return t;
|
|
13432
13432
|
};
|
|
13433
13433
|
}
|
|
13434
|
-
var
|
|
13434
|
+
var mi = function() {
|
|
13435
13435
|
try {
|
|
13436
|
-
var t =
|
|
13436
|
+
var t = zi(Object, "defineProperty");
|
|
13437
13437
|
return t({}, "", {}), t;
|
|
13438
13438
|
} catch {
|
|
13439
13439
|
}
|
|
13440
|
-
}(), wg =
|
|
13441
|
-
return
|
|
13440
|
+
}(), wg = mi ? function(t, r) {
|
|
13441
|
+
return mi(t, "toString", {
|
|
13442
13442
|
configurable: !0,
|
|
13443
13443
|
enumerable: !1,
|
|
13444
13444
|
value: bg(r),
|
|
@@ -13529,7 +13529,7 @@ function Vg(t, r) {
|
|
|
13529
13529
|
return t;
|
|
13530
13530
|
}
|
|
13531
13531
|
var Cl = "__lodash_placeholder__";
|
|
13532
|
-
function
|
|
13532
|
+
function gi(t, r) {
|
|
13533
13533
|
for (var e = -1, n = t.length, i = 0, a = []; ++e < n; ) {
|
|
13534
13534
|
var s = t[e];
|
|
13535
13535
|
(s === r || s === Cl) && (t[e] = Cl, a[i++] = e);
|
|
@@ -13545,7 +13545,7 @@ function Vs(t, r, e, n, i, a, s, o, l, c) {
|
|
|
13545
13545
|
if (p)
|
|
13546
13546
|
var F = Ju(y), R = tg(b, F);
|
|
13547
13547
|
if (n && (b = Uu(b, n, i, p)), a && (b = zu(b, a, s, p)), v -= R, p && v < c) {
|
|
13548
|
-
var U =
|
|
13548
|
+
var U = gi(b, F);
|
|
13549
13549
|
return Ku(
|
|
13550
13550
|
t,
|
|
13551
13551
|
r,
|
|
@@ -13569,7 +13569,7 @@ function Xg(t, r, e) {
|
|
|
13569
13569
|
function i() {
|
|
13570
13570
|
for (var a = arguments.length, s = Array(a), o = a, l = Ju(i); o--; )
|
|
13571
13571
|
s[o] = arguments[o];
|
|
13572
|
-
var c = a < 3 && s[0] !== l && s[a - 1] !== l ? [] :
|
|
13572
|
+
var c = a < 3 && s[0] !== l && s[a - 1] !== l ? [] : gi(s, l);
|
|
13573
13573
|
if (a -= c.length, a < e)
|
|
13574
13574
|
return Ku(
|
|
13575
13575
|
t,
|
|
@@ -13609,9 +13609,9 @@ function iv(t, r) {
|
|
|
13609
13609
|
var o = r[3];
|
|
13610
13610
|
if (o) {
|
|
13611
13611
|
var l = t[3];
|
|
13612
|
-
t[3] = l ? Uu(l, o, r[4]) : o, t[4] = l ?
|
|
13612
|
+
t[3] = l ? Uu(l, o, r[4]) : o, t[4] = l ? gi(t[3], xl) : r[4];
|
|
13613
13613
|
}
|
|
13614
|
-
return o = r[5], o && (l = t[5], t[5] = l ? zu(l, o, r[6]) : o, t[6] = l ?
|
|
13614
|
+
return o = r[5], o && (l = t[5], t[5] = l ? zu(l, o, r[6]) : o, t[6] = l ? gi(t[5], xl) : r[6]), o = r[7], o && (t[7] = o), n & Nn && (t[8] = t[8] == null ? r[8] : rv(t[8], r[8])), t[9] == null && (t[9] = r[9]), t[0] = r[0], t[1] = i, t;
|
|
13615
13615
|
}
|
|
13616
13616
|
var av = "Expected a function", Tl = 1, sv = 2, Ca = 8, xa = 16, Ea = 32, Rl = 64, Ol = Math.max;
|
|
13617
13617
|
function ov(t, r, e, n, i, a, s, o) {
|
|
@@ -13642,20 +13642,20 @@ function ov(t, r, e, n, i, a, s, o) {
|
|
|
13642
13642
|
return Gu(g(f, p), t, r);
|
|
13643
13643
|
}
|
|
13644
13644
|
function Ws(t, r, e) {
|
|
13645
|
-
r == "__proto__" &&
|
|
13645
|
+
r == "__proto__" && mi ? mi(t, r, {
|
|
13646
13646
|
configurable: !0,
|
|
13647
13647
|
enumerable: !0,
|
|
13648
13648
|
value: e,
|
|
13649
13649
|
writable: !0
|
|
13650
13650
|
}) : t[r] = e;
|
|
13651
13651
|
}
|
|
13652
|
-
function
|
|
13652
|
+
function Vi(t, r) {
|
|
13653
13653
|
return t === r || t !== t && r !== r;
|
|
13654
13654
|
}
|
|
13655
13655
|
var lv = Object.prototype, cv = lv.hasOwnProperty;
|
|
13656
13656
|
function Zu(t, r, e) {
|
|
13657
13657
|
var n = t[r];
|
|
13658
|
-
(!(cv.call(t, r) &&
|
|
13658
|
+
(!(cv.call(t, r) && Vi(n, e)) || e === void 0 && !(r in t)) && Ws(t, r, e);
|
|
13659
13659
|
}
|
|
13660
13660
|
function uv(t, r, e, n) {
|
|
13661
13661
|
var i = !e;
|
|
@@ -13691,7 +13691,7 @@ function pv(t, r, e) {
|
|
|
13691
13691
|
if (!Ke(e))
|
|
13692
13692
|
return !1;
|
|
13693
13693
|
var n = typeof r;
|
|
13694
|
-
return (n == "number" ? Ks(e) && Er(r, e.length) : n == "string" && r in e) ?
|
|
13694
|
+
return (n == "number" ? Ks(e) && Er(r, e.length) : n == "string" && r in e) ? Vi(e[r], t) : !1;
|
|
13695
13695
|
}
|
|
13696
13696
|
function fv(t) {
|
|
13697
13697
|
return dv(function(r, e) {
|
|
@@ -13782,9 +13782,9 @@ function i1(t, r) {
|
|
|
13782
13782
|
if (lt(t))
|
|
13783
13783
|
return !1;
|
|
13784
13784
|
var e = typeof t;
|
|
13785
|
-
return e == "number" || e == "symbol" || e == "boolean" || t == null ||
|
|
13785
|
+
return e == "number" || e == "symbol" || e == "boolean" || t == null || Ui(t) ? !0 : r1.test(t) || !n1.test(t) || r != null && t in Object(r);
|
|
13786
13786
|
}
|
|
13787
|
-
var pr =
|
|
13787
|
+
var pr = zi(Object, "create");
|
|
13788
13788
|
function a1() {
|
|
13789
13789
|
this.__data__ = pr ? pr(null) : {}, this.size = 0;
|
|
13790
13790
|
}
|
|
@@ -13826,29 +13826,29 @@ Wt.prototype.set = m1;
|
|
|
13826
13826
|
function g1() {
|
|
13827
13827
|
this.__data__ = [], this.size = 0;
|
|
13828
13828
|
}
|
|
13829
|
-
function
|
|
13829
|
+
function Wi(t, r) {
|
|
13830
13830
|
for (var e = t.length; e--; )
|
|
13831
|
-
if (
|
|
13831
|
+
if (Vi(t[e][0], r))
|
|
13832
13832
|
return e;
|
|
13833
13833
|
return -1;
|
|
13834
13834
|
}
|
|
13835
13835
|
var v1 = Array.prototype, y1 = v1.splice;
|
|
13836
13836
|
function b1(t) {
|
|
13837
|
-
var r = this.__data__, e =
|
|
13837
|
+
var r = this.__data__, e = Wi(r, t);
|
|
13838
13838
|
if (e < 0)
|
|
13839
13839
|
return !1;
|
|
13840
13840
|
var n = r.length - 1;
|
|
13841
13841
|
return e == n ? r.pop() : y1.call(r, e, 1), --this.size, !0;
|
|
13842
13842
|
}
|
|
13843
13843
|
function w1(t) {
|
|
13844
|
-
var r = this.__data__, e =
|
|
13844
|
+
var r = this.__data__, e = Wi(r, t);
|
|
13845
13845
|
return e < 0 ? void 0 : r[e][1];
|
|
13846
13846
|
}
|
|
13847
13847
|
function k1(t) {
|
|
13848
|
-
return
|
|
13848
|
+
return Wi(this.__data__, t) > -1;
|
|
13849
13849
|
}
|
|
13850
13850
|
function _1(t, r) {
|
|
13851
|
-
var e = this.__data__, n =
|
|
13851
|
+
var e = this.__data__, n = Wi(e, t);
|
|
13852
13852
|
return n < 0 ? (++this.size, e.push([t, r])) : e[n][1] = r, this;
|
|
13853
13853
|
}
|
|
13854
13854
|
function vt(t) {
|
|
@@ -13863,7 +13863,7 @@ vt.prototype.delete = b1;
|
|
|
13863
13863
|
vt.prototype.get = w1;
|
|
13864
13864
|
vt.prototype.has = k1;
|
|
13865
13865
|
vt.prototype.set = _1;
|
|
13866
|
-
var ad =
|
|
13866
|
+
var ad = zi(Xe, "Map");
|
|
13867
13867
|
function S1() {
|
|
13868
13868
|
this.size = 0, this.__data__ = {
|
|
13869
13869
|
hash: new Wt(),
|
|
@@ -13875,22 +13875,22 @@ function C1(t) {
|
|
|
13875
13875
|
var r = typeof t;
|
|
13876
13876
|
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? t !== "__proto__" : t === null;
|
|
13877
13877
|
}
|
|
13878
|
-
function
|
|
13878
|
+
function Gi(t, r) {
|
|
13879
13879
|
var e = t.__data__;
|
|
13880
13880
|
return C1(r) ? e[typeof r == "string" ? "string" : "hash"] : e.map;
|
|
13881
13881
|
}
|
|
13882
13882
|
function x1(t) {
|
|
13883
|
-
var r =
|
|
13883
|
+
var r = Gi(this, t).delete(t);
|
|
13884
13884
|
return this.size -= r ? 1 : 0, r;
|
|
13885
13885
|
}
|
|
13886
13886
|
function E1(t) {
|
|
13887
|
-
return
|
|
13887
|
+
return Gi(this, t).get(t);
|
|
13888
13888
|
}
|
|
13889
13889
|
function A1(t) {
|
|
13890
|
-
return
|
|
13890
|
+
return Gi(this, t).has(t);
|
|
13891
13891
|
}
|
|
13892
13892
|
function T1(t, r) {
|
|
13893
|
-
var e =
|
|
13893
|
+
var e = Gi(this, t), n = e.size;
|
|
13894
13894
|
return e.set(t, r), this.size += e.size == n ? 0 : 1, this;
|
|
13895
13895
|
}
|
|
13896
13896
|
function Mt(t) {
|
|
@@ -13935,18 +13935,18 @@ var L1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
13935
13935
|
function $1(t) {
|
|
13936
13936
|
return t == null ? "" : ju(t);
|
|
13937
13937
|
}
|
|
13938
|
-
function
|
|
13938
|
+
function Ki(t, r) {
|
|
13939
13939
|
return lt(t) ? t : i1(t, r) ? [t] : P1($1(t));
|
|
13940
13940
|
}
|
|
13941
13941
|
var F1 = 1 / 0;
|
|
13942
13942
|
function Zs(t) {
|
|
13943
|
-
if (typeof t == "string" ||
|
|
13943
|
+
if (typeof t == "string" || Ui(t))
|
|
13944
13944
|
return t;
|
|
13945
13945
|
var r = t + "";
|
|
13946
13946
|
return r == "0" && 1 / t == -F1 ? "-0" : r;
|
|
13947
13947
|
}
|
|
13948
13948
|
function N1(t, r) {
|
|
13949
|
-
r =
|
|
13949
|
+
r = Ki(r, t);
|
|
13950
13950
|
for (var e = 0, n = r.length; t != null && e < n; )
|
|
13951
13951
|
t = t[Zs(r[e++])];
|
|
13952
13952
|
return e && e == n ? t : void 0;
|
|
@@ -14033,13 +14033,13 @@ function i2(t, r) {
|
|
|
14033
14033
|
return new t.constructor(e, t.byteOffset, t.length);
|
|
14034
14034
|
}
|
|
14035
14035
|
function a2(t) {
|
|
14036
|
-
return typeof t.constructor == "function" && !Xu(t) ?
|
|
14036
|
+
return typeof t.constructor == "function" && !Xu(t) ? qi(sd(t)) : {};
|
|
14037
14037
|
}
|
|
14038
14038
|
function s2(t, r) {
|
|
14039
14039
|
return t != null && r in Object(t);
|
|
14040
14040
|
}
|
|
14041
14041
|
function o2(t, r, e) {
|
|
14042
|
-
r =
|
|
14042
|
+
r = Ki(r, t);
|
|
14043
14043
|
for (var n = -1, i = r.length, a = !1; ++n < i; ) {
|
|
14044
14044
|
var s = Zs(r[n]);
|
|
14045
14045
|
if (!(a = t != null && e(t, s)))
|
|
@@ -14069,7 +14069,7 @@ function Ar(t, r, e) {
|
|
|
14069
14069
|
}
|
|
14070
14070
|
Ar.placeholder = {};
|
|
14071
14071
|
function ds(t, r, e) {
|
|
14072
|
-
(e !== void 0 && !
|
|
14072
|
+
(e !== void 0 && !Vi(t[r], e) || e === void 0 && !(r in t)) && Ws(t, r, e);
|
|
14073
14073
|
}
|
|
14074
14074
|
function h2(t) {
|
|
14075
14075
|
return Lt(t) && Ks(t);
|
|
@@ -14114,7 +14114,7 @@ var v2 = fv(function(t, r, e) {
|
|
|
14114
14114
|
function ud(t, r, e, n) {
|
|
14115
14115
|
if (!Ke(t))
|
|
14116
14116
|
return t;
|
|
14117
|
-
r =
|
|
14117
|
+
r = Ki(r, t);
|
|
14118
14118
|
for (var i = -1, a = r.length, s = a - 1, o = t; o != null && ++i < a; ) {
|
|
14119
14119
|
var l = Zs(r[i]), c = e;
|
|
14120
14120
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
@@ -14130,7 +14130,7 @@ function ud(t, r, e, n) {
|
|
|
14130
14130
|
function y2(t, r, e) {
|
|
14131
14131
|
for (var n = -1, i = r.length, a = {}; ++n < i; ) {
|
|
14132
14132
|
var s = r[n], o = N1(t, s);
|
|
14133
|
-
e(o, s) && ud(a,
|
|
14133
|
+
e(o, s) && ud(a, Ki(s, t), o);
|
|
14134
14134
|
}
|
|
14135
14135
|
return a;
|
|
14136
14136
|
}
|
|
@@ -14358,7 +14358,7 @@ function E2(t, r, e) {
|
|
|
14358
14358
|
const dd = S2("rem");
|
|
14359
14359
|
Ar(function(t, r) {
|
|
14360
14360
|
if (r === "transparent") return r;
|
|
14361
|
-
const e =
|
|
14361
|
+
const e = vi(r), n = "alpha" in e && typeof e.alpha == "number" ? e.alpha : 1, i = {
|
|
14362
14362
|
...e,
|
|
14363
14363
|
alpha: E2(0, 1, +(n * 100 - parseFloat(t.toString()) * 100).toFixed(2) / 100)
|
|
14364
14364
|
};
|
|
@@ -14368,10 +14368,10 @@ const A2 = Ar(function(t, r, e) {
|
|
|
14368
14368
|
if (r === "transparent") return e;
|
|
14369
14369
|
if (e === "transparent") return r;
|
|
14370
14370
|
if (t === 0) return e;
|
|
14371
|
-
const n =
|
|
14371
|
+
const n = vi(r), i = {
|
|
14372
14372
|
...n,
|
|
14373
14373
|
alpha: "alpha" in n && typeof n.alpha == "number" ? n.alpha : 1
|
|
14374
|
-
}, a =
|
|
14374
|
+
}, a = vi(e), s = {
|
|
14375
14375
|
...a,
|
|
14376
14376
|
alpha: "alpha" in a && typeof a.alpha == "number" ? a.alpha : 1
|
|
14377
14377
|
}, o = i.alpha - s.alpha, l = parseFloat(t.toString()) * 2 - 1, c = l * o === -1 ? l : l + o, u = 1 + l * o, d = (c / u + 1) / 2, h = 1 - d, p = {
|
|
@@ -14388,7 +14388,7 @@ Ar(function(t, r) {
|
|
|
14388
14388
|
const T2 = /^#[a-fA-F0-9]{6}$/, R2 = /^#[a-fA-F0-9]{8}$/, O2 = /^#[a-fA-F0-9]{3}$/, I2 = /^#[a-fA-F0-9]{4}$/, Ra = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, L2 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, M2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, P2 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
14389
14389
|
function pe(t, r, e, n) {
|
|
14390
14390
|
if (typeof t == "string" && typeof r == "number") {
|
|
14391
|
-
const i =
|
|
14391
|
+
const i = vi(t);
|
|
14392
14392
|
return `rgba(${i.red},${i.green},${i.blue},${r})`;
|
|
14393
14393
|
} else {
|
|
14394
14394
|
if (typeof t == "number" && typeof r == "number" && typeof e == "number" && typeof n == "number")
|
|
@@ -14405,7 +14405,7 @@ function Wl(t, r, e) {
|
|
|
14405
14405
|
return Vl(`#${on(t.red)}${on(t.green)}${on(t.blue)}`);
|
|
14406
14406
|
throw new at(6);
|
|
14407
14407
|
}
|
|
14408
|
-
function
|
|
14408
|
+
function vi(t) {
|
|
14409
14409
|
if (typeof t != "string")
|
|
14410
14410
|
throw new at(3);
|
|
14411
14411
|
const r = x2(t);
|
|
@@ -15618,7 +15618,7 @@ const $2 = {
|
|
|
15618
15618
|
* Copyright 2019 Google LLC
|
|
15619
15619
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15620
15620
|
*/
|
|
15621
|
-
const
|
|
15621
|
+
const Xr = globalThis, Ys = Xr.ShadowRoot && (Xr.ShadyCSS === void 0 || Xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xs = Symbol(), Gl = /* @__PURE__ */ new WeakMap();
|
|
15622
15622
|
let hd = class {
|
|
15623
15623
|
constructor(r, e, n) {
|
|
15624
15624
|
if (this._$cssResult$ = !0, n !== Xs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -15647,7 +15647,7 @@ const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Xs), _e = (t,
|
|
|
15647
15647
|
}, V2 = (t, r) => {
|
|
15648
15648
|
if (Ys) t.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
15649
15649
|
else for (const e of r) {
|
|
15650
|
-
const n = document.createElement("style"), i =
|
|
15650
|
+
const n = document.createElement("style"), i = Xr.litNonce;
|
|
15651
15651
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, t.appendChild(n);
|
|
15652
15652
|
}
|
|
15653
15653
|
}, Kl = Ys ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((r) => {
|
|
@@ -15660,7 +15660,7 @@ const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Xs), _e = (t,
|
|
|
15660
15660
|
* Copyright 2017 Google LLC
|
|
15661
15661
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15662
15662
|
*/
|
|
15663
|
-
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "", Oa = St.reactiveElementPolyfillSupport, er = (t, r) => t,
|
|
15663
|
+
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "", Oa = St.reactiveElementPolyfillSupport, er = (t, r) => t, yi = { toAttribute(t, r) {
|
|
15664
15664
|
switch (r) {
|
|
15665
15665
|
case Boolean:
|
|
15666
15666
|
t = t ? X2 : null;
|
|
@@ -15688,7 +15688,7 @@ const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnProperty
|
|
|
15688
15688
|
}
|
|
15689
15689
|
}
|
|
15690
15690
|
return e;
|
|
15691
|
-
} },
|
|
15691
|
+
} }, Ji = (t, r) => !W2(t, r), Zl = { attribute: !0, type: String, converter: yi, reflect: !1, hasChanged: Ji };
|
|
15692
15692
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), St.litPropertyMetadata ?? (St.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
15693
15693
|
let gn = class extends HTMLElement {
|
|
15694
15694
|
static addInitializer(r) {
|
|
@@ -15801,7 +15801,7 @@ let gn = class extends HTMLElement {
|
|
|
15801
15801
|
var a;
|
|
15802
15802
|
const n = this.constructor.elementProperties.get(r), i = this.constructor._$Eu(r, n);
|
|
15803
15803
|
if (i !== void 0 && n.reflect === !0) {
|
|
15804
|
-
const s = (((a = n.converter) == null ? void 0 : a.toAttribute) !== void 0 ? n.converter :
|
|
15804
|
+
const s = (((a = n.converter) == null ? void 0 : a.toAttribute) !== void 0 ? n.converter : yi).toAttribute(e, n.type);
|
|
15805
15805
|
this._$Em = r, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
15806
15806
|
}
|
|
15807
15807
|
}
|
|
@@ -15809,13 +15809,13 @@ let gn = class extends HTMLElement {
|
|
|
15809
15809
|
var a;
|
|
15810
15810
|
const n = this.constructor, i = n._$Eh.get(r);
|
|
15811
15811
|
if (i !== void 0 && this._$Em !== i) {
|
|
15812
|
-
const s = n.getPropertyOptions(i), o = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((a = s.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? s.converter :
|
|
15812
|
+
const s = n.getPropertyOptions(i), o = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((a = s.converter) == null ? void 0 : a.fromAttribute) !== void 0 ? s.converter : yi;
|
|
15813
15813
|
this._$Em = i, this[i] = o.fromAttribute(e, s.type), this._$Em = null;
|
|
15814
15814
|
}
|
|
15815
15815
|
}
|
|
15816
15816
|
requestUpdate(r, e, n) {
|
|
15817
15817
|
if (r !== void 0) {
|
|
15818
|
-
if (n ?? (n = this.constructor.getPropertyOptions(r)), !(n.hasChanged ??
|
|
15818
|
+
if (n ?? (n = this.constructor.getPropertyOptions(r)), !(n.hasChanged ?? Ji)(this[r], e)) return;
|
|
15819
15819
|
this.P(r, e, n);
|
|
15820
15820
|
}
|
|
15821
15821
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -15894,7 +15894,7 @@ gn.elementStyles = [], gn.shadowRootOptions = { mode: "open" }, gn[er("elementPr
|
|
|
15894
15894
|
* Copyright 2017 Google LLC
|
|
15895
15895
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15896
15896
|
*/
|
|
15897
|
-
const tr = globalThis,
|
|
15897
|
+
const tr = globalThis, bi = tr.trustedTypes, Yl = bi ? bi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pd = "$lit$", wt = `lit$${Math.random().toFixed(9).slice(2)}$`, fd = "?" + wt, Q2 = `<${fd}>`, Gt = document, fr = () => Gt.createComment(""), mr = (t) => t === null || typeof t != "object" && typeof t != "function", Qs = Array.isArray, ey = (t) => Qs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ia = `[
|
|
15898
15898
|
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${Ia}(?:([^\\s"'>=/]+)(${Ia}*=${Ia}*(?:[^
|
|
15899
15899
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), ec = /'/g, tc = /"/g, md = /^(?:script|style|textarea|title)$/i, gd = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), fe = gd(1), Qe = gd(2), At = Symbol.for("lit-noChange"), se = Symbol.for("lit-nothing"), nc = /* @__PURE__ */ new WeakMap(), Ht = Gt.createTreeWalker(Gt, 129);
|
|
15900
15900
|
function vd(t, r) {
|
|
@@ -15927,12 +15927,12 @@ let ps = class yd {
|
|
|
15927
15927
|
if (i.nodeType === 1) {
|
|
15928
15928
|
if (i.hasAttributes()) for (const d of i.getAttributeNames()) if (d.endsWith(pd)) {
|
|
15929
15929
|
const h = u[s++], p = i.getAttribute(d).split(wt), f = /([.?@])?(.*)/.exec(h);
|
|
15930
|
-
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? ry : f[1] === "?" ? iy : f[1] === "@" ? ay :
|
|
15930
|
+
l.push({ type: 1, index: a, name: f[2], strings: p, ctor: f[1] === "." ? ry : f[1] === "?" ? iy : f[1] === "@" ? ay : Zi }), i.removeAttribute(d);
|
|
15931
15931
|
} else d.startsWith(wt) && (l.push({ type: 6, index: a }), i.removeAttribute(d));
|
|
15932
15932
|
if (md.test(i.tagName)) {
|
|
15933
15933
|
const d = i.textContent.split(wt), h = d.length - 1;
|
|
15934
15934
|
if (h > 0) {
|
|
15935
|
-
i.textContent =
|
|
15935
|
+
i.textContent = bi ? bi.emptyScript : "";
|
|
15936
15936
|
for (let p = 0; p < h; p++) i.append(d[p], fr()), Ht.nextNode(), l.push({ type: 2, index: ++a });
|
|
15937
15937
|
i.append(d[h], fr());
|
|
15938
15938
|
}
|
|
@@ -16048,7 +16048,7 @@ class Tr {
|
|
|
16048
16048
|
this._$AM === void 0 && (this._$Cv = r, (e = this._$AP) == null || e.call(this, r));
|
|
16049
16049
|
}
|
|
16050
16050
|
}
|
|
16051
|
-
class
|
|
16051
|
+
class Zi {
|
|
16052
16052
|
get tagName() {
|
|
16053
16053
|
return this.element.tagName;
|
|
16054
16054
|
}
|
|
@@ -16073,7 +16073,7 @@ class Ji {
|
|
|
16073
16073
|
r === se ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
16074
16074
|
}
|
|
16075
16075
|
}
|
|
16076
|
-
class ry extends
|
|
16076
|
+
class ry extends Zi {
|
|
16077
16077
|
constructor() {
|
|
16078
16078
|
super(...arguments), this.type = 3;
|
|
16079
16079
|
}
|
|
@@ -16081,7 +16081,7 @@ class ry extends Ji {
|
|
|
16081
16081
|
this.element[this.name] = r === se ? void 0 : r;
|
|
16082
16082
|
}
|
|
16083
16083
|
}
|
|
16084
|
-
class iy extends
|
|
16084
|
+
class iy extends Zi {
|
|
16085
16085
|
constructor() {
|
|
16086
16086
|
super(...arguments), this.type = 4;
|
|
16087
16087
|
}
|
|
@@ -16089,7 +16089,7 @@ class iy extends Ji {
|
|
|
16089
16089
|
this.element.toggleAttribute(this.name, !!r && r !== se);
|
|
16090
16090
|
}
|
|
16091
16091
|
}
|
|
16092
|
-
class ay extends
|
|
16092
|
+
class ay extends Zi {
|
|
16093
16093
|
constructor(r, e, n, i, a) {
|
|
16094
16094
|
super(r, e, n, i, a), this.type = 5;
|
|
16095
16095
|
}
|
|
@@ -16448,7 +16448,7 @@ const Fe = (t) => (r, e) => {
|
|
|
16448
16448
|
* Copyright 2017 Google LLC
|
|
16449
16449
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16450
16450
|
*/
|
|
16451
|
-
const uy = { attribute: !0, type: String, converter:
|
|
16451
|
+
const uy = { attribute: !0, type: String, converter: yi, reflect: !1, hasChanged: Ji }, dy = (t = uy, r, e) => {
|
|
16452
16452
|
const { kind: n, metadata: i } = e;
|
|
16453
16453
|
let a = globalThis.litPropertyMetadata.get(i);
|
|
16454
16454
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), a.set(e.name, t), n === "accessor") {
|
|
@@ -16494,7 +16494,7 @@ const wn = (t) => t ?? se;
|
|
|
16494
16494
|
* Copyright 2017 Google LLC
|
|
16495
16495
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16496
16496
|
*/
|
|
16497
|
-
const
|
|
16497
|
+
const Yi = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xi = (t) => (...r) => ({ _$litDirective$: t, values: r });
|
|
16498
16498
|
let eo = class {
|
|
16499
16499
|
constructor(r) {
|
|
16500
16500
|
}
|
|
@@ -16516,10 +16516,10 @@ let eo = class {
|
|
|
16516
16516
|
* Copyright 2018 Google LLC
|
|
16517
16517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16518
16518
|
*/
|
|
16519
|
-
const
|
|
16519
|
+
const Qi = Xi(class extends eo {
|
|
16520
16520
|
constructor(t) {
|
|
16521
16521
|
var r;
|
|
16522
|
-
if (super(t), t.type !==
|
|
16522
|
+
if (super(t), t.type !== Yi.ATTRIBUTE || t.name !== "class" || ((r = t.strings) == null ? void 0 : r.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
16523
16523
|
}
|
|
16524
16524
|
render(t) {
|
|
16525
16525
|
return " " + Object.keys(t).filter((r) => t[r]).join(" ") + " ";
|
|
@@ -16856,7 +16856,7 @@ function fs(t, r) {
|
|
|
16856
16856
|
return e.__proto__ = n, e;
|
|
16857
16857
|
}, fs(t, r);
|
|
16858
16858
|
}
|
|
16859
|
-
function
|
|
16859
|
+
function ea(t, r) {
|
|
16860
16860
|
if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
|
|
16861
16861
|
t.prototype = Object.create(r && r.prototype, {
|
|
16862
16862
|
constructor: {
|
|
@@ -17092,14 +17092,14 @@ function Sy(t, r, e, n) {
|
|
|
17092
17092
|
var i = to(t, r, Object), a = i.obj, s = i.k;
|
|
17093
17093
|
a[s] = a[s] || [], a[s].push(e);
|
|
17094
17094
|
}
|
|
17095
|
-
function
|
|
17095
|
+
function wi(t, r) {
|
|
17096
17096
|
var e = to(t, r), n = e.obj, i = e.k;
|
|
17097
17097
|
if (n)
|
|
17098
17098
|
return n[i];
|
|
17099
17099
|
}
|
|
17100
17100
|
function Cy(t, r, e) {
|
|
17101
|
-
var n =
|
|
17102
|
-
return n !== void 0 ? n :
|
|
17101
|
+
var n = wi(t, e);
|
|
17102
|
+
return n !== void 0 ? n : wi(r, e);
|
|
17103
17103
|
}
|
|
17104
17104
|
function wd(t, r, e) {
|
|
17105
17105
|
for (var n in r)
|
|
@@ -17122,7 +17122,7 @@ function Ey(t) {
|
|
|
17122
17122
|
return xy[r];
|
|
17123
17123
|
}) : t;
|
|
17124
17124
|
}
|
|
17125
|
-
var
|
|
17125
|
+
var ta = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Ay = [" ", ",", "?", "!", ";"];
|
|
17126
17126
|
function Ty(t, r, e) {
|
|
17127
17127
|
r = r || "", e = e || "";
|
|
17128
17128
|
var n = Ay.filter(function(o) {
|
|
@@ -17138,7 +17138,7 @@ function Ty(t, r, e) {
|
|
|
17138
17138
|
}
|
|
17139
17139
|
return a;
|
|
17140
17140
|
}
|
|
17141
|
-
function
|
|
17141
|
+
function ki(t, r) {
|
|
17142
17142
|
var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
17143
17143
|
if (t) {
|
|
17144
17144
|
if (t[r]) return t[r];
|
|
@@ -17155,7 +17155,7 @@ function wi(t, r) {
|
|
|
17155
17155
|
if (o && typeof l[o] == "string") return l[o];
|
|
17156
17156
|
}
|
|
17157
17157
|
var c = n.slice(a + s).join(e);
|
|
17158
|
-
return c ?
|
|
17158
|
+
return c ? ki(l, c, e) : void 0;
|
|
17159
17159
|
}
|
|
17160
17160
|
i = i[n[a]];
|
|
17161
17161
|
}
|
|
@@ -17172,7 +17172,7 @@ function cc(t, r) {
|
|
|
17172
17172
|
}
|
|
17173
17173
|
return e;
|
|
17174
17174
|
}
|
|
17175
|
-
function
|
|
17175
|
+
function Hr(t) {
|
|
17176
17176
|
for (var r = 1; r < arguments.length; r++) {
|
|
17177
17177
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
17178
17178
|
r % 2 ? cc(Object(e), !0).forEach(function(n) {
|
|
@@ -17206,14 +17206,14 @@ function Oy() {
|
|
|
17206
17206
|
}
|
|
17207
17207
|
}
|
|
17208
17208
|
var Iy = function(t) {
|
|
17209
|
-
|
|
17209
|
+
ea(e, t);
|
|
17210
17210
|
var r = Ry(e);
|
|
17211
17211
|
function e(n) {
|
|
17212
17212
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
17213
17213
|
ns: ["translation"],
|
|
17214
17214
|
defaultNS: "translation"
|
|
17215
17215
|
};
|
|
17216
|
-
return ut(this, e), i = r.call(this),
|
|
17216
|
+
return ut(this, e), i = r.call(this), ta && Tt.call(Ct(i)), i.data = n || {}, i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.options.ignoreJSONStructure === void 0 && (i.options.ignoreJSONStructure = !0), i;
|
|
17217
17217
|
}
|
|
17218
17218
|
return dt(e, [{
|
|
17219
17219
|
key: "addNamespaces",
|
|
@@ -17231,8 +17231,8 @@ var Iy = function(t) {
|
|
|
17231
17231
|
value: function(i, a, s) {
|
|
17232
17232
|
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, l = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, c = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure, u = [i, a];
|
|
17233
17233
|
s && typeof s != "string" && (u = u.concat(s)), s && typeof s == "string" && (u = u.concat(l ? s.split(l) : s)), i.indexOf(".") > -1 && (u = i.split("."));
|
|
17234
|
-
var d =
|
|
17235
|
-
return d || !c || typeof s != "string" ? d :
|
|
17234
|
+
var d = wi(this.data, u);
|
|
17235
|
+
return d || !c || typeof s != "string" ? d : ki(this.data && this.data[i] && this.data[i][a], s, l);
|
|
17236
17236
|
}
|
|
17237
17237
|
}, {
|
|
17238
17238
|
key: "addResource",
|
|
@@ -17261,8 +17261,8 @@ var Iy = function(t) {
|
|
|
17261
17261
|
silent: !1
|
|
17262
17262
|
}, u = [i, a];
|
|
17263
17263
|
i.indexOf(".") > -1 && (u = i.split("."), o = s, s = a, a = u[1]), this.addNamespaces(a);
|
|
17264
|
-
var d =
|
|
17265
|
-
o ? wd(d, s, l) : d =
|
|
17264
|
+
var d = wi(this.data, u) || {};
|
|
17265
|
+
o ? wd(d, s, l) : d = Hr(Hr({}, d), s), lc(this.data, u, d), c.silent || this.emit("added", i, a, s);
|
|
17266
17266
|
}
|
|
17267
17267
|
}, {
|
|
17268
17268
|
key: "removeResourceBundle",
|
|
@@ -17277,7 +17277,7 @@ var Iy = function(t) {
|
|
|
17277
17277
|
}, {
|
|
17278
17278
|
key: "getResourceBundle",
|
|
17279
17279
|
value: function(i, a) {
|
|
17280
|
-
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ?
|
|
17280
|
+
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? Hr(Hr({}, {}), this.getResource(i, a)) : this.getResource(i, a);
|
|
17281
17281
|
}
|
|
17282
17282
|
}, {
|
|
17283
17283
|
key: "getDataByLanguage",
|
|
@@ -17354,11 +17354,11 @@ function My() {
|
|
|
17354
17354
|
}
|
|
17355
17355
|
}
|
|
17356
17356
|
var dc = {}, hc = function(t) {
|
|
17357
|
-
|
|
17357
|
+
ea(e, t);
|
|
17358
17358
|
var r = Ly(e);
|
|
17359
17359
|
function e(n) {
|
|
17360
17360
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17361
|
-
return ut(this, e), i = r.call(this),
|
|
17361
|
+
return ut(this, e), i = r.call(this), ta && Tt.call(Ct(i)), _y(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, Ct(i)), i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.logger = st.create("translator"), i;
|
|
17362
17362
|
}
|
|
17363
17363
|
return dt(e, [{
|
|
17364
17364
|
key: "changeLanguage",
|
|
@@ -17926,7 +17926,7 @@ function Ze(t) {
|
|
|
17926
17926
|
}
|
|
17927
17927
|
function gc(t, r, e) {
|
|
17928
17928
|
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = Cy(t, r, e);
|
|
17929
|
-
return !a && i && typeof e == "string" && (a =
|
|
17929
|
+
return !a && i && typeof e == "string" && (a = ki(t, e, n), a === void 0 && (a = ki(r, e, n))), a;
|
|
17930
17930
|
}
|
|
17931
17931
|
var By = function() {
|
|
17932
17932
|
function t() {
|
|
@@ -18229,11 +18229,11 @@ function qy(t, r) {
|
|
|
18229
18229
|
t.pending[r] !== void 0 && (delete t.pending[r], t.pendingCount--);
|
|
18230
18230
|
}
|
|
18231
18231
|
var Vy = function(t) {
|
|
18232
|
-
|
|
18232
|
+
ea(e, t);
|
|
18233
18233
|
var r = Uy(e);
|
|
18234
18234
|
function e(n, i, a) {
|
|
18235
18235
|
var s, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
18236
|
-
return ut(this, e), s = r.call(this),
|
|
18236
|
+
return ut(this, e), s = r.call(this), ta && Tt.call(Ct(s)), s.backend = n, s.store = i, s.services = a, s.languageUtils = a.languageUtils, s.options = o, s.logger = st.create("backendConnector"), s.waitingReads = [], s.maxParallelReads = o.maxParallelReads || 10, s.readingCalls = 0, s.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, s.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, s.state = {}, s.queue = [], s.backend && s.backend.init && s.backend.init(a, o.backend, o), s;
|
|
18237
18237
|
}
|
|
18238
18238
|
return dt(e, [{
|
|
18239
18239
|
key: "queueLoad",
|
|
@@ -18491,7 +18491,7 @@ function Gy() {
|
|
|
18491
18491
|
return !1;
|
|
18492
18492
|
}
|
|
18493
18493
|
}
|
|
18494
|
-
function
|
|
18494
|
+
function Ur() {
|
|
18495
18495
|
}
|
|
18496
18496
|
function Ky(t) {
|
|
18497
18497
|
var r = Object.getOwnPropertyNames(Object.getPrototypeOf(t));
|
|
@@ -18499,12 +18499,12 @@ function Ky(t) {
|
|
|
18499
18499
|
typeof t[e] == "function" && (t[e] = t[e].bind(t));
|
|
18500
18500
|
});
|
|
18501
18501
|
}
|
|
18502
|
-
var
|
|
18503
|
-
|
|
18502
|
+
var _i = function(t) {
|
|
18503
|
+
ea(e, t);
|
|
18504
18504
|
var r = Wy(e);
|
|
18505
18505
|
function e() {
|
|
18506
18506
|
var n, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
18507
|
-
if (ut(this, e), n = r.call(this),
|
|
18507
|
+
if (ut(this, e), n = r.call(this), ta && Tt.call(Ct(n)), n.options = kc(i), n.services = {}, n.logger = st, n.modules = {
|
|
18508
18508
|
external: []
|
|
18509
18509
|
}, Ky(Ct(n)), a && !n.isInitialized && !i.isClone) {
|
|
18510
18510
|
if (!n.options.initImmediate)
|
|
@@ -18550,7 +18550,7 @@ var ki = function(t) {
|
|
|
18550
18550
|
v.init && v.init(i);
|
|
18551
18551
|
});
|
|
18552
18552
|
}
|
|
18553
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
18553
|
+
if (this.format = this.options.interpolation.format, s || (s = Ur), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
18554
18554
|
var h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
18555
18555
|
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
18556
18556
|
}
|
|
@@ -18581,7 +18581,7 @@ var ki = function(t) {
|
|
|
18581
18581
|
}, {
|
|
18582
18582
|
key: "loadResources",
|
|
18583
18583
|
value: function(i) {
|
|
18584
|
-
var a = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
18584
|
+
var a = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ur, o = s, l = typeof i == "string" ? i : this.language;
|
|
18585
18585
|
if (typeof i == "function" && (o = i), !this.options.resources || this.options.partialBundledLanguages) {
|
|
18586
18586
|
if (l && l.toLowerCase() === "cimode") return o();
|
|
18587
18587
|
var c = [], u = function(p) {
|
|
@@ -18612,7 +18612,7 @@ var ki = function(t) {
|
|
|
18612
18612
|
key: "reloadResources",
|
|
18613
18613
|
value: function(i, a, s) {
|
|
18614
18614
|
var o = Bn();
|
|
18615
|
-
return i || (i = this.languages), a || (a = this.options.ns), s || (s =
|
|
18615
|
+
return i || (i = this.languages), a || (a = this.options.ns), s || (s = Ur), this.services.backendConnector.reload(i, a, function(l) {
|
|
18616
18616
|
o.resolve(), s(l);
|
|
18617
18617
|
}), o;
|
|
18618
18618
|
}
|
|
@@ -18747,7 +18747,7 @@ var ki = function(t) {
|
|
|
18747
18747
|
}, {
|
|
18748
18748
|
key: "cloneInstance",
|
|
18749
18749
|
value: function() {
|
|
18750
|
-
var i = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
18750
|
+
var i = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ur, o = rt(rt(rt({}, this.options), a), {
|
|
18751
18751
|
isClone: !0
|
|
18752
18752
|
}), l = new e(o);
|
|
18753
18753
|
(a.debug !== void 0 || a.prefix !== void 0) && (l.logger = l.logger.clone(a));
|
|
@@ -18777,12 +18777,12 @@ var ki = function(t) {
|
|
|
18777
18777
|
}
|
|
18778
18778
|
}]), e;
|
|
18779
18779
|
}(Tt);
|
|
18780
|
-
$t(
|
|
18780
|
+
$t(_i, "createInstance", function() {
|
|
18781
18781
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
18782
|
-
return new
|
|
18782
|
+
return new _i(t, r);
|
|
18783
18783
|
});
|
|
18784
|
-
var Ce =
|
|
18785
|
-
Ce.createInstance =
|
|
18784
|
+
var Ce = _i.createInstance();
|
|
18785
|
+
Ce.createInstance = _i.createInstance;
|
|
18786
18786
|
Ce.createInstance;
|
|
18787
18787
|
Ce.dir;
|
|
18788
18788
|
Ce.init;
|
|
@@ -18908,7 +18908,7 @@ let _d = class {
|
|
|
18908
18908
|
}
|
|
18909
18909
|
}
|
|
18910
18910
|
};
|
|
18911
|
-
const Yy = (t, r) => t === r || t.length === r.length && t.every((e, n) => !
|
|
18911
|
+
const Yy = (t, r) => t === r || t.length === r.length && t.every((e, n) => !Ji(e, r[n]));
|
|
18912
18912
|
class Xy extends _d {
|
|
18913
18913
|
constructor(r, e, n, i = !1) {
|
|
18914
18914
|
super(r, {
|
|
@@ -19112,20 +19112,22 @@ function hb(t) {
|
|
|
19112
19112
|
function pb(t) {
|
|
19113
19113
|
return lb.call(t) === "[object Date]";
|
|
19114
19114
|
}
|
|
19115
|
-
const
|
|
19115
|
+
const Or = (t) => (Array.isArray(Fa[t]) ? Fa[t] : [Fa[t]]).filter((e) => !!e), fb = (t, r) => Or(t).find((n) => n === r), mb = (t, r) => {
|
|
19116
19116
|
if (!t) return null;
|
|
19117
|
-
const e =
|
|
19117
|
+
const e = Or(r);
|
|
19118
19118
|
return nb(e, t);
|
|
19119
19119
|
}, gb = (t, r) => {
|
|
19120
19120
|
const e = rb(t).BaseDirectory;
|
|
19121
|
-
|
|
19121
|
+
if (!e) return null;
|
|
19122
|
+
const n = `${e.toLowerCase()}-${r.toUpperCase()}`;
|
|
19123
|
+
return Or(r).find((a) => a.toLowerCase() === n.toLowerCase()) ?? null;
|
|
19122
19124
|
}, vb = (t, r) => {
|
|
19123
19125
|
var a;
|
|
19124
19126
|
if (!t || !r) return null;
|
|
19125
19127
|
const e = t.match(/^\/([a-z]{2})(\/|$)/i), n = (a = e == null ? void 0 : e[1]) == null ? void 0 : a.toLowerCase();
|
|
19126
|
-
return n ?
|
|
19128
|
+
return n ? Or(r).find((s) => s.toLowerCase().startsWith(n)) ?? null : null;
|
|
19127
19129
|
}, yb = (t) => {
|
|
19128
|
-
const r =
|
|
19130
|
+
const r = Or(t);
|
|
19129
19131
|
return r.length > 0 ? r[0] : "fr-FR";
|
|
19130
19132
|
}, bb = (t) => {
|
|
19131
19133
|
const { country: r, cookies: e, path: n, isFromWebview: i, acceptLanguageHeader: a } = t;
|
|
@@ -19164,7 +19166,7 @@ function Sb(t) {
|
|
|
19164
19166
|
let r;
|
|
19165
19167
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(t) : r = t && t.buffer && xd(t.buffer), r;
|
|
19166
19168
|
}
|
|
19167
|
-
const Cb = ra("string"), We = ra("function"), Ed = ra("number"), ia = (t) => t !== null && typeof t == "object", xb = (t) => t === !0 || t === !1,
|
|
19169
|
+
const Cb = ra("string"), We = ra("function"), Ed = ra("number"), ia = (t) => t !== null && typeof t == "object", xb = (t) => t === !0 || t === !1, Qr = (t) => {
|
|
19168
19170
|
if (na(t) !== "object")
|
|
19169
19171
|
return !1;
|
|
19170
19172
|
const r = io(t);
|
|
@@ -19174,7 +19176,7 @@ const Cb = ra("string"), We = ra("function"), Ed = ra("number"), ia = (t) => t !
|
|
|
19174
19176
|
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r = na(t)) === "formdata" || // detect form-data instance
|
|
19175
19177
|
r === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
19176
19178
|
}, Lb = ht("URLSearchParams"), Mb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19177
|
-
function
|
|
19179
|
+
function Ir(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
19178
19180
|
if (t === null || typeof t > "u")
|
|
19179
19181
|
return;
|
|
19180
19182
|
let n, i;
|
|
@@ -19201,13 +19203,13 @@ const Td = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
19201
19203
|
function ms() {
|
|
19202
19204
|
const { caseless: t } = Rd(this) && this || {}, r = {}, e = (n, i) => {
|
|
19203
19205
|
const a = t && Ad(r, i) || i;
|
|
19204
|
-
|
|
19206
|
+
Qr(r[a]) && Qr(n) ? r[a] = ms(r[a], n) : Qr(n) ? r[a] = ms({}, n) : Ln(n) ? r[a] = n.slice() : r[a] = n;
|
|
19205
19207
|
};
|
|
19206
19208
|
for (let n = 0, i = arguments.length; n < i; n++)
|
|
19207
|
-
arguments[n] &&
|
|
19209
|
+
arguments[n] && Ir(arguments[n], e);
|
|
19208
19210
|
return r;
|
|
19209
19211
|
}
|
|
19210
|
-
const Pb = (t, r, e, { allOwnKeys: n } = {}) => (
|
|
19212
|
+
const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Ir(r, (i, a) => {
|
|
19211
19213
|
e && We(i) ? t[a] = Cd(i, e) : t[a] = i;
|
|
19212
19214
|
}, { allOwnKeys: n }), t), $b = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Fb = (t, r, e, n) => {
|
|
19213
19215
|
t.prototype = Object.create(r.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
@@ -19256,7 +19258,7 @@ const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19256
19258
|
}
|
|
19257
19259
|
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype), Vb = ht("RegExp"), Od = (t, r) => {
|
|
19258
19260
|
const e = Object.getOwnPropertyDescriptors(t), n = {};
|
|
19259
|
-
|
|
19261
|
+
Ir(e, (i, a) => {
|
|
19260
19262
|
let s;
|
|
19261
19263
|
(s = r(i, a, t)) !== !1 && (n[a] = s || i);
|
|
19262
19264
|
}), Object.defineProperties(t, n);
|
|
@@ -19305,7 +19307,7 @@ const Xb = (t) => {
|
|
|
19305
19307
|
if (!("toJSON" in n)) {
|
|
19306
19308
|
r[i] = n;
|
|
19307
19309
|
const a = Ln(n) ? [] : {};
|
|
19308
|
-
return
|
|
19310
|
+
return Ir(n, (s, o) => {
|
|
19309
19311
|
const l = e(s, i + 1);
|
|
19310
19312
|
!gr(l) && (a[o] = l);
|
|
19311
19313
|
}), r[i] = void 0, a;
|
|
@@ -19324,7 +19326,7 @@ const Xb = (t) => {
|
|
|
19324
19326
|
isNumber: Ed,
|
|
19325
19327
|
isBoolean: xb,
|
|
19326
19328
|
isObject: ia,
|
|
19327
|
-
isPlainObject:
|
|
19329
|
+
isPlainObject: Qr,
|
|
19328
19330
|
isUndefined: gr,
|
|
19329
19331
|
isDate: Eb,
|
|
19330
19332
|
isFile: Ab,
|
|
@@ -19335,7 +19337,7 @@ const Xb = (t) => {
|
|
|
19335
19337
|
isURLSearchParams: Lb,
|
|
19336
19338
|
isTypedArray: jb,
|
|
19337
19339
|
isFileList: Rb,
|
|
19338
|
-
forEach:
|
|
19340
|
+
forEach: Ir,
|
|
19339
19341
|
merge: ms,
|
|
19340
19342
|
extend: Pb,
|
|
19341
19343
|
trim: Mb,
|
|
@@ -19660,7 +19662,7 @@ function m3(t, r, e) {
|
|
|
19660
19662
|
}
|
|
19661
19663
|
return (0, JSON.stringify)(t);
|
|
19662
19664
|
}
|
|
19663
|
-
const
|
|
19665
|
+
const Lr = {
|
|
19664
19666
|
transitional: Nd,
|
|
19665
19667
|
adapter: ["xhr", "http"],
|
|
19666
19668
|
transformRequest: [function(r, e) {
|
|
@@ -19689,7 +19691,7 @@ const Ir = {
|
|
|
19689
19691
|
return a || i ? (e.setContentType("application/json", !1), m3(r)) : r;
|
|
19690
19692
|
}],
|
|
19691
19693
|
transformResponse: [function(r) {
|
|
19692
|
-
const e = this.transitional ||
|
|
19694
|
+
const e = this.transitional || Lr.transitional, n = e && e.forcedJSONParsing, i = this.responseType === "json";
|
|
19693
19695
|
if (r && E.isString(r) && (n && !this.responseType || i)) {
|
|
19694
19696
|
const s = !(e && e.silentJSONParsing) && i;
|
|
19695
19697
|
try {
|
|
@@ -19725,7 +19727,7 @@ const Ir = {
|
|
|
19725
19727
|
}
|
|
19726
19728
|
};
|
|
19727
19729
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
19728
|
-
|
|
19730
|
+
Lr.headers[t] = {};
|
|
19729
19731
|
});
|
|
19730
19732
|
const g3 = E.toObjectSet([
|
|
19731
19733
|
"age",
|
|
@@ -19756,8 +19758,8 @@ const g3 = E.toObjectSet([
|
|
|
19756
19758
|
function jn(t) {
|
|
19757
19759
|
return t && String(t).trim().toLowerCase();
|
|
19758
19760
|
}
|
|
19759
|
-
function
|
|
19760
|
-
return t === !1 || t == null ? t : E.isArray(t) ? t.map(
|
|
19761
|
+
function ei(t) {
|
|
19762
|
+
return t === !1 || t == null ? t : E.isArray(t) ? t.map(ei) : String(t);
|
|
19761
19763
|
}
|
|
19762
19764
|
function y3(t) {
|
|
19763
19765
|
const r = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -19802,7 +19804,7 @@ class Ge {
|
|
|
19802
19804
|
if (!u)
|
|
19803
19805
|
throw new Error("header name must be a non-empty string");
|
|
19804
19806
|
const d = E.findKey(i, u);
|
|
19805
|
-
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] =
|
|
19807
|
+
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] = ei(o));
|
|
19806
19808
|
}
|
|
19807
19809
|
const s = (o, l) => E.forEach(o, (c, u) => a(c, u, l));
|
|
19808
19810
|
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !b3(r) ? s(v3(r), e) : r != null && a(e, r, n), this;
|
|
@@ -19856,11 +19858,11 @@ class Ge {
|
|
|
19856
19858
|
return E.forEach(this, (i, a) => {
|
|
19857
19859
|
const s = E.findKey(n, a);
|
|
19858
19860
|
if (s) {
|
|
19859
|
-
e[s] =
|
|
19861
|
+
e[s] = ei(i), delete e[a];
|
|
19860
19862
|
return;
|
|
19861
19863
|
}
|
|
19862
19864
|
const o = r ? w3(a) : String(a).trim();
|
|
19863
|
-
o !== a && delete e[a], e[o] =
|
|
19865
|
+
o !== a && delete e[a], e[o] = ei(i), n[o] = !0;
|
|
19864
19866
|
}), this;
|
|
19865
19867
|
}
|
|
19866
19868
|
concat(...r) {
|
|
@@ -19912,7 +19914,7 @@ E.reduceDescriptors(Ge.prototype, ({ value: t }, r) => {
|
|
|
19912
19914
|
});
|
|
19913
19915
|
E.freezeMethods(Ge);
|
|
19914
19916
|
function Ba(t, r) {
|
|
19915
|
-
const e = this ||
|
|
19917
|
+
const e = this || Lr, n = r || e, i = Ge.from(n.headers);
|
|
19916
19918
|
let a = n.data;
|
|
19917
19919
|
return E.forEach(t, function(o) {
|
|
19918
19920
|
a = o.call(e, a, i.normalize(), r ? r.status : void 0);
|
|
@@ -19921,10 +19923,10 @@ function Ba(t, r) {
|
|
|
19921
19923
|
function jd(t) {
|
|
19922
19924
|
return !!(t && t.__CANCEL__);
|
|
19923
19925
|
}
|
|
19924
|
-
function
|
|
19926
|
+
function Mr(t, r, e) {
|
|
19925
19927
|
ae.call(this, t ?? "canceled", ae.ERR_CANCELED, r, e), this.name = "CanceledError";
|
|
19926
19928
|
}
|
|
19927
|
-
E.inherits(
|
|
19929
|
+
E.inherits(Mr, ae, {
|
|
19928
19930
|
__CANCEL__: !0
|
|
19929
19931
|
});
|
|
19930
19932
|
function _3(t, r, e) {
|
|
@@ -20108,7 +20110,7 @@ const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
|
20108
20110
|
i === void 0 && a.setContentType(null), "setRequestHeader" in d && E.forEach(a.toJSON(), function(y, v) {
|
|
20109
20111
|
d.setRequestHeader(v, y);
|
|
20110
20112
|
}), E.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), s && s !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", Ic(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ic(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
|
|
20111
|
-
d && (n(!g || g.type ? new
|
|
20113
|
+
d && (n(!g || g.type ? new Mr(null, t, d) : g), d.abort(), d = null);
|
|
20112
20114
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
20113
20115
|
const f = A3(h);
|
|
20114
20116
|
if (f && ot.protocols.indexOf(f) === -1) {
|
|
@@ -20163,13 +20165,13 @@ const Lc = (t) => `- ${t}`, I3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20163
20165
|
};
|
|
20164
20166
|
function ja(t) {
|
|
20165
20167
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
20166
|
-
throw new
|
|
20168
|
+
throw new Mr(null, t);
|
|
20167
20169
|
}
|
|
20168
20170
|
function Mc(t) {
|
|
20169
20171
|
return ja(t), t.headers = Ge.from(t.headers), t.data = Ba.call(
|
|
20170
20172
|
t,
|
|
20171
20173
|
t.transformRequest
|
|
20172
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ud.getAdapter(t.adapter ||
|
|
20174
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ud.getAdapter(t.adapter || Lr.adapter)(t).then(function(n) {
|
|
20173
20175
|
return ja(t), n.data = Ba.call(
|
|
20174
20176
|
t,
|
|
20175
20177
|
t.transformResponse,
|
|
@@ -20436,7 +20438,7 @@ class oo {
|
|
|
20436
20438
|
n.unsubscribe(a);
|
|
20437
20439
|
}, s;
|
|
20438
20440
|
}, r(function(a, s, o) {
|
|
20439
|
-
n.reason || (n.reason = new
|
|
20441
|
+
n.reason || (n.reason = new Mr(a, s, o), e(n.reason));
|
|
20440
20442
|
});
|
|
20441
20443
|
}
|
|
20442
20444
|
/**
|
|
@@ -20561,9 +20563,9 @@ function qd(t) {
|
|
|
20561
20563
|
return qd(xn(t, i));
|
|
20562
20564
|
}, e;
|
|
20563
20565
|
}
|
|
20564
|
-
const j = qd(
|
|
20566
|
+
const j = qd(Lr);
|
|
20565
20567
|
j.Axios = zt;
|
|
20566
|
-
j.CanceledError =
|
|
20568
|
+
j.CanceledError = Mr;
|
|
20567
20569
|
j.CancelToken = oo;
|
|
20568
20570
|
j.isCancel = jd;
|
|
20569
20571
|
j.VERSION = zd;
|
|
@@ -20940,7 +20942,7 @@ var K3 = Object.defineProperty, J3 = Object.getOwnPropertyDescriptor, Oe = (t, r
|
|
|
20940
20942
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20941
20943
|
return n && i && K3(r, e, i), i;
|
|
20942
20944
|
};
|
|
20943
|
-
const
|
|
20945
|
+
const Ci = class Ci extends ge {
|
|
20944
20946
|
constructor() {
|
|
20945
20947
|
super(), this.disabled = !1, this.size = "medium", this.iconPosition = "left", this.type = "button", this.reversed = !1, this.target = "_self", this.loading = !1, this.internals = this.attachInternals();
|
|
20946
20948
|
}
|
|
@@ -20957,7 +20959,7 @@ const Si = class Si extends ge {
|
|
|
20957
20959
|
r && Gd(r);
|
|
20958
20960
|
}
|
|
20959
20961
|
renderElement() {
|
|
20960
|
-
const r = !!this.href, e = this.disabled, n =
|
|
20962
|
+
const r = !!this.href, e = this.disabled, n = Qi({
|
|
20961
20963
|
button: !0,
|
|
20962
20964
|
"has-content": this._hasDefaultSlot
|
|
20963
20965
|
}), i = this.loading && this.loadingText ? this.loadingText : jt`<slot></slot>`, a = this.icon ? jt`<${_s(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${_s(
|
|
@@ -20984,8 +20986,8 @@ const Si = class Si extends ge {
|
|
|
20984
20986
|
</button>`;
|
|
20985
20987
|
}
|
|
20986
20988
|
};
|
|
20987
|
-
|
|
20988
|
-
let xe =
|
|
20989
|
+
Ci.formAssociated = !0, Ci.styles = [ge.styles, ly];
|
|
20990
|
+
let xe = Ci;
|
|
20989
20991
|
Oe([
|
|
20990
20992
|
z({ type: Boolean, reflect: !0 })
|
|
20991
20993
|
], xe.prototype, "disabled", 2);
|
|
@@ -21187,7 +21189,7 @@ const rr = (t, r) => {
|
|
|
21187
21189
|
if (e === void 0) return !1;
|
|
21188
21190
|
for (const i of e) (n = i._$AO) == null || n.call(i, r, !1), rr(i, r);
|
|
21189
21191
|
return !0;
|
|
21190
|
-
},
|
|
21192
|
+
}, Si = (t) => {
|
|
21191
21193
|
let r, e;
|
|
21192
21194
|
do {
|
|
21193
21195
|
if ((r = t._$AM) === void 0) break;
|
|
@@ -21202,16 +21204,16 @@ const rr = (t, r) => {
|
|
|
21202
21204
|
}
|
|
21203
21205
|
};
|
|
21204
21206
|
function rw(t) {
|
|
21205
|
-
this._$AN !== void 0 ? (
|
|
21207
|
+
this._$AN !== void 0 ? (Si(this), this._$AM = t, Kd(this)) : this._$AM = t;
|
|
21206
21208
|
}
|
|
21207
21209
|
function iw(t, r = !1, e = 0) {
|
|
21208
21210
|
const n = this._$AH, i = this._$AN;
|
|
21209
|
-
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) rr(n[a], !1),
|
|
21210
|
-
else n != null && (rr(n, !1),
|
|
21211
|
+
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) rr(n[a], !1), Si(n[a]);
|
|
21212
|
+
else n != null && (rr(n, !1), Si(n));
|
|
21211
21213
|
else rr(this, t);
|
|
21212
21214
|
}
|
|
21213
21215
|
const aw = (t) => {
|
|
21214
|
-
t.type ==
|
|
21216
|
+
t.type == Yi.CHILD && (t._$AP ?? (t._$AP = iw), t._$AQ ?? (t._$AQ = rw));
|
|
21215
21217
|
};
|
|
21216
21218
|
let Jd = class extends eo {
|
|
21217
21219
|
constructor() {
|
|
@@ -21222,7 +21224,7 @@ let Jd = class extends eo {
|
|
|
21222
21224
|
}
|
|
21223
21225
|
_$AO(r, e = !0) {
|
|
21224
21226
|
var n, i;
|
|
21225
|
-
r !== this.isConnected && (this.isConnected = r, r ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (rr(this, r),
|
|
21227
|
+
r !== this.isConnected && (this.isConnected = r, r ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (rr(this, r), Si(this));
|
|
21226
21228
|
}
|
|
21227
21229
|
setValue(r) {
|
|
21228
21230
|
if (nw(this._$Ct)) this._$Ct._$AI(r, this);
|
|
@@ -21236,7 +21238,7 @@ let Jd = class extends eo {
|
|
|
21236
21238
|
reconnected() {
|
|
21237
21239
|
}
|
|
21238
21240
|
};
|
|
21239
|
-
const Ha = /* @__PURE__ */ new WeakMap(), sw =
|
|
21241
|
+
const Ha = /* @__PURE__ */ new WeakMap(), sw = Xi(class extends Jd {
|
|
21240
21242
|
render(t) {
|
|
21241
21243
|
return se;
|
|
21242
21244
|
}
|
|
@@ -21839,7 +21841,7 @@ const Ua = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = (
|
|
|
21839
21841
|
} }, cw = { duration: 333, easing: "ease-in-out" }, uw = ["left", "top", "width", "height", "opacity", "color", "background"], Wc = /* @__PURE__ */ new WeakMap();
|
|
21840
21842
|
class dw extends Jd {
|
|
21841
21843
|
constructor(r) {
|
|
21842
|
-
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type ===
|
|
21844
|
+
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type === Yi.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
21843
21845
|
this.createFinished();
|
|
21844
21846
|
}
|
|
21845
21847
|
createFinished() {
|
|
@@ -22008,7 +22010,7 @@ class dw extends Jd {
|
|
|
22008
22010
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
22009
22011
|
}
|
|
22010
22012
|
}
|
|
22011
|
-
const
|
|
22013
|
+
const zr = Xi(dw);
|
|
22012
22014
|
class hw extends $3 {
|
|
22013
22015
|
constructor(r, e, n) {
|
|
22014
22016
|
super({
|
|
@@ -22067,28 +22069,28 @@ function pw() {
|
|
|
22067
22069
|
}
|
|
22068
22070
|
var Zd = (t) => {
|
|
22069
22071
|
throw TypeError(t);
|
|
22070
|
-
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e), qa = (t, r, e) => (Yd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Va = (t, r, e) => r.has(t) ? Zd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Wa = (t, r, e, n) => (Yd(t, r, "write to private field"), r.set(t, e), e),
|
|
22072
|
+
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e), qa = (t, r, e) => (Yd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Va = (t, r, e) => r.has(t) ? Zd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Wa = (t, r, e, n) => (Yd(t, r, "write to private field"), r.set(t, e), e), ti, ni, ri;
|
|
22071
22073
|
class Xd {
|
|
22072
22074
|
constructor(r, e) {
|
|
22073
|
-
Va(this,
|
|
22075
|
+
Va(this, ti, pw()), Va(this, ni, null), Va(this, ri, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
22074
22076
|
}
|
|
22075
22077
|
get sourceId() {
|
|
22076
|
-
return qa(this,
|
|
22078
|
+
return qa(this, ti);
|
|
22077
22079
|
}
|
|
22078
22080
|
set sourceId(r) {
|
|
22079
|
-
Wa(this,
|
|
22081
|
+
Wa(this, ti, r);
|
|
22080
22082
|
}
|
|
22081
22083
|
get onMessage() {
|
|
22082
|
-
return qa(this,
|
|
22084
|
+
return qa(this, ni);
|
|
22083
22085
|
}
|
|
22084
22086
|
set onMessage(r) {
|
|
22085
|
-
Wa(this,
|
|
22087
|
+
Wa(this, ni, r);
|
|
22086
22088
|
}
|
|
22087
22089
|
get onError() {
|
|
22088
|
-
return qa(this,
|
|
22090
|
+
return qa(this, ri);
|
|
22089
22091
|
}
|
|
22090
22092
|
set onError(r) {
|
|
22091
|
-
Wa(this,
|
|
22093
|
+
Wa(this, ri, r);
|
|
22092
22094
|
}
|
|
22093
22095
|
registerOnMessageHandler() {
|
|
22094
22096
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -22108,9 +22110,9 @@ class Xd {
|
|
|
22108
22110
|
this.channel.close();
|
|
22109
22111
|
}
|
|
22110
22112
|
}
|
|
22111
|
-
ei = /* @__PURE__ */ new WeakMap();
|
|
22112
22113
|
ti = /* @__PURE__ */ new WeakMap();
|
|
22113
22114
|
ni = /* @__PURE__ */ new WeakMap();
|
|
22115
|
+
ri = /* @__PURE__ */ new WeakMap();
|
|
22114
22116
|
function Qd() {
|
|
22115
22117
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
22116
22118
|
}
|
|
@@ -22138,7 +22140,7 @@ const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), mw =
|
|
|
22138
22140
|
*/
|
|
22139
22141
|
let Ss = class extends eo {
|
|
22140
22142
|
constructor(r) {
|
|
22141
|
-
if (super(r), this.it = se, r.type !==
|
|
22143
|
+
if (super(r), this.it = se, r.type !== Yi.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
22142
22144
|
}
|
|
22143
22145
|
render(r) {
|
|
22144
22146
|
if (r === se || r == null) return this._t = void 0, this.it = r;
|
|
@@ -22151,7 +22153,7 @@ let Ss = class extends eo {
|
|
|
22151
22153
|
}
|
|
22152
22154
|
};
|
|
22153
22155
|
Ss.directiveName = "unsafeHTML", Ss.resultType = 1;
|
|
22154
|
-
const eh =
|
|
22156
|
+
const eh = Xi(Ss);
|
|
22155
22157
|
/**
|
|
22156
22158
|
* @license
|
|
22157
22159
|
* Copyright 2021 Google LLC
|
|
@@ -22478,7 +22480,7 @@ Cs.styles = [gt.styles, Ew];
|
|
|
22478
22480
|
Cs = Rw([
|
|
22479
22481
|
Fe("lr-icon-button")
|
|
22480
22482
|
], Cs);
|
|
22481
|
-
var Ow = Object.defineProperty, Iw = Object.getOwnPropertyDescriptor,
|
|
22483
|
+
var Ow = Object.defineProperty, Iw = Object.getOwnPropertyDescriptor, Pr = (t, r, e, n) => {
|
|
22482
22484
|
for (var i = n > 1 ? void 0 : n ? Iw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22483
22485
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22484
22486
|
return n && i && Ow(r, e, i), i;
|
|
@@ -22538,19 +22540,19 @@ let Jt = class extends ge {
|
|
|
22538
22540
|
}
|
|
22539
22541
|
};
|
|
22540
22542
|
Jt.styles = [ge.styles, xw];
|
|
22541
|
-
|
|
22543
|
+
Pr([
|
|
22542
22544
|
fo({ context: sa })
|
|
22543
22545
|
], Jt.prototype, "messageContext", 2);
|
|
22544
|
-
|
|
22546
|
+
Pr([
|
|
22545
22547
|
Pt()
|
|
22546
22548
|
], Jt.prototype, "upActive", 2);
|
|
22547
|
-
|
|
22549
|
+
Pr([
|
|
22548
22550
|
Pt()
|
|
22549
22551
|
], Jt.prototype, "downActive", 2);
|
|
22550
|
-
|
|
22552
|
+
Pr([
|
|
22551
22553
|
Pt()
|
|
22552
22554
|
], Jt.prototype, "score", 2);
|
|
22553
|
-
Jt =
|
|
22555
|
+
Jt = Pr([
|
|
22554
22556
|
Fe("lr-chatbot-message-rating")
|
|
22555
22557
|
], Jt);
|
|
22556
22558
|
const Lw = _e`
|
|
@@ -22617,7 +22619,7 @@ mo([
|
|
|
22617
22619
|
br = mo([
|
|
22618
22620
|
Fe("lr-rating-element")
|
|
22619
22621
|
], br);
|
|
22620
|
-
var Fw = Object.defineProperty, Nw = Object.getOwnPropertyDescriptor,
|
|
22622
|
+
var Fw = Object.defineProperty, Nw = Object.getOwnPropertyDescriptor, $r = (t, r, e, n) => {
|
|
22621
22623
|
for (var i = n > 1 ? void 0 : n ? Nw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22622
22624
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22623
22625
|
return n && i && Fw(r, e, i), i;
|
|
@@ -22640,7 +22642,7 @@ let Rt = class extends ge {
|
|
|
22640
22642
|
this.value = t;
|
|
22641
22643
|
}
|
|
22642
22644
|
renderElement() {
|
|
22643
|
-
const t =
|
|
22645
|
+
const t = Qi({
|
|
22644
22646
|
disabled: this.value > 0
|
|
22645
22647
|
});
|
|
22646
22648
|
return fe`
|
|
@@ -22665,19 +22667,19 @@ let Rt = class extends ge {
|
|
|
22665
22667
|
};
|
|
22666
22668
|
Rt.formAssociated = !0;
|
|
22667
22669
|
Rt.styles = [ge.styles, Lw];
|
|
22668
|
-
|
|
22670
|
+
$r([
|
|
22669
22671
|
z({ type: String })
|
|
22670
22672
|
], Rt.prototype, "size", 2);
|
|
22671
|
-
|
|
22673
|
+
$r([
|
|
22672
22674
|
z({ type: Number })
|
|
22673
22675
|
], Rt.prototype, "value", 2);
|
|
22674
|
-
|
|
22676
|
+
$r([
|
|
22675
22677
|
z({ type: Boolean })
|
|
22676
22678
|
], Rt.prototype, "submitOnChange", 2);
|
|
22677
|
-
|
|
22679
|
+
$r([
|
|
22678
22680
|
Pt()
|
|
22679
22681
|
], Rt.prototype, "hoveredRating", 2);
|
|
22680
|
-
Rt =
|
|
22682
|
+
Rt = $r([
|
|
22681
22683
|
Fe("lr-rating")
|
|
22682
22684
|
], Rt);
|
|
22683
22685
|
const Dw = _e`
|
|
@@ -22813,7 +22815,7 @@ let Ee = class extends ge {
|
|
|
22813
22815
|
this.focused = !1;
|
|
22814
22816
|
}
|
|
22815
22817
|
renderElement() {
|
|
22816
|
-
const t =
|
|
22818
|
+
const t = Qi({
|
|
22817
22819
|
"input-wrapper": !0,
|
|
22818
22820
|
"has-icon": !!this.icon,
|
|
22819
22821
|
[`icon-${this.iconPosition}`]: !!this.icon
|
|
@@ -22957,7 +22959,7 @@ let Ot = class extends ge {
|
|
|
22957
22959
|
}
|
|
22958
22960
|
}
|
|
22959
22961
|
renderFeedbackElement() {
|
|
22960
|
-
const t = !!(this.score && this.score <= 3), r = this.feedback && !this.score && !t, e =
|
|
22962
|
+
const t = !!(this.score && this.score <= 3), r = this.feedback && !this.score && !t, e = Qi({
|
|
22961
22963
|
feedback: !0,
|
|
22962
22964
|
"feedback-content": t,
|
|
22963
22965
|
"feedback-confirm": r
|
|
@@ -23091,50 +23093,50 @@ var Gw = Object.defineProperty, Kw = Object.getOwnPropertyDescriptor, rh = (t) =
|
|
|
23091
23093
|
for (var i = n > 1 ? void 0 : n ? Kw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23092
23094
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23093
23095
|
return n && i && Gw(r, e, i), i;
|
|
23094
|
-
}, ih = (t, r, e) => r.has(t) || rh("Cannot " + e), Un = (t, r, e) => (ih(t, r, "read from private field"), e ? e.call(t) : r.get(t)), zn = (t, r, e) => r.has(t) ? rh("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), qn = (t, r, e, n) => (ih(t, r, "write to private field"), r.set(t, e), e),
|
|
23096
|
+
}, ih = (t, r, e) => r.has(t) || rh("Cannot " + e), Un = (t, r, e) => (ih(t, r, "read from private field"), e ? e.call(t) : r.get(t)), zn = (t, r, e) => r.has(t) ? rh("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), qn = (t, r, e, n) => (ih(t, r, "write to private field"), r.set(t, e), e), ii, ai, si, oi, li;
|
|
23095
23097
|
const ah = "lr.chatbot.broadcast_channel." + document.location.hostname, vn = "lr.chatbot.conversation_id", Vn = "lr.chatbot.conversation_state";
|
|
23096
23098
|
let It = class extends ge {
|
|
23097
23099
|
constructor() {
|
|
23098
23100
|
super({
|
|
23099
23101
|
translationsLoaderGetter: () => new hw(this.apiUrl, this.country, this.language),
|
|
23100
23102
|
fetchAsyncServerTranslations: !0
|
|
23101
|
-
}), zn(this,
|
|
23103
|
+
}), zn(this, ii, "/bff"), zn(this, ai, !1), zn(this, si, !1), zn(this, oi, !1), zn(this, li, !1), this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new Xd(
|
|
23102
23104
|
this,
|
|
23103
23105
|
ah
|
|
23104
23106
|
), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
23105
23107
|
}
|
|
23106
23108
|
get apiUrl() {
|
|
23107
|
-
return Un(this,
|
|
23109
|
+
return Un(this, ii);
|
|
23108
23110
|
}
|
|
23109
23111
|
set apiUrl(t) {
|
|
23110
|
-
qn(this,
|
|
23112
|
+
qn(this, ii, t);
|
|
23111
23113
|
}
|
|
23112
23114
|
get opened() {
|
|
23113
|
-
return Un(this,
|
|
23115
|
+
return Un(this, ai);
|
|
23114
23116
|
}
|
|
23115
23117
|
set opened(t) {
|
|
23116
|
-
qn(this,
|
|
23118
|
+
qn(this, ai, t);
|
|
23117
23119
|
}
|
|
23118
23120
|
get minimized() {
|
|
23119
|
-
return Un(this,
|
|
23121
|
+
return Un(this, si);
|
|
23120
23122
|
}
|
|
23121
23123
|
set minimized(t) {
|
|
23122
|
-
qn(this,
|
|
23124
|
+
qn(this, si, t);
|
|
23123
23125
|
}
|
|
23124
23126
|
get sticky() {
|
|
23125
|
-
return Un(this,
|
|
23127
|
+
return Un(this, oi);
|
|
23126
23128
|
}
|
|
23127
23129
|
set sticky(t) {
|
|
23128
|
-
qn(this,
|
|
23130
|
+
qn(this, oi, t);
|
|
23129
23131
|
}
|
|
23130
23132
|
get exitOverlay() {
|
|
23131
|
-
return Un(this,
|
|
23133
|
+
return Un(this, li);
|
|
23132
23134
|
}
|
|
23133
23135
|
set exitOverlay(t) {
|
|
23134
|
-
qn(this,
|
|
23136
|
+
qn(this, li, t);
|
|
23135
23137
|
}
|
|
23136
23138
|
getVersion() {
|
|
23137
|
-
return "LR Chatbot - v0.31.
|
|
23139
|
+
return "LR Chatbot - v0.31.8";
|
|
23138
23140
|
}
|
|
23139
23141
|
async connectedCallback() {
|
|
23140
23142
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -23381,7 +23383,7 @@ let It = class extends ge {
|
|
|
23381
23383
|
renderExitOverlay() {
|
|
23382
23384
|
return fe`
|
|
23383
23385
|
<div
|
|
23384
|
-
${
|
|
23386
|
+
${zr({
|
|
23385
23387
|
in: zc,
|
|
23386
23388
|
out: Uc
|
|
23387
23389
|
})}
|
|
@@ -23408,7 +23410,7 @@ let It = class extends ge {
|
|
|
23408
23410
|
aria-label="chat window"
|
|
23409
23411
|
role="region"
|
|
23410
23412
|
part="wrapper"
|
|
23411
|
-
${
|
|
23413
|
+
${zr()}
|
|
23412
23414
|
>
|
|
23413
23415
|
<div id="chat-wrapper-menu" part="menu">
|
|
23414
23416
|
<span id="chat-wrapper-menu-title">${be("chatbot:title")}</span>
|
|
@@ -23439,7 +23441,7 @@ let It = class extends ge {
|
|
|
23439
23441
|
<div id="chat-wrapper-content">
|
|
23440
23442
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
23441
23443
|
${this._conversationHistoryTask.status === $a.PENDING ? fe`<lr-loading-overlay
|
|
23442
|
-
${
|
|
23444
|
+
${zr({
|
|
23443
23445
|
in: zc,
|
|
23444
23446
|
out: Uc
|
|
23445
23447
|
})}
|
|
@@ -23458,7 +23460,7 @@ let It = class extends ge {
|
|
|
23458
23460
|
aria-label="${be("chatbot:minimized.ariaLabel")}"
|
|
23459
23461
|
aria-expanded=${!this.minimized}
|
|
23460
23462
|
part="wrapper-minimized"
|
|
23461
|
-
${
|
|
23463
|
+
${zr({
|
|
23462
23464
|
in: Hc,
|
|
23463
23465
|
out: Hc
|
|
23464
23466
|
})}
|
|
@@ -23472,11 +23474,11 @@ let It = class extends ge {
|
|
|
23472
23474
|
return fe`${this.renderChatPopin()}${this.minimized && !this.opened ? this.renderMinimizedChat() : se}`;
|
|
23473
23475
|
}
|
|
23474
23476
|
};
|
|
23475
|
-
ri = /* @__PURE__ */ new WeakMap();
|
|
23476
23477
|
ii = /* @__PURE__ */ new WeakMap();
|
|
23477
23478
|
ai = /* @__PURE__ */ new WeakMap();
|
|
23478
23479
|
si = /* @__PURE__ */ new WeakMap();
|
|
23479
23480
|
oi = /* @__PURE__ */ new WeakMap();
|
|
23481
|
+
li = /* @__PURE__ */ new WeakMap();
|
|
23480
23482
|
It.styles = [ge.styles, ow];
|
|
23481
23483
|
Pn([
|
|
23482
23484
|
z({ type: String })
|