lr-chatbot 0.31.3 → 0.31.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +443 -445
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function ch(t) {
|
|
|
12
12
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
13
13
|
}
|
|
14
14
|
function uh(t) {
|
|
15
|
-
if (Array.isArray(t)) return
|
|
15
|
+
if (Array.isArray(t)) return Ja(t);
|
|
16
16
|
}
|
|
17
17
|
function dh(t, r) {
|
|
18
18
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
@@ -48,19 +48,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48
48
|
}
|
|
49
49
|
function Xc(t, r) {
|
|
50
50
|
if (t) {
|
|
51
|
-
if (typeof t == "string") return
|
|
51
|
+
if (typeof t == "string") return Ja(t, r);
|
|
52
52
|
var e = {}.toString.call(t).slice(8, -1);
|
|
53
|
-
return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ?
|
|
53
|
+
return e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set" ? Array.from(t) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? Ja(t, r) : void 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ja(t, r) {
|
|
57
57
|
(r == null || r > t.length) && (r = t.length);
|
|
58
58
|
for (var e = 0, n = Array(r); e < r; e++) n[e] = t[e];
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Za(t) {
|
|
62
62
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
63
|
-
return
|
|
63
|
+
return Za = function(n) {
|
|
64
64
|
if (n === null || !ph(n)) return n;
|
|
65
65
|
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
66
66
|
if (r !== void 0) {
|
|
@@ -71,7 +71,7 @@ function Ja(t) {
|
|
|
71
71
|
return hh(n, arguments, ar(this).constructor);
|
|
72
72
|
}
|
|
73
73
|
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), sr(i, n);
|
|
74
|
-
},
|
|
74
|
+
}, Za(t);
|
|
75
75
|
}
|
|
76
76
|
function hh(t, r, e) {
|
|
77
77
|
if (xs()) return Reflect.construct.apply(null, arguments);
|
|
@@ -540,7 +540,7 @@ var gh = /* @__PURE__ */ function() {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}]);
|
|
543
|
-
}(),
|
|
543
|
+
}(), Ya = /* @__PURE__ */ function() {
|
|
544
544
|
function t() {
|
|
545
545
|
_(this, t);
|
|
546
546
|
}
|
|
@@ -559,8 +559,8 @@ var gh = /* @__PURE__ */ function() {
|
|
|
559
559
|
}
|
|
560
560
|
}]);
|
|
561
561
|
}();
|
|
562
|
-
|
|
563
|
-
var eu =
|
|
562
|
+
Ya.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", Ya.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
563
|
+
var eu = Ya, tu = /* @__PURE__ */ function() {
|
|
564
564
|
function t() {
|
|
565
565
|
_(this, t);
|
|
566
566
|
}
|
|
@@ -606,7 +606,7 @@ tu.DEFAULT_COMPONENT_STYLE = {
|
|
|
606
606
|
// this is also causing the chat to squeeze when there is no space
|
|
607
607
|
overflow: "hidden"
|
|
608
608
|
};
|
|
609
|
-
var
|
|
609
|
+
var da = tu, ke = /* @__PURE__ */ function(t) {
|
|
610
610
|
return t.ESCAPE = "Escape", t.ENTER = "Enter", t.TAB = "Tab", t.ARROW_UP = "ArrowUp", t.ARROW_DOWN = "ArrowDown", t.ARROW_RIGHT = "ArrowRight", t.ARROW_LEFT = "ArrowLeft", t.BACKSPACE = "Backspace", t.DELETE = "Delete", t.META = "Meta", t.CONTROL = "Control", t;
|
|
611
611
|
}(ke || {}), $r, bn = ($r = /* @__PURE__ */ S(function t() {
|
|
612
612
|
_(this, t);
|
|
@@ -660,7 +660,7 @@ var yh = nu, bh = /* @__PURE__ */ function() {
|
|
|
660
660
|
a && ((i = document.execCommand) == null || i.call(document, "insertText", !1, a));
|
|
661
661
|
}
|
|
662
662
|
}]);
|
|
663
|
-
}(),
|
|
663
|
+
}(), Xa = /* @__PURE__ */ function() {
|
|
664
664
|
function t(r, e, n) {
|
|
665
665
|
var i = this;
|
|
666
666
|
_(this, t);
|
|
@@ -757,8 +757,8 @@ var yh = nu, bh = /* @__PURE__ */ function() {
|
|
|
757
757
|
}
|
|
758
758
|
}]);
|
|
759
759
|
}();
|
|
760
|
-
|
|
761
|
-
var or =
|
|
760
|
+
Xa.TEXT_INPUT_ID = "text-input", Xa.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
761
|
+
var or = Xa, ru = /* @__PURE__ */ function() {
|
|
762
762
|
function t() {
|
|
763
763
|
_(this, t);
|
|
764
764
|
}
|
|
@@ -1170,7 +1170,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1170
1170
|
e.addEventListener("mouseenter", t.mouseEnter.bind(this, e, n)), e.addEventListener("mouseleave", t.mouseLeave.bind(this, e, n)), e.addEventListener("mousedown", t.mouseDown.bind(this, e, n)), e.addEventListener("mouseup", t.mouseUp.bind(this, e, n));
|
|
1171
1171
|
}
|
|
1172
1172
|
}]);
|
|
1173
|
-
}(), Eh = "deep-chat-temporary-message", Ah = "deep-chat-suggestion-button",
|
|
1173
|
+
}(), Eh = "deep-chat-temporary-message", Ah = "deep-chat-suggestion-button", Qa = {
|
|
1174
1174
|
"deep-chat-button": {
|
|
1175
1175
|
styles: {
|
|
1176
1176
|
default: {
|
|
@@ -1190,7 +1190,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
}, To = Object.keys(
|
|
1193
|
+
}, To = Object.keys(Qa), li = /* @__PURE__ */ function() {
|
|
1194
1194
|
function t() {
|
|
1195
1195
|
_(this, t);
|
|
1196
1196
|
}
|
|
@@ -1222,7 +1222,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1222
1222
|
}, {
|
|
1223
1223
|
key: "applyEvents",
|
|
1224
1224
|
value: function(e, n) {
|
|
1225
|
-
var i =
|
|
1225
|
+
var i = Qa[n].events;
|
|
1226
1226
|
Object.keys(i || []).forEach(function(a) {
|
|
1227
1227
|
e.addEventListener(a, i == null ? void 0 : i[a]);
|
|
1228
1228
|
});
|
|
@@ -1233,7 +1233,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1233
1233
|
var a = Array.from(n.classList).reduce(function(c, u) {
|
|
1234
1234
|
var d, h = (d = e[u]) == null ? void 0 : d.styles;
|
|
1235
1235
|
return h && e[u].styles && c.push(h), c;
|
|
1236
|
-
}, []), s =
|
|
1236
|
+
}, []), s = Qa[i].styles;
|
|
1237
1237
|
if (s) {
|
|
1238
1238
|
var o = JSON.parse(JSON.stringify(s));
|
|
1239
1239
|
o.default && Se.overwriteDefaultWithAlreadyApplied(o, n), a.unshift(o);
|
|
@@ -1312,7 +1312,7 @@ var Z = qr, lu = /* @__PURE__ */ function() {
|
|
|
1312
1312
|
}), i;
|
|
1313
1313
|
}
|
|
1314
1314
|
}]);
|
|
1315
|
-
}(),
|
|
1315
|
+
}(), es = /* @__PURE__ */ function() {
|
|
1316
1316
|
function t() {
|
|
1317
1317
|
_(this, t);
|
|
1318
1318
|
}
|
|
@@ -1373,7 +1373,7 @@ function lr(t) {
|
|
|
1373
1373
|
function du(t) {
|
|
1374
1374
|
return !(t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534 || t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t >= 127 && t <= 159 || t > 1114111);
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function ts(t) {
|
|
1377
1377
|
if (t > 65535) {
|
|
1378
1378
|
t -= 65536;
|
|
1379
1379
|
var r = 55296 + (t >> 10), e = 56320 + (t & 1023);
|
|
@@ -1384,7 +1384,7 @@ function es(t) {
|
|
|
1384
1384
|
var Ih = /&([a-z#][a-z0-9]{1,31});/gi, Lh = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
|
|
1385
1385
|
function Mh(t, r) {
|
|
1386
1386
|
var e = 0, n = cu(r);
|
|
1387
|
-
return r !== n ? n : r.charCodeAt(0) === 35 && Lh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), du(e)) ?
|
|
1387
|
+
return r !== n ? n : r.charCodeAt(0) === 35 && Lh.test(r) && (e = r[1].toLowerCase() === "x" ? parseInt(r.slice(2), 16) : parseInt(r.slice(1), 10), du(e)) ? ts(e) : t;
|
|
1388
1388
|
}
|
|
1389
1389
|
function qt(t) {
|
|
1390
1390
|
return t.indexOf("&") < 0 ? t : t.replace(Ih, Mh);
|
|
@@ -1777,7 +1777,7 @@ function jh(t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ns(t) {
|
|
1781
1781
|
var r = qt(t);
|
|
1782
1782
|
try {
|
|
1783
1783
|
r = decodeURI(r);
|
|
@@ -1790,7 +1790,7 @@ function pu(t, r) {
|
|
|
1790
1790
|
if (t.src.charCodeAt(r) === 60) {
|
|
1791
1791
|
for (r++; r < s; ) {
|
|
1792
1792
|
if (e = t.src.charCodeAt(r), e === 10) return !1;
|
|
1793
|
-
if (e === 62) return i =
|
|
1793
|
+
if (e === 62) return i = ns(lr(t.src.slice(a + 1, r))), t.parser.validateLink(i) ? (t.pos = r + 1, t.linkContent = i, !0) : !1;
|
|
1794
1794
|
if (e === 92 && r + 1 < s) {
|
|
1795
1795
|
r += 2;
|
|
1796
1796
|
continue;
|
|
@@ -1895,17 +1895,17 @@ function qh(t) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
var Ro = `
|
|
1897
1897
|
()[]'".,!?-`;
|
|
1898
|
-
function
|
|
1898
|
+
function ha(t) {
|
|
1899
1899
|
return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
|
|
1900
1900
|
}
|
|
1901
1901
|
function Vh(t) {
|
|
1902
1902
|
var r, e, n, i, a, s, o, l, c, u, d, h, p = t.tokens;
|
|
1903
1903
|
if (t.env.abbreviations) {
|
|
1904
|
-
for (t.env.abbrRegExp || (h = "(^|[" + Ro.split("").map(
|
|
1904
|
+
for (t.env.abbrRegExp || (h = "(^|[" + Ro.split("").map(ha).join("") + "])(" + Object.keys(t.env.abbreviations).map(function(f) {
|
|
1905
1905
|
return f.substr(1);
|
|
1906
1906
|
}).sort(function(f, g) {
|
|
1907
1907
|
return g.length - f.length;
|
|
1908
|
-
}).map(
|
|
1908
|
+
}).map(ha).join("|") + ")($|[" + Ro.split("").map(ha).join("") + "])", t.env.abbrRegExp = new RegExp(h, "g")), u = t.env.abbrRegExp, e = 0, n = p.length; e < n; e++) if (p[e].type === "inline") {
|
|
1909
1909
|
for (i = p[e].children, r = i.length - 1; r >= 0; r--) if (a = i[r], a.type === "text") {
|
|
1910
1910
|
for (l = 0, s = a.content, u.lastIndex = 0, c = a.level, o = []; d = u.exec(s); ) u.lastIndex > l && o.push({
|
|
1911
1911
|
type: "text",
|
|
@@ -1985,10 +1985,10 @@ function Qh(t) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1988
|
+
var pa = [["block", Dh], ["abbr", jh], ["references", Uh], ["inline", zh], ["footnote_tail", qh], ["abbr2", Vh], ["replacements", Zh], ["smartquotes", Qh]];
|
|
1989
1989
|
function gu() {
|
|
1990
1990
|
this.options = {}, this.ruler = new He();
|
|
1991
|
-
for (var t = 0; t <
|
|
1991
|
+
for (var t = 0; t < pa.length; t++) this.ruler.push(pa[t][0], pa[t][1]);
|
|
1992
1992
|
}
|
|
1993
1993
|
gu.prototype.process = function(t) {
|
|
1994
1994
|
var r, e, n;
|
|
@@ -2254,13 +2254,13 @@ function hp(t, r, e, n) {
|
|
|
2254
2254
|
content: t.getLines(r, s, 0, !0)
|
|
2255
2255
|
}), !0;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function fa(t, r) {
|
|
2258
2258
|
var e = t.bMarks[r] + t.blkIndent, n = t.eMarks[r];
|
|
2259
2259
|
return t.src.substr(e, n - e);
|
|
2260
2260
|
}
|
|
2261
2261
|
function pp(t, r, e, n) {
|
|
2262
2262
|
var i, a, s, o, l, c, u, d, h, p, f;
|
|
2263
|
-
if (r + 2 > e || (l = r + 1, t.tShift[l] < t.blkIndent) || (s = t.bMarks[l] + t.tShift[l], s >= t.eMarks[l]) || (i = t.src.charCodeAt(s), i !== 124 && i !== 45 && i !== 58) || (a =
|
|
2263
|
+
if (r + 2 > e || (l = r + 1, t.tShift[l] < t.blkIndent) || (s = t.bMarks[l] + t.tShift[l], s >= t.eMarks[l]) || (i = t.src.charCodeAt(s), i !== 124 && i !== 45 && i !== 58) || (a = fa(t, r + 1), !/^[-:| ]+$/.test(a)) || (c = a.split("|"), c <= 2)) return !1;
|
|
2264
2264
|
for (d = [], o = 0; o < c.length; o++) {
|
|
2265
2265
|
if (h = c[o].trim(), !h) {
|
|
2266
2266
|
if (o === 0 || o === c.length - 1) continue;
|
|
@@ -2269,7 +2269,7 @@ function pp(t, r, e, n) {
|
|
|
2269
2269
|
if (!/^:?-+:?$/.test(h)) return !1;
|
|
2270
2270
|
h.charCodeAt(h.length - 1) === 58 ? d.push(h.charCodeAt(0) === 58 ? "center" : "right") : h.charCodeAt(0) === 58 ? d.push("left") : d.push("");
|
|
2271
2271
|
}
|
|
2272
|
-
if (a =
|
|
2272
|
+
if (a = fa(t, r).trim(), a.indexOf("|") === -1 || (c = a.replace(/^\||\|$/g, "").split("|"), d.length !== c.length)) return !1;
|
|
2273
2273
|
if (n) return !0;
|
|
2274
2274
|
for (t.tokens.push({
|
|
2275
2275
|
type: "table_open",
|
|
@@ -2308,7 +2308,7 @@ function pp(t, r, e, n) {
|
|
|
2308
2308
|
type: "tbody_open",
|
|
2309
2309
|
lines: f = [r + 2, 0],
|
|
2310
2310
|
level: t.level++
|
|
2311
|
-
}), l = r + 2; l < e && !(t.tShift[l] < t.blkIndent || (a =
|
|
2311
|
+
}), l = r + 2; l < e && !(t.tShift[l] < t.blkIndent || (a = fa(t, l).trim(), a.indexOf("|") === -1)); l++) {
|
|
2312
2312
|
for (c = a.replace(/^\||\|$/g, "").split("|"), t.tokens.push({
|
|
2313
2313
|
type: "tr_open",
|
|
2314
2314
|
level: t.level++
|
|
@@ -2744,7 +2744,7 @@ function $p(t, r) {
|
|
|
2744
2744
|
var Fp = ["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"], Np = /^<([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])?)*)>/, Dp = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
|
|
2745
2745
|
function Bp(t, r) {
|
|
2746
2746
|
var e, n, i, a, s, o = t.pos;
|
|
2747
|
-
return t.src.charCodeAt(o) !== 60 || (e = t.src.slice(o), e.indexOf(">") < 0) ? !1 : (n = e.match(Dp), n ? Fp.indexOf(n[1].toLowerCase()) < 0 || (a = n[0].slice(1, -1), s =
|
|
2747
|
+
return t.src.charCodeAt(o) !== 60 || (e = t.src.slice(o), e.indexOf(">") < 0) ? !1 : (n = e.match(Dp), n ? Fp.indexOf(n[1].toLowerCase()) < 0 || (a = n[0].slice(1, -1), s = ns(a), !t.parser.validateLink(a)) ? !1 : (r || (t.push({
|
|
2748
2748
|
type: "link_open",
|
|
2749
2749
|
href: s,
|
|
2750
2750
|
level: t.level
|
|
@@ -2755,7 +2755,7 @@ function Bp(t, r) {
|
|
|
2755
2755
|
}), t.push({
|
|
2756
2756
|
type: "link_close",
|
|
2757
2757
|
level: t.level
|
|
2758
|
-
})), t.pos += n[0].length, !0) : (i = e.match(Np), i ? (a = i[0].slice(1, -1), s =
|
|
2758
|
+
})), t.pos += n[0].length, !0) : (i = e.match(Np), i ? (a = i[0].slice(1, -1), s = ns("mailto:" + a), t.parser.validateLink(s) ? (r || (t.push({
|
|
2759
2759
|
type: "link_open",
|
|
2760
2760
|
href: s,
|
|
2761
2761
|
level: t.level
|
|
@@ -2792,7 +2792,7 @@ function rf(t, r) {
|
|
|
2792
2792
|
if (t.src.charCodeAt(a) !== 38) return !1;
|
|
2793
2793
|
if (a + 1 < s) {
|
|
2794
2794
|
if (e = t.src.charCodeAt(a + 1), e === 35) {
|
|
2795
|
-
if (i = t.src.slice(a).match(tf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += du(n) ?
|
|
2795
|
+
if (i = t.src.slice(a).match(tf), i) return r || (n = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += du(n) ? ts(n) : ts(65533)), t.pos += i[0].length, !0;
|
|
2796
2796
|
} else if (i = t.src.slice(a).match(nf), i) {
|
|
2797
2797
|
var o = cu(i[1]);
|
|
2798
2798
|
if (i[1] !== o) return r || (t.pending += o), t.pos += i[0].length, !0;
|
|
@@ -2800,10 +2800,10 @@ function rf(t, r) {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
return r || (t.pending += "&"), t.pos++, !0;
|
|
2802
2802
|
}
|
|
2803
|
-
var
|
|
2803
|
+
var ma = [["text", kp], ["newline", _p], ["escape", Sp], ["backticks", Cp], ["del", xp], ["ins", Ep], ["mark", Ap], ["emphasis", Tp], ["sub", Op], ["sup", Lp], ["links", Mp], ["footnote_inline", Pp], ["footnote_ref", $p], ["autolink", Bp], ["htmltag", ef], ["entity", rf]];
|
|
2804
2804
|
function xi() {
|
|
2805
2805
|
this.ruler = new He();
|
|
2806
|
-
for (var t = 0; t <
|
|
2806
|
+
for (var t = 0; t < ma.length; t++) this.ruler.push(ma[t][0], ma[t][1]);
|
|
2807
2807
|
this.validateLink = af;
|
|
2808
2808
|
}
|
|
2809
2809
|
xi.prototype.skipToken = function(t) {
|
|
@@ -2986,7 +2986,7 @@ mt.prototype.parseInline = function(t, r) {
|
|
|
2986
2986
|
mt.prototype.renderInline = function(t, r) {
|
|
2987
2987
|
return r = r || {}, this.renderer.render(this.parseInline(t, r), this.options, r);
|
|
2988
2988
|
};
|
|
2989
|
-
var
|
|
2989
|
+
var rs = /* @__PURE__ */ function() {
|
|
2990
2990
|
function t() {
|
|
2991
2991
|
_(this, t);
|
|
2992
2992
|
}
|
|
@@ -3214,7 +3214,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3214
3214
|
}(), wu = /* @__PURE__ */ function() {
|
|
3215
3215
|
function t(r) {
|
|
3216
3216
|
var e = this;
|
|
3217
|
-
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable =
|
|
3217
|
+
_(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = r.messageStyles, this._remarkable = rs.createNew(), this._avatars = r.avatars, this._names = r.names, this._onMessage = ci.onMessage.bind(this, r), r.htmlClassUtilities && (this.htmlClassUtilities = r.htmlClassUtilities), setTimeout(function() {
|
|
3218
3218
|
e.submitUserMessage = r.submitUserMessage;
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3323,7 +3323,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3323
3323
|
key: "refreshTextMessages",
|
|
3324
3324
|
value: function() {
|
|
3325
3325
|
var e = this;
|
|
3326
|
-
this._remarkable =
|
|
3326
|
+
this._remarkable = rs.createNew(), this.textElementsToText.forEach(function(n) {
|
|
3327
3327
|
e.renderText(n[0].bubbleElement, n[1]);
|
|
3328
3328
|
});
|
|
3329
3329
|
}
|
|
@@ -3359,7 +3359,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3359
3359
|
return n && (l.text = n), i && (l.files = i), a && (l.html = a), !n && !i && !a && (l.text = ""), s && (l._sessionId = s), l;
|
|
3360
3360
|
}
|
|
3361
3361
|
}]);
|
|
3362
|
-
}(),
|
|
3362
|
+
}(), is = /* @__PURE__ */ function() {
|
|
3363
3363
|
function t(r) {
|
|
3364
3364
|
_(this, t), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = r;
|
|
3365
3365
|
}
|
|
@@ -3382,7 +3382,7 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3382
3382
|
key: "setInitialState",
|
|
3383
3383
|
value: function(e, n, i) {
|
|
3384
3384
|
var a;
|
|
3385
|
-
this._streamType = e, (a = i) !== null && a !== void 0 || (i = Z.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) :
|
|
3385
|
+
this._streamType = e, (a = i) !== null && a !== void 0 || (i = Z.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(n, i) : es.add(this._messages, n, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(t.MESSAGE_CLASS), this._streamedContent = n, this._activeMessageRole = i, this._message = Es({
|
|
3386
3386
|
role: this._activeMessageRole
|
|
3387
3387
|
}, e, this._streamedContent), this._messages.messages.push(this._message);
|
|
3388
3388
|
}
|
|
@@ -3452,8 +3452,8 @@ var Pe = bu, ci = /* @__PURE__ */ function() {
|
|
|
3452
3452
|
}()
|
|
3453
3453
|
}]);
|
|
3454
3454
|
}();
|
|
3455
|
-
|
|
3456
|
-
var kt =
|
|
3455
|
+
is.MESSAGE_CLASS = "streamed-message", is.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3456
|
+
var kt = is, ku = /* @__PURE__ */ function() {
|
|
3457
3457
|
function t() {
|
|
3458
3458
|
_(this, t);
|
|
3459
3459
|
}
|
|
@@ -3571,10 +3571,10 @@ var kt = rs, ku = /* @__PURE__ */ function() {
|
|
|
3571
3571
|
ku.CONTENT_TYPE = "Content-Type";
|
|
3572
3572
|
var X = ku;
|
|
3573
3573
|
function uf(t, r) {
|
|
3574
|
-
return
|
|
3574
|
+
return as.apply(this, arguments);
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3576
|
+
function as() {
|
|
3577
|
+
return as = x(/* @__PURE__ */ m().mark(function t(r, e) {
|
|
3578
3578
|
var n, i;
|
|
3579
3579
|
return m().wrap(function(s) {
|
|
3580
3580
|
for (; ; ) switch (s.prev = s.next) {
|
|
@@ -3596,7 +3596,7 @@ function is() {
|
|
|
3596
3596
|
return s.stop();
|
|
3597
3597
|
}
|
|
3598
3598
|
}, t);
|
|
3599
|
-
})),
|
|
3599
|
+
})), as.apply(this, arguments);
|
|
3600
3600
|
}
|
|
3601
3601
|
function df(t) {
|
|
3602
3602
|
var r, e, n, i = !1;
|
|
@@ -3662,12 +3662,12 @@ var ff = function(r, e) {
|
|
|
3662
3662
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (n[i] = r[i]);
|
|
3663
3663
|
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]) && (n[i[a]] = r[i[a]]);
|
|
3664
3664
|
return n;
|
|
3665
|
-
},
|
|
3665
|
+
}, ss = "text/event-stream", mf = 1e3, Bo = "last-event-id";
|
|
3666
3666
|
function gf(t, r) {
|
|
3667
3667
|
var e = r.signal, n = r.headers, i = r.onopen, a = r.onmessage, s = r.onclose, o = r.onerror, l = r.openWhenHidden, c = r.fetch, u = ff(r, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
|
|
3668
3668
|
return new Promise(function(d, h) {
|
|
3669
3669
|
var p = Object.assign({}, n);
|
|
3670
|
-
p.accept || (p.accept =
|
|
3670
|
+
p.accept || (p.accept = ss);
|
|
3671
3671
|
var f;
|
|
3672
3672
|
function g() {
|
|
3673
3673
|
f.abort(), document.hidden || R();
|
|
@@ -3723,7 +3723,7 @@ function gf(t, r) {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
function vf(t) {
|
|
3725
3725
|
var r = t.headers.get("content-type");
|
|
3726
|
-
if (!(r != null && r.startsWith(
|
|
3726
|
+
if (!(r != null && r.startsWith(ss))) throw new Error("Expected content-type to be ".concat(ss, ", Actual: ").concat(r));
|
|
3727
3727
|
}
|
|
3728
3728
|
var we = /* @__PURE__ */ function() {
|
|
3729
3729
|
function t() {
|
|
@@ -4669,7 +4669,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4669
4669
|
key: "set",
|
|
4670
4670
|
value: function(e, n, i) {
|
|
4671
4671
|
t.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), t.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
|
|
4672
|
-
var a =
|
|
4672
|
+
var a = rs.createNew();
|
|
4673
4673
|
t.processImagesConfig(n, a, e.images, i == null ? void 0 : i.images), t.processCamera(n, a, e.camera, e.images), t.processGifConfig(n, a, e.gifs, i == null ? void 0 : i.gifs), t.processAudioConfig(n, a, e.audio, i == null ? void 0 : i.audio), t.processMicrophone(n, a, e.microphone, e.audio), t.processMixedFiles(n, a, e.mixedFiles);
|
|
4674
4674
|
}
|
|
4675
4675
|
}]);
|
|
@@ -4929,7 +4929,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4929
4929
|
e._propUpdated_ = !0, e._waitingToRender_ || (e._waitingToRender_ = !0, t.waitForPropertiesToBeUpdatedBeforeRender(e));
|
|
4930
4930
|
}
|
|
4931
4931
|
}]);
|
|
4932
|
-
}(),
|
|
4932
|
+
}(), os = /* @__PURE__ */ function(t) {
|
|
4933
4933
|
function r() {
|
|
4934
4934
|
var e;
|
|
4935
4935
|
return _(this, r), e = V(this, r), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(r._attributeToProperty_).forEach(function(n) {
|
|
@@ -4971,9 +4971,9 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4971
4971
|
return Object.keys(r._attributes_) || [];
|
|
4972
4972
|
}
|
|
4973
4973
|
}]);
|
|
4974
|
-
}(/* @__PURE__ */
|
|
4975
|
-
|
|
4976
|
-
var wf =
|
|
4974
|
+
}(/* @__PURE__ */ Za(HTMLElement));
|
|
4975
|
+
os._attributes_ = {}, os._attributeToProperty_ = {};
|
|
4976
|
+
var wf = os, kf = `<?xml version="1.0" standalone="no"?>
|
|
4977
4977
|
<svg version="1.1"
|
|
4978
4978
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
4979
4979
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
@@ -7027,7 +7027,7 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
7027
7027
|
return e;
|
|
7028
7028
|
}()
|
|
7029
7029
|
}]);
|
|
7030
|
-
}(),
|
|
7030
|
+
}(), ls = /* @__PURE__ */ function(t) {
|
|
7031
7031
|
function r(e) {
|
|
7032
7032
|
var n, i, a;
|
|
7033
7033
|
_(this, r);
|
|
@@ -7116,8 +7116,8 @@ var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
|
7116
7116
|
}()
|
|
7117
7117
|
}]);
|
|
7118
7118
|
}(Ie);
|
|
7119
|
-
|
|
7120
|
-
var jf =
|
|
7119
|
+
ls.DEFAULT_MODEL = "tts-1", ls.DEFAULT_VOIDE = "alloy";
|
|
7120
|
+
var jf = ls, Wr = /* @__PURE__ */ function(t) {
|
|
7121
7121
|
function r(e) {
|
|
7122
7122
|
var n, i;
|
|
7123
7123
|
_(this, r);
|
|
@@ -7470,7 +7470,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7470
7470
|
return n;
|
|
7471
7471
|
}()
|
|
7472
7472
|
}]);
|
|
7473
|
-
}(Uf),
|
|
7473
|
+
}(Uf), ga = /* @__PURE__ */ function() {
|
|
7474
7474
|
function t() {
|
|
7475
7475
|
_(this, t);
|
|
7476
7476
|
}
|
|
@@ -7569,7 +7569,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7569
7569
|
var n;
|
|
7570
7570
|
_(this, r);
|
|
7571
7571
|
var i, a = (i = e.directConnection) == null ? void 0 : i.assemblyAI;
|
|
7572
|
-
return n = V(this, r, [e,
|
|
7572
|
+
return n = V(this, r, [e, ga.buildKeyVerificationDetails(), ga.buildHeaders, a, {
|
|
7573
7573
|
audio: {}
|
|
7574
7574
|
}]), n.insertKeyPlaceholderText = "AssemblyAI API Key", n.keyHelpUrl = "https://www.assemblyai.com/app/account", n.introPanelMarkUp = `
|
|
7575
7575
|
<div style="width: 100%; text-align: center; margin-left: -10px"><b>AssemblyAI Audio</b></div>
|
|
@@ -7624,7 +7624,7 @@ var Hf = Wr, Vt = /* @__PURE__ */ function() {
|
|
|
7624
7624
|
}
|
|
7625
7625
|
throw a.error;
|
|
7626
7626
|
case 2:
|
|
7627
|
-
return l = (o = (s = this.connectSettings) == null ? void 0 : s.headers) == null ? void 0 : o.Authorization, u.next = 5,
|
|
7627
|
+
return l = (o = (s = this.connectSettings) == null ? void 0 : s.headers) == null ? void 0 : o.Authorization, u.next = 5, ga.poll(l, a.upload_url);
|
|
7628
7628
|
case 5:
|
|
7629
7629
|
return u.t0 = u.sent.text, u.abrupt("return", {
|
|
7630
7630
|
text: u.t0
|
|
@@ -7893,7 +7893,7 @@ var Wf = Au, Gf = /* @__PURE__ */ function(t) {
|
|
|
7893
7893
|
return n;
|
|
7894
7894
|
}()
|
|
7895
7895
|
}]);
|
|
7896
|
-
}(Ie),
|
|
7896
|
+
}(Ie), cs = /* @__PURE__ */ function() {
|
|
7897
7897
|
function t() {
|
|
7898
7898
|
_(this, t);
|
|
7899
7899
|
}
|
|
@@ -8186,8 +8186,8 @@ var Wf = Au, Gf = /* @__PURE__ */ function(t) {
|
|
|
8186
8186
|
}()
|
|
8187
8187
|
}]);
|
|
8188
8188
|
}();
|
|
8189
|
-
|
|
8190
|
-
var Ft =
|
|
8189
|
+
cs.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", cs.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
|
|
8190
|
+
var Ft = cs, Gr = /* @__PURE__ */ function(t) {
|
|
8191
8191
|
function r(e) {
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
_(this, r);
|
|
@@ -9746,7 +9746,7 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9746
9746
|
var o = this._introMessage;
|
|
9747
9747
|
if (i != null && i.isWebModel() && ((a = o) !== null && a !== void 0 || (o = i.getIntroMessage(o))), o) {
|
|
9748
9748
|
var l;
|
|
9749
|
-
o != null && o.text ? l = this.createAndAppendNewMessageElement(o.text, Z.AI_ROLE) : o != null && o.html && (l =
|
|
9749
|
+
o != null && o.text ? l = this.createAndAppendNewMessageElement(o.text, Z.AI_ROLE) : o != null && o.html && (l = es.add(this, o.html, Z.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, Z.AI_ROLE, !1, (s = this.messageStyles) == null ? void 0 : s.intro), l.outerContainer.classList.add("deep-chat-intro"));
|
|
9750
9750
|
}
|
|
9751
9751
|
}
|
|
9752
9752
|
}, {
|
|
@@ -9769,7 +9769,7 @@ var tm = /* @__PURE__ */ function() {
|
|
|
9769
9769
|
status: n.overwrite
|
|
9770
9770
|
};
|
|
9771
9771
|
if (!n.ignoreText && s.text !== void 0 && n.text !== null && (this.addNewTextMessage(s.text, s.role, o, a), !i && this.textToSpeech && s.role !== Z.USER_ROLE && zr.speak(s.text, this.textToSpeech)), s.files && Array.isArray(s.files) && sm.addMessages(this, s.files, s.role, a), s.html !== void 0 && s.html !== null) {
|
|
9772
|
-
var l =
|
|
9772
|
+
var l = es.add(this, s.html, s.role, this.messageElementRefs, o, a);
|
|
9773
9773
|
li.isElementTemporary(l) && delete s.html;
|
|
9774
9774
|
}
|
|
9775
9775
|
return this.isValidMessageContent(s) && !a && this.updateStateOnMessage(s, n.overwrite, n.sendUpdate, i), s;
|
|
@@ -11054,7 +11054,7 @@ Object.defineProperty(Sr, "__esModule", {
|
|
|
11054
11054
|
value: !0
|
|
11055
11055
|
});
|
|
11056
11056
|
Sr.Speech = void 0;
|
|
11057
|
-
var Qo = Oi, Mm = Ii, el = Cr, Br = xr,
|
|
11057
|
+
var Qo = Oi, Mm = Ii, el = Cr, Br = xr, va = Li, nt = tn, ya = Mi, tl = Rn, nl = nn, ba = en, Pm = /* @__PURE__ */ function() {
|
|
11058
11058
|
function t() {
|
|
11059
11059
|
_(this, t), this.finalTranscript = "", this.interimSpan = nt.Elements.createInterimSpan(), this.finalSpan = nt.Elements.createGenericSpan(), this.scrollingSpan = nt.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
|
|
11060
11060
|
}
|
|
@@ -11074,7 +11074,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, ga = Li, nt = tn, va = Mi, tl = Rn, nl =
|
|
|
11074
11074
|
}, {
|
|
11075
11075
|
key: "prepare",
|
|
11076
11076
|
value: function(e) {
|
|
11077
|
-
|
|
11077
|
+
ya.Padding.setState(this, e), va.Highlight.setState(this, e), this.isTargetInShadow = nt.Elements.isInsideShadowDOM(e), nt.Elements.isPrimitiveElement(e) ? (this._primitiveElement = e, this._originalText = this._primitiveElement.value) : (this._genericElement = e, this._originalText = this._genericElement.textContent);
|
|
11078
11078
|
}
|
|
11079
11079
|
// there was an attempt to optimize this by not having to restart the service and just reset state:
|
|
11080
11080
|
// unfortunately it did not work because the service would still continue firing the intermediate and final results
|
|
@@ -11088,7 +11088,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, ga = Li, nt = tn, va = Mi, tl = Rn, nl =
|
|
|
11088
11088
|
}, {
|
|
11089
11089
|
key: "updateElements",
|
|
11090
11090
|
value: function(e, n, i) {
|
|
11091
|
-
var a, s =
|
|
11091
|
+
var a, s = ba.Text.capitalize(n);
|
|
11092
11092
|
if (!(this.finalTranscript === s && e === "")) {
|
|
11093
11093
|
Mm.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
|
|
11094
11094
|
var o = this.commands && el.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
|
|
@@ -11108,7 +11108,7 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, ga = Li, nt = tn, va = Mi, tl = Rn, nl =
|
|
|
11108
11108
|
}, {
|
|
11109
11109
|
key: "updatePrimitiveElement",
|
|
11110
11110
|
value: function(e, n, i) {
|
|
11111
|
-
this.isHighlighted &&
|
|
11111
|
+
this.isHighlighted && va.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || ya.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && ya.Padding.adjustSateForNoTextPrimitiveElement(this);
|
|
11112
11112
|
var a = this.startPadding + this.finalTranscript + n;
|
|
11113
11113
|
if (e.value = a + this.endPadding, !this.isTargetInShadow) {
|
|
11114
11114
|
var s = a.length + this.numberOfSpacesAfterNewText;
|
|
@@ -11119,12 +11119,12 @@ var Qo = Oi, Mm = Ii, el = Cr, Br = xr, ga = Li, nt = tn, va = Mi, tl = Rn, nl =
|
|
|
11119
11119
|
}, {
|
|
11120
11120
|
key: "updateGenericElement",
|
|
11121
11121
|
value: function(e, n, i) {
|
|
11122
|
-
this.isHighlighted &&
|
|
11123
|
-
var a = (i ? "" : this.startPadding) +
|
|
11122
|
+
this.isHighlighted && va.Highlight.removeForGeneric(this, e), this.spansPopulated || nt.Elements.appendSpans(this, e);
|
|
11123
|
+
var a = (i ? "" : this.startPadding) + ba.Text.lineBreak(this.finalTranscript);
|
|
11124
11124
|
this.finalSpan.innerHTML = a;
|
|
11125
11125
|
var s = Br.AutoScroll.isRequired(this.autoScroll, e);
|
|
11126
11126
|
Br.AutoScroll.changeStateIfNeeded(this, s);
|
|
11127
|
-
var o =
|
|
11127
|
+
var o = ba.Text.lineBreak(n) + (i ? "" : this.endPadding);
|
|
11128
11128
|
this.interimSpan.innerHTML = o, tl.Browser.IS_SAFARI() && this.insertInCursorLocation && nl.Cursor.setOffsetForSafariGeneric(e, a.length + o.length), s && Br.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
|
|
11129
11129
|
}
|
|
11130
11130
|
}, {
|
|
@@ -11281,14 +11281,14 @@ Object.defineProperty(Ni, "__esModule", {
|
|
|
11281
11281
|
value: !0
|
|
11282
11282
|
});
|
|
11283
11283
|
Ni.AzureSpeechConfig = void 0;
|
|
11284
|
-
var
|
|
11284
|
+
var wa = Di, Dm = /* @__PURE__ */ function() {
|
|
11285
11285
|
function t() {
|
|
11286
11286
|
_(this, t);
|
|
11287
11287
|
}
|
|
11288
11288
|
return S(t, null, [{
|
|
11289
11289
|
key: "validateOptions",
|
|
11290
11290
|
value: function(e, n) {
|
|
11291
|
-
return n ? !n.subscriptionKey && !n.token && !n.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(
|
|
11291
|
+
return n ? !n.subscriptionKey && !n.token && !n.retrieveToken ? (e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(wa.README_URL)), !1) : n.region ? !0 : (e("Please define a 'region' property - more info: ".concat(wa.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(wa.README_URL)), !1);
|
|
11292
11292
|
}
|
|
11293
11293
|
}, {
|
|
11294
11294
|
key: "getNewSpeechConfig",
|
|
@@ -11404,7 +11404,7 @@ Object.defineProperty($i, "__esModule", {
|
|
|
11404
11404
|
value: !0
|
|
11405
11405
|
});
|
|
11406
11406
|
$i.Azure = void 0;
|
|
11407
|
-
var al = Fi, sl = Ni,
|
|
11407
|
+
var al = Fi, sl = Ni, ka = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t) {
|
|
11408
11408
|
function r() {
|
|
11409
11409
|
var e;
|
|
11410
11410
|
return _(this, r), e = V(this, r, arguments), e._newTextPadding = "", e;
|
|
@@ -11412,7 +11412,7 @@ var al = Fi, sl = Ni, wa = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11412
11412
|
return W(r, t), S(r, [{
|
|
11413
11413
|
key: "start",
|
|
11414
11414
|
value: function(n, i) {
|
|
11415
|
-
this._newTextPadding = "", this.stopTimeout === void 0 &&
|
|
11415
|
+
this._newTextPadding = "", this.stopTimeout === void 0 && ka.StopTimeout.reset(this, n == null ? void 0 : n.stopAfterSilenceMs), this.prepareBeforeStart(n), this.startAsync(n), i || al.PreventConnectionStop.applyPrevention(this);
|
|
11416
11416
|
}
|
|
11417
11417
|
}, {
|
|
11418
11418
|
key: "startAsync",
|
|
@@ -11479,7 +11479,7 @@ var al = Fi, sl = Ni, wa = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11479
11479
|
value: function(n, i) {
|
|
11480
11480
|
if (!this._stopping) {
|
|
11481
11481
|
var a = ol.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), s = a.interimTranscript, o = a.finalTranscript, l = a.newText;
|
|
11482
|
-
|
|
11482
|
+
ka.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(s, o, l);
|
|
11483
11483
|
}
|
|
11484
11484
|
}
|
|
11485
11485
|
// WORK - huge opportunity to fix this in the repo!!!!!
|
|
@@ -11498,7 +11498,7 @@ var al = Fi, sl = Ni, wa = Bi, ol = ji, Hm = Sr, Um = /* @__PURE__ */ function(t
|
|
|
11498
11498
|
case window.SpeechSDK.ResultReason.RecognizedSpeech:
|
|
11499
11499
|
if (a.text && !this._stopping) {
|
|
11500
11500
|
var s = ol.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), o = s.interimTranscript, l = s.finalTranscript, c = s.newText;
|
|
11501
|
-
|
|
11501
|
+
ka.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, l, c), l !== "" && (this._newTextPadding = " ");
|
|
11502
11502
|
}
|
|
11503
11503
|
break;
|
|
11504
11504
|
}
|
|
@@ -11746,7 +11746,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11746
11746
|
var s = t.createImageAttachment(n);
|
|
11747
11747
|
this.addFileAttachment(e, "image", s, i);
|
|
11748
11748
|
} else if (a === "audio") {
|
|
11749
|
-
var o =
|
|
11749
|
+
var o = us.createAudioAttachment(n);
|
|
11750
11750
|
this.addFileAttachment(e, "audio", o, i);
|
|
11751
11751
|
} else {
|
|
11752
11752
|
var l = t.createAnyFileAttachment(e.name);
|
|
@@ -11784,7 +11784,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11784
11784
|
var n, i = this._attachments.findIndex(function(s) {
|
|
11785
11785
|
return s === e;
|
|
11786
11786
|
}), a = this._attachments[i].attachmentContainerElement;
|
|
11787
|
-
this._attachments.splice(i, 1),
|
|
11787
|
+
this._attachments.splice(i, 1), us.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (n = this._validationHandler) == null || n.call(this);
|
|
11788
11788
|
}
|
|
11789
11789
|
}, {
|
|
11790
11790
|
key: "getFiles",
|
|
@@ -11961,7 +11961,7 @@ var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
|
11961
11961
|
}]);
|
|
11962
11962
|
}(Ns);
|
|
11963
11963
|
$u.TIMER_LIMIT_S = 5999;
|
|
11964
|
-
var
|
|
11964
|
+
var us = $u, Km = /* @__PURE__ */ function() {
|
|
11965
11965
|
function t() {
|
|
11966
11966
|
_(this, t);
|
|
11967
11967
|
}
|
|
@@ -11970,7 +11970,7 @@ var cs = $u, Km = /* @__PURE__ */ function() {
|
|
|
11970
11970
|
value: (
|
|
11971
11971
|
// prettier-ignore
|
|
11972
11972
|
function(e, n, i, a, s) {
|
|
11973
|
-
return s === "audio" ? new
|
|
11973
|
+
return s === "audio" ? new us(e, n, i, a) : new Ns(e, n, i, a);
|
|
11974
11974
|
}
|
|
11975
11975
|
)
|
|
11976
11976
|
}]);
|
|
@@ -13056,7 +13056,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13056
13056
|
}, e.setPlaceholderText = function() {
|
|
13057
13057
|
}, e._hasBeenRendered = !1, e._auxiliaryStyleApplied = !1, e._elementRef = document.createElement("div"), e._elementRef.id = "container", e.attachShadow({
|
|
13058
13058
|
mode: "open"
|
|
13059
|
-
}).appendChild(e._elementRef),
|
|
13059
|
+
}).appendChild(e._elementRef), da.apply(c0, e.shadowRoot), setTimeout(function() {
|
|
13060
13060
|
e._hasBeenRendered || e.onRender();
|
|
13061
13061
|
}, 20), e;
|
|
13062
13062
|
}
|
|
@@ -13070,7 +13070,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
13070
13070
|
key: "onRender",
|
|
13071
13071
|
value: function() {
|
|
13072
13072
|
var n;
|
|
13073
|
-
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (
|
|
13073
|
+
eu.attemptAppendStyleSheetToHead(this.style), Be.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = Qf.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (da.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), da.applyDefaultStyleToComponent(this.style, this.chatStyle), Be.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? vh.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((n = this._childElement) !== null && n !== void 0 || (this._childElement = this.children[0]), l0.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && Cf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, ci.onRender(this);
|
|
13074
13074
|
}
|
|
13075
13075
|
}, {
|
|
13076
13076
|
key: "disconnectedCallback",
|
|
@@ -13215,8 +13215,8 @@ function js(t) {
|
|
|
13215
13215
|
var r = On(t);
|
|
13216
13216
|
return r == $0 || r == F0 || r == P0 || r == N0;
|
|
13217
13217
|
}
|
|
13218
|
-
var
|
|
13219
|
-
var t = /[^.]+$/.exec(
|
|
13218
|
+
var _a = Xe["__core-js_shared__"], yl = function() {
|
|
13219
|
+
var t = /[^.]+$/.exec(_a && _a.keys && _a.keys.IE_PROTO || "");
|
|
13220
13220
|
return t ? "Symbol(src)_1." + t : "";
|
|
13221
13221
|
}();
|
|
13222
13222
|
function D0(t) {
|
|
@@ -13600,12 +13600,12 @@ function ev(t, r, e, n) {
|
|
|
13600
13600
|
}
|
|
13601
13601
|
return s;
|
|
13602
13602
|
}
|
|
13603
|
-
var xl = "__lodash_placeholder__",
|
|
13603
|
+
var xl = "__lodash_placeholder__", Sa = 1, tv = 2, nv = 4, El = 8, Nn = 128, Al = 256, rv = Math.min;
|
|
13604
13604
|
function iv(t, r) {
|
|
13605
|
-
var e = t[1], n = r[1], i = e | n, a = i < (
|
|
13605
|
+
var e = t[1], n = r[1], i = e | n, a = i < (Sa | tv | Nn), s = n == Nn && e == El || n == Nn && e == Al && t[7].length <= r[8] || n == (Nn | Al) && r[7].length <= r[8] && e == El;
|
|
13606
13606
|
if (!(a || s))
|
|
13607
13607
|
return t;
|
|
13608
|
-
n &
|
|
13608
|
+
n & Sa && (t[2] = r[2], i |= e & Sa ? 0 : nv);
|
|
13609
13609
|
var o = r[3];
|
|
13610
13610
|
if (o) {
|
|
13611
13611
|
var l = t[3];
|
|
@@ -13613,13 +13613,13 @@ function iv(t, r) {
|
|
|
13613
13613
|
}
|
|
13614
13614
|
return o = r[5], o && (l = t[5], t[5] = l ? zu(l, o, r[6]) : o, t[6] = l ? mi(t[5], xl) : r[6]), o = r[7], o && (t[7] = o), n & Nn && (t[8] = t[8] == null ? r[8] : rv(t[8], r[8])), t[9] == null && (t[9] = r[9]), t[0] = r[0], t[1] = i, t;
|
|
13615
13615
|
}
|
|
13616
|
-
var av = "Expected a function", Tl = 1, sv = 2,
|
|
13616
|
+
var av = "Expected a function", Tl = 1, sv = 2, Ca = 8, xa = 16, Ea = 32, Rl = 64, Ol = Math.max;
|
|
13617
13617
|
function ov(t, r, e, n, i, a, s, o) {
|
|
13618
13618
|
var l = r & sv;
|
|
13619
13619
|
if (!l && typeof t != "function")
|
|
13620
13620
|
throw new TypeError(av);
|
|
13621
13621
|
var c = n ? n.length : 0;
|
|
13622
|
-
if (c || (r &= ~(
|
|
13622
|
+
if (c || (r &= ~(Ea | Rl), n = i = void 0), s = s === void 0 ? s : Ol(vl(s), 0), o = o === void 0 ? o : vl(o), c -= i ? i.length : 0, r & Rl) {
|
|
13623
13623
|
var u = n, d = i;
|
|
13624
13624
|
n = i = void 0;
|
|
13625
13625
|
}
|
|
@@ -13635,9 +13635,9 @@ function ov(t, r, e, n, i, a, s, o) {
|
|
|
13635
13635
|
s,
|
|
13636
13636
|
o
|
|
13637
13637
|
];
|
|
13638
|
-
if (h && iv(p, h), t = p[0], r = p[1], e = p[2], n = p[3], i = p[4], o = p[9] = p[9] === void 0 ? l ? 0 : t.length : Ol(p[9] - c, 0), !o && r & (
|
|
13638
|
+
if (h && iv(p, h), t = p[0], r = p[1], e = p[2], n = p[3], i = p[4], o = p[9] = p[9] === void 0 ? l ? 0 : t.length : Ol(p[9] - c, 0), !o && r & (Ca | xa) && (r &= ~(Ca | xa)), !r || r == Tl)
|
|
13639
13639
|
var f = X0(t, r, e);
|
|
13640
|
-
else r ==
|
|
13640
|
+
else r == Ca || r == xa ? f = Xg(t, r, o) : (r == Ea || r == (Tl | Ea)) && !i.length ? f = ev(t, r, e, n) : f = Vs.apply(void 0, p);
|
|
13641
13641
|
var g = h ? Hu : Wu;
|
|
13642
13642
|
return Gu(g(f, p), t, r);
|
|
13643
13643
|
}
|
|
@@ -13736,10 +13736,10 @@ function Kv(t) {
|
|
|
13736
13736
|
return t(r);
|
|
13737
13737
|
};
|
|
13738
13738
|
}
|
|
13739
|
-
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = nd && typeof module == "object" && module && !module.nodeType && module, Jv = Qn && Qn.exports === nd,
|
|
13739
|
+
var nd = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = nd && typeof module == "object" && module && !module.nodeType && module, Jv = Qn && Qn.exports === nd, Aa = Jv && Du.process, $l = function() {
|
|
13740
13740
|
try {
|
|
13741
13741
|
var t = Qn && Qn.require && Qn.require("util").types;
|
|
13742
|
-
return t ||
|
|
13742
|
+
return t || Aa && Aa.binding && Aa.binding("util");
|
|
13743
13743
|
} catch {
|
|
13744
13744
|
}
|
|
13745
13745
|
}(), Fl = $l && $l.isTypedArray, rd = Fl ? Kv(Fl) : Gv;
|
|
@@ -14068,13 +14068,13 @@ function Ar(t, r, e) {
|
|
|
14068
14068
|
return n.placeholder = Ar.placeholder, n;
|
|
14069
14069
|
}
|
|
14070
14070
|
Ar.placeholder = {};
|
|
14071
|
-
function
|
|
14071
|
+
function ds(t, r, e) {
|
|
14072
14072
|
(e !== void 0 && !qi(t[r], e) || e === void 0 && !(r in t)) && Ws(t, r, e);
|
|
14073
14073
|
}
|
|
14074
14074
|
function h2(t) {
|
|
14075
14075
|
return Lt(t) && Ks(t);
|
|
14076
14076
|
}
|
|
14077
|
-
function
|
|
14077
|
+
function hs(t, r) {
|
|
14078
14078
|
if (!(r === "constructor" && typeof t[r] == "function") && r != "__proto__")
|
|
14079
14079
|
return t[r];
|
|
14080
14080
|
}
|
|
@@ -14082,9 +14082,9 @@ function p2(t) {
|
|
|
14082
14082
|
return uv(t, id(t));
|
|
14083
14083
|
}
|
|
14084
14084
|
function f2(t, r, e, n, i, a, s) {
|
|
14085
|
-
var o =
|
|
14085
|
+
var o = hs(t, e), l = hs(r, e), c = s.get(l);
|
|
14086
14086
|
if (c) {
|
|
14087
|
-
|
|
14087
|
+
ds(t, e, c);
|
|
14088
14088
|
return;
|
|
14089
14089
|
}
|
|
14090
14090
|
var u = a ? a(o, l, e + "", t, r, s) : void 0, d = u === void 0;
|
|
@@ -14092,15 +14092,15 @@ function f2(t, r, e, n, i, a, s) {
|
|
|
14092
14092
|
var h = lt(l), p = !h && td(l), f = !h && !p && rd(l);
|
|
14093
14093
|
u = l, h || p || f ? lt(o) ? u = o : h2(o) ? u = zs(o) : p ? (d = !1, u = n2(l)) : f ? (d = !1, u = i2(l)) : u = [] : K1(l) || hr(l) ? (u = o, hr(o) ? u = p2(o) : (!Ke(o) || js(o)) && (u = a2(l))) : d = !1;
|
|
14094
14094
|
}
|
|
14095
|
-
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)),
|
|
14095
|
+
d && (s.set(l, u), i(u, l, n, a, s), s.delete(l)), ds(t, e, u);
|
|
14096
14096
|
}
|
|
14097
14097
|
function cd(t, r, e, n, i) {
|
|
14098
14098
|
t !== r && u2(r, function(a, s) {
|
|
14099
14099
|
if (i || (i = new In()), Ke(a))
|
|
14100
14100
|
f2(t, r, s, e, cd, n, i);
|
|
14101
14101
|
else {
|
|
14102
|
-
var o = n ? n(
|
|
14103
|
-
o === void 0 && (o = a),
|
|
14102
|
+
var o = n ? n(hs(t, s), a, s + "", t, r, i) : void 0;
|
|
14103
|
+
o === void 0 && (o = a), ds(t, s, o);
|
|
14104
14104
|
}
|
|
14105
14105
|
}, id);
|
|
14106
14106
|
}
|
|
@@ -14177,11 +14177,11 @@ const S2 = (t) => (r, e = "16px") => {
|
|
|
14177
14177
|
throw new at(72, e, t);
|
|
14178
14178
|
return `${n / i}${t}`;
|
|
14179
14179
|
};
|
|
14180
|
-
function
|
|
14180
|
+
function Ta(t) {
|
|
14181
14181
|
return Math.round(t * 255);
|
|
14182
14182
|
}
|
|
14183
14183
|
function C2(t, r, e) {
|
|
14184
|
-
return `${
|
|
14184
|
+
return `${Ta(t)},${Ta(r)},${Ta(e)}`;
|
|
14185
14185
|
}
|
|
14186
14186
|
function zl(t, r, e, n = C2) {
|
|
14187
14187
|
if (r === 0)
|
|
@@ -14385,7 +14385,7 @@ const A2 = Ar(function(t, r, e) {
|
|
|
14385
14385
|
Ar(function(t, r) {
|
|
14386
14386
|
return r === "transparent" ? r : A2(parseFloat(t.toString()), "rgb(0, 0, 0)", r);
|
|
14387
14387
|
});
|
|
14388
|
-
const T2 = /^#[a-fA-F0-9]{6}$/, R2 = /^#[a-fA-F0-9]{8}$/, O2 = /^#[a-fA-F0-9]{3}$/, I2 = /^#[a-fA-F0-9]{4}$/,
|
|
14388
|
+
const T2 = /^#[a-fA-F0-9]{6}$/, R2 = /^#[a-fA-F0-9]{8}$/, O2 = /^#[a-fA-F0-9]{3}$/, I2 = /^#[a-fA-F0-9]{4}$/, Ra = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, L2 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, M2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, P2 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
|
14389
14389
|
function pe(t, r, e, n) {
|
|
14390
14390
|
if (typeof t == "string" && typeof r == "number") {
|
|
14391
14391
|
const i = gi(t);
|
|
@@ -14439,7 +14439,7 @@ function gi(t) {
|
|
|
14439
14439
|
alpha: s
|
|
14440
14440
|
};
|
|
14441
14441
|
}
|
|
14442
|
-
const e =
|
|
14442
|
+
const e = Ra.exec(r);
|
|
14443
14443
|
if (e)
|
|
14444
14444
|
return {
|
|
14445
14445
|
red: parseInt(`${e[1]}`, 10),
|
|
@@ -14456,7 +14456,7 @@ function gi(t) {
|
|
|
14456
14456
|
};
|
|
14457
14457
|
const i = M2.exec(r);
|
|
14458
14458
|
if (i) {
|
|
14459
|
-
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u =
|
|
14459
|
+
const s = parseInt(`${i[1]}`, 10), o = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u = Ra.exec(c);
|
|
14460
14460
|
if (!u)
|
|
14461
14461
|
throw new at(4, r, c);
|
|
14462
14462
|
return {
|
|
@@ -14467,7 +14467,7 @@ function gi(t) {
|
|
|
14467
14467
|
}
|
|
14468
14468
|
const a = P2.exec(r.substring(0, 50));
|
|
14469
14469
|
if (a) {
|
|
14470
|
-
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u =
|
|
14470
|
+
const s = parseInt(`${a[1]}`, 10), o = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${zl(s, o, l)})`, u = Ra.exec(c);
|
|
14471
14471
|
if (!u)
|
|
14472
14472
|
throw new at(4, r, c);
|
|
14473
14473
|
return {
|
|
@@ -15660,7 +15660,7 @@ const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Xs), _e = (t,
|
|
|
15660
15660
|
* Copyright 2017 Google LLC
|
|
15661
15661
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15662
15662
|
*/
|
|
15663
|
-
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "",
|
|
15663
|
+
const { is: W2, defineProperty: G2, getOwnPropertyDescriptor: K2, getOwnPropertyNames: J2, getOwnPropertySymbols: Z2, getPrototypeOf: Y2 } = Object, St = globalThis, Jl = St.trustedTypes, X2 = Jl ? Jl.emptyScript : "", Oa = St.reactiveElementPolyfillSupport, er = (t, r) => t, vi = { toAttribute(t, r) {
|
|
15664
15664
|
switch (r) {
|
|
15665
15665
|
case Boolean:
|
|
15666
15666
|
t = t ? X2 : null;
|
|
@@ -15888,14 +15888,14 @@ let gn = class extends HTMLElement {
|
|
|
15888
15888
|
firstUpdated(r) {
|
|
15889
15889
|
}
|
|
15890
15890
|
};
|
|
15891
|
-
gn.elementStyles = [], gn.shadowRootOptions = { mode: "open" }, gn[er("elementProperties")] = /* @__PURE__ */ new Map(), gn[er("finalized")] = /* @__PURE__ */ new Map(),
|
|
15891
|
+
gn.elementStyles = [], gn.shadowRootOptions = { mode: "open" }, gn[er("elementProperties")] = /* @__PURE__ */ new Map(), gn[er("finalized")] = /* @__PURE__ */ new Map(), Oa == null || Oa({ ReactiveElement: gn }), (St.reactiveElementVersions ?? (St.reactiveElementVersions = [])).push("2.0.4");
|
|
15892
15892
|
/**
|
|
15893
15893
|
* @license
|
|
15894
15894
|
* Copyright 2017 Google LLC
|
|
15895
15895
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15896
15896
|
*/
|
|
15897
|
-
const tr = globalThis, yi = tr.trustedTypes, Yl = yi ? yi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pd = "$lit$", wt = `lit$${Math.random().toFixed(9).slice(2)}$`, fd = "?" + wt, Q2 = `<${fd}>`, Gt = document, fr = () => Gt.createComment(""), mr = (t) => t === null || typeof t != "object" && typeof t != "function", Qs = Array.isArray, ey = (t) => Qs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function",
|
|
15898
|
-
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${
|
|
15897
|
+
const tr = globalThis, yi = tr.trustedTypes, Yl = yi ? yi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pd = "$lit$", wt = `lit$${Math.random().toFixed(9).slice(2)}$`, fd = "?" + wt, Q2 = `<${fd}>`, Gt = document, fr = () => Gt.createComment(""), mr = (t) => t === null || typeof t != "object" && typeof t != "function", Qs = Array.isArray, ey = (t) => Qs(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ia = `[
|
|
15898
|
+
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${Ia}(?:([^\\s"'>=/]+)(${Ia}*=${Ia}*(?:[^
|
|
15899
15899
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), ec = /'/g, tc = /"/g, md = /^(?:script|style|textarea|title)$/i, gd = (t) => (r, ...e) => ({ _$litType$: t, strings: r, values: e }), fe = gd(1), Qe = gd(2), At = Symbol.for("lit-noChange"), se = Symbol.for("lit-nothing"), nc = /* @__PURE__ */ new WeakMap(), Ht = Gt.createTreeWalker(Gt, 129);
|
|
15900
15900
|
function vd(t, r) {
|
|
15901
15901
|
if (!Qs(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
@@ -15913,7 +15913,7 @@ const ty = (t, r) => {
|
|
|
15913
15913
|
}
|
|
15914
15914
|
return [vd(t, a + (t[e] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), n];
|
|
15915
15915
|
};
|
|
15916
|
-
let
|
|
15916
|
+
let ps = class yd {
|
|
15917
15917
|
constructor({ strings: r, _$litType$: e }, n) {
|
|
15918
15918
|
let i;
|
|
15919
15919
|
this.parts = [];
|
|
@@ -16018,7 +16018,7 @@ class Tr {
|
|
|
16018
16018
|
}
|
|
16019
16019
|
$(r) {
|
|
16020
16020
|
var a;
|
|
16021
|
-
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el =
|
|
16021
|
+
const { values: e, _$litType$: n } = r, i = typeof n == "number" ? this._$AC(r) : (n.el === void 0 && (n.el = ps.createElement(vd(n.h, n.h[0]), this.options)), n);
|
|
16022
16022
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === i) this._$AH.p(e);
|
|
16023
16023
|
else {
|
|
16024
16024
|
const s = new ny(i, this), o = s.u(this.options);
|
|
@@ -16027,7 +16027,7 @@ class Tr {
|
|
|
16027
16027
|
}
|
|
16028
16028
|
_$AC(r) {
|
|
16029
16029
|
let e = nc.get(r.strings);
|
|
16030
|
-
return e === void 0 && nc.set(r.strings, e = new
|
|
16030
|
+
return e === void 0 && nc.set(r.strings, e = new ps(r)), e;
|
|
16031
16031
|
}
|
|
16032
16032
|
k(r) {
|
|
16033
16033
|
Qs(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -16114,8 +16114,8 @@ class sy {
|
|
|
16114
16114
|
Cn(this, r);
|
|
16115
16115
|
}
|
|
16116
16116
|
}
|
|
16117
|
-
const
|
|
16118
|
-
|
|
16117
|
+
const La = tr.litHtmlPolyfillSupport;
|
|
16118
|
+
La == null || La(ps, Tr), (tr.litHtmlVersions ?? (tr.litHtmlVersions = [])).push("3.2.1");
|
|
16119
16119
|
const oy = (t, r, e) => {
|
|
16120
16120
|
const n = (e == null ? void 0 : e.renderBefore) ?? r;
|
|
16121
16121
|
let i = n._$litPart$;
|
|
@@ -16157,8 +16157,8 @@ let nr = class extends gn {
|
|
|
16157
16157
|
};
|
|
16158
16158
|
var Zc;
|
|
16159
16159
|
nr._$litElement$ = !0, nr.finalized = !0, (Zc = globalThis.litElementHydrateSupport) == null || Zc.call(globalThis, { LitElement: nr });
|
|
16160
|
-
const
|
|
16161
|
-
|
|
16160
|
+
const Ma = globalThis.litElementPolyfillSupport;
|
|
16161
|
+
Ma == null || Ma({ LitElement: nr });
|
|
16162
16162
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
16163
16163
|
const ly = _e`
|
|
16164
16164
|
:host {
|
|
@@ -16851,10 +16851,10 @@ function Ct(t) {
|
|
|
16851
16851
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16852
16852
|
return t;
|
|
16853
16853
|
}
|
|
16854
|
-
function
|
|
16855
|
-
return
|
|
16854
|
+
function fs(t, r) {
|
|
16855
|
+
return fs = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
16856
16856
|
return e.__proto__ = n, e;
|
|
16857
|
-
},
|
|
16857
|
+
}, fs(t, r);
|
|
16858
16858
|
}
|
|
16859
16859
|
function Qi(t, r) {
|
|
16860
16860
|
if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -16866,7 +16866,7 @@ function Qi(t, r) {
|
|
|
16866
16866
|
}
|
|
16867
16867
|
}), Object.defineProperty(t, "prototype", {
|
|
16868
16868
|
writable: !1
|
|
16869
|
-
}), r &&
|
|
16869
|
+
}), r && fs(t, r);
|
|
16870
16870
|
}
|
|
16871
16871
|
function Rr(t, r) {
|
|
16872
16872
|
if (r && (Ve(r) == "object" || typeof r == "function")) return r;
|
|
@@ -17459,16 +17459,16 @@ var dc = {}, hc = function(t) {
|
|
|
17459
17459
|
}
|
|
17460
17460
|
var Me = [], ze = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
17461
17461
|
if (this.options.saveMissingTo === "fallback" && ze && ze[0])
|
|
17462
|
-
for (var
|
|
17463
|
-
Me.push(ze[
|
|
17462
|
+
for (var la = 0; la < ze.length; la++)
|
|
17463
|
+
Me.push(ze[la]);
|
|
17464
17464
|
else this.options.saveMissingTo === "all" ? Me = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Me.push(a.lng || this.language);
|
|
17465
|
-
var yo = function(rn,
|
|
17465
|
+
var yo = function(rn, ua, bo) {
|
|
17466
17466
|
var wo = B && bo !== b ? bo : ue;
|
|
17467
|
-
o.options.missingKeyHandler ? o.options.missingKeyHandler(rn, p,
|
|
17467
|
+
o.options.missingKeyHandler ? o.options.missingKeyHandler(rn, p, ua, wo, ye, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(rn, p, ua, wo, ye, a), o.emit("missingKey", rn, p, ua, b);
|
|
17468
17468
|
};
|
|
17469
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Me.forEach(function(
|
|
17470
|
-
o.pluralResolver.getSuffixes(
|
|
17471
|
-
yo([
|
|
17469
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? Me.forEach(function(ca) {
|
|
17470
|
+
o.pluralResolver.getSuffixes(ca, a).forEach(function(rn) {
|
|
17471
|
+
yo([ca], d + rn, a["defaultValue".concat(rn)] || H);
|
|
17472
17472
|
});
|
|
17473
17473
|
}) : yo(Me, d, H));
|
|
17474
17474
|
}
|
|
@@ -17572,7 +17572,7 @@ var dc = {}, hc = function(t) {
|
|
|
17572
17572
|
}
|
|
17573
17573
|
}]), e;
|
|
17574
17574
|
}(Tt);
|
|
17575
|
-
function
|
|
17575
|
+
function Pa(t) {
|
|
17576
17576
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
17577
17577
|
}
|
|
17578
17578
|
var pc = function() {
|
|
@@ -17600,7 +17600,7 @@ var pc = function() {
|
|
|
17600
17600
|
var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], i = e.split("-");
|
|
17601
17601
|
return this.options.lowerCaseLng ? i = i.map(function(a) {
|
|
17602
17602
|
return a.toLowerCase();
|
|
17603
|
-
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
17603
|
+
}) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Pa(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()), n.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Pa(i[1].toLowerCase())), n.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Pa(i[2].toLowerCase()))), i.join("-");
|
|
17604
17604
|
}
|
|
17605
17605
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
17606
17606
|
}
|
|
@@ -18817,7 +18817,7 @@ const Jy = {
|
|
|
18817
18817
|
* Copyright 2017 Google LLC
|
|
18818
18818
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18819
18819
|
*/
|
|
18820
|
-
const
|
|
18820
|
+
const $a = { INITIAL: 0, PENDING: 1, COMPLETE: 2, ERROR: 3 }, Zy = Symbol();
|
|
18821
18821
|
let _d = class {
|
|
18822
18822
|
get taskComplete() {
|
|
18823
18823
|
return this.t || (this.i === 1 ? this.t = new Promise((r, e) => {
|
|
@@ -18939,7 +18939,7 @@ class Xy extends _d {
|
|
|
18939
18939
|
});
|
|
18940
18940
|
}
|
|
18941
18941
|
}
|
|
18942
|
-
const Qy = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"],
|
|
18942
|
+
const Qy = ["fr", "pt", "nl", "be", "lu", "de", "ch", "es", "it", "uk"], Fa = {
|
|
18943
18943
|
fr: "fr-FR",
|
|
18944
18944
|
pt: "pt-PT",
|
|
18945
18945
|
nl: "nl-NL",
|
|
@@ -19112,27 +19112,25 @@ function hb(t) {
|
|
|
19112
19112
|
function pb(t) {
|
|
19113
19113
|
return lb.call(t) === "[object Date]";
|
|
19114
19114
|
}
|
|
19115
|
-
const
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
return a;
|
|
19135
|
-
}, gb = function(t) {
|
|
19115
|
+
const ta = (t) => (Array.isArray(Fa[t]) ? Fa[t] : [Fa[t]]).filter((e) => !!e), fb = (t, r) => ta(t).find((n) => n === r), mb = (t, r) => {
|
|
19116
|
+
if (!t) return null;
|
|
19117
|
+
const e = ta(r);
|
|
19118
|
+
return nb(e, t);
|
|
19119
|
+
}, gb = (t, r) => {
|
|
19120
|
+
const e = rb(t).BaseDirectory;
|
|
19121
|
+
return e ? `${e.toLowerCase()}-${r.toUpperCase()}` : null;
|
|
19122
|
+
}, vb = (t, r) => {
|
|
19123
|
+
var a;
|
|
19124
|
+
if (!t || !r) return null;
|
|
19125
|
+
const e = t.match(/^\/([a-z]{2})(\/|$)/i), n = (a = e == null ? void 0 : e[1]) == null ? void 0 : a.toLowerCase();
|
|
19126
|
+
return n ? ta(r).find((s) => s.toLowerCase().startsWith(n)) ?? null : null;
|
|
19127
|
+
}, yb = (t) => {
|
|
19128
|
+
const r = ta(t);
|
|
19129
|
+
return r.length > 0 ? r[0] : "fr-FR";
|
|
19130
|
+
}, bb = (t) => {
|
|
19131
|
+
const { country: r, cookies: e, path: n, isFromWebview: i, acceptLanguageHeader: a } = t;
|
|
19132
|
+
return (i ? mb(a, r) : null) || gb(e, r) || vb(n, r) || yb(r);
|
|
19133
|
+
}, wb = function(t) {
|
|
19136
19134
|
const r = (n) => Object.fromEntries(Object.entries(n).filter(([i, a]) => a != null));
|
|
19137
19135
|
let e = {};
|
|
19138
19136
|
return Object.keys(t).forEach((n) => {
|
|
@@ -19154,28 +19152,28 @@ function Cd(t, r) {
|
|
|
19154
19152
|
return t.apply(r, arguments);
|
|
19155
19153
|
};
|
|
19156
19154
|
}
|
|
19157
|
-
const { toString:
|
|
19158
|
-
const e =
|
|
19155
|
+
const { toString: kb } = Object.prototype, { getPrototypeOf: io } = Object, na = /* @__PURE__ */ ((t) => (r) => {
|
|
19156
|
+
const e = kb.call(r);
|
|
19159
19157
|
return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
|
|
19160
|
-
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) =>
|
|
19161
|
-
function
|
|
19158
|
+
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) => na(r) === t), ra = (t) => (r) => typeof r === t, { isArray: Ln } = Array, gr = ra("undefined");
|
|
19159
|
+
function _b(t) {
|
|
19162
19160
|
return t !== null && !gr(t) && t.constructor !== null && !gr(t.constructor) && We(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
19163
19161
|
}
|
|
19164
19162
|
const xd = ht("ArrayBuffer");
|
|
19165
|
-
function
|
|
19163
|
+
function Sb(t) {
|
|
19166
19164
|
let r;
|
|
19167
19165
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(t) : r = t && t.buffer && xd(t.buffer), r;
|
|
19168
19166
|
}
|
|
19169
|
-
const
|
|
19170
|
-
if (
|
|
19167
|
+
const Cb = ra("string"), We = ra("function"), Ed = ra("number"), ia = (t) => t !== null && typeof t == "object", xb = (t) => t === !0 || t === !1, Xr = (t) => {
|
|
19168
|
+
if (na(t) !== "object")
|
|
19171
19169
|
return !1;
|
|
19172
19170
|
const r = io(t);
|
|
19173
19171
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
19174
|
-
},
|
|
19172
|
+
}, Eb = ht("Date"), Ab = ht("File"), Tb = ht("Blob"), Rb = ht("FileList"), Ob = (t) => ia(t) && We(t.pipe), Ib = (t) => {
|
|
19175
19173
|
let r;
|
|
19176
|
-
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r =
|
|
19174
|
+
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r = na(t)) === "formdata" || // detect form-data instance
|
|
19177
19175
|
r === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
19178
|
-
},
|
|
19176
|
+
}, Lb = ht("URLSearchParams"), Mb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19179
19177
|
function Or(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
19180
19178
|
if (t === null || typeof t > "u")
|
|
19181
19179
|
return;
|
|
@@ -19209,13 +19207,13 @@ function ms() {
|
|
|
19209
19207
|
arguments[n] && Or(arguments[n], e);
|
|
19210
19208
|
return r;
|
|
19211
19209
|
}
|
|
19212
|
-
const
|
|
19210
|
+
const Pb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
19213
19211
|
e && We(i) ? t[a] = Cd(i, e) : t[a] = i;
|
|
19214
|
-
}, { allOwnKeys: n }), t),
|
|
19212
|
+
}, { allOwnKeys: n }), t), $b = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Fb = (t, r, e, n) => {
|
|
19215
19213
|
t.prototype = Object.create(r.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
19216
19214
|
value: r.prototype
|
|
19217
19215
|
}), e && Object.assign(t.prototype, e);
|
|
19218
|
-
},
|
|
19216
|
+
}, Nb = (t, r, e, n) => {
|
|
19219
19217
|
let i, a, s;
|
|
19220
19218
|
const o = {};
|
|
19221
19219
|
if (r = r || {}, t == null) return r;
|
|
@@ -19225,11 +19223,11 @@ const Ob = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19225
19223
|
t = e !== !1 && io(t);
|
|
19226
19224
|
} while (t && (!e || e(t, r)) && t !== Object.prototype);
|
|
19227
19225
|
return r;
|
|
19228
|
-
},
|
|
19226
|
+
}, Db = (t, r, e) => {
|
|
19229
19227
|
t = String(t), (e === void 0 || e > t.length) && (e = t.length), e -= r.length;
|
|
19230
19228
|
const n = t.indexOf(r, e);
|
|
19231
19229
|
return n !== -1 && n === e;
|
|
19232
|
-
},
|
|
19230
|
+
}, Bb = (t) => {
|
|
19233
19231
|
if (!t) return null;
|
|
19234
19232
|
if (Ln(t)) return t;
|
|
19235
19233
|
let r = t.length;
|
|
@@ -19238,31 +19236,31 @@ const Ob = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19238
19236
|
for (; r-- > 0; )
|
|
19239
19237
|
e[r] = t[r];
|
|
19240
19238
|
return e;
|
|
19241
|
-
},
|
|
19239
|
+
}, jb = /* @__PURE__ */ ((t) => (r) => t && r instanceof t)(typeof Uint8Array < "u" && io(Uint8Array)), Hb = (t, r) => {
|
|
19242
19240
|
const n = (t && t[Symbol.iterator]).call(t);
|
|
19243
19241
|
let i;
|
|
19244
19242
|
for (; (i = n.next()) && !i.done; ) {
|
|
19245
19243
|
const a = i.value;
|
|
19246
19244
|
r.call(t, a[0], a[1]);
|
|
19247
19245
|
}
|
|
19248
|
-
},
|
|
19246
|
+
}, Ub = (t, r) => {
|
|
19249
19247
|
let e;
|
|
19250
19248
|
const n = [];
|
|
19251
19249
|
for (; (e = t.exec(r)) !== null; )
|
|
19252
19250
|
n.push(e);
|
|
19253
19251
|
return n;
|
|
19254
|
-
},
|
|
19252
|
+
}, zb = ht("HTMLFormElement"), qb = (t) => t.toLowerCase().replace(
|
|
19255
19253
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
19256
19254
|
function(e, n, i) {
|
|
19257
19255
|
return n.toUpperCase() + i;
|
|
19258
19256
|
}
|
|
19259
|
-
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype),
|
|
19257
|
+
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype), Vb = ht("RegExp"), Od = (t, r) => {
|
|
19260
19258
|
const e = Object.getOwnPropertyDescriptors(t), n = {};
|
|
19261
19259
|
Or(e, (i, a) => {
|
|
19262
19260
|
let s;
|
|
19263
19261
|
(s = r(i, a, t)) !== !1 && (n[a] = s || i);
|
|
19264
19262
|
}), Object.defineProperties(t, n);
|
|
19265
|
-
},
|
|
19263
|
+
}, Wb = (t) => {
|
|
19266
19264
|
Od(t, (r, e) => {
|
|
19267
19265
|
if (We(t) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
|
|
19268
19266
|
return !1;
|
|
@@ -19277,31 +19275,31 @@ const Ob = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19277
19275
|
});
|
|
19278
19276
|
}
|
|
19279
19277
|
});
|
|
19280
|
-
},
|
|
19278
|
+
}, Gb = (t, r) => {
|
|
19281
19279
|
const e = {}, n = (i) => {
|
|
19282
19280
|
i.forEach((a) => {
|
|
19283
19281
|
e[a] = !0;
|
|
19284
19282
|
});
|
|
19285
19283
|
};
|
|
19286
19284
|
return Ln(t) ? n(t) : n(String(t).split(r)), e;
|
|
19287
|
-
},
|
|
19288
|
-
},
|
|
19285
|
+
}, Kb = () => {
|
|
19286
|
+
}, Jb = (t, r) => (t = +t, Number.isFinite(t) ? t : r), Na = "abcdefghijklmnopqrstuvwxyz", Ec = "0123456789", Id = {
|
|
19289
19287
|
DIGIT: Ec,
|
|
19290
|
-
ALPHA:
|
|
19291
|
-
ALPHA_DIGIT:
|
|
19292
|
-
},
|
|
19288
|
+
ALPHA: Na,
|
|
19289
|
+
ALPHA_DIGIT: Na + Na.toUpperCase() + Ec
|
|
19290
|
+
}, Zb = (t = 16, r = Id.ALPHA_DIGIT) => {
|
|
19293
19291
|
let e = "";
|
|
19294
19292
|
const { length: n } = r;
|
|
19295
19293
|
for (; t--; )
|
|
19296
19294
|
e += r[Math.random() * n | 0];
|
|
19297
19295
|
return e;
|
|
19298
19296
|
};
|
|
19299
|
-
function
|
|
19297
|
+
function Yb(t) {
|
|
19300
19298
|
return !!(t && We(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
19301
19299
|
}
|
|
19302
|
-
const
|
|
19300
|
+
const Xb = (t) => {
|
|
19303
19301
|
const r = new Array(10), e = (n, i) => {
|
|
19304
|
-
if (
|
|
19302
|
+
if (ia(n)) {
|
|
19305
19303
|
if (r.indexOf(n) >= 0)
|
|
19306
19304
|
return;
|
|
19307
19305
|
if (!("toJSON" in n)) {
|
|
@@ -19316,59 +19314,59 @@ const Kb = (t) => {
|
|
|
19316
19314
|
return n;
|
|
19317
19315
|
};
|
|
19318
19316
|
return e(t, 0);
|
|
19319
|
-
},
|
|
19317
|
+
}, Qb = ht("AsyncFunction"), e3 = (t) => t && (ia(t) || We(t)) && We(t.then) && We(t.catch), E = {
|
|
19320
19318
|
isArray: Ln,
|
|
19321
19319
|
isArrayBuffer: xd,
|
|
19322
|
-
isBuffer:
|
|
19323
|
-
isFormData:
|
|
19324
|
-
isArrayBufferView:
|
|
19325
|
-
isString:
|
|
19320
|
+
isBuffer: _b,
|
|
19321
|
+
isFormData: Ib,
|
|
19322
|
+
isArrayBufferView: Sb,
|
|
19323
|
+
isString: Cb,
|
|
19326
19324
|
isNumber: Ed,
|
|
19327
|
-
isBoolean:
|
|
19328
|
-
isObject:
|
|
19325
|
+
isBoolean: xb,
|
|
19326
|
+
isObject: ia,
|
|
19329
19327
|
isPlainObject: Xr,
|
|
19330
19328
|
isUndefined: gr,
|
|
19331
|
-
isDate:
|
|
19332
|
-
isFile:
|
|
19333
|
-
isBlob:
|
|
19334
|
-
isRegExp:
|
|
19329
|
+
isDate: Eb,
|
|
19330
|
+
isFile: Ab,
|
|
19331
|
+
isBlob: Tb,
|
|
19332
|
+
isRegExp: Vb,
|
|
19335
19333
|
isFunction: We,
|
|
19336
|
-
isStream:
|
|
19337
|
-
isURLSearchParams:
|
|
19338
|
-
isTypedArray:
|
|
19339
|
-
isFileList:
|
|
19334
|
+
isStream: Ob,
|
|
19335
|
+
isURLSearchParams: Lb,
|
|
19336
|
+
isTypedArray: jb,
|
|
19337
|
+
isFileList: Rb,
|
|
19340
19338
|
forEach: Or,
|
|
19341
19339
|
merge: ms,
|
|
19342
|
-
extend:
|
|
19343
|
-
trim:
|
|
19344
|
-
stripBOM:
|
|
19345
|
-
inherits:
|
|
19346
|
-
toFlatObject:
|
|
19347
|
-
kindOf:
|
|
19340
|
+
extend: Pb,
|
|
19341
|
+
trim: Mb,
|
|
19342
|
+
stripBOM: $b,
|
|
19343
|
+
inherits: Fb,
|
|
19344
|
+
toFlatObject: Nb,
|
|
19345
|
+
kindOf: na,
|
|
19348
19346
|
kindOfTest: ht,
|
|
19349
|
-
endsWith:
|
|
19350
|
-
toArray:
|
|
19351
|
-
forEachEntry:
|
|
19352
|
-
matchAll:
|
|
19353
|
-
isHTMLForm:
|
|
19347
|
+
endsWith: Db,
|
|
19348
|
+
toArray: Bb,
|
|
19349
|
+
forEachEntry: Hb,
|
|
19350
|
+
matchAll: Ub,
|
|
19351
|
+
isHTMLForm: zb,
|
|
19354
19352
|
hasOwnProperty: xc,
|
|
19355
19353
|
hasOwnProp: xc,
|
|
19356
19354
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
19357
19355
|
reduceDescriptors: Od,
|
|
19358
|
-
freezeMethods:
|
|
19359
|
-
toObjectSet:
|
|
19360
|
-
toCamelCase:
|
|
19361
|
-
noop:
|
|
19362
|
-
toFiniteNumber:
|
|
19356
|
+
freezeMethods: Wb,
|
|
19357
|
+
toObjectSet: Gb,
|
|
19358
|
+
toCamelCase: qb,
|
|
19359
|
+
noop: Kb,
|
|
19360
|
+
toFiniteNumber: Jb,
|
|
19363
19361
|
findKey: Ad,
|
|
19364
19362
|
global: Td,
|
|
19365
19363
|
isContextDefined: Rd,
|
|
19366
19364
|
ALPHABET: Id,
|
|
19367
|
-
generateString:
|
|
19368
|
-
isSpecCompliantForm:
|
|
19369
|
-
toJSONObject:
|
|
19370
|
-
isAsyncFn:
|
|
19371
|
-
isThenable:
|
|
19365
|
+
generateString: Zb,
|
|
19366
|
+
isSpecCompliantForm: Yb,
|
|
19367
|
+
toJSONObject: Xb,
|
|
19368
|
+
isAsyncFn: Qb,
|
|
19369
|
+
isThenable: e3
|
|
19372
19370
|
};
|
|
19373
19371
|
function ae(t, r, e, n, i) {
|
|
19374
19372
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", r && (this.code = r), e && (this.config = e), n && (this.request = n), i && (this.response = i);
|
|
@@ -19420,7 +19418,7 @@ ae.from = (t, r, e, n, i, a) => {
|
|
|
19420
19418
|
return l !== Error.prototype;
|
|
19421
19419
|
}, (o) => o !== "isAxiosError"), ae.call(s, t.message, r, e, n, i), s.cause = t, s.name = t.name, a && Object.assign(s, a), s;
|
|
19422
19420
|
};
|
|
19423
|
-
const
|
|
19421
|
+
const t3 = null;
|
|
19424
19422
|
function gs(t) {
|
|
19425
19423
|
return E.isPlainObject(t) || E.isArray(t);
|
|
19426
19424
|
}
|
|
@@ -19432,13 +19430,13 @@ function Ac(t, r, e) {
|
|
|
19432
19430
|
return i = Pd(i), !e && a ? "[" + i + "]" : i;
|
|
19433
19431
|
}).join(e ? "." : "") : r;
|
|
19434
19432
|
}
|
|
19435
|
-
function
|
|
19433
|
+
function n3(t) {
|
|
19436
19434
|
return E.isArray(t) && !t.some(gs);
|
|
19437
19435
|
}
|
|
19438
|
-
const
|
|
19436
|
+
const r3 = E.toFlatObject(E, {}, null, function(r) {
|
|
19439
19437
|
return /^is[A-Z]/.test(r);
|
|
19440
19438
|
});
|
|
19441
|
-
function
|
|
19439
|
+
function aa(t, r, e) {
|
|
19442
19440
|
if (!E.isObject(t))
|
|
19443
19441
|
throw new TypeError("target must be an object");
|
|
19444
19442
|
r = r || new FormData(), e = E.toFlatObject(e, {
|
|
@@ -19464,7 +19462,7 @@ function ia(t, r, e) {
|
|
|
19464
19462
|
if (f && !y && typeof f == "object") {
|
|
19465
19463
|
if (E.endsWith(g, "{}"))
|
|
19466
19464
|
g = n ? g : g.slice(0, -2), f = JSON.stringify(f);
|
|
19467
|
-
else if (E.isArray(f) &&
|
|
19465
|
+
else if (E.isArray(f) && n3(f) || (E.isFileList(f) || E.endsWith(g, "[]")) && (v = E.toArray(f)))
|
|
19468
19466
|
return g = Pd(g), v.forEach(function(C, F) {
|
|
19469
19467
|
!(E.isUndefined(C) || C === null) && r.append(
|
|
19470
19468
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -19475,7 +19473,7 @@ function ia(t, r, e) {
|
|
|
19475
19473
|
}
|
|
19476
19474
|
return gs(f) ? !0 : (r.append(Ac(y, g, a), c(f)), !1);
|
|
19477
19475
|
}
|
|
19478
|
-
const d = [], h = Object.assign(
|
|
19476
|
+
const d = [], h = Object.assign(r3, {
|
|
19479
19477
|
defaultVisitor: u,
|
|
19480
19478
|
convertValue: c,
|
|
19481
19479
|
isVisitable: gs
|
|
@@ -19514,7 +19512,7 @@ function Tc(t) {
|
|
|
19514
19512
|
});
|
|
19515
19513
|
}
|
|
19516
19514
|
function ao(t, r) {
|
|
19517
|
-
this._pairs = [], t &&
|
|
19515
|
+
this._pairs = [], t && aa(t, this, r);
|
|
19518
19516
|
}
|
|
19519
19517
|
const $d = ao.prototype;
|
|
19520
19518
|
$d.append = function(r, e) {
|
|
@@ -19528,13 +19526,13 @@ $d.toString = function(r) {
|
|
|
19528
19526
|
return e(i[0]) + "=" + e(i[1]);
|
|
19529
19527
|
}, "").join("&");
|
|
19530
19528
|
};
|
|
19531
|
-
function
|
|
19529
|
+
function i3(t) {
|
|
19532
19530
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
19533
19531
|
}
|
|
19534
19532
|
function Fd(t, r, e) {
|
|
19535
19533
|
if (!r)
|
|
19536
19534
|
return t;
|
|
19537
|
-
const n = e && e.encode ||
|
|
19535
|
+
const n = e && e.encode || i3, i = e && e.serialize;
|
|
19538
19536
|
let a;
|
|
19539
19537
|
if (i ? a = i(r, e) : a = E.isURLSearchParams(r) ? r.toString() : new ao(r, e).toString(n), a) {
|
|
19540
19538
|
const s = t.indexOf("#");
|
|
@@ -19600,35 +19598,35 @@ const Nd = {
|
|
|
19600
19598
|
silentJSONParsing: !0,
|
|
19601
19599
|
forcedJSONParsing: !0,
|
|
19602
19600
|
clarifyTimeoutError: !1
|
|
19603
|
-
},
|
|
19601
|
+
}, a3 = typeof URLSearchParams < "u" ? URLSearchParams : ao, s3 = typeof FormData < "u" ? FormData : null, o3 = typeof Blob < "u" ? Blob : null, l3 = {
|
|
19604
19602
|
isBrowser: !0,
|
|
19605
19603
|
classes: {
|
|
19606
|
-
URLSearchParams:
|
|
19607
|
-
FormData:
|
|
19608
|
-
Blob:
|
|
19604
|
+
URLSearchParams: a3,
|
|
19605
|
+
FormData: s3,
|
|
19606
|
+
Blob: o3
|
|
19609
19607
|
},
|
|
19610
19608
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
19611
|
-
}, Dd = typeof window < "u" && typeof document < "u",
|
|
19612
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
19609
|
+
}, Dd = typeof window < "u" && typeof document < "u", c3 = ((t) => Dd && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), u3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
19610
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", d3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19613
19611
|
__proto__: null,
|
|
19614
19612
|
hasBrowserEnv: Dd,
|
|
19615
|
-
hasStandardBrowserEnv:
|
|
19616
|
-
hasStandardBrowserWebWorkerEnv:
|
|
19613
|
+
hasStandardBrowserEnv: c3,
|
|
19614
|
+
hasStandardBrowserWebWorkerEnv: u3
|
|
19617
19615
|
}, Symbol.toStringTag, { value: "Module" })), ot = {
|
|
19618
|
-
...
|
|
19619
|
-
...
|
|
19616
|
+
...d3,
|
|
19617
|
+
...l3
|
|
19620
19618
|
};
|
|
19621
|
-
function
|
|
19622
|
-
return
|
|
19619
|
+
function h3(t, r) {
|
|
19620
|
+
return aa(t, new ot.classes.URLSearchParams(), Object.assign({
|
|
19623
19621
|
visitor: function(e, n, i, a) {
|
|
19624
19622
|
return ot.isNode && E.isBuffer(e) ? (this.append(n, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19625
19623
|
}
|
|
19626
19624
|
}, r));
|
|
19627
19625
|
}
|
|
19628
|
-
function
|
|
19626
|
+
function p3(t) {
|
|
19629
19627
|
return E.matchAll(/\w+|\[(\w*)]/g, t).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
19630
19628
|
}
|
|
19631
|
-
function
|
|
19629
|
+
function f3(t) {
|
|
19632
19630
|
const r = {}, e = Object.keys(t);
|
|
19633
19631
|
let n;
|
|
19634
19632
|
const i = e.length;
|
|
@@ -19642,17 +19640,17 @@ function Bd(t) {
|
|
|
19642
19640
|
let s = e[a++];
|
|
19643
19641
|
if (s === "__proto__") return !0;
|
|
19644
19642
|
const o = Number.isFinite(+s), l = a >= e.length;
|
|
19645
|
-
return s = !s && E.isArray(i) ? i.length : s, l ? (E.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !o) : ((!i[s] || !E.isObject(i[s])) && (i[s] = []), r(e, n, i[s], a) && E.isArray(i[s]) && (i[s] =
|
|
19643
|
+
return s = !s && E.isArray(i) ? i.length : s, l ? (E.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !o) : ((!i[s] || !E.isObject(i[s])) && (i[s] = []), r(e, n, i[s], a) && E.isArray(i[s]) && (i[s] = f3(i[s])), !o);
|
|
19646
19644
|
}
|
|
19647
19645
|
if (E.isFormData(t) && E.isFunction(t.entries)) {
|
|
19648
19646
|
const e = {};
|
|
19649
19647
|
return E.forEachEntry(t, (n, i) => {
|
|
19650
|
-
r(
|
|
19648
|
+
r(p3(n), i, e, 0);
|
|
19651
19649
|
}), e;
|
|
19652
19650
|
}
|
|
19653
19651
|
return null;
|
|
19654
19652
|
}
|
|
19655
|
-
function
|
|
19653
|
+
function m3(t, r, e) {
|
|
19656
19654
|
if (E.isString(t))
|
|
19657
19655
|
try {
|
|
19658
19656
|
return (r || JSON.parse)(t), E.trim(t);
|
|
@@ -19678,17 +19676,17 @@ const Ir = {
|
|
|
19678
19676
|
let o;
|
|
19679
19677
|
if (a) {
|
|
19680
19678
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
19681
|
-
return
|
|
19679
|
+
return h3(r, this.formSerializer).toString();
|
|
19682
19680
|
if ((o = E.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
19683
19681
|
const l = this.env && this.env.FormData;
|
|
19684
|
-
return
|
|
19682
|
+
return aa(
|
|
19685
19683
|
o ? { "files[]": r } : r,
|
|
19686
19684
|
l && new l(),
|
|
19687
19685
|
this.formSerializer
|
|
19688
19686
|
);
|
|
19689
19687
|
}
|
|
19690
19688
|
}
|
|
19691
|
-
return a || i ? (e.setContentType("application/json", !1),
|
|
19689
|
+
return a || i ? (e.setContentType("application/json", !1), m3(r)) : r;
|
|
19692
19690
|
}],
|
|
19693
19691
|
transformResponse: [function(r) {
|
|
19694
19692
|
const e = this.transitional || Ir.transitional, n = e && e.forcedJSONParsing, i = this.responseType === "json";
|
|
@@ -19729,7 +19727,7 @@ const Ir = {
|
|
|
19729
19727
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
19730
19728
|
Ir.headers[t] = {};
|
|
19731
19729
|
});
|
|
19732
|
-
const
|
|
19730
|
+
const g3 = E.toObjectSet([
|
|
19733
19731
|
"age",
|
|
19734
19732
|
"authorization",
|
|
19735
19733
|
"content-length",
|
|
@@ -19747,12 +19745,12 @@ const h3 = E.toObjectSet([
|
|
|
19747
19745
|
"referer",
|
|
19748
19746
|
"retry-after",
|
|
19749
19747
|
"user-agent"
|
|
19750
|
-
]),
|
|
19748
|
+
]), v3 = (t) => {
|
|
19751
19749
|
const r = {};
|
|
19752
19750
|
let e, n, i;
|
|
19753
19751
|
return t && t.split(`
|
|
19754
19752
|
`).forEach(function(s) {
|
|
19755
|
-
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] &&
|
|
19753
|
+
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] && g3[e]) && (e === "set-cookie" ? r[e] ? r[e].push(n) : r[e] = [n] : r[e] = r[e] ? r[e] + ", " + n : n);
|
|
19756
19754
|
}), r;
|
|
19757
19755
|
}, Oc = Symbol("internals");
|
|
19758
19756
|
function jn(t) {
|
|
@@ -19761,15 +19759,15 @@ function jn(t) {
|
|
|
19761
19759
|
function Qr(t) {
|
|
19762
19760
|
return t === !1 || t == null ? t : E.isArray(t) ? t.map(Qr) : String(t);
|
|
19763
19761
|
}
|
|
19764
|
-
function
|
|
19762
|
+
function y3(t) {
|
|
19765
19763
|
const r = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
19766
19764
|
let n;
|
|
19767
19765
|
for (; n = e.exec(t); )
|
|
19768
19766
|
r[n[1]] = n[2];
|
|
19769
19767
|
return r;
|
|
19770
19768
|
}
|
|
19771
|
-
const
|
|
19772
|
-
function
|
|
19769
|
+
const b3 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
19770
|
+
function Da(t, r, e, n, i) {
|
|
19773
19771
|
if (E.isFunction(n))
|
|
19774
19772
|
return n.call(this, r, e);
|
|
19775
19773
|
if (i && (r = e), !!E.isString(r)) {
|
|
@@ -19779,10 +19777,10 @@ function Na(t, r, e, n, i) {
|
|
|
19779
19777
|
return n.test(r);
|
|
19780
19778
|
}
|
|
19781
19779
|
}
|
|
19782
|
-
function
|
|
19780
|
+
function w3(t) {
|
|
19783
19781
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, e, n) => e.toUpperCase() + n);
|
|
19784
19782
|
}
|
|
19785
|
-
function
|
|
19783
|
+
function k3(t, r) {
|
|
19786
19784
|
const e = E.toCamelCase(" " + r);
|
|
19787
19785
|
["get", "set", "has"].forEach((n) => {
|
|
19788
19786
|
Object.defineProperty(t, n + e, {
|
|
@@ -19807,7 +19805,7 @@ class Ge {
|
|
|
19807
19805
|
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] = Qr(o));
|
|
19808
19806
|
}
|
|
19809
19807
|
const s = (o, l) => E.forEach(o, (c, u) => a(c, u, l));
|
|
19810
|
-
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !
|
|
19808
|
+
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !b3(r) ? s(v3(r), e) : r != null && a(e, r, n), this;
|
|
19811
19809
|
}
|
|
19812
19810
|
get(r, e) {
|
|
19813
19811
|
if (r = jn(r), r) {
|
|
@@ -19817,7 +19815,7 @@ class Ge {
|
|
|
19817
19815
|
if (!e)
|
|
19818
19816
|
return i;
|
|
19819
19817
|
if (e === !0)
|
|
19820
|
-
return
|
|
19818
|
+
return y3(i);
|
|
19821
19819
|
if (E.isFunction(e))
|
|
19822
19820
|
return e.call(this, i, n);
|
|
19823
19821
|
if (E.isRegExp(e))
|
|
@@ -19829,7 +19827,7 @@ class Ge {
|
|
|
19829
19827
|
has(r, e) {
|
|
19830
19828
|
if (r = jn(r), r) {
|
|
19831
19829
|
const n = E.findKey(this, r);
|
|
19832
|
-
return !!(n && this[n] !== void 0 && (!e ||
|
|
19830
|
+
return !!(n && this[n] !== void 0 && (!e || Da(this, this[n], n, e)));
|
|
19833
19831
|
}
|
|
19834
19832
|
return !1;
|
|
19835
19833
|
}
|
|
@@ -19839,7 +19837,7 @@ class Ge {
|
|
|
19839
19837
|
function a(s) {
|
|
19840
19838
|
if (s = jn(s), s) {
|
|
19841
19839
|
const o = E.findKey(n, s);
|
|
19842
|
-
o && (!e ||
|
|
19840
|
+
o && (!e || Da(n, n[o], o, e)) && (delete n[o], i = !0);
|
|
19843
19841
|
}
|
|
19844
19842
|
}
|
|
19845
19843
|
return E.isArray(r) ? r.forEach(a) : a(r), i;
|
|
@@ -19849,7 +19847,7 @@ class Ge {
|
|
|
19849
19847
|
let n = e.length, i = !1;
|
|
19850
19848
|
for (; n--; ) {
|
|
19851
19849
|
const a = e[n];
|
|
19852
|
-
(!r ||
|
|
19850
|
+
(!r || Da(this, this[a], a, r, !0)) && (delete this[a], i = !0);
|
|
19853
19851
|
}
|
|
19854
19852
|
return i;
|
|
19855
19853
|
}
|
|
@@ -19861,7 +19859,7 @@ class Ge {
|
|
|
19861
19859
|
e[s] = Qr(i), delete e[a];
|
|
19862
19860
|
return;
|
|
19863
19861
|
}
|
|
19864
|
-
const o = r ?
|
|
19862
|
+
const o = r ? w3(a) : String(a).trim();
|
|
19865
19863
|
o !== a && delete e[a], e[o] = Qr(i), n[o] = !0;
|
|
19866
19864
|
}), this;
|
|
19867
19865
|
}
|
|
@@ -19897,7 +19895,7 @@ class Ge {
|
|
|
19897
19895
|
}).accessors, i = this.prototype;
|
|
19898
19896
|
function a(s) {
|
|
19899
19897
|
const o = jn(s);
|
|
19900
|
-
n[o] || (
|
|
19898
|
+
n[o] || (k3(i, s), n[o] = !0);
|
|
19901
19899
|
}
|
|
19902
19900
|
return E.isArray(r) ? r.forEach(a) : a(r), this;
|
|
19903
19901
|
}
|
|
@@ -19913,7 +19911,7 @@ E.reduceDescriptors(Ge.prototype, ({ value: t }, r) => {
|
|
|
19913
19911
|
};
|
|
19914
19912
|
});
|
|
19915
19913
|
E.freezeMethods(Ge);
|
|
19916
|
-
function
|
|
19914
|
+
function Ba(t, r) {
|
|
19917
19915
|
const e = this || Ir, n = r || e, i = Ge.from(n.headers);
|
|
19918
19916
|
let a = n.data;
|
|
19919
19917
|
return E.forEach(t, function(o) {
|
|
@@ -19929,7 +19927,7 @@ function Lr(t, r, e) {
|
|
|
19929
19927
|
E.inherits(Lr, ae, {
|
|
19930
19928
|
__CANCEL__: !0
|
|
19931
19929
|
});
|
|
19932
|
-
function
|
|
19930
|
+
function _3(t, r, e) {
|
|
19933
19931
|
const n = e.config.validateStatus;
|
|
19934
19932
|
!e.status || !n || n(e.status) ? t(e) : r(new ae(
|
|
19935
19933
|
"Request failed with status code " + e.status,
|
|
@@ -19939,7 +19937,7 @@ function y3(t, r, e) {
|
|
|
19939
19937
|
e
|
|
19940
19938
|
));
|
|
19941
19939
|
}
|
|
19942
|
-
const
|
|
19940
|
+
const S3 = ot.hasStandardBrowserEnv ? (
|
|
19943
19941
|
// Standard browser envs support document.cookie
|
|
19944
19942
|
{
|
|
19945
19943
|
write(t, r, e, n, i, a) {
|
|
@@ -19966,16 +19964,16 @@ const b3 = ot.hasStandardBrowserEnv ? (
|
|
|
19966
19964
|
}
|
|
19967
19965
|
}
|
|
19968
19966
|
);
|
|
19969
|
-
function
|
|
19967
|
+
function C3(t) {
|
|
19970
19968
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
19971
19969
|
}
|
|
19972
|
-
function
|
|
19970
|
+
function x3(t, r) {
|
|
19973
19971
|
return r ? t.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : t;
|
|
19974
19972
|
}
|
|
19975
19973
|
function Hd(t, r) {
|
|
19976
|
-
return t && !
|
|
19974
|
+
return t && !C3(r) ? x3(t, r) : r;
|
|
19977
19975
|
}
|
|
19978
|
-
const
|
|
19976
|
+
const E3 = ot.hasStandardBrowserEnv ? (
|
|
19979
19977
|
// Standard browser envs have full support of the APIs needed to test
|
|
19980
19978
|
// whether the request URL is of the same origin as current location.
|
|
19981
19979
|
function() {
|
|
@@ -20007,11 +20005,11 @@ const _3 = ot.hasStandardBrowserEnv ? (
|
|
|
20007
20005
|
};
|
|
20008
20006
|
}()
|
|
20009
20007
|
);
|
|
20010
|
-
function
|
|
20008
|
+
function A3(t) {
|
|
20011
20009
|
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
20012
20010
|
return r && r[1] || "";
|
|
20013
20011
|
}
|
|
20014
|
-
function
|
|
20012
|
+
function T3(t, r) {
|
|
20015
20013
|
t = t || 10;
|
|
20016
20014
|
const e = new Array(t), n = new Array(t);
|
|
20017
20015
|
let i = 0, a = 0, s;
|
|
@@ -20029,7 +20027,7 @@ function C3(t, r) {
|
|
|
20029
20027
|
}
|
|
20030
20028
|
function Ic(t, r) {
|
|
20031
20029
|
let e = 0;
|
|
20032
|
-
const n =
|
|
20030
|
+
const n = T3(50, 250);
|
|
20033
20031
|
return (i) => {
|
|
20034
20032
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, o = a - e, l = n(o), c = a <= s;
|
|
20035
20033
|
e = a;
|
|
@@ -20045,7 +20043,7 @@ function Ic(t, r) {
|
|
|
20045
20043
|
u[r ? "download" : "upload"] = !0, t(u);
|
|
20046
20044
|
};
|
|
20047
20045
|
}
|
|
20048
|
-
const
|
|
20046
|
+
const R3 = typeof XMLHttpRequest < "u", O3 = R3 && function(t) {
|
|
20049
20047
|
return new Promise(function(e, n) {
|
|
20050
20048
|
let i = t.data;
|
|
20051
20049
|
const a = Ge.from(t.headers).normalize();
|
|
@@ -20082,7 +20080,7 @@ const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
|
20082
20080
|
config: t,
|
|
20083
20081
|
request: d
|
|
20084
20082
|
};
|
|
20085
|
-
|
|
20083
|
+
_3(function(C) {
|
|
20086
20084
|
e(C), c();
|
|
20087
20085
|
}, function(C) {
|
|
20088
20086
|
n(C), c();
|
|
@@ -20103,8 +20101,8 @@ const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
|
20103
20101
|
t,
|
|
20104
20102
|
d
|
|
20105
20103
|
)), d = null;
|
|
20106
|
-
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 &&
|
|
20107
|
-
const g = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
20104
|
+
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 && E3(h))) {
|
|
20105
|
+
const g = t.xsrfHeaderName && t.xsrfCookieName && S3.read(t.xsrfCookieName);
|
|
20108
20106
|
g && a.set(t.xsrfHeaderName, g);
|
|
20109
20107
|
}
|
|
20110
20108
|
i === void 0 && a.setContentType(null), "setRequestHeader" in d && E.forEach(a.toJSON(), function(y, v) {
|
|
@@ -20112,7 +20110,7 @@ const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
|
20112
20110
|
}), E.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), s && s !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", Ic(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ic(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
|
|
20113
20111
|
d && (n(!g || g.type ? new Lr(null, t, d) : g), d.abort(), d = null);
|
|
20114
20112
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
20115
|
-
const f =
|
|
20113
|
+
const f = A3(h);
|
|
20116
20114
|
if (f && ot.protocols.indexOf(f) === -1) {
|
|
20117
20115
|
n(new ae("Unsupported protocol " + f + ":", ae.ERR_BAD_REQUEST, t));
|
|
20118
20116
|
return;
|
|
@@ -20120,8 +20118,8 @@ const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
|
20120
20118
|
d.send(i || null);
|
|
20121
20119
|
});
|
|
20122
20120
|
}, vs = {
|
|
20123
|
-
http:
|
|
20124
|
-
xhr:
|
|
20121
|
+
http: t3,
|
|
20122
|
+
xhr: O3
|
|
20125
20123
|
};
|
|
20126
20124
|
E.forEach(vs, (t, r) => {
|
|
20127
20125
|
if (t) {
|
|
@@ -20132,7 +20130,7 @@ E.forEach(vs, (t, r) => {
|
|
|
20132
20130
|
Object.defineProperty(t, "adapterName", { value: r });
|
|
20133
20131
|
}
|
|
20134
20132
|
});
|
|
20135
|
-
const Lc = (t) => `- ${t}`,
|
|
20133
|
+
const Lc = (t) => `- ${t}`, I3 = (t) => E.isFunction(t) || t === null || t === !1, Ud = {
|
|
20136
20134
|
getAdapter: (t) => {
|
|
20137
20135
|
t = E.isArray(t) ? t : [t];
|
|
20138
20136
|
const { length: r } = t;
|
|
@@ -20141,7 +20139,7 @@ const Lc = (t) => `- ${t}`, A3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20141
20139
|
for (let a = 0; a < r; a++) {
|
|
20142
20140
|
e = t[a];
|
|
20143
20141
|
let s;
|
|
20144
|
-
if (n = e, !
|
|
20142
|
+
if (n = e, !I3(e) && (n = vs[(s = String(e)).toLowerCase()], n === void 0))
|
|
20145
20143
|
throw new ae(`Unknown adapter '${s}'`);
|
|
20146
20144
|
if (n)
|
|
20147
20145
|
break;
|
|
@@ -20163,22 +20161,22 @@ const Lc = (t) => `- ${t}`, A3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20163
20161
|
},
|
|
20164
20162
|
adapters: vs
|
|
20165
20163
|
};
|
|
20166
|
-
function
|
|
20164
|
+
function ja(t) {
|
|
20167
20165
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
20168
20166
|
throw new Lr(null, t);
|
|
20169
20167
|
}
|
|
20170
20168
|
function Mc(t) {
|
|
20171
|
-
return
|
|
20169
|
+
return ja(t), t.headers = Ge.from(t.headers), t.data = Ba.call(
|
|
20172
20170
|
t,
|
|
20173
20171
|
t.transformRequest
|
|
20174
20172
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ud.getAdapter(t.adapter || Ir.adapter)(t).then(function(n) {
|
|
20175
|
-
return
|
|
20173
|
+
return ja(t), n.data = Ba.call(
|
|
20176
20174
|
t,
|
|
20177
20175
|
t.transformResponse,
|
|
20178
20176
|
n
|
|
20179
20177
|
), n.headers = Ge.from(n.headers), n;
|
|
20180
20178
|
}, function(n) {
|
|
20181
|
-
return jd(n) || (
|
|
20179
|
+
return jd(n) || (ja(t), n && n.response && (n.response.data = Ba.call(
|
|
20182
20180
|
t,
|
|
20183
20181
|
t.transformResponse,
|
|
20184
20182
|
n.response
|
|
@@ -20275,7 +20273,7 @@ so.transitional = function(r, e, n) {
|
|
|
20275
20273
|
)), r ? r(a, s, o) : !0;
|
|
20276
20274
|
};
|
|
20277
20275
|
};
|
|
20278
|
-
function
|
|
20276
|
+
function L3(t, r, e) {
|
|
20279
20277
|
if (typeof t != "object")
|
|
20280
20278
|
throw new ae("options must be an object", ae.ERR_BAD_OPTION_VALUE);
|
|
20281
20279
|
const n = Object.keys(t);
|
|
@@ -20293,7 +20291,7 @@ function T3(t, r, e) {
|
|
|
20293
20291
|
}
|
|
20294
20292
|
}
|
|
20295
20293
|
const ys = {
|
|
20296
|
-
assertOptions:
|
|
20294
|
+
assertOptions: L3,
|
|
20297
20295
|
validators: so
|
|
20298
20296
|
}, bt = ys.validators;
|
|
20299
20297
|
class zt {
|
|
@@ -20481,12 +20479,12 @@ class oo {
|
|
|
20481
20479
|
};
|
|
20482
20480
|
}
|
|
20483
20481
|
}
|
|
20484
|
-
function
|
|
20482
|
+
function M3(t) {
|
|
20485
20483
|
return function(e) {
|
|
20486
20484
|
return t.apply(null, e);
|
|
20487
20485
|
};
|
|
20488
20486
|
}
|
|
20489
|
-
function
|
|
20487
|
+
function P3(t) {
|
|
20490
20488
|
return E.isObject(t) && t.isAxiosError === !0;
|
|
20491
20489
|
}
|
|
20492
20490
|
const bs = {
|
|
@@ -20569,14 +20567,14 @@ j.CanceledError = Lr;
|
|
|
20569
20567
|
j.CancelToken = oo;
|
|
20570
20568
|
j.isCancel = jd;
|
|
20571
20569
|
j.VERSION = zd;
|
|
20572
|
-
j.toFormData =
|
|
20570
|
+
j.toFormData = aa;
|
|
20573
20571
|
j.AxiosError = ae;
|
|
20574
20572
|
j.Cancel = j.CanceledError;
|
|
20575
20573
|
j.all = function(r) {
|
|
20576
20574
|
return Promise.all(r);
|
|
20577
20575
|
};
|
|
20578
|
-
j.spread =
|
|
20579
|
-
j.isAxiosError =
|
|
20576
|
+
j.spread = M3;
|
|
20577
|
+
j.isAxiosError = P3;
|
|
20580
20578
|
j.mergeConfig = xn;
|
|
20581
20579
|
j.AxiosHeaders = Ge;
|
|
20582
20580
|
j.formToJSON = (t) => Bd(E.isHTMLForm(t) ? new FormData(t) : t);
|
|
@@ -20702,7 +20700,7 @@ D(yn, "Endpoints", {
|
|
|
20702
20700
|
}), /** ContentService API static errors typeguards */
|
|
20703
20701
|
D(yn, "Errors", ws);
|
|
20704
20702
|
let ks = yn;
|
|
20705
|
-
class
|
|
20703
|
+
class $3 {
|
|
20706
20704
|
constructor(r) {
|
|
20707
20705
|
this.config = r;
|
|
20708
20706
|
}
|
|
@@ -20743,21 +20741,21 @@ class I3 {
|
|
|
20743
20741
|
}
|
|
20744
20742
|
}
|
|
20745
20743
|
);
|
|
20746
|
-
return
|
|
20744
|
+
return wb(i);
|
|
20747
20745
|
}
|
|
20748
20746
|
}
|
|
20749
|
-
const
|
|
20747
|
+
const F3 = "fr", N3 = (t) => {
|
|
20750
20748
|
var n;
|
|
20751
20749
|
const r = t.split(".");
|
|
20752
|
-
let e =
|
|
20750
|
+
let e = F3;
|
|
20753
20751
|
if (r.length > 1) {
|
|
20754
20752
|
const i = (n = r.pop()) == null ? void 0 : n.toLocaleLowerCase();
|
|
20755
|
-
i &&
|
|
20753
|
+
i && D3(i) && (e = i);
|
|
20756
20754
|
}
|
|
20757
20755
|
return e;
|
|
20758
|
-
},
|
|
20756
|
+
}, D3 = (t) => Qy.includes(t), go = class go extends nr {
|
|
20759
20757
|
constructor(r = {}) {
|
|
20760
|
-
super(), this.translationsConfig = r, this.country = typeof window < "u" ?
|
|
20758
|
+
super(), this.translationsConfig = r, this.country = typeof window < "u" ? N3(window.location.hostname) : "fr", this.language = typeof window < "u" ? bb({ country: this.country, cookies: document.cookie }) : "fr-FR", this.translationsConfig.translationsLoaderGetter && (this.translationsTask = new Xy(
|
|
20761
20759
|
this,
|
|
20762
20760
|
this.translationsConfig.translationsLoaderGetter,
|
|
20763
20761
|
{
|
|
@@ -20781,15 +20779,15 @@ let ge = go;
|
|
|
20781
20779
|
* Copyright 2020 Google LLC
|
|
20782
20780
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20783
20781
|
*/
|
|
20784
|
-
const Vd = Symbol.for(""),
|
|
20782
|
+
const Vd = Symbol.for(""), B3 = (t) => {
|
|
20785
20783
|
if ((t == null ? void 0 : t.r) === Vd) return t == null ? void 0 : t._$litStatic$;
|
|
20786
|
-
}, _s = (t) => ({ _$litStatic$: t, r: Vd }), Fc = /* @__PURE__ */ new Map(),
|
|
20784
|
+
}, _s = (t) => ({ _$litStatic$: t, r: Vd }), Fc = /* @__PURE__ */ new Map(), j3 = (t) => (r, ...e) => {
|
|
20787
20785
|
const n = e.length;
|
|
20788
20786
|
let i, a;
|
|
20789
20787
|
const s = [], o = [];
|
|
20790
20788
|
let l, c = 0, u = !1;
|
|
20791
20789
|
for (; c < n; ) {
|
|
20792
|
-
for (l = r[c]; c < n && (a = e[c], (i =
|
|
20790
|
+
for (l = r[c]; c < n && (a = e[c], (i = B3(a)) !== void 0); ) l += i + r[++c], u = !0;
|
|
20793
20791
|
c !== n && o.push(a), s.push(l), c++;
|
|
20794
20792
|
}
|
|
20795
20793
|
if (c === n && s.push(r[n]), u) {
|
|
@@ -20797,8 +20795,8 @@ const Vd = Symbol.for(""), $3 = (t) => {
|
|
|
20797
20795
|
(r = Fc.get(d)) === void 0 && (s.raw = s, Fc.set(d, r = s)), e = o;
|
|
20798
20796
|
}
|
|
20799
20797
|
return t(r, ...e);
|
|
20800
|
-
}, jt =
|
|
20801
|
-
function
|
|
20798
|
+
}, jt = j3(fe);
|
|
20799
|
+
function H3(t, r) {
|
|
20802
20800
|
return function(e, n) {
|
|
20803
20801
|
const i = new CustomEvent(r, {
|
|
20804
20802
|
detail: e,
|
|
@@ -20814,14 +20812,14 @@ function co(t) {
|
|
|
20814
20812
|
return (r, e) => {
|
|
20815
20813
|
Object.defineProperty(r, e, {
|
|
20816
20814
|
get() {
|
|
20817
|
-
return
|
|
20815
|
+
return H3(this, t || e);
|
|
20818
20816
|
},
|
|
20819
20817
|
enumerable: !0,
|
|
20820
20818
|
configurable: !0
|
|
20821
20819
|
});
|
|
20822
20820
|
};
|
|
20823
20821
|
}
|
|
20824
|
-
const
|
|
20822
|
+
const U3 = _e`
|
|
20825
20823
|
@keyframes rotate360 {
|
|
20826
20824
|
from {
|
|
20827
20825
|
transform: rotate(0deg);
|
|
@@ -20835,7 +20833,7 @@ const D3 = _e`
|
|
|
20835
20833
|
vertical-align: middle;
|
|
20836
20834
|
animation: rotate360 1s linear infinite;
|
|
20837
20835
|
}
|
|
20838
|
-
`,
|
|
20836
|
+
`, z3 = _e`
|
|
20839
20837
|
:host {
|
|
20840
20838
|
display: inline-block;
|
|
20841
20839
|
transition: fill 0.2s, stroke 0.2s;
|
|
@@ -20863,17 +20861,17 @@ const D3 = _e`
|
|
|
20863
20861
|
height: 100%;
|
|
20864
20862
|
}
|
|
20865
20863
|
`;
|
|
20866
|
-
var
|
|
20864
|
+
var q3 = Object.defineProperty, Wd = (t, r, e, n) => {
|
|
20867
20865
|
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20868
20866
|
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20869
|
-
return i &&
|
|
20867
|
+
return i && q3(r, e, i), i;
|
|
20870
20868
|
};
|
|
20871
20869
|
const vo = class vo extends ge {
|
|
20872
20870
|
constructor() {
|
|
20873
20871
|
super(...arguments), this.size = "medium", this.viewBox = "0 0 32 32";
|
|
20874
20872
|
}
|
|
20875
20873
|
};
|
|
20876
|
-
vo.styles = [ge.styles,
|
|
20874
|
+
vo.styles = [ge.styles, z3];
|
|
20877
20875
|
let vr = vo;
|
|
20878
20876
|
Wd([
|
|
20879
20877
|
z({ type: String, reflect: !0 })
|
|
@@ -20889,10 +20887,10 @@ function et(t, r) {
|
|
|
20889
20887
|
}
|
|
20890
20888
|
customElements.define(t, e);
|
|
20891
20889
|
}
|
|
20892
|
-
var
|
|
20893
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20890
|
+
var V3 = Object.defineProperty, W3 = Object.getOwnPropertyDescriptor, uo = (t, r, e, n) => {
|
|
20891
|
+
for (var i = n > 1 ? void 0 : n ? W3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20894
20892
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20895
|
-
return n && i &&
|
|
20893
|
+
return n && i && V3(r, e, i), i;
|
|
20896
20894
|
};
|
|
20897
20895
|
et(
|
|
20898
20896
|
"lr-icon-spinner",
|
|
@@ -20918,7 +20916,7 @@ let yr = class extends ge {
|
|
|
20918
20916
|
></lr-icon-spinner> `;
|
|
20919
20917
|
}
|
|
20920
20918
|
};
|
|
20921
|
-
yr.styles = [ge.styles,
|
|
20919
|
+
yr.styles = [ge.styles, U3];
|
|
20922
20920
|
uo([
|
|
20923
20921
|
z({ type: String, reflect: !0 })
|
|
20924
20922
|
], yr.prototype, "size", 2);
|
|
@@ -20928,19 +20926,19 @@ uo([
|
|
|
20928
20926
|
yr = uo([
|
|
20929
20927
|
Fe("lr-spinner")
|
|
20930
20928
|
], yr);
|
|
20931
|
-
const
|
|
20929
|
+
const G3 = globalThis.SubmitEvent = typeof globalThis.SubmitEvent < "u" ? SubmitEvent : Event, Gd = (t) => {
|
|
20932
20930
|
if (!(!t.noValidate && !t.reportValidity())) {
|
|
20933
|
-
const r = new
|
|
20931
|
+
const r = new G3("submit", {
|
|
20934
20932
|
bubbles: !0,
|
|
20935
20933
|
cancelable: !0
|
|
20936
20934
|
});
|
|
20937
20935
|
t.dispatchEvent(r), r.defaultPrevented || t.submit();
|
|
20938
20936
|
}
|
|
20939
20937
|
};
|
|
20940
|
-
var
|
|
20941
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20938
|
+
var K3 = Object.defineProperty, J3 = Object.getOwnPropertyDescriptor, Oe = (t, r, e, n) => {
|
|
20939
|
+
for (var i = n > 1 ? void 0 : n ? J3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20942
20940
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20943
|
-
return n && i &&
|
|
20941
|
+
return n && i && K3(r, e, i), i;
|
|
20944
20942
|
};
|
|
20945
20943
|
const Si = class Si extends ge {
|
|
20946
20944
|
constructor() {
|
|
@@ -21049,7 +21047,7 @@ Oe([
|
|
|
21049
21047
|
gt = Oe([
|
|
21050
21048
|
Fe("lr-button")
|
|
21051
21049
|
], gt);
|
|
21052
|
-
const
|
|
21050
|
+
const Z3 = _e`
|
|
21053
21051
|
:host {
|
|
21054
21052
|
position: absolute;
|
|
21055
21053
|
display: none;
|
|
@@ -21092,10 +21090,10 @@ const W3 = _e`
|
|
|
21092
21090
|
user-select: text;
|
|
21093
21091
|
}
|
|
21094
21092
|
`;
|
|
21095
|
-
var
|
|
21096
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21093
|
+
var Y3 = Object.defineProperty, X3 = Object.getOwnPropertyDescriptor, ho = (t, r, e, n) => {
|
|
21094
|
+
for (var i = n > 1 ? void 0 : n ? X3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21097
21095
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21098
|
-
return n && i &&
|
|
21096
|
+
return n && i && Y3(r, e, i), i;
|
|
21099
21097
|
};
|
|
21100
21098
|
let En = class extends ge {
|
|
21101
21099
|
constructor() {
|
|
@@ -21109,7 +21107,7 @@ let En = class extends ge {
|
|
|
21109
21107
|
`;
|
|
21110
21108
|
}
|
|
21111
21109
|
};
|
|
21112
|
-
En.styles = [ge.styles,
|
|
21110
|
+
En.styles = [ge.styles, Z3];
|
|
21113
21111
|
ho([
|
|
21114
21112
|
z({ type: Boolean, reflect: !0 })
|
|
21115
21113
|
], En.prototype, "active", 2);
|
|
@@ -21119,10 +21117,10 @@ ho([
|
|
|
21119
21117
|
En = ho([
|
|
21120
21118
|
Fe("lr-dimmer")
|
|
21121
21119
|
], En);
|
|
21122
|
-
var
|
|
21123
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21120
|
+
var Q3 = Object.defineProperty, ew = Object.getOwnPropertyDescriptor, tw = (t, r, e, n) => {
|
|
21121
|
+
for (var i = n > 1 ? void 0 : n ? ew(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21124
21122
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21125
|
-
return n && i &&
|
|
21123
|
+
return n && i && Q3(r, e, i), i;
|
|
21126
21124
|
};
|
|
21127
21125
|
let Nc = class extends En {
|
|
21128
21126
|
constructor() {
|
|
@@ -21132,7 +21130,7 @@ let Nc = class extends En {
|
|
|
21132
21130
|
return fe`<lr-spinner></lr-spinner> `;
|
|
21133
21131
|
}
|
|
21134
21132
|
};
|
|
21135
|
-
Nc =
|
|
21133
|
+
Nc = tw([
|
|
21136
21134
|
Fe("lr-loading-overlay")
|
|
21137
21135
|
], Nc);
|
|
21138
21136
|
et(
|
|
@@ -21177,7 +21175,7 @@ et(
|
|
|
21177
21175
|
* Copyright 2020 Google LLC
|
|
21178
21176
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21179
21177
|
*/
|
|
21180
|
-
const
|
|
21178
|
+
const nw = (t) => t.strings === void 0;
|
|
21181
21179
|
/**
|
|
21182
21180
|
* @license
|
|
21183
21181
|
* Copyright 2017 Google LLC
|
|
@@ -21200,20 +21198,20 @@ const rr = (t, r) => {
|
|
|
21200
21198
|
let e = r._$AN;
|
|
21201
21199
|
if (e === void 0) r._$AN = e = /* @__PURE__ */ new Set();
|
|
21202
21200
|
else if (e.has(t)) break;
|
|
21203
|
-
e.add(t),
|
|
21201
|
+
e.add(t), aw(r);
|
|
21204
21202
|
}
|
|
21205
21203
|
};
|
|
21206
|
-
function
|
|
21204
|
+
function rw(t) {
|
|
21207
21205
|
this._$AN !== void 0 ? (_i(this), this._$AM = t, Kd(this)) : this._$AM = t;
|
|
21208
21206
|
}
|
|
21209
|
-
function
|
|
21207
|
+
function iw(t, r = !1, e = 0) {
|
|
21210
21208
|
const n = this._$AH, i = this._$AN;
|
|
21211
21209
|
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) rr(n[a], !1), _i(n[a]);
|
|
21212
21210
|
else n != null && (rr(n, !1), _i(n));
|
|
21213
21211
|
else rr(this, t);
|
|
21214
21212
|
}
|
|
21215
|
-
const
|
|
21216
|
-
t.type == Zi.CHILD && (t._$AP ?? (t._$AP =
|
|
21213
|
+
const aw = (t) => {
|
|
21214
|
+
t.type == Zi.CHILD && (t._$AP ?? (t._$AP = iw), t._$AQ ?? (t._$AQ = rw));
|
|
21217
21215
|
};
|
|
21218
21216
|
let Jd = class extends eo {
|
|
21219
21217
|
constructor() {
|
|
@@ -21227,7 +21225,7 @@ let Jd = class extends eo {
|
|
|
21227
21225
|
r !== this.isConnected && (this.isConnected = r, r ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (rr(this, r), _i(this));
|
|
21228
21226
|
}
|
|
21229
21227
|
setValue(r) {
|
|
21230
|
-
if (
|
|
21228
|
+
if (nw(this._$Ct)) this._$Ct._$AI(r, this);
|
|
21231
21229
|
else {
|
|
21232
21230
|
const e = [...this._$Ct._$AH];
|
|
21233
21231
|
e[this._$Ci] = r, this._$Ct._$AI(e, this, 0);
|
|
@@ -21238,7 +21236,7 @@ let Jd = class extends eo {
|
|
|
21238
21236
|
reconnected() {
|
|
21239
21237
|
}
|
|
21240
21238
|
};
|
|
21241
|
-
const
|
|
21239
|
+
const Ha = /* @__PURE__ */ new WeakMap(), sw = Yi(class extends Jd {
|
|
21242
21240
|
render(t) {
|
|
21243
21241
|
return se;
|
|
21244
21242
|
}
|
|
@@ -21250,13 +21248,13 @@ const ja = /* @__PURE__ */ new WeakMap(), nw = Yi(class extends Jd {
|
|
|
21250
21248
|
rt(t) {
|
|
21251
21249
|
if (this.isConnected || (t = void 0), typeof this.Y == "function") {
|
|
21252
21250
|
const r = this.ht ?? globalThis;
|
|
21253
|
-
let e =
|
|
21254
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
21251
|
+
let e = Ha.get(r);
|
|
21252
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Ha.set(r, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, t), t !== void 0 && this.Y.call(this.ht, t);
|
|
21255
21253
|
} else this.Y.value = t;
|
|
21256
21254
|
}
|
|
21257
21255
|
get lt() {
|
|
21258
21256
|
var t, r;
|
|
21259
|
-
return typeof this.Y == "function" ? (t =
|
|
21257
|
+
return typeof this.Y == "function" ? (t = Ha.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.Y) : (r = this.Y) == null ? void 0 : r.value;
|
|
21260
21258
|
}
|
|
21261
21259
|
disconnected() {
|
|
21262
21260
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -21264,7 +21262,7 @@ const ja = /* @__PURE__ */ new WeakMap(), nw = Yi(class extends Jd {
|
|
|
21264
21262
|
reconnected() {
|
|
21265
21263
|
this.rt(this.ct);
|
|
21266
21264
|
}
|
|
21267
|
-
}),
|
|
21265
|
+
}), ow = _e`
|
|
21268
21266
|
:host {
|
|
21269
21267
|
--chat-sticky-offset-right: 100px;
|
|
21270
21268
|
--chat-sticky-offset-bottom: 12%;
|
|
@@ -21671,7 +21669,7 @@ const ja = /* @__PURE__ */ new WeakMap(), nw = Yi(class extends Jd {
|
|
|
21671
21669
|
}
|
|
21672
21670
|
`
|
|
21673
21671
|
};
|
|
21674
|
-
var Gn, Kn, dn, hn, pn, fn,
|
|
21672
|
+
var Gn, Kn, dn, hn, pn, fn, Ga, Ka;
|
|
21675
21673
|
class ft {
|
|
21676
21674
|
}
|
|
21677
21675
|
D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
@@ -21680,9 +21678,9 @@ D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
|
21680
21678
|
}, D(dn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(dn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(dn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(dn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), dn)), D(ft, "ChatbotConversationsRatePost", (hn = class {
|
|
21681
21679
|
}, D(hn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(hn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(hn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(hn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), hn)), D(ft, "ChatbotConversationsMessagesRatePost", (pn = class {
|
|
21682
21680
|
}, D(pn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(pn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(pn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(pn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), pn)), D(ft, "ChatbotConversationsInteractionsSummarizePost", (fn = class {
|
|
21683
|
-
}, D(fn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(fn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(fn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(fn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), fn)), D(ft, "ChatbotIntegrationsPost", (
|
|
21684
|
-
}, D(
|
|
21685
|
-
}, D(
|
|
21681
|
+
}, D(fn, "isBadRequestProblemDetails", (r) => j.isAxiosError(r) && oe(r, 400)), D(fn, "isNotFoundProblemDetails", (r) => j.isAxiosError(r) && oe(r, 404)), D(fn, "isInternalServerErrorProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), D(fn, "isServiceUnavailableProblemDetails", (r) => j.isAxiosError(r) && oe(r, 503)), fn)), D(ft, "ChatbotIntegrationsPost", (Ga = class {
|
|
21682
|
+
}, D(Ga, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Ga)), D(ft, "ChatbotIntegrationsGet", (Ka = class {
|
|
21683
|
+
}, D(Ka, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Ka));
|
|
21686
21684
|
const qe = class qe extends lo {
|
|
21687
21685
|
constructor() {
|
|
21688
21686
|
super(...arguments);
|
|
@@ -21814,15 +21812,15 @@ D(qe, "Endpoints", {
|
|
|
21814
21812
|
}), /** ChatbotService API static errors typeguards */
|
|
21815
21813
|
D(qe, "Errors", ft);
|
|
21816
21814
|
let Kt = qe;
|
|
21817
|
-
const
|
|
21815
|
+
const lw = /* @__PURE__ */ new WeakMap();
|
|
21818
21816
|
let Dc = 0;
|
|
21819
|
-
const
|
|
21817
|
+
const Ua = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = () => new Promise((t) => requestAnimationFrame(t)), Hc = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], Uc = [{ opacity: 0 }], zc = [{ opacity: 0 }, { opacity: 1 }], qc = (t, r) => {
|
|
21820
21818
|
const e = t - r;
|
|
21821
21819
|
return e === 0 ? void 0 : e;
|
|
21822
21820
|
}, Vc = (t, r) => {
|
|
21823
21821
|
const e = t / r;
|
|
21824
21822
|
return e === 1 ? void 0 : e;
|
|
21825
|
-
},
|
|
21823
|
+
}, za = { left: (t, r) => {
|
|
21826
21824
|
const e = qc(t, r);
|
|
21827
21825
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
21828
21826
|
}, top: (t, r) => {
|
|
@@ -21838,8 +21836,8 @@ const Ha = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = (
|
|
|
21838
21836
|
r === 0 && (r = 1, e = { height: "1px" });
|
|
21839
21837
|
const n = Vc(t, r);
|
|
21840
21838
|
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
|
21841
|
-
} },
|
|
21842
|
-
class
|
|
21839
|
+
} }, cw = { duration: 333, easing: "ease-in-out" }, uw = ["left", "top", "width", "height", "opacity", "color", "background"], Wc = /* @__PURE__ */ new WeakMap();
|
|
21840
|
+
class dw extends Jd {
|
|
21843
21841
|
constructor(r) {
|
|
21844
21842
|
if (super(r), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, r.type === Zi.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
21845
21843
|
this.createFinished();
|
|
@@ -21858,7 +21856,7 @@ class ow extends Jd {
|
|
|
21858
21856
|
return se;
|
|
21859
21857
|
}
|
|
21860
21858
|
getController() {
|
|
21861
|
-
return
|
|
21859
|
+
return lw.get(this.u);
|
|
21862
21860
|
}
|
|
21863
21861
|
isDisabled() {
|
|
21864
21862
|
var r;
|
|
@@ -21872,12 +21870,12 @@ class ow extends Jd {
|
|
|
21872
21870
|
p(r) {
|
|
21873
21871
|
r = r ?? {};
|
|
21874
21872
|
const e = this.getController();
|
|
21875
|
-
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties =
|
|
21873
|
+
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties = uw), this.options = r;
|
|
21876
21874
|
}
|
|
21877
21875
|
m() {
|
|
21878
21876
|
const r = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
|
21879
21877
|
return this.options.properties.forEach((i) => {
|
|
21880
|
-
const a = e[i] ?? (
|
|
21878
|
+
const a = e[i] ?? (za[i] ? void 0 : n[i]), s = Number(a);
|
|
21881
21879
|
r[i] = isNaN(s) ? a + "" : s;
|
|
21882
21880
|
}), r;
|
|
21883
21881
|
}
|
|
@@ -21902,9 +21900,9 @@ class ow extends Jd {
|
|
|
21902
21900
|
const { from: a, to: s } = this.N(this.A, i, e);
|
|
21903
21901
|
this.log("measured", [this.A, i, a, s]), r = this.calculateKeyframes(a, s);
|
|
21904
21902
|
} else {
|
|
21905
|
-
const a =
|
|
21903
|
+
const a = Ua.get(this.options.inId);
|
|
21906
21904
|
if (a) {
|
|
21907
|
-
|
|
21905
|
+
Ua.delete(this.options.inId);
|
|
21908
21906
|
const { from: s, to: o } = this.N(a, i, e);
|
|
21909
21907
|
r = this.calculateKeyframes(s, o), r = this.options.in ? [{ ...this.options.in[0], ...r[0] }, ...this.options.in.slice(1), r[1]] : r, Dc++, r.forEach((l) => l.zIndex = Dc);
|
|
21910
21908
|
} else this.options.in && (r = [...this.options.in, {}]);
|
|
@@ -21922,7 +21920,7 @@ class ow extends Jd {
|
|
|
21922
21920
|
}
|
|
21923
21921
|
async disconnected() {
|
|
21924
21922
|
var e;
|
|
21925
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
21923
|
+
if (!this.h || (this.options.id !== void 0 && Ua.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
21926
21924
|
if (this.prepare(), await jc(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
21927
21925
|
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
21928
21926
|
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
|
@@ -21961,7 +21959,7 @@ class ow extends Jd {
|
|
|
21961
21959
|
}), r;
|
|
21962
21960
|
}
|
|
21963
21961
|
j(r, e = this.O()) {
|
|
21964
|
-
const n = { ...
|
|
21962
|
+
const n = { ...cw };
|
|
21965
21963
|
return e.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, r), n;
|
|
21966
21964
|
}
|
|
21967
21965
|
N(r, e, n) {
|
|
@@ -21978,8 +21976,8 @@ class ow extends Jd {
|
|
|
21978
21976
|
const o = {};
|
|
21979
21977
|
for (const l in e) {
|
|
21980
21978
|
const c = r[l], u = e[l];
|
|
21981
|
-
if (l in
|
|
21982
|
-
const d =
|
|
21979
|
+
if (l in za) {
|
|
21980
|
+
const d = za[l];
|
|
21983
21981
|
if (c === void 0 || u === void 0) continue;
|
|
21984
21982
|
const h = d(c, u);
|
|
21985
21983
|
h.transform !== void 0 && (o[l] = h.value, s = !0, i.transform = `${i.transform ?? ""} ${h.transform}`, h.overrideFrom !== void 0 && Object.assign(i, h.overrideFrom));
|
|
@@ -22010,8 +22008,8 @@ class ow extends Jd {
|
|
|
22010
22008
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
22011
22009
|
}
|
|
22012
22010
|
}
|
|
22013
|
-
const Ur = Yi(
|
|
22014
|
-
class
|
|
22011
|
+
const Ur = Yi(dw);
|
|
22012
|
+
class hw extends $3 {
|
|
22015
22013
|
constructor(r, e, n) {
|
|
22016
22014
|
super({
|
|
22017
22015
|
apiConfig: { baseURL: r, headers: { "x-country": e, "x-user-language": n } },
|
|
@@ -22064,33 +22062,33 @@ class lw extends I3 {
|
|
|
22064
22062
|
};
|
|
22065
22063
|
}
|
|
22066
22064
|
}
|
|
22067
|
-
function
|
|
22065
|
+
function pw() {
|
|
22068
22066
|
return `${window.location.pathname}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
22069
22067
|
}
|
|
22070
22068
|
var Zd = (t) => {
|
|
22071
22069
|
throw TypeError(t);
|
|
22072
|
-
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e),
|
|
22070
|
+
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e), qa = (t, r, e) => (Yd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), Va = (t, r, e) => r.has(t) ? Zd("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), Wa = (t, r, e, n) => (Yd(t, r, "write to private field"), r.set(t, e), e), ei, ti, ni;
|
|
22073
22071
|
class Xd {
|
|
22074
22072
|
constructor(r, e) {
|
|
22075
|
-
|
|
22073
|
+
Va(this, ei, pw()), Va(this, ti, null), Va(this, ni, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
22076
22074
|
}
|
|
22077
22075
|
get sourceId() {
|
|
22078
|
-
return
|
|
22076
|
+
return qa(this, ei);
|
|
22079
22077
|
}
|
|
22080
22078
|
set sourceId(r) {
|
|
22081
|
-
|
|
22079
|
+
Wa(this, ei, r);
|
|
22082
22080
|
}
|
|
22083
22081
|
get onMessage() {
|
|
22084
|
-
return
|
|
22082
|
+
return qa(this, ti);
|
|
22085
22083
|
}
|
|
22086
22084
|
set onMessage(r) {
|
|
22087
|
-
|
|
22085
|
+
Wa(this, ti, r);
|
|
22088
22086
|
}
|
|
22089
22087
|
get onError() {
|
|
22090
|
-
return
|
|
22088
|
+
return qa(this, ni);
|
|
22091
22089
|
}
|
|
22092
22090
|
set onError(r) {
|
|
22093
|
-
|
|
22091
|
+
Wa(this, ni, r);
|
|
22094
22092
|
}
|
|
22095
22093
|
registerOnMessageHandler() {
|
|
22096
22094
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -22116,13 +22114,13 @@ ni = /* @__PURE__ */ new WeakMap();
|
|
|
22116
22114
|
function Qd() {
|
|
22117
22115
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
22118
22116
|
}
|
|
22119
|
-
function
|
|
22117
|
+
function fw() {
|
|
22120
22118
|
return /La Redoute/i.test(navigator.userAgent);
|
|
22121
22119
|
}
|
|
22122
22120
|
function po(t) {
|
|
22123
22121
|
return new Promise((r) => setTimeout(r, t));
|
|
22124
22122
|
}
|
|
22125
|
-
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"),
|
|
22123
|
+
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), mw = _e`
|
|
22126
22124
|
:host {
|
|
22127
22125
|
position: relative;
|
|
22128
22126
|
.button-container {
|
|
@@ -22199,7 +22197,7 @@ let Kc = class {
|
|
|
22199
22197
|
* Copyright 2021 Google LLC
|
|
22200
22198
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22201
22199
|
*/
|
|
22202
|
-
class
|
|
22200
|
+
class gw {
|
|
22203
22201
|
get value() {
|
|
22204
22202
|
return this.o;
|
|
22205
22203
|
}
|
|
@@ -22232,12 +22230,12 @@ class hw {
|
|
|
22232
22230
|
* Copyright 2021 Google LLC
|
|
22233
22231
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22234
22232
|
*/
|
|
22235
|
-
let
|
|
22233
|
+
let vw = class extends Event {
|
|
22236
22234
|
constructor(r) {
|
|
22237
22235
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = r;
|
|
22238
22236
|
}
|
|
22239
22237
|
};
|
|
22240
|
-
class Jc extends
|
|
22238
|
+
class Jc extends gw {
|
|
22241
22239
|
constructor(r, e, n) {
|
|
22242
22240
|
var i, a;
|
|
22243
22241
|
super(e.context !== void 0 ? e.initialValue : n), this.onContextRequest = (s) => {
|
|
@@ -22255,7 +22253,7 @@ class Jc extends hw {
|
|
|
22255
22253
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
22256
22254
|
}
|
|
22257
22255
|
hostConnected() {
|
|
22258
|
-
this.host.dispatchEvent(new
|
|
22256
|
+
this.host.dispatchEvent(new vw(this.context));
|
|
22259
22257
|
}
|
|
22260
22258
|
}
|
|
22261
22259
|
/**
|
|
@@ -22263,7 +22261,7 @@ class Jc extends hw {
|
|
|
22263
22261
|
* Copyright 2017 Google LLC
|
|
22264
22262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22265
22263
|
*/
|
|
22266
|
-
function
|
|
22264
|
+
function yw({ context: t }) {
|
|
22267
22265
|
return (r, e) => {
|
|
22268
22266
|
const n = /* @__PURE__ */ new WeakMap();
|
|
22269
22267
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
@@ -22318,7 +22316,7 @@ function fo({ context: t, subscribe: r }) {
|
|
|
22318
22316
|
});
|
|
22319
22317
|
};
|
|
22320
22318
|
}
|
|
22321
|
-
const
|
|
22319
|
+
const bw = _e``, ww = _e`
|
|
22322
22320
|
:host {
|
|
22323
22321
|
--media-size: '${k(w.devices.mobile.max)}px';
|
|
22324
22322
|
--border-color: transparent;
|
|
@@ -22349,28 +22347,28 @@ const mw = _e``, gw = _e`
|
|
|
22349
22347
|
--padding: 8px 12px;
|
|
22350
22348
|
}
|
|
22351
22349
|
`;
|
|
22352
|
-
var
|
|
22353
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22350
|
+
var kw = Object.defineProperty, _w = Object.getOwnPropertyDescriptor, nh = (t, r, e, n) => {
|
|
22351
|
+
for (var i = n > 1 ? void 0 : n ? _w(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22354
22352
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22355
|
-
return n && i &&
|
|
22353
|
+
return n && i && kw(r, e, i), i;
|
|
22356
22354
|
};
|
|
22357
22355
|
let An = class extends xe {
|
|
22358
22356
|
constructor() {
|
|
22359
22357
|
super(...arguments), this.variant = "on-light";
|
|
22360
22358
|
}
|
|
22361
22359
|
};
|
|
22362
|
-
An.styles = [xe.styles,
|
|
22360
|
+
An.styles = [xe.styles, ww];
|
|
22363
22361
|
nh([
|
|
22364
22362
|
z({ type: String, reflect: !0 })
|
|
22365
22363
|
], An.prototype, "variant", 2);
|
|
22366
22364
|
An = nh([
|
|
22367
22365
|
Fe("lr-pill")
|
|
22368
22366
|
], An);
|
|
22369
|
-
const
|
|
22370
|
-
var
|
|
22371
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22367
|
+
const sa = Symbol("lr-chatbot-message-context");
|
|
22368
|
+
var Sw = Object.defineProperty, Cw = Object.getOwnPropertyDescriptor, oa = (t, r, e, n) => {
|
|
22369
|
+
for (var i = n > 1 ? void 0 : n ? Cw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22372
22370
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22373
|
-
return n && i &&
|
|
22371
|
+
return n && i && Sw(r, e, i), i;
|
|
22374
22372
|
};
|
|
22375
22373
|
let Tn = class extends An {
|
|
22376
22374
|
constructor() {
|
|
@@ -22418,20 +22416,20 @@ let Tn = class extends An {
|
|
|
22418
22416
|
r && window.open(r, "_blank");
|
|
22419
22417
|
}
|
|
22420
22418
|
};
|
|
22421
|
-
Tn.styles = [An.styles,
|
|
22422
|
-
|
|
22419
|
+
Tn.styles = [An.styles, bw];
|
|
22420
|
+
oa([
|
|
22423
22421
|
z({ type: String })
|
|
22424
22422
|
], Tn.prototype, "channel", 2);
|
|
22425
|
-
|
|
22423
|
+
oa([
|
|
22426
22424
|
z({ type: Boolean })
|
|
22427
22425
|
], Tn.prototype, "shouldGetSummary", 2);
|
|
22428
|
-
|
|
22429
|
-
fo({ context:
|
|
22426
|
+
oa([
|
|
22427
|
+
fo({ context: sa })
|
|
22430
22428
|
], Tn.prototype, "messageContext", 2);
|
|
22431
|
-
Tn =
|
|
22429
|
+
Tn = oa([
|
|
22432
22430
|
Fe("lr-chatbot-escalation-pill")
|
|
22433
22431
|
], Tn);
|
|
22434
|
-
const
|
|
22432
|
+
const xw = _e`
|
|
22435
22433
|
:host {
|
|
22436
22434
|
display: flex;
|
|
22437
22435
|
flex-direction: row;
|
|
@@ -22456,7 +22454,7 @@ et(
|
|
|
22456
22454
|
<path xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" d="M18.614 7.461C17.6102 10.4284 15.9765 12.0067 14.4345 13.4963C14.2886 13.6372 14.1436 13.7773 14 13.9177V24.4999H24.7192L27.2192 14.5H18.5C18.0955 14.5 17.7309 14.2563 17.5761 13.8827C17.4213 13.509 17.5069 13.0789 17.7929 12.7929C17.944 12.6417 18.8204 11.5802 19.2535 10.3467C19.4663 9.74063 19.5429 9.17414 19.4456 8.69003C19.3629 8.27809 19.1413 7.85319 18.614 7.461ZM12 24.4999V14.5H5V24.4999H12ZM12.5885 12.5C12.7527 12.3387 12.9145 12.1816 13.0737 12.027C14.6038 10.5414 15.893 9.28958 16.732 6.78297C16.9137 6.23995 17.3109 5.79477 17.8159 5.56288C18.3387 5.32285 18.9977 5.30998 19.5733 5.69171C20.6253 6.38928 21.2061 7.2989 21.4064 8.29616C21.5995 9.25741 21.4217 10.2086 21.1405 11.0093C20.9517 11.5472 20.7031 12.0537 20.4453 12.5H27.2192C28.5204 12.5 29.4751 13.7227 29.1595 14.985L26.6595 24.985C26.4369 25.8753 25.637 26.4999 24.7192 26.4999H13H5C3.89543 26.4999 3 25.6045 3 24.4999V14.5C3 13.3954 3.89543 12.5 5 12.5H12.5885Z" fill="currentcolor"/>
|
|
22457
22455
|
`
|
|
22458
22456
|
);
|
|
22459
|
-
const
|
|
22457
|
+
const Ew = _e`
|
|
22460
22458
|
:host .button {
|
|
22461
22459
|
padding: 10px;
|
|
22462
22460
|
|
|
@@ -22469,21 +22467,21 @@ const _w = _e`
|
|
|
22469
22467
|
}
|
|
22470
22468
|
}
|
|
22471
22469
|
`;
|
|
22472
|
-
var
|
|
22473
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22470
|
+
var Aw = Object.defineProperty, Tw = Object.getOwnPropertyDescriptor, Rw = (t, r, e, n) => {
|
|
22471
|
+
for (var i = n > 1 ? void 0 : n ? Tw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22474
22472
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22475
|
-
return n && i &&
|
|
22473
|
+
return n && i && Aw(r, e, i), i;
|
|
22476
22474
|
};
|
|
22477
22475
|
let Cs = class extends gt {
|
|
22478
22476
|
};
|
|
22479
|
-
Cs.styles = [gt.styles,
|
|
22480
|
-
Cs =
|
|
22477
|
+
Cs.styles = [gt.styles, Ew];
|
|
22478
|
+
Cs = Rw([
|
|
22481
22479
|
Fe("lr-icon-button")
|
|
22482
22480
|
], Cs);
|
|
22483
|
-
var
|
|
22484
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22481
|
+
var Ow = Object.defineProperty, Iw = Object.getOwnPropertyDescriptor, Mr = (t, r, e, n) => {
|
|
22482
|
+
for (var i = n > 1 ? void 0 : n ? Iw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22485
22483
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22486
|
-
return n && i &&
|
|
22484
|
+
return n && i && Ow(r, e, i), i;
|
|
22487
22485
|
};
|
|
22488
22486
|
let Jt = class extends ge {
|
|
22489
22487
|
constructor() {
|
|
@@ -22539,9 +22537,9 @@ let Jt = class extends ge {
|
|
|
22539
22537
|
`;
|
|
22540
22538
|
}
|
|
22541
22539
|
};
|
|
22542
|
-
Jt.styles = [ge.styles,
|
|
22540
|
+
Jt.styles = [ge.styles, xw];
|
|
22543
22541
|
Mr([
|
|
22544
|
-
fo({ context:
|
|
22542
|
+
fo({ context: sa })
|
|
22545
22543
|
], Jt.prototype, "messageContext", 2);
|
|
22546
22544
|
Mr([
|
|
22547
22545
|
Pt()
|
|
@@ -22555,7 +22553,7 @@ Mr([
|
|
|
22555
22553
|
Jt = Mr([
|
|
22556
22554
|
Fe("lr-chatbot-message-rating")
|
|
22557
22555
|
], Jt);
|
|
22558
|
-
const
|
|
22556
|
+
const Lw = _e`
|
|
22559
22557
|
:host lr-rating-element {
|
|
22560
22558
|
margin-left: -2px;
|
|
22561
22559
|
}
|
|
@@ -22567,7 +22565,7 @@ et(
|
|
|
22567
22565
|
<path xmlns="http://www.w3.org/2000/svg" d="M9.87758 19L10.8547 19.2127C10.9296 18.8686 10.818 18.5105 10.5609 18.2698L9.87758 19ZM4.00003 13.5L3.88079 12.5071C3.49477 12.5535 3.17061 12.8194 3.04966 13.1889C2.9287 13.5584 3.03288 13.9645 3.31677 14.2302L4.00003 13.5ZM12.3266 12.5L12.4458 13.4929C12.8079 13.4494 13.1176 13.2123 13.254 12.8741L12.3266 12.5ZM15.7551 4L16.6825 3.62592C16.53 3.24768 16.163 3 15.7551 3C15.3473 3 14.9803 3.24768 14.8277 3.62592L15.7551 4ZM19.1837 12.5L18.2563 12.8741C18.3936 13.2145 18.7063 13.4523 19.071 13.4936L19.1837 12.5ZM28 13.5L28.6537 14.2568C28.9543 13.9971 29.0727 13.5842 28.9554 13.2047C28.8382 12.8252 28.5074 12.5511 28.1127 12.5064L28 13.5ZM21.6327 19L20.979 18.2432C20.7017 18.4827 20.5776 18.8547 20.6556 19.2127L21.6327 19ZM23.5919 28L23.0939 28.8672C23.4368 29.0641 23.8635 29.0405 24.1826 28.8069C24.5016 28.5733 24.6531 28.1737 24.569 27.7873L23.5919 28ZM15.7551 23.5L16.2531 22.6328C15.9447 22.4557 15.5655 22.4557 15.2572 22.6328L15.7551 23.5ZM7.9184 28L6.94128 27.7873C6.85718 28.1737 7.00863 28.5733 7.32768 28.8069C7.64674 29.0405 8.07346 29.0641 8.41636 28.8672L7.9184 28ZM10.5609 18.2698L4.6833 12.7698L3.31677 14.2302L9.19432 19.7302L10.5609 18.2698ZM4.11927 14.4929L12.4458 13.4929L12.2073 11.5071L3.88079 12.5071L4.11927 14.4929ZM13.254 12.8741L16.6825 4.37408L14.8277 3.62592L11.3992 12.1259L13.254 12.8741ZM14.8277 4.37408L18.2563 12.8741L20.1111 12.1259L16.6825 3.62592L14.8277 4.37408ZM19.071 13.4936L27.8873 14.4936L28.1127 12.5064L19.2964 11.5064L19.071 13.4936ZM27.3463 12.7432L20.979 18.2432L22.2864 19.7568L28.6537 14.2568L27.3463 12.7432ZM20.6556 19.2127L22.6148 28.2127L24.569 27.7873L22.6098 18.7873L20.6556 19.2127ZM24.0898 27.1328L16.2531 22.6328L15.2572 24.3672L23.0939 28.8672L24.0898 27.1328ZM15.2572 22.6328L7.42044 27.1328L8.41636 28.8672L16.2531 24.3672L15.2572 22.6328ZM8.89552 28.2127L10.8547 19.2127L8.90047 18.7873L6.94128 27.7873L8.89552 28.2127Z" fill="currentcolor"/>
|
|
22568
22566
|
`
|
|
22569
22567
|
);
|
|
22570
|
-
const
|
|
22568
|
+
const Mw = _e`
|
|
22571
22569
|
:host lr-icon-star-filled {
|
|
22572
22570
|
display: inline-block;
|
|
22573
22571
|
cursor: default;
|
|
@@ -22596,10 +22594,10 @@ const Rw = _e`
|
|
|
22596
22594
|
opacity: 1;
|
|
22597
22595
|
}
|
|
22598
22596
|
`;
|
|
22599
|
-
var
|
|
22600
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22597
|
+
var Pw = Object.defineProperty, $w = Object.getOwnPropertyDescriptor, mo = (t, r, e, n) => {
|
|
22598
|
+
for (var i = n > 1 ? void 0 : n ? $w(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22601
22599
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22602
|
-
return n && i &&
|
|
22600
|
+
return n && i && Pw(r, e, i), i;
|
|
22603
22601
|
};
|
|
22604
22602
|
let br = class extends ge {
|
|
22605
22603
|
constructor() {
|
|
@@ -22609,7 +22607,7 @@ let br = class extends ge {
|
|
|
22609
22607
|
return fe`<lr-icon-star-filled size=${this.size}></lr-icon-star-filled>`;
|
|
22610
22608
|
}
|
|
22611
22609
|
};
|
|
22612
|
-
br.styles = [ge.styles,
|
|
22610
|
+
br.styles = [ge.styles, Mw];
|
|
22613
22611
|
mo([
|
|
22614
22612
|
z({ type: Boolean, reflect: !0 })
|
|
22615
22613
|
], br.prototype, "active", 2);
|
|
@@ -22619,10 +22617,10 @@ mo([
|
|
|
22619
22617
|
br = mo([
|
|
22620
22618
|
Fe("lr-rating-element")
|
|
22621
22619
|
], br);
|
|
22622
|
-
var
|
|
22623
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22620
|
+
var Fw = Object.defineProperty, Nw = Object.getOwnPropertyDescriptor, Pr = (t, r, e, n) => {
|
|
22621
|
+
for (var i = n > 1 ? void 0 : n ? Nw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22624
22622
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22625
|
-
return n && i &&
|
|
22623
|
+
return n && i && Fw(r, e, i), i;
|
|
22626
22624
|
};
|
|
22627
22625
|
let Rt = class extends ge {
|
|
22628
22626
|
constructor() {
|
|
@@ -22666,7 +22664,7 @@ let Rt = class extends ge {
|
|
|
22666
22664
|
}
|
|
22667
22665
|
};
|
|
22668
22666
|
Rt.formAssociated = !0;
|
|
22669
|
-
Rt.styles = [ge.styles,
|
|
22667
|
+
Rt.styles = [ge.styles, Lw];
|
|
22670
22668
|
Pr([
|
|
22671
22669
|
z({ type: String })
|
|
22672
22670
|
], Rt.prototype, "size", 2);
|
|
@@ -22682,7 +22680,7 @@ Pr([
|
|
|
22682
22680
|
Rt = Pr([
|
|
22683
22681
|
Fe("lr-rating")
|
|
22684
22682
|
], Rt);
|
|
22685
|
-
const
|
|
22683
|
+
const Dw = _e`
|
|
22686
22684
|
:host {
|
|
22687
22685
|
--font-family: var(--lr-poppins);
|
|
22688
22686
|
--font-size: var(--lr-text-14);
|
|
@@ -22785,10 +22783,10 @@ const Pw = _e`
|
|
|
22785
22783
|
--font-size: var(--lr-text-14);
|
|
22786
22784
|
}
|
|
22787
22785
|
`;
|
|
22788
|
-
var
|
|
22789
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22786
|
+
var Bw = Object.defineProperty, jw = Object.getOwnPropertyDescriptor, Ne = (t, r, e, n) => {
|
|
22787
|
+
for (var i = n > 1 ? void 0 : n ? jw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22790
22788
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22791
|
-
return n && i &&
|
|
22789
|
+
return n && i && Bw(r, e, i), i;
|
|
22792
22790
|
};
|
|
22793
22791
|
let Ee = class extends ge {
|
|
22794
22792
|
constructor() {
|
|
@@ -22844,7 +22842,7 @@ let Ee = class extends ge {
|
|
|
22844
22842
|
}
|
|
22845
22843
|
};
|
|
22846
22844
|
Ee.formAssociated = !0;
|
|
22847
|
-
Ee.styles = [ge.styles,
|
|
22845
|
+
Ee.styles = [ge.styles, Dw];
|
|
22848
22846
|
Ne([
|
|
22849
22847
|
z({ type: String })
|
|
22850
22848
|
], Ee.prototype, "label", 2);
|
|
@@ -22893,7 +22891,7 @@ et(
|
|
|
22893
22891
|
<path xmlns="http://www.w3.org/2000/svg" d="M6 16.7778L12.1538 23L26 9" stroke="currentcolor" strokeWidth="2" strokeLinecap="square" strokeLinejoin="round"/>
|
|
22894
22892
|
`
|
|
22895
22893
|
);
|
|
22896
|
-
const
|
|
22894
|
+
const Hw = _e`
|
|
22897
22895
|
:host .feedback {
|
|
22898
22896
|
display: none;
|
|
22899
22897
|
margin: 0.625rem 0;
|
|
@@ -22909,10 +22907,10 @@ const Nw = _e`
|
|
|
22909
22907
|
gap: 0.5rem;
|
|
22910
22908
|
}
|
|
22911
22909
|
`;
|
|
22912
|
-
var
|
|
22913
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22910
|
+
var Uw = Object.defineProperty, zw = Object.getOwnPropertyDescriptor, Mn = (t, r, e, n) => {
|
|
22911
|
+
for (var i = n > 1 ? void 0 : n ? zw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22914
22912
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22915
|
-
return n && i &&
|
|
22913
|
+
return n && i && Uw(r, e, i), i;
|
|
22916
22914
|
};
|
|
22917
22915
|
let Ot = class extends ge {
|
|
22918
22916
|
constructor() {
|
|
@@ -22991,9 +22989,9 @@ let Ot = class extends ge {
|
|
|
22991
22989
|
`;
|
|
22992
22990
|
}
|
|
22993
22991
|
};
|
|
22994
|
-
Ot.styles = [
|
|
22992
|
+
Ot.styles = [Hw];
|
|
22995
22993
|
Mn([
|
|
22996
|
-
fo({ context:
|
|
22994
|
+
fo({ context: sa })
|
|
22997
22995
|
], Ot.prototype, "messageContext", 2);
|
|
22998
22996
|
Mn([
|
|
22999
22997
|
Pt()
|
|
@@ -23010,14 +23008,14 @@ Mn([
|
|
|
23010
23008
|
Ot = Mn([
|
|
23011
23009
|
Fe("lr-chatbot-conversation-rating")
|
|
23012
23010
|
], Ot);
|
|
23013
|
-
function
|
|
23011
|
+
function qw(t) {
|
|
23014
23012
|
const r = new RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![\\.,;:!?])", "g");
|
|
23015
23013
|
return t.replace(r, (n) => `<a href="${n}" style="color: inherit" target="_blank">${n}</a>`);
|
|
23016
23014
|
}
|
|
23017
|
-
var
|
|
23018
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
23015
|
+
var Vw = Object.defineProperty, Ww = Object.getOwnPropertyDescriptor, yt = (t, r, e, n) => {
|
|
23016
|
+
for (var i = n > 1 ? void 0 : n ? Ww(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23019
23017
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23020
|
-
return n && i &&
|
|
23018
|
+
return n && i && Vw(r, e, i), i;
|
|
23021
23019
|
};
|
|
23022
23020
|
let Ye = class extends ge {
|
|
23023
23021
|
constructor() {
|
|
@@ -23045,7 +23043,7 @@ let Ye = class extends ge {
|
|
|
23045
23043
|
${this.showConversationRating ? fe`<lr-chatbot-conversation-rating></lr-chatbot-conversation-rating>` : se}`;
|
|
23046
23044
|
}
|
|
23047
23045
|
};
|
|
23048
|
-
Ye.styles = [ge.styles,
|
|
23046
|
+
Ye.styles = [ge.styles, mw];
|
|
23049
23047
|
yt([
|
|
23050
23048
|
z({ type: String })
|
|
23051
23049
|
], Ye.prototype, "apiUrl", 2);
|
|
@@ -23068,13 +23066,13 @@ yt([
|
|
|
23068
23066
|
z({ type: Boolean })
|
|
23069
23067
|
], Ye.prototype, "showConversationRating", 2);
|
|
23070
23068
|
yt([
|
|
23071
|
-
|
|
23069
|
+
yw({ context: sa })
|
|
23072
23070
|
], Ye.prototype, "messageContext", 2);
|
|
23073
23071
|
Ye = yt([
|
|
23074
23072
|
Fe("lr-chatbot-message")
|
|
23075
23073
|
], Ye);
|
|
23076
23074
|
const Hn = (t) => {
|
|
23077
|
-
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e =
|
|
23075
|
+
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e = qw(r);
|
|
23078
23076
|
return `<lr-chatbot-message
|
|
23079
23077
|
${t.apiUrl ? `apiUrl="${t.apiUrl}"` : ""}
|
|
23080
23078
|
${t.conversationId ? `conversationId="${t.conversationId}"` : ""}
|
|
@@ -23087,18 +23085,18 @@ const Hn = (t) => {
|
|
|
23087
23085
|
${e}
|
|
23088
23086
|
</lr-chatbot-message>`;
|
|
23089
23087
|
};
|
|
23090
|
-
var
|
|
23088
|
+
var Gw = Object.defineProperty, Kw = Object.getOwnPropertyDescriptor, rh = (t) => {
|
|
23091
23089
|
throw TypeError(t);
|
|
23092
23090
|
}, Pn = (t, r, e, n) => {
|
|
23093
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
23091
|
+
for (var i = n > 1 ? void 0 : n ? Kw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23094
23092
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23095
|
-
return n && i &&
|
|
23093
|
+
return n && i && Gw(r, e, i), i;
|
|
23096
23094
|
}, ih = (t, r, e) => r.has(t) || rh("Cannot " + e), Un = (t, r, e) => (ih(t, r, "read from private field"), e ? e.call(t) : r.get(t)), zn = (t, r, e) => r.has(t) ? rh("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, e), qn = (t, r, e, n) => (ih(t, r, "write to private field"), r.set(t, e), e), ri, ii, ai, si, oi;
|
|
23097
23095
|
const ah = "lr.chatbot.broadcast_channel." + document.location.hostname, vn = "lr.chatbot.conversation_id", Vn = "lr.chatbot.conversation_state";
|
|
23098
23096
|
let It = class extends ge {
|
|
23099
23097
|
constructor() {
|
|
23100
23098
|
super({
|
|
23101
|
-
translationsLoaderGetter: () => new
|
|
23099
|
+
translationsLoaderGetter: () => new hw(this.apiUrl, this.country, this.language),
|
|
23102
23100
|
fetchAsyncServerTranslations: !0
|
|
23103
23101
|
}), zn(this, ri, "/bff"), zn(this, ii, !1), zn(this, ai, !1), zn(this, si, !1), zn(this, oi, !1), this._closeClickCount = 0, this._isConversationDone = !1, this._shouldEndConversation = !1, this._broadcastController = new Xd(
|
|
23104
23102
|
this,
|
|
@@ -23136,7 +23134,7 @@ let It = class extends ge {
|
|
|
23136
23134
|
qn(this, oi, t);
|
|
23137
23135
|
}
|
|
23138
23136
|
getVersion() {
|
|
23139
|
-
return "LR Chatbot - v0.31.
|
|
23137
|
+
return "LR Chatbot - v0.31.4";
|
|
23140
23138
|
}
|
|
23141
23139
|
async connectedCallback() {
|
|
23142
23140
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -23220,7 +23218,7 @@ let It = class extends ge {
|
|
|
23220
23218
|
async setDeepChatHistory() {
|
|
23221
23219
|
if (!this.deepChat)
|
|
23222
23220
|
throw Error("Deep Chat should be initialized at this point");
|
|
23223
|
-
this.disableDeepChatTextInput(), [
|
|
23221
|
+
this.disableDeepChatTextInput(), [$a.INITIAL, $a.ERROR].includes(this._conversationHistoryTask.status) && this._conversationHistoryTask.run();
|
|
23224
23222
|
let t = await this._conversationHistoryTask.taskComplete;
|
|
23225
23223
|
this.setInitialMessages(), t != null && t.messages && (this.deepChat.history = [
|
|
23226
23224
|
...this.deepChat.history ?? [],
|
|
@@ -23283,7 +23281,7 @@ let It = class extends ge {
|
|
|
23283
23281
|
language: this.language.split("-")[0].toLocaleUpperCase(),
|
|
23284
23282
|
question: e,
|
|
23285
23283
|
source: {
|
|
23286
|
-
platform: Qd() ?
|
|
23284
|
+
platform: Qd() ? fw() ? "application_webview" : "mobile_website" : "website",
|
|
23287
23285
|
channel: "web"
|
|
23288
23286
|
},
|
|
23289
23287
|
context: []
|
|
@@ -23440,13 +23438,13 @@ let It = class extends ge {
|
|
|
23440
23438
|
</div>
|
|
23441
23439
|
<div id="chat-wrapper-content">
|
|
23442
23440
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
23443
|
-
${this._conversationHistoryTask.status ===
|
|
23441
|
+
${this._conversationHistoryTask.status === $a.PENDING ? fe`<lr-loading-overlay
|
|
23444
23442
|
${Ur({
|
|
23445
23443
|
in: zc,
|
|
23446
23444
|
out: Uc
|
|
23447
23445
|
})}
|
|
23448
23446
|
></lr-loading-overlay>` : se}
|
|
23449
|
-
<deep-chat id="chat-element" part="chat-element" ${
|
|
23447
|
+
<deep-chat id="chat-element" part="chat-element" ${sw(this.handleDeepChatLoad)}></deep-chat>
|
|
23450
23448
|
</div>
|
|
23451
23449
|
</div>
|
|
23452
23450
|
`;
|
|
@@ -23479,7 +23477,7 @@ ii = /* @__PURE__ */ new WeakMap();
|
|
|
23479
23477
|
ai = /* @__PURE__ */ new WeakMap();
|
|
23480
23478
|
si = /* @__PURE__ */ new WeakMap();
|
|
23481
23479
|
oi = /* @__PURE__ */ new WeakMap();
|
|
23482
|
-
It.styles = [ge.styles,
|
|
23480
|
+
It.styles = [ge.styles, ow];
|
|
23483
23481
|
Pn([
|
|
23484
23482
|
z({ type: String })
|
|
23485
23483
|
], It.prototype, "apiUrl", 1);
|