@telia-ace/widget-components-copyright-flamingo 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{copyright-06528c8f.js → copyright-25b3d445.js} +2 -2
- package/dist/{copyright-06528c8f.js.map → copyright-25b3d445.js.map} +1 -1
- package/dist/{index-9e00e80d.js → index-c0ca28bb.js} +62 -62
- package/dist/{index-9e00e80d.js.map → index-c0ca28bb.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -42,7 +42,7 @@ const he = (t, e, s, ...r) => {
|
|
|
42
42
|
error: (s, ...r) => he(e, "error", s, ...r)
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var X = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(X || {}), x = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(x || {});
|
|
46
46
|
const Ft = (t, e, s, r) => {
|
|
47
47
|
try {
|
|
48
48
|
const n = new e(s, r);
|
|
@@ -77,12 +77,12 @@ let qt = class {
|
|
|
77
77
|
createCommand(t, e, s) {
|
|
78
78
|
let r;
|
|
79
79
|
typeof e == "function" ? r = {
|
|
80
|
-
scope:
|
|
80
|
+
scope: X.Widget,
|
|
81
81
|
stage: x.Post,
|
|
82
82
|
defaultArgs: void 0,
|
|
83
83
|
handlerResolver: e
|
|
84
84
|
} : r = {
|
|
85
|
-
scope: Ke(e.scope,
|
|
85
|
+
scope: Ke(e.scope, X.Widget),
|
|
86
86
|
stage: Ke(e.stage, x.Post),
|
|
87
87
|
defaultArgs: e.defaultArgs,
|
|
88
88
|
handlerResolver: s
|
|
@@ -104,7 +104,7 @@ const Ne = (t) => {
|
|
|
104
104
|
Ne((t) => {
|
|
105
105
|
t.createCommand(
|
|
106
106
|
"types.register",
|
|
107
|
-
{ scope:
|
|
107
|
+
{ scope: X.Implementation, stage: x.Pre },
|
|
108
108
|
(e) => (s, r) => {
|
|
109
109
|
e.container.get("$types")[s] = r;
|
|
110
110
|
}
|
|
@@ -255,14 +255,14 @@ const A = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1
|
|
|
255
255
|
function Te() {
|
|
256
256
|
return A() + A() + "-" + A() + "-" + A() + "-" + A() + "-" + A() + A() + A();
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var Yt = Object.defineProperty, Qt = Object.defineProperties, Xt = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, es = Object.prototype.propertyIsEnumerable, Qe = (t, e, s) => e in t ? Yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ts = (t, e) => {
|
|
259
259
|
for (var s in e || (e = {}))
|
|
260
|
-
|
|
261
|
-
if (
|
|
262
|
-
for (var s of
|
|
263
|
-
es.call(e, s) &&
|
|
260
|
+
Gt.call(e, s) && Qe(t, s, e[s]);
|
|
261
|
+
if (Ye)
|
|
262
|
+
for (var s of Ye(e))
|
|
263
|
+
es.call(e, s) && Qe(t, s, e[s]);
|
|
264
264
|
return t;
|
|
265
|
-
}, ss = (t, e) =>
|
|
265
|
+
}, ss = (t, e) => Qt(t, Xt(e));
|
|
266
266
|
const rs = (t) => {
|
|
267
267
|
const e = [];
|
|
268
268
|
return [
|
|
@@ -461,7 +461,7 @@ Ne((t) => {
|
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
let
|
|
464
|
+
let Xe = class {
|
|
465
465
|
constructor(t, e) {
|
|
466
466
|
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Te(), this.type = e, this.attributes = {
|
|
467
467
|
context: {},
|
|
@@ -663,7 +663,7 @@ const ls = (t) => {
|
|
|
663
663
|
let us = class {
|
|
664
664
|
constructor(t, e = {}) {
|
|
665
665
|
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new cs(), this.events = t.events.createChild(this);
|
|
666
|
-
const s = new
|
|
666
|
+
const s = new Xe(this.events, "root");
|
|
667
667
|
s.name = `root-${t.name}`, this.nodes = new as(s, this.switches, this.events);
|
|
668
668
|
const r = this.processNode = ds(this, (n) => {
|
|
669
669
|
const i = Array.from(n.keys());
|
|
@@ -770,7 +770,7 @@ ${i.map(
|
|
|
770
770
|
* @param type Type of node.
|
|
771
771
|
*/
|
|
772
772
|
createNode(t, e = {}) {
|
|
773
|
-
const s = new
|
|
773
|
+
const s = new Xe(this.events, t);
|
|
774
774
|
return e.detached && this.nodes.detached.push(s), s;
|
|
775
775
|
}
|
|
776
776
|
components() {
|
|
@@ -843,11 +843,11 @@ const gs = (t, e, s, r = Te(), n = {}) => t.getAsync("components").then((i) => {
|
|
|
843
843
|
);
|
|
844
844
|
});
|
|
845
845
|
process.env.NODE_ENV;
|
|
846
|
-
var ms = Object.defineProperty,
|
|
846
|
+
var ms = Object.defineProperty, Ge = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, et = (t, e, s) => e in t ? ms(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, j = (t, e) => {
|
|
847
847
|
for (var s in e || (e = {}))
|
|
848
848
|
fs.call(e, s) && et(t, s, e[s]);
|
|
849
|
-
if (
|
|
850
|
-
for (var s of
|
|
849
|
+
if (Ge)
|
|
850
|
+
for (var s of Ge(e))
|
|
851
851
|
vs.call(e, s) && et(t, s, e[s]);
|
|
852
852
|
return t;
|
|
853
853
|
}, w = /* @__PURE__ */ ((t) => (t.Cookie = "cookie", t.Local = "local", t.Session = "session", t))(w || {}), He = /* @__PURE__ */ ((t) => (t.Tenant = "tenant", t.Implementation = "implementation", t.Widget = "widget", t))(He || {}), m = /* @__PURE__ */ ((t) => (t.Necessary = "necessary", t.Functional = "functional", t.Analytical = "analytical", t.Marketing = "marketing", t))(m || {});
|
|
@@ -872,8 +872,8 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
872
872
|
medium: a = w.Session,
|
|
873
873
|
duration: h
|
|
874
874
|
} = r, l = ws();
|
|
875
|
-
return l[c][e] = Et(i, s, h), a === w.Cookie ?
|
|
876
|
-
})))), bs = (t, e, s = w.Session) => (Me(t), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && f.warn("readStorage: Undefined key passed when reading storage. ", e, s), Promise.resolve(void 0)) : s === w.Cookie ?
|
|
875
|
+
return l[c][e] = Et(i, s, h), a === w.Cookie ? Cs(t, l) : Ss(t, a, l);
|
|
876
|
+
})))), bs = (t, e, s = w.Session) => (Me(t), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && f.warn("readStorage: Undefined key passed when reading storage. ", e, s), Promise.resolve(void 0)) : s === w.Cookie ? Os(t).then((r) => xe(r, e)) : xs(t, s).then((r) => xe(r, e))), U = (t) => !!Object.entries(t).filter(([e, s]) => typeof s != "undefined").length, ue = (t) => Object.entries(t).filter(([e, s]) => typeof s != "undefined").forEach(([e, { value: s }]) => {
|
|
877
877
|
typeof s == "undefined" && delete t[e];
|
|
878
878
|
}), _t = (t, e) => {
|
|
879
879
|
const s = {
|
|
@@ -918,15 +918,15 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
918
918
|
a,
|
|
919
919
|
U(a) ? l : p
|
|
920
920
|
), me(o, h, U(h) ? l : p);
|
|
921
|
-
},
|
|
921
|
+
}, G = (t, e) => {
|
|
922
922
|
const [s, r, n] = ie(t), i = e.getItem(s) || "{}", o = e.getItem(r) || "{}", c = e.getItem(n) || "{}";
|
|
923
923
|
return {
|
|
924
924
|
tenant: JSON.parse(i),
|
|
925
925
|
implementation: JSON.parse(o),
|
|
926
926
|
widget: JSON.parse(c)
|
|
927
927
|
};
|
|
928
|
-
},
|
|
929
|
-
const r =
|
|
928
|
+
}, Ce = (t, e, s) => {
|
|
929
|
+
const r = G(t, e), n = _t(r, s), [i, o, c] = ie(t), { tenant: a, implementation: h, widget: l } = n;
|
|
930
930
|
U(a) ? e.setItem(i, JSON.stringify(a)) : e.removeItem(i), U(h) ? e.setItem(o, JSON.stringify(h)) : e.removeItem(o), U(l) ? e.setItem(c, JSON.stringify(l)) : e.removeItem(c);
|
|
931
931
|
}, ws = () => ({ tenant: {}, implementation: {}, widget: {} }), _s = (t) => t ? !!t && /* @__PURE__ */ new Date() > new Date(t) : !1, xe = (t, e) => {
|
|
932
932
|
const s = t.widget[e] || t.implementation[e] || t.tenant[e];
|
|
@@ -949,21 +949,21 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
949
949
|
}, tt = (t, e) => bs(t, "storagePolicy", w.Cookie).then(
|
|
950
950
|
(s = [m.Necessary]) => !!e && s.indexOf(e) === -1
|
|
951
951
|
), Es = (t = [m.Necessary], e) => !!e && t.indexOf(e) === -1, Me = (t) => {
|
|
952
|
-
const e = Re(t), s =
|
|
952
|
+
const e = Re(t), s = G(t, window.localStorage), r = G(t, sessionStorage), n = xe(e, "storagePolicy"), [i, o, c] = [
|
|
953
953
|
e,
|
|
954
954
|
s,
|
|
955
955
|
r
|
|
956
956
|
].map((a) => As(a, n));
|
|
957
|
-
At(t, i),
|
|
957
|
+
At(t, i), Ce(t, window.localStorage, o), Ce(t, window.sessionStorage, c);
|
|
958
958
|
}, De = (t = { days: 30 }) => {
|
|
959
959
|
const { days: e = 0, hours: s = 0, minutes: r = 0, seconds: n = 0 } = t, i = /* @__PURE__ */ new Date();
|
|
960
960
|
return i.setTime(i.getTime() + s * 60 * 60 * 1e3), i.setTime(i.getTime() + e * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + n * 1e3), i.toISOString();
|
|
961
|
-
},
|
|
961
|
+
}, Os = (t) => ne(document)(() => Re(t)), Cs = (t, e) => ne(document)(() => At(t, e)), xs = (t, e) => {
|
|
962
962
|
const s = e === w.Local ? window.localStorage : window.sessionStorage;
|
|
963
|
-
return ne(s)(() =>
|
|
963
|
+
return ne(s)(() => G(t, s));
|
|
964
964
|
}, Ss = (t, e, s) => {
|
|
965
965
|
const r = e === w.Local ? window.localStorage : window.sessionStorage;
|
|
966
|
-
return ne(r)(() =>
|
|
966
|
+
return ne(r)(() => Ce(t, r, s));
|
|
967
967
|
}, fe = (t, e, s, ...r) => {
|
|
968
968
|
const n = `[${t.get("$environment").name || "webprovisions"}] ${s}`;
|
|
969
969
|
switch (e) {
|
|
@@ -1040,11 +1040,11 @@ let Ns = class {
|
|
|
1040
1040
|
return this.part;
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
|
-
const
|
|
1043
|
+
const Ot = (t) => {
|
|
1044
1044
|
const e = new Ns({});
|
|
1045
1045
|
return t(e), e.get();
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1047
|
+
Ot((t) => {
|
|
1048
1048
|
t.createCommand(
|
|
1049
1049
|
"types.register",
|
|
1050
1050
|
{ scope: ee.Implementation, stage: S.Pre },
|
|
@@ -1123,7 +1123,7 @@ Ct((t) => {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
);
|
|
1125
1125
|
});
|
|
1126
|
-
|
|
1126
|
+
Ot((t) => {
|
|
1127
1127
|
t.createCommand("storage", (e) => (s = {}) => {
|
|
1128
1128
|
const { consent: r } = s;
|
|
1129
1129
|
if (typeof r != "undefined") {
|
|
@@ -1167,7 +1167,7 @@ Ct((t) => {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
});
|
|
1169
1169
|
});
|
|
1170
|
-
function
|
|
1170
|
+
function Ct(t) {
|
|
1171
1171
|
if (t.__esModule)
|
|
1172
1172
|
return t;
|
|
1173
1173
|
var e = t.default;
|
|
@@ -1257,20 +1257,20 @@ function Us(t) {
|
|
|
1257
1257
|
const Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1258
1258
|
__proto__: null,
|
|
1259
1259
|
default: Us
|
|
1260
|
-
}, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */
|
|
1260
|
+
}, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ Ct(Hs);
|
|
1261
1261
|
var rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1262
1262
|
return typeof t;
|
|
1263
1263
|
} : function(t) {
|
|
1264
1264
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1265
1265
|
};
|
|
1266
|
-
function
|
|
1266
|
+
function Y(t, e) {
|
|
1267
1267
|
if (t === e)
|
|
1268
1268
|
return !0;
|
|
1269
1269
|
if (t == null || e == null)
|
|
1270
1270
|
return !1;
|
|
1271
1271
|
if (Array.isArray(t))
|
|
1272
1272
|
return Array.isArray(e) && t.length === e.length && t.every(function(a, h) {
|
|
1273
|
-
return
|
|
1273
|
+
return Y(a, e[h]);
|
|
1274
1274
|
});
|
|
1275
1275
|
var s = typeof t == "undefined" ? "undefined" : rt(t), r = typeof e == "undefined" ? "undefined" : rt(e);
|
|
1276
1276
|
if (s !== r)
|
|
@@ -1278,18 +1278,18 @@ function Q(t, e) {
|
|
|
1278
1278
|
if (s === "object") {
|
|
1279
1279
|
var n = t.valueOf(), i = e.valueOf();
|
|
1280
1280
|
if (n !== t || i !== e)
|
|
1281
|
-
return
|
|
1281
|
+
return Y(n, i);
|
|
1282
1282
|
var o = Object.keys(t), c = Object.keys(e);
|
|
1283
1283
|
return o.length !== c.length ? !1 : o.every(function(a) {
|
|
1284
|
-
return
|
|
1284
|
+
return Y(t[a], e[a]);
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
1287
|
return !1;
|
|
1288
1288
|
}
|
|
1289
1289
|
const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1290
1290
|
__proto__: null,
|
|
1291
|
-
default:
|
|
1292
|
-
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */
|
|
1291
|
+
default: Y
|
|
1292
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */ Ct(Ms);
|
|
1293
1293
|
var zs = Rs;
|
|
1294
1294
|
St(zs);
|
|
1295
1295
|
var Ls = Ds;
|
|
@@ -1326,7 +1326,7 @@ const ye = (t, e, s, ...r) => {
|
|
|
1326
1326
|
error: (s, ...r) => ye(e, "error", s, ...r)
|
|
1327
1327
|
};
|
|
1328
1328
|
};
|
|
1329
|
-
var L = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(L || {}),
|
|
1329
|
+
var L = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(L || {}), O = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(O || {});
|
|
1330
1330
|
const Vs = (t, e, s, r) => {
|
|
1331
1331
|
try {
|
|
1332
1332
|
const n = new e(s, r);
|
|
@@ -1362,12 +1362,12 @@ class Bs {
|
|
|
1362
1362
|
let n;
|
|
1363
1363
|
typeof s == "function" ? n = {
|
|
1364
1364
|
scope: L.Widget,
|
|
1365
|
-
stage:
|
|
1365
|
+
stage: O.Post,
|
|
1366
1366
|
defaultArgs: void 0,
|
|
1367
1367
|
handlerResolver: s
|
|
1368
1368
|
} : n = {
|
|
1369
1369
|
scope: nt(s.scope, L.Widget),
|
|
1370
|
-
stage: nt(s.stage,
|
|
1370
|
+
stage: nt(s.stage, O.Post),
|
|
1371
1371
|
defaultArgs: s.defaultArgs,
|
|
1372
1372
|
handlerResolver: r
|
|
1373
1373
|
};
|
|
@@ -1388,19 +1388,19 @@ const Pt = (t) => {
|
|
|
1388
1388
|
Pt((t) => {
|
|
1389
1389
|
t.createCommand(
|
|
1390
1390
|
"types.register",
|
|
1391
|
-
{ scope: L.Implementation, stage:
|
|
1391
|
+
{ scope: L.Implementation, stage: O.Pre },
|
|
1392
1392
|
(e) => (s, r) => {
|
|
1393
1393
|
e.container.get("$types")[s] = r;
|
|
1394
1394
|
}
|
|
1395
1395
|
).createCommand(
|
|
1396
1396
|
"type",
|
|
1397
|
-
{ stage:
|
|
1397
|
+
{ stage: O.Pre },
|
|
1398
1398
|
(e) => (s) => {
|
|
1399
1399
|
e.container.register("$type", s);
|
|
1400
1400
|
}
|
|
1401
1401
|
).createCommand(
|
|
1402
1402
|
"settings",
|
|
1403
|
-
{ stage:
|
|
1403
|
+
{ stage: O.Pre, defaultArgs: [null] },
|
|
1404
1404
|
(e) => (s) => {
|
|
1405
1405
|
e.events.dispatch(
|
|
1406
1406
|
"settings:change",
|
|
@@ -1410,7 +1410,7 @@ Pt((t) => {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
).createCommand(
|
|
1412
1412
|
"plugin",
|
|
1413
|
-
{ stage:
|
|
1413
|
+
{ stage: O.Pre },
|
|
1414
1414
|
(e) => (s, r, n) => {
|
|
1415
1415
|
const { container: i } = e;
|
|
1416
1416
|
let o = null, c = s, a = r;
|
|
@@ -1467,7 +1467,7 @@ Pt((t) => {
|
|
|
1467
1467
|
Pt((t) => {
|
|
1468
1468
|
t.createCommand(
|
|
1469
1469
|
"ready",
|
|
1470
|
-
{ scope: L.Implementation, stage:
|
|
1470
|
+
{ scope: L.Implementation, stage: O.Pre },
|
|
1471
1471
|
(e) => (s) => {
|
|
1472
1472
|
const { container: r } = e, n = r.owner;
|
|
1473
1473
|
r.get("bootstrapping").ready ? s(n) : n.events.subscribeOnce("bootstrap:ready", () => {
|
|
@@ -1481,7 +1481,7 @@ Pt((t) => {
|
|
|
1481
1481
|
* Copyright 2019 Google LLC
|
|
1482
1482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1483
1483
|
*/
|
|
1484
|
-
const
|
|
1484
|
+
const Q = window, ze = Q.ShadowRoot && (Q.ShadyCSS === void 0 || Q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Le = Symbol(), it = /* @__PURE__ */ new WeakMap();
|
|
1485
1485
|
let kt = class {
|
|
1486
1486
|
constructor(t, e, s) {
|
|
1487
1487
|
if (this._$cssResult$ = !0, s !== Le)
|
|
@@ -1512,7 +1512,7 @@ const Js = (t) => new kt(typeof t == "string" ? t : t + "", void 0, Le), Fs = (t
|
|
|
1512
1512
|
return new kt(s, t, Le);
|
|
1513
1513
|
}, qs = (t, e) => {
|
|
1514
1514
|
ze ? t.adoptedStyleSheets = e.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet) : e.forEach((s) => {
|
|
1515
|
-
const r = document.createElement("style"), n =
|
|
1515
|
+
const r = document.createElement("style"), n = Q.litNonce;
|
|
1516
1516
|
n !== void 0 && r.setAttribute("nonce", n), r.textContent = s.cssText, t.appendChild(r);
|
|
1517
1517
|
});
|
|
1518
1518
|
}, ot = ze ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -1744,23 +1744,23 @@ I[Pe] = !0, I.elementProperties = /* @__PURE__ */ new Map(), I.elementStyles = [
|
|
|
1744
1744
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1745
1745
|
*/
|
|
1746
1746
|
var we;
|
|
1747
|
-
const se = window, H = se.trustedTypes, lt = H ? H.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Tt = "?" + E, Zs = `<${Tt}>`, k = document, W = () => k.createComment(""), V = (t) => t === null || typeof t != "object" && typeof t != "function", jt = Array.isArray,
|
|
1748
|
-
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, pt = />/g,
|
|
1749
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, ut = /"/g, It = /^(?:script|style|textarea|title)$/i,
|
|
1747
|
+
const se = window, H = se.trustedTypes, lt = H ? H.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Tt = "?" + E, Zs = `<${Tt}>`, k = document, W = () => k.createComment(""), V = (t) => t === null || typeof t != "object" && typeof t != "function", jt = Array.isArray, Ys = (t) => jt(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
|
|
1748
|
+
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, pt = />/g, C = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
1749
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, ut = /"/g, It = /^(?:script|style|textarea|title)$/i, Qs = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }), K = Qs(1), N = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), gt = /* @__PURE__ */ new WeakMap(), P = k.createTreeWalker(k, 129, null, !1);
|
|
1750
1750
|
function Ut(t, e) {
|
|
1751
1751
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
1752
1752
|
throw Error("invalid template strings array");
|
|
1753
1753
|
return lt !== void 0 ? lt.createHTML(e) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Xs = (t, e) => {
|
|
1756
1756
|
const s = t.length - 1, r = [];
|
|
1757
1757
|
let n, i = e === 2 ? "<svg>" : "", o = M;
|
|
1758
1758
|
for (let c = 0; c < s; c++) {
|
|
1759
1759
|
const a = t[c];
|
|
1760
1760
|
let h, l, p = -1, d = 0;
|
|
1761
1761
|
for (; d < a.length && (o.lastIndex = d, l = o.exec(a), l !== null); )
|
|
1762
|
-
d = o.lastIndex, o === M ? l[1] === "!--" ? o = ht : l[1] !== void 0 ? o = pt : l[2] !== void 0 ? (It.test(l[2]) && (n = RegExp("</" + l[2], "g")), o =
|
|
1763
|
-
const u = o ===
|
|
1762
|
+
d = o.lastIndex, o === M ? l[1] === "!--" ? o = ht : l[1] !== void 0 ? o = pt : l[2] !== void 0 ? (It.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = C) : l[3] !== void 0 && (o = C) : o === C ? l[0] === ">" ? (o = n != null ? n : M, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? C : l[3] === '"' ? ut : dt) : o === ut || o === dt ? o = C : o === ht || o === pt ? o = M : (o = C, n = void 0);
|
|
1763
|
+
const u = o === C && t[c + 1].startsWith("/>") ? " " : "";
|
|
1764
1764
|
i += o === M ? a + Zs : p >= 0 ? (r.push(h), a.slice(0, p) + ke + a.slice(p) + E + u) : a + E + (p === -2 ? (r.push(void 0), c) : u);
|
|
1765
1765
|
}
|
|
1766
1766
|
return [Ut(t, i + (t[s] || "<?>") + (e === 2 ? "</svg>" : "")), r];
|
|
@@ -1770,7 +1770,7 @@ class B {
|
|
|
1770
1770
|
let n;
|
|
1771
1771
|
this.parts = [];
|
|
1772
1772
|
let i = 0, o = 0;
|
|
1773
|
-
const c = e.length - 1, a = this.parts, [h, l] =
|
|
1773
|
+
const c = e.length - 1, a = this.parts, [h, l] = Xs(e, s);
|
|
1774
1774
|
if (this.el = B.createElement(h, r), P.currentNode = this.el.content, s === 2) {
|
|
1775
1775
|
const p = this.el.content, d = p.firstChild;
|
|
1776
1776
|
d.remove(), p.append(...d.childNodes);
|
|
@@ -1824,7 +1824,7 @@ function R(t, e, s = t, r) {
|
|
|
1824
1824
|
const h = V(e) ? void 0 : e._$litDirective$;
|
|
1825
1825
|
return (a == null ? void 0 : a.constructor) !== h && ((i = a == null ? void 0 : a._$AO) === null || i === void 0 || i.call(a, !1), h === void 0 ? a = void 0 : (a = new h(t), a._$AT(t, s, r)), r !== void 0 ? ((o = (c = s)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[r] = a : s._$Cl = a), a !== void 0 && (e = R(t, a._$AS(t, e.values), a, r)), e;
|
|
1826
1826
|
}
|
|
1827
|
-
class
|
|
1827
|
+
class Gs {
|
|
1828
1828
|
constructor(e, s) {
|
|
1829
1829
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = s;
|
|
1830
1830
|
}
|
|
@@ -1875,7 +1875,7 @@ class J {
|
|
|
1875
1875
|
return this._$AB;
|
|
1876
1876
|
}
|
|
1877
1877
|
_$AI(e, s = this) {
|
|
1878
|
-
e = R(this, e, s), V(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== N && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) :
|
|
1878
|
+
e = R(this, e, s), V(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== N && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Ys(e) ? this.T(e) : this._(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
k(e) {
|
|
1881
1881
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1892,7 +1892,7 @@ class J {
|
|
|
1892
1892
|
if (((s = this._$AH) === null || s === void 0 ? void 0 : s._$AD) === i)
|
|
1893
1893
|
this._$AH.v(r);
|
|
1894
1894
|
else {
|
|
1895
|
-
const o = new
|
|
1895
|
+
const o = new Gs(i, this), c = o.u(this.options);
|
|
1896
1896
|
o.v(r), this.$(c), this._$AH = o;
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
@@ -2068,8 +2068,8 @@ function We(t) {
|
|
|
2068
2068
|
* Copyright 2021 Google LLC
|
|
2069
2069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2070
2070
|
*/
|
|
2071
|
-
var
|
|
2072
|
-
((
|
|
2071
|
+
var Oe;
|
|
2072
|
+
((Oe = window.HTMLSlotElement) === null || Oe === void 0 ? void 0 : Oe.prototype.assignedElements) != null;
|
|
2073
2073
|
/**
|
|
2074
2074
|
* @license
|
|
2075
2075
|
* Copyright 2017 Google LLC
|
|
@@ -2300,12 +2300,12 @@ const mr = "properties", gr = (t, e, s, r, n) => t.getAsync("componentResolver")
|
|
|
2300
2300
|
}), e, n))), fr = (t) => gr(
|
|
2301
2301
|
t,
|
|
2302
2302
|
"copyright",
|
|
2303
|
-
import("./copyright-
|
|
2303
|
+
import("./copyright-25b3d445.js"),
|
|
2304
2304
|
(e) => {
|
|
2305
2305
|
}
|
|
2306
2306
|
);
|
|
2307
2307
|
export {
|
|
2308
2308
|
fr as C,
|
|
2309
|
-
mr as
|
|
2309
|
+
mr as f
|
|
2310
2310
|
};
|
|
2311
|
-
//# sourceMappingURL=index-
|
|
2311
|
+
//# sourceMappingURL=index-c0ca28bb.js.map
|