@telia-ace/widget-conversation-flamingo 1.1.76-rc.23 → 1.1.76-rc.25
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation-utilities.d.ts +1 -1
- package/index.js +57 -74
- package/index.mjs +402 -416
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -10,8 +10,8 @@ var $t = (s, e, t) => {
|
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
12
|
var He = (s, e, t) => (Ti(s, e, "access private method"), t);
|
13
|
-
const
|
14
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
13
|
+
const jl = async (s) => {
|
14
|
+
s.registerComponent("conversation", Promise.resolve().then(() => zl));
|
15
15
|
};
|
16
16
|
class fs {
|
17
17
|
constructor() {
|
@@ -184,8 +184,8 @@ function se(s, e, t) {
|
|
184
184
|
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
185
185
|
return s.concat(r || Array.prototype.slice.call(e));
|
186
186
|
}
|
187
|
-
function
|
188
|
-
return this instanceof
|
187
|
+
function pe(s) {
|
188
|
+
return this instanceof pe ? (this.v = s, this) : new pe(s);
|
189
189
|
}
|
190
190
|
function Oi(s, e, t) {
|
191
191
|
if (!Symbol.asyncIterator)
|
@@ -194,31 +194,31 @@ function Oi(s, e, t) {
|
|
194
194
|
return i = {}, o("next"), o("throw"), o("return"), i[Symbol.asyncIterator] = function() {
|
195
195
|
return this;
|
196
196
|
}, i;
|
197
|
-
function o(
|
198
|
-
n[
|
197
|
+
function o(p) {
|
198
|
+
n[p] && (i[p] = function(d) {
|
199
199
|
return new Promise(function(b, f) {
|
200
|
-
r.push([
|
200
|
+
r.push([p, d, b, f]) > 1 || a(p, d);
|
201
201
|
});
|
202
202
|
});
|
203
203
|
}
|
204
|
-
function a(
|
204
|
+
function a(p, d) {
|
205
205
|
try {
|
206
|
-
l(n[
|
206
|
+
l(n[p](d));
|
207
207
|
} catch (b) {
|
208
208
|
u(r[0][3], b);
|
209
209
|
}
|
210
210
|
}
|
211
|
-
function l(
|
212
|
-
|
211
|
+
function l(p) {
|
212
|
+
p.value instanceof pe ? Promise.resolve(p.value.v).then(c, h) : u(r[0][2], p);
|
213
213
|
}
|
214
|
-
function c(
|
215
|
-
a("next",
|
214
|
+
function c(p) {
|
215
|
+
a("next", p);
|
216
216
|
}
|
217
|
-
function h(
|
218
|
-
a("throw",
|
217
|
+
function h(p) {
|
218
|
+
a("throw", p);
|
219
219
|
}
|
220
|
-
function u(
|
221
|
-
d
|
220
|
+
function u(p, d) {
|
221
|
+
p(d), r.shift(), r.length && a(r[0][0], r[0][1]);
|
222
222
|
}
|
223
223
|
}
|
224
224
|
function Pi(s) {
|
@@ -304,8 +304,8 @@ var at = function() {
|
|
304
304
|
if (u) {
|
305
305
|
this._finalizers = null;
|
306
306
|
try {
|
307
|
-
for (var
|
308
|
-
var b =
|
307
|
+
for (var p = me(u), d = p.next(); !d.done; d = p.next()) {
|
308
|
+
var b = d.value;
|
309
309
|
try {
|
310
310
|
_n(b);
|
311
311
|
} catch (f) {
|
@@ -316,7 +316,7 @@ var at = function() {
|
|
316
316
|
n = { error: f };
|
317
317
|
} finally {
|
318
318
|
try {
|
319
|
-
|
319
|
+
d && !d.done && (i = p.return) && i.call(p);
|
320
320
|
} finally {
|
321
321
|
if (n)
|
322
322
|
throw n.error;
|
@@ -805,13 +805,13 @@ function Es(s) {
|
|
805
805
|
case 1:
|
806
806
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
807
807
|
case 2:
|
808
|
-
return [4,
|
808
|
+
return [4, pe(t.read())];
|
809
809
|
case 3:
|
810
|
-
return n = o.sent(), i = n.value, r = n.done, r ? [4,
|
810
|
+
return n = o.sent(), i = n.value, r = n.done, r ? [4, pe(void 0)] : [3, 5];
|
811
811
|
case 4:
|
812
812
|
return [2, o.sent()];
|
813
813
|
case 5:
|
814
|
-
return [4,
|
814
|
+
return [4, pe(i)];
|
815
815
|
case 6:
|
816
816
|
return [4, o.sent()];
|
817
817
|
case 7:
|
@@ -1090,19 +1090,19 @@ function hr(s) {
|
|
1090
1090
|
function ur(s) {
|
1091
1091
|
return s && typeof s == "object" && ar(s) === lr;
|
1092
1092
|
}
|
1093
|
-
function
|
1093
|
+
function pr(s, e) {
|
1094
1094
|
return s.reduce(function(t, n, i) {
|
1095
1095
|
return t[n] = e[i], t;
|
1096
1096
|
}, {});
|
1097
1097
|
}
|
1098
|
-
function
|
1098
|
+
function dr() {
|
1099
1099
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1100
1100
|
s[e] = arguments[e];
|
1101
1101
|
var t = Gt(s), n = xs(s), i = hr(s), r = i.args, o = i.keys;
|
1102
1102
|
if (r.length === 0)
|
1103
1103
|
return lt([], t);
|
1104
1104
|
var a = new A(fr(r, t, o ? function(l) {
|
1105
|
-
return
|
1105
|
+
return pr(o, l);
|
1106
1106
|
} : Pe));
|
1107
1107
|
return n ? a.pipe(Is(n)) : a;
|
1108
1108
|
}
|
@@ -1111,9 +1111,9 @@ function fr(s, e, t) {
|
|
1111
1111
|
An(e, function() {
|
1112
1112
|
for (var i = s.length, r = new Array(i), o = i, a = i, l = function(h) {
|
1113
1113
|
An(e, function() {
|
1114
|
-
var u = lt(s[h], e),
|
1115
|
-
u.subscribe(P(n, function(
|
1116
|
-
r[h] =
|
1114
|
+
var u = lt(s[h], e), p = !1;
|
1115
|
+
u.subscribe(P(n, function(d) {
|
1116
|
+
r[h] = d, p || (p = !0, a--), a || n.next(t(r.slice()));
|
1117
1117
|
}, function() {
|
1118
1118
|
--o || n.complete();
|
1119
1119
|
}));
|
@@ -1127,15 +1127,15 @@ function An(s, e, t) {
|
|
1127
1127
|
s ? q(t, s, e) : e();
|
1128
1128
|
}
|
1129
1129
|
function gr(s, e, t, n, i, r, o, a) {
|
1130
|
-
var l = [], c = 0, h = 0, u = !1,
|
1130
|
+
var l = [], c = 0, h = 0, u = !1, p = function() {
|
1131
1131
|
u && !l.length && !c && e.complete();
|
1132
|
-
},
|
1132
|
+
}, d = function(f) {
|
1133
1133
|
return c < n ? b(f) : l.push(f);
|
1134
1134
|
}, b = function(f) {
|
1135
1135
|
r && e.next(f), c++;
|
1136
1136
|
var I = !1;
|
1137
1137
|
B(t(f, h++)).subscribe(P(e, function(N) {
|
1138
|
-
i == null || i(N), r ?
|
1138
|
+
i == null || i(N), r ? d(N) : e.next(N);
|
1139
1139
|
}, function() {
|
1140
1140
|
I = !0;
|
1141
1141
|
}, void 0, function() {
|
@@ -1149,14 +1149,14 @@ function gr(s, e, t, n, i, r, o, a) {
|
|
1149
1149
|
}) : b(J);
|
1150
1150
|
}; l.length && c < n; )
|
1151
1151
|
N();
|
1152
|
-
|
1152
|
+
p();
|
1153
1153
|
} catch (J) {
|
1154
1154
|
e.error(J);
|
1155
1155
|
}
|
1156
1156
|
}));
|
1157
1157
|
};
|
1158
|
-
return s.subscribe(P(e,
|
1159
|
-
u = !0,
|
1158
|
+
return s.subscribe(P(e, d, function() {
|
1159
|
+
u = !0, p();
|
1160
1160
|
})), function() {
|
1161
1161
|
a == null || a();
|
1162
1162
|
};
|
@@ -1231,7 +1231,7 @@ function Mt(s) {
|
|
1231
1231
|
}));
|
1232
1232
|
});
|
1233
1233
|
}
|
1234
|
-
function
|
1234
|
+
function de(s, e) {
|
1235
1235
|
return K(function(t, n) {
|
1236
1236
|
var i = null, r = 0, o = !1, a = function() {
|
1237
1237
|
return o && !i && n.complete();
|
@@ -1264,22 +1264,25 @@ function Ut() {
|
|
1264
1264
|
for (var r = s.length, o = new Array(r), a = s.map(function() {
|
1265
1265
|
return !1;
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
|
-
B(s[u]).subscribe(P(i, function(
|
1268
|
-
o[u] =
|
1267
|
+
B(s[u]).subscribe(P(i, function(p) {
|
1268
|
+
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Pe)) && (a = null));
|
1269
1269
|
}, Ye));
|
1270
1270
|
}, h = 0; h < r; h++)
|
1271
1271
|
c(h);
|
1272
1272
|
n.subscribe(P(i, function(u) {
|
1273
1273
|
if (l) {
|
1274
|
-
var
|
1275
|
-
i.next(t ? t.apply(void 0, se([], Q(
|
1274
|
+
var p = se([u], Q(o));
|
1275
|
+
i.next(t ? t.apply(void 0, se([], Q(p))) : p);
|
1276
1276
|
}
|
1277
1277
|
}));
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
1280
|
var W = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(W || {});
|
1281
|
-
const
|
1282
|
-
|
1281
|
+
const _r = () => "10000000-1000-4000-8000-100000000000".replace(
|
1282
|
+
/[018]/g,
|
1283
|
+
(s) => (+s ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +s / 4).toString(16)
|
1284
|
+
), Ms = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : _r();
|
1285
|
+
function Dl(s) {
|
1283
1286
|
let e = s;
|
1284
1287
|
const t = /https?:\/\/[^\s<]+/gi, n = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = s.match(t) || [], r = [];
|
1285
1288
|
let o;
|
@@ -1299,9 +1302,9 @@ function jl(s) {
|
|
1299
1302
|
);
|
1300
1303
|
}), e;
|
1301
1304
|
}
|
1302
|
-
function
|
1305
|
+
function Sr(s) {
|
1303
1306
|
if (s.includes("aceChatGuideTitle"))
|
1304
|
-
return
|
1307
|
+
return Cr(s);
|
1305
1308
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1306
1309
|
return s.replace(e, (t) => {
|
1307
1310
|
const n = zs(t);
|
@@ -1313,13 +1316,13 @@ function _r(s) {
|
|
1313
1316
|
if (!o)
|
1314
1317
|
return t;
|
1315
1318
|
const a = o[1], c = (o[2] || "/").split("?")[0], h = c.split("/").pop(), u = i - a.length;
|
1316
|
-
let
|
1317
|
-
h && h.length < u && c.length > u ?
|
1319
|
+
let p = c;
|
1320
|
+
h && h.length < u && c.length > u ? p = c.substring(
|
1318
1321
|
0,
|
1319
1322
|
u - h.length - 4
|
1320
|
-
) + ".../" + h :
|
1321
|
-
const
|
1322
|
-
return jt(t,
|
1323
|
+
) + ".../" + h : p = c.substring(0, u - 3) + "...";
|
1324
|
+
const d = `${a}${p}`;
|
1325
|
+
return jt(t, d);
|
1323
1326
|
}
|
1324
1327
|
return jt(t, n);
|
1325
1328
|
});
|
@@ -1335,7 +1338,7 @@ function zs(s) {
|
|
1335
1338
|
function jt(s, e) {
|
1336
1339
|
return s.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1337
1340
|
}
|
1338
|
-
function
|
1341
|
+
function Cr(s) {
|
1339
1342
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1340
1343
|
return s.replace(e, (t) => {
|
1341
1344
|
const n = zs(t);
|
@@ -1363,7 +1366,7 @@ class ct {
|
|
1363
1366
|
this.remove$.next();
|
1364
1367
|
}
|
1365
1368
|
}
|
1366
|
-
class
|
1369
|
+
class Ar {
|
1367
1370
|
constructor(e) {
|
1368
1371
|
this.name = e, this.print$ = new _();
|
1369
1372
|
}
|
@@ -1383,7 +1386,7 @@ class Cr {
|
|
1383
1386
|
return this.print$.asObservable();
|
1384
1387
|
}
|
1385
1388
|
}
|
1386
|
-
class
|
1389
|
+
class Er {
|
1387
1390
|
constructor(e) {
|
1388
1391
|
this.name = e, this.print$ = new _();
|
1389
1392
|
}
|
@@ -1403,7 +1406,7 @@ class Ar {
|
|
1403
1406
|
return this.print$.asObservable();
|
1404
1407
|
}
|
1405
1408
|
}
|
1406
|
-
class
|
1409
|
+
class Tr {
|
1407
1410
|
constructor() {
|
1408
1411
|
this.print$ = new _(), this.name = "system";
|
1409
1412
|
}
|
@@ -1423,7 +1426,7 @@ class Er {
|
|
1423
1426
|
return this.print$.asObservable();
|
1424
1427
|
}
|
1425
1428
|
}
|
1426
|
-
class
|
1429
|
+
class Hl {
|
1427
1430
|
constructor(e, t) {
|
1428
1431
|
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new U(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new U(!1), this.onComplete = () => this.complete$.asObservable();
|
1429
1432
|
}
|
@@ -1457,19 +1460,19 @@ class Dl {
|
|
1457
1460
|
return this.print$.next(e), e;
|
1458
1461
|
}
|
1459
1462
|
createAgent(e) {
|
1460
|
-
const t = new
|
1463
|
+
const t = new Ar(e);
|
1461
1464
|
return t.subscribe().subscribe((n) => {
|
1462
1465
|
this.playNotification(), this.printEntry(n);
|
1463
1466
|
}), t;
|
1464
1467
|
}
|
1465
1468
|
createUser(e) {
|
1466
|
-
const t = new
|
1469
|
+
const t = new Er(e);
|
1467
1470
|
return t.subscribe().subscribe((n) => {
|
1468
1471
|
this.printEntry(n);
|
1469
1472
|
}), t;
|
1470
1473
|
}
|
1471
1474
|
createSystem() {
|
1472
|
-
const e = new
|
1475
|
+
const e = new Tr();
|
1473
1476
|
return e.subscribe().subscribe((t) => {
|
1474
1477
|
this.printEntry(t);
|
1475
1478
|
}), e;
|
@@ -1525,7 +1528,7 @@ let Us = class {
|
|
1525
1528
|
return this.cssText;
|
1526
1529
|
}
|
1527
1530
|
};
|
1528
|
-
const
|
1531
|
+
const Lr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s, ...e) => {
|
1529
1532
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1530
1533
|
if (o._$cssResult$ === !0)
|
1531
1534
|
return o.cssText;
|
@@ -1534,7 +1537,7 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1534
1537
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
1535
1538
|
})(i) + s[r + 1], s[0]);
|
1536
1539
|
return new Us(t, s, Jt);
|
1537
|
-
},
|
1540
|
+
}, Or = (s, e) => {
|
1538
1541
|
if (Vt)
|
1539
1542
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1540
1543
|
else
|
@@ -1546,17 +1549,17 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1546
1549
|
let t = "";
|
1547
1550
|
for (const n of e.cssRules)
|
1548
1551
|
t += n.cssText;
|
1549
|
-
return
|
1552
|
+
return Lr(t);
|
1550
1553
|
})(s) : s;
|
1551
1554
|
/**
|
1552
1555
|
* @license
|
1553
1556
|
* Copyright 2017 Google LLC
|
1554
1557
|
* SPDX-License-Identifier: BSD-3-Clause
|
1555
1558
|
*/
|
1556
|
-
const { is:
|
1559
|
+
const { is: Pr, defineProperty: Rr, getOwnPropertyDescriptor: Ir, getOwnPropertyNames: Mr, getOwnPropertySymbols: zr, getPrototypeOf: Ur } = Object, Y = globalThis, On = Y.trustedTypes, jr = On ? On.emptyScript : "", kt = Y.reactiveElementPolyfillSupport, we = (s, e) => s, Ke = { toAttribute(s, e) {
|
1557
1560
|
switch (e) {
|
1558
1561
|
case Boolean:
|
1559
|
-
s = s ?
|
1562
|
+
s = s ? jr : null;
|
1560
1563
|
break;
|
1561
1564
|
case Object:
|
1562
1565
|
case Array:
|
@@ -1581,7 +1584,7 @@ const { is: Or, defineProperty: Pr, getOwnPropertyDescriptor: Rr, getOwnProperty
|
|
1581
1584
|
}
|
1582
1585
|
}
|
1583
1586
|
return t;
|
1584
|
-
} }, en = (s, e) => !
|
1587
|
+
} }, en = (s, e) => !Pr(s, e), Pn = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en };
|
1585
1588
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1586
1589
|
let le = class extends HTMLElement {
|
1587
1590
|
static addInitializer(e) {
|
@@ -1593,11 +1596,11 @@ let le = class extends HTMLElement {
|
|
1593
1596
|
static createProperty(e, t = Pn) {
|
1594
1597
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1595
1598
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1596
|
-
i !== void 0 &&
|
1599
|
+
i !== void 0 && Rr(this.prototype, e, i);
|
1597
1600
|
}
|
1598
1601
|
}
|
1599
1602
|
static getPropertyDescriptor(e, t, n) {
|
1600
|
-
const { get: i, set: r } =
|
1603
|
+
const { get: i, set: r } = Ir(this.prototype, e) ?? { get() {
|
1601
1604
|
return this[t];
|
1602
1605
|
}, set(o) {
|
1603
1606
|
this[t] = o;
|
@@ -1615,14 +1618,14 @@ let le = class extends HTMLElement {
|
|
1615
1618
|
static _$Ei() {
|
1616
1619
|
if (this.hasOwnProperty(we("elementProperties")))
|
1617
1620
|
return;
|
1618
|
-
const e =
|
1621
|
+
const e = Ur(this);
|
1619
1622
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1620
1623
|
}
|
1621
1624
|
static finalize() {
|
1622
1625
|
if (this.hasOwnProperty(we("finalized")))
|
1623
1626
|
return;
|
1624
1627
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(we("properties"))) {
|
1625
|
-
const t = this.properties, n = [...
|
1628
|
+
const t = this.properties, n = [...Mr(t), ...zr(t)];
|
1626
1629
|
for (const i of n)
|
1627
1630
|
this.createProperty(i, t[i]);
|
1628
1631
|
}
|
@@ -1677,7 +1680,7 @@ let le = class extends HTMLElement {
|
|
1677
1680
|
}
|
1678
1681
|
createRenderRoot() {
|
1679
1682
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1680
|
-
return
|
1683
|
+
return Or(e, this.constructor.elementStyles), e;
|
1681
1684
|
}
|
1682
1685
|
connectedCallback() {
|
1683
1686
|
var e;
|
@@ -1800,24 +1803,24 @@ le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[we("elementPr
|
|
1800
1803
|
* Copyright 2017 Google LLC
|
1801
1804
|
* SPDX-License-Identifier: BSD-3-Clause
|
1802
1805
|
*/
|
1803
|
-
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z,
|
1806
|
+
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z, Dr = `<${Ds}>`, ie = document, Ae = () => ie.createComment(""), Ee = (s) => s === null || typeof s != "object" && typeof s != "function", Hs = Array.isArray, Hr = (s) => Hs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1804
1807
|
\f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, In = /-->/g, Mn = />/g, ee = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1805
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i,
|
1808
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i, Br = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = Br(1), G = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), jn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1806
1809
|
function Ns(s, e) {
|
1807
1810
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1808
1811
|
throw Error("invalid template strings array");
|
1809
1812
|
return Rn !== void 0 ? Rn.createHTML(e) : e;
|
1810
1813
|
}
|
1811
|
-
const
|
1814
|
+
const Nr = (s, e) => {
|
1812
1815
|
const t = s.length - 1, n = [];
|
1813
1816
|
let i, r = e === 2 ? "<svg>" : "", o = $e;
|
1814
1817
|
for (let a = 0; a < t; a++) {
|
1815
1818
|
const l = s[a];
|
1816
|
-
let c, h, u = -1,
|
1817
|
-
for (;
|
1818
|
-
|
1819
|
-
const
|
1820
|
-
r += o === $e ? l +
|
1819
|
+
let c, h, u = -1, p = 0;
|
1820
|
+
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1821
|
+
p = o.lastIndex, o === $e ? h[1] === "!--" ? o = In : h[1] !== void 0 ? o = Mn : h[2] !== void 0 ? (Bs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = i ?? $e, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? Un : zn) : o === Un || o === zn ? o = ee : o === In || o === Mn ? o = $e : (o = ee, i = void 0);
|
1822
|
+
const d = o === ee && s[a + 1].startsWith("/>") ? " " : "";
|
1823
|
+
r += o === $e ? l + Dr : u >= 0 ? (n.push(c), l.slice(0, u) + js + l.slice(u) + Z + d) : l + Z + (u === -2 ? a : d);
|
1821
1824
|
}
|
1822
1825
|
return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1823
1826
|
};
|
@@ -1826,7 +1829,7 @@ class Te {
|
|
1826
1829
|
let i;
|
1827
1830
|
this.parts = [];
|
1828
1831
|
let r = 0, o = 0;
|
1829
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1832
|
+
const a = e.length - 1, l = this.parts, [c, h] = Nr(e, t);
|
1830
1833
|
if (this.el = Te.createElement(c, n), ne.currentNode = this.el.content, t === 2) {
|
1831
1834
|
const u = this.el.content.firstChild;
|
1832
1835
|
u.replaceWith(...u.childNodes);
|
@@ -1836,17 +1839,17 @@ class Te {
|
|
1836
1839
|
if (i.hasAttributes())
|
1837
1840
|
for (const u of i.getAttributeNames())
|
1838
1841
|
if (u.endsWith(js)) {
|
1839
|
-
const
|
1840
|
-
l.push({ type: 1, index: r, name: b[2], strings:
|
1842
|
+
const p = h[o++], d = i.getAttribute(u).split(Z), b = /([.?@])?(.*)/.exec(p);
|
1843
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? qr : b[1] === "?" ? Zr : b[1] === "@" ? Wr : ht }), i.removeAttribute(u);
|
1841
1844
|
} else
|
1842
1845
|
u.startsWith(Z) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1843
1846
|
if (Bs.test(i.tagName)) {
|
1844
|
-
const u = i.textContent.split(Z),
|
1845
|
-
if (
|
1847
|
+
const u = i.textContent.split(Z), p = u.length - 1;
|
1848
|
+
if (p > 0) {
|
1846
1849
|
i.textContent = Xe ? Xe.emptyScript : "";
|
1847
|
-
for (let
|
1848
|
-
i.append(u[
|
1849
|
-
i.append(u[
|
1850
|
+
for (let d = 0; d < p; d++)
|
1851
|
+
i.append(u[d], Ae()), ne.nextNode(), l.push({ type: 2, index: ++r });
|
1852
|
+
i.append(u[p], Ae());
|
1850
1853
|
}
|
1851
1854
|
}
|
1852
1855
|
} else if (i.nodeType === 8)
|
@@ -1873,7 +1876,7 @@ function ve(s, e, t = s, n) {
|
|
1873
1876
|
const r = Ee(e) ? void 0 : e._$litDirective$;
|
1874
1877
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = ve(s, i._$AS(s, e.values), i, n)), e;
|
1875
1878
|
}
|
1876
|
-
class
|
1879
|
+
class Fr {
|
1877
1880
|
constructor(e, t) {
|
1878
1881
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1879
1882
|
}
|
@@ -1890,7 +1893,7 @@ class Nr {
|
|
1890
1893
|
for (; l !== void 0; ) {
|
1891
1894
|
if (o === l.index) {
|
1892
1895
|
let c;
|
1893
|
-
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
1896
|
+
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Yr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1894
1897
|
}
|
1895
1898
|
o !== (l == null ? void 0 : l.index) && (r = ne.nextNode(), o++);
|
1896
1899
|
}
|
@@ -1922,7 +1925,7 @@ class Ie {
|
|
1922
1925
|
return this._$AB;
|
1923
1926
|
}
|
1924
1927
|
_$AI(e, t = this) {
|
1925
|
-
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
1928
|
+
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Hr(e) ? this.k(e) : this._(e);
|
1926
1929
|
}
|
1927
1930
|
S(e) {
|
1928
1931
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1939,7 +1942,7 @@ class Ie {
|
|
1939
1942
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1940
1943
|
this._$AH.p(t);
|
1941
1944
|
else {
|
1942
|
-
const o = new
|
1945
|
+
const o = new Fr(i, this), a = o.u(this.options);
|
1943
1946
|
o.p(t), this.T(a), this._$AH = o;
|
1944
1947
|
}
|
1945
1948
|
}
|
@@ -1994,7 +1997,7 @@ class ht {
|
|
1994
1997
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1995
1998
|
}
|
1996
1999
|
}
|
1997
|
-
class
|
2000
|
+
class qr extends ht {
|
1998
2001
|
constructor() {
|
1999
2002
|
super(...arguments), this.type = 3;
|
2000
2003
|
}
|
@@ -2002,7 +2005,7 @@ class Fr extends ht {
|
|
2002
2005
|
this.element[this.name] = e === g ? void 0 : e;
|
2003
2006
|
}
|
2004
2007
|
}
|
2005
|
-
let
|
2008
|
+
let Zr = class extends ht {
|
2006
2009
|
constructor() {
|
2007
2010
|
super(...arguments), this.type = 4;
|
2008
2011
|
}
|
@@ -2010,7 +2013,7 @@ let qr = class extends ht {
|
|
2010
2013
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
2011
2014
|
}
|
2012
2015
|
};
|
2013
|
-
class
|
2016
|
+
class Wr extends ht {
|
2014
2017
|
constructor(e, t, n, i, r) {
|
2015
2018
|
super(e, t, n, i, r), this.type = 5;
|
2016
2019
|
}
|
@@ -2025,7 +2028,7 @@ class Zr extends ht {
|
|
2025
2028
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
2026
2029
|
}
|
2027
2030
|
}
|
2028
|
-
class
|
2031
|
+
class Yr {
|
2029
2032
|
constructor(e, t, n) {
|
2030
2033
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
2031
2034
|
}
|
@@ -2038,7 +2041,7 @@ class Wr {
|
|
2038
2041
|
}
|
2039
2042
|
const St = ke.litHtmlPolyfillSupport;
|
2040
2043
|
St == null || St(Te, Ie), (ke.litHtmlVersions ?? (ke.litHtmlVersions = [])).push("3.1.2");
|
2041
|
-
const
|
2044
|
+
const Qr = (s, e, t) => {
|
2042
2045
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
2043
2046
|
let i = n._$litPart$;
|
2044
2047
|
if (i === void 0) {
|
@@ -2063,7 +2066,7 @@ let k = class extends le {
|
|
2063
2066
|
}
|
2064
2067
|
update(e) {
|
2065
2068
|
const t = this.render();
|
2066
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
2069
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Qr(t, this.renderRoot, this.renderOptions);
|
2067
2070
|
}
|
2068
2071
|
connectedCallback() {
|
2069
2072
|
var e;
|
@@ -2077,12 +2080,12 @@ let k = class extends le {
|
|
2077
2080
|
return G;
|
2078
2081
|
}
|
2079
2082
|
};
|
2080
|
-
var
|
2081
|
-
k._$litElement$ = !0, k.finalized = !0, (
|
2083
|
+
var ds;
|
2084
|
+
k._$litElement$ = !0, k.finalized = !0, (ds = globalThis.litElementHydrateSupport) == null || ds.call(globalThis, { LitElement: k });
|
2082
2085
|
const Ct = globalThis.litElementPolyfillSupport;
|
2083
2086
|
Ct == null || Ct({ LitElement: k });
|
2084
2087
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2085
|
-
const
|
2088
|
+
const Gr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Kr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Xr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Vr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Jr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, Dn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, eo = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, to = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Hn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, ce = {
|
2086
2089
|
allRenderFn: !1,
|
2087
2090
|
cmpDidLoad: !0,
|
2088
2091
|
cmpDidUnload: !1,
|
@@ -2167,7 +2170,7 @@ const Qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2167
2170
|
attachStyles: !0
|
2168
2171
|
};
|
2169
2172
|
let he, Fs, ut, qs = !1, Ve = !1, tn = !1, T = !1, Bn = null, Dt = !1;
|
2170
|
-
const
|
2173
|
+
const pt = typeof window < "u" ? window : {}, H = pt.document || { head: {} }, Zs = pt.HTMLElement || class {
|
2171
2174
|
}, S = {
|
2172
2175
|
$flags$: 0,
|
2173
2176
|
$resourcesUrl$: "",
|
@@ -2176,7 +2179,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2176
2179
|
ael: (s, e, t, n) => s.addEventListener(e, t, n),
|
2177
2180
|
rel: (s, e, t, n) => s.removeEventListener(e, t, n),
|
2178
2181
|
ce: (s, e) => new CustomEvent(s, e)
|
2179
|
-
},
|
2182
|
+
}, no = /* @__PURE__ */ (() => {
|
2180
2183
|
let s = !1;
|
2181
2184
|
try {
|
2182
2185
|
H.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2187,7 +2190,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2187
2190
|
} catch {
|
2188
2191
|
}
|
2189
2192
|
return s;
|
2190
|
-
})(),
|
2193
|
+
})(), so = (s) => Promise.resolve(s), io = /* @__PURE__ */ (() => {
|
2191
2194
|
try {
|
2192
2195
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2193
2196
|
} catch {
|
@@ -2195,23 +2198,23 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2195
2198
|
return !1;
|
2196
2199
|
})(), Ws = (s, e, t, n) => {
|
2197
2200
|
t && t.map(([i, r, o]) => {
|
2198
|
-
const a =
|
2201
|
+
const a = oo(s, i), l = ro(e, o), c = ao(i);
|
2199
2202
|
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2200
2203
|
});
|
2201
|
-
},
|
2204
|
+
}, ro = (s, e) => (t) => {
|
2202
2205
|
try {
|
2203
2206
|
ce.lazyLoad || s.$hostElement$[e](t);
|
2204
2207
|
} catch (n) {
|
2205
2208
|
Me(n);
|
2206
2209
|
}
|
2207
|
-
},
|
2210
|
+
}, oo = (s, e) => e & 4 ? H : e & 8 ? pt : e & 16 ? H.body : s, ao = (s) => no ? {
|
2208
2211
|
passive: (s & 1) !== 0,
|
2209
2212
|
capture: (s & 2) !== 0
|
2210
2213
|
} : (s & 2) !== 0, Nn = "http://www.w3.org/1999/xlink", re = (s, e = "") => () => {
|
2211
|
-
}, Fn = /* @__PURE__ */ new WeakMap(),
|
2214
|
+
}, Fn = /* @__PURE__ */ new WeakMap(), lo = (s, e, t) => {
|
2212
2215
|
let n = tt.get(s);
|
2213
|
-
|
2214
|
-
},
|
2216
|
+
io && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2217
|
+
}, co = (s, e, t, n) => {
|
2215
2218
|
let i = Ys(e, t), r = tt.get(i);
|
2216
2219
|
if (s = s.nodeType === 11 ? s : H, r)
|
2217
2220
|
if (typeof r == "string") {
|
@@ -2221,24 +2224,24 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2221
2224
|
} else
|
2222
2225
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2223
2226
|
return i;
|
2224
|
-
},
|
2225
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r =
|
2227
|
+
}, ho = (s) => {
|
2228
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r = co(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2226
2229
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2227
|
-
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$),
|
2230
|
+
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), uo = (s) => Ho.map((e) => e(s)).find((e) => !!e), qn = {}, po = "http://www.w3.org/2000/svg", fo = "http://www.w3.org/1999/xhtml", go = (s) => s != null, nn = (s) => (s = typeof s, s === "object" || s === "function"), fe = (s, e, ...t) => {
|
2228
2231
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2229
2232
|
const c = (u) => {
|
2230
|
-
for (let
|
2231
|
-
n = u[
|
2233
|
+
for (let p = 0; p < u.length; p++)
|
2234
|
+
n = u[p], Array.isArray(n) ? c(n) : n != null && typeof n != "boolean" && ((o = typeof s != "function" && !nn(n)) && (n = String(n)), o && a ? l[l.length - 1].$text$ += n : l.push(o ? Je(null, n) : n), a = o);
|
2232
2235
|
};
|
2233
2236
|
if (c(t), e) {
|
2234
2237
|
e.key && (i = e.key), e.name && (r = e.name);
|
2235
2238
|
{
|
2236
2239
|
const u = e.className || e.class;
|
2237
|
-
u && (e.class = typeof u != "object" ? u : Object.keys(u).filter((
|
2240
|
+
u && (e.class = typeof u != "object" ? u : Object.keys(u).filter((p) => u[p]).join(" "));
|
2238
2241
|
}
|
2239
2242
|
}
|
2240
2243
|
if (typeof s == "function")
|
2241
|
-
return s(e === null ? {} : e, l,
|
2244
|
+
return s(e === null ? {} : e, l, vo);
|
2242
2245
|
const h = Je(s, null);
|
2243
2246
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2244
2247
|
}, Je = (s, e) => {
|
@@ -2250,9 +2253,9 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2250
2253
|
$children$: null
|
2251
2254
|
};
|
2252
2255
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2253
|
-
}, sn = {},
|
2256
|
+
}, sn = {}, mo = (s) => s && s.$tag$ === sn, vo = {
|
2254
2257
|
forEach: (s, e) => s.map(Zn).forEach(e),
|
2255
|
-
map: (s, e) => s.map(Zn).map(e).map(
|
2258
|
+
map: (s, e) => s.map(Zn).map(e).map(bo)
|
2256
2259
|
}, Zn = (s) => ({
|
2257
2260
|
vattrs: s.$attrs$,
|
2258
2261
|
vchildren: s.$children$,
|
@@ -2260,7 +2263,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2260
2263
|
vname: s.$name$,
|
2261
2264
|
vtag: s.$tag$,
|
2262
2265
|
vtext: s.$text$
|
2263
|
-
}),
|
2266
|
+
}), bo = (s) => {
|
2264
2267
|
if (typeof s.vtag == "function") {
|
2265
2268
|
const t = Object.assign({}, s.vattrs);
|
2266
2269
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), fe(s.vtag, t, ...s.vchildren || []);
|
@@ -2282,7 +2285,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2282
2285
|
if (e === "ref")
|
2283
2286
|
n && n(s);
|
2284
2287
|
else if (!s.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
|
2285
|
-
e[2] === "-" ? e = e.slice(3) : Kn(
|
2288
|
+
e[2] === "-" ? e = e.slice(3) : Kn(pt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && S.rel(s, e, t, !1), n && S.ael(s, e, n, !1);
|
2286
2289
|
else {
|
2287
2290
|
const l = nn(n);
|
2288
2291
|
if ((o || l && n !== null) && !i)
|
@@ -2299,7 +2302,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2299
2302
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(Nn, e) : s.removeAttribute(e)) : (!o || r & 4 || i) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(Nn, e, n) : s.setAttribute(e, n));
|
2300
2303
|
}
|
2301
2304
|
}
|
2302
|
-
},
|
2305
|
+
}, yo = /\s/, Yn = (s) => s ? s.split(yo) : [], Qs = (s, e, t, n) => {
|
2303
2306
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || qn, o = e.$attrs$ || qn;
|
2304
2307
|
for (n in r)
|
2305
2308
|
n in o || Wn(i, n, r[n], void 0, t, e.$flags$);
|
@@ -2318,7 +2321,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2318
2321
|
else if (i.$flags$ & 1)
|
2319
2322
|
o = i.$elm$ = H.createTextNode("");
|
2320
2323
|
else {
|
2321
|
-
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ?
|
2324
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ? po : fo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Qs(null, i, T), go(he) && o["s-si"] !== he && o.classList.add(o["s-si"] = he), i.$children$)
|
2322
2325
|
for (r = 0; r < i.$children$.length; ++r)
|
2323
2326
|
a = et(s, i, r, o), a && o.appendChild(a);
|
2324
2327
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
@@ -2339,38 +2342,38 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2339
2342
|
}, Ks = (s, e, t, n, i) => {
|
2340
2343
|
for (; e <= t; ++e)
|
2341
2344
|
(n = s[e]) && (i = n.$elm$, ei(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Le(i, !0), i.remove());
|
2342
|
-
},
|
2343
|
-
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1,
|
2345
|
+
}, $o = (s, e, t, n) => {
|
2346
|
+
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, p = n[0], d = n[u], b, f;
|
2344
2347
|
for (; i <= l && r <= u; )
|
2345
2348
|
if (c == null)
|
2346
2349
|
c = e[++i];
|
2347
2350
|
else if (h == null)
|
2348
2351
|
h = e[--l];
|
2349
|
-
else if (d == null)
|
2350
|
-
d = n[++r];
|
2351
2352
|
else if (p == null)
|
2352
|
-
p = n[
|
2353
|
-
else if (
|
2354
|
-
|
2355
|
-
else if (Ne(h, p))
|
2356
|
-
ue(h, p), h = e[--l], p = n[--u];
|
2353
|
+
p = n[++r];
|
2354
|
+
else if (d == null)
|
2355
|
+
d = n[--u];
|
2357
2356
|
else if (Ne(c, p))
|
2358
|
-
|
2357
|
+
ue(c, p), c = e[++i], p = n[++r];
|
2359
2358
|
else if (Ne(h, d))
|
2360
|
-
|
2359
|
+
ue(h, d), h = e[--l], d = n[--u];
|
2360
|
+
else if (Ne(c, d))
|
2361
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Le(c.$elm$.parentNode, !1), ue(c, d), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = e[++i], d = n[--u];
|
2362
|
+
else if (Ne(h, p))
|
2363
|
+
(c.$tag$ === "slot" || d.$tag$ === "slot") && Le(h.$elm$.parentNode, !1), ue(h, p), s.insertBefore(h.$elm$, c.$elm$), h = e[--l], p = n[++r];
|
2361
2364
|
else {
|
2362
2365
|
for (o = -1, a = i; a <= l; ++a)
|
2363
|
-
if (e[a] && e[a].$key$ !== null && e[a].$key$ ===
|
2366
|
+
if (e[a] && e[a].$key$ !== null && e[a].$key$ === p.$key$) {
|
2364
2367
|
o = a;
|
2365
2368
|
break;
|
2366
2369
|
}
|
2367
|
-
o >= 0 ? (f = e[o], f.$tag$ !==
|
2370
|
+
o >= 0 ? (f = e[o], f.$tag$ !== p.$tag$ ? b = et(e && e[r], t, o, s) : (ue(f, p), e[o] = void 0, b = f.$elm$), p = n[++r]) : (b = et(e && e[r], t, r, s), p = n[++r]), b && Xs(c.$elm$).insertBefore(b, rn(c.$elm$));
|
2368
2371
|
}
|
2369
2372
|
i > l ? Gs(s, n[u + 1] == null ? null : n[u + 1].$elm$, t, n, r, u) : r > u && Ks(e, i, l);
|
2370
2373
|
}, Ne = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, rn = (s) => s && s["s-ol"] || s, Xs = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, ue = (s, e) => {
|
2371
2374
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2372
2375
|
let a;
|
2373
|
-
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ?
|
2376
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ? $o(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Gs(t, null, e, i, 0, i.length - 1)) : n !== null && Ks(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2374
2377
|
}, Vs = (s) => {
|
2375
2378
|
let e = s.childNodes, t, n, i, r, o, a;
|
2376
2379
|
for (n = 0, i = e.length; n < i; n++)
|
@@ -2406,17 +2409,17 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2406
2409
|
}
|
2407
2410
|
}, Qn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", ei = (s) => {
|
2408
2411
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(ei);
|
2409
|
-
},
|
2410
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r =
|
2412
|
+
}, xo = (s, e) => {
|
2413
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = mo(e) ? e : fe(null, null, e);
|
2411
2414
|
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, he = t["s-sc"], Fs = t["s-cr"], qs = (n.$flags$ & 1) !== 0, Ve = !1, ue(i, r);
|
2412
2415
|
{
|
2413
2416
|
if (S.$flags$ |= 1, tn) {
|
2414
2417
|
Js(r.$elm$);
|
2415
|
-
let o, a, l, c, h, u,
|
2416
|
-
for (;
|
2417
|
-
o = O[
|
2418
|
-
for (
|
2419
|
-
if (o = O[
|
2418
|
+
let o, a, l, c, h, u, p = 0;
|
2419
|
+
for (; p < O.length; p++)
|
2420
|
+
o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = H.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2421
|
+
for (p = 0; p < O.length; p++)
|
2422
|
+
if (o = O[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2420
2423
|
for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
2421
2424
|
if (u = l["s-nr"], u && u["s-sn"] === a["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
|
2422
2425
|
h = u;
|
@@ -2428,37 +2431,37 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2428
2431
|
}
|
2429
2432
|
Ve && Vs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2430
2433
|
}
|
2431
|
-
},
|
2432
|
-
const n =
|
2434
|
+
}, wo = (s) => s, ko = (s, e, t) => {
|
2435
|
+
const n = wo(s);
|
2433
2436
|
return {
|
2434
|
-
emit: (i) =>
|
2437
|
+
emit: (i) => _o(n, e, {
|
2435
2438
|
bubbles: !!(t & 4),
|
2436
2439
|
composed: !!(t & 2),
|
2437
2440
|
cancelable: !!(t & 1),
|
2438
2441
|
detail: i
|
2439
2442
|
})
|
2440
2443
|
};
|
2441
|
-
},
|
2444
|
+
}, _o = (s, e, t) => {
|
2442
2445
|
const n = S.ce(e, t);
|
2443
2446
|
return s.dispatchEvent(n), n;
|
2444
|
-
},
|
2445
|
-
}, ti = (s, e) => (s.$flags$ |= 16,
|
2447
|
+
}, So = (s, e) => {
|
2448
|
+
}, ti = (s, e) => (s.$flags$ |= 16, So(s, s.$ancestorComponent$), Fo(() => Co(s, e))), Co = (s, e) => {
|
2446
2449
|
const t = s.$hostElement$, n = re("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2447
2450
|
let r;
|
2448
|
-
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () =>
|
2449
|
-
},
|
2451
|
+
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () => Ao(s, i, e));
|
2452
|
+
}, Ao = async (s, e, t) => {
|
2450
2453
|
const n = s.$hostElement$, i = re("update", s.$cmpMeta$.$tagName$);
|
2451
|
-
n["s-rc"], t &&
|
2454
|
+
n["s-rc"], t && ho(s);
|
2452
2455
|
const r = re("render", s.$cmpMeta$.$tagName$);
|
2453
|
-
|
2454
|
-
},
|
2456
|
+
Eo(s, e, n), r(), i(), To(s);
|
2457
|
+
}, Eo = (s, e, t) => {
|
2455
2458
|
try {
|
2456
|
-
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide ||
|
2459
|
+
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide || xo(s, e));
|
2457
2460
|
} catch (a) {
|
2458
2461
|
Me(a, s.$hostElement$);
|
2459
2462
|
}
|
2460
2463
|
return Bn = null, null;
|
2461
|
-
},
|
2464
|
+
}, To = (s) => {
|
2462
2465
|
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = re("postUpdate", e), i = t;
|
2463
2466
|
s.$ancestorComponent$, ge(i, "componentDidRender"), s.$flags$ & 64 ? (ge(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, ge(i, "componentDidLoad"), n());
|
2464
2467
|
}, ge = (s, e, t) => {
|
@@ -2468,20 +2471,20 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2468
2471
|
} catch (n) {
|
2469
2472
|
Me(n);
|
2470
2473
|
}
|
2471
|
-
}, Gn = (s, e) => s && s.then ? s.then(e) : e(),
|
2472
|
-
const i =
|
2473
|
-
t =
|
2474
|
+
}, Gn = (s, e) => s && s.then ? s.then(e) : e(), Lo = (s, e) => s != null && !nn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Oo = (s, e) => dt(s).$instanceValues$.get(e), Po = (s, e, t, n) => {
|
2475
|
+
const i = dt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2476
|
+
t = Lo(t, n.$members$[e][0]);
|
2474
2477
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2475
2478
|
if (t !== o && !c) {
|
2476
2479
|
i.$instanceValues$.set(e, t);
|
2477
2480
|
{
|
2478
2481
|
if (n.$watchers$ && a & 128) {
|
2479
2482
|
const u = n.$watchers$[e];
|
2480
|
-
u && u.map((
|
2483
|
+
u && u.map((p) => {
|
2481
2484
|
try {
|
2482
|
-
l[
|
2483
|
-
} catch (
|
2484
|
-
Me(
|
2485
|
+
l[p](t, o, e);
|
2486
|
+
} catch (d) {
|
2487
|
+
Me(d, r);
|
2485
2488
|
}
|
2486
2489
|
});
|
2487
2490
|
}
|
@@ -2492,17 +2495,17 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2492
2495
|
}
|
2493
2496
|
}
|
2494
2497
|
}
|
2495
|
-
},
|
2498
|
+
}, Ro = (s, e, t) => {
|
2496
2499
|
if (e.$members$) {
|
2497
2500
|
s.watchers && (e.$watchers$ = s.watchers);
|
2498
2501
|
const n = Object.entries(e.$members$), i = s.prototype;
|
2499
2502
|
n.map(([r, [o]]) => {
|
2500
2503
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
2501
2504
|
get() {
|
2502
|
-
return
|
2505
|
+
return Oo(this, r);
|
2503
2506
|
},
|
2504
2507
|
set(a) {
|
2505
|
-
|
2508
|
+
Po(this, r, a, e);
|
2506
2509
|
},
|
2507
2510
|
configurable: !0,
|
2508
2511
|
enumerable: !0
|
@@ -2529,34 +2532,34 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2529
2532
|
}
|
2530
2533
|
}
|
2531
2534
|
return s;
|
2532
|
-
},
|
2535
|
+
}, Io = async (s, e, t, n, i) => {
|
2533
2536
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2534
2537
|
let o = i.style;
|
2535
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2538
|
+
typeof o != "string" && (o = o[e.$modeName$ = uo(s)]);
|
2536
2539
|
const a = Ys(t, e.$modeName$);
|
2537
2540
|
if (!tt.has(a)) {
|
2538
2541
|
const l = re("registerStyles", t.$tagName$);
|
2539
|
-
|
2542
|
+
lo(a, o, !!(t.$flags$ & 1)), l();
|
2540
2543
|
}
|
2541
2544
|
}
|
2542
2545
|
e.$ancestorComponent$, (() => ti(e, !0))();
|
2543
|
-
}, Io = (s) => {
|
2544
2546
|
}, Mo = (s) => {
|
2547
|
+
}, zo = (s) => {
|
2545
2548
|
if (!(S.$flags$ & 1)) {
|
2546
|
-
const e =
|
2547
|
-
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$),
|
2549
|
+
const e = dt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
|
2550
|
+
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$), Mo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Uo(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2548
2551
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2549
2552
|
const o = s[i];
|
2550
2553
|
delete s[i], s[i] = o;
|
2551
2554
|
}
|
2552
|
-
}),
|
2555
|
+
}), Io(s, e, t)), n();
|
2553
2556
|
}
|
2554
|
-
},
|
2557
|
+
}, Uo = (s) => {
|
2555
2558
|
const e = s["s-cr"] = H.createComment("");
|
2556
2559
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2557
|
-
},
|
2560
|
+
}, jo = (s) => {
|
2558
2561
|
if (!(S.$flags$ & 1)) {
|
2559
|
-
const e =
|
2562
|
+
const e = dt(s);
|
2560
2563
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
2561
2564
|
}
|
2562
2565
|
}, ni = (s, e) => {
|
@@ -2568,13 +2571,13 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2568
2571
|
const n = s.prototype.connectedCallback, i = s.prototype.disconnectedCallback;
|
2569
2572
|
return Object.assign(s.prototype, {
|
2570
2573
|
__registerHost() {
|
2571
|
-
|
2574
|
+
Do(this, t);
|
2572
2575
|
},
|
2573
2576
|
connectedCallback() {
|
2574
|
-
|
2577
|
+
zo(this), n && n.call(this);
|
2575
2578
|
},
|
2576
2579
|
disconnectedCallback() {
|
2577
|
-
|
2580
|
+
jo(this), i && i.call(this);
|
2578
2581
|
},
|
2579
2582
|
__attachShadow() {
|
2580
2583
|
this.attachShadow({
|
@@ -2582,8 +2585,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2582
2585
|
delegatesFocus: !!(t.$flags$ & 16)
|
2583
2586
|
});
|
2584
2587
|
}
|
2585
|
-
}), s.is = t.$tagName$,
|
2586
|
-
}, si = /* @__PURE__ */ new WeakMap(),
|
2588
|
+
}), s.is = t.$tagName$, Ro(s, t);
|
2589
|
+
}, si = /* @__PURE__ */ new WeakMap(), dt = (s) => si.get(s), Do = (s, e) => {
|
2587
2590
|
const t = {
|
2588
2591
|
$flags$: 0,
|
2589
2592
|
$hostElement$: s,
|
@@ -2591,8 +2594,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2591
2594
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2592
2595
|
};
|
2593
2596
|
return Ws(s, t, e.$listeners$), si.set(s, t);
|
2594
|
-
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(),
|
2595
|
-
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ?
|
2597
|
+
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Ho = [], Xn = [], ii = [], Bo = (s, e) => (t) => {
|
2598
|
+
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ? No(Ht) : S.raf(Ht));
|
2596
2599
|
}, Vn = (s) => {
|
2597
2600
|
for (let e = 0; e < s.length; e++)
|
2598
2601
|
try {
|
@@ -2603,7 +2606,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2603
2606
|
s.length = 0;
|
2604
2607
|
}, Ht = () => {
|
2605
2608
|
Vn(Xn), Vn(ii), (Dt = Xn.length > 0) && S.raf(Ht);
|
2606
|
-
},
|
2609
|
+
}, No = (s) => so().then(s), Fo = /* @__PURE__ */ Bo(ii, !0), qo = (s = {}) => {
|
2607
2610
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2608
2611
|
let i = "", r = [
|
2609
2612
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2611,27 +2614,27 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2611
2614
|
...n
|
2612
2615
|
];
|
2613
2616
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2614
|
-
},
|
2615
|
-
function
|
2617
|
+
}, Zo = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2618
|
+
function Wo(s) {
|
2616
2619
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2617
2620
|
}
|
2618
|
-
class
|
2621
|
+
class Yo {
|
2619
2622
|
constructor(e) {
|
2620
|
-
this.voca_component = e, this.voca_added =
|
2623
|
+
this.voca_component = e, this.voca_added = Wo(/* @__PURE__ */ new Date());
|
2621
2624
|
}
|
2622
2625
|
}
|
2623
|
-
const
|
2626
|
+
const Qo = "telia-vst{display:none}", Go = /* @__PURE__ */ ni(class extends Zs {
|
2624
2627
|
constructor() {
|
2625
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2628
|
+
super(), this.__registerHost(), this.vocaInternalUStats = ko(this, "vocaInternalUStats", 7);
|
2626
2629
|
}
|
2627
2630
|
connectedCallback() {
|
2628
|
-
this.vocaInternalUStats.emit(new
|
2631
|
+
this.vocaInternalUStats.emit(new Yo(this.dataTrackingId));
|
2629
2632
|
}
|
2630
2633
|
render() {
|
2631
2634
|
return fe(sn, null);
|
2632
2635
|
}
|
2633
2636
|
static get style() {
|
2634
|
-
return
|
2637
|
+
return Qo;
|
2635
2638
|
}
|
2636
2639
|
}, [0, "telia-vst", {
|
2637
2640
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2642,7 +2645,7 @@ function ri() {
|
|
2642
2645
|
["telia-vst"].forEach((e) => {
|
2643
2646
|
switch (e) {
|
2644
2647
|
case "telia-vst":
|
2645
|
-
customElements.get(e) || customElements.define(e,
|
2648
|
+
customElements.get(e) || customElements.define(e, Go);
|
2646
2649
|
break;
|
2647
2650
|
}
|
2648
2651
|
});
|
@@ -2651,14 +2654,14 @@ ri();
|
|
2651
2654
|
function Bt() {
|
2652
2655
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2653
2656
|
}
|
2654
|
-
function
|
2657
|
+
function Ko() {
|
2655
2658
|
if (typeof Bt().vocadsIcons !== void 0)
|
2656
2659
|
return Bt().vocadsIcons;
|
2657
2660
|
}
|
2658
|
-
function
|
2661
|
+
function Xo() {
|
2659
2662
|
return Bt().vocadsIconsRegistered;
|
2660
2663
|
}
|
2661
|
-
const
|
2664
|
+
const Vo = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Jo = /* @__PURE__ */ ni(class extends Zs {
|
2662
2665
|
constructor() {
|
2663
2666
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2664
2667
|
}
|
@@ -2670,8 +2673,8 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2670
2673
|
getSvgString() {
|
2671
2674
|
if (this.svg)
|
2672
2675
|
return this.svg;
|
2673
|
-
if (
|
2674
|
-
const s =
|
2676
|
+
if (Xo() && this.name) {
|
2677
|
+
const s = Ko();
|
2675
2678
|
return s[this.name] ? s[this.name].svg : "";
|
2676
2679
|
}
|
2677
2680
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2682,15 +2685,15 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2682
2685
|
...e,
|
2683
2686
|
{ name: "aria-hidden", value: "true" }
|
2684
2687
|
];
|
2685
|
-
const t =
|
2686
|
-
content:
|
2688
|
+
const t = qo({
|
2689
|
+
content: Zo(s),
|
2687
2690
|
attributes: e,
|
2688
2691
|
title: this.allyTitle
|
2689
2692
|
});
|
2690
2693
|
return fe(sn, { class: `telia-icon telia-icon--${this.size}` }, fe("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), fe("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2691
2694
|
}
|
2692
2695
|
static get style() {
|
2693
|
-
return
|
2696
|
+
return Vo;
|
2694
2697
|
}
|
2695
2698
|
}, [0, "telia-icon", {
|
2696
2699
|
name: [1],
|
@@ -2699,13 +2702,13 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2699
2702
|
allyTitle: [1, "ally-title"],
|
2700
2703
|
dataTestid: [1, "data-testid"]
|
2701
2704
|
}]);
|
2702
|
-
function
|
2705
|
+
function ea() {
|
2703
2706
|
if (typeof customElements > "u")
|
2704
2707
|
return;
|
2705
2708
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2706
2709
|
switch (e) {
|
2707
2710
|
case "telia-icon":
|
2708
|
-
customElements.get(e) || customElements.define(e,
|
2711
|
+
customElements.get(e) || customElements.define(e, Jo);
|
2709
2712
|
break;
|
2710
2713
|
case "telia-vst":
|
2711
2714
|
customElements.get(e) || ri();
|
@@ -2713,13 +2716,13 @@ function Jo() {
|
|
2713
2716
|
}
|
2714
2717
|
});
|
2715
2718
|
}
|
2716
|
-
|
2719
|
+
ea();
|
2717
2720
|
/**
|
2718
2721
|
* @license
|
2719
2722
|
* Copyright 2017 Google LLC
|
2720
2723
|
* SPDX-License-Identifier: BSD-3-Clause
|
2721
2724
|
*/
|
2722
|
-
const
|
2725
|
+
const ta = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en }, na = (s = ta, e, t) => {
|
2723
2726
|
const { kind: n, metadata: i } = t;
|
2724
2727
|
let r = globalThis.litPropertyMetadata.get(i);
|
2725
2728
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2741,7 +2744,7 @@ const ea = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged
|
|
2741
2744
|
throw Error("Unsupported decorator location: " + n);
|
2742
2745
|
};
|
2743
2746
|
function w(s) {
|
2744
|
-
return (e, t) => typeof t == "object" ?
|
2747
|
+
return (e, t) => typeof t == "object" ? na(s, e, t) : ((n, i, r) => {
|
2745
2748
|
const o = i.hasOwnProperty(r);
|
2746
2749
|
return i.constructor.createProperty(r, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
2747
2750
|
})(s, e, t);
|
@@ -2759,7 +2762,7 @@ function C(s) {
|
|
2759
2762
|
* Copyright 2020 Google LLC
|
2760
2763
|
* SPDX-License-Identifier: BSD-3-Clause
|
2761
2764
|
*/
|
2762
|
-
const
|
2765
|
+
const sa = (s) => s.strings === void 0;
|
2763
2766
|
/**
|
2764
2767
|
* @license
|
2765
2768
|
* Copyright 2017 Google LLC
|
@@ -2809,13 +2812,13 @@ const _e = (s, e) => {
|
|
2809
2812
|
e._$AN = t = /* @__PURE__ */ new Set();
|
2810
2813
|
else if (t.has(s))
|
2811
2814
|
break;
|
2812
|
-
t.add(s),
|
2815
|
+
t.add(s), oa(e);
|
2813
2816
|
}
|
2814
2817
|
};
|
2815
|
-
function
|
2818
|
+
function ia(s) {
|
2816
2819
|
this._$AN !== void 0 ? (nt(this), this._$AM = s, oi(this)) : this._$AM = s;
|
2817
2820
|
}
|
2818
|
-
function
|
2821
|
+
function ra(s, e = !1, t = 0) {
|
2819
2822
|
const n = this._$AH, i = this._$AN;
|
2820
2823
|
if (i !== void 0 && i.size !== 0)
|
2821
2824
|
if (e)
|
@@ -2827,8 +2830,8 @@ function ia(s, e = !1, t = 0) {
|
|
2827
2830
|
else
|
2828
2831
|
_e(this, s);
|
2829
2832
|
}
|
2830
|
-
const
|
2831
|
-
s.type == ft.CHILD && (s._$AP ?? (s._$AP =
|
2833
|
+
const oa = (s) => {
|
2834
|
+
s.type == ft.CHILD && (s._$AP ?? (s._$AP = ra), s._$AQ ?? (s._$AQ = ia));
|
2832
2835
|
};
|
2833
2836
|
let ai = class extends on {
|
2834
2837
|
constructor() {
|
@@ -2842,7 +2845,7 @@ let ai = class extends on {
|
|
2842
2845
|
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (_e(this, e), nt(this));
|
2843
2846
|
}
|
2844
2847
|
setValue(e) {
|
2845
|
-
if (
|
2848
|
+
if (sa(this._$Ct))
|
2846
2849
|
this._$Ct._$AI(e, this);
|
2847
2850
|
else {
|
2848
2851
|
const t = [...this._$Ct._$AH];
|
@@ -2859,8 +2862,8 @@ let ai = class extends on {
|
|
2859
2862
|
* Copyright 2020 Google LLC
|
2860
2863
|
* SPDX-License-Identifier: BSD-3-Clause
|
2861
2864
|
*/
|
2862
|
-
const M = () => new
|
2863
|
-
class
|
2865
|
+
const M = () => new aa();
|
2866
|
+
class aa {
|
2864
2867
|
}
|
2865
2868
|
const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ai {
|
2866
2869
|
render(s) {
|
@@ -2922,10 +2925,10 @@ const be = gt(class extends on {
|
|
2922
2925
|
return G;
|
2923
2926
|
}
|
2924
2927
|
});
|
2925
|
-
var
|
2926
|
-
for (var i = n > 1 ? void 0 : n ?
|
2928
|
+
var la = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, ha = (s, e, t, n) => {
|
2929
|
+
for (var i = n > 1 ? void 0 : n ? ca(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
2927
2930
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2928
|
-
return n && i &&
|
2931
|
+
return n && i && la(e, t, i), i;
|
2929
2932
|
};
|
2930
2933
|
class an extends k {
|
2931
2934
|
constructor() {
|
@@ -2958,12 +2961,12 @@ an.styles = [
|
|
2958
2961
|
}
|
2959
2962
|
`
|
2960
2963
|
];
|
2961
|
-
|
2964
|
+
ha([
|
2962
2965
|
w({ attribute: !0 })
|
2963
2966
|
], an.prototype, "anchor", 2);
|
2964
|
-
const
|
2967
|
+
const ua = /* @__PURE__ */ new WeakMap();
|
2965
2968
|
let Jn = 0;
|
2966
|
-
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)),
|
2969
|
+
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)), pa = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], da = [{ opacity: 0 }], ns = [{ opacity: 0 }, { opacity: 1 }], ss = (s, e) => {
|
2967
2970
|
const t = s - e;
|
2968
2971
|
return t === 0 ? void 0 : t;
|
2969
2972
|
}, is = (s, e) => {
|
@@ -2985,8 +2988,8 @@ const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = (
|
|
2985
2988
|
e === 0 && (e = 1, t = { height: "1px" });
|
2986
2989
|
const n = is(s, e);
|
2987
2990
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2988
|
-
} },
|
2989
|
-
class
|
2991
|
+
} }, fa = { duration: 333, easing: "ease-in-out" }, ga = ["left", "top", "width", "height", "opacity", "color", "background"], rs = /* @__PURE__ */ new WeakMap();
|
2992
|
+
class ma extends ai {
|
2990
2993
|
constructor(e) {
|
2991
2994
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === ft.CHILD)
|
2992
2995
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -3006,7 +3009,7 @@ class ga extends ai {
|
|
3006
3009
|
return g;
|
3007
3010
|
}
|
3008
3011
|
getController() {
|
3009
|
-
return
|
3012
|
+
return ua.get(this.u);
|
3010
3013
|
}
|
3011
3014
|
isDisabled() {
|
3012
3015
|
var e;
|
@@ -3020,7 +3023,7 @@ class ga extends ai {
|
|
3020
3023
|
p(e) {
|
3021
3024
|
e = e ?? {};
|
3022
3025
|
const t = this.getController();
|
3023
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
3026
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = ga), this.options = e;
|
3024
3027
|
}
|
3025
3028
|
m() {
|
3026
3029
|
const e = {}, t = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
@@ -3114,7 +3117,7 @@ class ga extends ai {
|
|
3114
3117
|
}), e;
|
3115
3118
|
}
|
3116
3119
|
j(e, t = this.O()) {
|
3117
|
-
const n = { ...
|
3120
|
+
const n = { ...fa };
|
3118
3121
|
return t.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, e), n;
|
3119
3122
|
}
|
3120
3123
|
N(e, t, n) {
|
@@ -3135,8 +3138,8 @@ class ga extends ai {
|
|
3135
3138
|
const u = Tt[l];
|
3136
3139
|
if (c === void 0 || h === void 0)
|
3137
3140
|
continue;
|
3138
|
-
const
|
3139
|
-
|
3141
|
+
const p = u(c, h);
|
3142
|
+
p.transform !== void 0 && (a[l] = p.value, o = !0, i.transform = `${i.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(i, p.overrideFrom));
|
3140
3143
|
} else
|
3141
3144
|
c !== h && c !== void 0 && h !== void 0 && (o = !0, i[l] = c, r[l] = h);
|
3142
3145
|
}
|
@@ -3165,7 +3168,7 @@ class ga extends ai {
|
|
3165
3168
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3166
3169
|
}
|
3167
3170
|
}
|
3168
|
-
const Nt = gt(
|
3171
|
+
const Nt = gt(ma), F = (s, e, t) => {
|
3169
3172
|
s && t.style.setProperty(e, s);
|
3170
3173
|
}, li = (s, e) => {
|
3171
3174
|
var t, n, i, r, o, a, l, c, h;
|
@@ -3199,10 +3202,10 @@ const Nt = gt(ga), F = (s, e, t) => {
|
|
3199
3202
|
e
|
3200
3203
|
), F((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", e);
|
3201
3204
|
};
|
3202
|
-
var
|
3203
|
-
for (var i = n > 1 ? void 0 : n ?
|
3205
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, ze = (s, e, t, n) => {
|
3206
|
+
for (var i = n > 1 ? void 0 : n ? ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3204
3207
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3205
|
-
return n && i &&
|
3208
|
+
return n && i && va(e, t, i), i;
|
3206
3209
|
};
|
3207
3210
|
class X extends k {
|
3208
3211
|
constructor() {
|
@@ -3251,7 +3254,7 @@ class X extends k {
|
|
3251
3254
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3252
3255
|
if (!n)
|
3253
3256
|
return g;
|
3254
|
-
const i = async (h) =>
|
3257
|
+
const i = async (h) => eo, { type: r, content: o } = n;
|
3255
3258
|
switch (r) {
|
3256
3259
|
case "Telia": {
|
3257
3260
|
const h = await i();
|
@@ -3287,7 +3290,7 @@ class X extends k {
|
|
3287
3290
|
@click=${this.toggleActive}
|
3288
3291
|
${Nt({
|
3289
3292
|
keyframeOptions: {},
|
3290
|
-
in:
|
3293
|
+
in: pa,
|
3291
3294
|
stabilizeOut: !0,
|
3292
3295
|
skipInitial: !1
|
3293
3296
|
})}
|
@@ -3484,10 +3487,10 @@ ze([
|
|
3484
3487
|
ze([
|
3485
3488
|
C()
|
3486
3489
|
], X.prototype, "icon", 2);
|
3487
|
-
var
|
3488
|
-
for (var i = n > 1 ? void 0 : n ?
|
3490
|
+
var ya = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, te = (s, e, t, n) => {
|
3491
|
+
for (var i = n > 1 ? void 0 : n ? $a(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3489
3492
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3490
|
-
return n && i &&
|
3493
|
+
return n && i && ya(e, t, i), i;
|
3491
3494
|
};
|
3492
3495
|
const ci = (s) => {
|
3493
3496
|
class e extends s {
|
@@ -3561,7 +3564,7 @@ hi.styles = [
|
|
3561
3564
|
* Copyright 2021 Google LLC
|
3562
3565
|
* SPDX-License-Identifier: BSD-3-Clause
|
3563
3566
|
*/
|
3564
|
-
function*
|
3567
|
+
function* xa(s, e) {
|
3565
3568
|
if (s !== void 0) {
|
3566
3569
|
let t = 0;
|
3567
3570
|
for (const n of s)
|
@@ -3574,7 +3577,7 @@ var ln = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s)
|
|
3574
3577
|
* Copyright 2021 Google LLC
|
3575
3578
|
* SPDX-License-Identifier: BSD-3-Clause
|
3576
3579
|
*/
|
3577
|
-
let
|
3580
|
+
let wa = class extends Event {
|
3578
3581
|
constructor(e, t, n) {
|
3579
3582
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.callback = t, this.subscribe = n ?? !1;
|
3580
3583
|
}
|
@@ -3589,7 +3592,7 @@ let xa = class extends Event {
|
|
3589
3592
|
* Copyright 2021 Google LLC
|
3590
3593
|
* SPDX-License-Identifier: BSD-3-Clause
|
3591
3594
|
*/
|
3592
|
-
class
|
3595
|
+
class ka {
|
3593
3596
|
get value() {
|
3594
3597
|
return this.o;
|
3595
3598
|
}
|
@@ -3624,12 +3627,12 @@ class wa {
|
|
3624
3627
|
* Copyright 2021 Google LLC
|
3625
3628
|
* SPDX-License-Identifier: BSD-3-Clause
|
3626
3629
|
*/
|
3627
|
-
let
|
3630
|
+
let _a = class extends Event {
|
3628
3631
|
constructor(e) {
|
3629
3632
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3630
3633
|
}
|
3631
3634
|
};
|
3632
|
-
class os extends
|
3635
|
+
class os extends ka {
|
3633
3636
|
constructor(e, t, n) {
|
3634
3637
|
var i, r;
|
3635
3638
|
super(t.context !== void 0 ? t.initialValue : n), this.onContextRequest = (o) => {
|
@@ -3641,7 +3644,7 @@ class os extends wa {
|
|
3641
3644
|
return;
|
3642
3645
|
const l = /* @__PURE__ */ new Set();
|
3643
3646
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3644
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3647
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new wa(this.context, c, !0)));
|
3645
3648
|
o.stopPropagation();
|
3646
3649
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
3647
3650
|
}
|
@@ -3649,7 +3652,7 @@ class os extends wa {
|
|
3649
3652
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3650
3653
|
}
|
3651
3654
|
hostConnected() {
|
3652
|
-
this.host.dispatchEvent(new
|
3655
|
+
this.host.dispatchEvent(new _a(this.context));
|
3653
3656
|
}
|
3654
3657
|
}
|
3655
3658
|
/**
|
@@ -3657,7 +3660,7 @@ class os extends wa {
|
|
3657
3660
|
* Copyright 2017 Google LLC
|
3658
3661
|
* SPDX-License-Identifier: BSD-3-Clause
|
3659
3662
|
*/
|
3660
|
-
function
|
3663
|
+
function Sa({ context: s }) {
|
3661
3664
|
return (e, t) => {
|
3662
3665
|
const n = /* @__PURE__ */ new WeakMap();
|
3663
3666
|
if (typeof t == "object")
|
@@ -3695,12 +3698,12 @@ function _a({ context: s }) {
|
|
3695
3698
|
}
|
3696
3699
|
};
|
3697
3700
|
}
|
3698
|
-
var
|
3699
|
-
for (var i = n > 1 ? void 0 : n ?
|
3701
|
+
var Ca = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Ea = (s, e, t, n) => {
|
3702
|
+
for (var i = n > 1 ? void 0 : n ? Aa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3700
3703
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3701
|
-
return n && i &&
|
3704
|
+
return n && i && Ca(e, t, i), i;
|
3702
3705
|
};
|
3703
|
-
const
|
3706
|
+
const Ta = "application";
|
3704
3707
|
class cn extends k {
|
3705
3708
|
constructor() {
|
3706
3709
|
super(...arguments), this.nodes = [], this.wrapperRef = M();
|
@@ -3728,8 +3731,8 @@ class cn extends k {
|
|
3728
3731
|
render() {
|
3729
3732
|
var n, i;
|
3730
3733
|
const e = this.application.settings.components.conversation;
|
3731
|
-
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ln.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top
|
3732
|
-
${
|
3734
|
+
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ln.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3735
|
+
${xa(this.nodes, (r) => r)}
|
3733
3736
|
</div>`;
|
3734
3737
|
}
|
3735
3738
|
}
|
@@ -3778,23 +3781,6 @@ cn.styles = E`
|
|
3778
3781
|
position: fixed;
|
3779
3782
|
}
|
3780
3783
|
|
3781
|
-
:host(.embedded) {
|
3782
|
-
padding: 40px 20px 20px 40px !important;
|
3783
|
-
}
|
3784
|
-
|
3785
|
-
@media screen and (max-device-width: 800px) {
|
3786
|
-
:host(.embedded) {
|
3787
|
-
padding: 0 !important;
|
3788
|
-
}
|
3789
|
-
:host(.embedded) .widget-container {
|
3790
|
-
border-radius: none !important;
|
3791
|
-
}
|
3792
|
-
}
|
3793
|
-
|
3794
|
-
:host(.embedded) .widget-container {
|
3795
|
-
border-radius: var(--border-radius) !important;
|
3796
|
-
}
|
3797
|
-
|
3798
3784
|
@media screen and (max-width: 800px) {
|
3799
3785
|
:host(.floating) {
|
3800
3786
|
inset: 0;
|
@@ -3886,14 +3872,14 @@ cn.styles = E`
|
|
3886
3872
|
pointer-events: none;
|
3887
3873
|
}
|
3888
3874
|
`;
|
3889
|
-
|
3875
|
+
Ea([
|
3890
3876
|
w({ attribute: !1 }),
|
3891
|
-
|
3877
|
+
Sa({ context: Ta })
|
3892
3878
|
], cn.prototype, "application", 2);
|
3893
|
-
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}),
|
3894
|
-
for (var i = n > 1 ? void 0 : n ?
|
3879
|
+
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}), La = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, hn = (s, e, t, n) => {
|
3880
|
+
for (var i = n > 1 ? void 0 : n ? Oa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3895
3881
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3896
|
-
return n && i &&
|
3882
|
+
return n && i && La(e, t, i), i;
|
3897
3883
|
};
|
3898
3884
|
class Ue extends k {
|
3899
3885
|
constructor() {
|
@@ -3948,7 +3934,7 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", X);
|
|
3948
3934
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", hi);
|
3949
3935
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", cn);
|
3950
3936
|
customElements.get("ace-widget") || customElements.define("ace-widget", Ue);
|
3951
|
-
class
|
3937
|
+
class Pa {
|
3952
3938
|
constructor(e) {
|
3953
3939
|
this._message = null, this._host = e, e.addController(this);
|
3954
3940
|
}
|
@@ -3967,7 +3953,7 @@ class Oa {
|
|
3967
3953
|
class as {
|
3968
3954
|
constructor(e, t, n, i, r) {
|
3969
3955
|
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new U(null), this.entries$ = new U([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new U(!1), this.data$ = new U({}), this.complete$ = this.provider$.pipe(
|
3970
|
-
|
3956
|
+
de((l) => l ? l.onComplete() : Re)
|
3971
3957
|
);
|
3972
3958
|
const o = this._getProviderFactory(t);
|
3973
3959
|
if (!o)
|
@@ -4010,7 +3996,7 @@ class as {
|
|
4010
3996
|
}
|
4011
3997
|
_addEntryRemoveHandler(e) {
|
4012
3998
|
e.remove$.pipe(
|
4013
|
-
|
3999
|
+
de(() => this.entries$),
|
4014
4000
|
Mt(1)
|
4015
4001
|
).subscribe((t) => {
|
4016
4002
|
this.removeEntryAction$.next(e), this.entries$.next(t.filter((n) => n !== e));
|
@@ -4020,7 +4006,7 @@ class as {
|
|
4020
4006
|
return this.component.platform.registeredProviders.get(e);
|
4021
4007
|
}
|
4022
4008
|
}
|
4023
|
-
class
|
4009
|
+
class Ra {
|
4024
4010
|
constructor(e) {
|
4025
4011
|
this.component = e, this.currentSession$ = new U(null), this.sessions = [], this.storage = null, Ge(e, "handover").subscribe((t) => {
|
4026
4012
|
const n = this._createNewSession(
|
@@ -4118,11 +4104,11 @@ class Pa {
|
|
4118
4104
|
return this.component.properties.providers[0];
|
4119
4105
|
}
|
4120
4106
|
}
|
4121
|
-
class
|
4107
|
+
class Ia {
|
4122
4108
|
constructor(e, t) {
|
4123
|
-
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
4124
|
-
|
4125
|
-
|
4109
|
+
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Ra(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4110
|
+
de((n) => n ? n.provider$.pipe(
|
4111
|
+
de((i) => i ? i.isTyping() : It(!1))
|
4126
4112
|
) : It(!1))
|
4127
4113
|
), e.subscribe((n) => {
|
4128
4114
|
switch (n) {
|
@@ -4147,7 +4133,7 @@ class Ra {
|
|
4147
4133
|
}
|
4148
4134
|
rehydrate() {
|
4149
4135
|
this.session$.pipe(
|
4150
|
-
|
4136
|
+
de((e) => {
|
4151
4137
|
if (!e)
|
4152
4138
|
return Re;
|
4153
4139
|
const t = e.removeEntryAction$.pipe(Ut(this.entries$)).pipe(
|
@@ -4169,10 +4155,10 @@ class Ra {
|
|
4169
4155
|
(e = this.sessionService) == null || e.startSession();
|
4170
4156
|
}
|
4171
4157
|
}
|
4172
|
-
var
|
4173
|
-
for (var i = n > 1 ? void 0 : n ?
|
4158
|
+
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ua = (s, e, t, n) => {
|
4159
|
+
for (var i = n > 1 ? void 0 : n ? za(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4174
4160
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4175
|
-
return n && i &&
|
4161
|
+
return n && i && Ma(e, t, i), i;
|
4176
4162
|
};
|
4177
4163
|
class un extends k {
|
4178
4164
|
connectedCallback() {
|
@@ -4196,13 +4182,13 @@ class un extends k {
|
|
4196
4182
|
}
|
4197
4183
|
_renderDeliveryStatus(e) {
|
4198
4184
|
return e === "delivered" ? m`<telia-icon
|
4199
|
-
svg=${
|
4185
|
+
svg=${Kr.svg}
|
4200
4186
|
size="sm"
|
4201
4187
|
></telia-icon>` : e === "failed" ? m`<telia-icon
|
4202
|
-
svg=${
|
4188
|
+
svg=${Gr.svg}
|
4203
4189
|
size="sm"
|
4204
4190
|
title="Message could not be delivered"
|
4205
|
-
></telia-icon>` : m`<telia-icon svg=${
|
4191
|
+
></telia-icon>` : m`<telia-icon svg=${Xr.svg} size="sm"></telia-icon>`;
|
4206
4192
|
}
|
4207
4193
|
_dispatchEntryAction(e) {
|
4208
4194
|
this.entry.actions$.next(e.detail);
|
@@ -4406,13 +4392,13 @@ un.styles = [
|
|
4406
4392
|
}
|
4407
4393
|
`
|
4408
4394
|
];
|
4409
|
-
|
4395
|
+
Ua([
|
4410
4396
|
w({ attribute: !1 })
|
4411
4397
|
], un.prototype, "entry", 2);
|
4412
|
-
var
|
4413
|
-
for (var i = n > 1 ? void 0 : n ?
|
4398
|
+
var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, pi = (s, e, t, n) => {
|
4399
|
+
for (var i = n > 1 ? void 0 : n ? Da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4414
4400
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4415
|
-
return n && i &&
|
4401
|
+
return n && i && ja(e, t, i), i;
|
4416
4402
|
};
|
4417
4403
|
class mt extends k {
|
4418
4404
|
constructor() {
|
@@ -4469,10 +4455,10 @@ mt.styles = [
|
|
4469
4455
|
}
|
4470
4456
|
`
|
4471
4457
|
];
|
4472
|
-
|
4458
|
+
pi([
|
4473
4459
|
w({ attribute: !1 })
|
4474
4460
|
], mt.prototype, "entries", 2);
|
4475
|
-
|
4461
|
+
pi([
|
4476
4462
|
w({ type: Boolean })
|
4477
4463
|
], mt.prototype, "loading", 2);
|
4478
4464
|
/**
|
@@ -4480,24 +4466,24 @@ di([
|
|
4480
4466
|
* Copyright 2021 Google LLC
|
4481
4467
|
* SPDX-License-Identifier: BSD-3-Clause
|
4482
4468
|
*/
|
4483
|
-
const
|
4469
|
+
const Ha = (s, e, t) => {
|
4484
4470
|
for (const n of e)
|
4485
4471
|
if (n[0] === s)
|
4486
4472
|
return (0, n[1])();
|
4487
4473
|
return t == null ? void 0 : t();
|
4488
4474
|
};
|
4489
|
-
var
|
4490
|
-
for (var i = n > 1 ? void 0 : n ?
|
4475
|
+
var Ba = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Fa = (s, e, t, n) => {
|
4476
|
+
for (var i = n > 1 ? void 0 : n ? Na(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4491
4477
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4492
|
-
return n && i &&
|
4478
|
+
return n && i && Ba(e, t, i), i;
|
4493
4479
|
};
|
4494
|
-
class
|
4480
|
+
class pn extends k {
|
4495
4481
|
render() {
|
4496
4482
|
return m`
|
4497
4483
|
<div class="message-group">
|
4498
4484
|
${this.group.items.map(
|
4499
4485
|
([e, t, n]) => m`
|
4500
|
-
${
|
4486
|
+
${Ha(
|
4501
4487
|
e,
|
4502
4488
|
[
|
4503
4489
|
["html", () => m`<message-type-html .message=${t} />`],
|
@@ -4520,7 +4506,7 @@ class dn extends k {
|
|
4520
4506
|
`;
|
4521
4507
|
}
|
4522
4508
|
}
|
4523
|
-
|
4509
|
+
pn.styles = [
|
4524
4510
|
E`
|
4525
4511
|
:host {
|
4526
4512
|
box-sizing: border-box;
|
@@ -4536,10 +4522,10 @@ dn.styles = [
|
|
4536
4522
|
}
|
4537
4523
|
`
|
4538
4524
|
];
|
4539
|
-
|
4525
|
+
Fa([
|
4540
4526
|
w({ attribute: !1 })
|
4541
|
-
],
|
4542
|
-
class
|
4527
|
+
], pn.prototype, "group", 2);
|
4528
|
+
class di extends k {
|
4543
4529
|
render() {
|
4544
4530
|
return m`<div class="container">
|
4545
4531
|
<div class="dot"></div>
|
@@ -4548,7 +4534,7 @@ class pi extends k {
|
|
4548
4534
|
</div>`;
|
4549
4535
|
}
|
4550
4536
|
}
|
4551
|
-
|
4537
|
+
di.styles = [
|
4552
4538
|
E`
|
4553
4539
|
:host {
|
4554
4540
|
display: block;
|
@@ -4610,20 +4596,20 @@ class Ft extends on {
|
|
4610
4596
|
}
|
4611
4597
|
}
|
4612
4598
|
Ft.directiveName = "unsafeHTML", Ft.resultType = 1;
|
4613
|
-
const
|
4614
|
-
var
|
4615
|
-
for (var i = n > 1 ? void 0 : n ?
|
4599
|
+
const qa = gt(Ft);
|
4600
|
+
var Za = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ya = (s, e, t, n) => {
|
4601
|
+
for (var i = n > 1 ? void 0 : n ? Wa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4616
4602
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4617
|
-
return n && i &&
|
4603
|
+
return n && i && Za(e, t, i), i;
|
4618
4604
|
};
|
4619
|
-
class
|
4605
|
+
class dn extends k {
|
4620
4606
|
render() {
|
4621
4607
|
return m`<div class="message-type-html">
|
4622
|
-
${
|
4608
|
+
${qa(this.message.content)}
|
4623
4609
|
</div>`;
|
4624
4610
|
}
|
4625
4611
|
}
|
4626
|
-
|
4612
|
+
dn.styles = [
|
4627
4613
|
E`
|
4628
4614
|
:host {
|
4629
4615
|
box-sizing: border-box;
|
@@ -4660,9 +4646,9 @@ pn.styles = [
|
|
4660
4646
|
}
|
4661
4647
|
`
|
4662
4648
|
];
|
4663
|
-
|
4649
|
+
Ya([
|
4664
4650
|
w({ attribute: !1 })
|
4665
|
-
],
|
4651
|
+
], dn.prototype, "message", 2);
|
4666
4652
|
function fn() {
|
4667
4653
|
return {
|
4668
4654
|
async: !1,
|
@@ -4681,33 +4667,33 @@ let ae = fn();
|
|
4681
4667
|
function fi(s) {
|
4682
4668
|
ae = s;
|
4683
4669
|
}
|
4684
|
-
const gi = /[&<>"']/,
|
4670
|
+
const gi = /[&<>"']/, Qa = new RegExp(gi.source, "g"), mi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ga = new RegExp(mi.source, "g"), Ka = {
|
4685
4671
|
"&": "&",
|
4686
4672
|
"<": "<",
|
4687
4673
|
">": ">",
|
4688
4674
|
'"': """,
|
4689
4675
|
"'": "'"
|
4690
|
-
}, ls = (s) =>
|
4676
|
+
}, ls = (s) => Ka[s];
|
4691
4677
|
function L(s, e) {
|
4692
4678
|
if (e) {
|
4693
4679
|
if (gi.test(s))
|
4694
|
-
return s.replace(
|
4680
|
+
return s.replace(Qa, ls);
|
4695
4681
|
} else if (mi.test(s))
|
4696
|
-
return s.replace(
|
4682
|
+
return s.replace(Ga, ls);
|
4697
4683
|
return s;
|
4698
4684
|
}
|
4699
|
-
const
|
4700
|
-
function
|
4701
|
-
return s.replace(
|
4685
|
+
const Xa = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4686
|
+
function Va(s) {
|
4687
|
+
return s.replace(Xa, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4702
4688
|
}
|
4703
|
-
const
|
4689
|
+
const Ja = /(^|[^\[])\^/g;
|
4704
4690
|
function y(s, e) {
|
4705
4691
|
let t = typeof s == "string" ? s : s.source;
|
4706
4692
|
e = e || "";
|
4707
4693
|
const n = {
|
4708
4694
|
replace: (i, r) => {
|
4709
4695
|
let o = typeof r == "string" ? r : r.source;
|
4710
|
-
return o = o.replace(
|
4696
|
+
return o = o.replace(Ja, "$1"), t = t.replace(i, o), n;
|
4711
4697
|
},
|
4712
4698
|
getRegex: () => new RegExp(t, e)
|
4713
4699
|
};
|
@@ -4756,7 +4742,7 @@ function Fe(s, e, t) {
|
|
4756
4742
|
}
|
4757
4743
|
return s.slice(0, n - i);
|
4758
4744
|
}
|
4759
|
-
function
|
4745
|
+
function el(s, e) {
|
4760
4746
|
if (s.indexOf(e[1]) === -1)
|
4761
4747
|
return -1;
|
4762
4748
|
let t = 0;
|
@@ -4791,7 +4777,7 @@ function us(s, e, t, n) {
|
|
4791
4777
|
text: L(o)
|
4792
4778
|
};
|
4793
4779
|
}
|
4794
|
-
function
|
4780
|
+
function tl(s, e) {
|
4795
4781
|
const t = s.match(/^(\s+)(?:```)/);
|
4796
4782
|
if (t === null)
|
4797
4783
|
return e;
|
@@ -4839,7 +4825,7 @@ class st {
|
|
4839
4825
|
fences(e) {
|
4840
4826
|
const t = this.rules.block.fences.exec(e);
|
4841
4827
|
if (t) {
|
4842
|
-
const n = t[0], i =
|
4828
|
+
const n = t[0], i = tl(n, t[3] || "");
|
4843
4829
|
return {
|
4844
4830
|
type: "code",
|
4845
4831
|
raw: n,
|
@@ -4912,29 +4898,29 @@ class st {
|
|
4912
4898
|
break;
|
4913
4899
|
a = t[0], e = e.substring(a.length);
|
4914
4900
|
let u = t[2].split(`
|
4915
|
-
`, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)),
|
4916
|
-
`, 1)[0],
|
4917
|
-
this.options.pedantic ? (
|
4901
|
+
`, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)), p = e.split(`
|
4902
|
+
`, 1)[0], d = 0;
|
4903
|
+
this.options.pedantic ? (d = 2, l = u.trimStart()) : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, l = u.slice(d), d += t[1].length);
|
4918
4904
|
let b = !1;
|
4919
|
-
if (!u && /^ *$/.test(
|
4920
|
-
`, e = e.substring(
|
4921
|
-
const N = new RegExp(`^ {0,${Math.min(3,
|
4905
|
+
if (!u && /^ *$/.test(p) && (a += p + `
|
4906
|
+
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4907
|
+
const N = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), J = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), kn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4922
4908
|
for (; e; ) {
|
4923
4909
|
const yt = e.split(`
|
4924
4910
|
`, 1)[0];
|
4925
|
-
if (
|
4911
|
+
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), wn.test(p) || kn.test(p) || N.test(p) || J.test(e))
|
4926
4912
|
break;
|
4927
|
-
if (
|
4913
|
+
if (p.search(/[^ ]/) >= d || !p.trim())
|
4928
4914
|
l += `
|
4929
|
-
` +
|
4915
|
+
` + p.slice(d);
|
4930
4916
|
else {
|
4931
4917
|
if (b || u.search(/[^ ]/) >= 4 || wn.test(u) || kn.test(u) || J.test(u))
|
4932
4918
|
break;
|
4933
4919
|
l += `
|
4934
|
-
` +
|
4920
|
+
` + p;
|
4935
4921
|
}
|
4936
|
-
!b && !
|
4937
|
-
`, e = e.substring(yt.length + 1), u =
|
4922
|
+
!b && !p.trim() && (b = !0), a += yt + `
|
4923
|
+
`, e = e.substring(yt.length + 1), u = p.slice(d);
|
4938
4924
|
}
|
4939
4925
|
}
|
4940
4926
|
r.loose || (c ? r.loose = !0 : /\n *\n *$/.test(a) && (c = !0));
|
@@ -4952,8 +4938,8 @@ class st {
|
|
4952
4938
|
r.items[r.items.length - 1].raw = a.trimEnd(), r.items[r.items.length - 1].text = l.trimEnd(), r.raw = r.raw.trimEnd();
|
4953
4939
|
for (let h = 0; h < r.items.length; h++)
|
4954
4940
|
if (this.lexer.state.top = !1, r.items[h].tokens = this.lexer.blockTokens(r.items[h].text, []), !r.loose) {
|
4955
|
-
const u = r.items[h].tokens.filter((
|
4956
|
-
r.loose =
|
4941
|
+
const u = r.items[h].tokens.filter((d) => d.type === "space"), p = u.length > 0 && u.some((d) => /\n.*\n/.test(d.raw));
|
4942
|
+
r.loose = p;
|
4957
4943
|
}
|
4958
4944
|
if (r.loose)
|
4959
4945
|
for (let h = 0; h < r.items.length; h++)
|
@@ -5079,7 +5065,7 @@ class st {
|
|
5079
5065
|
if ((n.length - o.length) % 2 === 0)
|
5080
5066
|
return;
|
5081
5067
|
} else {
|
5082
|
-
const o =
|
5068
|
+
const o = el(t[2], "()");
|
5083
5069
|
if (o > -1) {
|
5084
5070
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5085
5071
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5133,20 +5119,20 @@ class st {
|
|
5133
5119
|
if (c -= l, c > 0)
|
5134
5120
|
continue;
|
5135
5121
|
l = Math.min(l, l + c + h);
|
5136
|
-
const
|
5122
|
+
const p = [...i[0]][0].length, d = e.slice(0, o + i.index + p + l);
|
5137
5123
|
if (Math.min(o, l) % 2) {
|
5138
|
-
const f =
|
5124
|
+
const f = d.slice(1, -1);
|
5139
5125
|
return {
|
5140
5126
|
type: "em",
|
5141
|
-
raw:
|
5127
|
+
raw: d,
|
5142
5128
|
text: f,
|
5143
5129
|
tokens: this.lexer.inlineTokens(f)
|
5144
5130
|
};
|
5145
5131
|
}
|
5146
|
-
const b =
|
5132
|
+
const b = d.slice(2, -2);
|
5147
5133
|
return {
|
5148
5134
|
type: "strong",
|
5149
|
-
raw:
|
5135
|
+
raw: d,
|
5150
5136
|
text: b,
|
5151
5137
|
tokens: this.lexer.inlineTokens(b)
|
5152
5138
|
};
|
@@ -5243,25 +5229,25 @@ class st {
|
|
5243
5229
|
}
|
5244
5230
|
}
|
5245
5231
|
}
|
5246
|
-
const
|
5247
|
-
blockquote:
|
5248
|
-
code:
|
5249
|
-
def:
|
5250
|
-
fences:
|
5251
|
-
heading:
|
5232
|
+
const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, je = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vi = /(?:[*+-]|\d{1,9}[.)])/, bi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, vi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ol = /^[^\n]+/, mn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, al = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ll = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vi).getRegex(), vt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cl = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", vn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), yi = y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), hl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", yi).getRegex(), bn = {
|
5233
|
+
blockquote: hl,
|
5234
|
+
code: sl,
|
5235
|
+
def: al,
|
5236
|
+
fences: il,
|
5237
|
+
heading: rl,
|
5252
5238
|
hr: je,
|
5253
|
-
html:
|
5239
|
+
html: cl,
|
5254
5240
|
lheading: bi,
|
5255
|
-
list:
|
5256
|
-
newline:
|
5241
|
+
list: ll,
|
5242
|
+
newline: nl,
|
5257
5243
|
paragraph: yi,
|
5258
5244
|
table: Se,
|
5259
|
-
text:
|
5260
|
-
},
|
5245
|
+
text: ol
|
5246
|
+
}, ps = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), ul = {
|
5261
5247
|
...bn,
|
5262
|
-
table:
|
5263
|
-
paragraph: y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table",
|
5264
|
-
},
|
5248
|
+
table: ps,
|
5249
|
+
paragraph: y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ps).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex()
|
5250
|
+
}, pl = {
|
5265
5251
|
...bn,
|
5266
5252
|
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", vn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5267
5253
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
@@ -5271,28 +5257,28 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5271
5257
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5272
5258
|
paragraph: y(gn).replace("hr", je).replace("heading", ` *#{1,6} *[^
|
5273
5259
|
]`).replace("lheading", bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5274
|
-
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xi = /^( {2,}|\\)\n(?!\s*$)/,
|
5260
|
+
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xi = /^( {2,}|\\)\n(?!\s*$)/, fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, De = "\\p{P}\\p{S}", gl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, De).getRegex(), ml = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, vl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, De).getRegex(), bl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, De).getRegex(), yl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, De).getRegex(), $l = y(/\\([punct])/, "gu").replace(/punct/g, De).getRegex(), xl = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[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])?)+(?![-_])/).getRegex(), wl = y(vn).replace("(?:-->|$)", "-->").getRegex(), kl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _l = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), wi = y(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", mn).getRegex(), ki = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", mn).getRegex(), Sl = y("reflink|nolink(?!\\()", "g").replace("reflink", wi).replace("nolink", ki).getRegex(), yn = {
|
5275
5261
|
_backpedal: Se,
|
5276
5262
|
// only used for GFM url
|
5277
|
-
anyPunctuation:
|
5278
|
-
autolink:
|
5279
|
-
blockSkip:
|
5263
|
+
anyPunctuation: $l,
|
5264
|
+
autolink: xl,
|
5265
|
+
blockSkip: ml,
|
5280
5266
|
br: xi,
|
5281
5267
|
code: dl,
|
5282
5268
|
del: Se,
|
5283
|
-
emStrongLDelim:
|
5284
|
-
emStrongRDelimAst:
|
5285
|
-
emStrongRDelimUnd:
|
5269
|
+
emStrongLDelim: vl,
|
5270
|
+
emStrongRDelimAst: bl,
|
5271
|
+
emStrongRDelimUnd: yl,
|
5286
5272
|
escape: $i,
|
5287
|
-
link:
|
5273
|
+
link: _l,
|
5288
5274
|
nolink: ki,
|
5289
|
-
punctuation:
|
5275
|
+
punctuation: gl,
|
5290
5276
|
reflink: wi,
|
5291
|
-
reflinkSearch:
|
5292
|
-
tag:
|
5293
|
-
text:
|
5277
|
+
reflinkSearch: Sl,
|
5278
|
+
tag: kl,
|
5279
|
+
text: fl,
|
5294
5280
|
url: Se
|
5295
|
-
},
|
5281
|
+
}, Cl = {
|
5296
5282
|
...yn,
|
5297
5283
|
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
5298
5284
|
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", it).getRegex()
|
@@ -5303,19 +5289,19 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5303
5289
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5304
5290
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5305
5291
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5306
|
-
},
|
5292
|
+
}, Al = {
|
5307
5293
|
...qt,
|
5308
5294
|
br: y(xi).replace("{2,}", "*").getRegex(),
|
5309
5295
|
text: y(qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5310
5296
|
}, qe = {
|
5311
5297
|
normal: bn,
|
5312
|
-
gfm:
|
5313
|
-
pedantic:
|
5298
|
+
gfm: ul,
|
5299
|
+
pedantic: pl
|
5314
5300
|
}, xe = {
|
5315
5301
|
normal: yn,
|
5316
5302
|
gfm: qt,
|
5317
|
-
breaks:
|
5318
|
-
pedantic:
|
5303
|
+
breaks: Al,
|
5304
|
+
pedantic: Cl
|
5319
5305
|
};
|
5320
5306
|
class j {
|
5321
5307
|
constructor(e) {
|
@@ -5519,9 +5505,9 @@ class j {
|
|
5519
5505
|
if (r = e, this.options.extensions && this.options.extensions.startInline) {
|
5520
5506
|
let h = 1 / 0;
|
5521
5507
|
const u = e.slice(1);
|
5522
|
-
let
|
5523
|
-
this.options.extensions.startInline.forEach((
|
5524
|
-
|
5508
|
+
let p;
|
5509
|
+
this.options.extensions.startInline.forEach((d) => {
|
5510
|
+
p = d.call({ lexer: this }, u), typeof p == "number" && p >= 0 && (h = Math.min(h, p));
|
5525
5511
|
}), h < 1 / 0 && h >= 0 && (r = e.substring(0, h + 1));
|
5526
5512
|
}
|
5527
5513
|
if (n = this.tokenizer.inlineText(r)) {
|
@@ -5713,7 +5699,7 @@ class D {
|
|
5713
5699
|
}
|
5714
5700
|
case "heading": {
|
5715
5701
|
const o = r;
|
5716
|
-
n += this.renderer.heading(this.parseInline(o.tokens), o.depth,
|
5702
|
+
n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Va(this.parseInline(o.tokens, this.textRenderer)));
|
5717
5703
|
continue;
|
5718
5704
|
}
|
5719
5705
|
case "code": {
|
@@ -5731,8 +5717,8 @@ class D {
|
|
5731
5717
|
for (let h = 0; h < o.rows.length; h++) {
|
5732
5718
|
const u = o.rows[h];
|
5733
5719
|
l = "";
|
5734
|
-
for (let
|
5735
|
-
l += this.renderer.tablecell(this.parseInline(u[
|
5720
|
+
for (let p = 0; p < u.length; p++)
|
5721
|
+
l += this.renderer.tablecell(this.parseInline(u[p].tokens), { header: !1, align: o.align[p] });
|
5736
5722
|
c += this.renderer.tablerow(l);
|
5737
5723
|
}
|
5738
5724
|
n += this.renderer.table(a, c);
|
@@ -5747,16 +5733,16 @@ class D {
|
|
5747
5733
|
const o = r, a = o.ordered, l = o.start, c = o.loose;
|
5748
5734
|
let h = "";
|
5749
5735
|
for (let u = 0; u < o.items.length; u++) {
|
5750
|
-
const
|
5736
|
+
const p = o.items[u], d = p.checked, b = p.task;
|
5751
5737
|
let f = "";
|
5752
|
-
if (
|
5753
|
-
const I = this.renderer.checkbox(!!
|
5754
|
-
c ?
|
5738
|
+
if (p.task) {
|
5739
|
+
const I = this.renderer.checkbox(!!d);
|
5740
|
+
c ? p.tokens.length > 0 && p.tokens[0].type === "paragraph" ? (p.tokens[0].text = I + " " + p.tokens[0].text, p.tokens[0].tokens && p.tokens[0].tokens.length > 0 && p.tokens[0].tokens[0].type === "text" && (p.tokens[0].tokens[0].text = I + " " + p.tokens[0].tokens[0].text)) : p.tokens.unshift({
|
5755
5741
|
type: "text",
|
5756
5742
|
text: I + " "
|
5757
5743
|
}) : f += I + " ";
|
5758
5744
|
}
|
5759
|
-
f += this.parse(
|
5745
|
+
f += this.parse(p.tokens, c), h += this.renderer.listitem(f, b, !!d);
|
5760
5746
|
}
|
5761
5747
|
n += this.renderer.list(h, a, l);
|
5762
5748
|
continue;
|
@@ -5895,7 +5881,7 @@ x(Ce, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5895
5881
|
"processAllTokens"
|
5896
5882
|
]));
|
5897
5883
|
var Oe, Zt, ot, _i;
|
5898
|
-
class
|
5884
|
+
class El {
|
5899
5885
|
constructor(...e) {
|
5900
5886
|
$t(this, Oe);
|
5901
5887
|
$t(this, ot);
|
@@ -6004,7 +5990,7 @@ class Al {
|
|
6004
5990
|
const a = o, l = n.hooks[a], c = r[a];
|
6005
5991
|
Ce.passThroughHooks.has(o) ? r[a] = (h) => {
|
6006
5992
|
if (this.defaults.async)
|
6007
|
-
return Promise.resolve(l.call(r, h)).then((
|
5993
|
+
return Promise.resolve(l.call(r, h)).then((p) => c.call(r, p));
|
6008
5994
|
const u = l.call(r, h);
|
6009
5995
|
return c.call(r, u);
|
6010
5996
|
} : r[a] = (...h) => {
|
@@ -6067,7 +6053,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6067
6053
|
throw n;
|
6068
6054
|
};
|
6069
6055
|
};
|
6070
|
-
const oe = new
|
6056
|
+
const oe = new El();
|
6071
6057
|
function v(s, e) {
|
6072
6058
|
return oe.parse(s, e);
|
6073
6059
|
}
|
@@ -6099,10 +6085,10 @@ v.walkTokens;
|
|
6099
6085
|
v.parseInline;
|
6100
6086
|
D.parse;
|
6101
6087
|
j.lex;
|
6102
|
-
var
|
6103
|
-
for (var i = n > 1 ? void 0 : n ?
|
6088
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Si = (s, e, t, n) => {
|
6089
|
+
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6104
6090
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6105
|
-
return n && i &&
|
6091
|
+
return n && i && Tl(e, t, i), i;
|
6106
6092
|
};
|
6107
6093
|
v.use({
|
6108
6094
|
renderer: {
|
@@ -6162,7 +6148,7 @@ class bt extends k {
|
|
6162
6148
|
(r = this.contentRef.value) == null || r.appendChild(document.createElement("div")), this.buffer = "";
|
6163
6149
|
else if (this.buffer.includes("!["))
|
6164
6150
|
return;
|
6165
|
-
n.innerHTML =
|
6151
|
+
n.innerHTML = Sr(t), this.applyCodeStyles(n), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6166
6152
|
}
|
6167
6153
|
// Apply white-space: pre-wrap to <code> elements
|
6168
6154
|
applyCodeStyles(e) {
|
@@ -6232,10 +6218,10 @@ Si([
|
|
6232
6218
|
Si([
|
6233
6219
|
C()
|
6234
6220
|
], bt.prototype, "showLightbox", 2);
|
6235
|
-
var
|
6236
|
-
for (var i = n > 1 ? void 0 : n ?
|
6221
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Rl = (s, e, t, n) => {
|
6222
|
+
for (var i = n > 1 ? void 0 : n ? Pl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6237
6223
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6238
|
-
return n && i &&
|
6224
|
+
return n && i && Ol(e, t, i), i;
|
6239
6225
|
};
|
6240
6226
|
class xn extends k {
|
6241
6227
|
constructor() {
|
@@ -6274,7 +6260,7 @@ class xn extends k {
|
|
6274
6260
|
@keydown=${this.handleKeyDown}
|
6275
6261
|
>
|
6276
6262
|
<button class="close" @click=${this.closeLightbox}>
|
6277
|
-
<telia-icon svg=${
|
6263
|
+
<telia-icon svg=${Jr.svg} size="lg"></telia-icon>
|
6278
6264
|
</button>
|
6279
6265
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6280
6266
|
</div> `;
|
@@ -6321,26 +6307,26 @@ xn.styles = [
|
|
6321
6307
|
}
|
6322
6308
|
`
|
6323
6309
|
];
|
6324
|
-
|
6310
|
+
Rl([
|
6325
6311
|
w({ attribute: !0 })
|
6326
6312
|
], xn.prototype, "imageUrl", 2);
|
6327
|
-
var
|
6328
|
-
for (var i = n > 1 ? void 0 : n ?
|
6313
|
+
var Il = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, V = (s, e, t, n) => {
|
6314
|
+
for (var i = n > 1 ? void 0 : n ? Ml(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6329
6315
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6330
|
-
return n && i &&
|
6316
|
+
return n && i && Il(e, t, i), i;
|
6331
6317
|
};
|
6332
6318
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", un);
|
6333
6319
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
|
6334
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
6335
|
-
customElements.get("ace-typing-state") || customElements.define("ace-typing-state",
|
6336
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
6320
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", pn);
|
6321
|
+
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", di);
|
6322
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", dn);
|
6337
6323
|
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", bt);
|
6338
6324
|
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", xn);
|
6339
6325
|
const Ci = ci(k);
|
6340
6326
|
class R extends Ci {
|
6341
6327
|
constructor() {
|
6342
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new
|
6343
|
-
|
6328
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Pa(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new U("waiting"), this.stateMachine = new Ia(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6329
|
+
de((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6344
6330
|
), this.userTyping$ = new _();
|
6345
6331
|
}
|
6346
6332
|
async connectedCallback() {
|
@@ -6353,7 +6339,7 @@ class R extends Ci {
|
|
6353
6339
|
t && t.widgetActive$.pipe(zt(t.componentIsDestroyed$)).subscribe((n) => {
|
6354
6340
|
const i = this.conversationContentRef.value;
|
6355
6341
|
i && (n ? i.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = i.scrollTop);
|
6356
|
-
}), this.stateSubscription =
|
6342
|
+
}), this.stateSubscription = dr([
|
6357
6343
|
this.stateMachine.entries(),
|
6358
6344
|
this.stateMachine.isTyping()
|
6359
6345
|
]).subscribe(([n, i]) => {
|
@@ -6504,7 +6490,7 @@ class R extends Ci {
|
|
6504
6490
|
class="overlay-button"
|
6505
6491
|
@click=${() => this.chatOverlayActive = !1}
|
6506
6492
|
>
|
6507
|
-
<telia-icon svg=${
|
6493
|
+
<telia-icon svg=${Vr.svg}></telia-icon>
|
6508
6494
|
</button>
|
6509
6495
|
</div>` : g}
|
6510
6496
|
<div
|
@@ -6560,7 +6546,7 @@ class R extends Ci {
|
|
6560
6546
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6561
6547
|
?disabled=${this.disabledSubmit}
|
6562
6548
|
>
|
6563
|
-
<telia-icon svg=${
|
6549
|
+
<telia-icon svg=${to.svg}></telia-icon>
|
6564
6550
|
</button>
|
6565
6551
|
<span class="counter" ${z(this.counterRef)}>
|
6566
6552
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
@@ -6889,20 +6875,20 @@ V([
|
|
6889
6875
|
V([
|
6890
6876
|
C()
|
6891
6877
|
], R.prototype, "typing", 2);
|
6892
|
-
const
|
6878
|
+
const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6893
6879
|
__proto__: null,
|
6894
6880
|
Conversation: R,
|
6895
6881
|
default: R
|
6896
6882
|
}, Symbol.toStringTag, { value: "Module" }));
|
6897
6883
|
export {
|
6898
|
-
|
6884
|
+
Ar as Agent,
|
6899
6885
|
R as Conversation,
|
6900
|
-
|
6886
|
+
jl as ConversationComponent,
|
6901
6887
|
ct as ConversationEntry,
|
6902
6888
|
W as ConversationMessageType,
|
6903
6889
|
fs as ConversationPlatform,
|
6904
|
-
|
6905
|
-
|
6906
|
-
|
6907
|
-
|
6890
|
+
Hl as ConversationProvider,
|
6891
|
+
Er as User,
|
6892
|
+
Dl as findPlainTextLinks,
|
6893
|
+
Sr as truncateLongLinks
|
6908
6894
|
};
|