lr-chatbot 0.11.0 → 0.12.0
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.
|
@@ -12,7 +12,7 @@ function Uc(n) {
|
|
|
12
12
|
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
13
13
|
}
|
|
14
14
|
function zc(n) {
|
|
15
|
-
if (Array.isArray(n)) return
|
|
15
|
+
if (Array.isArray(n)) return zi(n);
|
|
16
16
|
}
|
|
17
17
|
function Wc(n, r) {
|
|
18
18
|
var e = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
@@ -48,20 +48,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48
48
|
}
|
|
49
49
|
function tl(n, r) {
|
|
50
50
|
if (n) {
|
|
51
|
-
if (typeof n == "string") return
|
|
51
|
+
if (typeof n == "string") return zi(n, r);
|
|
52
52
|
var e = Object.prototype.toString.call(n).slice(8, -1);
|
|
53
53
|
if (e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set") return Array.from(n);
|
|
54
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return
|
|
54
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return zi(n, r);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function zi(n, r) {
|
|
58
58
|
(r == null || r > n.length) && (r = n.length);
|
|
59
59
|
for (var e = 0, t = new Array(r); e < r; e++) t[e] = n[e];
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Wi(n) {
|
|
63
63
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
64
|
-
return
|
|
64
|
+
return Wi = function(t) {
|
|
65
65
|
if (t === null || !Vc(t)) return t;
|
|
66
66
|
if (typeof t != "function")
|
|
67
67
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -73,7 +73,7 @@ function zi(n) {
|
|
|
73
73
|
return qc(t, arguments, Cn(this).constructor);
|
|
74
74
|
}
|
|
75
75
|
return i.prototype = Object.create(t.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), xn(i, t);
|
|
76
|
-
},
|
|
76
|
+
}, Wi(n);
|
|
77
77
|
}
|
|
78
78
|
function qc(n, r, e) {
|
|
79
79
|
if (da()) return Reflect.construct.apply(null, arguments);
|
|
@@ -548,7 +548,7 @@ var Jc = /* @__PURE__ */ function() {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
}]);
|
|
551
|
-
}(),
|
|
551
|
+
}(), qi = /* @__PURE__ */ function() {
|
|
552
552
|
function n() {
|
|
553
553
|
k(this, n);
|
|
554
554
|
}
|
|
@@ -567,8 +567,8 @@ var Jc = /* @__PURE__ */ function() {
|
|
|
567
567
|
}
|
|
568
568
|
}]);
|
|
569
569
|
}();
|
|
570
|
-
|
|
571
|
-
var rl =
|
|
570
|
+
qi.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", qi.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
571
|
+
var rl = qi, il = /* @__PURE__ */ function() {
|
|
572
572
|
function n() {
|
|
573
573
|
k(this, n);
|
|
574
574
|
}
|
|
@@ -614,9 +614,9 @@ il.DEFAULT_COMPONENT_STYLE = {
|
|
|
614
614
|
// this is also causing the chat to squeeze when there is no space
|
|
615
615
|
overflow: "hidden"
|
|
616
616
|
};
|
|
617
|
-
var
|
|
617
|
+
var pi = il, ve = /* @__PURE__ */ function(n) {
|
|
618
618
|
return n.ESCAPE = "Escape", n.ENTER = "Enter", n.TAB = "Tab", n.ARROW_UP = "ArrowUp", n.ARROW_DOWN = "ArrowDown", n.ARROW_RIGHT = "ArrowRight", n.ARROW_LEFT = "ArrowLeft", n.BACKSPACE = "Backspace", n.DELETE = "Delete", n.META = "Meta", n.CONTROL = "Control", n;
|
|
619
|
-
}(ve || {}), Jn,
|
|
619
|
+
}(ve || {}), Jn, Zt = (Jn = /* @__PURE__ */ w(function n() {
|
|
620
620
|
k(this, n);
|
|
621
621
|
}), Jn.IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Jn.IS_CHROMIUM = window.chrome, Jn), al = /* @__PURE__ */ function() {
|
|
622
622
|
function n() {
|
|
@@ -668,7 +668,7 @@ var Yc = al, Xc = /* @__PURE__ */ function() {
|
|
|
668
668
|
a && ((i = document.execCommand) == null || i.call(document, "insertText", !1, a));
|
|
669
669
|
}
|
|
670
670
|
}]);
|
|
671
|
-
}(),
|
|
671
|
+
}(), Vi = /* @__PURE__ */ function() {
|
|
672
672
|
function n(r, e, t) {
|
|
673
673
|
var i = this;
|
|
674
674
|
k(this, n);
|
|
@@ -682,7 +682,7 @@ var Yc = al, Xc = /* @__PURE__ */ function() {
|
|
|
682
682
|
key: "createInputElement",
|
|
683
683
|
value: function(e) {
|
|
684
684
|
var t, i, a = document.createElement("div");
|
|
685
|
-
return a.id = n.TEXT_INPUT_ID, a.classList.add("text-input-styling", n.PLACEHOLDER_TEXT_CLASS),
|
|
685
|
+
return a.id = n.TEXT_INPUT_ID, a.classList.add("text-input-styling", n.PLACEHOLDER_TEXT_CLASS), Zt.IS_CHROMIUM && n.preventAutomaticScrollUpOnNewLine(a), typeof (e == null ? void 0 : e.disabled) == "boolean" && e.disabled === !0 ? (a.contentEditable = "false", a.classList.add("text-input-disabled")) : (a.contentEditable = "true", this.addEventListeners(a, e)), Object.assign(a.style, (t = e == null ? void 0 : e.styles) == null ? void 0 : t.text), Object.assign(a.style, (i = e == null ? void 0 : e.placeholder) == null ? void 0 : i.style), a;
|
|
686
686
|
}
|
|
687
687
|
}, {
|
|
688
688
|
key: "removeTextIfPlaceholder",
|
|
@@ -700,7 +700,7 @@ var Yc = al, Xc = /* @__PURE__ */ function() {
|
|
|
700
700
|
key: "onFocus",
|
|
701
701
|
value: function(e) {
|
|
702
702
|
var t = this;
|
|
703
|
-
|
|
703
|
+
Zt.IS_SAFARI ? setTimeout(function() {
|
|
704
704
|
t.removeTextIfPlaceholder();
|
|
705
705
|
}) : this.removeTextIfPlaceholder(), Object.assign(this.elementRef.style, e);
|
|
706
706
|
}
|
|
@@ -748,7 +748,7 @@ var Yc = al, Xc = /* @__PURE__ */ function() {
|
|
|
748
748
|
key: "clear",
|
|
749
749
|
value: function(e) {
|
|
750
750
|
var t = window.scrollY;
|
|
751
|
-
e.classList.contains("text-input-disabled") || (e.textContent = ""),
|
|
751
|
+
e.classList.contains("text-input-disabled") || (e.textContent = ""), Zt.IS_CHROMIUM && window.scrollTo({
|
|
752
752
|
top: t
|
|
753
753
|
});
|
|
754
754
|
}
|
|
@@ -765,8 +765,8 @@ var Yc = al, Xc = /* @__PURE__ */ function() {
|
|
|
765
765
|
}
|
|
766
766
|
}]);
|
|
767
767
|
}();
|
|
768
|
-
|
|
769
|
-
var An =
|
|
768
|
+
Vi.TEXT_INPUT_ID = "text-input", Vi.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
769
|
+
var An = Vi, ol = /* @__PURE__ */ function() {
|
|
770
770
|
function n() {
|
|
771
771
|
k(this, n);
|
|
772
772
|
}
|
|
@@ -1173,7 +1173,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1173
1173
|
e.addEventListener("mouseenter", n.mouseEnter.bind(this, e, t)), e.addEventListener("mouseleave", n.mouseLeave.bind(this, e, t)), e.addEventListener("mousedown", n.mouseDown.bind(this, e, t)), e.addEventListener("mouseup", n.mouseUp.bind(this, e, t));
|
|
1174
1174
|
}
|
|
1175
1175
|
}]);
|
|
1176
|
-
}(), au = "deep-chat-temporary-message", ou = "deep-chat-suggestion-button",
|
|
1176
|
+
}(), au = "deep-chat-temporary-message", ou = "deep-chat-suggestion-button", Gi = {
|
|
1177
1177
|
"deep-chat-button": {
|
|
1178
1178
|
styles: {
|
|
1179
1179
|
default: {
|
|
@@ -1193,7 +1193,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
-
}, Za = Object.keys(
|
|
1196
|
+
}, Za = Object.keys(Gi), Sr = /* @__PURE__ */ function() {
|
|
1197
1197
|
function n() {
|
|
1198
1198
|
k(this, n);
|
|
1199
1199
|
}
|
|
@@ -1225,7 +1225,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1225
1225
|
}, {
|
|
1226
1226
|
key: "applyEvents",
|
|
1227
1227
|
value: function(e, t) {
|
|
1228
|
-
var i =
|
|
1228
|
+
var i = Gi[t].events;
|
|
1229
1229
|
Object.keys(i || []).forEach(function(a) {
|
|
1230
1230
|
e.addEventListener(a, i == null ? void 0 : i[a]);
|
|
1231
1231
|
});
|
|
@@ -1236,7 +1236,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1236
1236
|
var a = Array.from(t.classList).reduce(function(c, u) {
|
|
1237
1237
|
var d, p = (d = e[u]) == null ? void 0 : d.styles;
|
|
1238
1238
|
return p && e[u].styles && c.push(p), c;
|
|
1239
|
-
}, []), o =
|
|
1239
|
+
}, []), o = Gi[i].styles;
|
|
1240
1240
|
if (o) {
|
|
1241
1241
|
var s = JSON.parse(JSON.stringify(o));
|
|
1242
1242
|
s.default && be.overwriteDefaultWithAlreadyApplied(s, t), a.unshift(s);
|
|
@@ -1251,7 +1251,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1251
1251
|
var s = i.getElementsByClassName(o);
|
|
1252
1252
|
Array.from(s || []).forEach(function(l) {
|
|
1253
1253
|
var c = n.getProcessedStyles(t, l, o);
|
|
1254
|
-
|
|
1254
|
+
Yt.applyStylesToElement(l, c), n.applyEvents(l, o);
|
|
1255
1255
|
});
|
|
1256
1256
|
});
|
|
1257
1257
|
var a = i.getElementsByClassName(ou);
|
|
@@ -1260,7 +1260,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
1262
|
}]);
|
|
1263
|
-
}(),
|
|
1263
|
+
}(), Yt = /* @__PURE__ */ function() {
|
|
1264
1264
|
function n() {
|
|
1265
1265
|
k(this, n);
|
|
1266
1266
|
}
|
|
@@ -1315,7 +1315,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1315
1315
|
}), i;
|
|
1316
1316
|
}
|
|
1317
1317
|
}]);
|
|
1318
|
-
}(),
|
|
1318
|
+
}(), Ki = /* @__PURE__ */ function() {
|
|
1319
1319
|
function n() {
|
|
1320
1320
|
k(this, n);
|
|
1321
1321
|
}
|
|
@@ -1334,7 +1334,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1334
1334
|
key: "overwrite",
|
|
1335
1335
|
value: function(e, t, i, a) {
|
|
1336
1336
|
var o = e.messages, s = J.overwriteMessage(o, a, t, i, "html", "html-message");
|
|
1337
|
-
return s && (s.bubbleElement.innerHTML = t,
|
|
1337
|
+
return s && (s.bubbleElement.innerHTML = t, Yt.apply(e, s.outerContainer), Ne.flagHTMLUpdateClass(s.bubbleElement)), s;
|
|
1338
1338
|
}
|
|
1339
1339
|
// prettier-ignore
|
|
1340
1340
|
}, {
|
|
@@ -1347,7 +1347,7 @@ var J = ar, dl = /* @__PURE__ */ function() {
|
|
|
1347
1347
|
o.status = !1;
|
|
1348
1348
|
}
|
|
1349
1349
|
var c = n.createElements(e, t, i);
|
|
1350
|
-
return J.fillEmptyMessageElement(c.bubbleElement, t),
|
|
1350
|
+
return J.fillEmptyMessageElement(c.bubbleElement, t), Yt.apply(e, c.outerContainer), Ne.flagHTMLUpdateClass(c.bubbleElement), e.applyCustomStyles(c, i, !1, (s = e.messageStyles) == null ? void 0 : s.html), n.addElement(e, c.outerContainer), c;
|
|
1351
1351
|
}
|
|
1352
1352
|
}]);
|
|
1353
1353
|
}(), Zn;
|
|
@@ -1376,7 +1376,7 @@ function Tn(n) {
|
|
|
1376
1376
|
function fl(n) {
|
|
1377
1377
|
return !(n >= 55296 && n <= 57343 || n >= 64976 && n <= 65007 || (n & 65535) === 65535 || (n & 65535) === 65534 || n >= 0 && n <= 8 || n === 11 || n >= 14 && n <= 31 || n >= 127 && n <= 159 || n > 1114111);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function Ji(n) {
|
|
1380
1380
|
if (n > 65535) {
|
|
1381
1381
|
n -= 65536;
|
|
1382
1382
|
var r = 55296 + (n >> 10), e = 56320 + (n & 1023);
|
|
@@ -1387,9 +1387,9 @@ function Ki(n) {
|
|
|
1387
1387
|
var uu = /&([a-z#][a-z0-9]{1,31});/gi, du = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
|
|
1388
1388
|
function pu(n, r) {
|
|
1389
1389
|
var e = 0, t = pl(r);
|
|
1390
|
-
return r !== t ? t : r.charCodeAt(0) === 35 && du.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), fl(e)) ?
|
|
1390
|
+
return r !== t ? t : r.charCodeAt(0) === 35 && du.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), fl(e)) ? Ji(e) : n;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function xt(n) {
|
|
1393
1393
|
return n.indexOf("&") < 0 ? n : n.replace(uu, pu);
|
|
1394
1394
|
}
|
|
1395
1395
|
var hu = /[&<>"]/, fu = /[&<>"]/g, mu = {
|
|
@@ -1410,18 +1410,18 @@ D.blockquote_open = function() {
|
|
|
1410
1410
|
`;
|
|
1411
1411
|
};
|
|
1412
1412
|
D.blockquote_close = function(n, r) {
|
|
1413
|
-
return "</blockquote>" +
|
|
1413
|
+
return "</blockquote>" + Ot(n, r);
|
|
1414
1414
|
};
|
|
1415
1415
|
D.code = function(n, r) {
|
|
1416
|
-
return n[r].block ? "<pre><code>" + Ae(n[r].content) + "</code></pre>" +
|
|
1416
|
+
return n[r].block ? "<pre><code>" + Ae(n[r].content) + "</code></pre>" + Ot(n, r) : "<code>" + Ae(n[r].content) + "</code>";
|
|
1417
1417
|
};
|
|
1418
1418
|
D.fence = function(n, r, e, t, i) {
|
|
1419
1419
|
var a = n[r], o = "", s = e.langPrefix, l = "", c, u, d;
|
|
1420
1420
|
if (a.params) {
|
|
1421
1421
|
if (c = a.params.split(/\s+/g), u = c.join(" "), lu(i.rules.fence_custom, c[0])) return i.rules.fence_custom[c[0]](n, r, e, t, i);
|
|
1422
|
-
l = Ae(
|
|
1422
|
+
l = Ae(xt(Tn(u))), o = ' class="' + s + l + '"';
|
|
1423
1423
|
}
|
|
1424
|
-
return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Ae(a.content) : d = Ae(a.content), "<pre><code" + o + ">" + d + "</code></pre>" +
|
|
1424
|
+
return e.highlight ? d = e.highlight.apply(e.highlight, [a.content].concat(c)) || Ae(a.content) : d = Ae(a.content), "<pre><code" + o + ">" + d + "</code></pre>" + Ot(n, r);
|
|
1425
1425
|
};
|
|
1426
1426
|
D.fence_custom = {};
|
|
1427
1427
|
D.heading_open = function(n, r) {
|
|
@@ -1432,14 +1432,14 @@ D.heading_close = function(n, r) {
|
|
|
1432
1432
|
`;
|
|
1433
1433
|
};
|
|
1434
1434
|
D.hr = function(n, r, e) {
|
|
1435
|
-
return (e.xhtmlOut ? "<hr />" : "<hr>") +
|
|
1435
|
+
return (e.xhtmlOut ? "<hr />" : "<hr>") + Ot(n, r);
|
|
1436
1436
|
};
|
|
1437
1437
|
D.bullet_list_open = function() {
|
|
1438
1438
|
return `<ul>
|
|
1439
1439
|
`;
|
|
1440
1440
|
};
|
|
1441
1441
|
D.bullet_list_close = function(n, r) {
|
|
1442
|
-
return "</ul>" +
|
|
1442
|
+
return "</ul>" + Ot(n, r);
|
|
1443
1443
|
};
|
|
1444
1444
|
D.list_item_open = function() {
|
|
1445
1445
|
return "<li>";
|
|
@@ -1454,24 +1454,24 @@ D.ordered_list_open = function(n, r) {
|
|
|
1454
1454
|
`;
|
|
1455
1455
|
};
|
|
1456
1456
|
D.ordered_list_close = function(n, r) {
|
|
1457
|
-
return "</ol>" +
|
|
1457
|
+
return "</ol>" + Ot(n, r);
|
|
1458
1458
|
};
|
|
1459
1459
|
D.paragraph_open = function(n, r) {
|
|
1460
1460
|
return n[r].tight ? "" : "<p>";
|
|
1461
1461
|
};
|
|
1462
1462
|
D.paragraph_close = function(n, r) {
|
|
1463
1463
|
var e = !(n[r].tight && r && n[r - 1].type === "inline" && !n[r - 1].content);
|
|
1464
|
-
return (n[r].tight ? "" : "</p>") + (e ?
|
|
1464
|
+
return (n[r].tight ? "" : "</p>") + (e ? Ot(n, r) : "");
|
|
1465
1465
|
};
|
|
1466
1466
|
D.link_open = function(n, r, e) {
|
|
1467
|
-
var t = n[r].title ? ' title="' + Ae(
|
|
1467
|
+
var t = n[r].title ? ' title="' + Ae(xt(n[r].title)) + '"' : "", i = e.linkTarget ? ' target="' + e.linkTarget + '"' : "";
|
|
1468
1468
|
return '<a href="' + Ae(n[r].href) + '"' + t + i + ">";
|
|
1469
1469
|
};
|
|
1470
1470
|
D.link_close = function() {
|
|
1471
1471
|
return "</a>";
|
|
1472
1472
|
};
|
|
1473
1473
|
D.image = function(n, r, e) {
|
|
1474
|
-
var t = ' src="' + Ae(n[r].src) + '"', i = n[r].title ? ' title="' + Ae(
|
|
1474
|
+
var t = ' src="' + Ae(n[r].src) + '"', i = n[r].title ? ' title="' + Ae(xt(n[r].title)) + '"' : "", a = ' alt="' + (n[r].alt ? Ae(xt(Tn(n[r].alt))) : "") + '"', o = e.xhtmlOut ? " /" : "";
|
|
1475
1475
|
return "<img" + t + a + i + o + ">";
|
|
1476
1476
|
};
|
|
1477
1477
|
D.table_open = function() {
|
|
@@ -1576,7 +1576,7 @@ D.htmltag = function(n, r) {
|
|
|
1576
1576
|
return n[r].content;
|
|
1577
1577
|
};
|
|
1578
1578
|
D.abbr_open = function(n, r) {
|
|
1579
|
-
return '<abbr title="' + Ae(
|
|
1579
|
+
return '<abbr title="' + Ae(xt(n[r].title)) + '">';
|
|
1580
1580
|
};
|
|
1581
1581
|
D.abbr_close = function() {
|
|
1582
1582
|
return "</abbr>";
|
|
@@ -1635,7 +1635,7 @@ D.dd_close = function() {
|
|
|
1635
1635
|
function ml(n, r) {
|
|
1636
1636
|
return ++r >= n.length - 2 ? r : n[r].type === "paragraph_open" && n[r].tight && n[r + 1].type === "inline" && n[r + 1].content.length === 0 && n[r + 2].type === "paragraph_close" && n[r + 2].tight ? ml(n, r + 2) : r;
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1638
|
+
var Ot = D.getBreak = function(n, r) {
|
|
1639
1639
|
return r = ml(n, r), r < n.length && n[r].type === "list_item_close" ? "" : `
|
|
1640
1640
|
`;
|
|
1641
1641
|
};
|
|
@@ -1731,24 +1731,24 @@ function vu(n) {
|
|
|
1731
1731
|
children: []
|
|
1732
1732
|
}) : n.block.parse(n.src, n.options, n.env, n.tokens);
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function It(n, r, e, t, i) {
|
|
1735
1735
|
this.src = n, this.env = t, this.options = e, this.parser = r, this.tokens = i, this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = [], this.isInLabel = !1, this.linkLevel = 0, this.linkContent = "", this.labelUnmatchedScopes = 0;
|
|
1736
1736
|
}
|
|
1737
|
-
|
|
1737
|
+
It.prototype.pushPending = function() {
|
|
1738
1738
|
this.tokens.push({
|
|
1739
1739
|
type: "text",
|
|
1740
1740
|
content: this.pending,
|
|
1741
1741
|
level: this.pendingLevel
|
|
1742
1742
|
}), this.pending = "";
|
|
1743
1743
|
};
|
|
1744
|
-
|
|
1744
|
+
It.prototype.push = function(n) {
|
|
1745
1745
|
this.pending && this.pushPending(), this.tokens.push(n), this.pendingLevel = this.level;
|
|
1746
1746
|
};
|
|
1747
|
-
|
|
1747
|
+
It.prototype.cacheSet = function(n, r) {
|
|
1748
1748
|
for (var e = this.cache.length; e <= n; e++) this.cache.push(0);
|
|
1749
1749
|
this.cache[n] = r;
|
|
1750
1750
|
};
|
|
1751
|
-
|
|
1751
|
+
It.prototype.cacheGet = function(n) {
|
|
1752
1752
|
return n < this.cache.length ? this.cache[n] : 0;
|
|
1753
1753
|
};
|
|
1754
1754
|
function Rn(n, r) {
|
|
@@ -1767,7 +1767,7 @@ function Rn(n, r) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
function yu(n, r, e, t) {
|
|
1769
1769
|
var i, a, o, s, l, c;
|
|
1770
|
-
if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (i = new
|
|
1770
|
+
if (n.charCodeAt(0) !== 42 || n.charCodeAt(1) !== 91 || n.indexOf("]:") === -1 || (i = new It(n, r, e, t, []), a = Rn(i, 1), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
|
|
1771
1771
|
for (s = i.posMax, o = a + 2; o < s && i.src.charCodeAt(o) !== 10; o++) ;
|
|
1772
1772
|
return l = n.slice(2, a), c = n.slice(a + 2, o).trim(), c.length === 0 ? -1 : (t.abbreviations || (t.abbreviations = {}), H(t.abbreviations[":" + l]) > "u" && (t.abbreviations[":" + l] = c), o);
|
|
1773
1773
|
}
|
|
@@ -1780,8 +1780,8 @@ function bu(n) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
var r =
|
|
1783
|
+
function Zi(n) {
|
|
1784
|
+
var r = xt(n);
|
|
1785
1785
|
try {
|
|
1786
1786
|
r = decodeURI(r);
|
|
1787
1787
|
} catch {
|
|
@@ -1793,7 +1793,7 @@ function gl(n, r) {
|
|
|
1793
1793
|
if (n.src.charCodeAt(r) === 60) {
|
|
1794
1794
|
for (r++; r < o; ) {
|
|
1795
1795
|
if (e = n.src.charCodeAt(r), e === 10) return !1;
|
|
1796
|
-
if (e === 62) return i =
|
|
1796
|
+
if (e === 62) return i = Zi(Tn(n.src.slice(a + 1, r))), n.parser.validateLink(i) ? (n.pos = r + 1, n.linkContent = i, !0) : !1;
|
|
1797
1797
|
if (e === 92 && r + 1 < o) {
|
|
1798
1798
|
r += 2;
|
|
1799
1799
|
continue;
|
|
@@ -1830,7 +1830,7 @@ function yl(n) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
function ku(n, r, e, t) {
|
|
1832
1832
|
var i, a, o, s, l, c, u, d, p;
|
|
1833
|
-
if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (i = new
|
|
1833
|
+
if (n.charCodeAt(0) !== 91 || n.indexOf("]:") === -1 || (i = new It(n, r, e, t, []), a = Rn(i, 0), a < 0 || n.charCodeAt(a + 1) !== 58)) return -1;
|
|
1834
1834
|
for (s = i.posMax, o = a + 2; o < s && (l = i.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++) ;
|
|
1835
1835
|
if (!gl(i, o)) return -1;
|
|
1836
1836
|
for (u = i.linkContent, o = i.pos, c = o, o = o + 1; o < s && (l = i.src.charCodeAt(o), !(l !== 32 && l !== 10)); o++) ;
|
|
@@ -1898,17 +1898,17 @@ function _u(n) {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
var Ya = `
|
|
1900
1900
|
()[]'".,!?-`;
|
|
1901
|
-
function
|
|
1901
|
+
function hi(n) {
|
|
1902
1902
|
return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
|
|
1903
1903
|
}
|
|
1904
1904
|
function Eu(n) {
|
|
1905
1905
|
var r, e, t, i, a, o, s, l, c, u, d, p, h = n.tokens;
|
|
1906
1906
|
if (n.env.abbreviations) {
|
|
1907
|
-
for (n.env.abbrRegExp || (p = "(^|[" + Ya.split("").map(
|
|
1907
|
+
for (n.env.abbrRegExp || (p = "(^|[" + Ya.split("").map(hi).join("") + "])(" + Object.keys(n.env.abbreviations).map(function(f) {
|
|
1908
1908
|
return f.substr(1);
|
|
1909
1909
|
}).sort(function(f, g) {
|
|
1910
1910
|
return g.length - f.length;
|
|
1911
|
-
}).map(
|
|
1911
|
+
}).map(hi).join("|") + ")($|[" + Ya.split("").map(hi).join("") + "])", n.env.abbrRegExp = new RegExp(p, "g")), u = n.env.abbrRegExp, e = 0, t = h.length; e < t; e++) if (h[e].type === "inline") {
|
|
1912
1912
|
for (i = h[e].children, r = i.length - 1; r >= 0; r--) if (a = i[r], a.type === "text") {
|
|
1913
1913
|
for (l = 0, o = a.content, u.lastIndex = 0, c = a.level, s = []; d = u.exec(o); ) u.lastIndex > l && s.push({
|
|
1914
1914
|
type: "text",
|
|
@@ -1956,7 +1956,7 @@ var Ou = /['"]/, Xa = /['"]/g, Iu = /[-\s()\[\]]/, Qa = "’";
|
|
|
1956
1956
|
function eo(n, r) {
|
|
1957
1957
|
return r < 0 || r >= n.length ? !1 : !Iu.test(n[r]);
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function jt(n, r, e) {
|
|
1960
1960
|
return n.substr(0, r) + e + n.substr(r + 1);
|
|
1961
1961
|
}
|
|
1962
1962
|
function Lu(n) {
|
|
@@ -1968,12 +1968,12 @@ function Lu(n) {
|
|
|
1968
1968
|
v.length = h + 1, t = e.content, a = 0, o = t.length;
|
|
1969
1969
|
e: for (; a < o && (Xa.lastIndex = a, i = Xa.exec(t), !!i); ) {
|
|
1970
1970
|
if (l = !eo(t, i.index - 1), a = i.index + 1, f = i[0] === "'", c = !eo(t, a), !c && !l) {
|
|
1971
|
-
f && (e.content =
|
|
1971
|
+
f && (e.content = jt(e.content, i.index, Qa));
|
|
1972
1972
|
continue;
|
|
1973
1973
|
}
|
|
1974
1974
|
if (d = !c, p = !l, p) {
|
|
1975
1975
|
for (h = v.length - 1; h >= 0 && (u = v[h], !(v[h].level < s)); h--) if (u.single === f && v[h].level === s) {
|
|
1976
|
-
u = v[h], f ? (y[u.token].content =
|
|
1976
|
+
u = v[h], f ? (y[u.token].content = jt(y[u.token].content, u.pos, n.options.quotes[2]), e.content = jt(e.content, i.index, n.options.quotes[3])) : (y[u.token].content = jt(y[u.token].content, u.pos, n.options.quotes[0]), e.content = jt(e.content, i.index, n.options.quotes[1])), v.length = h;
|
|
1977
1977
|
continue e;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
@@ -1982,22 +1982,22 @@ function Lu(n) {
|
|
|
1982
1982
|
pos: i.index,
|
|
1983
1983
|
single: f,
|
|
1984
1984
|
level: s
|
|
1985
|
-
}) : p && f && (e.content =
|
|
1985
|
+
}) : p && f && (e.content = jt(e.content, i.index, Qa));
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
var
|
|
1991
|
+
var fi = [["block", vu], ["abbr", bu], ["references", wu], ["inline", Su], ["footnote_tail", _u], ["abbr2", Eu], ["replacements", Ru], ["smartquotes", Lu]];
|
|
1992
1992
|
function bl() {
|
|
1993
1993
|
this.options = {}, this.ruler = new Oe();
|
|
1994
|
-
for (var n = 0; n <
|
|
1994
|
+
for (var n = 0; n < fi.length; n++) this.ruler.push(fi[n][0], fi[n][1]);
|
|
1995
1995
|
}
|
|
1996
1996
|
bl.prototype.process = function(n) {
|
|
1997
1997
|
var r, e, t;
|
|
1998
1998
|
for (t = this.ruler.getRules(""), r = 0, e = t.length; r < e; r++) t[r](n);
|
|
1999
1999
|
};
|
|
2000
|
-
function
|
|
2000
|
+
function Lt(n, r, e, t, i) {
|
|
2001
2001
|
var a, o, s, l, c, u, d;
|
|
2002
2002
|
for (this.src = n, this.parser = r, this.options = e, this.env = t, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.parentType = "root", this.ddIndent = -1, this.level = 0, this.result = "", o = this.src, u = 0, d = !1, s = l = u = 0, c = o.length; l < c; l++) {
|
|
2003
2003
|
if (a = o.charCodeAt(l), !d) if (a === 32) {
|
|
@@ -2008,27 +2008,27 @@ function It(n, r, e, t, i) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
this.bMarks.push(o.length), this.eMarks.push(o.length), this.tShift.push(0), this.lineMax = this.bMarks.length - 1;
|
|
2010
2010
|
}
|
|
2011
|
-
|
|
2011
|
+
Lt.prototype.isEmpty = function(n) {
|
|
2012
2012
|
return this.bMarks[n] + this.tShift[n] >= this.eMarks[n];
|
|
2013
2013
|
};
|
|
2014
|
-
|
|
2014
|
+
Lt.prototype.skipEmptyLines = function(n) {
|
|
2015
2015
|
for (var r = this.lineMax; n < r && !(this.bMarks[n] + this.tShift[n] < this.eMarks[n]); n++) ;
|
|
2016
2016
|
return n;
|
|
2017
2017
|
};
|
|
2018
|
-
|
|
2018
|
+
Lt.prototype.skipSpaces = function(n) {
|
|
2019
2019
|
for (var r = this.src.length; n < r && this.src.charCodeAt(n) === 32; n++) ;
|
|
2020
2020
|
return n;
|
|
2021
2021
|
};
|
|
2022
|
-
|
|
2022
|
+
Lt.prototype.skipChars = function(n, r) {
|
|
2023
2023
|
for (var e = this.src.length; n < e && this.src.charCodeAt(n) === r; n++) ;
|
|
2024
2024
|
return n;
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2026
|
+
Lt.prototype.skipCharsBack = function(n, r, e) {
|
|
2027
2027
|
if (n <= e) return n;
|
|
2028
2028
|
for (; n > e; ) if (r !== this.src.charCodeAt(--n)) return n + 1;
|
|
2029
2029
|
return n;
|
|
2030
2030
|
};
|
|
2031
|
-
|
|
2031
|
+
Lt.prototype.getLines = function(n, r, e, t) {
|
|
2032
2032
|
var i, a, o, s, l, c = n;
|
|
2033
2033
|
if (n >= r) return "";
|
|
2034
2034
|
if (c + 1 === r) return a = this.bMarks[c] + Math.min(this.tShift[c], e), o = t ? this.eMarks[c] + 1 : this.eMarks[c], this.src.slice(a, o);
|
|
@@ -2257,13 +2257,13 @@ function qu(n, r, e, t) {
|
|
|
2257
2257
|
content: n.getLines(r, o, 0, !0)
|
|
2258
2258
|
}), !0;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function mi(n, r) {
|
|
2261
2261
|
var e = n.bMarks[r] + n.blkIndent, t = n.eMarks[r];
|
|
2262
2262
|
return n.src.substr(e, t - e);
|
|
2263
2263
|
}
|
|
2264
2264
|
function Vu(n, r, e, t) {
|
|
2265
2265
|
var i, a, o, s, l, c, u, d, p, h, f;
|
|
2266
|
-
if (r + 2 > e || (l = r + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (i = n.src.charCodeAt(o), i !== 124 && i !== 45 && i !== 58) || (a =
|
|
2266
|
+
if (r + 2 > e || (l = r + 1, n.tShift[l] < n.blkIndent) || (o = n.bMarks[l] + n.tShift[l], o >= n.eMarks[l]) || (i = n.src.charCodeAt(o), i !== 124 && i !== 45 && i !== 58) || (a = mi(n, r + 1), !/^[-:| ]+$/.test(a)) || (c = a.split("|"), c <= 2)) return !1;
|
|
2267
2267
|
for (d = [], s = 0; s < c.length; s++) {
|
|
2268
2268
|
if (p = c[s].trim(), !p) {
|
|
2269
2269
|
if (s === 0 || s === c.length - 1) continue;
|
|
@@ -2272,7 +2272,7 @@ function Vu(n, r, e, t) {
|
|
|
2272
2272
|
if (!/^:?-+:?$/.test(p)) return !1;
|
|
2273
2273
|
p.charCodeAt(p.length - 1) === 58 ? d.push(p.charCodeAt(0) === 58 ? "center" : "right") : p.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
2274
2274
|
}
|
|
2275
|
-
if (a =
|
|
2275
|
+
if (a = mi(n, r).trim(), a.indexOf("|") === -1 || (c = a.replace(/^\||\|$/g, "").split("|"), d.length !== c.length)) return !1;
|
|
2276
2276
|
if (t) return !0;
|
|
2277
2277
|
for (n.tokens.push({
|
|
2278
2278
|
type: "table_open",
|
|
@@ -2311,7 +2311,7 @@ function Vu(n, r, e, t) {
|
|
|
2311
2311
|
type: "tbody_open",
|
|
2312
2312
|
lines: f = [r + 2, 0],
|
|
2313
2313
|
level: n.level++
|
|
2314
|
-
}), l = r + 2; l < e && !(n.tShift[l] < n.blkIndent || (a =
|
|
2314
|
+
}), l = r + 2; l < e && !(n.tShift[l] < n.blkIndent || (a = mi(n, l).trim(), a.indexOf("|") === -1)); l++) {
|
|
2315
2315
|
for (c = a.replace(/^\||\|$/g, "").split("|"), n.tokens.push({
|
|
2316
2316
|
type: "tr_open",
|
|
2317
2317
|
level: n.level++
|
|
@@ -2443,7 +2443,7 @@ ma.prototype.parse = function(n, r, e, t) {
|
|
|
2443
2443
|
`), n.indexOf(" ") >= 0 && (n = n.replace(Zu, function(s, l) {
|
|
2444
2444
|
var c;
|
|
2445
2445
|
return n.charCodeAt(l) === 10 ? (a = l + 1, o = 0, s) : (c = " ".slice((l - a - o) % 4), o = l - a + 1, c);
|
|
2446
|
-
})), i = new
|
|
2446
|
+
})), i = new Lt(n, this, r, e, t), this.tokenize(i, i.line, i.lineMax);
|
|
2447
2447
|
};
|
|
2448
2448
|
function Qu(n) {
|
|
2449
2449
|
switch (n) {
|
|
@@ -2747,7 +2747,7 @@ function fd(n, r) {
|
|
|
2747
2747
|
var md = ["coap", "doi", "javascript", "aaa", "aaas", "about", "acap", "cap", "cid", "crid", "data", "dav", "dict", "dns", "file", "ftp", "geo", "go", "gopher", "h323", "http", "https", "iax", "icap", "im", "imap", "info", "ipp", "iris", "iris.beep", "iris.xpc", "iris.xpcs", "iris.lwz", "ldap", "mailto", "mid", "msrp", "msrps", "mtqp", "mupdate", "news", "nfs", "ni", "nih", "nntp", "opaquelocktoken", "pop", "pres", "rtsp", "service", "session", "shttp", "sieve", "sip", "sips", "sms", "snmp", "soap.beep", "soap.beeps", "tag", "tel", "telnet", "tftp", "thismessage", "tn3270", "tip", "tv", "urn", "vemmi", "ws", "wss", "xcon", "xcon-userid", "xmlrpc.beep", "xmlrpc.beeps", "xmpp", "z39.50r", "z39.50s", "adiumxtra", "afp", "afs", "aim", "apt", "attachment", "aw", "beshare", "bitcoin", "bolo", "callto", "chrome", "chrome-extension", "com-eventbrite-attendee", "content", "cvs", "dlna-playsingle", "dlna-playcontainer", "dtn", "dvb", "ed2k", "facetime", "feed", "finger", "fish", "gg", "git", "gizmoproject", "gtalk", "hcp", "icon", "ipn", "irc", "irc6", "ircs", "itms", "jar", "jms", "keyparc", "lastfm", "ldaps", "magnet", "maps", "market", "message", "mms", "ms-help", "msnim", "mumble", "mvn", "notes", "oid", "palm", "paparazzi", "platform", "proxy", "psyc", "query", "res", "resource", "rmi", "rsync", "rtmp", "secondlife", "sftp", "sgn", "skype", "smb", "soldat", "spotify", "ssh", "steam", "svn", "teamspeak", "things", "udp", "unreal", "ut2004", "ventrilo", "view-source", "webcal", "wtai", "wyciwyg", "xfire", "xri", "ymsgr"], gd = /^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/, vd = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
|
|
2748
2748
|
function yd(n, r) {
|
|
2749
2749
|
var e, t, i, a, o, s = n.pos;
|
|
2750
|
-
return n.src.charCodeAt(s) !== 60 || (e = n.src.slice(s), e.indexOf(">") < 0) ? !1 : (t = e.match(vd), t ? md.indexOf(t[1].toLowerCase()) < 0 || (a = t[0].slice(1, -1), o =
|
|
2750
|
+
return n.src.charCodeAt(s) !== 60 || (e = n.src.slice(s), e.indexOf(">") < 0) ? !1 : (t = e.match(vd), t ? md.indexOf(t[1].toLowerCase()) < 0 || (a = t[0].slice(1, -1), o = Zi(a), !n.parser.validateLink(a)) ? !1 : (r || (n.push({
|
|
2751
2751
|
type: "link_open",
|
|
2752
2752
|
href: o,
|
|
2753
2753
|
level: n.level
|
|
@@ -2758,7 +2758,7 @@ function yd(n, r) {
|
|
|
2758
2758
|
}), n.push({
|
|
2759
2759
|
type: "link_close",
|
|
2760
2760
|
level: n.level
|
|
2761
|
-
})), n.pos += t[0].length, !0) : (i = e.match(gd), i ? (a = i[0].slice(1, -1), o =
|
|
2761
|
+
})), n.pos += t[0].length, !0) : (i = e.match(gd), i ? (a = i[0].slice(1, -1), o = Zi("mailto:" + a), n.parser.validateLink(o) ? (r || (n.push({
|
|
2762
2762
|
type: "link_open",
|
|
2763
2763
|
href: o,
|
|
2764
2764
|
level: n.level
|
|
@@ -2771,12 +2771,12 @@ function yd(n, r) {
|
|
|
2771
2771
|
level: n.level
|
|
2772
2772
|
})), n.pos += i[0].length, !0) : !1) : !1));
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function $r(n, r) {
|
|
2775
2775
|
return n = n.source, r = r || "", function e(t, i) {
|
|
2776
2776
|
return t ? (i = i.source || i, n = n.replace(t, i), e) : new RegExp(n, r);
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
|
-
var bd = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, kd = /[^"'=<>`\x00-\x20]+/, wd = /'[^']*'/, Sd = /"[^"]*"/, _d =
|
|
2779
|
+
var bd = /[a-zA-Z_:][a-zA-Z0-9:._-]*/, kd = /[^"'=<>`\x00-\x20]+/, wd = /'[^']*'/, Sd = /"[^"]*"/, _d = $r(/(?:unquoted|single_quoted|double_quoted)/)("unquoted", kd)("single_quoted", wd)("double_quoted", Sd)(), Ed = $r(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name", bd)("attr_value", _d)(), Cd = $r(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", Ed)(), xd = /<\/[A-Za-z][A-Za-z0-9]*\s*>/, Ad = /<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/, Td = /<[?].*?[?]>/, Rd = /<![A-Z]+\s+[^>]*>/, Od = /<!\[CDATA\[[\s\S]*?\]\]>/, Id = $r(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag", Cd)("close_tag", xd)("comment", Ad)("processing", Td)("declaration", Rd)("cdata", Od)();
|
|
2780
2780
|
function Ld(n) {
|
|
2781
2781
|
var r = n | 32;
|
|
2782
2782
|
return r >= 97 && r <= 122;
|
|
@@ -2795,7 +2795,7 @@ function Nd(n, r) {
|
|
|
2795
2795
|
if (n.src.charCodeAt(a) !== 38) return !1;
|
|
2796
2796
|
if (a + 1 < o) {
|
|
2797
2797
|
if (e = n.src.charCodeAt(a + 1), e === 35) {
|
|
2798
|
-
if (i = n.src.slice(a).match(Pd), i) return r || (t = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), n.pending += fl(t) ?
|
|
2798
|
+
if (i = n.src.slice(a).match(Pd), i) return r || (t = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), n.pending += fl(t) ? Ji(t) : Ji(65533)), n.pos += i[0].length, !0;
|
|
2799
2799
|
} else if (i = n.src.slice(a).match(Fd), i) {
|
|
2800
2800
|
var s = pl(i[1]);
|
|
2801
2801
|
if (i[1] !== s) return r || (n.pending += s), n.pos += i[0].length, !0;
|
|
@@ -2803,13 +2803,13 @@ function Nd(n, r) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
return r || (n.pending += "&"), n.pos++, !0;
|
|
2805
2805
|
}
|
|
2806
|
-
var
|
|
2807
|
-
function
|
|
2806
|
+
var gi = [["text", ed], ["newline", td], ["escape", nd], ["backticks", rd], ["del", id], ["ins", ad], ["mark", od], ["emphasis", sd], ["sub", cd], ["sup", dd], ["links", pd], ["footnote_inline", hd], ["footnote_ref", fd], ["autolink", yd], ["htmltag", Md], ["entity", Nd]];
|
|
2807
|
+
function Br() {
|
|
2808
2808
|
this.ruler = new Oe();
|
|
2809
|
-
for (var n = 0; n <
|
|
2809
|
+
for (var n = 0; n < gi.length; n++) this.ruler.push(gi[n][0], gi[n][1]);
|
|
2810
2810
|
this.validateLink = Dd;
|
|
2811
2811
|
}
|
|
2812
|
-
|
|
2812
|
+
Br.prototype.skipToken = function(n) {
|
|
2813
2813
|
var r = this.ruler.getRules(""), e = r.length, t = n.pos, i, a;
|
|
2814
2814
|
if ((a = n.cacheGet(t)) > 0) {
|
|
2815
2815
|
n.pos = a;
|
|
@@ -2821,7 +2821,7 @@ $r.prototype.skipToken = function(n) {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
n.pos++, n.cacheSet(t, n.pos);
|
|
2823
2823
|
};
|
|
2824
|
-
|
|
2824
|
+
Br.prototype.tokenize = function(n) {
|
|
2825
2825
|
for (var r = this.ruler.getRules(""), e = r.length, t = n.posMax, i, a; n.pos < t; ) {
|
|
2826
2826
|
for (a = 0; a < e && (i = r[a](n, !1), !i); a++) ;
|
|
2827
2827
|
if (i) {
|
|
@@ -2832,13 +2832,13 @@ $r.prototype.tokenize = function(n) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
n.pending && n.pushPending();
|
|
2834
2834
|
};
|
|
2835
|
-
|
|
2836
|
-
var i = new
|
|
2835
|
+
Br.prototype.parse = function(n, r, e, t) {
|
|
2836
|
+
var i = new It(n, this, r, e, t);
|
|
2837
2837
|
this.tokenize(i);
|
|
2838
2838
|
};
|
|
2839
2839
|
function Dd(n) {
|
|
2840
2840
|
var r = ["vbscript", "javascript", "file", "data"], e = n.trim().toLowerCase();
|
|
2841
|
-
return e =
|
|
2841
|
+
return e = xt(e), !(e.indexOf(":") !== -1 && r.indexOf(e.split(":")[0]) !== -1);
|
|
2842
2842
|
}
|
|
2843
2843
|
var $d = {
|
|
2844
2844
|
options: {
|
|
@@ -2960,7 +2960,7 @@ function et(n, r) {
|
|
|
2960
2960
|
import Remarkable from 'remarkable';
|
|
2961
2961
|
import linkify from 'remarkable/linkify';
|
|
2962
2962
|
new Remarkable().use(linkify)
|
|
2963
|
-
`), this.inline = new
|
|
2963
|
+
`), this.inline = new Br(), this.block = new ma(), this.core = new bl(), this.renderer = new fa(), this.ruler = new Oe(), this.options = {}, this.configure(Hd[n]), this.set(r || {});
|
|
2964
2964
|
}
|
|
2965
2965
|
et.prototype.set = function(n) {
|
|
2966
2966
|
hl(this.options, n);
|
|
@@ -2989,7 +2989,7 @@ et.prototype.parseInline = function(n, r) {
|
|
|
2989
2989
|
et.prototype.renderInline = function(n, r) {
|
|
2990
2990
|
return r = r || {}, this.renderer.render(this.parseInline(n, r), this.options, r);
|
|
2991
2991
|
};
|
|
2992
|
-
var
|
|
2992
|
+
var Yi = /* @__PURE__ */ function() {
|
|
2993
2993
|
function n() {
|
|
2994
2994
|
k(this, n);
|
|
2995
2995
|
}
|
|
@@ -3214,7 +3214,7 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), _l = /* @__PURE__ */ function() {
|
|
3215
3215
|
function n(r) {
|
|
3216
3216
|
var e = this;
|
|
3217
|
-
k(this, n), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = n.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable =
|
|
3217
|
+
k(this, n), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = n.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = Yi.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = _r.onMessage.bind(this, r), r.htmlClassUtilities && (this.htmlClassUtilities = r.htmlClassUtilities), setTimeout(function() {
|
|
3218
3218
|
e.submitUserMessage = r.submitUserMessage;
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3306,7 +3306,7 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3306
3306
|
key: "refreshTextMessages",
|
|
3307
3307
|
value: function() {
|
|
3308
3308
|
var e = this;
|
|
3309
|
-
this._remarkable =
|
|
3309
|
+
this._remarkable = Yi.createNew(), this.textElementsToText.forEach(function(t) {
|
|
3310
3310
|
e.renderText(t[0].bubbleElement, t[1]);
|
|
3311
3311
|
});
|
|
3312
3312
|
}
|
|
@@ -3342,7 +3342,7 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3342
3342
|
return t && (l.text = t), i && (l.files = i), a && (l.html = a), !t && !i && !a && (l.text = ""), o && (l._sessionId = o), l;
|
|
3343
3343
|
}
|
|
3344
3344
|
}]);
|
|
3345
|
-
}(),
|
|
3345
|
+
}(), Xi = /* @__PURE__ */ function() {
|
|
3346
3346
|
function n(r) {
|
|
3347
3347
|
k(this, n), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = r;
|
|
3348
3348
|
}
|
|
@@ -3365,7 +3365,7 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3365
3365
|
key: "setInitialState",
|
|
3366
3366
|
value: function(e, t, i) {
|
|
3367
3367
|
var a;
|
|
3368
|
-
this._streamType = e, (a = i) !== null && a !== void 0 || (i = J.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(t, i) :
|
|
3368
|
+
this._streamType = e, (a = i) !== null && a !== void 0 || (i = J.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(t, i) : Ki.add(this._messages, t, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(n.MESSAGE_CLASS), this._streamedContent = t, this._activeMessageRole = i, this._message = pa({
|
|
3369
3369
|
role: this._activeMessageRole
|
|
3370
3370
|
}, e, this._streamedContent), this._messages.messages.push(this._message);
|
|
3371
3371
|
}
|
|
@@ -3395,7 +3395,7 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3395
3395
|
var e, t, i = this._messages.textElementsToText;
|
|
3396
3396
|
if (!this._endStreamAfterOperation && !(this._fileAdded && !this._elements)) {
|
|
3397
3397
|
if (!this._elements) throw Error(ue.NO_VALID_STREAM_EVENTS_SENT);
|
|
3398
|
-
(e = this._elements.bubbleElement) != null && e.classList.contains(n.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && ir.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === n.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((t = this._elements.bubbleElement) == null ? void 0 : t.innerHTML) || ""), this._elements &&
|
|
3398
|
+
(e = this._elements.bubbleElement) != null && e.classList.contains(n.MESSAGE_CLASS) && (this._streamType === "text" ? (i[i.length - 1][1] = this._streamedContent, this._message && (this._message.text = this._streamedContent), this._messages.textToSpeech && ir.speak(this._streamedContent, this._messages.textToSpeech)) : this._streamType === "html" && (this._streamedContent === n.HTML_CONTENT_PLACEHOLDER && (this._streamedContent = ((t = this._elements.bubbleElement) == null ? void 0 : t.innerHTML) || ""), this._elements && Yt.apply(this._messages, this._elements.outerContainer), this._message && (this._message.html = this._streamedContent)), this._message && this._messages.sendClientUpdate(_l.createMessageContent(this._message), !1), this._hasStreamEnded = !0);
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
3401
|
}, {
|
|
@@ -3435,8 +3435,8 @@ var xe = Sl, _r = /* @__PURE__ */ function() {
|
|
|
3435
3435
|
}()
|
|
3436
3436
|
}]);
|
|
3437
3437
|
}();
|
|
3438
|
-
|
|
3439
|
-
var at =
|
|
3438
|
+
Xi.MESSAGE_CLASS = "streamed-message", Xi.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3439
|
+
var at = Xi, El = /* @__PURE__ */ function() {
|
|
3440
3440
|
function n() {
|
|
3441
3441
|
k(this, n);
|
|
3442
3442
|
}
|
|
@@ -3554,10 +3554,10 @@ var at = Yi, El = /* @__PURE__ */ function() {
|
|
|
3554
3554
|
El.CONTENT_TYPE = "Content-Type";
|
|
3555
3555
|
var Y = El;
|
|
3556
3556
|
function Ud(n, r) {
|
|
3557
|
-
return
|
|
3557
|
+
return Qi.apply(this, arguments);
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3559
|
+
function Qi() {
|
|
3560
|
+
return Qi = _(/* @__PURE__ */ m().mark(function n(r, e) {
|
|
3561
3561
|
var t, i;
|
|
3562
3562
|
return m().wrap(function(o) {
|
|
3563
3563
|
for (; ; ) switch (o.prev = o.next) {
|
|
@@ -3579,7 +3579,7 @@ function Xi() {
|
|
|
3579
3579
|
return o.stop();
|
|
3580
3580
|
}
|
|
3581
3581
|
}, n);
|
|
3582
|
-
})),
|
|
3582
|
+
})), Qi.apply(this, arguments);
|
|
3583
3583
|
}
|
|
3584
3584
|
function zd(n) {
|
|
3585
3585
|
var r, e, t, i = !1;
|
|
@@ -3645,12 +3645,12 @@ var Vd = function(r, e) {
|
|
|
3645
3645
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (t[i] = r[i]);
|
|
3646
3646
|
if (r != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, i = Object.getOwnPropertySymbols(r); a < i.length; a++) e.indexOf(i[a]) < 0 && Object.prototype.propertyIsEnumerable.call(r, i[a]) && (t[i[a]] = r[i[a]]);
|
|
3647
3647
|
return t;
|
|
3648
|
-
},
|
|
3648
|
+
}, ea = "text/event-stream", Gd = 1e3, so = "last-event-id";
|
|
3649
3649
|
function Kd(n, r) {
|
|
3650
3650
|
var e = r.signal, t = r.headers, i = r.onopen, a = r.onmessage, o = r.onclose, s = r.onerror, l = r.openWhenHidden, c = r.fetch, u = Vd(r, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
3651
3651
|
return new Promise(function(d, p) {
|
|
3652
3652
|
var h = Object.assign({}, t);
|
|
3653
|
-
h.accept || (h.accept =
|
|
3653
|
+
h.accept || (h.accept = ea);
|
|
3654
3654
|
var f;
|
|
3655
3655
|
function g() {
|
|
3656
3656
|
f.abort(), document.hidden || R();
|
|
@@ -3706,7 +3706,7 @@ function Kd(n, r) {
|
|
|
3706
3706
|
}
|
|
3707
3707
|
function Jd(n) {
|
|
3708
3708
|
var r = n.headers.get("content-type");
|
|
3709
|
-
if (!(r != null && r.startsWith(
|
|
3709
|
+
if (!(r != null && r.startsWith(ea))) throw new Error("Expected content-type to be ".concat(ea, ", Actual: ").concat(r));
|
|
3710
3710
|
}
|
|
3711
3711
|
var ge = /* @__PURE__ */ function() {
|
|
3712
3712
|
function n() {
|
|
@@ -3853,7 +3853,7 @@ var ge = /* @__PURE__ */ function() {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
if (i.html) {
|
|
3855
3855
|
t.onOpen();
|
|
3856
|
-
var s =
|
|
3856
|
+
var s = Yt.splitHTML(i.html);
|
|
3857
3857
|
n.populateMessages(s, new at(e), a, "html");
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
@@ -4652,7 +4652,7 @@ var ot = Cl, On = /* @__PURE__ */ function() {
|
|
|
4652
4652
|
key: "set",
|
|
4653
4653
|
value: function(e, t, i) {
|
|
4654
4654
|
n.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), n.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
|
|
4655
|
-
var a =
|
|
4655
|
+
var a = Yi.createNew();
|
|
4656
4656
|
n.processImagesConfig(t, a, e.images, i == null ? void 0 : i.images), n.processCamera(t, a, e.camera, e.images), n.processGifConfig(t, a, e.gifs, i == null ? void 0 : i.gifs), n.processAudioConfig(t, a, e.audio, i == null ? void 0 : i.audio), n.processMicrophone(t, a, e.microphone, e.audio), n.processMixedFiles(t, a, e.mixedFiles);
|
|
4657
4657
|
}
|
|
4658
4658
|
}]);
|
|
@@ -4912,7 +4912,7 @@ var ot = Cl, On = /* @__PURE__ */ function() {
|
|
|
4912
4912
|
e._propUpdated_ = !0, e._waitingToRender_ || (e._waitingToRender_ = !0, n.waitForPropertiesToBeUpdatedBeforeRender(e));
|
|
4913
4913
|
}
|
|
4914
4914
|
}]);
|
|
4915
|
-
}(),
|
|
4915
|
+
}(), ta = /* @__PURE__ */ function(n) {
|
|
4916
4916
|
function r() {
|
|
4917
4917
|
var e;
|
|
4918
4918
|
return k(this, r), e = U(this, r), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(r._attributeToProperty_).forEach(function(t) {
|
|
@@ -4954,9 +4954,9 @@ var ot = Cl, On = /* @__PURE__ */ function() {
|
|
|
4954
4954
|
return Object.keys(r._attributes_) || [];
|
|
4955
4955
|
}
|
|
4956
4956
|
}]);
|
|
4957
|
-
}(/* @__PURE__ */
|
|
4958
|
-
|
|
4959
|
-
var Xd =
|
|
4957
|
+
}(/* @__PURE__ */ Wi(HTMLElement));
|
|
4958
|
+
ta._attributes_ = {}, ta._attributeToProperty_ = {};
|
|
4959
|
+
var Xd = ta, Qd = `<?xml version="1.0" standalone="no"?>
|
|
4960
4960
|
<svg version="1.1"
|
|
4961
4961
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
4962
4962
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
@@ -5355,7 +5355,7 @@ var lo = mn, co = {
|
|
|
5355
5355
|
}
|
|
5356
5356
|
],
|
|
5357
5357
|
use_web_worker: !0
|
|
5358
|
-
},
|
|
5358
|
+
}, Kt = /* @__PURE__ */ function(n) {
|
|
5359
5359
|
function r(e) {
|
|
5360
5360
|
var t;
|
|
5361
5361
|
k(this, r);
|
|
@@ -5819,8 +5819,8 @@ var lo = mn, co = {
|
|
|
5819
5819
|
}
|
|
5820
5820
|
}]);
|
|
5821
5821
|
}(Er);
|
|
5822
|
-
|
|
5823
|
-
var ba =
|
|
5822
|
+
Kt.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", Kt.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", Kt.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", Kt.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", Kt.MODULE_SEARCH_LIMIT_S = 5;
|
|
5823
|
+
var ba = Kt, uo = /* @__PURE__ */ function() {
|
|
5824
5824
|
function n() {
|
|
5825
5825
|
k(this, n);
|
|
5826
5826
|
}
|
|
@@ -5894,7 +5894,7 @@ var ba = Gt, uo = /* @__PURE__ */ function() {
|
|
|
5894
5894
|
}]);
|
|
5895
5895
|
}(_e);
|
|
5896
5896
|
Al.URL_PREFIX = "https://api-inference.huggingface.co/models/";
|
|
5897
|
-
var
|
|
5897
|
+
var Mt = Al, ka = /* @__PURE__ */ function(n) {
|
|
5898
5898
|
function r(e, t, i, a, o, s) {
|
|
5899
5899
|
var l;
|
|
5900
5900
|
return k(this, r), l = U(this, r, [e, t, i, a, o, s]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
|
|
@@ -5942,7 +5942,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
5942
5942
|
return !!(i != null && i[0]);
|
|
5943
5943
|
}
|
|
5944
5944
|
}]);
|
|
5945
|
-
}(
|
|
5945
|
+
}(Mt), rp = /* @__PURE__ */ function(n) {
|
|
5946
5946
|
function r(e) {
|
|
5947
5947
|
k(this, r);
|
|
5948
5948
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.audioClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6060,7 +6060,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6060
6060
|
};
|
|
6061
6061
|
}
|
|
6062
6062
|
}]);
|
|
6063
|
-
}(),
|
|
6063
|
+
}(), jr = /* @__PURE__ */ function(n) {
|
|
6064
6064
|
function r(e, t, i, a, o) {
|
|
6065
6065
|
var s;
|
|
6066
6066
|
return k(this, r), s = U(this, r, [e, t, i, a, o]), s.insertKeyPlaceholderText = "Stability AI API Key", s.keyHelpUrl = "https://platform.stability.ai/docs/getting-started/authentication", s.permittedErrorPrefixes = ["Incorrect", "invalid_"], s;
|
|
@@ -6170,7 +6170,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6170
6170
|
return !!(i != null && i[0]);
|
|
6171
6171
|
}
|
|
6172
6172
|
}]);
|
|
6173
|
-
}(
|
|
6173
|
+
}(jr), op = /* @__PURE__ */ function(n) {
|
|
6174
6174
|
function r(e) {
|
|
6175
6175
|
var t;
|
|
6176
6176
|
k(this, r);
|
|
@@ -6274,7 +6274,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6274
6274
|
return !!(i != null && i[0]) && !!(t && t.trim() !== "");
|
|
6275
6275
|
}
|
|
6276
6276
|
}]);
|
|
6277
|
-
}(
|
|
6277
|
+
}(jr), sp = /* @__PURE__ */ function(n) {
|
|
6278
6278
|
function r(e) {
|
|
6279
6279
|
k(this, r);
|
|
6280
6280
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.audioSpeechRecognition, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6353,7 +6353,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6353
6353
|
return t;
|
|
6354
6354
|
}()
|
|
6355
6355
|
}]);
|
|
6356
|
-
}(
|
|
6356
|
+
}(Mt), cp = /* @__PURE__ */ function(n) {
|
|
6357
6357
|
function r(e) {
|
|
6358
6358
|
var t;
|
|
6359
6359
|
k(this, r);
|
|
@@ -6402,7 +6402,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6402
6402
|
return t;
|
|
6403
6403
|
}()
|
|
6404
6404
|
}]);
|
|
6405
|
-
}(
|
|
6405
|
+
}(Mt), up = /* @__PURE__ */ function(n) {
|
|
6406
6406
|
function r(e) {
|
|
6407
6407
|
k(this, r);
|
|
6408
6408
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.summarization, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6437,7 +6437,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6437
6437
|
return t;
|
|
6438
6438
|
}()
|
|
6439
6439
|
}]);
|
|
6440
|
-
}(
|
|
6440
|
+
}(Mt), dp = /* @__PURE__ */ function(n) {
|
|
6441
6441
|
function r(e) {
|
|
6442
6442
|
var t, i;
|
|
6443
6443
|
k(this, r);
|
|
@@ -6508,7 +6508,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6508
6508
|
return t;
|
|
6509
6509
|
}()
|
|
6510
6510
|
}]);
|
|
6511
|
-
}(
|
|
6511
|
+
}(Mt), pp = /* @__PURE__ */ function(n) {
|
|
6512
6512
|
function r(e) {
|
|
6513
6513
|
var t;
|
|
6514
6514
|
k(this, r);
|
|
@@ -6611,7 +6611,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6611
6611
|
return !!(i != null && i[0]) && !!(t && t.trim() !== "");
|
|
6612
6612
|
}
|
|
6613
6613
|
}]);
|
|
6614
|
-
}(
|
|
6614
|
+
}(jr), hp = /* @__PURE__ */ function(n) {
|
|
6615
6615
|
function r(e) {
|
|
6616
6616
|
k(this, r);
|
|
6617
6617
|
var t, i, a, o = (i = (t = e.directConnection) == null ? void 0 : t.huggingFace) == null ? void 0 : i.translation, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6646,7 +6646,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6646
6646
|
return t;
|
|
6647
6647
|
}()
|
|
6648
6648
|
}]);
|
|
6649
|
-
}(
|
|
6649
|
+
}(Mt), fp = /* @__PURE__ */ function(n) {
|
|
6650
6650
|
function r(e) {
|
|
6651
6651
|
var t;
|
|
6652
6652
|
k(this, r);
|
|
@@ -6735,7 +6735,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6735
6735
|
return !!(t && t.trim() !== "");
|
|
6736
6736
|
}
|
|
6737
6737
|
}]);
|
|
6738
|
-
}(
|
|
6738
|
+
}(jr), mp = /* @__PURE__ */ function(n) {
|
|
6739
6739
|
function r(e) {
|
|
6740
6740
|
var t;
|
|
6741
6741
|
k(this, r);
|
|
@@ -6774,7 +6774,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
6774
6774
|
return t;
|
|
6775
6775
|
}()
|
|
6776
6776
|
}]);
|
|
6777
|
-
}(
|
|
6777
|
+
}(Mt), po = /* @__PURE__ */ function() {
|
|
6778
6778
|
function n() {
|
|
6779
6779
|
k(this, n);
|
|
6780
6780
|
}
|
|
@@ -7010,7 +7010,7 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
7010
7010
|
return e;
|
|
7011
7011
|
}()
|
|
7012
7012
|
}]);
|
|
7013
|
-
}(),
|
|
7013
|
+
}(), na = /* @__PURE__ */ function(n) {
|
|
7014
7014
|
function r(e) {
|
|
7015
7015
|
var t, i, a;
|
|
7016
7016
|
k(this, r);
|
|
@@ -7099,8 +7099,8 @@ var Lt = Al, ka = /* @__PURE__ */ function(n) {
|
|
|
7099
7099
|
}()
|
|
7100
7100
|
}]);
|
|
7101
7101
|
}(_e);
|
|
7102
|
-
|
|
7103
|
-
var yp =
|
|
7102
|
+
na.DEFAULT_MODEL = "tts-1", na.DEFAULT_VOIDE = "alloy";
|
|
7103
|
+
var yp = na, sr = /* @__PURE__ */ function(n) {
|
|
7104
7104
|
function r(e) {
|
|
7105
7105
|
var t, i;
|
|
7106
7106
|
k(this, r);
|
|
@@ -7207,7 +7207,7 @@ var yp = ta, sr = /* @__PURE__ */ function(n) {
|
|
|
7207
7207
|
}]);
|
|
7208
7208
|
}(_e);
|
|
7209
7209
|
sr.AUDIO_TRANSCRIPTIONS_URL = "https://api.openai.com/v1/audio/transcriptions", sr.AUDIO_TRANSLATIONS_URL = "https://api.openai.com/v1/audio/translations", sr.DEFAULT_MODEL = "whisper-1";
|
|
7210
|
-
var bp = sr,
|
|
7210
|
+
var bp = sr, At = /* @__PURE__ */ function() {
|
|
7211
7211
|
function n() {
|
|
7212
7212
|
k(this, n);
|
|
7213
7213
|
}
|
|
@@ -7310,7 +7310,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7310
7310
|
}(), kp = /* @__PURE__ */ function(n) {
|
|
7311
7311
|
function r(e, t, i, a, o) {
|
|
7312
7312
|
var s;
|
|
7313
|
-
return k(this, r), s = U(this, r, [e,
|
|
7313
|
+
return k(this, r), s = U(this, r, [e, At.buildLanguageKeyVerificationDetails(i), t, a, o]), s.insertKeyPlaceholderText = "Azure Language Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7314
7314
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s.permittedErrorPrefixes = ["Access"], s;
|
|
7315
7315
|
}
|
|
7316
7316
|
return z(r, n), w(r);
|
|
@@ -7319,7 +7319,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7319
7319
|
var t, i;
|
|
7320
7320
|
k(this, r);
|
|
7321
7321
|
var a, o, s, l, c = (o = (a = e.directConnection) == null ? void 0 : a.azure) == null ? void 0 : o.summarization, u = (s = e.directConnection) == null ? void 0 : s.azure;
|
|
7322
|
-
return i = U(this, r, [e,
|
|
7322
|
+
return i = U(this, r, [e, At.buildSummarizationHeader, c.endpoint, u]), i.url = "", i.textInputPlaceholderText = "Insert text to summarize", (t = (l = i.rawBody).language) !== null && t !== void 0 || (l.language = "en"), Object.assign(i.rawBody, c), i.url = "".concat(c.endpoint, "/language/analyze-text/jobs?api-version=2022-10-01-preview"), i;
|
|
7323
7323
|
}
|
|
7324
7324
|
return z(r, n), w(r, [{
|
|
7325
7325
|
key: "preprocessBody",
|
|
@@ -7453,7 +7453,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7453
7453
|
return t;
|
|
7454
7454
|
}()
|
|
7455
7455
|
}]);
|
|
7456
|
-
}(kp),
|
|
7456
|
+
}(kp), vi = /* @__PURE__ */ function() {
|
|
7457
7457
|
function n() {
|
|
7458
7458
|
k(this, n);
|
|
7459
7459
|
}
|
|
@@ -7552,7 +7552,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7552
7552
|
var t;
|
|
7553
7553
|
k(this, r);
|
|
7554
7554
|
var i, a = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
|
|
7555
|
-
return t = U(this, r, [e,
|
|
7555
|
+
return t = U(this, r, [e, vi.buildKeyVerificationDetails(), vi.buildHeaders, a, {
|
|
7556
7556
|
audio: {}
|
|
7557
7557
|
}]), t.insertKeyPlaceholderText = "AssemblyAI API Key", t.keyHelpUrl = "https://www.assemblyai.com/app/account", t.introPanelMarkUp = `
|
|
7558
7558
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>AssemblyAI Audio</b></div>
|
|
@@ -7607,7 +7607,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7607
7607
|
}
|
|
7608
7608
|
throw a.error;
|
|
7609
7609
|
case 2:
|
|
7610
|
-
return l = (s = (o = this.connectSettings) == null ? void 0 : o.headers) == null ? void 0 : s.Authorization, u.next = 5,
|
|
7610
|
+
return l = (s = (o = this.connectSettings) == null ? void 0 : o.headers) == null ? void 0 : s.Authorization, u.next = 5, vi.poll(l, a.upload_url);
|
|
7611
7611
|
case 5:
|
|
7612
7612
|
return u.t0 = u.sent.text, u.abrupt("return", {
|
|
7613
7613
|
text: u.t0
|
|
@@ -7632,7 +7632,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7632
7632
|
}(_e), Tl = /* @__PURE__ */ function(n) {
|
|
7633
7633
|
function r(e, t, i, a, o) {
|
|
7634
7634
|
var s;
|
|
7635
|
-
return k(this, r), s = U(this, r, [e,
|
|
7635
|
+
return k(this, r), s = U(this, r, [e, At.buildSpeechKeyVerificationDetails(i), t, a, o]), s.insertKeyPlaceholderText = "Azure Speech Subscription Key", s.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7636
7636
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", s;
|
|
7637
7637
|
}
|
|
7638
7638
|
return z(r, n), w(r);
|
|
@@ -7641,7 +7641,7 @@ var bp = sr, xt = /* @__PURE__ */ function() {
|
|
|
7641
7641
|
var t, i, a, o;
|
|
7642
7642
|
k(this, r);
|
|
7643
7643
|
var s, l, c, u, d, p, h = (l = (s = e.directConnection) == null ? void 0 : s.azure) == null ? void 0 : l.textToSpeech, f = (c = e.directConnection) == null ? void 0 : c.azure;
|
|
7644
|
-
return o = U(this, r, [e,
|
|
7644
|
+
return o = U(this, r, [e, At.buildTextToSpeechHeaders.bind({}, (h == null ? void 0 : h.outputFormat) || "audio-16khz-128kbitrate-mono-mp3"), h.region, f]), o.introPanelMarkUp = `
|
|
7645
7645
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Text To Speech</b></div>
|
|
7646
7646
|
<p>Insert text to synthesize it to audio.
|
|
7647
7647
|
<p>
|
|
@@ -7728,7 +7728,7 @@ var _p = Rl, Ol = /* @__PURE__ */ function(n) {
|
|
|
7728
7728
|
}
|
|
7729
7729
|
}
|
|
7730
7730
|
};
|
|
7731
|
-
t = U(this, r, [e,
|
|
7731
|
+
t = U(this, r, [e, At.buildSpeechToTextHeaders, s.region, l, c]), t.introPanelMarkUp = `
|
|
7732
7732
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Speech To Text</b></div>
|
|
7733
7733
|
<p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.
|
|
7734
7734
|
<p>
|
|
@@ -7810,7 +7810,7 @@ var Ep = Ol, Cp = /* @__PURE__ */ function(n) {
|
|
|
7810
7810
|
var t;
|
|
7811
7811
|
k(this, r);
|
|
7812
7812
|
var i, a, o, s = (a = (i = e.directConnection) == null ? void 0 : i.azure) == null ? void 0 : a.translation, l = (o = e.directConnection) == null ? void 0 : o.azure;
|
|
7813
|
-
return t = U(this, r, [e,
|
|
7813
|
+
return t = U(this, r, [e, At.buildTranslationKeyVerificationDetails(s.region), At.buildTranslationHeaders.bind({}, s == null ? void 0 : s.region), l]), t.insertKeyPlaceholderText = "Azure Translate Subscription Key", t.keyHelpUrl = // eslint-disable-next-line max-len
|
|
7814
7814
|
"https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal", t.url = "", t.url = "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(s.language || "es"), t;
|
|
7815
7815
|
}
|
|
7816
7816
|
return z(r, n), w(r, [{
|
|
@@ -7876,7 +7876,7 @@ var Ep = Ol, Cp = /* @__PURE__ */ function(n) {
|
|
|
7876
7876
|
return t;
|
|
7877
7877
|
}()
|
|
7878
7878
|
}]);
|
|
7879
|
-
}(_e),
|
|
7879
|
+
}(_e), ra = /* @__PURE__ */ function() {
|
|
7880
7880
|
function n() {
|
|
7881
7881
|
k(this, n);
|
|
7882
7882
|
}
|
|
@@ -8169,8 +8169,8 @@ var Ep = Ol, Cp = /* @__PURE__ */ function(n) {
|
|
|
8169
8169
|
}()
|
|
8170
8170
|
}]);
|
|
8171
8171
|
}();
|
|
8172
|
-
|
|
8173
|
-
var ht =
|
|
8172
|
+
ra.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", ra.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.";
|
|
8173
|
+
var ht = ra, lr = /* @__PURE__ */ function(n) {
|
|
8174
8174
|
function r(e) {
|
|
8175
8175
|
var t, i, a;
|
|
8176
8176
|
k(this, r);
|
|
@@ -9530,7 +9530,7 @@ var Mp = /* @__PURE__ */ function() {
|
|
|
9530
9530
|
key: "createAudioElement",
|
|
9531
9531
|
value: function(e, t) {
|
|
9532
9532
|
var i = document.createElement("audio");
|
|
9533
|
-
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0,
|
|
9533
|
+
return i.src = e.src, i.classList.add("audio-player"), i.controls = !0, Zt.IS_SAFARI && (i.classList.add("audio-player-safari"), i.classList.add(t === J.USER_ROLE ? "audio-player-safari-right" : "audio-player-safari-left")), i;
|
|
9534
9534
|
}
|
|
9535
9535
|
}, {
|
|
9536
9536
|
key: "addNewAudioMessage",
|
|
@@ -9606,7 +9606,7 @@ var Mp = /* @__PURE__ */ function() {
|
|
|
9606
9606
|
var s = this._introMessage;
|
|
9607
9607
|
if (i != null && i.isWebModel() && ((a = s) !== null && a !== void 0 || (s = i.getIntroMessage(s))), s) {
|
|
9608
9608
|
var l;
|
|
9609
|
-
s != null && s.text ? l = this.createAndAppendNewMessageElement(s.text, J.AI_ROLE) : s != null && s.html && (l =
|
|
9609
|
+
s != null && s.text ? l = this.createAndAppendNewMessageElement(s.text, J.AI_ROLE) : s != null && s.html && (l = Ki.add(this, s.html, J.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, J.AI_ROLE, !1, (o = this.messageStyles) == null ? void 0 : o.intro), l.outerContainer.classList.add("deep-chat-intro"));
|
|
9610
9610
|
}
|
|
9611
9611
|
}
|
|
9612
9612
|
}, {
|
|
@@ -9665,7 +9665,7 @@ var Mp = /* @__PURE__ */ function() {
|
|
|
9665
9665
|
status: t.overwrite
|
|
9666
9666
|
};
|
|
9667
9667
|
if (!t.ignoreText && a.text !== void 0 && t.text !== null && (this.addNewTextMessage(a.text, a.role, o), !i && this.textToSpeech && a.role !== J.USER_ROLE && ir.speak(a.text, this.textToSpeech)), a.files && Array.isArray(a.files) && Dp.addMessages(this, a.files, a.role), a.html !== void 0 && a.html !== null) {
|
|
9668
|
-
var s =
|
|
9668
|
+
var s = Ki.add(this, a.html, a.role, this.messageElementRefs, o);
|
|
9669
9669
|
Sr.isElementTemporary(s) && delete a.html;
|
|
9670
9670
|
}
|
|
9671
9671
|
this.isValidMessageContent(a) && this.updateStateOnMessage(a, t.overwrite, t.sendUpdate, i);
|
|
@@ -9735,7 +9735,7 @@ var Mp = /* @__PURE__ */ function() {
|
|
|
9735
9735
|
}, {
|
|
9736
9736
|
key: "populateIntroPanel",
|
|
9737
9737
|
value: function(t, i, a) {
|
|
9738
|
-
(t || i) && (this._introPanel = new Pp(t, i, a), this._introPanel._elementRef && (
|
|
9738
|
+
(t || i) && (this._introPanel = new Pp(t, i, a), this._introPanel._elementRef && (Yt.apply(this, this._introPanel._elementRef), this.elementRef.appendChild(this._introPanel._elementRef)));
|
|
9739
9739
|
}
|
|
9740
9740
|
}, {
|
|
9741
9741
|
key: "addMultipleFiles",
|
|
@@ -9874,7 +9874,7 @@ var Bp = gn, Cr = /* @__PURE__ */ function() {
|
|
|
9874
9874
|
e[a].appendChild(t), a === 3 && t.classList.add("outside-right");
|
|
9875
9875
|
}
|
|
9876
9876
|
}]);
|
|
9877
|
-
}(), fo = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"],
|
|
9877
|
+
}(), fo = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], Et = /* @__PURE__ */ function() {
|
|
9878
9878
|
function n() {
|
|
9879
9879
|
k(this, n);
|
|
9880
9880
|
}
|
|
@@ -10143,7 +10143,7 @@ var Bp = gn, Cr = /* @__PURE__ */ function() {
|
|
|
10143
10143
|
}, {
|
|
10144
10144
|
key: "createInnerElement",
|
|
10145
10145
|
value: function(t, i, a) {
|
|
10146
|
-
return
|
|
10146
|
+
return Et.createSpecificStateElement(this.elementRef, i, a) || t;
|
|
10147
10147
|
}
|
|
10148
10148
|
}, {
|
|
10149
10149
|
key: "addClickEvent",
|
|
@@ -10342,7 +10342,7 @@ var Bp = gn, Cr = /* @__PURE__ */ function() {
|
|
|
10342
10342
|
}, {
|
|
10343
10343
|
key: "createInnerElement",
|
|
10344
10344
|
value: function(t, i, a) {
|
|
10345
|
-
return
|
|
10345
|
+
return Et.createSpecificStateElement(this.elementRef, i, a) || t;
|
|
10346
10346
|
}
|
|
10347
10347
|
}, {
|
|
10348
10348
|
key: "changeToActive",
|
|
@@ -10393,12 +10393,12 @@ var Bp = gn, Cr = /* @__PURE__ */ function() {
|
|
|
10393
10393
|
return t.id = "microphone-icon", t;
|
|
10394
10394
|
}
|
|
10395
10395
|
}]);
|
|
10396
|
-
}(Dn), Ml = {},
|
|
10397
|
-
Object.defineProperty(
|
|
10396
|
+
}(Dn), Ml = {}, Hr = {}, Ur = {}, $n = {}, Pt = {};
|
|
10397
|
+
Object.defineProperty(Pt, "__esModule", {
|
|
10398
10398
|
value: !0
|
|
10399
10399
|
});
|
|
10400
|
-
|
|
10401
|
-
var
|
|
10400
|
+
Pt.Text = void 0;
|
|
10401
|
+
var zr = /* @__PURE__ */ function() {
|
|
10402
10402
|
function n() {
|
|
10403
10403
|
k(this, n);
|
|
10404
10404
|
}
|
|
@@ -10428,15 +10428,15 @@ var Ur = /* @__PURE__ */ function() {
|
|
|
10428
10428
|
}
|
|
10429
10429
|
}]);
|
|
10430
10430
|
}();
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10431
|
+
Pt.Text = zr;
|
|
10432
|
+
zr.FIRST_CHAR_REGEX = /\S/;
|
|
10433
|
+
zr.DOUBLE_LINE = /\n\n/g;
|
|
10434
|
+
zr.ONE_LINE = /\n/g;
|
|
10435
10435
|
Object.defineProperty($n, "__esModule", {
|
|
10436
10436
|
value: !0
|
|
10437
10437
|
});
|
|
10438
10438
|
$n.Translate = void 0;
|
|
10439
|
-
var Zp =
|
|
10439
|
+
var Zp = Pt, Yp = /* @__PURE__ */ function() {
|
|
10440
10440
|
function n() {
|
|
10441
10441
|
k(this, n);
|
|
10442
10442
|
}
|
|
@@ -10449,10 +10449,10 @@ var Zp = Mt, Yp = /* @__PURE__ */ function() {
|
|
|
10449
10449
|
}]);
|
|
10450
10450
|
}();
|
|
10451
10451
|
$n.Translate = Yp;
|
|
10452
|
-
Object.defineProperty(
|
|
10452
|
+
Object.defineProperty(Ur, "__esModule", {
|
|
10453
10453
|
value: !0
|
|
10454
10454
|
});
|
|
10455
|
-
|
|
10455
|
+
Ur.WebSpeechTranscript = void 0;
|
|
10456
10456
|
var vo = $n, Xp = /* @__PURE__ */ function() {
|
|
10457
10457
|
function n() {
|
|
10458
10458
|
k(this, n);
|
|
@@ -10485,24 +10485,24 @@ var vo = $n, Xp = /* @__PURE__ */ function() {
|
|
|
10485
10485
|
}
|
|
10486
10486
|
}]);
|
|
10487
10487
|
}();
|
|
10488
|
-
|
|
10489
|
-
var
|
|
10490
|
-
Object.defineProperty(
|
|
10488
|
+
Ur.WebSpeechTranscript = Xp;
|
|
10489
|
+
var rn = {};
|
|
10490
|
+
Object.defineProperty(rn, "__esModule", {
|
|
10491
10491
|
value: !0
|
|
10492
10492
|
});
|
|
10493
|
-
|
|
10493
|
+
rn.Browser = void 0;
|
|
10494
10494
|
var vn = /* @__PURE__ */ w(function n() {
|
|
10495
10495
|
k(this, n);
|
|
10496
10496
|
});
|
|
10497
|
-
|
|
10497
|
+
rn.Browser = vn;
|
|
10498
10498
|
vn.IS_SAFARI = function() {
|
|
10499
10499
|
return vn._IS_SAFARI === void 0 && (vn._IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), vn._IS_SAFARI;
|
|
10500
10500
|
};
|
|
10501
|
-
var Bn = {},
|
|
10502
|
-
Object.defineProperty(
|
|
10501
|
+
var Bn = {}, Wr = {};
|
|
10502
|
+
Object.defineProperty(Wr, "__esModule", {
|
|
10503
10503
|
value: !0
|
|
10504
10504
|
});
|
|
10505
|
-
|
|
10505
|
+
Wr.EventListeners = void 0;
|
|
10506
10506
|
var Pl = /* @__PURE__ */ function() {
|
|
10507
10507
|
function n() {
|
|
10508
10508
|
k(this, n);
|
|
@@ -10545,13 +10545,13 @@ var Pl = /* @__PURE__ */ function() {
|
|
|
10545
10545
|
}
|
|
10546
10546
|
}]);
|
|
10547
10547
|
}();
|
|
10548
|
-
|
|
10548
|
+
Wr.EventListeners = Pl;
|
|
10549
10549
|
Pl.KEY_DOWN_TIMEOUT = null;
|
|
10550
|
-
var
|
|
10551
|
-
Object.defineProperty(
|
|
10550
|
+
var qr = {};
|
|
10551
|
+
Object.defineProperty(qr, "__esModule", {
|
|
10552
10552
|
value: !0
|
|
10553
10553
|
});
|
|
10554
|
-
|
|
10554
|
+
qr.PreResultUtils = void 0;
|
|
10555
10555
|
var Qp = /* @__PURE__ */ function() {
|
|
10556
10556
|
function n() {
|
|
10557
10557
|
k(this, n);
|
|
@@ -10566,7 +10566,7 @@ var Qp = /* @__PURE__ */ function() {
|
|
|
10566
10566
|
}
|
|
10567
10567
|
}]);
|
|
10568
10568
|
}();
|
|
10569
|
-
|
|
10569
|
+
qr.PreResultUtils = Qp;
|
|
10570
10570
|
var jn = {}, Hn = {};
|
|
10571
10571
|
Object.defineProperty(Hn, "__esModule", {
|
|
10572
10572
|
value: !0
|
|
@@ -10608,11 +10608,11 @@ var eh = /* @__PURE__ */ function() {
|
|
|
10608
10608
|
}]);
|
|
10609
10609
|
}();
|
|
10610
10610
|
Hn.AutoScroll = eh;
|
|
10611
|
-
var
|
|
10612
|
-
Object.defineProperty(
|
|
10611
|
+
var Ft = {};
|
|
10612
|
+
Object.defineProperty(Ft, "__esModule", {
|
|
10613
10613
|
value: !0
|
|
10614
10614
|
});
|
|
10615
|
-
|
|
10615
|
+
Ft.Elements = void 0;
|
|
10616
10616
|
var th = /* @__PURE__ */ function() {
|
|
10617
10617
|
function n() {
|
|
10618
10618
|
k(this, n);
|
|
@@ -10659,12 +10659,12 @@ var th = /* @__PURE__ */ function() {
|
|
|
10659
10659
|
}
|
|
10660
10660
|
}]);
|
|
10661
10661
|
}();
|
|
10662
|
-
|
|
10663
|
-
var
|
|
10664
|
-
Object.defineProperty(
|
|
10662
|
+
Ft.Elements = th;
|
|
10663
|
+
var Nt = {};
|
|
10664
|
+
Object.defineProperty(Nt, "__esModule", {
|
|
10665
10665
|
value: !0
|
|
10666
10666
|
});
|
|
10667
|
-
|
|
10667
|
+
Nt.Cursor = void 0;
|
|
10668
10668
|
var nh = /* @__PURE__ */ function() {
|
|
10669
10669
|
function n() {
|
|
10670
10670
|
k(this, n);
|
|
@@ -10743,12 +10743,12 @@ var nh = /* @__PURE__ */ function() {
|
|
|
10743
10743
|
}
|
|
10744
10744
|
}]);
|
|
10745
10745
|
}();
|
|
10746
|
-
|
|
10746
|
+
Nt.Cursor = nh;
|
|
10747
10747
|
Object.defineProperty(jn, "__esModule", {
|
|
10748
10748
|
value: !0
|
|
10749
10749
|
});
|
|
10750
10750
|
jn.CommandUtils = void 0;
|
|
10751
|
-
var yo = Hn, rh =
|
|
10751
|
+
var yo = Hn, rh = Ft, ih = rn, bo = Nt, ko = Pt, ah = /* @__PURE__ */ function() {
|
|
10752
10752
|
function n() {
|
|
10753
10753
|
k(this, n);
|
|
10754
10754
|
}
|
|
@@ -10838,12 +10838,12 @@ var yo = Hn, rh = Pt, ih = nn, bo = Ft, ko = Mt, ah = /* @__PURE__ */ function()
|
|
|
10838
10838
|
}]);
|
|
10839
10839
|
}();
|
|
10840
10840
|
jn.CommandUtils = ah;
|
|
10841
|
-
var
|
|
10842
|
-
Object.defineProperty(
|
|
10841
|
+
var Vr = {};
|
|
10842
|
+
Object.defineProperty(Vr, "__esModule", {
|
|
10843
10843
|
value: !0
|
|
10844
10844
|
});
|
|
10845
|
-
|
|
10846
|
-
var oh =
|
|
10845
|
+
Vr.Highlight = void 0;
|
|
10846
|
+
var oh = Ft, on = Nt, sh = /* @__PURE__ */ function() {
|
|
10847
10847
|
function n() {
|
|
10848
10848
|
k(this, n);
|
|
10849
10849
|
}
|
|
@@ -10858,7 +10858,7 @@ var oh = Pt, an = Ft, sh = /* @__PURE__ */ function() {
|
|
|
10858
10858
|
value: function(e, t) {
|
|
10859
10859
|
var i = window.getSelection();
|
|
10860
10860
|
if (i != null && i.focusNode) {
|
|
10861
|
-
var a =
|
|
10861
|
+
var a = on.Cursor.getGenericElementCursorOffset(t, i, !0), o = on.Cursor.getGenericElementCursorOffset(t, i, !1);
|
|
10862
10862
|
e.isHighlighted = a !== o;
|
|
10863
10863
|
}
|
|
10864
10864
|
}
|
|
@@ -10872,8 +10872,8 @@ var oh = Pt, an = Ft, sh = /* @__PURE__ */ function() {
|
|
|
10872
10872
|
value: function(e, t) {
|
|
10873
10873
|
var i = window.getSelection();
|
|
10874
10874
|
if (i) {
|
|
10875
|
-
var a =
|
|
10876
|
-
i.deleteFromDocument(),
|
|
10875
|
+
var a = on.Cursor.getGenericElementCursorOffset(t, i, !0);
|
|
10876
|
+
i.deleteFromDocument(), on.Cursor.setOffsetForGeneric(t, a), e.isHighlighted = !1;
|
|
10877
10877
|
}
|
|
10878
10878
|
}
|
|
10879
10879
|
}, {
|
|
@@ -10882,19 +10882,19 @@ var oh = Pt, an = Ft, sh = /* @__PURE__ */ function() {
|
|
|
10882
10882
|
var i = t.selectionStart, a = t.selectionEnd, o = t.value;
|
|
10883
10883
|
if (i && a) {
|
|
10884
10884
|
var s = o.substring(0, i) + o.substring(a);
|
|
10885
|
-
t.value = s,
|
|
10885
|
+
t.value = s, on.Cursor.setOffsetForPrimitive(t, i, e.autoScroll);
|
|
10886
10886
|
}
|
|
10887
10887
|
e.isHighlighted = !1;
|
|
10888
10888
|
}
|
|
10889
10889
|
}]);
|
|
10890
10890
|
}();
|
|
10891
|
-
|
|
10892
|
-
var
|
|
10893
|
-
Object.defineProperty(
|
|
10891
|
+
Vr.Highlight = sh;
|
|
10892
|
+
var Gr = {};
|
|
10893
|
+
Object.defineProperty(Gr, "__esModule", {
|
|
10894
10894
|
value: !0
|
|
10895
10895
|
});
|
|
10896
|
-
|
|
10897
|
-
var lh =
|
|
10896
|
+
Gr.Padding = void 0;
|
|
10897
|
+
var lh = Ft, wo = Nt, Ht = Pt, ch = /* @__PURE__ */ function() {
|
|
10898
10898
|
function n() {
|
|
10899
10899
|
k(this, n);
|
|
10900
10900
|
}
|
|
@@ -10903,11 +10903,11 @@ var lh = Pt, wo = Ft, jt = Mt, ch = /* @__PURE__ */ function() {
|
|
|
10903
10903
|
value: function(e, t) {
|
|
10904
10904
|
if (document.activeElement === t && t.selectionStart !== null) {
|
|
10905
10905
|
var i = t.selectionStart, a = t.value[i - 1], o = t.selectionEnd === null ? i : t.selectionEnd, s = t.value[o];
|
|
10906
|
-
|
|
10906
|
+
Ht.Text.isCharDefined(a) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), Ht.Text.isCharDefined(s) && (e.endPadding = " ", e.numberOfSpacesAfterNewText = 1), e.isCursorAtEnd = t.value.length === o;
|
|
10907
10907
|
return;
|
|
10908
10908
|
}
|
|
10909
10909
|
var l = t.value[t.value.length - 1];
|
|
10910
|
-
|
|
10910
|
+
Ht.Text.isCharDefined(l) && (e.startPadding = " ", e.numberOfSpacesBeforeNewText = 1), e.isCursorAtEnd = !0;
|
|
10911
10911
|
}
|
|
10912
10912
|
}, {
|
|
10913
10913
|
key: "setStateForGenericElement",
|
|
@@ -10917,12 +10917,12 @@ var lh = Pt, wo = Ft, jt = Mt, ch = /* @__PURE__ */ function() {
|
|
|
10917
10917
|
var s = window.getSelection();
|
|
10918
10918
|
if (s != null && s.focusNode) {
|
|
10919
10919
|
var l = wo.Cursor.getGenericElementCursorOffset(t, s, !0), c = (i = t.textContent) === null || i === void 0 ? void 0 : i[l - 1], u = wo.Cursor.getGenericElementCursorOffset(t, s, !1), d = (a = t.textContent) === null || a === void 0 ? void 0 : a[u];
|
|
10920
|
-
|
|
10920
|
+
Ht.Text.isCharDefined(c) && (e.startPadding = " "), Ht.Text.isCharDefined(d) && (e.endPadding = " "), e.isCursorAtEnd = ((o = t.textContent) === null || o === void 0 ? void 0 : o.length) === u;
|
|
10921
10921
|
return;
|
|
10922
10922
|
}
|
|
10923
10923
|
}
|
|
10924
10924
|
var p = t.innerText.charAt(t.innerText.length - 1);
|
|
10925
|
-
|
|
10925
|
+
Ht.Text.isCharDefined(p) && (e.startPadding = " "), e.isCursorAtEnd = !0;
|
|
10926
10926
|
}
|
|
10927
10927
|
}, {
|
|
10928
10928
|
key: "setState",
|
|
@@ -10945,12 +10945,12 @@ var lh = Pt, wo = Ft, jt = Mt, ch = /* @__PURE__ */ function() {
|
|
|
10945
10945
|
}
|
|
10946
10946
|
}]);
|
|
10947
10947
|
}();
|
|
10948
|
-
|
|
10948
|
+
Gr.Padding = ch;
|
|
10949
10949
|
Object.defineProperty(Bn, "__esModule", {
|
|
10950
10950
|
value: !0
|
|
10951
10951
|
});
|
|
10952
10952
|
Bn.Speech = void 0;
|
|
10953
|
-
var So =
|
|
10953
|
+
var So = Wr, uh = qr, _o = jn, Qn = Hn, yi = Vr, He = Ft, bi = Gr, Eo = rn, Co = Nt, ki = Pt, dh = /* @__PURE__ */ function() {
|
|
10954
10954
|
function n() {
|
|
10955
10955
|
k(this, n), this.finalTranscript = "", this.interimSpan = He.Elements.createInterimSpan(), this.finalSpan = He.Elements.createGenericSpan(), this.scrollingSpan = He.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();
|
|
10956
10956
|
}
|
|
@@ -10970,7 +10970,7 @@ var So = zr, uh = Wr, _o = jn, Qn = Hn, vi = qr, He = Pt, yi = Vr, Eo = nn, Co =
|
|
|
10970
10970
|
}, {
|
|
10971
10971
|
key: "prepare",
|
|
10972
10972
|
value: function(e) {
|
|
10973
|
-
|
|
10973
|
+
bi.Padding.setState(this, e), yi.Highlight.setState(this, e), this.isTargetInShadow = He.Elements.isInsideShadowDOM(e), He.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
|
|
10974
10974
|
}
|
|
10975
10975
|
// there was an attempt to optimize this by not having to restart the service and just reset state:
|
|
10976
10976
|
// unfortunately it did not work because the service would still continue firing the intermediate and final results
|
|
@@ -10984,7 +10984,7 @@ var So = zr, uh = Wr, _o = jn, Qn = Hn, vi = qr, He = Pt, yi = Vr, Eo = nn, Co =
|
|
|
10984
10984
|
}, {
|
|
10985
10985
|
key: "updateElements",
|
|
10986
10986
|
value: function(e, t, i) {
|
|
10987
|
-
var a, o =
|
|
10987
|
+
var a, o = ki.Text.capitalize(t);
|
|
10988
10988
|
if (!(this.finalTranscript === o && e === "")) {
|
|
10989
10989
|
uh.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
10990
10990
|
var s = this.commands && _o.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
@@ -11004,7 +11004,7 @@ var So = zr, uh = Wr, _o = jn, Qn = Hn, vi = qr, He = Pt, yi = Vr, Eo = nn, Co =
|
|
|
11004
11004
|
}, {
|
|
11005
11005
|
key: "updatePrimitiveElement",
|
|
11006
11006
|
value: function(e, t, i) {
|
|
11007
|
-
this.isHighlighted &&
|
|
11007
|
+
this.isHighlighted && yi.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || bi.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && bi.Padding.adjustSateForNoTextPrimitiveElement(this);
|
|
11008
11008
|
var a = this.startPadding + this.finalTranscript + t;
|
|
11009
11009
|
if (e.value = a + this.endPadding, !this.isTargetInShadow) {
|
|
11010
11010
|
var o = a.length + this.numberOfSpacesAfterNewText;
|
|
@@ -11015,12 +11015,12 @@ var So = zr, uh = Wr, _o = jn, Qn = Hn, vi = qr, He = Pt, yi = Vr, Eo = nn, Co =
|
|
|
11015
11015
|
}, {
|
|
11016
11016
|
key: "updateGenericElement",
|
|
11017
11017
|
value: function(e, t, i) {
|
|
11018
|
-
this.isHighlighted &&
|
|
11019
|
-
var a = (i ? "" : this.startPadding) +
|
|
11018
|
+
this.isHighlighted && yi.Highlight.removeForGeneric(this, e), this.spansPopulated || He.Elements.appendSpans(this, e);
|
|
11019
|
+
var a = (i ? "" : this.startPadding) + ki.Text.lineBreak(this.finalTranscript);
|
|
11020
11020
|
this.finalSpan.innerHTML = a;
|
|
11021
11021
|
var o = Qn.AutoScroll.isRequired(this.autoScroll, e);
|
|
11022
11022
|
Qn.AutoScroll.changeStateIfNeeded(this, o);
|
|
11023
|
-
var s =
|
|
11023
|
+
var s = ki.Text.lineBreak(t) + (i ? "" : this.endPadding);
|
|
11024
11024
|
this.interimSpan.innerHTML = s, Eo.Browser.IS_SAFARI() && this.insertInCursorLocation && Co.Cursor.setOffsetForSafariGeneric(e, a.length + s.length), o && Qn.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11025
11025
|
}
|
|
11026
11026
|
}, {
|
|
@@ -11059,11 +11059,11 @@ var So = zr, uh = Wr, _o = jn, Qn = Hn, vi = qr, He = Pt, yi = Vr, Eo = nn, Co =
|
|
|
11059
11059
|
}]);
|
|
11060
11060
|
}();
|
|
11061
11061
|
Bn.Speech = dh;
|
|
11062
|
-
Object.defineProperty(
|
|
11062
|
+
Object.defineProperty(Hr, "__esModule", {
|
|
11063
11063
|
value: !0
|
|
11064
11064
|
});
|
|
11065
|
-
|
|
11066
|
-
var xo =
|
|
11065
|
+
Hr.WebSpeech = void 0;
|
|
11066
|
+
var xo = Ur, Ao = rn, ph = Bn, hh = /* @__PURE__ */ function(n) {
|
|
11067
11067
|
function r() {
|
|
11068
11068
|
return k(this, r), U(this, r);
|
|
11069
11069
|
}
|
|
@@ -11122,12 +11122,12 @@ var xo = Hr, Ao = nn, ph = Bn, hh = /* @__PURE__ */ function(n) {
|
|
|
11122
11122
|
}
|
|
11123
11123
|
}]);
|
|
11124
11124
|
}(ph.Speech);
|
|
11125
|
-
|
|
11126
|
-
var
|
|
11127
|
-
Object.defineProperty(
|
|
11125
|
+
Hr.WebSpeech = hh;
|
|
11126
|
+
var Kr = {};
|
|
11127
|
+
Object.defineProperty(Kr, "__esModule", {
|
|
11128
11128
|
value: !0
|
|
11129
11129
|
});
|
|
11130
|
-
|
|
11130
|
+
Kr.GlobalState = void 0;
|
|
11131
11131
|
var Fl = /* @__PURE__ */ function() {
|
|
11132
11132
|
function n() {
|
|
11133
11133
|
k(this, n);
|
|
@@ -11141,13 +11141,13 @@ var Fl = /* @__PURE__ */ function() {
|
|
|
11141
11141
|
}
|
|
11142
11142
|
}]);
|
|
11143
11143
|
}();
|
|
11144
|
-
|
|
11144
|
+
Kr.GlobalState = Fl;
|
|
11145
11145
|
Fl.doubleClickPending = !1;
|
|
11146
|
-
var
|
|
11147
|
-
Object.defineProperty(
|
|
11146
|
+
var Jr = {}, Zr = {};
|
|
11147
|
+
Object.defineProperty(Zr, "__esModule", {
|
|
11148
11148
|
value: !0
|
|
11149
11149
|
});
|
|
11150
|
-
|
|
11150
|
+
Zr.PreventConnectionStop = void 0;
|
|
11151
11151
|
var fh = /* @__PURE__ */ function() {
|
|
11152
11152
|
function n() {
|
|
11153
11153
|
k(this, n);
|
|
@@ -11166,25 +11166,25 @@ var fh = /* @__PURE__ */ function() {
|
|
|
11166
11166
|
}
|
|
11167
11167
|
}]);
|
|
11168
11168
|
}();
|
|
11169
|
-
|
|
11170
|
-
var
|
|
11171
|
-
Object.defineProperty(
|
|
11169
|
+
Zr.PreventConnectionStop = fh;
|
|
11170
|
+
var Yr = {}, Xr = {};
|
|
11171
|
+
Object.defineProperty(Xr, "__esModule", {
|
|
11172
11172
|
value: !0
|
|
11173
11173
|
});
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
Object.defineProperty(
|
|
11174
|
+
Xr.README_URL = void 0;
|
|
11175
|
+
Xr.README_URL = "https://github.com/OvidijusParsiunas/speech-to-element";
|
|
11176
|
+
Object.defineProperty(Yr, "__esModule", {
|
|
11177
11177
|
value: !0
|
|
11178
11178
|
});
|
|
11179
|
-
|
|
11180
|
-
var
|
|
11179
|
+
Yr.AzureSpeechConfig = void 0;
|
|
11180
|
+
var wi = Xr, mh = /* @__PURE__ */ function() {
|
|
11181
11181
|
function n() {
|
|
11182
11182
|
k(this, n);
|
|
11183
11183
|
}
|
|
11184
11184
|
return w(n, null, [{
|
|
11185
11185
|
key: "validateOptions",
|
|
11186
11186
|
value: function(e, t) {
|
|
11187
|
-
return t ? !t.subscriptionKey && !t.token && !t.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(
|
|
11187
|
+
return t ? !t.subscriptionKey && !t.token && !t.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(wi.README_URL)), !1) : t.region ? !0 : (e("Please define a 'region' property - more info: ".concat(wi.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(wi.README_URL)), !1);
|
|
11188
11188
|
}
|
|
11189
11189
|
}, {
|
|
11190
11190
|
key: "getNewSpeechConfig",
|
|
@@ -11242,12 +11242,12 @@ var ki = Yr, mh = /* @__PURE__ */ function() {
|
|
|
11242
11242
|
}()
|
|
11243
11243
|
}]);
|
|
11244
11244
|
}();
|
|
11245
|
-
|
|
11246
|
-
var
|
|
11247
|
-
Object.defineProperty(
|
|
11245
|
+
Yr.AzureSpeechConfig = mh;
|
|
11246
|
+
var Qr = {};
|
|
11247
|
+
Object.defineProperty(Qr, "__esModule", {
|
|
11248
11248
|
value: !0
|
|
11249
11249
|
});
|
|
11250
|
-
|
|
11250
|
+
Qr.StopTimeout = void 0;
|
|
11251
11251
|
var Nl = /* @__PURE__ */ function() {
|
|
11252
11252
|
function n() {
|
|
11253
11253
|
k(this, n);
|
|
@@ -11266,13 +11266,13 @@ var Nl = /* @__PURE__ */ function() {
|
|
|
11266
11266
|
}
|
|
11267
11267
|
}]);
|
|
11268
11268
|
}();
|
|
11269
|
-
|
|
11269
|
+
Qr.StopTimeout = Nl;
|
|
11270
11270
|
Nl.DEFAULT_MS = 2e4;
|
|
11271
|
-
var
|
|
11272
|
-
Object.defineProperty(
|
|
11271
|
+
var ei = {};
|
|
11272
|
+
Object.defineProperty(ei, "__esModule", {
|
|
11273
11273
|
value: !0
|
|
11274
11274
|
});
|
|
11275
|
-
|
|
11275
|
+
ei.AzureTranscript = void 0;
|
|
11276
11276
|
var gh = $n, vh = /* @__PURE__ */ function() {
|
|
11277
11277
|
function n() {
|
|
11278
11278
|
k(this, n);
|
|
@@ -11295,12 +11295,12 @@ var gh = $n, vh = /* @__PURE__ */ function() {
|
|
|
11295
11295
|
)
|
|
11296
11296
|
}]);
|
|
11297
11297
|
}();
|
|
11298
|
-
|
|
11299
|
-
Object.defineProperty(
|
|
11298
|
+
ei.AzureTranscript = vh;
|
|
11299
|
+
Object.defineProperty(Jr, "__esModule", {
|
|
11300
11300
|
value: !0
|
|
11301
11301
|
});
|
|
11302
|
-
|
|
11303
|
-
var To =
|
|
11302
|
+
Jr.Azure = void 0;
|
|
11303
|
+
var To = Zr, Ro = Yr, Si = Qr, Oo = ei, yh = Bn, bh = /* @__PURE__ */ function(n) {
|
|
11304
11304
|
function r() {
|
|
11305
11305
|
var e;
|
|
11306
11306
|
return k(this, r), e = U(this, r, arguments), e._newTextPadding = "", e;
|
|
@@ -11308,7 +11308,7 @@ var To = Jr, Ro = Zr, wi = Xr, Oo = Qr, yh = Bn, bh = /* @__PURE__ */ function(n
|
|
|
11308
11308
|
return z(r, n), w(r, [{
|
|
11309
11309
|
key: "start",
|
|
11310
11310
|
value: function(t, i) {
|
|
11311
|
-
this._newTextPadding = "", this.stopTimeout === void 0 &&
|
|
11311
|
+
this._newTextPadding = "", this.stopTimeout === void 0 && Si.StopTimeout.reset(this, t == null ? void 0 : t.stopAfterSilenceMs), this.prepareBeforeStart(t), this.startAsync(t), i || To.PreventConnectionStop.applyPrevention(this);
|
|
11312
11312
|
}
|
|
11313
11313
|
}, {
|
|
11314
11314
|
key: "startAsync",
|
|
@@ -11375,7 +11375,7 @@ var To = Jr, Ro = Zr, wi = Xr, Oo = Qr, yh = Bn, bh = /* @__PURE__ */ function(n
|
|
|
11375
11375
|
value: function(t, i) {
|
|
11376
11376
|
if (!this._stopping) {
|
|
11377
11377
|
var a = Oo.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), o = a.interimTranscript, s = a.finalTranscript, l = a.newText;
|
|
11378
|
-
|
|
11378
|
+
Si.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, s, l);
|
|
11379
11379
|
}
|
|
11380
11380
|
}
|
|
11381
11381
|
// WORK - huge opportunity to fix this in the repo!!!!!
|
|
@@ -11394,7 +11394,7 @@ var To = Jr, Ro = Zr, wi = Xr, Oo = Qr, yh = Bn, bh = /* @__PURE__ */ function(n
|
|
|
11394
11394
|
case window.SpeechSDK.ResultReason.RecognizedSpeech:
|
|
11395
11395
|
if (a.text && !this._stopping) {
|
|
11396
11396
|
var o = Oo.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), s = o.interimTranscript, l = o.finalTranscript, c = o.newText;
|
|
11397
|
-
|
|
11397
|
+
Si.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(s, l, c), l !== "" && (this._newTextPadding = " ");
|
|
11398
11398
|
}
|
|
11399
11399
|
break;
|
|
11400
11400
|
}
|
|
@@ -11449,11 +11449,11 @@ var To = Jr, Ro = Zr, wi = Xr, Oo = Qr, yh = Bn, bh = /* @__PURE__ */ function(n
|
|
|
11449
11449
|
}
|
|
11450
11450
|
}]);
|
|
11451
11451
|
}(yh.Speech);
|
|
11452
|
-
|
|
11452
|
+
Jr.Azure = bh;
|
|
11453
11453
|
Object.defineProperty(Ml, "__esModule", {
|
|
11454
11454
|
value: !0
|
|
11455
11455
|
});
|
|
11456
|
-
var Io =
|
|
11456
|
+
var Io = Hr, kh = jn, $e = Kr, wh = Jr, Sh = /* @__PURE__ */ function() {
|
|
11457
11457
|
function n() {
|
|
11458
11458
|
k(this, n);
|
|
11459
11459
|
}
|
|
@@ -11642,7 +11642,7 @@ var Sa = Dl, _a = /* @__PURE__ */ function() {
|
|
|
11642
11642
|
var o = n.createImageAttachment(t);
|
|
11643
11643
|
this.addFileAttachment(e, "image", o, i);
|
|
11644
11644
|
} else if (a === "audio") {
|
|
11645
|
-
var s =
|
|
11645
|
+
var s = ia.createAudioAttachment(t);
|
|
11646
11646
|
this.addFileAttachment(e, "audio", s, i);
|
|
11647
11647
|
} else {
|
|
11648
11648
|
var l = n.createAnyFileAttachment(e.name);
|
|
@@ -11680,7 +11680,7 @@ var Sa = Dl, _a = /* @__PURE__ */ function() {
|
|
|
11680
11680
|
var t, i = this._attachments.findIndex(function(o) {
|
|
11681
11681
|
return o === e;
|
|
11682
11682
|
}), a = this._attachments[i].attachmentContainerElement;
|
|
11683
|
-
this._attachments.splice(i, 1),
|
|
11683
|
+
this._attachments.splice(i, 1), ia.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (t = this._validationHandler) == null || t.call(this);
|
|
11684
11684
|
}
|
|
11685
11685
|
}, {
|
|
11686
11686
|
key: "getFiles",
|
|
@@ -11732,7 +11732,7 @@ var Sa = Dl, _a = /* @__PURE__ */ function() {
|
|
|
11732
11732
|
key: "createAnyFileAttachment",
|
|
11733
11733
|
value: function(e) {
|
|
11734
11734
|
var t = document.createElement("div");
|
|
11735
|
-
t.classList.add("border-bound-attachment"),
|
|
11735
|
+
t.classList.add("border-bound-attachment"), Zt.IS_SAFARI && t.classList.add("border-bound-attachment-safari");
|
|
11736
11736
|
var i = document.createElement("div");
|
|
11737
11737
|
i.classList.add("any-file-attachment-text");
|
|
11738
11738
|
var a = document.createElement("div");
|
|
@@ -11822,7 +11822,7 @@ var Sa = Dl, _a = /* @__PURE__ */ function() {
|
|
|
11822
11822
|
key: "createAudioContainer",
|
|
11823
11823
|
value: function() {
|
|
11824
11824
|
var t = document.createElement("div");
|
|
11825
|
-
return t.classList.add("border-bound-attachment", "audio-attachment-icon-container"),
|
|
11825
|
+
return t.classList.add("border-bound-attachment", "audio-attachment-icon-container"), Zt.IS_SAFARI && t.classList.add("border-bound-attachment-safari"), t;
|
|
11826
11826
|
}
|
|
11827
11827
|
}, {
|
|
11828
11828
|
key: "addAudioElements",
|
|
@@ -11857,7 +11857,7 @@ var Sa = Dl, _a = /* @__PURE__ */ function() {
|
|
|
11857
11857
|
}]);
|
|
11858
11858
|
}(_a);
|
|
11859
11859
|
$l.TIMER_LIMIT_S = 5999;
|
|
11860
|
-
var
|
|
11860
|
+
var ia = $l, Ch = /* @__PURE__ */ function() {
|
|
11861
11861
|
function n() {
|
|
11862
11862
|
k(this, n);
|
|
11863
11863
|
}
|
|
@@ -11866,7 +11866,7 @@ var ra = $l, Ch = /* @__PURE__ */ function() {
|
|
|
11866
11866
|
value: (
|
|
11867
11867
|
// prettier-ignore
|
|
11868
11868
|
function(e, t, i, a, o) {
|
|
11869
|
-
return o === "audio" ? new
|
|
11869
|
+
return o === "audio" ? new ia(e, t, i, a) : new _a(e, t, i, a);
|
|
11870
11870
|
}
|
|
11871
11871
|
)
|
|
11872
11872
|
}]);
|
|
@@ -12085,7 +12085,7 @@ var yn = Bl, xh = /* @__PURE__ */ function(n) {
|
|
|
12085
12085
|
value: function(t, i, a) {
|
|
12086
12086
|
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, s = r.createSVGIconElement(t, i);
|
|
12087
12087
|
return {
|
|
12088
|
-
styles:
|
|
12088
|
+
styles: Et.createInnerElement(this.elementRef, s, "styles", a, o)
|
|
12089
12089
|
};
|
|
12090
12090
|
}
|
|
12091
12091
|
}, {
|
|
@@ -12438,19 +12438,19 @@ var yn = Bl, xh = /* @__PURE__ */ function(n) {
|
|
|
12438
12438
|
}, {
|
|
12439
12439
|
key: "createCustomElements",
|
|
12440
12440
|
value: function() {
|
|
12441
|
-
var t = this, i =
|
|
12441
|
+
var t = this, i = Et.createSpecificStateElement(this.elementRef, "submit", this._customStyles), a = {
|
|
12442
12442
|
loading: void 0,
|
|
12443
12443
|
stop: void 0
|
|
12444
12444
|
};
|
|
12445
12445
|
return Object.keys(a).forEach(function(o) {
|
|
12446
|
-
var s = o, l =
|
|
12446
|
+
var s = o, l = Et.createCustomElement(s, t._customStyles);
|
|
12447
12447
|
l && (a[s] = l);
|
|
12448
12448
|
}), a.submit = i, a;
|
|
12449
12449
|
}
|
|
12450
12450
|
}, {
|
|
12451
12451
|
key: "createDisabledIconElement",
|
|
12452
12452
|
value: function(t) {
|
|
12453
|
-
return
|
|
12453
|
+
return Et.createCustomElement("disabled", this._customStyles) || t.cloneNode(!0);
|
|
12454
12454
|
}
|
|
12455
12455
|
// prettier-ignore
|
|
12456
12456
|
}, {
|
|
@@ -12816,7 +12816,7 @@ var Oh = dr, Ih = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12816
12816
|
value: function(t) {
|
|
12817
12817
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
12818
12818
|
return {
|
|
12819
|
-
styles:
|
|
12819
|
+
styles: Et.createInnerElement(this.elementRef, r.createSVGIconElement(), "styles", t, i)
|
|
12820
12820
|
};
|
|
12821
12821
|
}
|
|
12822
12822
|
}, {
|
|
@@ -12952,7 +12952,7 @@ var Oh = dr, Ih = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12952
12952
|
}, e.setPlaceholderText = function() {
|
|
12953
12953
|
}, e._hasBeenRendered = !1, e._auxiliaryStyleApplied = !1, e._elementRef = document.createElement("div"), e._elementRef.id = "container", e.attachShadow({
|
|
12954
12954
|
mode: "open"
|
|
12955
|
-
}).appendChild(e._elementRef),
|
|
12955
|
+
}).appendChild(e._elementRef), pi.apply(jh, e.shadowRoot), setTimeout(function() {
|
|
12956
12956
|
e._hasBeenRendered || e.onRender();
|
|
12957
12957
|
}, 20), e;
|
|
12958
12958
|
}
|
|
@@ -12966,7 +12966,7 @@ var Oh = dr, Ih = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12966
12966
|
key: "onRender",
|
|
12967
12967
|
value: function() {
|
|
12968
12968
|
var t;
|
|
12969
|
-
rl.attemptAppendStyleSheetToHead(this.style), Ne.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Ip.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (
|
|
12969
|
+
rl.attemptAppendStyleSheetToHead(this.style), Ne.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Ip.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (pi.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), pi.applyDefaultStyleToComponent(this.style, this.chatStyle), Ne.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? Zc.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof _e) || this._activeService.key ? ((t = this._childElement) !== null && t !== void 0 || (this._childElement = this.children[0]), Bh.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof _e && np.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, _r.onRender(this);
|
|
12970
12970
|
}
|
|
12971
12971
|
}, {
|
|
12972
12972
|
key: "disconnectedCallback",
|
|
@@ -13061,7 +13061,7 @@ const A = (n) => new Hl(typeof n == "string" ? n : n + "", void 0, xa), Un = (n,
|
|
|
13061
13061
|
* Copyright 2017 Google LLC
|
|
13062
13062
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13063
13063
|
*/
|
|
13064
|
-
const { is: zh, defineProperty: Wh, getOwnPropertyDescriptor: qh, getOwnPropertyNames: Vh, getOwnPropertySymbols: Gh, getPrototypeOf: Kh } = Object, st = globalThis, Do = st.trustedTypes, Jh = Do ? Do.emptyScript : "",
|
|
13064
|
+
const { is: zh, defineProperty: Wh, getOwnPropertyDescriptor: qh, getOwnPropertyNames: Vh, getOwnPropertySymbols: Gh, getPrototypeOf: Kh } = Object, st = globalThis, Do = st.trustedTypes, Jh = Do ? Do.emptyScript : "", _i = st.reactiveElementPolyfillSupport, bn = (n, r) => n, xr = { toAttribute(n, r) {
|
|
13065
13065
|
switch (r) {
|
|
13066
13066
|
case Boolean:
|
|
13067
13067
|
n = n ? Jh : null;
|
|
@@ -13091,7 +13091,7 @@ const { is: zh, defineProperty: Wh, getOwnPropertyDescriptor: qh, getOwnProperty
|
|
|
13091
13091
|
return e;
|
|
13092
13092
|
} }, Aa = (n, r) => !zh(n, r), $o = { attribute: !0, type: String, converter: xr, reflect: !1, hasChanged: Aa };
|
|
13093
13093
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), st.litPropertyMetadata ?? (st.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
13094
|
-
let
|
|
13094
|
+
let Jt = class extends HTMLElement {
|
|
13095
13095
|
static addInitializer(r) {
|
|
13096
13096
|
this._$Ei(), (this.l ?? (this.l = [])).push(r);
|
|
13097
13097
|
}
|
|
@@ -13289,28 +13289,28 @@ let Kt = class extends HTMLElement {
|
|
|
13289
13289
|
firstUpdated(r) {
|
|
13290
13290
|
}
|
|
13291
13291
|
};
|
|
13292
|
-
|
|
13292
|
+
Jt.elementStyles = [], Jt.shadowRootOptions = { mode: "open" }, Jt[bn("elementProperties")] = /* @__PURE__ */ new Map(), Jt[bn("finalized")] = /* @__PURE__ */ new Map(), _i == null || _i({ ReactiveElement: Jt }), (st.reactiveElementVersions ?? (st.reactiveElementVersions = [])).push("2.0.4");
|
|
13293
13293
|
/**
|
|
13294
13294
|
* @license
|
|
13295
13295
|
* Copyright 2017 Google LLC
|
|
13296
13296
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13297
13297
|
*/
|
|
13298
|
-
const kn = globalThis, Ar = kn.trustedTypes, Bo = Ar ? Ar.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ul = "$lit$", it = `lit$${Math.random().toFixed(9).slice(2)}$`, zl = "?" + it, Zh = `<${zl}>`,
|
|
13299
|
-
\f\r]`,
|
|
13300
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Uo = /'/g, zo = /"/g, ql = /^(?:script|style|textarea|title)$/i, Xh = (n) => (r, ...e) => ({ _$litType$: n, strings: r, values: e }), wn = Xh(1),
|
|
13298
|
+
const kn = globalThis, Ar = kn.trustedTypes, Bo = Ar ? Ar.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Ul = "$lit$", it = `lit$${Math.random().toFixed(9).slice(2)}$`, zl = "?" + it, Zh = `<${zl}>`, Tt = document, In = () => Tt.createComment(""), Ln = (n) => n === null || typeof n != "object" && typeof n != "function", Wl = Array.isArray, Yh = (n) => Wl(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Ei = `[
|
|
13299
|
+
\f\r]`, sn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, jo = /-->/g, Ho = />/g, gt = RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
|
|
13300
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Uo = /'/g, zo = /"/g, ql = /^(?:script|style|textarea|title)$/i, Xh = (n) => (r, ...e) => ({ _$litType$: n, strings: r, values: e }), wn = Xh(1), Rt = Symbol.for("lit-noChange"), de = Symbol.for("lit-nothing"), Wo = /* @__PURE__ */ new WeakMap(), _t = Tt.createTreeWalker(Tt, 129);
|
|
13301
13301
|
function Vl(n, r) {
|
|
13302
13302
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
13303
13303
|
return Bo !== void 0 ? Bo.createHTML(r) : r;
|
|
13304
13304
|
}
|
|
13305
13305
|
const Qh = (n, r) => {
|
|
13306
13306
|
const e = n.length - 1, t = [];
|
|
13307
|
-
let i, a = r === 2 ? "<svg>" : "", o =
|
|
13307
|
+
let i, a = r === 2 ? "<svg>" : "", o = sn;
|
|
13308
13308
|
for (let s = 0; s < e; s++) {
|
|
13309
13309
|
const l = n[s];
|
|
13310
13310
|
let c, u, d = -1, p = 0;
|
|
13311
|
-
for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o ===
|
|
13311
|
+
for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === sn ? u[1] === "!--" ? o = jo : u[1] !== void 0 ? o = Ho : u[2] !== void 0 ? (ql.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = gt) : u[3] !== void 0 && (o = gt) : o === gt ? u[0] === ">" ? (o = i ?? sn, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? gt : u[3] === '"' ? zo : Uo) : o === zo || o === Uo ? o = gt : o === jo || o === Ho ? o = sn : (o = gt, i = void 0);
|
|
13312
13312
|
const h = o === gt && n[s + 1].startsWith("/>") ? " " : "";
|
|
13313
|
-
a += o ===
|
|
13313
|
+
a += o === sn ? l + Zh : d >= 0 ? (t.push(c), l.slice(0, d) + Ul + l.slice(d) + it + h) : l + it + (d === -2 ? s : h);
|
|
13314
13314
|
}
|
|
13315
13315
|
return [Vl(n, a + (n[e] || "<?>") + (r === 2 ? "</svg>" : "")), t];
|
|
13316
13316
|
};
|
|
@@ -13320,21 +13320,21 @@ class Mn {
|
|
|
13320
13320
|
this.parts = [];
|
|
13321
13321
|
let a = 0, o = 0;
|
|
13322
13322
|
const s = r.length - 1, l = this.parts, [c, u] = Qh(r, e);
|
|
13323
|
-
if (this.el = Mn.createElement(c, t),
|
|
13323
|
+
if (this.el = Mn.createElement(c, t), _t.currentNode = this.el.content, e === 2) {
|
|
13324
13324
|
const d = this.el.content.firstChild;
|
|
13325
13325
|
d.replaceWith(...d.childNodes);
|
|
13326
13326
|
}
|
|
13327
|
-
for (; (i =
|
|
13327
|
+
for (; (i = _t.nextNode()) !== null && l.length < s; ) {
|
|
13328
13328
|
if (i.nodeType === 1) {
|
|
13329
13329
|
if (i.hasAttributes()) for (const d of i.getAttributeNames()) if (d.endsWith(Ul)) {
|
|
13330
13330
|
const p = u[o++], h = i.getAttribute(d).split(it), f = /([.?@])?(.*)/.exec(p);
|
|
13331
|
-
l.push({ type: 1, index: a, name: f[2], strings: h, ctor: f[1] === "." ? tf : f[1] === "?" ? nf : f[1] === "@" ? rf :
|
|
13331
|
+
l.push({ type: 1, index: a, name: f[2], strings: h, ctor: f[1] === "." ? tf : f[1] === "?" ? nf : f[1] === "@" ? rf : ti }), i.removeAttribute(d);
|
|
13332
13332
|
} else d.startsWith(it) && (l.push({ type: 6, index: a }), i.removeAttribute(d));
|
|
13333
13333
|
if (ql.test(i.tagName)) {
|
|
13334
13334
|
const d = i.textContent.split(it), p = d.length - 1;
|
|
13335
13335
|
if (p > 0) {
|
|
13336
13336
|
i.textContent = Ar ? Ar.emptyScript : "";
|
|
13337
|
-
for (let h = 0; h < p; h++) i.append(d[h], In()),
|
|
13337
|
+
for (let h = 0; h < p; h++) i.append(d[h], In()), _t.nextNode(), l.push({ type: 2, index: ++a });
|
|
13338
13338
|
i.append(d[p], In());
|
|
13339
13339
|
}
|
|
13340
13340
|
}
|
|
@@ -13347,16 +13347,16 @@ class Mn {
|
|
|
13347
13347
|
}
|
|
13348
13348
|
}
|
|
13349
13349
|
static createElement(r, e) {
|
|
13350
|
-
const t =
|
|
13350
|
+
const t = Tt.createElement("template");
|
|
13351
13351
|
return t.innerHTML = r, t;
|
|
13352
13352
|
}
|
|
13353
13353
|
}
|
|
13354
|
-
function
|
|
13354
|
+
function Xt(n, r, e = n, t) {
|
|
13355
13355
|
var o, s;
|
|
13356
|
-
if (r ===
|
|
13356
|
+
if (r === Rt) return r;
|
|
13357
13357
|
let i = t !== void 0 ? (o = e._$Co) == null ? void 0 : o[t] : e._$Cl;
|
|
13358
13358
|
const a = Ln(r) ? void 0 : r._$litDirective$;
|
|
13359
|
-
return (i == null ? void 0 : i.constructor) !== a && ((s = i == null ? void 0 : i._$AO) == null || s.call(i, !1), a === void 0 ? i = void 0 : (i = new a(n), i._$AT(n, e, t)), t !== void 0 ? (e._$Co ?? (e._$Co = []))[t] = i : e._$Cl = i), i !== void 0 && (r =
|
|
13359
|
+
return (i == null ? void 0 : i.constructor) !== a && ((s = i == null ? void 0 : i._$AO) == null || s.call(i, !1), a === void 0 ? i = void 0 : (i = new a(n), i._$AT(n, e, t)), t !== void 0 ? (e._$Co ?? (e._$Co = []))[t] = i : e._$Cl = i), i !== void 0 && (r = Xt(n, i._$AS(n, r.values), i, t)), r;
|
|
13360
13360
|
}
|
|
13361
13361
|
class ef {
|
|
13362
13362
|
constructor(r, e) {
|
|
@@ -13369,17 +13369,17 @@ class ef {
|
|
|
13369
13369
|
return this._$AM._$AU;
|
|
13370
13370
|
}
|
|
13371
13371
|
u(r) {
|
|
13372
|
-
const { el: { content: e }, parts: t } = this._$AD, i = ((r == null ? void 0 : r.creationScope) ??
|
|
13373
|
-
|
|
13374
|
-
let a =
|
|
13372
|
+
const { el: { content: e }, parts: t } = this._$AD, i = ((r == null ? void 0 : r.creationScope) ?? Tt).importNode(e, !0);
|
|
13373
|
+
_t.currentNode = i;
|
|
13374
|
+
let a = _t.nextNode(), o = 0, s = 0, l = t[0];
|
|
13375
13375
|
for (; l !== void 0; ) {
|
|
13376
13376
|
if (o === l.index) {
|
|
13377
13377
|
let c;
|
|
13378
13378
|
l.type === 2 ? c = new zn(a, a.nextSibling, this, r) : l.type === 1 ? c = new l.ctor(a, l.name, l.strings, this, r) : l.type === 6 && (c = new af(a, this, r)), this._$AV.push(c), l = t[++s];
|
|
13379
13379
|
}
|
|
13380
|
-
o !== (l == null ? void 0 : l.index) && (a =
|
|
13380
|
+
o !== (l == null ? void 0 : l.index) && (a = _t.nextNode(), o++);
|
|
13381
13381
|
}
|
|
13382
|
-
return
|
|
13382
|
+
return _t.currentNode = Tt, i;
|
|
13383
13383
|
}
|
|
13384
13384
|
p(r) {
|
|
13385
13385
|
let e = 0;
|
|
@@ -13406,7 +13406,7 @@ class zn {
|
|
|
13406
13406
|
return this._$AB;
|
|
13407
13407
|
}
|
|
13408
13408
|
_$AI(r, e = this) {
|
|
13409
|
-
r =
|
|
13409
|
+
r = Xt(this, r, e), Ln(r) ? r === de || r == null || r === "" ? (this._$AH !== de && this._$AR(), this._$AH = de) : r !== this._$AH && r !== Rt && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : Yh(r) ? this.k(r) : this._(r);
|
|
13410
13410
|
}
|
|
13411
13411
|
S(r) {
|
|
13412
13412
|
return this._$AA.parentNode.insertBefore(r, this._$AB);
|
|
@@ -13415,7 +13415,7 @@ class zn {
|
|
|
13415
13415
|
this._$AH !== r && (this._$AR(), this._$AH = this.S(r));
|
|
13416
13416
|
}
|
|
13417
13417
|
_(r) {
|
|
13418
|
-
this._$AH !== de && Ln(this._$AH) ? this._$AA.nextSibling.data = r : this.T(
|
|
13418
|
+
this._$AH !== de && Ln(this._$AH) ? this._$AA.nextSibling.data = r : this.T(Tt.createTextNode(r)), this._$AH = r;
|
|
13419
13419
|
}
|
|
13420
13420
|
$(r) {
|
|
13421
13421
|
var a;
|
|
@@ -13449,7 +13449,7 @@ class zn {
|
|
|
13449
13449
|
this._$AM === void 0 && (this._$Cv = r, (e = this._$AP) == null || e.call(this, r));
|
|
13450
13450
|
}
|
|
13451
13451
|
}
|
|
13452
|
-
class
|
|
13452
|
+
class ti {
|
|
13453
13453
|
get tagName() {
|
|
13454
13454
|
return this.element.tagName;
|
|
13455
13455
|
}
|
|
@@ -13462,11 +13462,11 @@ class ei {
|
|
|
13462
13462
|
_$AI(r, e = this, t, i) {
|
|
13463
13463
|
const a = this.strings;
|
|
13464
13464
|
let o = !1;
|
|
13465
|
-
if (a === void 0) r =
|
|
13465
|
+
if (a === void 0) r = Xt(this, r, e, 0), o = !Ln(r) || r !== this._$AH && r !== Rt, o && (this._$AH = r);
|
|
13466
13466
|
else {
|
|
13467
13467
|
const s = r;
|
|
13468
13468
|
let l, c;
|
|
13469
|
-
for (r = a[0], l = 0; l < a.length - 1; l++) c =
|
|
13469
|
+
for (r = a[0], l = 0; l < a.length - 1; l++) c = Xt(this, s[t + l], e, l), c === Rt && (c = this._$AH[l]), o || (o = !Ln(c) || c !== this._$AH[l]), c === de ? r = de : r !== de && (r += (c ?? "") + a[l + 1]), this._$AH[l] = c;
|
|
13470
13470
|
}
|
|
13471
13471
|
o && !i && this.j(r);
|
|
13472
13472
|
}
|
|
@@ -13474,7 +13474,7 @@ class ei {
|
|
|
13474
13474
|
r === de ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
13475
13475
|
}
|
|
13476
13476
|
}
|
|
13477
|
-
class tf extends
|
|
13477
|
+
class tf extends ti {
|
|
13478
13478
|
constructor() {
|
|
13479
13479
|
super(...arguments), this.type = 3;
|
|
13480
13480
|
}
|
|
@@ -13482,7 +13482,7 @@ class tf extends ei {
|
|
|
13482
13482
|
this.element[this.name] = r === de ? void 0 : r;
|
|
13483
13483
|
}
|
|
13484
13484
|
}
|
|
13485
|
-
class nf extends
|
|
13485
|
+
class nf extends ti {
|
|
13486
13486
|
constructor() {
|
|
13487
13487
|
super(...arguments), this.type = 4;
|
|
13488
13488
|
}
|
|
@@ -13490,12 +13490,12 @@ class nf extends ei {
|
|
|
13490
13490
|
this.element.toggleAttribute(this.name, !!r && r !== de);
|
|
13491
13491
|
}
|
|
13492
13492
|
}
|
|
13493
|
-
class rf extends
|
|
13493
|
+
class rf extends ti {
|
|
13494
13494
|
constructor(r, e, t, i, a) {
|
|
13495
13495
|
super(r, e, t, i, a), this.type = 5;
|
|
13496
13496
|
}
|
|
13497
13497
|
_$AI(r, e = this) {
|
|
13498
|
-
if ((r =
|
|
13498
|
+
if ((r = Xt(this, r, e, 0) ?? de) === Rt) return;
|
|
13499
13499
|
const t = this._$AH, i = r === de && t !== de || r.capture !== t.capture || r.once !== t.once || r.passive !== t.passive, a = r !== de && (t === de || i);
|
|
13500
13500
|
i && this.element.removeEventListener(this.name, this, t), a && this.element.addEventListener(this.name, this, r), this._$AH = r;
|
|
13501
13501
|
}
|
|
@@ -13512,11 +13512,11 @@ class af {
|
|
|
13512
13512
|
return this._$AM._$AU;
|
|
13513
13513
|
}
|
|
13514
13514
|
_$AI(r) {
|
|
13515
|
-
|
|
13515
|
+
Xt(this, r);
|
|
13516
13516
|
}
|
|
13517
13517
|
}
|
|
13518
|
-
const
|
|
13519
|
-
|
|
13518
|
+
const Ci = kn.litHtmlPolyfillSupport;
|
|
13519
|
+
Ci == null || Ci(Mn, zn), (kn.litHtmlVersions ?? (kn.litHtmlVersions = [])).push("3.1.4");
|
|
13520
13520
|
const of = (n, r, e) => {
|
|
13521
13521
|
const t = (e == null ? void 0 : e.renderBefore) ?? r;
|
|
13522
13522
|
let i = t._$litPart$;
|
|
@@ -13531,7 +13531,7 @@ const of = (n, r, e) => {
|
|
|
13531
13531
|
* Copyright 2017 Google LLC
|
|
13532
13532
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13533
13533
|
*/
|
|
13534
|
-
let Sn = class extends
|
|
13534
|
+
let Sn = class extends Jt {
|
|
13535
13535
|
constructor() {
|
|
13536
13536
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
13537
13537
|
}
|
|
@@ -13553,20 +13553,20 @@ let Sn = class extends Kt {
|
|
|
13553
13553
|
super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1);
|
|
13554
13554
|
}
|
|
13555
13555
|
render() {
|
|
13556
|
-
return
|
|
13556
|
+
return Rt;
|
|
13557
13557
|
}
|
|
13558
13558
|
};
|
|
13559
13559
|
var Qs;
|
|
13560
13560
|
Sn._$litElement$ = !0, Sn.finalized = !0, (Qs = globalThis.litElementHydrateSupport) == null || Qs.call(globalThis, { LitElement: Sn });
|
|
13561
|
-
const
|
|
13562
|
-
|
|
13561
|
+
const xi = globalThis.litElementPolyfillSupport;
|
|
13562
|
+
xi == null || xi({ LitElement: Sn });
|
|
13563
13563
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.6");
|
|
13564
13564
|
/**
|
|
13565
13565
|
* @license
|
|
13566
13566
|
* Copyright 2017 Google LLC
|
|
13567
13567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13568
13568
|
*/
|
|
13569
|
-
const
|
|
13569
|
+
const ni = (n) => (r, e) => {
|
|
13570
13570
|
e !== void 0 ? e.addInitializer(() => {
|
|
13571
13571
|
customElements.define(n, r);
|
|
13572
13572
|
}) : customElements.define(n, r);
|
|
@@ -13603,16 +13603,16 @@ function pe(n) {
|
|
|
13603
13603
|
return i.constructor.createProperty(a, o ? { ...t, wrapped: !0 } : t), o ? Object.getOwnPropertyDescriptor(i, a) : void 0;
|
|
13604
13604
|
})(n, r, e);
|
|
13605
13605
|
}
|
|
13606
|
-
var cf = typeof global == "object" && global && global.Object === Object && global, uf = typeof self == "object" && self && self.Object === Object && self,
|
|
13606
|
+
var cf = typeof global == "object" && global && global.Object === Object && global, uf = typeof self == "object" && self && self.Object === Object && self, Dt = cf || uf || Function("return this")(), Tr = Dt.Symbol, Gl = Object.prototype, df = Gl.hasOwnProperty, pf = Gl.toString, ln = Tr ? Tr.toStringTag : void 0;
|
|
13607
13607
|
function hf(n) {
|
|
13608
|
-
var r = df.call(n,
|
|
13608
|
+
var r = df.call(n, ln), e = n[ln];
|
|
13609
13609
|
try {
|
|
13610
|
-
n[
|
|
13610
|
+
n[ln] = void 0;
|
|
13611
13611
|
var t = !0;
|
|
13612
13612
|
} catch {
|
|
13613
13613
|
}
|
|
13614
13614
|
var i = pf.call(n);
|
|
13615
|
-
return t && (r ? n[
|
|
13615
|
+
return t && (r ? n[ln] = e : delete n[ln]), i;
|
|
13616
13616
|
}
|
|
13617
13617
|
var ff = Object.prototype, mf = ff.toString;
|
|
13618
13618
|
function gf(n) {
|
|
@@ -13639,7 +13639,7 @@ var _f = /^\s+/;
|
|
|
13639
13639
|
function Ef(n) {
|
|
13640
13640
|
return n && n.slice(0, Sf(n) + 1).replace(_f, "");
|
|
13641
13641
|
}
|
|
13642
|
-
function
|
|
13642
|
+
function Qt(n) {
|
|
13643
13643
|
var r = typeof n;
|
|
13644
13644
|
return n != null && (r == "object" || r == "function");
|
|
13645
13645
|
}
|
|
@@ -13649,9 +13649,9 @@ function Rf(n) {
|
|
|
13649
13649
|
return n;
|
|
13650
13650
|
if (kf(n))
|
|
13651
13651
|
return Vo;
|
|
13652
|
-
if (
|
|
13652
|
+
if (Qt(n)) {
|
|
13653
13653
|
var r = typeof n.valueOf == "function" ? n.valueOf() : n;
|
|
13654
|
-
n =
|
|
13654
|
+
n = Qt(r) ? r + "" : r;
|
|
13655
13655
|
}
|
|
13656
13656
|
if (typeof n != "string")
|
|
13657
13657
|
return n === 0 ? n : +n;
|
|
@@ -13678,13 +13678,13 @@ function Jl(n) {
|
|
|
13678
13678
|
}
|
|
13679
13679
|
var Lf = "[object AsyncFunction]", Mf = "[object Function]", Pf = "[object GeneratorFunction]", Ff = "[object Proxy]";
|
|
13680
13680
|
function Nf(n) {
|
|
13681
|
-
if (!
|
|
13681
|
+
if (!Qt(n))
|
|
13682
13682
|
return !1;
|
|
13683
13683
|
var r = Ta(n);
|
|
13684
13684
|
return r == Mf || r == Pf || r == Lf || r == Ff;
|
|
13685
13685
|
}
|
|
13686
|
-
var
|
|
13687
|
-
var n = /[^.]+$/.exec(
|
|
13686
|
+
var Ai = Dt["__core-js_shared__"], Jo = function() {
|
|
13687
|
+
var n = /[^.]+$/.exec(Ai && Ai.keys && Ai.keys.IE_PROTO || "");
|
|
13688
13688
|
return n ? "Symbol(src)_1." + n : "";
|
|
13689
13689
|
}();
|
|
13690
13690
|
function Df(n) {
|
|
@@ -13708,7 +13708,7 @@ var Hf = /[\\^$.*+?()[\]{}|]/g, Uf = /^\[object .+?Constructor\]$/, zf = Functio
|
|
|
13708
13708
|
"^" + qf.call(Vf).replace(Hf, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
13709
13709
|
);
|
|
13710
13710
|
function Kf(n) {
|
|
13711
|
-
if (!
|
|
13711
|
+
if (!Qt(n) || Df(n))
|
|
13712
13712
|
return !1;
|
|
13713
13713
|
var r = Nf(n) ? Gf : Uf;
|
|
13714
13714
|
return r.test(jf(n));
|
|
@@ -13720,13 +13720,13 @@ function Zl(n, r) {
|
|
|
13720
13720
|
var e = Jf(n, r);
|
|
13721
13721
|
return Kf(e) ? e : void 0;
|
|
13722
13722
|
}
|
|
13723
|
-
var Zo = Zl(
|
|
13723
|
+
var Zo = Zl(Dt, "WeakMap"), Rr = Zo && new Zo(), Yl = Rr ? function(n, r) {
|
|
13724
13724
|
return Rr.set(n, r), n;
|
|
13725
13725
|
} : Jl, Yo = Object.create, Oa = /* @__PURE__ */ function() {
|
|
13726
13726
|
function n() {
|
|
13727
13727
|
}
|
|
13728
13728
|
return function(r) {
|
|
13729
|
-
if (!
|
|
13729
|
+
if (!Qt(r))
|
|
13730
13730
|
return {};
|
|
13731
13731
|
if (Yo)
|
|
13732
13732
|
return Yo(r);
|
|
@@ -13757,14 +13757,14 @@ function Pn(n) {
|
|
|
13757
13757
|
return new n(r[0], r[1], r[2], r[3], r[4], r[5], r[6]);
|
|
13758
13758
|
}
|
|
13759
13759
|
var e = Oa(n.prototype), t = n.apply(e, r);
|
|
13760
|
-
return
|
|
13760
|
+
return Qt(t) ? t : e;
|
|
13761
13761
|
};
|
|
13762
13762
|
}
|
|
13763
13763
|
var Zf = 1;
|
|
13764
13764
|
function Yf(n, r, e) {
|
|
13765
13765
|
var t = r & Zf, i = Pn(n);
|
|
13766
13766
|
function a() {
|
|
13767
|
-
var o = this && this !==
|
|
13767
|
+
var o = this && this !== Dt && this instanceof a ? i : n;
|
|
13768
13768
|
return o.apply(t ? e : this, arguments);
|
|
13769
13769
|
}
|
|
13770
13770
|
return a;
|
|
@@ -13810,11 +13810,11 @@ function e0(n, r) {
|
|
|
13810
13810
|
function Ia() {
|
|
13811
13811
|
}
|
|
13812
13812
|
var t0 = 4294967295;
|
|
13813
|
-
function
|
|
13813
|
+
function en(n) {
|
|
13814
13814
|
this.__wrapped__ = n, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = t0, this.__views__ = [];
|
|
13815
13815
|
}
|
|
13816
|
-
|
|
13817
|
-
|
|
13816
|
+
en.prototype = Oa(Ia.prototype);
|
|
13817
|
+
en.prototype.constructor = en;
|
|
13818
13818
|
function n0() {
|
|
13819
13819
|
}
|
|
13820
13820
|
var tc = Rr ? function(n) {
|
|
@@ -13828,11 +13828,11 @@ function a0(n) {
|
|
|
13828
13828
|
}
|
|
13829
13829
|
return r;
|
|
13830
13830
|
}
|
|
13831
|
-
function
|
|
13831
|
+
function tn(n, r) {
|
|
13832
13832
|
this.__wrapped__ = n, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
13833
13833
|
}
|
|
13834
|
-
|
|
13835
|
-
|
|
13834
|
+
tn.prototype = Oa(Ia.prototype);
|
|
13835
|
+
tn.prototype.constructor = tn;
|
|
13836
13836
|
function nc(n, r) {
|
|
13837
13837
|
var e = -1, t = n.length;
|
|
13838
13838
|
for (r || (r = Array(t)); ++e < t; )
|
|
@@ -13840,26 +13840,26 @@ function nc(n, r) {
|
|
|
13840
13840
|
return r;
|
|
13841
13841
|
}
|
|
13842
13842
|
function o0(n) {
|
|
13843
|
-
if (n instanceof
|
|
13843
|
+
if (n instanceof en)
|
|
13844
13844
|
return n.clone();
|
|
13845
|
-
var r = new
|
|
13845
|
+
var r = new tn(n.__wrapped__, n.__chain__);
|
|
13846
13846
|
return r.__actions__ = nc(n.__actions__), r.__index__ = n.__index__, r.__values__ = n.__values__, r;
|
|
13847
13847
|
}
|
|
13848
13848
|
var s0 = Object.prototype, l0 = s0.hasOwnProperty;
|
|
13849
13849
|
function Or(n) {
|
|
13850
|
-
if (Ra(n) && !Kl(n) && !(n instanceof
|
|
13851
|
-
if (n instanceof
|
|
13850
|
+
if (Ra(n) && !Kl(n) && !(n instanceof en)) {
|
|
13851
|
+
if (n instanceof tn)
|
|
13852
13852
|
return n;
|
|
13853
13853
|
if (l0.call(n, "__wrapped__"))
|
|
13854
13854
|
return o0(n);
|
|
13855
13855
|
}
|
|
13856
|
-
return new
|
|
13856
|
+
return new tn(n);
|
|
13857
13857
|
}
|
|
13858
13858
|
Or.prototype = Ia.prototype;
|
|
13859
13859
|
Or.prototype.constructor = Or;
|
|
13860
13860
|
function c0(n) {
|
|
13861
13861
|
var r = a0(n), e = Or[r];
|
|
13862
|
-
if (typeof e != "function" || !(r in
|
|
13862
|
+
if (typeof e != "function" || !(r in en.prototype))
|
|
13863
13863
|
return !1;
|
|
13864
13864
|
if (n === e)
|
|
13865
13865
|
return !0;
|
|
@@ -14028,7 +14028,7 @@ function La(n, r, e, t, i, a, o, s, l, c) {
|
|
|
14028
14028
|
);
|
|
14029
14029
|
}
|
|
14030
14030
|
var te = d ? e : this, q = p ? te[n] : n;
|
|
14031
|
-
return v = b.length, s ? b = V0(b, s) : f && v > 1 && b.reverse(), u && l < v && (b.length = l), this && this !==
|
|
14031
|
+
return v = b.length, s ? b = V0(b, s) : f && v > 1 && b.reverse(), u && l < v && (b.length = l), this && this !== Dt && this instanceof y && (q = g || Pn(q)), q.apply(te, b);
|
|
14032
14032
|
}
|
|
14033
14033
|
return y;
|
|
14034
14034
|
}
|
|
@@ -14051,7 +14051,7 @@ function Q0(n, r, e) {
|
|
|
14051
14051
|
void 0,
|
|
14052
14052
|
e - a
|
|
14053
14053
|
);
|
|
14054
|
-
var u = this && this !==
|
|
14054
|
+
var u = this && this !== Dt && this instanceof i ? t : n;
|
|
14055
14055
|
return Xl(u, this, o);
|
|
14056
14056
|
}
|
|
14057
14057
|
return i;
|
|
@@ -14060,7 +14060,7 @@ var em = 1;
|
|
|
14060
14060
|
function tm(n, r, e, t) {
|
|
14061
14061
|
var i = r & em, a = Pn(n);
|
|
14062
14062
|
function o() {
|
|
14063
|
-
for (var s = -1, l = arguments.length, c = -1, u = t.length, d = Array(u + l), p = this && this !==
|
|
14063
|
+
for (var s = -1, l = arguments.length, c = -1, u = t.length, d = Array(u + l), p = this && this !== Dt && this instanceof o ? a : n; ++c < u; )
|
|
14064
14064
|
d[c] = t[c];
|
|
14065
14065
|
for (; l--; )
|
|
14066
14066
|
d[c++] = arguments[++s];
|
|
@@ -14068,26 +14068,26 @@ function tm(n, r, e, t) {
|
|
|
14068
14068
|
}
|
|
14069
14069
|
return o;
|
|
14070
14070
|
}
|
|
14071
|
-
var rs = "__lodash_placeholder__",
|
|
14071
|
+
var rs = "__lodash_placeholder__", Ti = 1, nm = 2, rm = 4, is = 8, cn = 128, as = 256, im = Math.min;
|
|
14072
14072
|
function am(n, r) {
|
|
14073
|
-
var e = n[1], t = r[1], i = e | t, a = i < (
|
|
14073
|
+
var e = n[1], t = r[1], i = e | t, a = i < (Ti | nm | cn), o = t == cn && e == is || t == cn && e == as && n[7].length <= r[8] || t == (cn | as) && r[7].length <= r[8] && e == is;
|
|
14074
14074
|
if (!(a || o))
|
|
14075
14075
|
return n;
|
|
14076
|
-
t &
|
|
14076
|
+
t & Ti && (n[2] = r[2], i |= e & Ti ? 0 : rm);
|
|
14077
14077
|
var s = r[3];
|
|
14078
14078
|
if (s) {
|
|
14079
14079
|
var l = n[3];
|
|
14080
14080
|
n[3] = l ? Ql(l, s, r[4]) : s, n[4] = l ? Ir(n[3], rs) : r[4];
|
|
14081
14081
|
}
|
|
14082
|
-
return s = r[5], s && (l = n[5], n[5] = l ? ec(l, s, r[6]) : s, n[6] = l ? Ir(n[5], rs) : r[6]), s = r[7], s && (n[7] = s), t &
|
|
14082
|
+
return s = r[5], s && (l = n[5], n[5] = l ? ec(l, s, r[6]) : s, n[6] = l ? Ir(n[5], rs) : r[6]), s = r[7], s && (n[7] = s), t & cn && (n[8] = n[8] == null ? r[8] : im(n[8], r[8])), n[9] == null && (n[9] = r[9]), n[0] = r[0], n[1] = i, n;
|
|
14083
14083
|
}
|
|
14084
|
-
var om = "Expected a function", os = 1, sm = 2,
|
|
14084
|
+
var om = "Expected a function", os = 1, sm = 2, Ri = 8, Oi = 16, Ii = 32, ss = 64, ls = Math.max;
|
|
14085
14085
|
function lm(n, r, e, t, i, a, o, s) {
|
|
14086
14086
|
var l = r & sm;
|
|
14087
14087
|
if (!l && typeof n != "function")
|
|
14088
14088
|
throw new TypeError(om);
|
|
14089
14089
|
var c = t ? t.length : 0;
|
|
14090
|
-
if (c || (r &= ~(
|
|
14090
|
+
if (c || (r &= ~(Ii | ss), t = i = void 0), o = o === void 0 ? o : ls(Ko(o), 0), s = s === void 0 ? s : Ko(s), c -= i ? i.length : 0, r & ss) {
|
|
14091
14091
|
var u = t, d = i;
|
|
14092
14092
|
t = i = void 0;
|
|
14093
14093
|
}
|
|
@@ -14103,9 +14103,9 @@ function lm(n, r, e, t, i, a, o, s) {
|
|
|
14103
14103
|
o,
|
|
14104
14104
|
s
|
|
14105
14105
|
];
|
|
14106
|
-
if (p && am(h, p), n = h[0], r = h[1], e = h[2], t = h[3], i = h[4], s = h[9] = h[9] === void 0 ? l ? 0 : n.length : ls(h[9] - c, 0), !s && r & (
|
|
14106
|
+
if (p && am(h, p), n = h[0], r = h[1], e = h[2], t = h[3], i = h[4], s = h[9] = h[9] === void 0 ? l ? 0 : n.length : ls(h[9] - c, 0), !s && r & (Ri | Oi) && (r &= ~(Ri | Oi)), !r || r == os)
|
|
14107
14107
|
var f = Yf(n, r, e);
|
|
14108
|
-
else r ==
|
|
14108
|
+
else r == Ri || r == Oi ? f = Q0(n, r, s) : (r == Ii || r == (os | Ii)) && !i.length ? f = tm(n, r, e, t) : f = La.apply(void 0, h);
|
|
14109
14109
|
var g = p ? Yl : ic;
|
|
14110
14110
|
return ac(g(f, h), n, r);
|
|
14111
14111
|
}
|
|
@@ -14152,11 +14152,11 @@ const hm = (n) => (r, e = "16px") => {
|
|
|
14152
14152
|
throw new We(72, e, n);
|
|
14153
14153
|
return `${t / i}${n}`;
|
|
14154
14154
|
};
|
|
14155
|
-
function
|
|
14155
|
+
function Li(n) {
|
|
14156
14156
|
return Math.round(n * 255);
|
|
14157
14157
|
}
|
|
14158
14158
|
function fm(n, r, e) {
|
|
14159
|
-
return `${
|
|
14159
|
+
return `${Li(n)},${Li(r)},${Li(e)}`;
|
|
14160
14160
|
}
|
|
14161
14161
|
function ds(n, r, e, t = fm) {
|
|
14162
14162
|
if (r === 0)
|
|
@@ -14323,7 +14323,7 @@ function mm(n) {
|
|
|
14323
14323
|
return ps[r] ? `#${ps[r]}` : n;
|
|
14324
14324
|
}
|
|
14325
14325
|
const hs = (n) => n.length === 7 && n[1] === n[2] && n[3] === n[4] && n[5] === n[6] ? `#${n[1]}${n[3]}${n[5]}` : n;
|
|
14326
|
-
function
|
|
14326
|
+
function Ut(n) {
|
|
14327
14327
|
const r = n.toString(16);
|
|
14328
14328
|
return r.length === 1 ? `0${r}` : r;
|
|
14329
14329
|
}
|
|
@@ -14360,7 +14360,7 @@ const vm = Wn(function(n, r, e) {
|
|
|
14360
14360
|
Wn(function(n, r) {
|
|
14361
14361
|
return r === "transparent" ? r : vm(parseFloat(n.toString()), "rgb(0, 0, 0)", r);
|
|
14362
14362
|
});
|
|
14363
|
-
const ym = /^#[a-fA-F0-9]{6}$/, bm = /^#[a-fA-F0-9]{8}$/, km = /^#[a-fA-F0-9]{3}$/, wm = /^#[a-fA-F0-9]{4}$/,
|
|
14363
|
+
const ym = /^#[a-fA-F0-9]{6}$/, bm = /^#[a-fA-F0-9]{8}$/, km = /^#[a-fA-F0-9]{3}$/, wm = /^#[a-fA-F0-9]{4}$/, Mi = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, Sm = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, _m = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, Em = /^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;
|
|
14364
14364
|
function ce(n, r, e, t) {
|
|
14365
14365
|
if (typeof n == "string" && typeof r == "number") {
|
|
14366
14366
|
const i = Lr(n);
|
|
@@ -14375,9 +14375,9 @@ function ce(n, r, e, t) {
|
|
|
14375
14375
|
}
|
|
14376
14376
|
function fs(n, r, e) {
|
|
14377
14377
|
if (typeof n == "number" && typeof r == "number" && typeof e == "number")
|
|
14378
|
-
return hs(`#${
|
|
14378
|
+
return hs(`#${Ut(n)}${Ut(r)}${Ut(e)}`);
|
|
14379
14379
|
if (typeof n == "object" && r === void 0 && e === void 0)
|
|
14380
|
-
return hs(`#${
|
|
14380
|
+
return hs(`#${Ut(n.red)}${Ut(n.green)}${Ut(n.blue)}`);
|
|
14381
14381
|
throw new We(6);
|
|
14382
14382
|
}
|
|
14383
14383
|
function Lr(n) {
|
|
@@ -14414,7 +14414,7 @@ function Lr(n) {
|
|
|
14414
14414
|
alpha: o
|
|
14415
14415
|
};
|
|
14416
14416
|
}
|
|
14417
|
-
const e =
|
|
14417
|
+
const e = Mi.exec(r);
|
|
14418
14418
|
if (e)
|
|
14419
14419
|
return {
|
|
14420
14420
|
red: parseInt(`${e[1]}`, 10),
|
|
@@ -14431,7 +14431,7 @@ function Lr(n) {
|
|
|
14431
14431
|
};
|
|
14432
14432
|
const i = _m.exec(r);
|
|
14433
14433
|
if (i) {
|
|
14434
|
-
const o = parseInt(`${i[1]}`, 10), s = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${ds(o, s, l)})`, u =
|
|
14434
|
+
const o = parseInt(`${i[1]}`, 10), s = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${ds(o, s, l)})`, u = Mi.exec(c);
|
|
14435
14435
|
if (!u)
|
|
14436
14436
|
throw new We(4, r, c);
|
|
14437
14437
|
return {
|
|
@@ -14442,7 +14442,7 @@ function Lr(n) {
|
|
|
14442
14442
|
}
|
|
14443
14443
|
const a = Em.exec(r.substring(0, 50));
|
|
14444
14444
|
if (a) {
|
|
14445
|
-
const o = parseInt(`${a[1]}`, 10), s = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${ds(o, s, l)})`, u =
|
|
14445
|
+
const o = parseInt(`${a[1]}`, 10), s = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${ds(o, s, l)})`, u = Mi.exec(c);
|
|
14446
14446
|
if (!u)
|
|
14447
14447
|
throw new We(4, r, c);
|
|
14448
14448
|
return {
|
|
@@ -15859,9 +15859,9 @@ tt.styles = Un`
|
|
|
15859
15859
|
${Nm}
|
|
15860
15860
|
`;
|
|
15861
15861
|
tt = Bm([
|
|
15862
|
-
|
|
15862
|
+
ni("super-element")
|
|
15863
15863
|
], tt);
|
|
15864
|
-
var jm = Object.defineProperty, Hm = Object.getOwnPropertyDescriptor,
|
|
15864
|
+
var jm = Object.defineProperty, Hm = Object.getOwnPropertyDescriptor, $t = (n, r, e, t) => {
|
|
15865
15865
|
for (var i = t > 1 ? void 0 : t ? Hm(r, e) : r, a = n.length - 1, o; a >= 0; a--)
|
|
15866
15866
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
15867
15867
|
return t && i && jm(r, e, i), i;
|
|
@@ -15884,26 +15884,26 @@ let nt = class extends tt {
|
|
|
15884
15884
|
}
|
|
15885
15885
|
};
|
|
15886
15886
|
nt.styles = [tt.styles, Fm];
|
|
15887
|
-
|
|
15887
|
+
$t([
|
|
15888
15888
|
pe({ type: String })
|
|
15889
15889
|
], nt.prototype, "label", 2);
|
|
15890
|
-
|
|
15890
|
+
$t([
|
|
15891
15891
|
pe({ type: String })
|
|
15892
15892
|
], nt.prototype, "size", 2);
|
|
15893
|
-
|
|
15893
|
+
$t([
|
|
15894
15894
|
pe({ type: String })
|
|
15895
15895
|
], nt.prototype, "icon", 2);
|
|
15896
|
-
|
|
15896
|
+
$t([
|
|
15897
15897
|
pe({ type: String })
|
|
15898
15898
|
], nt.prototype, "iconPosition", 2);
|
|
15899
|
-
|
|
15899
|
+
$t([
|
|
15900
15900
|
pe({ type: Boolean })
|
|
15901
15901
|
], nt.prototype, "disabled", 2);
|
|
15902
|
-
|
|
15902
|
+
$t([
|
|
15903
15903
|
pe({ type: String })
|
|
15904
15904
|
], nt.prototype, "variant", 2);
|
|
15905
|
-
nt =
|
|
15906
|
-
|
|
15905
|
+
nt = $t([
|
|
15906
|
+
ni("lr-pill")
|
|
15907
15907
|
], nt);
|
|
15908
15908
|
const Um = Un`
|
|
15909
15909
|
:host .button {
|
|
@@ -16176,7 +16176,7 @@ const Wm = cc(class extends uc {
|
|
|
16176
16176
|
const o = !!r[a];
|
|
16177
16177
|
o === this.st.has(a) || (i = this.nt) != null && i.has(a) || (o ? (e.add(a), this.st.add(a)) : (e.remove(a), this.st.delete(a)));
|
|
16178
16178
|
}
|
|
16179
|
-
return
|
|
16179
|
+
return Rt;
|
|
16180
16180
|
}
|
|
16181
16181
|
});
|
|
16182
16182
|
var qm = Object.defineProperty, Vm = Object.getOwnPropertyDescriptor, Je = (n, r, e, t) => {
|
|
@@ -16236,7 +16236,7 @@ Je([
|
|
|
16236
16236
|
pe({ type: Boolean })
|
|
16237
16237
|
], De.prototype, "reversed", 2);
|
|
16238
16238
|
De = Je([
|
|
16239
|
-
|
|
16239
|
+
ni("lr-button")
|
|
16240
16240
|
], De);
|
|
16241
16241
|
const Gm = Un`
|
|
16242
16242
|
:host {
|
|
@@ -16571,12 +16571,12 @@ function lt(n) {
|
|
|
16571
16571
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16572
16572
|
return n;
|
|
16573
16573
|
}
|
|
16574
|
-
function
|
|
16575
|
-
return
|
|
16574
|
+
function aa(n, r) {
|
|
16575
|
+
return aa = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
16576
16576
|
return t.__proto__ = i, t;
|
|
16577
|
-
},
|
|
16577
|
+
}, aa(n, r);
|
|
16578
16578
|
}
|
|
16579
|
-
function
|
|
16579
|
+
function ri(n, r) {
|
|
16580
16580
|
if (typeof r != "function" && r !== null)
|
|
16581
16581
|
throw new TypeError("Super expression must either be null or a function");
|
|
16582
16582
|
n.prototype = Object.create(r && r.prototype, {
|
|
@@ -16587,7 +16587,7 @@ function ni(n, r) {
|
|
|
16587
16587
|
}
|
|
16588
16588
|
}), Object.defineProperty(n, "prototype", {
|
|
16589
16589
|
writable: !1
|
|
16590
|
-
}), r &&
|
|
16590
|
+
}), r && aa(n, r);
|
|
16591
16591
|
}
|
|
16592
16592
|
function qn(n, r) {
|
|
16593
16593
|
if (r && (Me(r) === "object" || typeof r == "function"))
|
|
@@ -16777,7 +16777,7 @@ var eg = {
|
|
|
16777
16777
|
}
|
|
16778
16778
|
}]), n;
|
|
16779
16779
|
}();
|
|
16780
|
-
function
|
|
16780
|
+
function un() {
|
|
16781
16781
|
var n, r, e = new Promise(function(t, i) {
|
|
16782
16782
|
n = t, r = i;
|
|
16783
16783
|
});
|
|
@@ -16830,7 +16830,7 @@ function pc(n, r, e) {
|
|
|
16830
16830
|
t !== "__proto__" && t !== "constructor" && (t in n ? typeof n[t] == "string" || n[t] instanceof String || typeof r[t] == "string" || r[t] instanceof String ? e && (n[t] = r[t]) : pc(n[t], r[t], e) : n[t] = r[t]);
|
|
16831
16831
|
return n;
|
|
16832
16832
|
}
|
|
16833
|
-
function
|
|
16833
|
+
function zt(n) {
|
|
16834
16834
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
16835
16835
|
}
|
|
16836
16836
|
var ag = {
|
|
@@ -16846,7 +16846,7 @@ function og(n) {
|
|
|
16846
16846
|
return ag[r];
|
|
16847
16847
|
}) : n;
|
|
16848
16848
|
}
|
|
16849
|
-
var
|
|
16849
|
+
var ii = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, sg = [" ", ",", "?", "!", ";"];
|
|
16850
16850
|
function lg(n, r, e) {
|
|
16851
16851
|
r = r || "", e = e || "";
|
|
16852
16852
|
var t = sg.filter(function(s) {
|
|
@@ -16930,14 +16930,14 @@ function ug() {
|
|
|
16930
16930
|
}
|
|
16931
16931
|
}
|
|
16932
16932
|
var dg = function(n) {
|
|
16933
|
-
|
|
16933
|
+
ri(e, n);
|
|
16934
16934
|
var r = cg(e);
|
|
16935
16935
|
function e(t) {
|
|
16936
16936
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
16937
16937
|
ns: ["translation"],
|
|
16938
16938
|
defaultNS: "translation"
|
|
16939
16939
|
};
|
|
16940
|
-
return Ze(this, e), i = r.call(this),
|
|
16940
|
+
return Ze(this, e), i = r.call(this), ii && ut.call(lt(i)), i.data = t || {}, i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.options.ignoreJSONStructure === void 0 && (i.options.ignoreJSONStructure = !0), i;
|
|
16941
16941
|
}
|
|
16942
16942
|
return Ye(e, [{
|
|
16943
16943
|
key: "addNamespaces",
|
|
@@ -17078,11 +17078,11 @@ function hg() {
|
|
|
17078
17078
|
}
|
|
17079
17079
|
}
|
|
17080
17080
|
var _s = {}, Es = function(n) {
|
|
17081
|
-
|
|
17081
|
+
ri(e, n);
|
|
17082
17082
|
var r = pg(e);
|
|
17083
17083
|
function e(t) {
|
|
17084
17084
|
var i, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17085
|
-
return Ze(this, e), i = r.call(this),
|
|
17085
|
+
return Ze(this, e), i = r.call(this), ii && ut.call(lt(i)), ng(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, lt(i)), i.options = a, i.options.keySeparator === void 0 && (i.options.keySeparator = "."), i.logger = qe.create("translator"), i;
|
|
17086
17086
|
}
|
|
17087
17087
|
return Ye(e, [{
|
|
17088
17088
|
key: "changeLanguage",
|
|
@@ -17183,16 +17183,16 @@ var _s = {}, Es = function(n) {
|
|
|
17183
17183
|
}
|
|
17184
17184
|
var Ce = [], Le = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
17185
17185
|
if (this.options.saveMissingTo === "fallback" && Le && Le[0])
|
|
17186
|
-
for (var
|
|
17187
|
-
Ce.push(Le[
|
|
17186
|
+
for (var ci = 0; ci < Le.length; ci++)
|
|
17187
|
+
Ce.push(Le[ci]);
|
|
17188
17188
|
else this.options.saveMissingTo === "all" ? Ce = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Ce.push(a.lng || this.language);
|
|
17189
|
-
var ja = function(
|
|
17189
|
+
var ja = function(Bt, di, Ha) {
|
|
17190
17190
|
var Ua = $ && Ha !== b ? Ha : se;
|
|
17191
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(
|
|
17191
|
+
s.options.missingKeyHandler ? s.options.missingKeyHandler(Bt, h, di, Ua, me, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(Bt, h, di, Ua, me, a), s.emit("missingKey", Bt, h, di, b);
|
|
17192
17192
|
};
|
|
17193
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Ce.forEach(function(
|
|
17194
|
-
s.pluralResolver.getSuffixes(
|
|
17195
|
-
ja([
|
|
17193
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Ce.forEach(function(ui) {
|
|
17194
|
+
s.pluralResolver.getSuffixes(ui, a).forEach(function(Bt) {
|
|
17195
|
+
ja([ui], d + Bt, a["defaultValue".concat(Bt)] || B);
|
|
17196
17196
|
});
|
|
17197
17197
|
}) : ja(Ce, d, B));
|
|
17198
17198
|
}
|
|
@@ -17296,7 +17296,7 @@ var _s = {}, Es = function(n) {
|
|
|
17296
17296
|
}
|
|
17297
17297
|
}]), e;
|
|
17298
17298
|
}(ut);
|
|
17299
|
-
function
|
|
17299
|
+
function Pi(n) {
|
|
17300
17300
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
17301
17301
|
}
|
|
17302
17302
|
var Cs = function() {
|
|
@@ -17324,7 +17324,7 @@ var Cs = function() {
|
|
|
17324
17324
|
var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], i = e.split("-");
|
|
17325
17325
|
return this.options.lowerCaseLng ? i = i.map(function(a) {
|
|
17326
17326
|
return a.toLowerCase();
|
|
17327
|
-
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
17327
|
+
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Pi(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Pi(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Pi(i[2].toLowerCase()))), i.join("-");
|
|
17328
17328
|
}
|
|
17329
17329
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
17330
17330
|
}
|
|
@@ -17667,7 +17667,7 @@ var bg = function() {
|
|
|
17667
17667
|
escapeValue: !0
|
|
17668
17668
|
});
|
|
17669
17669
|
var t = e.interpolation;
|
|
17670
|
-
this.escape = t.escape !== void 0 ? t.escape : og, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ?
|
|
17670
|
+
this.escape = t.escape !== void 0 ? t.escape : og, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? zt(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? zt(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? zt(t.nestingPrefix) : t.nestingPrefixEscaped || zt("$t("), this.nestingSuffix = t.nestingSuffix ? zt(t.nestingSuffix) : t.nestingSuffixEscaped || zt(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
|
|
17671
17671
|
}
|
|
17672
17672
|
}, {
|
|
17673
17673
|
key: "reset",
|
|
@@ -17821,7 +17821,7 @@ function kg(n) {
|
|
|
17821
17821
|
formatOptions: e
|
|
17822
17822
|
};
|
|
17823
17823
|
}
|
|
17824
|
-
function
|
|
17824
|
+
function Wt(n) {
|
|
17825
17825
|
var r = {};
|
|
17826
17826
|
return function(t, i, a) {
|
|
17827
17827
|
var o = i + JSON.stringify(a), s = r[o];
|
|
@@ -17832,13 +17832,13 @@ var wg = function() {
|
|
|
17832
17832
|
function n() {
|
|
17833
17833
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
17834
17834
|
Ze(this, n), this.logger = qe.create("formatter"), this.options = r, this.formats = {
|
|
17835
|
-
number:
|
|
17835
|
+
number: Wt(function(e, t) {
|
|
17836
17836
|
var i = new Intl.NumberFormat(e, Qe({}, t));
|
|
17837
17837
|
return function(a) {
|
|
17838
17838
|
return i.format(a);
|
|
17839
17839
|
};
|
|
17840
17840
|
}),
|
|
17841
|
-
currency:
|
|
17841
|
+
currency: Wt(function(e, t) {
|
|
17842
17842
|
var i = new Intl.NumberFormat(e, Qe(Qe({}, t), {}, {
|
|
17843
17843
|
style: "currency"
|
|
17844
17844
|
}));
|
|
@@ -17846,19 +17846,19 @@ var wg = function() {
|
|
|
17846
17846
|
return i.format(a);
|
|
17847
17847
|
};
|
|
17848
17848
|
}),
|
|
17849
|
-
datetime:
|
|
17849
|
+
datetime: Wt(function(e, t) {
|
|
17850
17850
|
var i = new Intl.DateTimeFormat(e, Qe({}, t));
|
|
17851
17851
|
return function(a) {
|
|
17852
17852
|
return i.format(a);
|
|
17853
17853
|
};
|
|
17854
17854
|
}),
|
|
17855
|
-
relativetime:
|
|
17855
|
+
relativetime: Wt(function(e, t) {
|
|
17856
17856
|
var i = new Intl.RelativeTimeFormat(e, Qe({}, t));
|
|
17857
17857
|
return function(a) {
|
|
17858
17858
|
return i.format(a, t.range || "day");
|
|
17859
17859
|
};
|
|
17860
17860
|
}),
|
|
17861
|
-
list:
|
|
17861
|
+
list: Wt(function(e, t) {
|
|
17862
17862
|
var i = new Intl.ListFormat(e, Qe({}, t));
|
|
17863
17863
|
return function(a) {
|
|
17864
17864
|
return i.format(a);
|
|
@@ -17882,7 +17882,7 @@ var wg = function() {
|
|
|
17882
17882
|
}, {
|
|
17883
17883
|
key: "addCached",
|
|
17884
17884
|
value: function(e, t) {
|
|
17885
|
-
this.formats[e.toLowerCase().trim()] =
|
|
17885
|
+
this.formats[e.toLowerCase().trim()] = Wt(t);
|
|
17886
17886
|
}
|
|
17887
17887
|
}, {
|
|
17888
17888
|
key: "format",
|
|
@@ -17953,11 +17953,11 @@ function Eg(n, r) {
|
|
|
17953
17953
|
n.pending[r] !== void 0 && (delete n.pending[r], n.pendingCount--);
|
|
17954
17954
|
}
|
|
17955
17955
|
var Cg = function(n) {
|
|
17956
|
-
|
|
17956
|
+
ri(e, n);
|
|
17957
17957
|
var r = Sg(e);
|
|
17958
17958
|
function e(t, i, a) {
|
|
17959
17959
|
var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
17960
|
-
return Ze(this, e), o = r.call(this),
|
|
17960
|
+
return Ze(this, e), o = r.call(this), ii && ut.call(lt(o)), o.backend = t, o.store = i, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = qe.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
|
|
17961
17961
|
}
|
|
17962
17962
|
return Ye(e, [{
|
|
17963
17963
|
key: "queueLoad",
|
|
@@ -18224,11 +18224,11 @@ function Tg(n) {
|
|
|
18224
18224
|
});
|
|
18225
18225
|
}
|
|
18226
18226
|
var Fr = function(n) {
|
|
18227
|
-
|
|
18227
|
+
ri(e, n);
|
|
18228
18228
|
var r = xg(e);
|
|
18229
18229
|
function e() {
|
|
18230
18230
|
var t, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
18231
|
-
if (Ze(this, e), t = r.call(this),
|
|
18231
|
+
if (Ze(this, e), t = r.call(this), ii && ut.call(lt(t)), t.options = Ms(i), t.services = {}, t.logger = qe, t.modules = {
|
|
18232
18232
|
external: []
|
|
18233
18233
|
}, Tg(lt(t)), a && !t.isInitialized && !i.isClone) {
|
|
18234
18234
|
if (!t.options.initImmediate)
|
|
@@ -18293,7 +18293,7 @@ var Fr = function(n) {
|
|
|
18293
18293
|
return (b = i.store)[v].apply(b, arguments), i;
|
|
18294
18294
|
};
|
|
18295
18295
|
});
|
|
18296
|
-
var g =
|
|
18296
|
+
var g = un(), y = function() {
|
|
18297
18297
|
var b = function(N, R) {
|
|
18298
18298
|
i.isInitialized && !i.initializedStoreOnce && i.logger.warn("init: i18next is already initialized. You should call init just once!"), i.isInitialized = !0, i.options.isClone || i.logger.log("initialized", i.options), i.emit("initialized", i.options), g.resolve(R), o(N, R);
|
|
18299
18299
|
};
|
|
@@ -18335,7 +18335,7 @@ var Fr = function(n) {
|
|
|
18335
18335
|
}, {
|
|
18336
18336
|
key: "reloadResources",
|
|
18337
18337
|
value: function(i, a, o) {
|
|
18338
|
-
var s =
|
|
18338
|
+
var s = un();
|
|
18339
18339
|
return i || (i = this.languages), a || (a = this.options.ns), o || (o = tr), this.services.backendConnector.reload(i, a, function(l) {
|
|
18340
18340
|
s.resolve(), o(l);
|
|
18341
18341
|
}), s;
|
|
@@ -18364,7 +18364,7 @@ var Fr = function(n) {
|
|
|
18364
18364
|
value: function(i, a) {
|
|
18365
18365
|
var o = this;
|
|
18366
18366
|
this.isLanguageChangingTo = i;
|
|
18367
|
-
var s =
|
|
18367
|
+
var s = un();
|
|
18368
18368
|
this.emit("languageChanging", i);
|
|
18369
18369
|
var l = function(p) {
|
|
18370
18370
|
o.language = p, o.languages = o.services.languageUtils.toResolveHierarchy(p), o.resolvedLanguage = void 0, o.setResolvedLanguage(p);
|
|
@@ -18442,7 +18442,7 @@ var Fr = function(n) {
|
|
|
18442
18442
|
}, {
|
|
18443
18443
|
key: "loadNamespaces",
|
|
18444
18444
|
value: function(i, a) {
|
|
18445
|
-
var o = this, s =
|
|
18445
|
+
var o = this, s = un();
|
|
18446
18446
|
return this.options.ns ? (typeof i == "string" && (i = [i]), i.forEach(function(l) {
|
|
18447
18447
|
o.options.ns.indexOf(l) < 0 && o.options.ns.push(l);
|
|
18448
18448
|
}), this.loadResources(function(l) {
|
|
@@ -18452,7 +18452,7 @@ var Fr = function(n) {
|
|
|
18452
18452
|
}, {
|
|
18453
18453
|
key: "loadLanguages",
|
|
18454
18454
|
value: function(i, a) {
|
|
18455
|
-
var o =
|
|
18455
|
+
var o = un();
|
|
18456
18456
|
typeof i == "string" && (i = [i]);
|
|
18457
18457
|
var s = this.options.preload || [], l = i.filter(function(c) {
|
|
18458
18458
|
return s.indexOf(c) < 0;
|
|
@@ -18515,13 +18515,13 @@ ye.reloadResources;
|
|
|
18515
18515
|
ye.use;
|
|
18516
18516
|
ye.changeLanguage;
|
|
18517
18517
|
ye.getFixedT;
|
|
18518
|
-
var
|
|
18518
|
+
var yt = ye.t;
|
|
18519
18519
|
ye.exists;
|
|
18520
18520
|
ye.setDefaultNamespace;
|
|
18521
18521
|
ye.hasLoadedNamespace;
|
|
18522
18522
|
ye.loadNamespaces;
|
|
18523
18523
|
ye.loadLanguages;
|
|
18524
|
-
const Rg = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"],
|
|
18524
|
+
const Rg = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"], Fi = {
|
|
18525
18525
|
fr: "fr-FR",
|
|
18526
18526
|
pt: "pt-PT",
|
|
18527
18527
|
nl: "nl-NL",
|
|
@@ -18698,7 +18698,7 @@ function jg(n, r) {
|
|
|
18698
18698
|
return n;
|
|
18699
18699
|
}
|
|
18700
18700
|
}
|
|
18701
|
-
const Fs = (n) => Array.isArray(
|
|
18701
|
+
const Fs = (n) => Array.isArray(Fi[n]) ? Fi[n] : [Fi[n]], Hg = (n) => {
|
|
18702
18702
|
const { country: r, cookies: e, isFromWebview: t, acceptLanguageHeader: i } = n;
|
|
18703
18703
|
let a = null;
|
|
18704
18704
|
if (t) {
|
|
@@ -18731,7 +18731,7 @@ const Fs = (n) => Array.isArray(Pi[n]) ? Pi[n] : [Pi[n]], Hg = (n) => {
|
|
|
18731
18731
|
class qg extends Og {
|
|
18732
18732
|
getTranslationsMaps() {
|
|
18733
18733
|
return {
|
|
18734
|
-
"fr-FR": async () => (await import("../../chatbot-
|
|
18734
|
+
"fr-FR": async () => (await import("../../chatbot-D3q5WC8J.js")).default,
|
|
18735
18735
|
"pt-PT": async () => {
|
|
18736
18736
|
throw Error("Not available yet");
|
|
18737
18737
|
},
|
|
@@ -18776,10 +18776,10 @@ function fc(n, r) {
|
|
|
18776
18776
|
return n.apply(r, arguments);
|
|
18777
18777
|
};
|
|
18778
18778
|
}
|
|
18779
|
-
const { toString: Vg } = Object.prototype, { getPrototypeOf: Na } = Object,
|
|
18779
|
+
const { toString: Vg } = Object.prototype, { getPrototypeOf: Na } = Object, ai = /* @__PURE__ */ ((n) => (r) => {
|
|
18780
18780
|
const e = Vg.call(r);
|
|
18781
18781
|
return n[e] || (n[e] = e.slice(8, -1).toLowerCase());
|
|
18782
|
-
})(/* @__PURE__ */ Object.create(null)), Xe = (n) => (n = n.toLowerCase(), (r) =>
|
|
18782
|
+
})(/* @__PURE__ */ Object.create(null)), Xe = (n) => (n = n.toLowerCase(), (r) => ai(r) === n), oi = (n) => (r) => typeof r === n, { isArray: an } = Array, Fn = oi("undefined");
|
|
18783
18783
|
function Gg(n) {
|
|
18784
18784
|
return n !== null && !Fn(n) && n.constructor !== null && !Fn(n.constructor) && Pe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
18785
18785
|
}
|
|
@@ -18788,21 +18788,21 @@ function Kg(n) {
|
|
|
18788
18788
|
let r;
|
|
18789
18789
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(n) : r = n && n.buffer && mc(n.buffer), r;
|
|
18790
18790
|
}
|
|
18791
|
-
const Jg =
|
|
18792
|
-
if (
|
|
18791
|
+
const Jg = oi("string"), Pe = oi("function"), gc = oi("number"), si = (n) => n !== null && typeof n == "object", Zg = (n) => n === !0 || n === !1, hr = (n) => {
|
|
18792
|
+
if (ai(n) !== "object")
|
|
18793
18793
|
return !1;
|
|
18794
18794
|
const r = Na(n);
|
|
18795
18795
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
|
|
18796
|
-
}, Yg = Xe("Date"), Xg = Xe("File"), Qg = Xe("Blob"), ev = Xe("FileList"), tv = (n) =>
|
|
18796
|
+
}, Yg = Xe("Date"), Xg = Xe("File"), Qg = Xe("Blob"), ev = Xe("FileList"), tv = (n) => si(n) && Pe(n.pipe), nv = (n) => {
|
|
18797
18797
|
let r;
|
|
18798
|
-
return n && (typeof FormData == "function" && n instanceof FormData || Pe(n.append) && ((r =
|
|
18798
|
+
return n && (typeof FormData == "function" && n instanceof FormData || Pe(n.append) && ((r = ai(n)) === "formdata" || // detect form-data instance
|
|
18799
18799
|
r === "object" && Pe(n.toString) && n.toString() === "[object FormData]"));
|
|
18800
18800
|
}, rv = Xe("URLSearchParams"), iv = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
18801
18801
|
function Vn(n, r, { allOwnKeys: e = !1 } = {}) {
|
|
18802
18802
|
if (n === null || typeof n > "u")
|
|
18803
18803
|
return;
|
|
18804
18804
|
let t, i;
|
|
18805
|
-
if (typeof n != "object" && (n = [n]),
|
|
18805
|
+
if (typeof n != "object" && (n = [n]), an(n))
|
|
18806
18806
|
for (t = 0, i = n.length; t < i; t++)
|
|
18807
18807
|
r.call(null, n[t], t, n);
|
|
18808
18808
|
else {
|
|
@@ -18822,10 +18822,10 @@ function vc(n, r) {
|
|
|
18822
18822
|
return null;
|
|
18823
18823
|
}
|
|
18824
18824
|
const yc = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, bc = (n) => !Fn(n) && n !== yc;
|
|
18825
|
-
function
|
|
18825
|
+
function oa() {
|
|
18826
18826
|
const { caseless: n } = bc(this) && this || {}, r = {}, e = (t, i) => {
|
|
18827
18827
|
const a = n && vc(r, i) || i;
|
|
18828
|
-
hr(r[a]) && hr(t) ? r[a] =
|
|
18828
|
+
hr(r[a]) && hr(t) ? r[a] = oa(r[a], t) : hr(t) ? r[a] = oa({}, t) : an(t) ? r[a] = t.slice() : r[a] = t;
|
|
18829
18829
|
};
|
|
18830
18830
|
for (let t = 0, i = arguments.length; t < i; t++)
|
|
18831
18831
|
arguments[t] && Vn(arguments[t], e);
|
|
@@ -18853,7 +18853,7 @@ const av = (n, r, e, { allOwnKeys: t } = {}) => (Vn(r, (i, a) => {
|
|
|
18853
18853
|
return t !== -1 && t === e;
|
|
18854
18854
|
}, uv = (n) => {
|
|
18855
18855
|
if (!n) return null;
|
|
18856
|
-
if (
|
|
18856
|
+
if (an(n)) return n;
|
|
18857
18857
|
let r = n.length;
|
|
18858
18858
|
if (!gc(r)) return null;
|
|
18859
18859
|
const e = new Array(r);
|
|
@@ -18905,12 +18905,12 @@ const av = (n, r, e, { allOwnKeys: t } = {}) => (Vn(r, (i, a) => {
|
|
|
18905
18905
|
e[a] = !0;
|
|
18906
18906
|
});
|
|
18907
18907
|
};
|
|
18908
|
-
return
|
|
18908
|
+
return an(n) ? t(n) : t(String(n).split(r)), e;
|
|
18909
18909
|
}, bv = () => {
|
|
18910
|
-
}, kv = (n, r) => (n = +n, Number.isFinite(n) ? n : r),
|
|
18910
|
+
}, kv = (n, r) => (n = +n, Number.isFinite(n) ? n : r), Ni = "abcdefghijklmnopqrstuvwxyz", Ds = "0123456789", wc = {
|
|
18911
18911
|
DIGIT: Ds,
|
|
18912
|
-
ALPHA:
|
|
18913
|
-
ALPHA_DIGIT:
|
|
18912
|
+
ALPHA: Ni,
|
|
18913
|
+
ALPHA_DIGIT: Ni + Ni.toUpperCase() + Ds
|
|
18914
18914
|
}, wv = (n = 16, r = wc.ALPHA_DIGIT) => {
|
|
18915
18915
|
let e = "";
|
|
18916
18916
|
const { length: t } = r;
|
|
@@ -18923,12 +18923,12 @@ function Sv(n) {
|
|
|
18923
18923
|
}
|
|
18924
18924
|
const _v = (n) => {
|
|
18925
18925
|
const r = new Array(10), e = (t, i) => {
|
|
18926
|
-
if (
|
|
18926
|
+
if (si(t)) {
|
|
18927
18927
|
if (r.indexOf(t) >= 0)
|
|
18928
18928
|
return;
|
|
18929
18929
|
if (!("toJSON" in t)) {
|
|
18930
18930
|
r[i] = t;
|
|
18931
|
-
const a =
|
|
18931
|
+
const a = an(t) ? [] : {};
|
|
18932
18932
|
return Vn(t, (o, s) => {
|
|
18933
18933
|
const l = e(o, i + 1);
|
|
18934
18934
|
!Fn(l) && (a[s] = l);
|
|
@@ -18938,8 +18938,8 @@ const _v = (n) => {
|
|
|
18938
18938
|
return t;
|
|
18939
18939
|
};
|
|
18940
18940
|
return e(n, 0);
|
|
18941
|
-
}, Ev = Xe("AsyncFunction"), Cv = (n) => n && (
|
|
18942
|
-
isArray:
|
|
18941
|
+
}, Ev = Xe("AsyncFunction"), Cv = (n) => n && (si(n) || Pe(n)) && Pe(n.then) && Pe(n.catch), E = {
|
|
18942
|
+
isArray: an,
|
|
18943
18943
|
isArrayBuffer: mc,
|
|
18944
18944
|
isBuffer: Gg,
|
|
18945
18945
|
isFormData: nv,
|
|
@@ -18947,7 +18947,7 @@ const _v = (n) => {
|
|
|
18947
18947
|
isString: Jg,
|
|
18948
18948
|
isNumber: gc,
|
|
18949
18949
|
isBoolean: Zg,
|
|
18950
|
-
isObject:
|
|
18950
|
+
isObject: si,
|
|
18951
18951
|
isPlainObject: hr,
|
|
18952
18952
|
isUndefined: Fn,
|
|
18953
18953
|
isDate: Yg,
|
|
@@ -18960,13 +18960,13 @@ const _v = (n) => {
|
|
|
18960
18960
|
isTypedArray: dv,
|
|
18961
18961
|
isFileList: ev,
|
|
18962
18962
|
forEach: Vn,
|
|
18963
|
-
merge:
|
|
18963
|
+
merge: oa,
|
|
18964
18964
|
extend: av,
|
|
18965
18965
|
trim: iv,
|
|
18966
18966
|
stripBOM: ov,
|
|
18967
18967
|
inherits: sv,
|
|
18968
18968
|
toFlatObject: lv,
|
|
18969
|
-
kindOf:
|
|
18969
|
+
kindOf: ai,
|
|
18970
18970
|
kindOfTest: Xe,
|
|
18971
18971
|
endsWith: cv,
|
|
18972
18972
|
toArray: uv,
|
|
@@ -19043,7 +19043,7 @@ re.from = (n, r, e, t, i, a) => {
|
|
|
19043
19043
|
}, (s) => s !== "isAxiosError"), re.call(o, n.message, r, e, t, i), o.cause = n, o.name = n.name, a && Object.assign(o, a), o;
|
|
19044
19044
|
};
|
|
19045
19045
|
const xv = null;
|
|
19046
|
-
function
|
|
19046
|
+
function sa(n) {
|
|
19047
19047
|
return E.isPlainObject(n) || E.isArray(n);
|
|
19048
19048
|
}
|
|
19049
19049
|
function Ec(n) {
|
|
@@ -19055,12 +19055,12 @@ function $s(n, r, e) {
|
|
|
19055
19055
|
}).join(e ? "." : "") : r;
|
|
19056
19056
|
}
|
|
19057
19057
|
function Av(n) {
|
|
19058
|
-
return E.isArray(n) && !n.some(
|
|
19058
|
+
return E.isArray(n) && !n.some(sa);
|
|
19059
19059
|
}
|
|
19060
19060
|
const Tv = E.toFlatObject(E, {}, null, function(r) {
|
|
19061
19061
|
return /^is[A-Z]/.test(r);
|
|
19062
19062
|
});
|
|
19063
|
-
function
|
|
19063
|
+
function li(n, r, e) {
|
|
19064
19064
|
if (!E.isObject(n))
|
|
19065
19065
|
throw new TypeError("target must be an object");
|
|
19066
19066
|
r = r || new FormData(), e = E.toFlatObject(e, {
|
|
@@ -19095,12 +19095,12 @@ function si(n, r, e) {
|
|
|
19095
19095
|
);
|
|
19096
19096
|
}), !1;
|
|
19097
19097
|
}
|
|
19098
|
-
return
|
|
19098
|
+
return sa(f) ? !0 : (r.append($s(y, g, a), c(f)), !1);
|
|
19099
19099
|
}
|
|
19100
19100
|
const d = [], p = Object.assign(Tv, {
|
|
19101
19101
|
defaultVisitor: u,
|
|
19102
19102
|
convertValue: c,
|
|
19103
|
-
isVisitable:
|
|
19103
|
+
isVisitable: sa
|
|
19104
19104
|
});
|
|
19105
19105
|
function h(f, g) {
|
|
19106
19106
|
if (!E.isUndefined(f)) {
|
|
@@ -19136,7 +19136,7 @@ function Bs(n) {
|
|
|
19136
19136
|
});
|
|
19137
19137
|
}
|
|
19138
19138
|
function Da(n, r) {
|
|
19139
|
-
this._pairs = [], n &&
|
|
19139
|
+
this._pairs = [], n && li(n, this, r);
|
|
19140
19140
|
}
|
|
19141
19141
|
const Cc = Da.prototype;
|
|
19142
19142
|
Cc.append = function(r, e) {
|
|
@@ -19241,7 +19241,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nv
|
|
|
19241
19241
|
...Mv
|
|
19242
19242
|
};
|
|
19243
19243
|
function Dv(n, r) {
|
|
19244
|
-
return
|
|
19244
|
+
return li(n, new Ve.classes.URLSearchParams(), Object.assign({
|
|
19245
19245
|
visitor: function(e, t, i, a) {
|
|
19246
19246
|
return Ve.isNode && E.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19247
19247
|
}
|
|
@@ -19303,7 +19303,7 @@ const Gn = {
|
|
|
19303
19303
|
return Dv(r, this.formSerializer).toString();
|
|
19304
19304
|
if ((s = E.isFileList(r)) || t.indexOf("multipart/form-data") > -1) {
|
|
19305
19305
|
const l = this.env && this.env.FormData;
|
|
19306
|
-
return
|
|
19306
|
+
return li(
|
|
19307
19307
|
s ? { "files[]": r } : r,
|
|
19308
19308
|
l && new l(),
|
|
19309
19309
|
this.formSerializer
|
|
@@ -19391,7 +19391,7 @@ function zv(n) {
|
|
|
19391
19391
|
return r;
|
|
19392
19392
|
}
|
|
19393
19393
|
const Wv = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
|
|
19394
|
-
function
|
|
19394
|
+
function Di(n, r, e, t, i) {
|
|
19395
19395
|
if (E.isFunction(t))
|
|
19396
19396
|
return t.call(this, r, e);
|
|
19397
19397
|
if (i && (r = e), !!E.isString(r)) {
|
|
@@ -19451,7 +19451,7 @@ class Fe {
|
|
|
19451
19451
|
has(r, e) {
|
|
19452
19452
|
if (r = dn(r), r) {
|
|
19453
19453
|
const t = E.findKey(this, r);
|
|
19454
|
-
return !!(t && this[t] !== void 0 && (!e ||
|
|
19454
|
+
return !!(t && this[t] !== void 0 && (!e || Di(this, this[t], t, e)));
|
|
19455
19455
|
}
|
|
19456
19456
|
return !1;
|
|
19457
19457
|
}
|
|
@@ -19461,7 +19461,7 @@ class Fe {
|
|
|
19461
19461
|
function a(o) {
|
|
19462
19462
|
if (o = dn(o), o) {
|
|
19463
19463
|
const s = E.findKey(t, o);
|
|
19464
|
-
s && (!e ||
|
|
19464
|
+
s && (!e || Di(t, t[s], s, e)) && (delete t[s], i = !0);
|
|
19465
19465
|
}
|
|
19466
19466
|
}
|
|
19467
19467
|
return E.isArray(r) ? r.forEach(a) : a(r), i;
|
|
@@ -19471,7 +19471,7 @@ class Fe {
|
|
|
19471
19471
|
let t = e.length, i = !1;
|
|
19472
19472
|
for (; t--; ) {
|
|
19473
19473
|
const a = e[t];
|
|
19474
|
-
(!r ||
|
|
19474
|
+
(!r || Di(this, this[a], a, r, !0)) && (delete this[a], i = !0);
|
|
19475
19475
|
}
|
|
19476
19476
|
return i;
|
|
19477
19477
|
}
|
|
@@ -19535,7 +19535,7 @@ E.reduceDescriptors(Fe.prototype, ({ value: n }, r) => {
|
|
|
19535
19535
|
};
|
|
19536
19536
|
});
|
|
19537
19537
|
E.freezeMethods(Fe);
|
|
19538
|
-
function
|
|
19538
|
+
function $i(n, r) {
|
|
19539
19539
|
const e = this || Gn, t = r || e, i = Fe.from(t.headers);
|
|
19540
19540
|
let a = t.data;
|
|
19541
19541
|
return E.forEach(n, function(s) {
|
|
@@ -19741,11 +19741,11 @@ const e1 = typeof XMLHttpRequest < "u", t1 = e1 && function(n) {
|
|
|
19741
19741
|
}
|
|
19742
19742
|
d.send(i || null);
|
|
19743
19743
|
});
|
|
19744
|
-
},
|
|
19744
|
+
}, la = {
|
|
19745
19745
|
http: xv,
|
|
19746
19746
|
xhr: t1
|
|
19747
19747
|
};
|
|
19748
|
-
E.forEach(
|
|
19748
|
+
E.forEach(la, (n, r) => {
|
|
19749
19749
|
if (n) {
|
|
19750
19750
|
try {
|
|
19751
19751
|
Object.defineProperty(n, "name", { value: r });
|
|
@@ -19763,7 +19763,7 @@ const zs = (n) => `- ${n}`, n1 = (n) => E.isFunction(n) || n === null || n === !
|
|
|
19763
19763
|
for (let a = 0; a < r; a++) {
|
|
19764
19764
|
e = n[a];
|
|
19765
19765
|
let o;
|
|
19766
|
-
if (t = e, !n1(e) && (t =
|
|
19766
|
+
if (t = e, !n1(e) && (t = la[(o = String(e)).toLowerCase()], t === void 0))
|
|
19767
19767
|
throw new re(`Unknown adapter '${o}'`);
|
|
19768
19768
|
if (t)
|
|
19769
19769
|
break;
|
|
@@ -19783,24 +19783,24 @@ const zs = (n) => `- ${n}`, n1 = (n) => E.isFunction(n) || n === null || n === !
|
|
|
19783
19783
|
}
|
|
19784
19784
|
return t;
|
|
19785
19785
|
},
|
|
19786
|
-
adapters:
|
|
19786
|
+
adapters: la
|
|
19787
19787
|
};
|
|
19788
|
-
function
|
|
19788
|
+
function Bi(n) {
|
|
19789
19789
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
19790
19790
|
throw new Kn(null, n);
|
|
19791
19791
|
}
|
|
19792
19792
|
function Ws(n) {
|
|
19793
|
-
return
|
|
19793
|
+
return Bi(n), n.headers = Fe.from(n.headers), n.data = $i.call(
|
|
19794
19794
|
n,
|
|
19795
19795
|
n.transformRequest
|
|
19796
19796
|
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), Lc.getAdapter(n.adapter || Gn.adapter)(n).then(function(t) {
|
|
19797
|
-
return
|
|
19797
|
+
return Bi(n), t.data = $i.call(
|
|
19798
19798
|
n,
|
|
19799
19799
|
n.transformResponse,
|
|
19800
19800
|
t
|
|
19801
19801
|
), t.headers = Fe.from(t.headers), t;
|
|
19802
19802
|
}, function(t) {
|
|
19803
|
-
return Oc(t) || (
|
|
19803
|
+
return Oc(t) || (Bi(n), t && t.response && (t.response.data = $i.call(
|
|
19804
19804
|
n,
|
|
19805
19805
|
n.transformResponse,
|
|
19806
19806
|
t.response
|
|
@@ -19808,7 +19808,7 @@ function Ws(n) {
|
|
|
19808
19808
|
});
|
|
19809
19809
|
}
|
|
19810
19810
|
const qs = (n) => n instanceof Fe ? { ...n } : n;
|
|
19811
|
-
function
|
|
19811
|
+
function nn(n, r) {
|
|
19812
19812
|
r = r || {};
|
|
19813
19813
|
const e = {};
|
|
19814
19814
|
function t(c, u, d) {
|
|
@@ -19914,11 +19914,11 @@ function r1(n, r, e) {
|
|
|
19914
19914
|
throw new re("Unknown option " + a, re.ERR_BAD_OPTION);
|
|
19915
19915
|
}
|
|
19916
19916
|
}
|
|
19917
|
-
const
|
|
19917
|
+
const ca = {
|
|
19918
19918
|
assertOptions: r1,
|
|
19919
19919
|
validators: $a
|
|
19920
|
-
}, rt =
|
|
19921
|
-
class
|
|
19920
|
+
}, rt = ca.validators;
|
|
19921
|
+
class Ct {
|
|
19922
19922
|
constructor(r) {
|
|
19923
19923
|
this.defaults = r, this.interceptors = {
|
|
19924
19924
|
request: new js(),
|
|
@@ -19948,15 +19948,15 @@ class Et {
|
|
|
19948
19948
|
}
|
|
19949
19949
|
}
|
|
19950
19950
|
_request(r, e) {
|
|
19951
|
-
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e =
|
|
19951
|
+
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = nn(this.defaults, e);
|
|
19952
19952
|
const { transitional: t, paramsSerializer: i, headers: a } = e;
|
|
19953
|
-
t !== void 0 &&
|
|
19953
|
+
t !== void 0 && ca.assertOptions(t, {
|
|
19954
19954
|
silentJSONParsing: rt.transitional(rt.boolean),
|
|
19955
19955
|
forcedJSONParsing: rt.transitional(rt.boolean),
|
|
19956
19956
|
clarifyTimeoutError: rt.transitional(rt.boolean)
|
|
19957
19957
|
}, !1), i != null && (E.isFunction(i) ? e.paramsSerializer = {
|
|
19958
19958
|
serialize: i
|
|
19959
|
-
} :
|
|
19959
|
+
} : ca.assertOptions(i, {
|
|
19960
19960
|
encode: rt.function,
|
|
19961
19961
|
serialize: rt.function
|
|
19962
19962
|
}, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -20007,14 +20007,14 @@ class Et {
|
|
|
20007
20007
|
return u;
|
|
20008
20008
|
}
|
|
20009
20009
|
getUri(r) {
|
|
20010
|
-
r =
|
|
20010
|
+
r = nn(this.defaults, r);
|
|
20011
20011
|
const e = Ic(r.baseURL, r.url);
|
|
20012
20012
|
return xc(e, r.params, r.paramsSerializer);
|
|
20013
20013
|
}
|
|
20014
20014
|
}
|
|
20015
20015
|
E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
20016
|
-
|
|
20017
|
-
return this.request(
|
|
20016
|
+
Ct.prototype[r] = function(e, t) {
|
|
20017
|
+
return this.request(nn(t || {}, {
|
|
20018
20018
|
method: r,
|
|
20019
20019
|
url: e,
|
|
20020
20020
|
data: (t || {}).data
|
|
@@ -20024,7 +20024,7 @@ E.forEach(["delete", "get", "head", "options"], function(r) {
|
|
|
20024
20024
|
E.forEach(["post", "put", "patch"], function(r) {
|
|
20025
20025
|
function e(t) {
|
|
20026
20026
|
return function(a, o, s) {
|
|
20027
|
-
return this.request(
|
|
20027
|
+
return this.request(nn(s || {}, {
|
|
20028
20028
|
method: r,
|
|
20029
20029
|
headers: t ? {
|
|
20030
20030
|
"Content-Type": "multipart/form-data"
|
|
@@ -20034,7 +20034,7 @@ E.forEach(["post", "put", "patch"], function(r) {
|
|
|
20034
20034
|
}));
|
|
20035
20035
|
};
|
|
20036
20036
|
}
|
|
20037
|
-
|
|
20037
|
+
Ct.prototype[r] = e(), Ct.prototype[r + "Form"] = e(!0);
|
|
20038
20038
|
});
|
|
20039
20039
|
class Ba {
|
|
20040
20040
|
constructor(r) {
|
|
@@ -20111,7 +20111,7 @@ function i1(n) {
|
|
|
20111
20111
|
function a1(n) {
|
|
20112
20112
|
return E.isObject(n) && n.isAxiosError === !0;
|
|
20113
20113
|
}
|
|
20114
|
-
const
|
|
20114
|
+
const ua = {
|
|
20115
20115
|
Continue: 100,
|
|
20116
20116
|
SwitchingProtocols: 101,
|
|
20117
20117
|
Processing: 102,
|
|
@@ -20176,22 +20176,22 @@ const ca = {
|
|
|
20176
20176
|
NotExtended: 510,
|
|
20177
20177
|
NetworkAuthenticationRequired: 511
|
|
20178
20178
|
};
|
|
20179
|
-
Object.entries(
|
|
20180
|
-
|
|
20179
|
+
Object.entries(ua).forEach(([n, r]) => {
|
|
20180
|
+
ua[r] = n;
|
|
20181
20181
|
});
|
|
20182
20182
|
function Pc(n) {
|
|
20183
|
-
const r = new
|
|
20184
|
-
return E.extend(e,
|
|
20185
|
-
return Pc(
|
|
20183
|
+
const r = new Ct(n), e = fc(Ct.prototype.request, r);
|
|
20184
|
+
return E.extend(e, Ct.prototype, r, { allOwnKeys: !0 }), E.extend(e, r, null, { allOwnKeys: !0 }), e.create = function(i) {
|
|
20185
|
+
return Pc(nn(n, i));
|
|
20186
20186
|
}, e;
|
|
20187
20187
|
}
|
|
20188
20188
|
const V = Pc(Gn);
|
|
20189
|
-
V.Axios =
|
|
20189
|
+
V.Axios = Ct;
|
|
20190
20190
|
V.CanceledError = Kn;
|
|
20191
20191
|
V.CancelToken = Ba;
|
|
20192
20192
|
V.isCancel = Oc;
|
|
20193
20193
|
V.VERSION = Mc;
|
|
20194
|
-
V.toFormData =
|
|
20194
|
+
V.toFormData = li;
|
|
20195
20195
|
V.AxiosError = re;
|
|
20196
20196
|
V.Cancel = V.CanceledError;
|
|
20197
20197
|
V.all = function(r) {
|
|
@@ -20199,11 +20199,11 @@ V.all = function(r) {
|
|
|
20199
20199
|
};
|
|
20200
20200
|
V.spread = i1;
|
|
20201
20201
|
V.isAxiosError = a1;
|
|
20202
|
-
V.mergeConfig =
|
|
20202
|
+
V.mergeConfig = nn;
|
|
20203
20203
|
V.AxiosHeaders = Fe;
|
|
20204
20204
|
V.formToJSON = (n) => Rc(E.isHTMLForm(n) ? new FormData(n) : n);
|
|
20205
20205
|
V.getAdapter = Lc.getAdapter;
|
|
20206
|
-
V.HttpStatusCode =
|
|
20206
|
+
V.HttpStatusCode = ua;
|
|
20207
20207
|
V.default = V;
|
|
20208
20208
|
class Fc {
|
|
20209
20209
|
constructor({ format: r, successHandler: e, ...t } = {}) {
|
|
@@ -20278,15 +20278,15 @@ const he = (n, r) => {
|
|
|
20278
20278
|
var e;
|
|
20279
20279
|
return V.isAxiosError(n) && ((e = n == null ? void 0 : n.response) == null ? void 0 : e.status) === r;
|
|
20280
20280
|
};
|
|
20281
|
-
var pn, hn,
|
|
20282
|
-
class
|
|
20283
|
-
}
|
|
20284
|
-
K(
|
|
20285
|
-
}, K(pn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(pn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(pn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), pn)), K(
|
|
20286
|
-
}, K(hn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(hn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(hn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), hn)), K(
|
|
20287
|
-
}, K(
|
|
20288
|
-
}, K(
|
|
20289
|
-
}, K(
|
|
20281
|
+
var pn, hn, qt, Vt, Gt, fn;
|
|
20282
|
+
class St {
|
|
20283
|
+
}
|
|
20284
|
+
K(St, "ChatbotConversationsGet", (pn = class {
|
|
20285
|
+
}, K(pn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(pn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(pn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), pn)), K(St, "ChatbotConversationsSummaryGet", (hn = class {
|
|
20286
|
+
}, K(hn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(hn, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(hn, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), hn)), K(St, "ChatbotConversationsPost", (qt = class {
|
|
20287
|
+
}, K(qt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(qt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(qt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(qt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), qt)), K(St, "ChatbotConversationsRatePost", (Vt = class {
|
|
20288
|
+
}, K(Vt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Vt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Vt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Vt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Vt)), K(St, "ChatbotConversationsMessagesRatePost", (Gt = class {
|
|
20289
|
+
}, K(Gt, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(Gt, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), K(Gt, "isInternalServerErrorProblemDetails", (r) => V.isAxiosError(r) && he(r, 500)), K(Gt, "isServiceUnavailableProblemDetails", (r) => V.isAxiosError(r) && he(r, 503)), Gt)), K(St, "ChatbotIntegrationsPost", (fn = class {
|
|
20290
20290
|
}, K(fn, "isBadRequestProblemDetails", (r) => V.isAxiosError(r) && he(r, 400)), K(fn, "isUnauthorizedProblemDetails", (r) => V.isAxiosError(r) && he(r, 401)), K(fn, "isNotFoundProblemDetails", (r) => V.isAxiosError(r) && he(r, 404)), fn));
|
|
20291
20291
|
const ze = class ze extends Fc {
|
|
20292
20292
|
constructor() {
|
|
@@ -20387,8 +20387,8 @@ K(ze, "Endpoints", {
|
|
|
20387
20387
|
chatbotConversationsMessagesRatePost: ({ id: e, messageId: t }) => `/api/chatbot/conversations/${e}/messages/${t}/rate`,
|
|
20388
20388
|
chatbotIntegrationsPost: "/api/chatbot/integrations"
|
|
20389
20389
|
}), /** ChatbotService API static errors typeguards */
|
|
20390
|
-
K(ze, "Errors",
|
|
20391
|
-
let
|
|
20390
|
+
K(ze, "Errors", St);
|
|
20391
|
+
let Nr = ze;
|
|
20392
20392
|
const o1 = {
|
|
20393
20393
|
fallbackLng: "fr",
|
|
20394
20394
|
postProcess: "displayKeys",
|
|
@@ -20421,7 +20421,7 @@ const _n = (n, r) => {
|
|
|
20421
20421
|
if (e === void 0) return !1;
|
|
20422
20422
|
for (const i of e) (t = i._$AO) == null || t.call(i, r, !1), _n(i, r);
|
|
20423
20423
|
return !0;
|
|
20424
|
-
},
|
|
20424
|
+
}, Dr = (n) => {
|
|
20425
20425
|
let r, e;
|
|
20426
20426
|
do {
|
|
20427
20427
|
if ((r = n._$AM) === void 0) break;
|
|
@@ -20436,12 +20436,12 @@ const _n = (n, r) => {
|
|
|
20436
20436
|
}
|
|
20437
20437
|
};
|
|
20438
20438
|
function l1(n) {
|
|
20439
|
-
this._$AN !== void 0 ? (
|
|
20439
|
+
this._$AN !== void 0 ? (Dr(this), this._$AM = n, Nc(this)) : this._$AM = n;
|
|
20440
20440
|
}
|
|
20441
20441
|
function c1(n, r = !1, e = 0) {
|
|
20442
20442
|
const t = this._$AH, i = this._$AN;
|
|
20443
|
-
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(t)) for (let a = e; a < t.length; a++) _n(t[a], !1),
|
|
20444
|
-
else t != null && (_n(t, !1),
|
|
20443
|
+
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(t)) for (let a = e; a < t.length; a++) _n(t[a], !1), Dr(t[a]);
|
|
20444
|
+
else t != null && (_n(t, !1), Dr(t));
|
|
20445
20445
|
else _n(this, n);
|
|
20446
20446
|
}
|
|
20447
20447
|
const u1 = (n) => {
|
|
@@ -20456,7 +20456,7 @@ let d1 = class extends uc {
|
|
|
20456
20456
|
}
|
|
20457
20457
|
_$AO(r, e = !0) {
|
|
20458
20458
|
var t, i;
|
|
20459
|
-
r !== this.isConnected && (this.isConnected = r, r ? (t = this.reconnected) == null || t.call(this) : (i = this.disconnected) == null || i.call(this)), e && (_n(this, r),
|
|
20459
|
+
r !== this.isConnected && (this.isConnected = r, r ? (t = this.reconnected) == null || t.call(this) : (i = this.disconnected) == null || i.call(this)), e && (_n(this, r), Dr(this));
|
|
20460
20460
|
}
|
|
20461
20461
|
setValue(r) {
|
|
20462
20462
|
if (s1(this._$Ct)) this._$Ct._$AI(r, this);
|
|
@@ -20472,13 +20472,13 @@ let d1 = class extends uc {
|
|
|
20472
20472
|
};
|
|
20473
20473
|
const p1 = /* @__PURE__ */ new WeakMap();
|
|
20474
20474
|
let Gs = 0;
|
|
20475
|
-
const
|
|
20475
|
+
const ji = /* @__PURE__ */ new Map(), Ks = /* @__PURE__ */ new WeakSet(), Js = () => new Promise((n) => requestAnimationFrame(n)), rr = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], h1 = [{ opacity: 0 }], f1 = [{ opacity: 0 }, { opacity: 1 }], Zs = (n, r) => {
|
|
20476
20476
|
const e = n - r;
|
|
20477
20477
|
return e === 0 ? void 0 : e;
|
|
20478
20478
|
}, Ys = (n, r) => {
|
|
20479
20479
|
const e = n / r;
|
|
20480
20480
|
return e === 1 ? void 0 : e;
|
|
20481
|
-
},
|
|
20481
|
+
}, Hi = { left: (n, r) => {
|
|
20482
20482
|
const e = Zs(n, r);
|
|
20483
20483
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
20484
20484
|
}, top: (n, r) => {
|
|
@@ -20533,7 +20533,7 @@ class v1 extends d1 {
|
|
|
20533
20533
|
m() {
|
|
20534
20534
|
const r = {}, e = this.element.getBoundingClientRect(), t = getComputedStyle(this.element);
|
|
20535
20535
|
return this.options.properties.forEach((i) => {
|
|
20536
|
-
const a = e[i] ?? (
|
|
20536
|
+
const a = e[i] ?? (Hi[i] ? void 0 : t[i]), o = Number(a);
|
|
20537
20537
|
r[i] = isNaN(o) ? a + "" : o;
|
|
20538
20538
|
}), r;
|
|
20539
20539
|
}
|
|
@@ -20558,9 +20558,9 @@ class v1 extends d1 {
|
|
|
20558
20558
|
const { from: a, to: o } = this.N(this.A, i, e);
|
|
20559
20559
|
this.log("measured", [this.A, i, a, o]), r = this.calculateKeyframes(a, o);
|
|
20560
20560
|
} else {
|
|
20561
|
-
const a =
|
|
20561
|
+
const a = ji.get(this.options.inId);
|
|
20562
20562
|
if (a) {
|
|
20563
|
-
|
|
20563
|
+
ji.delete(this.options.inId);
|
|
20564
20564
|
const { from: o, to: s } = this.N(a, i, e);
|
|
20565
20565
|
r = this.calculateKeyframes(o, s), r = this.options.in ? [{ ...this.options.in[0], ...r[0] }, ...this.options.in.slice(1), r[1]] : r, Gs++, r.forEach((l) => l.zIndex = Gs);
|
|
20566
20566
|
} else this.options.in && (r = [...this.options.in, {}]);
|
|
@@ -20578,7 +20578,7 @@ class v1 extends d1 {
|
|
|
20578
20578
|
}
|
|
20579
20579
|
async disconnected() {
|
|
20580
20580
|
var e;
|
|
20581
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
20581
|
+
if (!this.h || (this.options.id !== void 0 && ji.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
20582
20582
|
if (this.prepare(), await Js(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
20583
20583
|
const t = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
20584
20584
|
if (this.i.insertBefore(this.element, t), this.options.stabilizeOut) {
|
|
@@ -20634,8 +20634,8 @@ class v1 extends d1 {
|
|
|
20634
20634
|
const s = {};
|
|
20635
20635
|
for (const l in e) {
|
|
20636
20636
|
const c = r[l], u = e[l];
|
|
20637
|
-
if (l in
|
|
20638
|
-
const d =
|
|
20637
|
+
if (l in Hi) {
|
|
20638
|
+
const d = Hi[l];
|
|
20639
20639
|
if (c === void 0 || u === void 0) continue;
|
|
20640
20640
|
const p = d(c, u);
|
|
20641
20641
|
p.transform !== void 0 && (s[l] = p.value, o = !0, i.transform = `${i.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(i, p.overrideFrom));
|
|
@@ -20666,62 +20666,62 @@ class v1 extends d1 {
|
|
|
20666
20666
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
20667
20667
|
}
|
|
20668
20668
|
}
|
|
20669
|
-
const
|
|
20669
|
+
const Ui = cc(v1);
|
|
20670
20670
|
var y1 = Object.defineProperty, b1 = Object.getOwnPropertyDescriptor, Dc = (n) => {
|
|
20671
20671
|
throw TypeError(n);
|
|
20672
20672
|
}, pt = (n, r, e, t) => {
|
|
20673
20673
|
for (var i = t > 1 ? void 0 : t ? b1(r, e) : r, a = n.length - 1, o; a >= 0; a--)
|
|
20674
20674
|
(o = n[a]) && (i = (t ? o(r, e, i) : o(i)) || i);
|
|
20675
20675
|
return t && i && y1(r, e, i), i;
|
|
20676
|
-
}, $c = (n, r, e) => r.has(n) || Dc("Cannot " + e),
|
|
20676
|
+
}, $c = (n, r, e) => r.has(n) || Dc("Cannot " + e), bt = (n, r, e) => ($c(n, r, "read from private field"), e ? e.call(n) : r.get(n)), kt = (n, r, e) => r.has(n) ? Dc("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), wt = (n, r, e, t) => ($c(n, r, "write to private field"), r.set(n, e), e), mr, gr, vr, yr, br, kr, wr;
|
|
20677
20677
|
let Ke = class extends tt {
|
|
20678
20678
|
constructor() {
|
|
20679
|
-
super(...arguments), this._chatElementRef = null,
|
|
20679
|
+
super(...arguments), this._chatElementRef = null, kt(this, mr, ""), kt(this, gr, !1), kt(this, vr, !1), kt(this, yr, !1), kt(this, br, typeof window < "u" ? zg(window.location.hostname) : "fr"), kt(this, kr, typeof window < "u" ? Hg({ country: this.country, cookies: document.cookie }) : "fr-FR"), kt(this, wr, !1);
|
|
20680
20680
|
}
|
|
20681
20681
|
get apiUrl() {
|
|
20682
|
-
return
|
|
20682
|
+
return bt(this, mr);
|
|
20683
20683
|
}
|
|
20684
20684
|
set apiUrl(n) {
|
|
20685
|
-
|
|
20685
|
+
wt(this, mr, n);
|
|
20686
20686
|
}
|
|
20687
20687
|
get opened() {
|
|
20688
|
-
return
|
|
20688
|
+
return bt(this, gr);
|
|
20689
20689
|
}
|
|
20690
20690
|
set opened(n) {
|
|
20691
|
-
|
|
20691
|
+
wt(this, gr, n);
|
|
20692
20692
|
}
|
|
20693
20693
|
get minimized() {
|
|
20694
|
-
return
|
|
20694
|
+
return bt(this, vr);
|
|
20695
20695
|
}
|
|
20696
20696
|
set minimized(n) {
|
|
20697
|
-
|
|
20697
|
+
wt(this, vr, n);
|
|
20698
20698
|
}
|
|
20699
20699
|
get sticky() {
|
|
20700
|
-
return
|
|
20700
|
+
return bt(this, yr);
|
|
20701
20701
|
}
|
|
20702
20702
|
set sticky(n) {
|
|
20703
|
-
|
|
20703
|
+
wt(this, yr, n);
|
|
20704
20704
|
}
|
|
20705
20705
|
get country() {
|
|
20706
|
-
return
|
|
20706
|
+
return bt(this, br);
|
|
20707
20707
|
}
|
|
20708
20708
|
set country(n) {
|
|
20709
|
-
|
|
20709
|
+
wt(this, br, n);
|
|
20710
20710
|
}
|
|
20711
20711
|
get language() {
|
|
20712
|
-
return
|
|
20712
|
+
return bt(this, kr);
|
|
20713
20713
|
}
|
|
20714
20714
|
set language(n) {
|
|
20715
|
-
|
|
20715
|
+
wt(this, kr, n);
|
|
20716
20716
|
}
|
|
20717
20717
|
get overlay() {
|
|
20718
|
-
return
|
|
20718
|
+
return bt(this, wr);
|
|
20719
20719
|
}
|
|
20720
20720
|
set overlay(n) {
|
|
20721
|
-
|
|
20721
|
+
wt(this, wr, n);
|
|
20722
20722
|
}
|
|
20723
20723
|
static getVersion() {
|
|
20724
|
-
return "LR Chatbot - 0.
|
|
20724
|
+
return "LR Chatbot - 0.12.0";
|
|
20725
20725
|
}
|
|
20726
20726
|
async performUpdate() {
|
|
20727
20727
|
return await this.initTranslations(), super.performUpdate();
|
|
@@ -20729,9 +20729,28 @@ let Ke = class extends tt {
|
|
|
20729
20729
|
firstUpdated() {
|
|
20730
20730
|
this.initChat();
|
|
20731
20731
|
}
|
|
20732
|
+
async getChatHistory(n) {
|
|
20733
|
+
const r = this._chatElementRef;
|
|
20734
|
+
if (n) {
|
|
20735
|
+
const t = await new Nr({
|
|
20736
|
+
baseURL: this.apiUrl,
|
|
20737
|
+
withCredentials: !0,
|
|
20738
|
+
method: "GET"
|
|
20739
|
+
}).chatbotConversationsGet(n);
|
|
20740
|
+
t.messages && (r.history = [
|
|
20741
|
+
...r == null ? void 0 : r.history,
|
|
20742
|
+
...t.messages.map((i) => ({
|
|
20743
|
+
role: i.sender === "system" ? "ai" : "user",
|
|
20744
|
+
text: i.message ?? ""
|
|
20745
|
+
}))
|
|
20746
|
+
]);
|
|
20747
|
+
}
|
|
20748
|
+
}
|
|
20732
20749
|
initChat() {
|
|
20733
|
-
var
|
|
20734
|
-
this._chatElementRef = (
|
|
20750
|
+
var r;
|
|
20751
|
+
this._chatElementRef = (r = this.shadowRoot) == null ? void 0 : r.getElementById("chat-element");
|
|
20752
|
+
const n = localStorage.getItem("conversation_id");
|
|
20753
|
+
this._chatElementRef && (this.setChatStyle(), this.setChatInitialMessages(), this.setChatTranslations(), this.getChatHistory(n ?? null), this.setChatConnection(n ?? null));
|
|
20735
20754
|
}
|
|
20736
20755
|
async initTranslations() {
|
|
20737
20756
|
const r = await new qg().getLanguageFallbacks(this.language);
|
|
@@ -20749,28 +20768,29 @@ let Ke = class extends tt {
|
|
|
20749
20768
|
setChatTranslations() {
|
|
20750
20769
|
const n = this._chatElementRef;
|
|
20751
20770
|
n && ye.isInitialized && (n.history = [
|
|
20752
|
-
...n
|
|
20771
|
+
...n.history,
|
|
20753
20772
|
{
|
|
20754
20773
|
role: "ai",
|
|
20755
|
-
html: `${
|
|
20774
|
+
html: `${yt("chatbot:introMessage", {
|
|
20756
20775
|
iconWhatsapp: new URL("data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.58207%208.33105L2.18501%209.815L3.66897%209.41795L3.93806%209.57361C4.54403%209.92414%205.24743%2010.125%206.00001%2010.125C8.27819%2010.125%2010.125%208.27817%2010.125%206C10.125%203.72183%208.27819%201.875%206.00001%201.875C3.72184%201.875%201.87501%203.72183%201.87501%206C1.87501%206.75259%202.07587%207.45599%202.42641%208.06196L2.58207%208.33105ZM1.125%2010.875L1.7772%208.4375C1.36241%207.72045%201.12501%206.88795%201.12501%206C1.12501%203.30761%203.30763%201.125%206.00001%201.125C8.6924%201.125%2010.875%203.30761%2010.875%206C10.875%208.69239%208.6924%2010.875%206.00001%2010.875C5.11206%2010.875%204.27956%2010.6376%203.56252%2010.2228L1.125%2010.875Z'%20fill='%2333CC33'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.7836%203.85705C4.69478%203.64767%204.59611%203.64259%204.5122%203.64259C4.43813%203.6375%204.35885%203.6375%204.27494%203.6375C4.19624%203.6375%204.06285%203.66801%203.94943%203.79574C3.83572%203.92316%203.52496%204.22437%203.52496%204.84174C3.52496%205.45941%203.95927%206.05644%204.01858%206.13809C4.07761%206.21975%204.85767%207.52598%206.09201%208.03149C7.1186%208.44994%207.32606%208.36829%207.54827%208.34256C7.7702%208.31714%208.2641%208.04166%208.36769%207.74553C8.46635%207.45479%208.46635%207.19965%208.43684%207.1485C8.40733%207.09765%208.32313%207.06684%208.20479%207.00044C8.08124%206.93942%207.48896%206.63313%207.37553%206.59215C7.26182%206.55147%207.18283%206.53113%207.10384%206.65347C7.02485%206.78119%206.7928%207.06176%206.71902%207.14342C6.64957%207.22508%206.57579%207.23524%206.45716%207.17393C6.3339%207.11291%205.94387%206.9801%205.47976%206.55147C5.11924%206.21945%204.87735%205.80638%204.80328%205.68404C4.73441%205.55632%204.79344%205.48992%204.85767%205.4286C4.91207%205.37266%204.98122%205.28084%205.04054%205.20935C5.09957%205.13756%205.11924%205.08163%205.1638%204.99997C5.20315%204.91831%205.18347%204.84174%205.15396%204.78072C5.12416%204.72448%204.8924%204.10711%204.7836%203.85705Z'%20fill='%2333CC33'/%3e%3c/svg%3e", import.meta.url).href
|
|
20757
20776
|
})}`
|
|
20758
20777
|
}
|
|
20759
20778
|
], n.textInput = {
|
|
20760
20779
|
...n.textInput,
|
|
20761
|
-
placeholder: { text:
|
|
20780
|
+
placeholder: { text: yt("chatbot:inputPlaceholder") }
|
|
20762
20781
|
});
|
|
20763
20782
|
}
|
|
20783
|
+
postUserMessage(n) {
|
|
20784
|
+
const r = this._chatElementRef, e = n.target.label;
|
|
20785
|
+
r.submitUserMessage({ text: e });
|
|
20786
|
+
}
|
|
20764
20787
|
setChatStyle() {
|
|
20765
20788
|
const n = this._chatElementRef;
|
|
20766
20789
|
n.avatars = vt.avatars, n.chatStyle = vt.chatStyle, n.messageStyles = vt.messageStyles, n.textInput = vt.textInput, n.submitButtonStyles = vt.submitButtonStyles, n.inputAreaStyle = vt.inputAreaStyle, n.htmlClassUtilities = {
|
|
20767
20790
|
...vt.htmlClassUtilities,
|
|
20768
20791
|
test: {
|
|
20769
20792
|
events: {
|
|
20770
|
-
click: (r) =>
|
|
20771
|
-
const e = this._chatElementRef, t = r.target.label;
|
|
20772
|
-
e.submitUserMessage({ text: t });
|
|
20773
|
-
}
|
|
20793
|
+
click: (r) => this.postUserMessage(r)
|
|
20774
20794
|
}
|
|
20775
20795
|
}
|
|
20776
20796
|
};
|
|
@@ -20780,43 +20800,45 @@ let Ke = class extends tt {
|
|
|
20780
20800
|
n.history = [
|
|
20781
20801
|
{
|
|
20782
20802
|
role: "lr",
|
|
20783
|
-
html:
|
|
20803
|
+
html: yt("chatbot:legalInformation")
|
|
20784
20804
|
}
|
|
20785
20805
|
];
|
|
20786
20806
|
}
|
|
20787
|
-
setChatConnection() {
|
|
20788
|
-
const
|
|
20789
|
-
|
|
20790
|
-
handler: async (
|
|
20807
|
+
setChatConnection(n) {
|
|
20808
|
+
const r = this._chatElementRef;
|
|
20809
|
+
r.connect = {
|
|
20810
|
+
handler: async (e, t) => {
|
|
20791
20811
|
try {
|
|
20792
|
-
const
|
|
20812
|
+
const i = e.messages[0].text, a = new Nr({
|
|
20793
20813
|
baseURL: this.apiUrl,
|
|
20794
20814
|
withCredentials: !0,
|
|
20795
20815
|
method: "POST"
|
|
20796
|
-
})
|
|
20816
|
+
}), o = {
|
|
20797
20817
|
language: this.language.split("-")[0].toLocaleUpperCase(),
|
|
20798
|
-
question:
|
|
20818
|
+
question: i,
|
|
20799
20819
|
source: {
|
|
20800
20820
|
platform: "Web",
|
|
20801
20821
|
channel: "Channel"
|
|
20802
20822
|
},
|
|
20803
20823
|
context: []
|
|
20804
|
-
}
|
|
20805
|
-
|
|
20824
|
+
};
|
|
20825
|
+
n && (o.conversation_id = n);
|
|
20826
|
+
const s = await a.chatbotConversationsPost(o);
|
|
20827
|
+
if (!s.message)
|
|
20806
20828
|
throw Error();
|
|
20807
|
-
|
|
20829
|
+
s.conversation_id && n === null && (localStorage.setItem("conversation_id", s.conversation_id), n = s.conversation_id), t.onResponse({ text: s.message, role: "ai" });
|
|
20808
20830
|
} catch {
|
|
20809
|
-
|
|
20810
|
-
html: `${
|
|
20831
|
+
t.onResponse({
|
|
20832
|
+
html: `${yt("chatbot:errorMessage", {
|
|
20811
20833
|
iconWhatsapp: new URL("data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.58207%208.33105L2.18501%209.815L3.66897%209.41795L3.93806%209.57361C4.54403%209.92414%205.24743%2010.125%206.00001%2010.125C8.27819%2010.125%2010.125%208.27817%2010.125%206C10.125%203.72183%208.27819%201.875%206.00001%201.875C3.72184%201.875%201.87501%203.72183%201.87501%206C1.87501%206.75259%202.07587%207.45599%202.42641%208.06196L2.58207%208.33105ZM1.125%2010.875L1.7772%208.4375C1.36241%207.72045%201.12501%206.88795%201.12501%206C1.12501%203.30761%203.30763%201.125%206.00001%201.125C8.6924%201.125%2010.875%203.30761%2010.875%206C10.875%208.69239%208.6924%2010.875%206.00001%2010.875C5.11206%2010.875%204.27956%2010.6376%203.56252%2010.2228L1.125%2010.875Z'%20fill='%2333CC33'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.7836%203.85705C4.69478%203.64767%204.59611%203.64259%204.5122%203.64259C4.43813%203.6375%204.35885%203.6375%204.27494%203.6375C4.19624%203.6375%204.06285%203.66801%203.94943%203.79574C3.83572%203.92316%203.52496%204.22437%203.52496%204.84174C3.52496%205.45941%203.95927%206.05644%204.01858%206.13809C4.07761%206.21975%204.85767%207.52598%206.09201%208.03149C7.1186%208.44994%207.32606%208.36829%207.54827%208.34256C7.7702%208.31714%208.2641%208.04166%208.36769%207.74553C8.46635%207.45479%208.46635%207.19965%208.43684%207.1485C8.40733%207.09765%208.32313%207.06684%208.20479%207.00044C8.08124%206.93942%207.48896%206.63313%207.37553%206.59215C7.26182%206.55147%207.18283%206.53113%207.10384%206.65347C7.02485%206.78119%206.7928%207.06176%206.71902%207.14342C6.64957%207.22508%206.57579%207.23524%206.45716%207.17393C6.3339%207.11291%205.94387%206.9801%205.47976%206.55147C5.11924%206.21945%204.87735%205.80638%204.80328%205.68404C4.73441%205.55632%204.79344%205.48992%204.85767%205.4286C4.91207%205.37266%204.98122%205.28084%205.04054%205.20935C5.09957%205.13756%205.11924%205.08163%205.1638%204.99997C5.20315%204.91831%205.18347%204.84174%205.15396%204.78072C5.12416%204.72448%204.8924%204.10711%204.7836%203.85705Z'%20fill='%2333CC33'/%3e%3c/svg%3e", import.meta.url).href
|
|
20812
20834
|
})}`
|
|
20813
20835
|
});
|
|
20814
20836
|
}
|
|
20815
20837
|
}
|
|
20816
|
-
},
|
|
20838
|
+
}, r.responseInterceptor = async (e) => e;
|
|
20817
20839
|
}
|
|
20818
20840
|
close() {
|
|
20819
|
-
this.opened = !1, this.minimized = !1;
|
|
20841
|
+
localStorage.removeItem("conversation_id"), this.opened = !1, this.minimized = !1;
|
|
20820
20842
|
}
|
|
20821
20843
|
minimize() {
|
|
20822
20844
|
this.minimized = !0, this.opened = !1;
|
|
@@ -20837,13 +20859,13 @@ let Ke = class extends tt {
|
|
|
20837
20859
|
aria-label="chat window"
|
|
20838
20860
|
role="region"
|
|
20839
20861
|
part="wrapper"
|
|
20840
|
-
${
|
|
20862
|
+
${Ui({
|
|
20841
20863
|
in: rr,
|
|
20842
20864
|
out: rr
|
|
20843
20865
|
})}
|
|
20844
20866
|
>
|
|
20845
20867
|
<div id="chat-wrapper-menu" part="menu">
|
|
20846
|
-
<span id="chat-wrapper-menu-title">${
|
|
20868
|
+
<span id="chat-wrapper-menu-title">${yt("chatbot:title")}</span>
|
|
20847
20869
|
<div id="chat-wrapper-menu-button-container">
|
|
20848
20870
|
<button
|
|
20849
20871
|
class="chat-wrapper-menu-button"
|
|
@@ -20895,7 +20917,7 @@ let Ke = class extends tt {
|
|
|
20895
20917
|
</div>
|
|
20896
20918
|
${this.overlay ? wn`
|
|
20897
20919
|
<div
|
|
20898
|
-
${
|
|
20920
|
+
${Ui({
|
|
20899
20921
|
in: f1,
|
|
20900
20922
|
out: h1
|
|
20901
20923
|
})}
|
|
@@ -20909,11 +20931,15 @@ let Ke = class extends tt {
|
|
|
20909
20931
|
<div>
|
|
20910
20932
|
<lr-button
|
|
20911
20933
|
@click=${() => this.overlay = !1}
|
|
20912
|
-
label
|
|
20934
|
+
label=${yt("chatbot:returnToConversation")}
|
|
20913
20935
|
variant="secondary"
|
|
20914
20936
|
size="small"
|
|
20915
20937
|
></lr-button>
|
|
20916
|
-
<lr-button
|
|
20938
|
+
<lr-button
|
|
20939
|
+
size="small"
|
|
20940
|
+
@click=${this.close}
|
|
20941
|
+
label=${yt("chatbot:quitConversation")}
|
|
20942
|
+
></lr-button>
|
|
20917
20943
|
</div>
|
|
20918
20944
|
</div>
|
|
20919
20945
|
` : de}
|
|
@@ -20930,7 +20956,7 @@ let Ke = class extends tt {
|
|
|
20930
20956
|
aria-expanded=${!this.minimized}
|
|
20931
20957
|
data-minimized="${this.minimized}"
|
|
20932
20958
|
part="wrapper-minimized"
|
|
20933
|
-
${
|
|
20959
|
+
${Ui({
|
|
20934
20960
|
in: rr,
|
|
20935
20961
|
out: rr
|
|
20936
20962
|
})}
|
|
@@ -20985,7 +21011,7 @@ pt([
|
|
|
20985
21011
|
pe({ type: Boolean })
|
|
20986
21012
|
], Ke.prototype, "overlay", 1);
|
|
20987
21013
|
Ke = pt([
|
|
20988
|
-
|
|
21014
|
+
ni("lr-chatbot")
|
|
20989
21015
|
], Ke);
|
|
20990
21016
|
export {
|
|
20991
21017
|
Ke as Chatbot
|