lr-chatbot 0.29.4 → 0.29.6
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 +589 -589
- package/index.js.map +1 -1
- package/package.json +3 -3
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 Ka(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 Ka(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) ? Ka(t, r) : void 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ka(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 Ja(t) {
|
|
62
62
|
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
63
|
-
return
|
|
63
|
+
return Ja = 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,10 +71,10 @@ function Za(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
|
+
}, Ja(t);
|
|
75
75
|
}
|
|
76
76
|
function hh(t, r, e) {
|
|
77
|
-
if (
|
|
77
|
+
if (xs()) return Reflect.construct.apply(null, arguments);
|
|
78
78
|
var n = [null];
|
|
79
79
|
n.push.apply(n, r);
|
|
80
80
|
var i = new (t.bind.apply(t, n))();
|
|
@@ -88,7 +88,7 @@ function ph(t) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function V(t, r, e) {
|
|
91
|
-
return r = ar(r), fh(t,
|
|
91
|
+
return r = ar(r), fh(t, xs() ? Reflect.construct(r, e || [], ar(t).constructor) : r.apply(t, e));
|
|
92
92
|
}
|
|
93
93
|
function fh(t, r) {
|
|
94
94
|
if (r && (q(r) == "object" || typeof r == "function")) return r;
|
|
@@ -99,13 +99,13 @@ function ir(t) {
|
|
|
99
99
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
100
100
|
return t;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function xs() {
|
|
103
103
|
try {
|
|
104
104
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
105
105
|
}));
|
|
106
106
|
} catch {
|
|
107
107
|
}
|
|
108
|
-
return (
|
|
108
|
+
return (xs = function() {
|
|
109
109
|
return !!t;
|
|
110
110
|
})();
|
|
111
111
|
}
|
|
@@ -398,14 +398,14 @@ function ne(t) {
|
|
|
398
398
|
for (var r = 1; r < arguments.length; r++) {
|
|
399
399
|
var e = arguments[r] != null ? arguments[r] : {};
|
|
400
400
|
r % 2 ? _o(Object(e), !0).forEach(function(n) {
|
|
401
|
-
|
|
401
|
+
Es(t, n, e[n]);
|
|
402
402
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : _o(Object(e)).forEach(function(n) {
|
|
403
403
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return t;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Es(t, r, e) {
|
|
409
409
|
return (r = Qc(r)) in t ? Object.defineProperty(t, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = e, t;
|
|
410
410
|
}
|
|
411
411
|
function q(t) {
|
|
@@ -540,7 +540,7 @@ var gh = /* @__PURE__ */ function() {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}]);
|
|
543
|
-
}(),
|
|
543
|
+
}(), Za = /* @__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
|
+
Za.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", Za.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
|
|
563
|
+
var eu = Za, 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 ua = 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
|
+
}(), Ya = /* @__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
|
+
Ya.TEXT_INPUT_ID = "text-input", Ya.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
|
|
761
|
+
var or = Ya, ru = /* @__PURE__ */ function() {
|
|
762
762
|
function t() {
|
|
763
763
|
_(this, t);
|
|
764
764
|
}
|
|
@@ -784,7 +784,7 @@ function Co(t) {
|
|
|
784
784
|
function wh(t) {
|
|
785
785
|
return t && JSON.stringify(t);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function As(t, r, e, n) {
|
|
788
788
|
var i = `
|
|
789
789
|
`.concat(Co(r), " message: ").concat(JSON.stringify(t), `
|
|
790
790
|
`), a = e ? "".concat(Co(r), " message after interceptor: ").concat(wh(n), `
|
|
@@ -792,16 +792,16 @@ function Ts(t, r, e, n) {
|
|
|
792
792
|
return i + a;
|
|
793
793
|
}
|
|
794
794
|
function kh(t, r, e, n) {
|
|
795
|
-
return "".concat(
|
|
795
|
+
return "".concat(As(t, r, e, n), "Make sure the ").concat(r, ` message is using the Response format: https://deepchat.dev/docs/connect/#Response
|
|
796
796
|
You can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`);
|
|
797
797
|
}
|
|
798
798
|
function _h(t, r, e) {
|
|
799
799
|
var n = "response";
|
|
800
|
-
return "".concat(
|
|
800
|
+
return "".concat(As(t, n, r, e), "Make sure the ").concat(n, ' message is using the {text: string} format, e.g: {text: "Model Response"}');
|
|
801
801
|
}
|
|
802
802
|
function Sh(t, r) {
|
|
803
803
|
var e = "request";
|
|
804
|
-
return "".concat(
|
|
804
|
+
return "".concat(As(t, e, r), "Make sure the ").concat(e, ' message is using the {body: {text: string}} format, e.g: {body: {text: "Model Response"}}');
|
|
805
805
|
}
|
|
806
806
|
var xo = `Make sure the events are using {text: string} or {html: string} format.
|
|
807
807
|
You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`, me = {
|
|
@@ -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", Xa = {
|
|
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(Xa), 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 = Xa[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 = Xa[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
|
+
}(), Qa = /* @__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 es(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 ts(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)) ? es(e) : t;
|
|
1388
1388
|
}
|
|
1389
1389
|
function qt(t) {
|
|
1390
1390
|
return t.indexOf("&") < 0 ? t : t.replace(Ih, Mh);
|
|
@@ -1636,14 +1636,14 @@ var Zt = N.getBreak = function(t, r) {
|
|
|
1636
1636
|
return r = hu(t, r), r < t.length && t[r].type === "list_item_close" ? "" : `
|
|
1637
1637
|
`;
|
|
1638
1638
|
};
|
|
1639
|
-
function
|
|
1639
|
+
function Ts() {
|
|
1640
1640
|
this.rules = uu({}, N), this.getBreak = N.getBreak;
|
|
1641
1641
|
}
|
|
1642
|
-
|
|
1642
|
+
Ts.prototype.renderInline = function(t, r, e) {
|
|
1643
1643
|
for (var n = this.rules, i = t.length, a = 0, s = ""; i--; ) s += n[t[a].type](t, a++, r, e, this);
|
|
1644
1644
|
return s;
|
|
1645
1645
|
};
|
|
1646
|
-
|
|
1646
|
+
Ts.prototype.render = function(t, r, e) {
|
|
1647
1647
|
for (var n = this.rules, i = t.length, a = -1, s = ""; ++a < i; ) t[a].type === "inline" ? s += this.renderInline(t[a].children, r, e) : s += n[t[a].type](t, a, r, e, this);
|
|
1648
1648
|
return s;
|
|
1649
1649
|
};
|
|
@@ -1777,7 +1777,7 @@ function jh(t) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function ts(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 = ts(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 da(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(da).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(da).join("|") + ")($|[" + Ro.split("").map(da).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 ha = [["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 < ha.length; t++) this.ruler.push(ha[t][0], ha[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 pa(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 = pa(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 = pa(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 = pa(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++
|
|
@@ -2417,13 +2417,13 @@ function gp(t, r) {
|
|
|
2417
2417
|
})), !0;
|
|
2418
2418
|
}
|
|
2419
2419
|
var Dr = [["code", ep], ["fences", tp, ["paragraph", "blockquote", "list"]], ["blockquote", np, ["paragraph", "blockquote", "list"]], ["hr", rp, ["paragraph", "blockquote", "list"]], ["list", ap, ["paragraph", "blockquote"]], ["footnote", sp, ["paragraph"]], ["heading", op, ["paragraph", "blockquote"]], ["lheading", lp], ["htmlblock", hp, ["paragraph", "blockquote"]], ["table", pp, ["paragraph"]], ["deflist", mp, ["paragraph"]], ["paragraph", gp]];
|
|
2420
|
-
function
|
|
2420
|
+
function Rs() {
|
|
2421
2421
|
this.ruler = new He();
|
|
2422
2422
|
for (var t = 0; t < Dr.length; t++) this.ruler.push(Dr[t][0], Dr[t][1], {
|
|
2423
2423
|
alt: (Dr[t][2] || []).slice()
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
|
-
|
|
2426
|
+
Rs.prototype.tokenize = function(t, r, e) {
|
|
2427
2427
|
for (var n = this.ruler.getRules(""), i = n.length, a = r, s = !1, o, l; a < e && (t.line = a = t.skipEmptyLines(a), !(a >= e || t.tShift[a] < t.blkIndent)); ) {
|
|
2428
2428
|
for (l = 0; l < i && (o = n[l](t, a, e, !1), !o); l++) ;
|
|
2429
2429
|
if (t.tight = !s, t.isEmpty(t.line - 1) && (s = !0), a = t.line, a < e && t.isEmpty(a)) {
|
|
@@ -2433,7 +2433,7 @@ Os.prototype.tokenize = function(t, r, e) {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
2435
|
var vp = /[\n\t]/g, yp = /\r[\n\u0085]|[\u2424\u2028\u0085]/g, bp = /\u00a0/g;
|
|
2436
|
-
|
|
2436
|
+
Rs.prototype.parse = function(t, r, e, n) {
|
|
2437
2437
|
var i, a = 0, s = 0;
|
|
2438
2438
|
if (!t) return [];
|
|
2439
2439
|
t = t.replace(bp, " "), t = t.replace(yp, `
|
|
@@ -2498,16 +2498,16 @@ function _p(t, r) {
|
|
|
2498
2498
|
for (i++; i < n && t.src.charCodeAt(i) === 32; ) i++;
|
|
2499
2499
|
return t.pos = i, !0;
|
|
2500
2500
|
}
|
|
2501
|
-
var
|
|
2502
|
-
for (var $o = 0; $o < 256; $o++)
|
|
2501
|
+
var Os = [];
|
|
2502
|
+
for (var $o = 0; $o < 256; $o++) Os.push(0);
|
|
2503
2503
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) {
|
|
2504
|
-
|
|
2504
|
+
Os[t.charCodeAt(0)] = 1;
|
|
2505
2505
|
});
|
|
2506
2506
|
function Sp(t, r) {
|
|
2507
2507
|
var e, n = t.pos, i = t.posMax;
|
|
2508
2508
|
if (t.src.charCodeAt(n) !== 92) return !1;
|
|
2509
2509
|
if (n++, n < i) {
|
|
2510
|
-
if (e = t.src.charCodeAt(n), e < 256 &&
|
|
2510
|
+
if (e = t.src.charCodeAt(n), e < 256 && Os[e] !== 0) return r || (t.pending += t.src[n]), t.pos += 2, !0;
|
|
2511
2511
|
if (e === 10) {
|
|
2512
2512
|
for (r || t.push({
|
|
2513
2513
|
type: "hardbreak",
|
|
@@ -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 = ts(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 = ts("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) ? es(n) : es(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 fa = [["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 < fa.length; t++) this.ruler.push(fa[t][0], fa[t][1]);
|
|
2807
2807
|
this.validateLink = af;
|
|
2808
2808
|
}
|
|
2809
2809
|
xi.prototype.skipToken = function(t) {
|
|
@@ -2957,7 +2957,7 @@ function mt(t, r) {
|
|
|
2957
2957
|
import Remarkable from 'remarkable';
|
|
2958
2958
|
import linkify from 'remarkable/linkify';
|
|
2959
2959
|
new Remarkable().use(linkify)
|
|
2960
|
-
`), this.inline = new xi(), this.block = new
|
|
2960
|
+
`), this.inline = new xi(), this.block = new Rs(), this.core = new gu(), this.renderer = new Ts(), this.ruler = new He(), this.options = {}, this.configure(cf[t]), this.set(r || {});
|
|
2961
2961
|
}
|
|
2962
2962
|
mt.prototype.set = function(t) {
|
|
2963
2963
|
uu(this.options, t);
|
|
@@ -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 ns = /* @__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 = ns.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 = ns.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
|
+
}(), rs = /* @__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) : Qa.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
|
+
rs.MESSAGE_CLASS = "streamed-message", rs.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
|
|
3456
|
+
var kt = rs, ku = /* @__PURE__ */ function() {
|
|
3457
3457
|
function t() {
|
|
3458
3458
|
_(this, t);
|
|
3459
3459
|
}
|
|
@@ -3571,10 +3571,10 @@ var kt = is, 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 is.apply(this, arguments);
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3576
|
+
function is() {
|
|
3577
|
+
return is = 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 as() {
|
|
|
3596
3596
|
return s.stop();
|
|
3597
3597
|
}
|
|
3598
3598
|
}, t);
|
|
3599
|
-
})),
|
|
3599
|
+
})), is.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
|
+
}, as = "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 = as);
|
|
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(as))) throw new Error("Expected content-type to be ".concat(as, ", Actual: ").concat(r));
|
|
3727
3727
|
}
|
|
3728
3728
|
var we = /* @__PURE__ */ function() {
|
|
3729
3729
|
function t() {
|
|
@@ -3754,7 +3754,7 @@ var we = /* @__PURE__ */ function() {
|
|
|
3754
3754
|
J.next = 17;
|
|
3755
3755
|
break;
|
|
3756
3756
|
}
|
|
3757
|
-
return J.abrupt("return",
|
|
3757
|
+
return J.abrupt("return", Is.stream(i, v, s));
|
|
3758
3758
|
case 17:
|
|
3759
3759
|
if (((d = i.connectSettings) == null ? void 0 : d.url) !== _t.URL) {
|
|
3760
3760
|
J.next = 19;
|
|
@@ -3880,7 +3880,7 @@ var we = /* @__PURE__ */ function() {
|
|
|
3880
3880
|
value: function(e, n, i, a) {
|
|
3881
3881
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, o = e[s];
|
|
3882
3882
|
if (o) {
|
|
3883
|
-
n.upsertStreamedMessage(
|
|
3883
|
+
n.upsertStreamedMessage(Es({}, a, o));
|
|
3884
3884
|
var l = setTimeout(function() {
|
|
3885
3885
|
t.populateMessages(e, n, i, a, s + 1);
|
|
3886
3886
|
}, i.simulationInterim || 6);
|
|
@@ -4007,7 +4007,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4007
4007
|
if (t.isElementPresentInDOM(e.deepChat)) {
|
|
4008
4008
|
var i = e.connectSettings.websocket;
|
|
4009
4009
|
if (i) {
|
|
4010
|
-
if (e.connectSettings.handler) return
|
|
4010
|
+
if (e.connectSettings.handler) return Is.websocket(e, n);
|
|
4011
4011
|
try {
|
|
4012
4012
|
var a = typeof i != "boolean" ? i : void 0, s = new WebSocket(e.connectSettings.url || "", a);
|
|
4013
4013
|
e.websocket = s, e.websocket.onopen = function() {
|
|
@@ -4149,7 +4149,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
}
|
|
4151
4151
|
}]);
|
|
4152
|
-
}(),
|
|
4152
|
+
}(), Is = /* @__PURE__ */ function() {
|
|
4153
4153
|
function t() {
|
|
4154
4154
|
_(this, t);
|
|
4155
4155
|
}
|
|
@@ -4367,7 +4367,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4367
4367
|
R.next = 13;
|
|
4368
4368
|
break;
|
|
4369
4369
|
}
|
|
4370
|
-
return R.abrupt("return",
|
|
4370
|
+
return R.abrupt("return", Is.request(i, p, s));
|
|
4371
4371
|
case 13:
|
|
4372
4372
|
if (((u = i.connectSettings) == null ? void 0 : u.url) !== _t.URL) {
|
|
4373
4373
|
R.next = 15;
|
|
@@ -4536,7 +4536,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4536
4536
|
});
|
|
4537
4537
|
}
|
|
4538
4538
|
}]);
|
|
4539
|
-
}(),
|
|
4539
|
+
}(), Ls = /* @__PURE__ */ function() {
|
|
4540
4540
|
function t() {
|
|
4541
4541
|
_(this, t);
|
|
4542
4542
|
}
|
|
@@ -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 = ns.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
|
}]);
|
|
@@ -4795,7 +4795,7 @@ var _t = _u, ur = /* @__PURE__ */ function() {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
throw new Error("Request settings have not been set up");
|
|
4797
4797
|
case 2:
|
|
4798
|
-
s =
|
|
4798
|
+
s = Ls.processMessages(a.messages, this.maxMessages, this.totalMessagesMaxCharLength), this.connectSettings.websocket ? (o = ne({
|
|
4799
4799
|
messages: s
|
|
4800
4800
|
}, this.rawBody), ur.sendWebsocket(this, o, a, !1)) : this.callServiceAPI(a, s, i.files);
|
|
4801
4801
|
case 4:
|
|
@@ -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
|
+
}(), ss = /* @__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__ */ Ja(HTMLElement));
|
|
4975
|
+
ss._attributes_ = {}, ss._attributeToProperty_ = {};
|
|
4976
|
+
var wf = ss, 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"
|
|
@@ -5177,7 +5177,7 @@ var Sf = Su, Cf = /* @__PURE__ */ function() {
|
|
|
5177
5177
|
key: "enableButtons",
|
|
5178
5178
|
value: function(e, n) {
|
|
5179
5179
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
5180
|
-
window.webLLM ? (e && (e.disabled = !1), n && (n.disabled = !1)) : i <
|
|
5180
|
+
window.webLLM ? (e && (e.disabled = !1), n && (n.disabled = !1)) : i < Ms.MODULE_SEARCH_LIMIT_S * 4 && setTimeout(function() {
|
|
5181
5181
|
return t.enableButtons(e, n, i + 1);
|
|
5182
5182
|
}, 250);
|
|
5183
5183
|
}
|
|
@@ -5837,7 +5837,7 @@ var jo = Jn, Ho = {
|
|
|
5837
5837
|
}]);
|
|
5838
5838
|
}(ui);
|
|
5839
5839
|
mn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", mn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", mn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", mn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", mn.MODULE_SEARCH_LIMIT_S = 5;
|
|
5840
|
-
var
|
|
5840
|
+
var Ms = mn, Uo = /* @__PURE__ */ function() {
|
|
5841
5841
|
function t() {
|
|
5842
5842
|
_(this, t);
|
|
5843
5843
|
}
|
|
@@ -5911,7 +5911,7 @@ var Ps = mn, Uo = /* @__PURE__ */ function() {
|
|
|
5911
5911
|
}]);
|
|
5912
5912
|
}(Ie);
|
|
5913
5913
|
Cu.URL_PREFIX = "https://api-inference.huggingface.co/models/";
|
|
5914
|
-
var Qt = Cu,
|
|
5914
|
+
var Qt = Cu, Ps = /* @__PURE__ */ function(t) {
|
|
5915
5915
|
function r(e, n, i, a, s, o) {
|
|
5916
5916
|
var l;
|
|
5917
5917
|
return _(this, r), l = V(this, r, [e, n, i, a, s, o]), l.isTextInputDisabled = !0, l.canSendMessage = r.canSendFile, l;
|
|
@@ -6004,7 +6004,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6004
6004
|
return n;
|
|
6005
6005
|
}()
|
|
6006
6006
|
}]);
|
|
6007
|
-
}(
|
|
6007
|
+
}(Ps), Ef = /* @__PURE__ */ function(t) {
|
|
6008
6008
|
function r(e) {
|
|
6009
6009
|
_(this, r);
|
|
6010
6010
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.imageClassification, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6049,7 +6049,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6049
6049
|
return n;
|
|
6050
6050
|
}()
|
|
6051
6051
|
}]);
|
|
6052
|
-
}(
|
|
6052
|
+
}(Ps), wr = "data:image/png;base64,", xt = /* @__PURE__ */ function() {
|
|
6053
6053
|
function t() {
|
|
6054
6054
|
_(this, t);
|
|
6055
6055
|
}
|
|
@@ -6335,7 +6335,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6335
6335
|
return n;
|
|
6336
6336
|
}()
|
|
6337
6337
|
}]);
|
|
6338
|
-
}(
|
|
6338
|
+
}(Ps), Of = /* @__PURE__ */ function(t) {
|
|
6339
6339
|
function r(e) {
|
|
6340
6340
|
_(this, r);
|
|
6341
6341
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.huggingFace) == null ? void 0 : i.textGeneration, o = (a = e.directConnection) == null ? void 0 : a.huggingFace;
|
|
@@ -6824,7 +6824,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6824
6824
|
};
|
|
6825
6825
|
}
|
|
6826
6826
|
}]);
|
|
6827
|
-
}(),
|
|
6827
|
+
}(), $s = /* @__PURE__ */ function(t) {
|
|
6828
6828
|
function r(e, n, i, a, s) {
|
|
6829
6829
|
var o;
|
|
6830
6830
|
return _(this, r), o = V(this, r, [e, zo.buildKeyVerificationDetails(), zo.buildHeaders, s]), o.insertKeyPlaceholderText = "Cohere API Key", o.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", o.permittedErrorPrefixes = ["invalid"], o.url = n, o.textInputPlaceholderText = i, a && q(a) == "object" && Object.assign(o.rawBody, a), o;
|
|
@@ -6899,7 +6899,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6899
6899
|
return n;
|
|
6900
6900
|
}()
|
|
6901
6901
|
}]);
|
|
6902
|
-
}(
|
|
6902
|
+
}($s), Bf = /* @__PURE__ */ function(t) {
|
|
6903
6903
|
function r(e) {
|
|
6904
6904
|
_(this, r);
|
|
6905
6905
|
var n, i, a, s = (i = (n = e.directConnection) == null ? void 0 : n.cohere) == null ? void 0 : i.summarization, o = (a = e.directConnection) == null ? void 0 : a.cohere;
|
|
@@ -6967,7 +6967,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
6967
6967
|
return n;
|
|
6968
6968
|
}()
|
|
6969
6969
|
}]);
|
|
6970
|
-
}(
|
|
6970
|
+
}($s), Re = /* @__PURE__ */ function() {
|
|
6971
6971
|
function t() {
|
|
6972
6972
|
_(this, t);
|
|
6973
6973
|
}
|
|
@@ -7027,7 +7027,7 @@ var Qt = Cu, $s = /* @__PURE__ */ function(t) {
|
|
|
7027
7027
|
return e;
|
|
7028
7028
|
}()
|
|
7029
7029
|
}]);
|
|
7030
|
-
}(),
|
|
7030
|
+
}(), os = /* @__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, $s = /* @__PURE__ */ function(t) {
|
|
|
7116
7116
|
}()
|
|
7117
7117
|
}]);
|
|
7118
7118
|
}(Ie);
|
|
7119
|
-
|
|
7120
|
-
var jf =
|
|
7119
|
+
os.DEFAULT_MODEL = "tts-1", os.DEFAULT_VOIDE = "alloy";
|
|
7120
|
+
var jf = os, 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), ma = /* @__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, ma.buildKeyVerificationDetails(), ma.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, ma.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), ls = /* @__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
|
+
ls.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", ls.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 = ls, Gr = /* @__PURE__ */ function(t) {
|
|
8191
8191
|
function r(e) {
|
|
8192
8192
|
var n, i, a;
|
|
8193
8193
|
_(this, r);
|
|
@@ -8236,7 +8236,7 @@ var Ft = cs, Gr = /* @__PURE__ */ function(t) {
|
|
|
8236
8236
|
}, {
|
|
8237
8237
|
key: "processMessage",
|
|
8238
8238
|
value: function(n, i) {
|
|
8239
|
-
var a = this.totalMessagesMaxCharLength || -1, s =
|
|
8239
|
+
var a = this.totalMessagesMaxCharLength || -1, s = Ls.getCharacterLimitMessages(n, a)[0];
|
|
8240
8240
|
if (i && i.length > 0) {
|
|
8241
8241
|
var o = this.filesToolType;
|
|
8242
8242
|
if (typeof this.filesToolType == "function") {
|
|
@@ -8933,7 +8933,7 @@ var Jf = Kr, Zf = /* @__PURE__ */ function(t) {
|
|
|
8933
8933
|
value: (
|
|
8934
8934
|
// prettier-ignore
|
|
8935
8935
|
function(n, i) {
|
|
8936
|
-
var a, s = JSON.parse(JSON.stringify(n)), o =
|
|
8936
|
+
var a, s = JSON.parse(JSON.stringify(n)), o = Ls.getCharacterLimitMessages(i, this.totalMessagesMaxCharLength ? this.totalMessagesMaxCharLength - this._systemMessage.content.length : -1).map(function(l) {
|
|
8937
8937
|
return {
|
|
8938
8938
|
content: r.getContent(l),
|
|
8939
8939
|
role: l.role === Z.USER_ROLE ? "user" : "assistant"
|
|
@@ -9229,7 +9229,7 @@ var Jf = Kr, Zf = /* @__PURE__ */ function(t) {
|
|
|
9229
9229
|
return n;
|
|
9230
9230
|
}()
|
|
9231
9231
|
}]);
|
|
9232
|
-
}(
|
|
9232
|
+
}($s), qo = /* @__PURE__ */ function() {
|
|
9233
9233
|
function t() {
|
|
9234
9234
|
_(this, t);
|
|
9235
9235
|
}
|
|
@@ -9349,7 +9349,7 @@ var Jf = Kr, Zf = /* @__PURE__ */ function(t) {
|
|
|
9349
9349
|
// this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
|
|
9350
9350
|
function(e) {
|
|
9351
9351
|
var n = e.directConnection, i = e.connect, a = e.demo, s = e.webModel;
|
|
9352
|
-
if (s) return new
|
|
9352
|
+
if (s) return new Ms(e);
|
|
9353
9353
|
if (n) {
|
|
9354
9354
|
if (n.openAI) return n.openAI.images ? new Jf(e) : n.openAI.speechToText ? new Hf(e) : n.openAI.textToSpeech ? new jf(e) : n.openAI.assistant ? new Kf(e) : new Zf(e);
|
|
9355
9355
|
if (n.assemblyAI) return new qf(e);
|
|
@@ -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 = Qa.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 = Qa.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, ga = Li, nt = tn, va = Mi, tl = Rn, nl = nn, ya = 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, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11074
11074
|
}, {
|
|
11075
11075
|
key: "prepare",
|
|
11076
11076
|
value: function(e) {
|
|
11077
|
-
|
|
11077
|
+
va.Padding.setState(this, e), ga.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, va = Li, nt = tn, ya = 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 = ya.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, va = Li, nt = tn, ya = Mi, tl = Rn, nl =
|
|
|
11108
11108
|
}, {
|
|
11109
11109
|
key: "updatePrimitiveElement",
|
|
11110
11110
|
value: function(e, n, i) {
|
|
11111
|
-
this.isHighlighted &&
|
|
11111
|
+
this.isHighlighted && ga.Highlight.removeForPrimitive(this, e), this.primitiveTextRecorded || va.Padding.adjustStateAfterRecodingPrimitiveElement(this, e), i && va.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, va = Li, nt = tn, ya = 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 && ga.Highlight.removeForGeneric(this, e), this.spansPopulated || nt.Elements.appendSpans(this, e);
|
|
11123
|
+
var a = (i ? "" : this.startPadding) + ya.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 = ya.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 ba = 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(ba.README_URL)), !1) : n.region ? !0 : (e("Please define a 'region' property - more info: ".concat(ba.README_URL)), !1) : (e("Please provide subscription details - more info: ".concat(ba.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, wa = 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, ka = 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 && wa.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, ka = 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
|
+
wa.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, ka = 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
|
+
wa.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, l, c), l !== "" && (this._newTextPadding = " ");
|
|
11502
11502
|
}
|
|
11503
11503
|
break;
|
|
11504
11504
|
}
|
|
@@ -11605,7 +11605,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11605
11605
|
var i = this;
|
|
11606
11606
|
this._silenceTimeout = setTimeout(function() {
|
|
11607
11607
|
var a;
|
|
11608
|
-
(a = e.submit) == null || a.call(e), Jr.stop(), i.stop || setTimeout(n,
|
|
11608
|
+
(a = e.submit) == null || a.call(e), Jr.stop(), i.stop || setTimeout(n, Fs.MICROPHONE_RESET_TIMEOUT_MS);
|
|
11609
11609
|
}, this.silenceMS);
|
|
11610
11610
|
}
|
|
11611
11611
|
}, {
|
|
@@ -11726,7 +11726,7 @@ var ll = Ai, zm = Cr, Je = Pi, qm = $i, Vm = /* @__PURE__ */ function() {
|
|
|
11726
11726
|
}]);
|
|
11727
11727
|
}(Ru);
|
|
11728
11728
|
Pu.MICROPHONE_RESET_TIMEOUT_MS = 300;
|
|
11729
|
-
var
|
|
11729
|
+
var Fs = Pu, Ns = /* @__PURE__ */ function() {
|
|
11730
11730
|
function t(r, e, n, i) {
|
|
11731
11731
|
var a = this;
|
|
11732
11732
|
_(this, t), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = n, this._fileAttachmentsContainerRef = i, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
|
|
@@ -11746,7 +11746,7 @@ var Ns = Pu, Ds = /* @__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 = cs.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 Ns = Pu, Ds = /* @__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), cs.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (n = this._validationHandler) == null || n.call(this);
|
|
11788
11788
|
}
|
|
11789
11789
|
}, {
|
|
11790
11790
|
key: "getFiles",
|
|
@@ -11959,9 +11959,9 @@ var Ns = Pu, Ds = /* @__PURE__ */ function() {
|
|
|
11959
11959
|
(s = (a = (i = n.children[0]) == null ? void 0 : i.children) == null ? void 0 : a[0]) != null && s.classList.contains("stop-icon") && n.children[0].click();
|
|
11960
11960
|
}
|
|
11961
11961
|
}]);
|
|
11962
|
-
}(
|
|
11962
|
+
}(Ns);
|
|
11963
11963
|
$u.TIMER_LIMIT_S = 5999;
|
|
11964
|
-
var
|
|
11964
|
+
var cs = $u, Km = /* @__PURE__ */ function() {
|
|
11965
11965
|
function t() {
|
|
11966
11966
|
_(this, t);
|
|
11967
11967
|
}
|
|
@@ -11970,11 +11970,11 @@ var us = $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 cs(e, n, i, a) : new Ns(e, n, i, a);
|
|
11974
11974
|
}
|
|
11975
11975
|
)
|
|
11976
11976
|
}]);
|
|
11977
|
-
}(),
|
|
11977
|
+
}(), Ds = /* @__PURE__ */ function() {
|
|
11978
11978
|
function t(r, e, n) {
|
|
11979
11979
|
_(this, t), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
|
|
11980
11980
|
var i = q(n) == "object" && !!n.displayFileAttachmentContainer;
|
|
@@ -12200,7 +12200,7 @@ var Xn = Fu, Jm = /* @__PURE__ */ function(t) {
|
|
|
12200
12200
|
}, {
|
|
12201
12201
|
key: "import",
|
|
12202
12202
|
value: function(n) {
|
|
12203
|
-
|
|
12203
|
+
Ds.addFilesToType(Array.from(n.files || []), [this._fileAttachmentsType]), n.value = "";
|
|
12204
12204
|
}
|
|
12205
12205
|
}, {
|
|
12206
12206
|
key: "addClickEvent",
|
|
@@ -12635,7 +12635,7 @@ var Xn = Fu, Jm = /* @__PURE__ */ function(t) {
|
|
|
12635
12635
|
}, a.files && (o.files = Array.from(a.files).map(function(u) {
|
|
12636
12636
|
return {
|
|
12637
12637
|
file: u,
|
|
12638
|
-
type:
|
|
12638
|
+
type: Ns.getTypeFromBlob(u)
|
|
12639
12639
|
};
|
|
12640
12640
|
})), setTimeout(function() {
|
|
12641
12641
|
return s.attemptSubmit(o, !0);
|
|
@@ -12743,7 +12743,7 @@ var Xn = Fu, Jm = /* @__PURE__ */ function(t) {
|
|
|
12743
12743
|
var n = this;
|
|
12744
12744
|
this.elementRef.classList.contains(r.SUBMIT_CLASS) || (this.elementRef.classList.remove(r.LOADING_CLASS, r.DISABLED_CLASS), this.elementRef.classList.add(r.SUBMIT_CLASS), this.elementRef.replaceChildren(this._innerElements.submit), dl.resetSubmit(this, this.status.loadingActive), this.elementRef.onclick = function() {
|
|
12745
12745
|
var i;
|
|
12746
|
-
n.submitFromInput(), (i = n._microphoneButton) != null && i.isActive &&
|
|
12746
|
+
n.submitFromInput(), (i = n._microphoneButton) != null && i.isActive && Fs.toggleSpeechAfterSubmit(n._microphoneButton.elementRef, !!n._stopSTTAfterSubmit);
|
|
12747
12747
|
});
|
|
12748
12748
|
}
|
|
12749
12749
|
// called every time when user triggers an input via ValidationHandler - hence use class to check if not already present
|
|
@@ -12831,7 +12831,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12831
12831
|
o.capture();
|
|
12832
12832
|
}, i.addEventListener("click", this.stop.bind(this)), a.onclick = function() {
|
|
12833
12833
|
var l = o.getFile();
|
|
12834
|
-
l &&
|
|
12834
|
+
l && Ds.addFilesToType([l], [s]), o.stop(), o.close();
|
|
12835
12835
|
};
|
|
12836
12836
|
}
|
|
12837
12837
|
}, {
|
|
@@ -12950,7 +12950,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12950
12950
|
_(this, t), this.elementRef = t.createPanelElement(r.inputAreaStyle);
|
|
12951
12951
|
var a = {}, s = this.createFileUploadComponents(r, n, i, a), o = new or(r, n, s);
|
|
12952
12952
|
r.speechToText && !a.microphone && (a.microphone = {
|
|
12953
|
-
button: new
|
|
12953
|
+
button: new Fs(r, o, e.addNewErrorMessage.bind(e))
|
|
12954
12954
|
});
|
|
12955
12955
|
var l = new Qm(r, o.inputElementRef, e, n, s, a);
|
|
12956
12956
|
o.submit = l.submitFromInput.bind(l), Zm.attach(r, n, o, s, l), r.submitUserMessage = l.programmaticSubmit.bind(l), a.submit = {
|
|
@@ -12962,7 +12962,7 @@ var Qm = Zr, e0 = `<?xml version="1.0" encoding="utf-8"?>
|
|
|
12962
12962
|
value: (
|
|
12963
12963
|
// prettier-ignore
|
|
12964
12964
|
function(e, n, i, a) {
|
|
12965
|
-
var s, o, l, c, u = new
|
|
12965
|
+
var s, o, l, c, u = new Ds(this.elementRef, e.attachmentContainerStyle, n.demo);
|
|
12966
12966
|
if (t.createUploadButtons(e, n.fileTypes || {}, u, i, a), (s = n.camera) != null && s.files) {
|
|
12967
12967
|
var d = ((o = a.images) == null ? void 0 : o.fileType) || u.addType(e, n.camera.files, "images");
|
|
12968
12968
|
a.camera = {
|
|
@@ -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), ua.apply(c0, e.shadowRoot), setTimeout(function() {
|
|
13060
13060
|
e._hasBeenRendered || e.onRender();
|
|
13061
13061
|
}, 20), e;
|
|
13062
13062
|
}
|
|
@@ -13070,12 +13070,12 @@ 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 && (ua.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), ua.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",
|
|
13077
13077
|
value: function() {
|
|
13078
|
-
|
|
13078
|
+
Ms.chat = void 0;
|
|
13079
13079
|
}
|
|
13080
13080
|
}]);
|
|
13081
13081
|
}(wf);
|
|
@@ -13205,18 +13205,18 @@ function vl(t) {
|
|
|
13205
13205
|
var r = M0(t), e = r % 1;
|
|
13206
13206
|
return r === r ? e ? r - e : r : 0;
|
|
13207
13207
|
}
|
|
13208
|
-
function
|
|
13208
|
+
function Bs(t) {
|
|
13209
13209
|
return t;
|
|
13210
13210
|
}
|
|
13211
13211
|
var P0 = "[object AsyncFunction]", $0 = "[object Function]", F0 = "[object GeneratorFunction]", N0 = "[object Proxy]";
|
|
13212
|
-
function
|
|
13212
|
+
function js(t) {
|
|
13213
13213
|
if (!Ke(t))
|
|
13214
13214
|
return !1;
|
|
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 ka = Xe["__core-js_shared__"], yl = function() {
|
|
13219
|
+
var t = /[^.]+$/.exec(ka && ka.keys && ka.keys.IE_PROTO || "");
|
|
13220
13220
|
return t ? "Symbol(src)_1." + t : "";
|
|
13221
13221
|
}();
|
|
13222
13222
|
function D0(t) {
|
|
@@ -13242,7 +13242,7 @@ var U0 = /[\\^$.*+?()[\]{}|]/g, z0 = /^\[object .+?Constructor\]$/, q0 = Functio
|
|
|
13242
13242
|
function J0(t) {
|
|
13243
13243
|
if (!Ke(t) || D0(t))
|
|
13244
13244
|
return !1;
|
|
13245
|
-
var r =
|
|
13245
|
+
var r = js(t) ? K0 : z0;
|
|
13246
13246
|
return r.test(H0(t));
|
|
13247
13247
|
}
|
|
13248
13248
|
function Z0(t, r) {
|
|
@@ -13254,7 +13254,7 @@ function Ui(t, r) {
|
|
|
13254
13254
|
}
|
|
13255
13255
|
var bl = Ui(Xe, "WeakMap"), hi = bl && new bl(), Hu = hi ? function(t, r) {
|
|
13256
13256
|
return hi.set(t, r), t;
|
|
13257
|
-
} :
|
|
13257
|
+
} : Bs, wl = Object.create, zi = /* @__PURE__ */ function() {
|
|
13258
13258
|
function t() {
|
|
13259
13259
|
}
|
|
13260
13260
|
return function(r) {
|
|
@@ -13301,7 +13301,7 @@ function X0(t, r, e) {
|
|
|
13301
13301
|
}
|
|
13302
13302
|
return a;
|
|
13303
13303
|
}
|
|
13304
|
-
function
|
|
13304
|
+
function Hs(t, r, e) {
|
|
13305
13305
|
switch (e.length) {
|
|
13306
13306
|
case 0:
|
|
13307
13307
|
return t.call(r);
|
|
@@ -13339,13 +13339,13 @@ function tg(t, r) {
|
|
|
13339
13339
|
t[e] === r && ++n;
|
|
13340
13340
|
return n;
|
|
13341
13341
|
}
|
|
13342
|
-
function
|
|
13342
|
+
function Us() {
|
|
13343
13343
|
}
|
|
13344
13344
|
var ng = 4294967295;
|
|
13345
13345
|
function _n(t) {
|
|
13346
13346
|
this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = ng, this.__views__ = [];
|
|
13347
13347
|
}
|
|
13348
|
-
_n.prototype = zi(
|
|
13348
|
+
_n.prototype = zi(Us.prototype);
|
|
13349
13349
|
_n.prototype.constructor = _n;
|
|
13350
13350
|
function rg() {
|
|
13351
13351
|
}
|
|
@@ -13363,9 +13363,9 @@ function sg(t) {
|
|
|
13363
13363
|
function Sn(t, r) {
|
|
13364
13364
|
this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!r, this.__index__ = 0, this.__values__ = void 0;
|
|
13365
13365
|
}
|
|
13366
|
-
Sn.prototype = zi(
|
|
13366
|
+
Sn.prototype = zi(Us.prototype);
|
|
13367
13367
|
Sn.prototype.constructor = Sn;
|
|
13368
|
-
function
|
|
13368
|
+
function zs(t, r) {
|
|
13369
13369
|
var e = -1, n = t.length;
|
|
13370
13370
|
for (r || (r = Array(n)); ++e < n; )
|
|
13371
13371
|
r[e] = t[e];
|
|
@@ -13375,7 +13375,7 @@ function og(t) {
|
|
|
13375
13375
|
if (t instanceof _n)
|
|
13376
13376
|
return t.clone();
|
|
13377
13377
|
var r = new Sn(t.__wrapped__, t.__chain__);
|
|
13378
|
-
return r.__actions__ =
|
|
13378
|
+
return r.__actions__ = zs(t.__actions__), r.__index__ = t.__index__, r.__values__ = t.__values__, r;
|
|
13379
13379
|
}
|
|
13380
13380
|
var lg = Object.prototype, cg = lg.hasOwnProperty;
|
|
13381
13381
|
function pi(t) {
|
|
@@ -13387,7 +13387,7 @@ function pi(t) {
|
|
|
13387
13387
|
}
|
|
13388
13388
|
return new Sn(t);
|
|
13389
13389
|
}
|
|
13390
|
-
pi.prototype =
|
|
13390
|
+
pi.prototype = Us.prototype;
|
|
13391
13391
|
pi.prototype.constructor = pi;
|
|
13392
13392
|
function ug(t) {
|
|
13393
13393
|
var r = sg(t), e = pi[r];
|
|
@@ -13444,7 +13444,7 @@ var fi = function() {
|
|
|
13444
13444
|
value: bg(r),
|
|
13445
13445
|
writable: !0
|
|
13446
13446
|
});
|
|
13447
|
-
} :
|
|
13447
|
+
} : Bs, qs = Vu(wg);
|
|
13448
13448
|
function kg(t, r) {
|
|
13449
13449
|
for (var e = -1, n = t == null ? 0 : t.length; ++e < n && r(t[e], e, t) !== !1; )
|
|
13450
13450
|
;
|
|
@@ -13491,7 +13491,7 @@ function Ng(t, r) {
|
|
|
13491
13491
|
}
|
|
13492
13492
|
function Gu(t, r, e) {
|
|
13493
13493
|
var n = r + "";
|
|
13494
|
-
return
|
|
13494
|
+
return qs(t, yg(n, Ng(gg(n), e)));
|
|
13495
13495
|
}
|
|
13496
13496
|
var Dg = 1, Bg = 2, jg = 4, Hg = 8, _l = 32, Sl = 64;
|
|
13497
13497
|
function Ku(t, r, e, n, i, a, s, o, l, c) {
|
|
@@ -13522,7 +13522,7 @@ function Er(t, r) {
|
|
|
13522
13522
|
}
|
|
13523
13523
|
var qg = Math.min;
|
|
13524
13524
|
function Vg(t, r) {
|
|
13525
|
-
for (var e = t.length, n = qg(r.length, e), i =
|
|
13525
|
+
for (var e = t.length, n = qg(r.length, e), i = zs(t); n--; ) {
|
|
13526
13526
|
var a = r[n];
|
|
13527
13527
|
t[n] = Er(a, e) ? i[a] : void 0;
|
|
13528
13528
|
}
|
|
@@ -13537,7 +13537,7 @@ function mi(t, r) {
|
|
|
13537
13537
|
return a;
|
|
13538
13538
|
}
|
|
13539
13539
|
var Wg = 1, Gg = 2, Kg = 8, Jg = 16, Zg = 128, Yg = 512;
|
|
13540
|
-
function
|
|
13540
|
+
function Vs(t, r, e, n, i, a, s, o, l, c) {
|
|
13541
13541
|
var u = r & Zg, d = r & Wg, h = r & Gg, p = r & (Kg | Jg), f = r & Yg, g = h ? void 0 : dr(t);
|
|
13542
13542
|
function y() {
|
|
13543
13543
|
for (var v = arguments.length, b = Array(v), C = v; C--; )
|
|
@@ -13549,7 +13549,7 @@ function Ws(t, r, e, n, i, a, s, o, l, c) {
|
|
|
13549
13549
|
return Ku(
|
|
13550
13550
|
t,
|
|
13551
13551
|
r,
|
|
13552
|
-
|
|
13552
|
+
Vs,
|
|
13553
13553
|
y.placeholder,
|
|
13554
13554
|
e,
|
|
13555
13555
|
b,
|
|
@@ -13574,7 +13574,7 @@ function Xg(t, r, e) {
|
|
|
13574
13574
|
return Ku(
|
|
13575
13575
|
t,
|
|
13576
13576
|
r,
|
|
13577
|
-
|
|
13577
|
+
Vs,
|
|
13578
13578
|
i.placeholder,
|
|
13579
13579
|
void 0,
|
|
13580
13580
|
s,
|
|
@@ -13584,7 +13584,7 @@ function Xg(t, r, e) {
|
|
|
13584
13584
|
e - a
|
|
13585
13585
|
);
|
|
13586
13586
|
var u = this && this !== Xe && this instanceof i ? n : t;
|
|
13587
|
-
return
|
|
13587
|
+
return Hs(u, this, s);
|
|
13588
13588
|
}
|
|
13589
13589
|
return i;
|
|
13590
13590
|
}
|
|
@@ -13596,16 +13596,16 @@ function ev(t, r, e, n) {
|
|
|
13596
13596
|
d[c] = n[c];
|
|
13597
13597
|
for (; l--; )
|
|
13598
13598
|
d[c++] = arguments[++o];
|
|
13599
|
-
return
|
|
13599
|
+
return Hs(h, i ? e : this, d);
|
|
13600
13600
|
}
|
|
13601
13601
|
return s;
|
|
13602
13602
|
}
|
|
13603
|
-
var xl = "__lodash_placeholder__",
|
|
13603
|
+
var xl = "__lodash_placeholder__", _a = 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 < (_a | 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 & _a && (t[2] = r[2], i |= e & _a ? 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, Sa = 8, Ca = 16, xa = 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 &= ~(xa | 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,13 +13635,13 @@ 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 & (Sa | Ca) && (r &= ~(Sa | Ca)), !r || r == Tl)
|
|
13639
13639
|
var f = X0(t, r, e);
|
|
13640
|
-
else r ==
|
|
13640
|
+
else r == Sa || r == Ca ? f = Xg(t, r, o) : (r == xa || r == (Tl | xa)) && !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
|
}
|
|
13644
|
-
function
|
|
13644
|
+
function Ws(t, r, e) {
|
|
13645
13645
|
r == "__proto__" && fi ? fi(t, r, {
|
|
13646
13646
|
configurable: !0,
|
|
13647
13647
|
enumerable: !0,
|
|
@@ -13655,14 +13655,14 @@ function qi(t, r) {
|
|
|
13655
13655
|
var lv = Object.prototype, cv = lv.hasOwnProperty;
|
|
13656
13656
|
function Zu(t, r, e) {
|
|
13657
13657
|
var n = t[r];
|
|
13658
|
-
(!(cv.call(t, r) && qi(n, e)) || e === void 0 && !(r in t)) &&
|
|
13658
|
+
(!(cv.call(t, r) && qi(n, e)) || e === void 0 && !(r in t)) && Ws(t, r, e);
|
|
13659
13659
|
}
|
|
13660
13660
|
function uv(t, r, e, n) {
|
|
13661
13661
|
var i = !e;
|
|
13662
13662
|
e || (e = {});
|
|
13663
13663
|
for (var a = -1, s = r.length; ++a < s; ) {
|
|
13664
13664
|
var o = r[a], l = void 0;
|
|
13665
|
-
l === void 0 && (l = t[o]), i ?
|
|
13665
|
+
l === void 0 && (l = t[o]), i ? Ws(e, o, l) : Zu(e, o, l);
|
|
13666
13666
|
}
|
|
13667
13667
|
return e;
|
|
13668
13668
|
}
|
|
@@ -13674,24 +13674,24 @@ function Yu(t, r, e) {
|
|
|
13674
13674
|
i = -1;
|
|
13675
13675
|
for (var o = Array(r + 1); ++i < r; )
|
|
13676
13676
|
o[i] = n[i];
|
|
13677
|
-
return o[r] = e(s),
|
|
13677
|
+
return o[r] = e(s), Hs(t, this, o);
|
|
13678
13678
|
};
|
|
13679
13679
|
}
|
|
13680
13680
|
function dv(t, r) {
|
|
13681
|
-
return
|
|
13681
|
+
return qs(Yu(t, r, Bs), t + "");
|
|
13682
13682
|
}
|
|
13683
13683
|
var hv = 9007199254740991;
|
|
13684
|
-
function
|
|
13684
|
+
function Gs(t) {
|
|
13685
13685
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= hv;
|
|
13686
13686
|
}
|
|
13687
|
-
function
|
|
13688
|
-
return t != null &&
|
|
13687
|
+
function Ks(t) {
|
|
13688
|
+
return t != null && Gs(t.length) && !js(t);
|
|
13689
13689
|
}
|
|
13690
13690
|
function pv(t, r, e) {
|
|
13691
13691
|
if (!Ke(e))
|
|
13692
13692
|
return !1;
|
|
13693
13693
|
var n = typeof r;
|
|
13694
|
-
return (n == "number" ?
|
|
13694
|
+
return (n == "number" ? Ks(e) && Er(r, e.length) : n == "string" && r in e) ? qi(e[r], t) : !1;
|
|
13695
13695
|
}
|
|
13696
13696
|
function fv(t) {
|
|
13697
13697
|
return dv(function(r, e) {
|
|
@@ -13729,17 +13729,17 @@ var ed = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
13729
13729
|
de[Dv] = de[Bv] = de[jv] = de[Hv] = de[Uv] = de[zv] = de[qv] = de[Vv] = de[Wv] = !0;
|
|
13730
13730
|
de[Sv] = de[Cv] = de[Fv] = de[xv] = de[Nv] = de[Ev] = de[Av] = de[Tv] = de[Rv] = de[Ov] = de[Iv] = de[Lv] = de[Mv] = de[Pv] = de[$v] = !1;
|
|
13731
13731
|
function Gv(t) {
|
|
13732
|
-
return Lt(t) &&
|
|
13732
|
+
return Lt(t) && Gs(t.length) && !!de[On(t)];
|
|
13733
13733
|
}
|
|
13734
13734
|
function Kv(t) {
|
|
13735
13735
|
return function(r) {
|
|
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, Ea = 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 || Ea && Ea.binding && Ea.binding("util");
|
|
13743
13743
|
} catch {
|
|
13744
13744
|
}
|
|
13745
13745
|
}(), Fl = $l && $l.isTypedArray, rd = Fl ? Kv(Fl) : Gv;
|
|
@@ -13775,7 +13775,7 @@ function t1(t) {
|
|
|
13775
13775
|
return e;
|
|
13776
13776
|
}
|
|
13777
13777
|
function id(t) {
|
|
13778
|
-
return
|
|
13778
|
+
return Ks(t) ? Zv(t) : t1(t);
|
|
13779
13779
|
}
|
|
13780
13780
|
var n1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, r1 = /^\w*$/;
|
|
13781
13781
|
function i1(t, r) {
|
|
@@ -13906,7 +13906,7 @@ Mt.prototype.get = E1;
|
|
|
13906
13906
|
Mt.prototype.has = A1;
|
|
13907
13907
|
Mt.prototype.set = T1;
|
|
13908
13908
|
var R1 = "Expected a function";
|
|
13909
|
-
function
|
|
13909
|
+
function Js(t, r) {
|
|
13910
13910
|
if (typeof t != "function" || r != null && typeof r != "function")
|
|
13911
13911
|
throw new TypeError(R1);
|
|
13912
13912
|
var e = function() {
|
|
@@ -13916,12 +13916,12 @@ function Zs(t, r) {
|
|
|
13916
13916
|
var s = t.apply(this, n);
|
|
13917
13917
|
return e.cache = a.set(i, s) || a, s;
|
|
13918
13918
|
};
|
|
13919
|
-
return e.cache = new (
|
|
13919
|
+
return e.cache = new (Js.Cache || Mt)(), e;
|
|
13920
13920
|
}
|
|
13921
|
-
|
|
13921
|
+
Js.Cache = Mt;
|
|
13922
13922
|
var O1 = 500;
|
|
13923
13923
|
function I1(t) {
|
|
13924
|
-
var r =
|
|
13924
|
+
var r = Js(t, function(n) {
|
|
13925
13925
|
return e.size === O1 && e.clear(), n;
|
|
13926
13926
|
}), e = r.cache;
|
|
13927
13927
|
return r;
|
|
@@ -13939,7 +13939,7 @@ function Gi(t, r) {
|
|
|
13939
13939
|
return lt(t) ? t : i1(t, r) ? [t] : P1($1(t));
|
|
13940
13940
|
}
|
|
13941
13941
|
var F1 = 1 / 0;
|
|
13942
|
-
function
|
|
13942
|
+
function Zs(t) {
|
|
13943
13943
|
if (typeof t == "string" || Hi(t))
|
|
13944
13944
|
return t;
|
|
13945
13945
|
var r = t + "";
|
|
@@ -13948,7 +13948,7 @@ function Ys(t) {
|
|
|
13948
13948
|
function N1(t, r) {
|
|
13949
13949
|
r = Gi(r, t);
|
|
13950
13950
|
for (var e = 0, n = r.length; t != null && e < n; )
|
|
13951
|
-
t = t[
|
|
13951
|
+
t = t[Zs(r[e++])];
|
|
13952
13952
|
return e && e == n ? t : void 0;
|
|
13953
13953
|
}
|
|
13954
13954
|
function D1(t, r) {
|
|
@@ -13973,7 +13973,7 @@ function H1(t) {
|
|
|
13973
13973
|
return r ? j1(t) : [];
|
|
13974
13974
|
}
|
|
13975
13975
|
function U1(t) {
|
|
13976
|
-
return
|
|
13976
|
+
return qs(Yu(t, void 0, H1), t + "");
|
|
13977
13977
|
}
|
|
13978
13978
|
var sd = Yv(Object.getPrototypeOf, Object), z1 = "[object Object]", q1 = Function.prototype, V1 = Object.prototype, od = q1.toString, W1 = V1.hasOwnProperty, G1 = od.call(Object);
|
|
13979
13979
|
function K1(t) {
|
|
@@ -14041,12 +14041,12 @@ function s2(t, r) {
|
|
|
14041
14041
|
function o2(t, r, e) {
|
|
14042
14042
|
r = Gi(r, t);
|
|
14043
14043
|
for (var n = -1, i = r.length, a = !1; ++n < i; ) {
|
|
14044
|
-
var s =
|
|
14044
|
+
var s = Zs(r[n]);
|
|
14045
14045
|
if (!(a = t != null && e(t, s)))
|
|
14046
14046
|
break;
|
|
14047
14047
|
t = t[s];
|
|
14048
14048
|
}
|
|
14049
|
-
return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i &&
|
|
14049
|
+
return a || ++n != i ? a : (i = t == null ? 0 : t.length, !!i && Gs(i) && Er(s, i) && (lt(t) || hr(t)));
|
|
14050
14050
|
}
|
|
14051
14051
|
function l2(t, r) {
|
|
14052
14052
|
return t != null && o2(t, r, s2);
|
|
@@ -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
|
|
14072
|
-
(e !== void 0 && !qi(t[r], e) || e === void 0 && !(r in t)) &&
|
|
14071
|
+
function us(t, r, e) {
|
|
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
|
-
return Lt(t) &&
|
|
14075
|
+
return Lt(t) && Ks(t);
|
|
14076
14076
|
}
|
|
14077
|
-
function
|
|
14077
|
+
function ds(t, r) {
|
|
14078
14078
|
if (!(r === "constructor" && typeof t[r] == "function") && r != "__proto__")
|
|
14079
14079
|
return t[r];
|
|
14080
14080
|
}
|
|
@@ -14082,25 +14082,25 @@ 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 = ds(t, e), l = ds(r, e), c = s.get(l);
|
|
14086
14086
|
if (c) {
|
|
14087
|
-
|
|
14087
|
+
us(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;
|
|
14091
14091
|
if (d) {
|
|
14092
14092
|
var h = lt(l), p = !h && td(l), f = !h && !p && rd(l);
|
|
14093
|
-
u = l, h || p || f ? lt(o) ? u = o : h2(o) ? u =
|
|
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)), us(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(ds(t, s), a, s + "", t, r, i) : void 0;
|
|
14103
|
+
o === void 0 && (o = a), us(t, s, o);
|
|
14104
14104
|
}
|
|
14105
14105
|
}, id);
|
|
14106
14106
|
}
|
|
@@ -14116,7 +14116,7 @@ function ud(t, r, e, n) {
|
|
|
14116
14116
|
return t;
|
|
14117
14117
|
r = Gi(r, t);
|
|
14118
14118
|
for (var i = -1, a = r.length, s = a - 1, o = t; o != null && ++i < a; ) {
|
|
14119
|
-
var l =
|
|
14119
|
+
var l = Zs(r[i]), c = e;
|
|
14120
14120
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
14121
14121
|
return t;
|
|
14122
14122
|
if (i != s) {
|
|
@@ -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 Aa(t) {
|
|
14181
14181
|
return Math.round(t * 255);
|
|
14182
14182
|
}
|
|
14183
14183
|
function C2(t, r, e) {
|
|
14184
|
-
return `${
|
|
14184
|
+
return `${Aa(t)},${Aa(r)},${Aa(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}$/, Ta = /^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 = Ta.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 = Ta.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 = Ta.exec(c);
|
|
14471
14471
|
if (!u)
|
|
14472
14472
|
throw new at(4, r, c);
|
|
14473
14473
|
return {
|
|
@@ -15618,16 +15618,16 @@ const $2 = {
|
|
|
15618
15618
|
* Copyright 2019 Google LLC
|
|
15619
15619
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15620
15620
|
*/
|
|
15621
|
-
const Yr = globalThis,
|
|
15621
|
+
const Yr = globalThis, Ys = Yr.ShadowRoot && (Yr.ShadyCSS === void 0 || Yr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xs = Symbol(), Gl = /* @__PURE__ */ new WeakMap();
|
|
15622
15622
|
let hd = class {
|
|
15623
15623
|
constructor(r, e, n) {
|
|
15624
|
-
if (this._$cssResult$ = !0, n !==
|
|
15624
|
+
if (this._$cssResult$ = !0, n !== Xs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
15625
15625
|
this.cssText = r, this.t = e;
|
|
15626
15626
|
}
|
|
15627
15627
|
get styleSheet() {
|
|
15628
15628
|
let r = this.o;
|
|
15629
15629
|
const e = this.t;
|
|
15630
|
-
if (
|
|
15630
|
+
if (Ys && r === void 0) {
|
|
15631
15631
|
const n = e !== void 0 && e.length === 1;
|
|
15632
15632
|
n && (r = Gl.get(e)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), n && Gl.set(e, r));
|
|
15633
15633
|
}
|
|
@@ -15637,20 +15637,20 @@ let hd = class {
|
|
|
15637
15637
|
return this.cssText;
|
|
15638
15638
|
}
|
|
15639
15639
|
};
|
|
15640
|
-
const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0,
|
|
15640
|
+
const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Xs), _e = (t, ...r) => {
|
|
15641
15641
|
const e = t.length === 1 ? t[0] : r.reduce((n, i, a) => n + ((s) => {
|
|
15642
15642
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
15643
15643
|
if (typeof s == "number") return s;
|
|
15644
15644
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
15645
15645
|
})(i) + t[a + 1], t[0]);
|
|
15646
|
-
return new hd(e, t,
|
|
15646
|
+
return new hd(e, t, Xs);
|
|
15647
15647
|
}, V2 = (t, r) => {
|
|
15648
|
-
if (
|
|
15648
|
+
if (Ys) t.adoptedStyleSheets = r.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
15649
15649
|
else for (const e of r) {
|
|
15650
15650
|
const n = document.createElement("style"), i = Yr.litNonce;
|
|
15651
15651
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, t.appendChild(n);
|
|
15652
15652
|
}
|
|
15653
|
-
}, Kl =
|
|
15653
|
+
}, Kl = Ys ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((r) => {
|
|
15654
15654
|
let e = "";
|
|
15655
15655
|
for (const n of r.cssRules) e += n.cssText;
|
|
15656
15656
|
return k(e);
|
|
@@ -15660,7 +15660,7 @@ const k = (t) => new hd(typeof t == "string" ? t : t + "", void 0, Qs), _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 : "", Ra = 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,17 +15888,17 @@ 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(), Ra == null || Ra({ 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",
|
|
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", Oa = `[
|
|
15898
|
+
\f\r]`, Dn = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xl = /-->/g, Ql = />/g, Bt = RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
|
|
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
|
-
if (!
|
|
15901
|
+
if (!Qs(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
15902
15902
|
return Yl !== void 0 ? Yl.createHTML(r) : r;
|
|
15903
15903
|
}
|
|
15904
15904
|
const ty = (t, r) => {
|
|
@@ -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 hs = 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 = hs.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,10 +16027,10 @@ 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 hs(r)), e;
|
|
16031
16031
|
}
|
|
16032
16032
|
k(r) {
|
|
16033
|
-
|
|
16033
|
+
Qs(this._$AH) || (this._$AH = [], this._$AR());
|
|
16034
16034
|
const e = this._$AH;
|
|
16035
16035
|
let n, i = 0;
|
|
16036
16036
|
for (const a of r) i === e.length ? e.push(n = new Tr(this.O(fr()), this.O(fr()), this, this.options)) : n = e[i], n._$AI(a), i++;
|
|
@@ -16114,8 +16114,8 @@ class sy {
|
|
|
16114
16114
|
Cn(this, r);
|
|
16115
16115
|
}
|
|
16116
16116
|
}
|
|
16117
|
-
const
|
|
16118
|
-
|
|
16117
|
+
const Ia = tr.litHtmlPolyfillSupport;
|
|
16118
|
+
Ia == null || Ia(hs, 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 La = globalThis.litElementPolyfillSupport;
|
|
16161
|
+
La == null || La({ LitElement: nr });
|
|
16162
16162
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
16163
16163
|
const ly = _e`
|
|
16164
16164
|
:host {
|
|
@@ -16167,14 +16167,14 @@ const ly = _e`
|
|
|
16167
16167
|
:host .button {
|
|
16168
16168
|
--font-family: var(--lr-poppins);
|
|
16169
16169
|
--font-size: var(--lr-text-14);
|
|
16170
|
-
--background-color:
|
|
16170
|
+
--background-color: ${k(q2)};
|
|
16171
16171
|
--color: var(--lr-color-primary);
|
|
16172
16172
|
|
|
16173
16173
|
--padding: var(--lr-padding-medium);
|
|
16174
16174
|
--border-color: var(--lr-border-primary-color);
|
|
16175
16175
|
--border-radius: var(--lr-border-radius);
|
|
16176
16176
|
font-family: var(--font-family);
|
|
16177
|
-
background-color:
|
|
16177
|
+
background-color: var(--background-color);
|
|
16178
16178
|
color: var(--color);
|
|
16179
16179
|
padding: var(--padding);
|
|
16180
16180
|
font-size: var(--font-size);
|
|
@@ -16495,7 +16495,7 @@ const wn = (t) => t ?? se;
|
|
|
16495
16495
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16496
16496
|
*/
|
|
16497
16497
|
const Zi = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Yi = (t) => (...r) => ({ _$litDirective$: t, values: r });
|
|
16498
|
-
let
|
|
16498
|
+
let eo = class {
|
|
16499
16499
|
constructor(r) {
|
|
16500
16500
|
}
|
|
16501
16501
|
get _$AU() {
|
|
@@ -16516,7 +16516,7 @@ let to = class {
|
|
|
16516
16516
|
* Copyright 2018 Google LLC
|
|
16517
16517
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16518
16518
|
*/
|
|
16519
|
-
const Xi = Yi(class extends
|
|
16519
|
+
const Xi = Yi(class extends eo {
|
|
16520
16520
|
constructor(t) {
|
|
16521
16521
|
var r;
|
|
16522
16522
|
if (super(t), t.type !== Zi.ATTRIBUTE || t.name !== "class" || ((r = t.strings) == null ? void 0 : r.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -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 ps(t, r) {
|
|
16855
|
+
return ps = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
16856
16856
|
return e.__proto__ = n, e;
|
|
16857
|
-
},
|
|
16857
|
+
}, ps(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 && ps(t, r);
|
|
16870
16870
|
}
|
|
16871
16871
|
function Rr(t, r) {
|
|
16872
16872
|
if (r && (Ve(r) == "object" || typeof r == "function")) return r;
|
|
@@ -17067,7 +17067,7 @@ function _y(t, r, e) {
|
|
|
17067
17067
|
r[n] && (e[n] = r[n]);
|
|
17068
17068
|
});
|
|
17069
17069
|
}
|
|
17070
|
-
function
|
|
17070
|
+
function to(t, r, e) {
|
|
17071
17071
|
function n(o) {
|
|
17072
17072
|
return o && o.indexOf("###") > -1 ? o.replace(/###/g, ".") : o;
|
|
17073
17073
|
}
|
|
@@ -17085,15 +17085,15 @@ function no(t, r, e) {
|
|
|
17085
17085
|
};
|
|
17086
17086
|
}
|
|
17087
17087
|
function lc(t, r, e) {
|
|
17088
|
-
var n =
|
|
17088
|
+
var n = to(t, r, Object), i = n.obj, a = n.k;
|
|
17089
17089
|
i[a] = e;
|
|
17090
17090
|
}
|
|
17091
17091
|
function Sy(t, r, e, n) {
|
|
17092
|
-
var i =
|
|
17092
|
+
var i = to(t, r, Object), a = i.obj, s = i.k;
|
|
17093
17093
|
a[s] = a[s] || [], a[s].push(e);
|
|
17094
17094
|
}
|
|
17095
17095
|
function bi(t, r) {
|
|
17096
|
-
var e =
|
|
17096
|
+
var e = to(t, r), n = e.obj, i = e.k;
|
|
17097
17097
|
if (n)
|
|
17098
17098
|
return n[i];
|
|
17099
17099
|
}
|
|
@@ -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 oa = 0; oa < ze.length; oa++)
|
|
17463
|
+
Me.push(ze[oa]);
|
|
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, ca, 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, ca, wo, ye, a) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(rn, p, ca, wo, ye, a), o.emit("missingKey", rn, p, ca, 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(la) {
|
|
17470
|
+
o.pluralResolver.getSuffixes(la, a).forEach(function(rn) {
|
|
17471
|
+
yo([la], 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 Ma(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] = Ma(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] = Ma(i[1].toLowerCase())), n.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ma(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 Pa = { 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"], $a = {
|
|
18943
18943
|
fr: "fr-FR",
|
|
18944
18944
|
pt: "pt-PT",
|
|
18945
18945
|
nl: "nl-NL",
|
|
@@ -18989,20 +18989,20 @@ function nb(t, r, e = {}) {
|
|
|
18989
18989
|
}
|
|
18990
18990
|
return null;
|
|
18991
18991
|
}
|
|
18992
|
-
var
|
|
18993
|
-
Object.defineProperty(
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
const
|
|
18992
|
+
var no = {};
|
|
18993
|
+
Object.defineProperty(no, "__esModule", { value: !0 });
|
|
18994
|
+
var rb = no.parse = ub;
|
|
18995
|
+
no.serialize = db;
|
|
18996
|
+
const ib = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, ab = /^[\u0021-\u003A\u003C-\u007E]*$/, sb = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, ob = /^[\u0020-\u003A\u003D-\u007E]*$/, lb = Object.prototype.toString, cb = /* @__PURE__ */ (() => {
|
|
18997
18997
|
const t = function() {
|
|
18998
18998
|
};
|
|
18999
18999
|
return t.prototype = /* @__PURE__ */ Object.create(null), t;
|
|
19000
19000
|
})();
|
|
19001
|
-
function
|
|
19002
|
-
const e = new
|
|
19001
|
+
function ub(t, r) {
|
|
19002
|
+
const e = new cb(), n = t.length;
|
|
19003
19003
|
if (n < 2)
|
|
19004
19004
|
return e;
|
|
19005
|
-
const i = (r == null ? void 0 : r.decode) ||
|
|
19005
|
+
const i = (r == null ? void 0 : r.decode) || hb;
|
|
19006
19006
|
let a = 0;
|
|
19007
19007
|
do {
|
|
19008
19008
|
const s = t.indexOf("=", a);
|
|
@@ -19039,12 +19039,12 @@ function Cc(t, r, e) {
|
|
|
19039
19039
|
}
|
|
19040
19040
|
return e;
|
|
19041
19041
|
}
|
|
19042
|
-
function
|
|
19042
|
+
function db(t, r, e) {
|
|
19043
19043
|
const n = (e == null ? void 0 : e.encode) || encodeURIComponent;
|
|
19044
|
-
if (!
|
|
19044
|
+
if (!ib.test(t))
|
|
19045
19045
|
throw new TypeError(`argument name is invalid: ${t}`);
|
|
19046
19046
|
const i = n(r);
|
|
19047
|
-
if (!
|
|
19047
|
+
if (!ab.test(i))
|
|
19048
19048
|
throw new TypeError(`argument val is invalid: ${r}`);
|
|
19049
19049
|
let a = t + "=" + i;
|
|
19050
19050
|
if (!e)
|
|
@@ -19055,17 +19055,17 @@ function ub(t, r, e) {
|
|
|
19055
19055
|
a += "; Max-Age=" + e.maxAge;
|
|
19056
19056
|
}
|
|
19057
19057
|
if (e.domain) {
|
|
19058
|
-
if (!
|
|
19058
|
+
if (!sb.test(e.domain))
|
|
19059
19059
|
throw new TypeError(`option domain is invalid: ${e.domain}`);
|
|
19060
19060
|
a += "; Domain=" + e.domain;
|
|
19061
19061
|
}
|
|
19062
19062
|
if (e.path) {
|
|
19063
|
-
if (!
|
|
19063
|
+
if (!ob.test(e.path))
|
|
19064
19064
|
throw new TypeError(`option path is invalid: ${e.path}`);
|
|
19065
19065
|
a += "; Path=" + e.path;
|
|
19066
19066
|
}
|
|
19067
19067
|
if (e.expires) {
|
|
19068
|
-
if (!
|
|
19068
|
+
if (!pb(e.expires) || !Number.isFinite(e.expires.valueOf()))
|
|
19069
19069
|
throw new TypeError(`option expires is invalid: ${e.expires}`);
|
|
19070
19070
|
a += "; Expires=" + e.expires.toUTCString();
|
|
19071
19071
|
}
|
|
@@ -19100,7 +19100,7 @@ function ub(t, r, e) {
|
|
|
19100
19100
|
}
|
|
19101
19101
|
return a;
|
|
19102
19102
|
}
|
|
19103
|
-
function
|
|
19103
|
+
function hb(t) {
|
|
19104
19104
|
if (t.indexOf("%") === -1)
|
|
19105
19105
|
return t;
|
|
19106
19106
|
try {
|
|
@@ -19109,30 +19109,30 @@ function db(t) {
|
|
|
19109
19109
|
return t;
|
|
19110
19110
|
}
|
|
19111
19111
|
}
|
|
19112
|
-
function
|
|
19113
|
-
return
|
|
19112
|
+
function pb(t) {
|
|
19113
|
+
return lb.call(t) === "[object Date]";
|
|
19114
19114
|
}
|
|
19115
|
-
const
|
|
19115
|
+
const fs = (t) => Array.isArray($a[t]) ? $a[t] : [$a[t]], fb = (t, r) => fs(t).find((n) => n === r), mb = (t) => {
|
|
19116
19116
|
const { country: r, cookies: e, isFromWebview: n, acceptLanguageHeader: i } = t;
|
|
19117
19117
|
let a = null;
|
|
19118
19118
|
if (n) {
|
|
19119
19119
|
const s = i;
|
|
19120
19120
|
if (s) {
|
|
19121
|
-
const o =
|
|
19121
|
+
const o = fs(r), l = nb(o, s);
|
|
19122
19122
|
l && (a = l);
|
|
19123
19123
|
}
|
|
19124
19124
|
}
|
|
19125
19125
|
if (!a) {
|
|
19126
|
-
const s =
|
|
19126
|
+
const s = rb(e).BaseDirectory;
|
|
19127
19127
|
if (s)
|
|
19128
19128
|
a = `${s.toLocaleLowerCase()}-${r == null ? void 0 : r.toLocaleUpperCase()}`;
|
|
19129
19129
|
else {
|
|
19130
|
-
const o =
|
|
19130
|
+
const o = fs(r);
|
|
19131
19131
|
o ? a = o[0] : a = "fr-FR";
|
|
19132
19132
|
}
|
|
19133
19133
|
}
|
|
19134
19134
|
return a;
|
|
19135
|
-
},
|
|
19135
|
+
}, gb = function(t) {
|
|
19136
19136
|
const r = (n) => Object.fromEntries(Object.entries(n).filter(([i, a]) => a != null));
|
|
19137
19137
|
let e = {};
|
|
19138
19138
|
return Object.keys(t).forEach((n) => {
|
|
@@ -19154,28 +19154,28 @@ function Cd(t, r) {
|
|
|
19154
19154
|
return t.apply(r, arguments);
|
|
19155
19155
|
};
|
|
19156
19156
|
}
|
|
19157
|
-
const { toString:
|
|
19158
|
-
const e =
|
|
19157
|
+
const { toString: vb } = Object.prototype, { getPrototypeOf: io } = Object, ta = /* @__PURE__ */ ((t) => (r) => {
|
|
19158
|
+
const e = vb.call(r);
|
|
19159
19159
|
return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
|
|
19160
|
-
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) =>
|
|
19161
|
-
function
|
|
19160
|
+
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (r) => ta(r) === t), na = (t) => (r) => typeof r === t, { isArray: Ln } = Array, gr = na("undefined");
|
|
19161
|
+
function yb(t) {
|
|
19162
19162
|
return t !== null && !gr(t) && t.constructor !== null && !gr(t.constructor) && We(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
19163
19163
|
}
|
|
19164
19164
|
const xd = ht("ArrayBuffer");
|
|
19165
|
-
function
|
|
19165
|
+
function bb(t) {
|
|
19166
19166
|
let r;
|
|
19167
19167
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(t) : r = t && t.buffer && xd(t.buffer), r;
|
|
19168
19168
|
}
|
|
19169
|
-
const
|
|
19170
|
-
if (
|
|
19169
|
+
const wb = na("string"), We = na("function"), Ed = na("number"), ra = (t) => t !== null && typeof t == "object", kb = (t) => t === !0 || t === !1, Xr = (t) => {
|
|
19170
|
+
if (ta(t) !== "object")
|
|
19171
19171
|
return !1;
|
|
19172
19172
|
const r = io(t);
|
|
19173
19173
|
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
19174
|
-
},
|
|
19174
|
+
}, _b = ht("Date"), Sb = ht("File"), Cb = ht("Blob"), xb = ht("FileList"), Eb = (t) => ra(t) && We(t.pipe), Ab = (t) => {
|
|
19175
19175
|
let r;
|
|
19176
|
-
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r =
|
|
19176
|
+
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((r = ta(t)) === "formdata" || // detect form-data instance
|
|
19177
19177
|
r === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
19178
|
-
},
|
|
19178
|
+
}, Tb = ht("URLSearchParams"), Rb = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
19179
19179
|
function Or(t, r, { allOwnKeys: e = !1 } = {}) {
|
|
19180
19180
|
if (t === null || typeof t > "u")
|
|
19181
19181
|
return;
|
|
@@ -19200,22 +19200,22 @@ function Ad(t, r) {
|
|
|
19200
19200
|
return null;
|
|
19201
19201
|
}
|
|
19202
19202
|
const Td = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Rd = (t) => !gr(t) && t !== Td;
|
|
19203
|
-
function
|
|
19203
|
+
function ms() {
|
|
19204
19204
|
const { caseless: t } = Rd(this) && this || {}, r = {}, e = (n, i) => {
|
|
19205
19205
|
const a = t && Ad(r, i) || i;
|
|
19206
|
-
Xr(r[a]) && Xr(n) ? r[a] =
|
|
19206
|
+
Xr(r[a]) && Xr(n) ? r[a] = ms(r[a], n) : Xr(n) ? r[a] = ms({}, n) : Ln(n) ? r[a] = n.slice() : r[a] = n;
|
|
19207
19207
|
};
|
|
19208
19208
|
for (let n = 0, i = arguments.length; n < i; n++)
|
|
19209
19209
|
arguments[n] && Or(arguments[n], e);
|
|
19210
19210
|
return r;
|
|
19211
19211
|
}
|
|
19212
|
-
const
|
|
19212
|
+
const Ob = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
19213
19213
|
e && We(i) ? t[a] = Cd(i, e) : t[a] = i;
|
|
19214
|
-
}, { allOwnKeys: n }), t),
|
|
19214
|
+
}, { allOwnKeys: n }), t), Ib = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Lb = (t, r, e, n) => {
|
|
19215
19215
|
t.prototype = Object.create(r.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
19216
19216
|
value: r.prototype
|
|
19217
19217
|
}), e && Object.assign(t.prototype, e);
|
|
19218
|
-
},
|
|
19218
|
+
}, Mb = (t, r, e, n) => {
|
|
19219
19219
|
let i, a, s;
|
|
19220
19220
|
const o = {};
|
|
19221
19221
|
if (r = r || {}, t == null) return r;
|
|
@@ -19225,11 +19225,11 @@ const Rb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19225
19225
|
t = e !== !1 && io(t);
|
|
19226
19226
|
} while (t && (!e || e(t, r)) && t !== Object.prototype);
|
|
19227
19227
|
return r;
|
|
19228
|
-
},
|
|
19228
|
+
}, Pb = (t, r, e) => {
|
|
19229
19229
|
t = String(t), (e === void 0 || e > t.length) && (e = t.length), e -= r.length;
|
|
19230
19230
|
const n = t.indexOf(r, e);
|
|
19231
19231
|
return n !== -1 && n === e;
|
|
19232
|
-
},
|
|
19232
|
+
}, $b = (t) => {
|
|
19233
19233
|
if (!t) return null;
|
|
19234
19234
|
if (Ln(t)) return t;
|
|
19235
19235
|
let r = t.length;
|
|
@@ -19238,31 +19238,31 @@ const Rb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19238
19238
|
for (; r-- > 0; )
|
|
19239
19239
|
e[r] = t[r];
|
|
19240
19240
|
return e;
|
|
19241
|
-
},
|
|
19241
|
+
}, Fb = /* @__PURE__ */ ((t) => (r) => t && r instanceof t)(typeof Uint8Array < "u" && io(Uint8Array)), Nb = (t, r) => {
|
|
19242
19242
|
const n = (t && t[Symbol.iterator]).call(t);
|
|
19243
19243
|
let i;
|
|
19244
19244
|
for (; (i = n.next()) && !i.done; ) {
|
|
19245
19245
|
const a = i.value;
|
|
19246
19246
|
r.call(t, a[0], a[1]);
|
|
19247
19247
|
}
|
|
19248
|
-
},
|
|
19248
|
+
}, Db = (t, r) => {
|
|
19249
19249
|
let e;
|
|
19250
19250
|
const n = [];
|
|
19251
19251
|
for (; (e = t.exec(r)) !== null; )
|
|
19252
19252
|
n.push(e);
|
|
19253
19253
|
return n;
|
|
19254
|
-
},
|
|
19254
|
+
}, Bb = ht("HTMLFormElement"), jb = (t) => t.toLowerCase().replace(
|
|
19255
19255
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
19256
19256
|
function(e, n, i) {
|
|
19257
19257
|
return n.toUpperCase() + i;
|
|
19258
19258
|
}
|
|
19259
|
-
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype),
|
|
19259
|
+
), xc = (({ hasOwnProperty: t }) => (r, e) => t.call(r, e))(Object.prototype), Hb = ht("RegExp"), Od = (t, r) => {
|
|
19260
19260
|
const e = Object.getOwnPropertyDescriptors(t), n = {};
|
|
19261
19261
|
Or(e, (i, a) => {
|
|
19262
19262
|
let s;
|
|
19263
19263
|
(s = r(i, a, t)) !== !1 && (n[a] = s || i);
|
|
19264
19264
|
}), Object.defineProperties(t, n);
|
|
19265
|
-
},
|
|
19265
|
+
}, Ub = (t) => {
|
|
19266
19266
|
Od(t, (r, e) => {
|
|
19267
19267
|
if (We(t) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
|
|
19268
19268
|
return !1;
|
|
@@ -19277,31 +19277,31 @@ const Rb = (t, r, e, { allOwnKeys: n } = {}) => (Or(r, (i, a) => {
|
|
|
19277
19277
|
});
|
|
19278
19278
|
}
|
|
19279
19279
|
});
|
|
19280
|
-
},
|
|
19280
|
+
}, zb = (t, r) => {
|
|
19281
19281
|
const e = {}, n = (i) => {
|
|
19282
19282
|
i.forEach((a) => {
|
|
19283
19283
|
e[a] = !0;
|
|
19284
19284
|
});
|
|
19285
19285
|
};
|
|
19286
19286
|
return Ln(t) ? n(t) : n(String(t).split(r)), e;
|
|
19287
|
-
},
|
|
19288
|
-
},
|
|
19287
|
+
}, qb = () => {
|
|
19288
|
+
}, Vb = (t, r) => (t = +t, Number.isFinite(t) ? t : r), Fa = "abcdefghijklmnopqrstuvwxyz", Ec = "0123456789", Id = {
|
|
19289
19289
|
DIGIT: Ec,
|
|
19290
|
-
ALPHA:
|
|
19291
|
-
ALPHA_DIGIT:
|
|
19292
|
-
},
|
|
19290
|
+
ALPHA: Fa,
|
|
19291
|
+
ALPHA_DIGIT: Fa + Fa.toUpperCase() + Ec
|
|
19292
|
+
}, Wb = (t = 16, r = Id.ALPHA_DIGIT) => {
|
|
19293
19293
|
let e = "";
|
|
19294
19294
|
const { length: n } = r;
|
|
19295
19295
|
for (; t--; )
|
|
19296
19296
|
e += r[Math.random() * n | 0];
|
|
19297
19297
|
return e;
|
|
19298
19298
|
};
|
|
19299
|
-
function
|
|
19299
|
+
function Gb(t) {
|
|
19300
19300
|
return !!(t && We(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
19301
19301
|
}
|
|
19302
|
-
const
|
|
19302
|
+
const Kb = (t) => {
|
|
19303
19303
|
const r = new Array(10), e = (n, i) => {
|
|
19304
|
-
if (
|
|
19304
|
+
if (ra(n)) {
|
|
19305
19305
|
if (r.indexOf(n) >= 0)
|
|
19306
19306
|
return;
|
|
19307
19307
|
if (!("toJSON" in n)) {
|
|
@@ -19316,59 +19316,59 @@ const Gb = (t) => {
|
|
|
19316
19316
|
return n;
|
|
19317
19317
|
};
|
|
19318
19318
|
return e(t, 0);
|
|
19319
|
-
},
|
|
19319
|
+
}, Jb = ht("AsyncFunction"), Zb = (t) => t && (ra(t) || We(t)) && We(t.then) && We(t.catch), E = {
|
|
19320
19320
|
isArray: Ln,
|
|
19321
19321
|
isArrayBuffer: xd,
|
|
19322
|
-
isBuffer:
|
|
19323
|
-
isFormData:
|
|
19324
|
-
isArrayBufferView:
|
|
19325
|
-
isString:
|
|
19322
|
+
isBuffer: yb,
|
|
19323
|
+
isFormData: Ab,
|
|
19324
|
+
isArrayBufferView: bb,
|
|
19325
|
+
isString: wb,
|
|
19326
19326
|
isNumber: Ed,
|
|
19327
|
-
isBoolean:
|
|
19328
|
-
isObject:
|
|
19327
|
+
isBoolean: kb,
|
|
19328
|
+
isObject: ra,
|
|
19329
19329
|
isPlainObject: Xr,
|
|
19330
19330
|
isUndefined: gr,
|
|
19331
|
-
isDate:
|
|
19332
|
-
isFile:
|
|
19333
|
-
isBlob:
|
|
19334
|
-
isRegExp:
|
|
19331
|
+
isDate: _b,
|
|
19332
|
+
isFile: Sb,
|
|
19333
|
+
isBlob: Cb,
|
|
19334
|
+
isRegExp: Hb,
|
|
19335
19335
|
isFunction: We,
|
|
19336
|
-
isStream:
|
|
19337
|
-
isURLSearchParams:
|
|
19338
|
-
isTypedArray:
|
|
19339
|
-
isFileList:
|
|
19336
|
+
isStream: Eb,
|
|
19337
|
+
isURLSearchParams: Tb,
|
|
19338
|
+
isTypedArray: Fb,
|
|
19339
|
+
isFileList: xb,
|
|
19340
19340
|
forEach: Or,
|
|
19341
|
-
merge:
|
|
19342
|
-
extend:
|
|
19343
|
-
trim:
|
|
19344
|
-
stripBOM:
|
|
19345
|
-
inherits:
|
|
19346
|
-
toFlatObject:
|
|
19347
|
-
kindOf:
|
|
19341
|
+
merge: ms,
|
|
19342
|
+
extend: Ob,
|
|
19343
|
+
trim: Rb,
|
|
19344
|
+
stripBOM: Ib,
|
|
19345
|
+
inherits: Lb,
|
|
19346
|
+
toFlatObject: Mb,
|
|
19347
|
+
kindOf: ta,
|
|
19348
19348
|
kindOfTest: ht,
|
|
19349
|
-
endsWith:
|
|
19350
|
-
toArray:
|
|
19351
|
-
forEachEntry:
|
|
19352
|
-
matchAll:
|
|
19353
|
-
isHTMLForm:
|
|
19349
|
+
endsWith: Pb,
|
|
19350
|
+
toArray: $b,
|
|
19351
|
+
forEachEntry: Nb,
|
|
19352
|
+
matchAll: Db,
|
|
19353
|
+
isHTMLForm: Bb,
|
|
19354
19354
|
hasOwnProperty: xc,
|
|
19355
19355
|
hasOwnProp: xc,
|
|
19356
19356
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
19357
19357
|
reduceDescriptors: Od,
|
|
19358
|
-
freezeMethods:
|
|
19359
|
-
toObjectSet:
|
|
19360
|
-
toCamelCase:
|
|
19361
|
-
noop:
|
|
19362
|
-
toFiniteNumber:
|
|
19358
|
+
freezeMethods: Ub,
|
|
19359
|
+
toObjectSet: zb,
|
|
19360
|
+
toCamelCase: jb,
|
|
19361
|
+
noop: qb,
|
|
19362
|
+
toFiniteNumber: Vb,
|
|
19363
19363
|
findKey: Ad,
|
|
19364
19364
|
global: Td,
|
|
19365
19365
|
isContextDefined: Rd,
|
|
19366
19366
|
ALPHABET: Id,
|
|
19367
|
-
generateString:
|
|
19368
|
-
isSpecCompliantForm:
|
|
19369
|
-
toJSONObject:
|
|
19370
|
-
isAsyncFn:
|
|
19371
|
-
isThenable:
|
|
19367
|
+
generateString: Wb,
|
|
19368
|
+
isSpecCompliantForm: Gb,
|
|
19369
|
+
toJSONObject: Kb,
|
|
19370
|
+
isAsyncFn: Jb,
|
|
19371
|
+
isThenable: Zb
|
|
19372
19372
|
};
|
|
19373
19373
|
function ae(t, r, e, n, i) {
|
|
19374
19374
|
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,8 +19420,8 @@ ae.from = (t, r, e, n, i, a) => {
|
|
|
19420
19420
|
return l !== Error.prototype;
|
|
19421
19421
|
}, (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
19422
|
};
|
|
19423
|
-
const
|
|
19424
|
-
function
|
|
19423
|
+
const Yb = null;
|
|
19424
|
+
function gs(t) {
|
|
19425
19425
|
return E.isPlainObject(t) || E.isArray(t);
|
|
19426
19426
|
}
|
|
19427
19427
|
function Pd(t) {
|
|
@@ -19432,13 +19432,13 @@ function Ac(t, r, e) {
|
|
|
19432
19432
|
return i = Pd(i), !e && a ? "[" + i + "]" : i;
|
|
19433
19433
|
}).join(e ? "." : "") : r;
|
|
19434
19434
|
}
|
|
19435
|
-
function
|
|
19436
|
-
return E.isArray(t) && !t.some(
|
|
19435
|
+
function Xb(t) {
|
|
19436
|
+
return E.isArray(t) && !t.some(gs);
|
|
19437
19437
|
}
|
|
19438
|
-
const
|
|
19438
|
+
const Qb = E.toFlatObject(E, {}, null, function(r) {
|
|
19439
19439
|
return /^is[A-Z]/.test(r);
|
|
19440
19440
|
});
|
|
19441
|
-
function
|
|
19441
|
+
function ia(t, r, e) {
|
|
19442
19442
|
if (!E.isObject(t))
|
|
19443
19443
|
throw new TypeError("target must be an object");
|
|
19444
19444
|
r = r || new FormData(), e = E.toFlatObject(e, {
|
|
@@ -19464,7 +19464,7 @@ function aa(t, r, e) {
|
|
|
19464
19464
|
if (f && !y && typeof f == "object") {
|
|
19465
19465
|
if (E.endsWith(g, "{}"))
|
|
19466
19466
|
g = n ? g : g.slice(0, -2), f = JSON.stringify(f);
|
|
19467
|
-
else if (E.isArray(f) &&
|
|
19467
|
+
else if (E.isArray(f) && Xb(f) || (E.isFileList(f) || E.endsWith(g, "[]")) && (v = E.toArray(f)))
|
|
19468
19468
|
return g = Pd(g), v.forEach(function(C, F) {
|
|
19469
19469
|
!(E.isUndefined(C) || C === null) && r.append(
|
|
19470
19470
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -19473,12 +19473,12 @@ function aa(t, r, e) {
|
|
|
19473
19473
|
);
|
|
19474
19474
|
}), !1;
|
|
19475
19475
|
}
|
|
19476
|
-
return
|
|
19476
|
+
return gs(f) ? !0 : (r.append(Ac(y, g, a), c(f)), !1);
|
|
19477
19477
|
}
|
|
19478
|
-
const d = [], h = Object.assign(
|
|
19478
|
+
const d = [], h = Object.assign(Qb, {
|
|
19479
19479
|
defaultVisitor: u,
|
|
19480
19480
|
convertValue: c,
|
|
19481
|
-
isVisitable:
|
|
19481
|
+
isVisitable: gs
|
|
19482
19482
|
});
|
|
19483
19483
|
function p(f, g) {
|
|
19484
19484
|
if (!E.isUndefined(f)) {
|
|
@@ -19514,7 +19514,7 @@ function Tc(t) {
|
|
|
19514
19514
|
});
|
|
19515
19515
|
}
|
|
19516
19516
|
function ao(t, r) {
|
|
19517
|
-
this._pairs = [], t &&
|
|
19517
|
+
this._pairs = [], t && ia(t, this, r);
|
|
19518
19518
|
}
|
|
19519
19519
|
const $d = ao.prototype;
|
|
19520
19520
|
$d.append = function(r, e) {
|
|
@@ -19528,13 +19528,13 @@ $d.toString = function(r) {
|
|
|
19528
19528
|
return e(i[0]) + "=" + e(i[1]);
|
|
19529
19529
|
}, "").join("&");
|
|
19530
19530
|
};
|
|
19531
|
-
function
|
|
19531
|
+
function e3(t) {
|
|
19532
19532
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
19533
19533
|
}
|
|
19534
19534
|
function Fd(t, r, e) {
|
|
19535
19535
|
if (!r)
|
|
19536
19536
|
return t;
|
|
19537
|
-
const n = e && e.encode ||
|
|
19537
|
+
const n = e && e.encode || e3, i = e && e.serialize;
|
|
19538
19538
|
let a;
|
|
19539
19539
|
if (i ? a = i(r, e) : a = E.isURLSearchParams(r) ? r.toString() : new ao(r, e).toString(n), a) {
|
|
19540
19540
|
const s = t.indexOf("#");
|
|
@@ -19600,35 +19600,35 @@ const Nd = {
|
|
|
19600
19600
|
silentJSONParsing: !0,
|
|
19601
19601
|
forcedJSONParsing: !0,
|
|
19602
19602
|
clarifyTimeoutError: !1
|
|
19603
|
-
},
|
|
19603
|
+
}, t3 = typeof URLSearchParams < "u" ? URLSearchParams : ao, n3 = typeof FormData < "u" ? FormData : null, r3 = typeof Blob < "u" ? Blob : null, i3 = {
|
|
19604
19604
|
isBrowser: !0,
|
|
19605
19605
|
classes: {
|
|
19606
|
-
URLSearchParams:
|
|
19607
|
-
FormData:
|
|
19608
|
-
Blob:
|
|
19606
|
+
URLSearchParams: t3,
|
|
19607
|
+
FormData: n3,
|
|
19608
|
+
Blob: r3
|
|
19609
19609
|
},
|
|
19610
19610
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
19611
|
-
}, Dd = typeof window < "u" && typeof document < "u",
|
|
19612
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
19611
|
+
}, Dd = typeof window < "u" && typeof document < "u", a3 = ((t) => Dd && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), s3 = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
19612
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", o3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19613
19613
|
__proto__: null,
|
|
19614
19614
|
hasBrowserEnv: Dd,
|
|
19615
|
-
hasStandardBrowserEnv:
|
|
19616
|
-
hasStandardBrowserWebWorkerEnv:
|
|
19615
|
+
hasStandardBrowserEnv: a3,
|
|
19616
|
+
hasStandardBrowserWebWorkerEnv: s3
|
|
19617
19617
|
}, Symbol.toStringTag, { value: "Module" })), ot = {
|
|
19618
|
-
...
|
|
19619
|
-
...
|
|
19618
|
+
...o3,
|
|
19619
|
+
...i3
|
|
19620
19620
|
};
|
|
19621
|
-
function
|
|
19622
|
-
return
|
|
19621
|
+
function l3(t, r) {
|
|
19622
|
+
return ia(t, new ot.classes.URLSearchParams(), Object.assign({
|
|
19623
19623
|
visitor: function(e, n, i, a) {
|
|
19624
19624
|
return ot.isNode && E.isBuffer(e) ? (this.append(n, e.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
19625
19625
|
}
|
|
19626
19626
|
}, r));
|
|
19627
19627
|
}
|
|
19628
|
-
function
|
|
19628
|
+
function c3(t) {
|
|
19629
19629
|
return E.matchAll(/\w+|\[(\w*)]/g, t).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
|
|
19630
19630
|
}
|
|
19631
|
-
function
|
|
19631
|
+
function u3(t) {
|
|
19632
19632
|
const r = {}, e = Object.keys(t);
|
|
19633
19633
|
let n;
|
|
19634
19634
|
const i = e.length;
|
|
@@ -19642,17 +19642,17 @@ function Bd(t) {
|
|
|
19642
19642
|
let s = e[a++];
|
|
19643
19643
|
if (s === "__proto__") return !0;
|
|
19644
19644
|
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] =
|
|
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] = u3(i[s])), !o);
|
|
19646
19646
|
}
|
|
19647
19647
|
if (E.isFormData(t) && E.isFunction(t.entries)) {
|
|
19648
19648
|
const e = {};
|
|
19649
19649
|
return E.forEachEntry(t, (n, i) => {
|
|
19650
|
-
r(
|
|
19650
|
+
r(c3(n), i, e, 0);
|
|
19651
19651
|
}), e;
|
|
19652
19652
|
}
|
|
19653
19653
|
return null;
|
|
19654
19654
|
}
|
|
19655
|
-
function
|
|
19655
|
+
function d3(t, r, e) {
|
|
19656
19656
|
if (E.isString(t))
|
|
19657
19657
|
try {
|
|
19658
19658
|
return (r || JSON.parse)(t), E.trim(t);
|
|
@@ -19678,17 +19678,17 @@ const Ir = {
|
|
|
19678
19678
|
let o;
|
|
19679
19679
|
if (a) {
|
|
19680
19680
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
19681
|
-
return
|
|
19681
|
+
return l3(r, this.formSerializer).toString();
|
|
19682
19682
|
if ((o = E.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
19683
19683
|
const l = this.env && this.env.FormData;
|
|
19684
|
-
return
|
|
19684
|
+
return ia(
|
|
19685
19685
|
o ? { "files[]": r } : r,
|
|
19686
19686
|
l && new l(),
|
|
19687
19687
|
this.formSerializer
|
|
19688
19688
|
);
|
|
19689
19689
|
}
|
|
19690
19690
|
}
|
|
19691
|
-
return a || i ? (e.setContentType("application/json", !1),
|
|
19691
|
+
return a || i ? (e.setContentType("application/json", !1), d3(r)) : r;
|
|
19692
19692
|
}],
|
|
19693
19693
|
transformResponse: [function(r) {
|
|
19694
19694
|
const e = this.transitional || Ir.transitional, n = e && e.forcedJSONParsing, i = this.responseType === "json";
|
|
@@ -19729,7 +19729,7 @@ const Ir = {
|
|
|
19729
19729
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
19730
19730
|
Ir.headers[t] = {};
|
|
19731
19731
|
});
|
|
19732
|
-
const
|
|
19732
|
+
const h3 = E.toObjectSet([
|
|
19733
19733
|
"age",
|
|
19734
19734
|
"authorization",
|
|
19735
19735
|
"content-length",
|
|
@@ -19747,12 +19747,12 @@ const d3 = E.toObjectSet([
|
|
|
19747
19747
|
"referer",
|
|
19748
19748
|
"retry-after",
|
|
19749
19749
|
"user-agent"
|
|
19750
|
-
]),
|
|
19750
|
+
]), p3 = (t) => {
|
|
19751
19751
|
const r = {};
|
|
19752
19752
|
let e, n, i;
|
|
19753
19753
|
return t && t.split(`
|
|
19754
19754
|
`).forEach(function(s) {
|
|
19755
|
-
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] &&
|
|
19755
|
+
i = s.indexOf(":"), e = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!e || r[e] && h3[e]) && (e === "set-cookie" ? r[e] ? r[e].push(n) : r[e] = [n] : r[e] = r[e] ? r[e] + ", " + n : n);
|
|
19756
19756
|
}), r;
|
|
19757
19757
|
}, Oc = Symbol("internals");
|
|
19758
19758
|
function jn(t) {
|
|
@@ -19761,15 +19761,15 @@ function jn(t) {
|
|
|
19761
19761
|
function Qr(t) {
|
|
19762
19762
|
return t === !1 || t == null ? t : E.isArray(t) ? t.map(Qr) : String(t);
|
|
19763
19763
|
}
|
|
19764
|
-
function
|
|
19764
|
+
function f3(t) {
|
|
19765
19765
|
const r = /* @__PURE__ */ Object.create(null), e = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
19766
19766
|
let n;
|
|
19767
19767
|
for (; n = e.exec(t); )
|
|
19768
19768
|
r[n[1]] = n[2];
|
|
19769
19769
|
return r;
|
|
19770
19770
|
}
|
|
19771
|
-
const
|
|
19772
|
-
function
|
|
19771
|
+
const m3 = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
19772
|
+
function Na(t, r, e, n, i) {
|
|
19773
19773
|
if (E.isFunction(n))
|
|
19774
19774
|
return n.call(this, r, e);
|
|
19775
19775
|
if (i && (r = e), !!E.isString(r)) {
|
|
@@ -19779,10 +19779,10 @@ function Da(t, r, e, n, i) {
|
|
|
19779
19779
|
return n.test(r);
|
|
19780
19780
|
}
|
|
19781
19781
|
}
|
|
19782
|
-
function
|
|
19782
|
+
function g3(t) {
|
|
19783
19783
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, e, n) => e.toUpperCase() + n);
|
|
19784
19784
|
}
|
|
19785
|
-
function
|
|
19785
|
+
function v3(t, r) {
|
|
19786
19786
|
const e = E.toCamelCase(" " + r);
|
|
19787
19787
|
["get", "set", "has"].forEach((n) => {
|
|
19788
19788
|
Object.defineProperty(t, n + e, {
|
|
@@ -19807,7 +19807,7 @@ class Ge {
|
|
|
19807
19807
|
(!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || l] = Qr(o));
|
|
19808
19808
|
}
|
|
19809
19809
|
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()) && !
|
|
19810
|
+
return E.isPlainObject(r) || r instanceof this.constructor ? s(r, e) : E.isString(r) && (r = r.trim()) && !m3(r) ? s(p3(r), e) : r != null && a(e, r, n), this;
|
|
19811
19811
|
}
|
|
19812
19812
|
get(r, e) {
|
|
19813
19813
|
if (r = jn(r), r) {
|
|
@@ -19817,7 +19817,7 @@ class Ge {
|
|
|
19817
19817
|
if (!e)
|
|
19818
19818
|
return i;
|
|
19819
19819
|
if (e === !0)
|
|
19820
|
-
return
|
|
19820
|
+
return f3(i);
|
|
19821
19821
|
if (E.isFunction(e))
|
|
19822
19822
|
return e.call(this, i, n);
|
|
19823
19823
|
if (E.isRegExp(e))
|
|
@@ -19829,7 +19829,7 @@ class Ge {
|
|
|
19829
19829
|
has(r, e) {
|
|
19830
19830
|
if (r = jn(r), r) {
|
|
19831
19831
|
const n = E.findKey(this, r);
|
|
19832
|
-
return !!(n && this[n] !== void 0 && (!e ||
|
|
19832
|
+
return !!(n && this[n] !== void 0 && (!e || Na(this, this[n], n, e)));
|
|
19833
19833
|
}
|
|
19834
19834
|
return !1;
|
|
19835
19835
|
}
|
|
@@ -19839,7 +19839,7 @@ class Ge {
|
|
|
19839
19839
|
function a(s) {
|
|
19840
19840
|
if (s = jn(s), s) {
|
|
19841
19841
|
const o = E.findKey(n, s);
|
|
19842
|
-
o && (!e ||
|
|
19842
|
+
o && (!e || Na(n, n[o], o, e)) && (delete n[o], i = !0);
|
|
19843
19843
|
}
|
|
19844
19844
|
}
|
|
19845
19845
|
return E.isArray(r) ? r.forEach(a) : a(r), i;
|
|
@@ -19849,7 +19849,7 @@ class Ge {
|
|
|
19849
19849
|
let n = e.length, i = !1;
|
|
19850
19850
|
for (; n--; ) {
|
|
19851
19851
|
const a = e[n];
|
|
19852
|
-
(!r ||
|
|
19852
|
+
(!r || Na(this, this[a], a, r, !0)) && (delete this[a], i = !0);
|
|
19853
19853
|
}
|
|
19854
19854
|
return i;
|
|
19855
19855
|
}
|
|
@@ -19861,7 +19861,7 @@ class Ge {
|
|
|
19861
19861
|
e[s] = Qr(i), delete e[a];
|
|
19862
19862
|
return;
|
|
19863
19863
|
}
|
|
19864
|
-
const o = r ?
|
|
19864
|
+
const o = r ? g3(a) : String(a).trim();
|
|
19865
19865
|
o !== a && delete e[a], e[o] = Qr(i), n[o] = !0;
|
|
19866
19866
|
}), this;
|
|
19867
19867
|
}
|
|
@@ -19897,7 +19897,7 @@ class Ge {
|
|
|
19897
19897
|
}).accessors, i = this.prototype;
|
|
19898
19898
|
function a(s) {
|
|
19899
19899
|
const o = jn(s);
|
|
19900
|
-
n[o] || (
|
|
19900
|
+
n[o] || (v3(i, s), n[o] = !0);
|
|
19901
19901
|
}
|
|
19902
19902
|
return E.isArray(r) ? r.forEach(a) : a(r), this;
|
|
19903
19903
|
}
|
|
@@ -19913,7 +19913,7 @@ E.reduceDescriptors(Ge.prototype, ({ value: t }, r) => {
|
|
|
19913
19913
|
};
|
|
19914
19914
|
});
|
|
19915
19915
|
E.freezeMethods(Ge);
|
|
19916
|
-
function
|
|
19916
|
+
function Da(t, r) {
|
|
19917
19917
|
const e = this || Ir, n = r || e, i = Ge.from(n.headers);
|
|
19918
19918
|
let a = n.data;
|
|
19919
19919
|
return E.forEach(t, function(o) {
|
|
@@ -19929,7 +19929,7 @@ function Lr(t, r, e) {
|
|
|
19929
19929
|
E.inherits(Lr, ae, {
|
|
19930
19930
|
__CANCEL__: !0
|
|
19931
19931
|
});
|
|
19932
|
-
function
|
|
19932
|
+
function y3(t, r, e) {
|
|
19933
19933
|
const n = e.config.validateStatus;
|
|
19934
19934
|
!e.status || !n || n(e.status) ? t(e) : r(new ae(
|
|
19935
19935
|
"Request failed with status code " + e.status,
|
|
@@ -19939,7 +19939,7 @@ function v3(t, r, e) {
|
|
|
19939
19939
|
e
|
|
19940
19940
|
));
|
|
19941
19941
|
}
|
|
19942
|
-
const
|
|
19942
|
+
const b3 = ot.hasStandardBrowserEnv ? (
|
|
19943
19943
|
// Standard browser envs support document.cookie
|
|
19944
19944
|
{
|
|
19945
19945
|
write(t, r, e, n, i, a) {
|
|
@@ -19966,16 +19966,16 @@ const y3 = ot.hasStandardBrowserEnv ? (
|
|
|
19966
19966
|
}
|
|
19967
19967
|
}
|
|
19968
19968
|
);
|
|
19969
|
-
function
|
|
19969
|
+
function w3(t) {
|
|
19970
19970
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
19971
19971
|
}
|
|
19972
|
-
function
|
|
19972
|
+
function k3(t, r) {
|
|
19973
19973
|
return r ? t.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : t;
|
|
19974
19974
|
}
|
|
19975
19975
|
function Hd(t, r) {
|
|
19976
|
-
return t && !
|
|
19976
|
+
return t && !w3(r) ? k3(t, r) : r;
|
|
19977
19977
|
}
|
|
19978
|
-
const
|
|
19978
|
+
const _3 = ot.hasStandardBrowserEnv ? (
|
|
19979
19979
|
// Standard browser envs have full support of the APIs needed to test
|
|
19980
19980
|
// whether the request URL is of the same origin as current location.
|
|
19981
19981
|
function() {
|
|
@@ -20007,11 +20007,11 @@ const k3 = ot.hasStandardBrowserEnv ? (
|
|
|
20007
20007
|
};
|
|
20008
20008
|
}()
|
|
20009
20009
|
);
|
|
20010
|
-
function
|
|
20010
|
+
function S3(t) {
|
|
20011
20011
|
const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
20012
20012
|
return r && r[1] || "";
|
|
20013
20013
|
}
|
|
20014
|
-
function
|
|
20014
|
+
function C3(t, r) {
|
|
20015
20015
|
t = t || 10;
|
|
20016
20016
|
const e = new Array(t), n = new Array(t);
|
|
20017
20017
|
let i = 0, a = 0, s;
|
|
@@ -20029,7 +20029,7 @@ function S3(t, r) {
|
|
|
20029
20029
|
}
|
|
20030
20030
|
function Ic(t, r) {
|
|
20031
20031
|
let e = 0;
|
|
20032
|
-
const n =
|
|
20032
|
+
const n = C3(50, 250);
|
|
20033
20033
|
return (i) => {
|
|
20034
20034
|
const a = i.loaded, s = i.lengthComputable ? i.total : void 0, o = a - e, l = n(o), c = a <= s;
|
|
20035
20035
|
e = a;
|
|
@@ -20045,7 +20045,7 @@ function Ic(t, r) {
|
|
|
20045
20045
|
u[r ? "download" : "upload"] = !0, t(u);
|
|
20046
20046
|
};
|
|
20047
20047
|
}
|
|
20048
|
-
const
|
|
20048
|
+
const x3 = typeof XMLHttpRequest < "u", E3 = x3 && function(t) {
|
|
20049
20049
|
return new Promise(function(e, n) {
|
|
20050
20050
|
let i = t.data;
|
|
20051
20051
|
const a = Ge.from(t.headers).normalize();
|
|
@@ -20082,7 +20082,7 @@ const C3 = typeof XMLHttpRequest < "u", x3 = C3 && function(t) {
|
|
|
20082
20082
|
config: t,
|
|
20083
20083
|
request: d
|
|
20084
20084
|
};
|
|
20085
|
-
|
|
20085
|
+
y3(function(C) {
|
|
20086
20086
|
e(C), c();
|
|
20087
20087
|
}, function(C) {
|
|
20088
20088
|
n(C), c();
|
|
@@ -20103,8 +20103,8 @@ const C3 = typeof XMLHttpRequest < "u", x3 = C3 && function(t) {
|
|
|
20103
20103
|
t,
|
|
20104
20104
|
d
|
|
20105
20105
|
)), d = null;
|
|
20106
|
-
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 &&
|
|
20107
|
-
const g = t.xsrfHeaderName && t.xsrfCookieName &&
|
|
20106
|
+
}, ot.hasStandardBrowserEnv && (o && E.isFunction(o) && (o = o(t)), o || o !== !1 && _3(h))) {
|
|
20107
|
+
const g = t.xsrfHeaderName && t.xsrfCookieName && b3.read(t.xsrfCookieName);
|
|
20108
20108
|
g && a.set(t.xsrfHeaderName, g);
|
|
20109
20109
|
}
|
|
20110
20110
|
i === void 0 && a.setContentType(null), "setRequestHeader" in d && E.forEach(a.toJSON(), function(y, v) {
|
|
@@ -20112,18 +20112,18 @@ const C3 = typeof XMLHttpRequest < "u", x3 = C3 && function(t) {
|
|
|
20112
20112
|
}), E.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), s && s !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", Ic(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ic(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
|
|
20113
20113
|
d && (n(!g || g.type ? new Lr(null, t, d) : g), d.abort(), d = null);
|
|
20114
20114
|
}, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
|
|
20115
|
-
const f =
|
|
20115
|
+
const f = S3(h);
|
|
20116
20116
|
if (f && ot.protocols.indexOf(f) === -1) {
|
|
20117
20117
|
n(new ae("Unsupported protocol " + f + ":", ae.ERR_BAD_REQUEST, t));
|
|
20118
20118
|
return;
|
|
20119
20119
|
}
|
|
20120
20120
|
d.send(i || null);
|
|
20121
20121
|
});
|
|
20122
|
-
},
|
|
20123
|
-
http:
|
|
20124
|
-
xhr:
|
|
20122
|
+
}, vs = {
|
|
20123
|
+
http: Yb,
|
|
20124
|
+
xhr: E3
|
|
20125
20125
|
};
|
|
20126
|
-
E.forEach(
|
|
20126
|
+
E.forEach(vs, (t, r) => {
|
|
20127
20127
|
if (t) {
|
|
20128
20128
|
try {
|
|
20129
20129
|
Object.defineProperty(t, "name", { value: r });
|
|
@@ -20132,7 +20132,7 @@ E.forEach(ys, (t, r) => {
|
|
|
20132
20132
|
Object.defineProperty(t, "adapterName", { value: r });
|
|
20133
20133
|
}
|
|
20134
20134
|
});
|
|
20135
|
-
const Lc = (t) => `- ${t}`,
|
|
20135
|
+
const Lc = (t) => `- ${t}`, A3 = (t) => E.isFunction(t) || t === null || t === !1, Ud = {
|
|
20136
20136
|
getAdapter: (t) => {
|
|
20137
20137
|
t = E.isArray(t) ? t : [t];
|
|
20138
20138
|
const { length: r } = t;
|
|
@@ -20141,7 +20141,7 @@ const Lc = (t) => `- ${t}`, E3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20141
20141
|
for (let a = 0; a < r; a++) {
|
|
20142
20142
|
e = t[a];
|
|
20143
20143
|
let s;
|
|
20144
|
-
if (n = e, !
|
|
20144
|
+
if (n = e, !A3(e) && (n = vs[(s = String(e)).toLowerCase()], n === void 0))
|
|
20145
20145
|
throw new ae(`Unknown adapter '${s}'`);
|
|
20146
20146
|
if (n)
|
|
20147
20147
|
break;
|
|
@@ -20161,24 +20161,24 @@ const Lc = (t) => `- ${t}`, E3 = (t) => E.isFunction(t) || t === null || t === !
|
|
|
20161
20161
|
}
|
|
20162
20162
|
return n;
|
|
20163
20163
|
},
|
|
20164
|
-
adapters:
|
|
20164
|
+
adapters: vs
|
|
20165
20165
|
};
|
|
20166
|
-
function
|
|
20166
|
+
function Ba(t) {
|
|
20167
20167
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
20168
20168
|
throw new Lr(null, t);
|
|
20169
20169
|
}
|
|
20170
20170
|
function Mc(t) {
|
|
20171
|
-
return
|
|
20171
|
+
return Ba(t), t.headers = Ge.from(t.headers), t.data = Da.call(
|
|
20172
20172
|
t,
|
|
20173
20173
|
t.transformRequest
|
|
20174
20174
|
), ["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
|
|
20175
|
+
return Ba(t), n.data = Da.call(
|
|
20176
20176
|
t,
|
|
20177
20177
|
t.transformResponse,
|
|
20178
20178
|
n
|
|
20179
20179
|
), n.headers = Ge.from(n.headers), n;
|
|
20180
20180
|
}, function(n) {
|
|
20181
|
-
return jd(n) || (
|
|
20181
|
+
return jd(n) || (Ba(t), n && n.response && (n.response.data = Da.call(
|
|
20182
20182
|
t,
|
|
20183
20183
|
t.transformResponse,
|
|
20184
20184
|
n.response
|
|
@@ -20275,7 +20275,7 @@ so.transitional = function(r, e, n) {
|
|
|
20275
20275
|
)), r ? r(a, s, o) : !0;
|
|
20276
20276
|
};
|
|
20277
20277
|
};
|
|
20278
|
-
function
|
|
20278
|
+
function T3(t, r, e) {
|
|
20279
20279
|
if (typeof t != "object")
|
|
20280
20280
|
throw new ae("options must be an object", ae.ERR_BAD_OPTION_VALUE);
|
|
20281
20281
|
const n = Object.keys(t);
|
|
@@ -20292,10 +20292,10 @@ function A3(t, r, e) {
|
|
|
20292
20292
|
throw new ae("Unknown option " + a, ae.ERR_BAD_OPTION);
|
|
20293
20293
|
}
|
|
20294
20294
|
}
|
|
20295
|
-
const
|
|
20296
|
-
assertOptions:
|
|
20295
|
+
const ys = {
|
|
20296
|
+
assertOptions: T3,
|
|
20297
20297
|
validators: so
|
|
20298
|
-
}, bt =
|
|
20298
|
+
}, bt = ys.validators;
|
|
20299
20299
|
class zt {
|
|
20300
20300
|
constructor(r) {
|
|
20301
20301
|
this.defaults = r, this.interceptors = {
|
|
@@ -20328,13 +20328,13 @@ class zt {
|
|
|
20328
20328
|
_request(r, e) {
|
|
20329
20329
|
typeof r == "string" ? (e = e || {}, e.url = r) : e = r || {}, e = xn(this.defaults, e);
|
|
20330
20330
|
const { transitional: n, paramsSerializer: i, headers: a } = e;
|
|
20331
|
-
n !== void 0 &&
|
|
20331
|
+
n !== void 0 && ys.assertOptions(n, {
|
|
20332
20332
|
silentJSONParsing: bt.transitional(bt.boolean),
|
|
20333
20333
|
forcedJSONParsing: bt.transitional(bt.boolean),
|
|
20334
20334
|
clarifyTimeoutError: bt.transitional(bt.boolean)
|
|
20335
20335
|
}, !1), i != null && (E.isFunction(i) ? e.paramsSerializer = {
|
|
20336
20336
|
serialize: i
|
|
20337
|
-
} :
|
|
20337
|
+
} : ys.assertOptions(i, {
|
|
20338
20338
|
encode: bt.function,
|
|
20339
20339
|
serialize: bt.function
|
|
20340
20340
|
}, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -20481,15 +20481,15 @@ class oo {
|
|
|
20481
20481
|
};
|
|
20482
20482
|
}
|
|
20483
20483
|
}
|
|
20484
|
-
function
|
|
20484
|
+
function R3(t) {
|
|
20485
20485
|
return function(e) {
|
|
20486
20486
|
return t.apply(null, e);
|
|
20487
20487
|
};
|
|
20488
20488
|
}
|
|
20489
|
-
function
|
|
20489
|
+
function O3(t) {
|
|
20490
20490
|
return E.isObject(t) && t.isAxiosError === !0;
|
|
20491
20491
|
}
|
|
20492
|
-
const
|
|
20492
|
+
const bs = {
|
|
20493
20493
|
Continue: 100,
|
|
20494
20494
|
SwitchingProtocols: 101,
|
|
20495
20495
|
Processing: 102,
|
|
@@ -20554,8 +20554,8 @@ const ws = {
|
|
|
20554
20554
|
NotExtended: 510,
|
|
20555
20555
|
NetworkAuthenticationRequired: 511
|
|
20556
20556
|
};
|
|
20557
|
-
Object.entries(
|
|
20558
|
-
|
|
20557
|
+
Object.entries(bs).forEach(([t, r]) => {
|
|
20558
|
+
bs[r] = t;
|
|
20559
20559
|
});
|
|
20560
20560
|
function qd(t) {
|
|
20561
20561
|
const r = new zt(t), e = Cd(zt.prototype.request, r);
|
|
@@ -20569,19 +20569,19 @@ j.CanceledError = Lr;
|
|
|
20569
20569
|
j.CancelToken = oo;
|
|
20570
20570
|
j.isCancel = jd;
|
|
20571
20571
|
j.VERSION = zd;
|
|
20572
|
-
j.toFormData =
|
|
20572
|
+
j.toFormData = ia;
|
|
20573
20573
|
j.AxiosError = ae;
|
|
20574
20574
|
j.Cancel = j.CanceledError;
|
|
20575
20575
|
j.all = function(r) {
|
|
20576
20576
|
return Promise.all(r);
|
|
20577
20577
|
};
|
|
20578
|
-
j.spread =
|
|
20579
|
-
j.isAxiosError =
|
|
20578
|
+
j.spread = R3;
|
|
20579
|
+
j.isAxiosError = O3;
|
|
20580
20580
|
j.mergeConfig = xn;
|
|
20581
20581
|
j.AxiosHeaders = Ge;
|
|
20582
20582
|
j.formToJSON = (t) => Bd(E.isHTMLForm(t) ? new FormData(t) : t);
|
|
20583
20583
|
j.getAdapter = Ud.getAdapter;
|
|
20584
|
-
j.HttpStatusCode =
|
|
20584
|
+
j.HttpStatusCode = bs;
|
|
20585
20585
|
j.default = j;
|
|
20586
20586
|
class lo {
|
|
20587
20587
|
constructor({ format: r, successHandler: e, ...n } = {}) {
|
|
@@ -20657,10 +20657,10 @@ const oe = (t, r) => {
|
|
|
20657
20657
|
return j.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === r;
|
|
20658
20658
|
};
|
|
20659
20659
|
var Wn, un;
|
|
20660
|
-
class
|
|
20660
|
+
class ws {
|
|
20661
20661
|
}
|
|
20662
|
-
D(
|
|
20663
|
-
}, D(Wn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && oe(r, 400)), D(Wn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && oe(r, 401)), D(Wn, "isProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), Wn)), D(
|
|
20662
|
+
D(ws, "ContentTranslationGet", (Wn = class {
|
|
20663
|
+
}, D(Wn, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && oe(r, 400)), D(Wn, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && oe(r, 401)), D(Wn, "isProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), Wn)), D(ws, "ContentReportPost", (un = class {
|
|
20664
20664
|
}, D(un, "isBadRequestProblemDetail", (r) => j.isAxiosError(r) && oe(r, 400)), D(un, "isUnauthorizeProblemDetail", (r) => j.isAxiosError(r) && oe(r, 401)), D(un, "isValidationProblemDetails", (r) => j.isAxiosError(r) && oe(r, 422)), D(un, "isProblemDetails", (r) => j.isAxiosError(r) && oe(r, 500)), un));
|
|
20665
20665
|
const yn = class yn extends lo {
|
|
20666
20666
|
constructor() {
|
|
@@ -20700,9 +20700,9 @@ D(yn, "Endpoints", {
|
|
|
20700
20700
|
contentTranslationGet: "/api/content/translation",
|
|
20701
20701
|
contentReportPost: "/api/content/report"
|
|
20702
20702
|
}), /** ContentService API static errors typeguards */
|
|
20703
|
-
D(yn, "Errors",
|
|
20704
|
-
let
|
|
20705
|
-
class
|
|
20703
|
+
D(yn, "Errors", ws);
|
|
20704
|
+
let ks = yn;
|
|
20705
|
+
class I3 {
|
|
20706
20706
|
constructor(r) {
|
|
20707
20707
|
this.config = r;
|
|
20708
20708
|
}
|
|
@@ -20722,7 +20722,7 @@ class O3 {
|
|
|
20722
20722
|
}
|
|
20723
20723
|
async getFallbacks() {
|
|
20724
20724
|
const { country: r, language: e, scopes: n } = this.config;
|
|
20725
|
-
|
|
20725
|
+
fb(r, e) || console.warn(`Language not configured for this country : ${r}/${e}`);
|
|
20726
20726
|
const i = this.getFallbackTranslationsMaps();
|
|
20727
20727
|
if (i[e]) {
|
|
20728
20728
|
let a = await i[e](), s = w2(
|
|
@@ -20734,7 +20734,7 @@ class O3 {
|
|
|
20734
20734
|
throw new Error(`Translations fallbacks for ${e} not found.`);
|
|
20735
20735
|
}
|
|
20736
20736
|
async getServerTranslations() {
|
|
20737
|
-
const { scopes: r, apiConfig: e } = this.config, n = await import("./index-CkuunB3L.js").then((a) => a.i), i = await new
|
|
20737
|
+
const { scopes: r, apiConfig: e } = this.config, n = await import("./index-CkuunB3L.js").then((a) => a.i), i = await new ks().contentTranslationGet(
|
|
20738
20738
|
{ scopes: r },
|
|
20739
20739
|
{
|
|
20740
20740
|
...e,
|
|
@@ -20743,21 +20743,21 @@ class O3 {
|
|
|
20743
20743
|
}
|
|
20744
20744
|
}
|
|
20745
20745
|
);
|
|
20746
|
-
return
|
|
20746
|
+
return gb(i);
|
|
20747
20747
|
}
|
|
20748
20748
|
}
|
|
20749
|
-
const
|
|
20749
|
+
const L3 = "fr", M3 = (t) => {
|
|
20750
20750
|
var n;
|
|
20751
20751
|
const r = t.split(".");
|
|
20752
|
-
let e =
|
|
20752
|
+
let e = L3;
|
|
20753
20753
|
if (r.length > 1) {
|
|
20754
20754
|
const i = (n = r.pop()) == null ? void 0 : n.toLocaleLowerCase();
|
|
20755
|
-
i &&
|
|
20755
|
+
i && P3(i) && (e = i);
|
|
20756
20756
|
}
|
|
20757
20757
|
return e;
|
|
20758
|
-
},
|
|
20758
|
+
}, P3 = (t) => Qy.includes(t), go = class go extends nr {
|
|
20759
20759
|
constructor(r = {}) {
|
|
20760
|
-
super(), this.translationsConfig = r, this.country = typeof window < "u" ?
|
|
20760
|
+
super(), this.translationsConfig = r, this.country = typeof window < "u" ? M3(window.location.hostname) : "fr", this.language = typeof window < "u" ? mb({ country: this.country, cookies: document.cookie }) : "fr-FR", this.translationsConfig.translationsLoaderGetter && (this.translationsTask = new Xy(
|
|
20761
20761
|
this,
|
|
20762
20762
|
this.translationsConfig.translationsLoaderGetter,
|
|
20763
20763
|
{
|
|
@@ -20781,15 +20781,15 @@ let ge = go;
|
|
|
20781
20781
|
* Copyright 2020 Google LLC
|
|
20782
20782
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20783
20783
|
*/
|
|
20784
|
-
const Vd = Symbol.for(""),
|
|
20784
|
+
const Vd = Symbol.for(""), $3 = (t) => {
|
|
20785
20785
|
if ((t == null ? void 0 : t.r) === Vd) return t == null ? void 0 : t._$litStatic$;
|
|
20786
|
-
},
|
|
20786
|
+
}, _s = (t) => ({ _$litStatic$: t, r: Vd }), Fc = /* @__PURE__ */ new Map(), F3 = (t) => (r, ...e) => {
|
|
20787
20787
|
const n = e.length;
|
|
20788
20788
|
let i, a;
|
|
20789
20789
|
const s = [], o = [];
|
|
20790
20790
|
let l, c = 0, u = !1;
|
|
20791
20791
|
for (; c < n; ) {
|
|
20792
|
-
for (l = r[c]; c < n && (a = e[c], (i =
|
|
20792
|
+
for (l = r[c]; c < n && (a = e[c], (i = $3(a)) !== void 0); ) l += i + r[++c], u = !0;
|
|
20793
20793
|
c !== n && o.push(a), s.push(l), c++;
|
|
20794
20794
|
}
|
|
20795
20795
|
if (c === n && s.push(r[n]), u) {
|
|
@@ -20797,8 +20797,8 @@ const Vd = Symbol.for(""), P3 = (t) => {
|
|
|
20797
20797
|
(r = Fc.get(d)) === void 0 && (s.raw = s, Fc.set(d, r = s)), e = o;
|
|
20798
20798
|
}
|
|
20799
20799
|
return t(r, ...e);
|
|
20800
|
-
}, jt =
|
|
20801
|
-
function
|
|
20800
|
+
}, jt = F3(fe);
|
|
20801
|
+
function N3(t, r) {
|
|
20802
20802
|
return function(e, n) {
|
|
20803
20803
|
const i = new CustomEvent(r, {
|
|
20804
20804
|
detail: e,
|
|
@@ -20814,14 +20814,14 @@ function co(t) {
|
|
|
20814
20814
|
return (r, e) => {
|
|
20815
20815
|
Object.defineProperty(r, e, {
|
|
20816
20816
|
get() {
|
|
20817
|
-
return
|
|
20817
|
+
return N3(this, t || e);
|
|
20818
20818
|
},
|
|
20819
20819
|
enumerable: !0,
|
|
20820
20820
|
configurable: !0
|
|
20821
20821
|
});
|
|
20822
20822
|
};
|
|
20823
20823
|
}
|
|
20824
|
-
const
|
|
20824
|
+
const D3 = _e`
|
|
20825
20825
|
@keyframes rotate360 {
|
|
20826
20826
|
from {
|
|
20827
20827
|
transform: rotate(0deg);
|
|
@@ -20835,7 +20835,7 @@ const N3 = _e`
|
|
|
20835
20835
|
vertical-align: middle;
|
|
20836
20836
|
animation: rotate360 1s linear infinite;
|
|
20837
20837
|
}
|
|
20838
|
-
`,
|
|
20838
|
+
`, B3 = _e`
|
|
20839
20839
|
:host {
|
|
20840
20840
|
display: inline-block;
|
|
20841
20841
|
transition: fill 0.2s, stroke 0.2s;
|
|
@@ -20863,17 +20863,17 @@ const N3 = _e`
|
|
|
20863
20863
|
height: 100%;
|
|
20864
20864
|
}
|
|
20865
20865
|
`;
|
|
20866
|
-
var
|
|
20866
|
+
var j3 = Object.defineProperty, Wd = (t, r, e, n) => {
|
|
20867
20867
|
for (var i = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
20868
20868
|
(s = t[a]) && (i = s(r, e, i) || i);
|
|
20869
|
-
return i &&
|
|
20869
|
+
return i && j3(r, e, i), i;
|
|
20870
20870
|
};
|
|
20871
20871
|
const vo = class vo extends ge {
|
|
20872
20872
|
constructor() {
|
|
20873
20873
|
super(...arguments), this.size = "medium", this.viewBox = "0 0 32 32";
|
|
20874
20874
|
}
|
|
20875
20875
|
};
|
|
20876
|
-
vo.styles = [ge.styles,
|
|
20876
|
+
vo.styles = [ge.styles, B3];
|
|
20877
20877
|
let vr = vo;
|
|
20878
20878
|
Wd([
|
|
20879
20879
|
z({ type: String, reflect: !0 })
|
|
@@ -20889,10 +20889,10 @@ function et(t, r) {
|
|
|
20889
20889
|
}
|
|
20890
20890
|
customElements.define(t, e);
|
|
20891
20891
|
}
|
|
20892
|
-
var
|
|
20893
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20892
|
+
var H3 = Object.defineProperty, U3 = Object.getOwnPropertyDescriptor, uo = (t, r, e, n) => {
|
|
20893
|
+
for (var i = n > 1 ? void 0 : n ? U3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20894
20894
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20895
|
-
return n && i &&
|
|
20895
|
+
return n && i && H3(r, e, i), i;
|
|
20896
20896
|
};
|
|
20897
20897
|
et(
|
|
20898
20898
|
"lr-icon-spinner",
|
|
@@ -20918,7 +20918,7 @@ let yr = class extends ge {
|
|
|
20918
20918
|
></lr-icon-spinner> `;
|
|
20919
20919
|
}
|
|
20920
20920
|
};
|
|
20921
|
-
yr.styles = [ge.styles,
|
|
20921
|
+
yr.styles = [ge.styles, D3];
|
|
20922
20922
|
uo([
|
|
20923
20923
|
z({ type: String, reflect: !0 })
|
|
20924
20924
|
], yr.prototype, "size", 2);
|
|
@@ -20928,19 +20928,19 @@ uo([
|
|
|
20928
20928
|
yr = uo([
|
|
20929
20929
|
Fe("lr-spinner")
|
|
20930
20930
|
], yr);
|
|
20931
|
-
const
|
|
20931
|
+
const z3 = globalThis.SubmitEvent = typeof globalThis.SubmitEvent < "u" ? SubmitEvent : Event, Gd = (t) => {
|
|
20932
20932
|
if (!(!t.noValidate && !t.reportValidity())) {
|
|
20933
|
-
const r = new
|
|
20933
|
+
const r = new z3("submit", {
|
|
20934
20934
|
bubbles: !0,
|
|
20935
20935
|
cancelable: !0
|
|
20936
20936
|
});
|
|
20937
20937
|
t.dispatchEvent(r), r.defaultPrevented || t.submit();
|
|
20938
20938
|
}
|
|
20939
20939
|
};
|
|
20940
|
-
var
|
|
20941
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
20940
|
+
var q3 = Object.defineProperty, V3 = Object.getOwnPropertyDescriptor, Oe = (t, r, e, n) => {
|
|
20941
|
+
for (var i = n > 1 ? void 0 : n ? V3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
20942
20942
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
20943
|
-
return n && i &&
|
|
20943
|
+
return n && i && q3(r, e, i), i;
|
|
20944
20944
|
};
|
|
20945
20945
|
const Si = class Si extends ge {
|
|
20946
20946
|
constructor() {
|
|
@@ -20962,7 +20962,7 @@ const Si = class Si extends ge {
|
|
|
20962
20962
|
const r = !!this.href, e = this.disabled, n = Xi({
|
|
20963
20963
|
button: !0,
|
|
20964
20964
|
"has-content": this._hasDefaultSlot
|
|
20965
|
-
}), i = this.loading && this.loadingText ? this.loadingText : jt`<slot></slot>`, a = this.icon ? jt`<${
|
|
20965
|
+
}), i = this.loading && this.loadingText ? this.loadingText : jt`<slot></slot>`, a = this.icon ? jt`<${_s(`lr-icon-${this.icon}`)} class="icon" size=${this.size}></${_s(
|
|
20966
20966
|
`lr-icon-${this.icon}`
|
|
20967
20967
|
)}>` : null, s = jt`<lr-spinner class="loading-spinner" size="${this.size}"></lr-spinner>`, o = jt`<slot name="icon">${this.loading ? s : a ?? ""}</slot>
|
|
20968
20968
|
<span class="text">${i}</span>`;
|
|
@@ -21049,7 +21049,7 @@ Oe([
|
|
|
21049
21049
|
gt = Oe([
|
|
21050
21050
|
Fe("lr-button")
|
|
21051
21051
|
], gt);
|
|
21052
|
-
const
|
|
21052
|
+
const W3 = _e`
|
|
21053
21053
|
:host {
|
|
21054
21054
|
position: absolute;
|
|
21055
21055
|
display: none;
|
|
@@ -21092,10 +21092,10 @@ const V3 = _e`
|
|
|
21092
21092
|
user-select: text;
|
|
21093
21093
|
}
|
|
21094
21094
|
`;
|
|
21095
|
-
var
|
|
21096
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21095
|
+
var G3 = Object.defineProperty, K3 = Object.getOwnPropertyDescriptor, ho = (t, r, e, n) => {
|
|
21096
|
+
for (var i = n > 1 ? void 0 : n ? K3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21097
21097
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21098
|
-
return n && i &&
|
|
21098
|
+
return n && i && G3(r, e, i), i;
|
|
21099
21099
|
};
|
|
21100
21100
|
let En = class extends ge {
|
|
21101
21101
|
constructor() {
|
|
@@ -21109,7 +21109,7 @@ let En = class extends ge {
|
|
|
21109
21109
|
`;
|
|
21110
21110
|
}
|
|
21111
21111
|
};
|
|
21112
|
-
En.styles = [ge.styles,
|
|
21112
|
+
En.styles = [ge.styles, W3];
|
|
21113
21113
|
ho([
|
|
21114
21114
|
z({ type: Boolean, reflect: !0 })
|
|
21115
21115
|
], En.prototype, "active", 2);
|
|
@@ -21119,10 +21119,10 @@ ho([
|
|
|
21119
21119
|
En = ho([
|
|
21120
21120
|
Fe("lr-dimmer")
|
|
21121
21121
|
], En);
|
|
21122
|
-
var
|
|
21123
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21122
|
+
var J3 = Object.defineProperty, Z3 = Object.getOwnPropertyDescriptor, Y3 = (t, r, e, n) => {
|
|
21123
|
+
for (var i = n > 1 ? void 0 : n ? Z3(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
21124
21124
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
21125
|
-
return n && i &&
|
|
21125
|
+
return n && i && J3(r, e, i), i;
|
|
21126
21126
|
};
|
|
21127
21127
|
let Nc = class extends En {
|
|
21128
21128
|
constructor() {
|
|
@@ -21132,7 +21132,7 @@ let Nc = class extends En {
|
|
|
21132
21132
|
return fe`<lr-spinner></lr-spinner> `;
|
|
21133
21133
|
}
|
|
21134
21134
|
};
|
|
21135
|
-
Nc =
|
|
21135
|
+
Nc = Y3([
|
|
21136
21136
|
Fe("lr-loading-overlay")
|
|
21137
21137
|
], Nc);
|
|
21138
21138
|
et(
|
|
@@ -21177,7 +21177,7 @@ et(
|
|
|
21177
21177
|
* Copyright 2020 Google LLC
|
|
21178
21178
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21179
21179
|
*/
|
|
21180
|
-
const
|
|
21180
|
+
const X3 = (t) => t.strings === void 0;
|
|
21181
21181
|
/**
|
|
21182
21182
|
* @license
|
|
21183
21183
|
* Copyright 2017 Google LLC
|
|
@@ -21200,22 +21200,22 @@ const rr = (t, r) => {
|
|
|
21200
21200
|
let e = r._$AN;
|
|
21201
21201
|
if (e === void 0) r._$AN = e = /* @__PURE__ */ new Set();
|
|
21202
21202
|
else if (e.has(t)) break;
|
|
21203
|
-
e.add(t),
|
|
21203
|
+
e.add(t), tw(r);
|
|
21204
21204
|
}
|
|
21205
21205
|
};
|
|
21206
|
-
function
|
|
21206
|
+
function Q3(t) {
|
|
21207
21207
|
this._$AN !== void 0 ? (_i(this), this._$AM = t, Kd(this)) : this._$AM = t;
|
|
21208
21208
|
}
|
|
21209
|
-
function
|
|
21209
|
+
function ew(t, r = !1, e = 0) {
|
|
21210
21210
|
const n = this._$AH, i = this._$AN;
|
|
21211
21211
|
if (i !== void 0 && i.size !== 0) if (r) if (Array.isArray(n)) for (let a = e; a < n.length; a++) rr(n[a], !1), _i(n[a]);
|
|
21212
21212
|
else n != null && (rr(n, !1), _i(n));
|
|
21213
21213
|
else rr(this, t);
|
|
21214
21214
|
}
|
|
21215
|
-
const
|
|
21216
|
-
t.type == Zi.CHILD && (t._$AP ?? (t._$AP =
|
|
21215
|
+
const tw = (t) => {
|
|
21216
|
+
t.type == Zi.CHILD && (t._$AP ?? (t._$AP = ew), t._$AQ ?? (t._$AQ = Q3));
|
|
21217
21217
|
};
|
|
21218
|
-
let Jd = class extends
|
|
21218
|
+
let Jd = class extends eo {
|
|
21219
21219
|
constructor() {
|
|
21220
21220
|
super(...arguments), this._$AN = void 0;
|
|
21221
21221
|
}
|
|
@@ -21227,7 +21227,7 @@ let Jd = class extends to {
|
|
|
21227
21227
|
r !== this.isConnected && (this.isConnected = r, r ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (rr(this, r), _i(this));
|
|
21228
21228
|
}
|
|
21229
21229
|
setValue(r) {
|
|
21230
|
-
if (
|
|
21230
|
+
if (X3(this._$Ct)) this._$Ct._$AI(r, this);
|
|
21231
21231
|
else {
|
|
21232
21232
|
const e = [...this._$Ct._$AH];
|
|
21233
21233
|
e[this._$Ci] = r, this._$Ct._$AI(e, this, 0);
|
|
@@ -21238,7 +21238,7 @@ let Jd = class extends to {
|
|
|
21238
21238
|
reconnected() {
|
|
21239
21239
|
}
|
|
21240
21240
|
};
|
|
21241
|
-
const
|
|
21241
|
+
const ja = /* @__PURE__ */ new WeakMap(), nw = Yi(class extends Jd {
|
|
21242
21242
|
render(t) {
|
|
21243
21243
|
return se;
|
|
21244
21244
|
}
|
|
@@ -21250,13 +21250,13 @@ const Ha = /* @__PURE__ */ new WeakMap(), tw = Yi(class extends Jd {
|
|
|
21250
21250
|
rt(t) {
|
|
21251
21251
|
if (this.isConnected || (t = void 0), typeof this.Y == "function") {
|
|
21252
21252
|
const r = this.ht ?? globalThis;
|
|
21253
|
-
let e =
|
|
21254
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
21253
|
+
let e = ja.get(r);
|
|
21254
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ja.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
21255
|
} else this.Y.value = t;
|
|
21256
21256
|
}
|
|
21257
21257
|
get lt() {
|
|
21258
21258
|
var t, r;
|
|
21259
|
-
return typeof this.Y == "function" ? (t =
|
|
21259
|
+
return typeof this.Y == "function" ? (t = ja.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.Y) : (r = this.Y) == null ? void 0 : r.value;
|
|
21260
21260
|
}
|
|
21261
21261
|
disconnected() {
|
|
21262
21262
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -21264,7 +21264,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), tw = Yi(class extends Jd {
|
|
|
21264
21264
|
reconnected() {
|
|
21265
21265
|
this.rt(this.ct);
|
|
21266
21266
|
}
|
|
21267
|
-
}),
|
|
21267
|
+
}), rw = _e`
|
|
21268
21268
|
:host {
|
|
21269
21269
|
--chat-sticky-offset-right: 100px;
|
|
21270
21270
|
--chat-sticky-offset-bottom: 5%;
|
|
@@ -21642,7 +21642,7 @@ const Ha = /* @__PURE__ */ new WeakMap(), tw = Yi(class extends Jd {
|
|
|
21642
21642
|
}
|
|
21643
21643
|
`
|
|
21644
21644
|
};
|
|
21645
|
-
var Gn, Kn, dn, hn, pn, fn,
|
|
21645
|
+
var Gn, Kn, dn, hn, pn, fn, Wa, Ga;
|
|
21646
21646
|
class ft {
|
|
21647
21647
|
}
|
|
21648
21648
|
D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
@@ -21651,9 +21651,9 @@ D(ft, "ChatbotConversationsGet", (Gn = class {
|
|
|
21651
21651
|
}, 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 {
|
|
21652
21652
|
}, 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 {
|
|
21653
21653
|
}, 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 {
|
|
21654
|
-
}, 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", (
|
|
21655
|
-
}, D(
|
|
21656
|
-
}, D(
|
|
21654
|
+
}, 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", (Wa = class {
|
|
21655
|
+
}, D(Wa, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Wa)), D(ft, "ChatbotIntegrationsGet", (Ga = class {
|
|
21656
|
+
}, D(Ga, "isUnauthorizedProblemDetails", (r) => j.isAxiosError(r) && oe(r, 401)), Ga));
|
|
21657
21657
|
const qe = class qe extends lo {
|
|
21658
21658
|
constructor() {
|
|
21659
21659
|
super(...arguments);
|
|
@@ -21785,15 +21785,15 @@ D(qe, "Endpoints", {
|
|
|
21785
21785
|
}), /** ChatbotService API static errors typeguards */
|
|
21786
21786
|
D(qe, "Errors", ft);
|
|
21787
21787
|
let Kt = qe;
|
|
21788
|
-
const
|
|
21788
|
+
const iw = /* @__PURE__ */ new WeakMap();
|
|
21789
21789
|
let Dc = 0;
|
|
21790
|
-
const
|
|
21790
|
+
const Ha = /* @__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) => {
|
|
21791
21791
|
const e = t - r;
|
|
21792
21792
|
return e === 0 ? void 0 : e;
|
|
21793
21793
|
}, Vc = (t, r) => {
|
|
21794
21794
|
const e = t / r;
|
|
21795
21795
|
return e === 1 ? void 0 : e;
|
|
21796
|
-
},
|
|
21796
|
+
}, Ua = { left: (t, r) => {
|
|
21797
21797
|
const e = qc(t, r);
|
|
21798
21798
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
21799
21799
|
}, top: (t, r) => {
|
|
@@ -21809,8 +21809,8 @@ const Ua = /* @__PURE__ */ new Map(), Bc = /* @__PURE__ */ new WeakSet(), jc = (
|
|
|
21809
21809
|
r === 0 && (r = 1, e = { height: "1px" });
|
|
21810
21810
|
const n = Vc(t, r);
|
|
21811
21811
|
return { value: n, overrideFrom: e, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
|
21812
|
-
} },
|
|
21813
|
-
class
|
|
21812
|
+
} }, aw = { duration: 333, easing: "ease-in-out" }, sw = ["left", "top", "width", "height", "opacity", "color", "background"], Wc = /* @__PURE__ */ new WeakMap();
|
|
21813
|
+
class ow extends Jd {
|
|
21814
21814
|
constructor(r) {
|
|
21815
21815
|
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.");
|
|
21816
21816
|
this.createFinished();
|
|
@@ -21829,7 +21829,7 @@ class sw extends Jd {
|
|
|
21829
21829
|
return se;
|
|
21830
21830
|
}
|
|
21831
21831
|
getController() {
|
|
21832
|
-
return
|
|
21832
|
+
return iw.get(this.u);
|
|
21833
21833
|
}
|
|
21834
21834
|
isDisabled() {
|
|
21835
21835
|
var r;
|
|
@@ -21843,12 +21843,12 @@ class sw extends Jd {
|
|
|
21843
21843
|
p(r) {
|
|
21844
21844
|
r = r ?? {};
|
|
21845
21845
|
const e = this.getController();
|
|
21846
|
-
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties =
|
|
21846
|
+
e !== void 0 && ((r = { ...e.defaultOptions, ...r }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...r.keyframeOptions }), r.properties ?? (r.properties = sw), this.options = r;
|
|
21847
21847
|
}
|
|
21848
21848
|
m() {
|
|
21849
21849
|
const r = {}, e = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
|
21850
21850
|
return this.options.properties.forEach((i) => {
|
|
21851
|
-
const a = e[i] ?? (
|
|
21851
|
+
const a = e[i] ?? (Ua[i] ? void 0 : n[i]), s = Number(a);
|
|
21852
21852
|
r[i] = isNaN(s) ? a + "" : s;
|
|
21853
21853
|
}), r;
|
|
21854
21854
|
}
|
|
@@ -21873,9 +21873,9 @@ class sw extends Jd {
|
|
|
21873
21873
|
const { from: a, to: s } = this.N(this.A, i, e);
|
|
21874
21874
|
this.log("measured", [this.A, i, a, s]), r = this.calculateKeyframes(a, s);
|
|
21875
21875
|
} else {
|
|
21876
|
-
const a =
|
|
21876
|
+
const a = Ha.get(this.options.inId);
|
|
21877
21877
|
if (a) {
|
|
21878
|
-
|
|
21878
|
+
Ha.delete(this.options.inId);
|
|
21879
21879
|
const { from: s, to: o } = this.N(a, i, e);
|
|
21880
21880
|
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);
|
|
21881
21881
|
} else this.options.in && (r = [...this.options.in, {}]);
|
|
@@ -21893,7 +21893,7 @@ class sw extends Jd {
|
|
|
21893
21893
|
}
|
|
21894
21894
|
async disconnected() {
|
|
21895
21895
|
var e;
|
|
21896
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
21896
|
+
if (!this.h || (this.options.id !== void 0 && Ha.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
21897
21897
|
if (this.prepare(), await jc(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
21898
21898
|
const n = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
21899
21899
|
if (this.i.insertBefore(this.element, n), this.options.stabilizeOut) {
|
|
@@ -21932,7 +21932,7 @@ class sw extends Jd {
|
|
|
21932
21932
|
}), r;
|
|
21933
21933
|
}
|
|
21934
21934
|
j(r, e = this.O()) {
|
|
21935
|
-
const n = { ...
|
|
21935
|
+
const n = { ...aw };
|
|
21936
21936
|
return e.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, r), n;
|
|
21937
21937
|
}
|
|
21938
21938
|
N(r, e, n) {
|
|
@@ -21949,8 +21949,8 @@ class sw extends Jd {
|
|
|
21949
21949
|
const o = {};
|
|
21950
21950
|
for (const l in e) {
|
|
21951
21951
|
const c = r[l], u = e[l];
|
|
21952
|
-
if (l in
|
|
21953
|
-
const d =
|
|
21952
|
+
if (l in Ua) {
|
|
21953
|
+
const d = Ua[l];
|
|
21954
21954
|
if (c === void 0 || u === void 0) continue;
|
|
21955
21955
|
const h = d(c, u);
|
|
21956
21956
|
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));
|
|
@@ -21981,8 +21981,8 @@ class sw extends Jd {
|
|
|
21981
21981
|
this.shouldLog && !this.isDisabled() && console.log(r, this.options.id, e);
|
|
21982
21982
|
}
|
|
21983
21983
|
}
|
|
21984
|
-
const Ur = Yi(
|
|
21985
|
-
class
|
|
21984
|
+
const Ur = Yi(ow);
|
|
21985
|
+
class lw extends I3 {
|
|
21986
21986
|
constructor(r, e, n) {
|
|
21987
21987
|
super({
|
|
21988
21988
|
apiConfig: { baseURL: r, headers: { "x-country": e, "x-user-language": n } },
|
|
@@ -22035,33 +22035,33 @@ class ow extends O3 {
|
|
|
22035
22035
|
};
|
|
22036
22036
|
}
|
|
22037
22037
|
}
|
|
22038
|
-
function
|
|
22038
|
+
function cw() {
|
|
22039
22039
|
return `${window.location.pathname}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
22040
22040
|
}
|
|
22041
22041
|
var Zd = (t) => {
|
|
22042
22042
|
throw TypeError(t);
|
|
22043
|
-
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e),
|
|
22043
|
+
}, Yd = (t, r, e) => r.has(t) || Zd("Cannot " + e), za = (t, r, e) => (Yd(t, r, "read from private field"), e ? e.call(t) : r.get(t)), qa = (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), Va = (t, r, e, n) => (Yd(t, r, "write to private field"), r.set(t, e), e), ei, ti, ni;
|
|
22044
22044
|
class Xd {
|
|
22045
22045
|
constructor(r, e) {
|
|
22046
|
-
|
|
22046
|
+
qa(this, ei, cw()), qa(this, ti, null), qa(this, ni, null), this.enableSending = !0, this.host = r, this.host.addController(this), this.channel = new BroadcastChannel(e), this.registerOnMessageHandler();
|
|
22047
22047
|
}
|
|
22048
22048
|
get sourceId() {
|
|
22049
|
-
return
|
|
22049
|
+
return za(this, ei);
|
|
22050
22050
|
}
|
|
22051
22051
|
set sourceId(r) {
|
|
22052
|
-
|
|
22052
|
+
Va(this, ei, r);
|
|
22053
22053
|
}
|
|
22054
22054
|
get onMessage() {
|
|
22055
|
-
return
|
|
22055
|
+
return za(this, ti);
|
|
22056
22056
|
}
|
|
22057
22057
|
set onMessage(r) {
|
|
22058
|
-
|
|
22058
|
+
Va(this, ti, r);
|
|
22059
22059
|
}
|
|
22060
22060
|
get onError() {
|
|
22061
|
-
return
|
|
22061
|
+
return za(this, ni);
|
|
22062
22062
|
}
|
|
22063
22063
|
set onError(r) {
|
|
22064
|
-
|
|
22064
|
+
Va(this, ni, r);
|
|
22065
22065
|
}
|
|
22066
22066
|
registerOnMessageHandler() {
|
|
22067
22067
|
this.channel && (this.channel.onmessageerror = (r) => {
|
|
@@ -22090,7 +22090,7 @@ function Qd() {
|
|
|
22090
22090
|
function po(t) {
|
|
22091
22091
|
return new Promise((r) => setTimeout(r, t));
|
|
22092
22092
|
}
|
|
22093
|
-
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"),
|
|
22093
|
+
const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), uw = _e`
|
|
22094
22094
|
:host {
|
|
22095
22095
|
position: relative;
|
|
22096
22096
|
.button-container {
|
|
@@ -22106,7 +22106,7 @@ const Gc = (t) => Object.entries(t).map(([r, e]) => `${r}:${e}`).join(";"), cw =
|
|
|
22106
22106
|
* Copyright 2017 Google LLC
|
|
22107
22107
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22108
22108
|
*/
|
|
22109
|
-
let
|
|
22109
|
+
let Ss = class extends eo {
|
|
22110
22110
|
constructor(r) {
|
|
22111
22111
|
if (super(r), this.it = se, r.type !== Zi.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
22112
22112
|
}
|
|
@@ -22120,8 +22120,8 @@ let Cs = class extends to {
|
|
|
22120
22120
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
22121
22121
|
}
|
|
22122
22122
|
};
|
|
22123
|
-
|
|
22124
|
-
const eh = Yi(
|
|
22123
|
+
Ss.directiveName = "unsafeHTML", Ss.resultType = 1;
|
|
22124
|
+
const eh = Yi(Ss);
|
|
22125
22125
|
/**
|
|
22126
22126
|
* @license
|
|
22127
22127
|
* Copyright 2021 Google LLC
|
|
@@ -22167,7 +22167,7 @@ let Kc = class {
|
|
|
22167
22167
|
* Copyright 2021 Google LLC
|
|
22168
22168
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22169
22169
|
*/
|
|
22170
|
-
class
|
|
22170
|
+
class dw {
|
|
22171
22171
|
get value() {
|
|
22172
22172
|
return this.o;
|
|
22173
22173
|
}
|
|
@@ -22200,12 +22200,12 @@ class uw {
|
|
|
22200
22200
|
* Copyright 2021 Google LLC
|
|
22201
22201
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22202
22202
|
*/
|
|
22203
|
-
let
|
|
22203
|
+
let hw = class extends Event {
|
|
22204
22204
|
constructor(r) {
|
|
22205
22205
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = r;
|
|
22206
22206
|
}
|
|
22207
22207
|
};
|
|
22208
|
-
class Jc extends
|
|
22208
|
+
class Jc extends dw {
|
|
22209
22209
|
constructor(r, e, n) {
|
|
22210
22210
|
var i, a;
|
|
22211
22211
|
super(e.context !== void 0 ? e.initialValue : n), this.onContextRequest = (s) => {
|
|
@@ -22223,7 +22223,7 @@ class Jc extends uw {
|
|
|
22223
22223
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
22224
22224
|
}
|
|
22225
22225
|
hostConnected() {
|
|
22226
|
-
this.host.dispatchEvent(new
|
|
22226
|
+
this.host.dispatchEvent(new hw(this.context));
|
|
22227
22227
|
}
|
|
22228
22228
|
}
|
|
22229
22229
|
/**
|
|
@@ -22231,7 +22231,7 @@ class Jc extends uw {
|
|
|
22231
22231
|
* Copyright 2017 Google LLC
|
|
22232
22232
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22233
22233
|
*/
|
|
22234
|
-
function
|
|
22234
|
+
function pw({ context: t }) {
|
|
22235
22235
|
return (r, e) => {
|
|
22236
22236
|
const n = /* @__PURE__ */ new WeakMap();
|
|
22237
22237
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
@@ -22286,7 +22286,7 @@ function fo({ context: t, subscribe: r }) {
|
|
|
22286
22286
|
});
|
|
22287
22287
|
};
|
|
22288
22288
|
}
|
|
22289
|
-
const
|
|
22289
|
+
const fw = _e``, mw = _e`
|
|
22290
22290
|
:host {
|
|
22291
22291
|
--media-size: '${k(w.devices.mobile.max)}px';
|
|
22292
22292
|
--border-color: transparent;
|
|
@@ -22317,28 +22317,28 @@ const pw = _e``, fw = _e`
|
|
|
22317
22317
|
--padding: 8px 12px;
|
|
22318
22318
|
}
|
|
22319
22319
|
`;
|
|
22320
|
-
var
|
|
22321
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22320
|
+
var gw = Object.defineProperty, vw = Object.getOwnPropertyDescriptor, nh = (t, r, e, n) => {
|
|
22321
|
+
for (var i = n > 1 ? void 0 : n ? vw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22322
22322
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22323
|
-
return n && i &&
|
|
22323
|
+
return n && i && gw(r, e, i), i;
|
|
22324
22324
|
};
|
|
22325
22325
|
let An = class extends xe {
|
|
22326
22326
|
constructor() {
|
|
22327
22327
|
super(...arguments), this.variant = "on-light";
|
|
22328
22328
|
}
|
|
22329
22329
|
};
|
|
22330
|
-
An.styles = [xe.styles,
|
|
22330
|
+
An.styles = [xe.styles, mw];
|
|
22331
22331
|
nh([
|
|
22332
22332
|
z({ type: String, reflect: !0 })
|
|
22333
22333
|
], An.prototype, "variant", 2);
|
|
22334
22334
|
An = nh([
|
|
22335
22335
|
Fe("lr-pill")
|
|
22336
22336
|
], An);
|
|
22337
|
-
const
|
|
22338
|
-
var
|
|
22339
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22337
|
+
const aa = Symbol("lr-chatbot-message-context");
|
|
22338
|
+
var yw = Object.defineProperty, bw = Object.getOwnPropertyDescriptor, sa = (t, r, e, n) => {
|
|
22339
|
+
for (var i = n > 1 ? void 0 : n ? bw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22340
22340
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22341
|
-
return n && i &&
|
|
22341
|
+
return n && i && yw(r, e, i), i;
|
|
22342
22342
|
};
|
|
22343
22343
|
let Tn = class extends An {
|
|
22344
22344
|
constructor() {
|
|
@@ -22386,20 +22386,20 @@ let Tn = class extends An {
|
|
|
22386
22386
|
r && window.open(r, "_blank");
|
|
22387
22387
|
}
|
|
22388
22388
|
};
|
|
22389
|
-
Tn.styles = [An.styles,
|
|
22390
|
-
|
|
22389
|
+
Tn.styles = [An.styles, fw];
|
|
22390
|
+
sa([
|
|
22391
22391
|
z({ type: String })
|
|
22392
22392
|
], Tn.prototype, "channel", 2);
|
|
22393
|
-
|
|
22393
|
+
sa([
|
|
22394
22394
|
z({ type: Boolean })
|
|
22395
22395
|
], Tn.prototype, "shouldGetSummary", 2);
|
|
22396
|
-
|
|
22397
|
-
fo({ context:
|
|
22396
|
+
sa([
|
|
22397
|
+
fo({ context: aa })
|
|
22398
22398
|
], Tn.prototype, "messageContext", 2);
|
|
22399
|
-
Tn =
|
|
22399
|
+
Tn = sa([
|
|
22400
22400
|
Fe("lr-chatbot-escalation-pill")
|
|
22401
22401
|
], Tn);
|
|
22402
|
-
const
|
|
22402
|
+
const ww = _e`
|
|
22403
22403
|
:host {
|
|
22404
22404
|
display: flex;
|
|
22405
22405
|
flex-direction: row;
|
|
@@ -22424,7 +22424,7 @@ et(
|
|
|
22424
22424
|
<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"/>
|
|
22425
22425
|
`
|
|
22426
22426
|
);
|
|
22427
|
-
const
|
|
22427
|
+
const kw = _e`
|
|
22428
22428
|
:host .button {
|
|
22429
22429
|
padding: 10px;
|
|
22430
22430
|
|
|
@@ -22437,21 +22437,21 @@ const ww = _e`
|
|
|
22437
22437
|
}
|
|
22438
22438
|
}
|
|
22439
22439
|
`;
|
|
22440
|
-
var
|
|
22441
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22440
|
+
var _w = Object.defineProperty, Sw = Object.getOwnPropertyDescriptor, Cw = (t, r, e, n) => {
|
|
22441
|
+
for (var i = n > 1 ? void 0 : n ? Sw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22442
22442
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22443
|
-
return n && i &&
|
|
22443
|
+
return n && i && _w(r, e, i), i;
|
|
22444
22444
|
};
|
|
22445
|
-
let
|
|
22445
|
+
let Cs = class extends gt {
|
|
22446
22446
|
};
|
|
22447
|
-
|
|
22448
|
-
|
|
22447
|
+
Cs.styles = [gt.styles, kw];
|
|
22448
|
+
Cs = Cw([
|
|
22449
22449
|
Fe("lr-icon-button")
|
|
22450
|
-
],
|
|
22451
|
-
var
|
|
22452
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22450
|
+
], Cs);
|
|
22451
|
+
var xw = Object.defineProperty, Ew = Object.getOwnPropertyDescriptor, Mr = (t, r, e, n) => {
|
|
22452
|
+
for (var i = n > 1 ? void 0 : n ? Ew(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22453
22453
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22454
|
-
return n && i &&
|
|
22454
|
+
return n && i && xw(r, e, i), i;
|
|
22455
22455
|
};
|
|
22456
22456
|
let Jt = class extends ge {
|
|
22457
22457
|
constructor() {
|
|
@@ -22507,9 +22507,9 @@ let Jt = class extends ge {
|
|
|
22507
22507
|
`;
|
|
22508
22508
|
}
|
|
22509
22509
|
};
|
|
22510
|
-
Jt.styles = [ge.styles,
|
|
22510
|
+
Jt.styles = [ge.styles, ww];
|
|
22511
22511
|
Mr([
|
|
22512
|
-
fo({ context:
|
|
22512
|
+
fo({ context: aa })
|
|
22513
22513
|
], Jt.prototype, "messageContext", 2);
|
|
22514
22514
|
Mr([
|
|
22515
22515
|
Pt()
|
|
@@ -22523,7 +22523,7 @@ Mr([
|
|
|
22523
22523
|
Jt = Mr([
|
|
22524
22524
|
Fe("lr-chatbot-message-rating")
|
|
22525
22525
|
], Jt);
|
|
22526
|
-
const
|
|
22526
|
+
const Aw = _e`
|
|
22527
22527
|
:host lr-rating-element {
|
|
22528
22528
|
margin-left: -2px;
|
|
22529
22529
|
}
|
|
@@ -22535,7 +22535,7 @@ et(
|
|
|
22535
22535
|
<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"/>
|
|
22536
22536
|
`
|
|
22537
22537
|
);
|
|
22538
|
-
const
|
|
22538
|
+
const Tw = _e`
|
|
22539
22539
|
:host lr-icon-star-filled {
|
|
22540
22540
|
display: inline-block;
|
|
22541
22541
|
cursor: default;
|
|
@@ -22564,10 +22564,10 @@ const Aw = _e`
|
|
|
22564
22564
|
opacity: 1;
|
|
22565
22565
|
}
|
|
22566
22566
|
`;
|
|
22567
|
-
var
|
|
22568
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22567
|
+
var Rw = Object.defineProperty, Ow = Object.getOwnPropertyDescriptor, mo = (t, r, e, n) => {
|
|
22568
|
+
for (var i = n > 1 ? void 0 : n ? Ow(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22569
22569
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22570
|
-
return n && i &&
|
|
22570
|
+
return n && i && Rw(r, e, i), i;
|
|
22571
22571
|
};
|
|
22572
22572
|
let br = class extends ge {
|
|
22573
22573
|
constructor() {
|
|
@@ -22577,7 +22577,7 @@ let br = class extends ge {
|
|
|
22577
22577
|
return fe`<lr-icon-star-filled size=${this.size}></lr-icon-star-filled>`;
|
|
22578
22578
|
}
|
|
22579
22579
|
};
|
|
22580
|
-
br.styles = [ge.styles,
|
|
22580
|
+
br.styles = [ge.styles, Tw];
|
|
22581
22581
|
mo([
|
|
22582
22582
|
z({ type: Boolean, reflect: !0 })
|
|
22583
22583
|
], br.prototype, "active", 2);
|
|
@@ -22587,10 +22587,10 @@ mo([
|
|
|
22587
22587
|
br = mo([
|
|
22588
22588
|
Fe("lr-rating-element")
|
|
22589
22589
|
], br);
|
|
22590
|
-
var
|
|
22591
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22590
|
+
var Iw = Object.defineProperty, Lw = Object.getOwnPropertyDescriptor, Pr = (t, r, e, n) => {
|
|
22591
|
+
for (var i = n > 1 ? void 0 : n ? Lw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22592
22592
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22593
|
-
return n && i &&
|
|
22593
|
+
return n && i && Iw(r, e, i), i;
|
|
22594
22594
|
};
|
|
22595
22595
|
let Rt = class extends ge {
|
|
22596
22596
|
constructor() {
|
|
@@ -22634,7 +22634,7 @@ let Rt = class extends ge {
|
|
|
22634
22634
|
}
|
|
22635
22635
|
};
|
|
22636
22636
|
Rt.formAssociated = !0;
|
|
22637
|
-
Rt.styles = [ge.styles,
|
|
22637
|
+
Rt.styles = [ge.styles, Aw];
|
|
22638
22638
|
Pr([
|
|
22639
22639
|
z({ type: String })
|
|
22640
22640
|
], Rt.prototype, "size", 2);
|
|
@@ -22650,7 +22650,7 @@ Pr([
|
|
|
22650
22650
|
Rt = Pr([
|
|
22651
22651
|
Fe("lr-rating")
|
|
22652
22652
|
], Rt);
|
|
22653
|
-
const
|
|
22653
|
+
const Mw = _e`
|
|
22654
22654
|
:host {
|
|
22655
22655
|
--font-family: var(--lr-poppins);
|
|
22656
22656
|
--font-size: var(--lr-text-14);
|
|
@@ -22753,10 +22753,10 @@ const Lw = _e`
|
|
|
22753
22753
|
--font-size: var(--lr-text-14);
|
|
22754
22754
|
}
|
|
22755
22755
|
`;
|
|
22756
|
-
var
|
|
22757
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22756
|
+
var Pw = Object.defineProperty, $w = Object.getOwnPropertyDescriptor, Ne = (t, r, e, n) => {
|
|
22757
|
+
for (var i = n > 1 ? void 0 : n ? $w(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22758
22758
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22759
|
-
return n && i &&
|
|
22759
|
+
return n && i && Pw(r, e, i), i;
|
|
22760
22760
|
};
|
|
22761
22761
|
let Ee = class extends ge {
|
|
22762
22762
|
constructor() {
|
|
@@ -22787,7 +22787,7 @@ let Ee = class extends ge {
|
|
|
22787
22787
|
"input-wrapper": !0,
|
|
22788
22788
|
"has-icon": !!this.icon,
|
|
22789
22789
|
[`icon-${this.iconPosition}`]: !!this.icon
|
|
22790
|
-
}), r =
|
|
22790
|
+
}), r = _s(`${this.icon}`), e = this.icon ? jt`<${r} class='icon' size=${this.size}></${r}>` : null;
|
|
22791
22791
|
return fe`
|
|
22792
22792
|
<div class=${t}>
|
|
22793
22793
|
${this.label ? fe`<label for="input">${this.label}</label>` : se}
|
|
@@ -22812,7 +22812,7 @@ let Ee = class extends ge {
|
|
|
22812
22812
|
}
|
|
22813
22813
|
};
|
|
22814
22814
|
Ee.formAssociated = !0;
|
|
22815
|
-
Ee.styles = [ge.styles,
|
|
22815
|
+
Ee.styles = [ge.styles, Mw];
|
|
22816
22816
|
Ne([
|
|
22817
22817
|
z({ type: String })
|
|
22818
22818
|
], Ee.prototype, "label", 2);
|
|
@@ -22861,7 +22861,7 @@ et(
|
|
|
22861
22861
|
<path xmlns="http://www.w3.org/2000/svg" d="M6 16.7778L12.1538 23L26 9" stroke="currentcolor" strokeWidth="2" strokeLinecap="square" strokeLinejoin="round"/>
|
|
22862
22862
|
`
|
|
22863
22863
|
);
|
|
22864
|
-
const
|
|
22864
|
+
const Fw = _e`
|
|
22865
22865
|
:host .feedback {
|
|
22866
22866
|
display: none;
|
|
22867
22867
|
margin: 0.625rem 0;
|
|
@@ -22877,10 +22877,10 @@ const $w = _e`
|
|
|
22877
22877
|
gap: 0.5rem;
|
|
22878
22878
|
}
|
|
22879
22879
|
`;
|
|
22880
|
-
var
|
|
22881
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22880
|
+
var Nw = Object.defineProperty, Dw = Object.getOwnPropertyDescriptor, Mn = (t, r, e, n) => {
|
|
22881
|
+
for (var i = n > 1 ? void 0 : n ? Dw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22882
22882
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22883
|
-
return n && i &&
|
|
22883
|
+
return n && i && Nw(r, e, i), i;
|
|
22884
22884
|
};
|
|
22885
22885
|
let Ot = class extends ge {
|
|
22886
22886
|
constructor() {
|
|
@@ -22959,9 +22959,9 @@ let Ot = class extends ge {
|
|
|
22959
22959
|
`;
|
|
22960
22960
|
}
|
|
22961
22961
|
};
|
|
22962
|
-
Ot.styles = [
|
|
22962
|
+
Ot.styles = [Fw];
|
|
22963
22963
|
Mn([
|
|
22964
|
-
fo({ context:
|
|
22964
|
+
fo({ context: aa })
|
|
22965
22965
|
], Ot.prototype, "messageContext", 2);
|
|
22966
22966
|
Mn([
|
|
22967
22967
|
Pt()
|
|
@@ -22978,14 +22978,14 @@ Mn([
|
|
|
22978
22978
|
Ot = Mn([
|
|
22979
22979
|
Fe("lr-chatbot-conversation-rating")
|
|
22980
22980
|
], Ot);
|
|
22981
|
-
function
|
|
22981
|
+
function Bw(t) {
|
|
22982
22982
|
const r = new RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![\\.,;:!?])", "g");
|
|
22983
22983
|
return t.replace(r, (n) => `<a href="${n}" style="color: inherit" target="_blank">${n}</a>`);
|
|
22984
22984
|
}
|
|
22985
|
-
var
|
|
22986
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
22985
|
+
var jw = Object.defineProperty, Hw = Object.getOwnPropertyDescriptor, yt = (t, r, e, n) => {
|
|
22986
|
+
for (var i = n > 1 ? void 0 : n ? Hw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
22987
22987
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
22988
|
-
return n && i &&
|
|
22988
|
+
return n && i && jw(r, e, i), i;
|
|
22989
22989
|
};
|
|
22990
22990
|
let Ye = class extends ge {
|
|
22991
22991
|
constructor() {
|
|
@@ -23013,7 +23013,7 @@ let Ye = class extends ge {
|
|
|
23013
23013
|
${this.showConversationRating ? fe`<lr-chatbot-conversation-rating></lr-chatbot-conversation-rating>` : se}`;
|
|
23014
23014
|
}
|
|
23015
23015
|
};
|
|
23016
|
-
Ye.styles = [ge.styles,
|
|
23016
|
+
Ye.styles = [ge.styles, uw];
|
|
23017
23017
|
yt([
|
|
23018
23018
|
z({ type: String })
|
|
23019
23019
|
], Ye.prototype, "apiUrl", 2);
|
|
@@ -23036,13 +23036,13 @@ yt([
|
|
|
23036
23036
|
z({ type: Boolean })
|
|
23037
23037
|
], Ye.prototype, "showConversationRating", 2);
|
|
23038
23038
|
yt([
|
|
23039
|
-
|
|
23039
|
+
pw({ context: aa })
|
|
23040
23040
|
], Ye.prototype, "messageContext", 2);
|
|
23041
23041
|
Ye = yt([
|
|
23042
23042
|
Fe("lr-chatbot-message")
|
|
23043
23043
|
], Ye);
|
|
23044
23044
|
const Hn = (t) => {
|
|
23045
|
-
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e =
|
|
23045
|
+
const r = t.slot.replace(/(?:\r\n|\r|\n)/g, "<br/>"), e = Bw(r);
|
|
23046
23046
|
return `<lr-chatbot-message
|
|
23047
23047
|
${t.apiUrl ? `apiUrl="${t.apiUrl}"` : ""}
|
|
23048
23048
|
${t.conversationId ? `conversationId="${t.conversationId}"` : ""}
|
|
@@ -23055,18 +23055,18 @@ const Hn = (t) => {
|
|
|
23055
23055
|
${e}
|
|
23056
23056
|
</lr-chatbot-message>`;
|
|
23057
23057
|
};
|
|
23058
|
-
var
|
|
23058
|
+
var Uw = Object.defineProperty, zw = Object.getOwnPropertyDescriptor, rh = (t) => {
|
|
23059
23059
|
throw TypeError(t);
|
|
23060
23060
|
}, Pn = (t, r, e, n) => {
|
|
23061
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
23061
|
+
for (var i = n > 1 ? void 0 : n ? zw(r, e) : r, a = t.length - 1, s; a >= 0; a--)
|
|
23062
23062
|
(s = t[a]) && (i = (n ? s(r, e, i) : s(i)) || i);
|
|
23063
|
-
return n && i &&
|
|
23063
|
+
return n && i && Uw(r, e, i), i;
|
|
23064
23064
|
}, 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;
|
|
23065
23065
|
const ah = "lr.chatbot.broadcast_channel." + document.location.hostname, vn = "lr.chatbot.conversation_id", Vn = "lr.chatbot.conversation_state";
|
|
23066
23066
|
let It = class extends ge {
|
|
23067
23067
|
constructor() {
|
|
23068
23068
|
super({
|
|
23069
|
-
translationsLoaderGetter: () => new
|
|
23069
|
+
translationsLoaderGetter: () => new lw(this.apiUrl, this.country, this.language),
|
|
23070
23070
|
fetchAsyncServerTranslations: !0
|
|
23071
23071
|
}), 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(
|
|
23072
23072
|
this,
|
|
@@ -23104,7 +23104,7 @@ let It = class extends ge {
|
|
|
23104
23104
|
qn(this, oi, t);
|
|
23105
23105
|
}
|
|
23106
23106
|
getVersion() {
|
|
23107
|
-
return "LR Chatbot - v0.29.
|
|
23107
|
+
return "LR Chatbot - v0.29.6";
|
|
23108
23108
|
}
|
|
23109
23109
|
async connectedCallback() {
|
|
23110
23110
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -23188,7 +23188,7 @@ let It = class extends ge {
|
|
|
23188
23188
|
async setDeepChatHistory() {
|
|
23189
23189
|
if (!this.deepChat)
|
|
23190
23190
|
throw Error("Deep Chat should be initialized at this point");
|
|
23191
|
-
this.disableDeepChatTextInput(), [
|
|
23191
|
+
this.disableDeepChatTextInput(), [Pa.INITIAL, Pa.ERROR].includes(this._conversationHistoryTask.status) && this._conversationHistoryTask.run();
|
|
23192
23192
|
let t = await this._conversationHistoryTask.taskComplete;
|
|
23193
23193
|
this.setInitialMessages(), t != null && t.messages && (this.deepChat.history = [
|
|
23194
23194
|
...this.deepChat.history ?? [],
|
|
@@ -23408,13 +23408,13 @@ let It = class extends ge {
|
|
|
23408
23408
|
</div>
|
|
23409
23409
|
<div id="chat-wrapper-content">
|
|
23410
23410
|
${this.exitOverlay ? this.renderExitOverlay() : se}
|
|
23411
|
-
${this._conversationHistoryTask.status ===
|
|
23411
|
+
${this._conversationHistoryTask.status === Pa.PENDING ? fe`<lr-loading-overlay
|
|
23412
23412
|
${Ur({
|
|
23413
23413
|
in: zc,
|
|
23414
23414
|
out: Uc
|
|
23415
23415
|
})}
|
|
23416
23416
|
></lr-loading-overlay>` : se}
|
|
23417
|
-
<deep-chat id="chat-element" part="chat-element" ${
|
|
23417
|
+
<deep-chat id="chat-element" part="chat-element" ${nw(this.handleDeepChatLoad)}></deep-chat>
|
|
23418
23418
|
</div>
|
|
23419
23419
|
</div>
|
|
23420
23420
|
`;
|
|
@@ -23447,7 +23447,7 @@ ii = /* @__PURE__ */ new WeakMap();
|
|
|
23447
23447
|
ai = /* @__PURE__ */ new WeakMap();
|
|
23448
23448
|
si = /* @__PURE__ */ new WeakMap();
|
|
23449
23449
|
oi = /* @__PURE__ */ new WeakMap();
|
|
23450
|
-
It.styles = [ge.styles,
|
|
23450
|
+
It.styles = [ge.styles, rw];
|
|
23451
23451
|
Pn([
|
|
23452
23452
|
z({ type: String })
|
|
23453
23453
|
], It.prototype, "apiUrl", 1);
|