overview-components 1.0.92 → 1.0.95
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/_virtual/FileSaver.min.js +4 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +28 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/lodash.js +4 -0
- package/dist/_virtual/pdf.js +4 -0
- package/dist/_virtual/react.production.js +4 -0
- package/dist/assets/generated/locales/de.js +73 -0
- package/dist/assets/generated/locales/en.js +73 -0
- package/dist/assets/generated/locales/fr.js +73 -0
- package/dist/assets/generated/locales/hr.js +73 -0
- package/dist/assets/generated/locales/it.js +73 -0
- package/dist/assets/generated/locales/pl.js +73 -0
- package/dist/assets/generated/locales/ro.js +73 -0
- package/dist/assets/generated/locales/sk.js +73 -0
- package/dist/assets/generated/locales/sr.js +73 -0
- package/dist/components/lit-attachments-tab.js +519 -0
- package/dist/components/lit-badge.js +100 -0
- package/dist/components/lit-case-variables-tab.js +727 -0
- package/dist/components/lit-chart.js +395 -0
- package/dist/components/lit-data-grid-tanstack.js +1733 -0
- package/dist/components/lit-filter-modal.js +312 -0
- package/dist/components/lit-multiselect-item.js +530 -0
- package/dist/components/lit-section-tab.js +133 -0
- package/dist/components/lit-tabs-overview.js +304 -0
- package/dist/components/react-wrappers/attachments-tab.js +14 -0
- package/dist/components/react-wrappers/badge.js +14 -0
- package/dist/components/react-wrappers/button.js +14 -0
- package/dist/components/react-wrappers/case-variables-tab.js +14 -0
- package/dist/components/react-wrappers/chart.js +14 -0
- package/dist/components/react-wrappers/data-grid-tanstack.js +14 -0
- package/dist/components/react-wrappers/filter-modal.js +14 -0
- package/dist/components/react-wrappers/progress-bar.js +14 -0
- package/dist/components/react-wrappers/section-tab.js +14 -0
- package/dist/components/react-wrappers/tabs-overview.js +14 -0
- package/dist/index.js +42 -0
- package/dist/libs/xlsx.mini.min.js +10 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
- package/dist/node_modules/@lit/localize/init/install.js +11 -0
- package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
- package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
- package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
- package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
- package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
- package/dist/node_modules/@lit/react/create-component.js +35 -0
- package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/chart.js/dist/chart.js +7122 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
- package/dist/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/lit-html/async-directive.js +69 -0
- package/dist/node_modules/lit-html/directive-helpers.js +45 -0
- package/dist/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/lit-html/directives/ref.js +42 -0
- package/dist/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/lit-html/directives/style-map.js +36 -0
- package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/lit-html/lit-html.js +243 -0
- package/dist/node_modules/lodash/lodash.js +3678 -0
- package/dist/node_modules/luxon/src/datetime.js +1793 -0
- package/dist/node_modules/luxon/src/duration.js +723 -0
- package/dist/node_modules/luxon/src/errors.js +40 -0
- package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
- package/dist/node_modules/luxon/src/impl/diff.js +36 -0
- package/dist/node_modules/luxon/src/impl/digits.js +74 -0
- package/dist/node_modules/luxon/src/impl/english.js +138 -0
- package/dist/node_modules/luxon/src/impl/formats.js +150 -0
- package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
- package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
- package/dist/node_modules/luxon/src/impl/locale.js +282 -0
- package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
- package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
- package/dist/node_modules/luxon/src/impl/util.js +206 -0
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
- package/dist/node_modules/luxon/src/info.js +180 -0
- package/dist/node_modules/luxon/src/interval.js +466 -0
- package/dist/node_modules/luxon/src/settings.js +150 -0
- package/dist/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
- package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
- package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
- package/dist/node_modules/react/cjs/react.production.js +417 -0
- package/dist/node_modules/react/index.js +10 -0
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
- package/dist/shared/lit-button.js +142 -0
- package/dist/shared/lit-progress-bar.js +83 -0
- package/dist/shared/simple-tooltip.js +174 -0
- package/dist/shared/styles/button-shared-styles.js +205 -0
- package/dist/utils/currency.js +13 -0
- package/dist/utils/custom-filters.js +50 -0
- package/dist/utils/date.js +15 -0
- package/dist/utils/getOperatorByType.js +52 -0
- package/dist/utils/localization.js +30 -0
- package/dist/vite.svg +1 -0
- package/package.json +76 -74
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { commonjsGlobal as c } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as E } from "../../../_virtual/FileSaver.min.js";
|
|
3
|
+
(function(h, j) {
|
|
4
|
+
(function(p, i) {
|
|
5
|
+
i();
|
|
6
|
+
})(c, function() {
|
|
7
|
+
function p(e, t) {
|
|
8
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
9
|
+
}
|
|
10
|
+
function i(e, t, r) {
|
|
11
|
+
var o = new XMLHttpRequest();
|
|
12
|
+
o.open("GET", e), o.responseType = "blob", o.onload = function() {
|
|
13
|
+
u(o.response, t, r);
|
|
14
|
+
}, o.onerror = function() {
|
|
15
|
+
console.error("could not download file");
|
|
16
|
+
}, o.send();
|
|
17
|
+
}
|
|
18
|
+
function v(e) {
|
|
19
|
+
var t = new XMLHttpRequest();
|
|
20
|
+
t.open("HEAD", e, !1);
|
|
21
|
+
try {
|
|
22
|
+
t.send();
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
return 200 <= t.status && 299 >= t.status;
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
try {
|
|
29
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
30
|
+
} catch {
|
|
31
|
+
var t = document.createEvent("MouseEvents");
|
|
32
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, m = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
36
|
+
} : "download" in HTMLAnchorElement.prototype && !m ? function(e, t, r) {
|
|
37
|
+
var o = a.URL || a.webkitURL, n = document.createElement("a");
|
|
38
|
+
t = t || e.name || "download", n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin === location.origin ? l(n) : v(n.href) ? i(e, t, r) : l(n, n.target = "_blank")) : (n.href = o.createObjectURL(e), setTimeout(function() {
|
|
39
|
+
o.revokeObjectURL(n.href);
|
|
40
|
+
}, 4e4), setTimeout(function() {
|
|
41
|
+
l(n);
|
|
42
|
+
}, 0));
|
|
43
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
44
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
|
|
45
|
+
else if (v(e)) i(e, t, r);
|
|
46
|
+
else {
|
|
47
|
+
var o = document.createElement("a");
|
|
48
|
+
o.href = e, o.target = "_blank", setTimeout(function() {
|
|
49
|
+
l(o);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
} : function(e, t, r, o) {
|
|
53
|
+
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
54
|
+
var n = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, w = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
55
|
+
if ((w || n && b || m) && typeof FileReader < "u") {
|
|
56
|
+
var f = new FileReader();
|
|
57
|
+
f.onloadend = function() {
|
|
58
|
+
var s = f.result;
|
|
59
|
+
s = w ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = s : location = s, o = null;
|
|
60
|
+
}, f.readAsDataURL(e);
|
|
61
|
+
} else {
|
|
62
|
+
var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
|
|
63
|
+
o ? o.location = d : location.href = d, o = null, setTimeout(function() {
|
|
64
|
+
y.revokeObjectURL(d);
|
|
65
|
+
}, 4e4);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
a.saveAs = u.saveAs = u, h.exports = u;
|
|
69
|
+
});
|
|
70
|
+
})(E);
|
|
71
|
+
var A = E.exports;
|
|
72
|
+
export {
|
|
73
|
+
A as F
|
|
74
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ReactiveElement as i } from "../@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { defaultConverter as m, notEqual as C } from "../@lit/reactive-element/reactive-element.js";
|
|
3
|
+
import { render as a, noChange as l } from "../lit-html/lit-html.js";
|
|
4
|
+
import { _$LH as E, html as R, nothing as $ } from "../lit-html/lit-html.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2017 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const t = globalThis;
|
|
11
|
+
class r extends i {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
14
|
+
}
|
|
15
|
+
createRenderRoot() {
|
|
16
|
+
var n;
|
|
17
|
+
const e = super.createRenderRoot();
|
|
18
|
+
return (n = this.renderOptions).renderBefore ?? (n.renderBefore = e.firstChild), e;
|
|
19
|
+
}
|
|
20
|
+
update(e) {
|
|
21
|
+
const n = this.render();
|
|
22
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = a(n, this.renderRoot, this.renderOptions);
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
var e;
|
|
26
|
+
super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
|
|
27
|
+
}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
var e;
|
|
30
|
+
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return l;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
var s;
|
|
37
|
+
r._$litElement$ = !0, r.finalized = !0, (s = t.litElementHydrateSupport) == null || s.call(t, { LitElement: r });
|
|
38
|
+
const o = t.litElementPolyfillSupport;
|
|
39
|
+
o == null || o({ LitElement: r });
|
|
40
|
+
(t.litElementVersions ?? (t.litElementVersions = [])).push("4.2.0");
|
|
41
|
+
export {
|
|
42
|
+
r as LitElement,
|
|
43
|
+
i as ReactiveElement,
|
|
44
|
+
E as _$LH,
|
|
45
|
+
m as defaultConverter,
|
|
46
|
+
R as html,
|
|
47
|
+
l as noChange,
|
|
48
|
+
C as notEqual,
|
|
49
|
+
$ as nothing,
|
|
50
|
+
a as render
|
|
51
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { isSingleExpression as $ } from "./directive-helpers.js";
|
|
2
|
+
import { Directive as _, PartType as A } from "./directive.js";
|
|
3
|
+
import { directive as N } from "./directive.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2017 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const o = (t, e) => {
|
|
10
|
+
var i;
|
|
11
|
+
const s = t._$AN;
|
|
12
|
+
if (s === void 0) return !1;
|
|
13
|
+
for (const r of s) (i = r._$AO) == null || i.call(r, e, !1), o(r, e);
|
|
14
|
+
return !0;
|
|
15
|
+
}, h = (t) => {
|
|
16
|
+
let e, s;
|
|
17
|
+
do {
|
|
18
|
+
if ((e = t._$AM) === void 0) break;
|
|
19
|
+
s = e._$AN, s.delete(t), t = e;
|
|
20
|
+
} while ((s == null ? void 0 : s.size) === 0);
|
|
21
|
+
}, c = (t) => {
|
|
22
|
+
for (let e; e = t._$AM; t = e) {
|
|
23
|
+
let s = e._$AN;
|
|
24
|
+
if (s === void 0) e._$AN = s = /* @__PURE__ */ new Set();
|
|
25
|
+
else if (s.has(t)) break;
|
|
26
|
+
s.add(t), d(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function f(t) {
|
|
30
|
+
this._$AN !== void 0 ? (h(this), this._$AM = t, c(this)) : this._$AM = t;
|
|
31
|
+
}
|
|
32
|
+
function a(t, e = !1, s = 0) {
|
|
33
|
+
const i = this._$AH, r = this._$AN;
|
|
34
|
+
if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(i)) for (let n = s; n < i.length; n++) o(i[n], !1), h(i[n]);
|
|
35
|
+
else i != null && (o(i, !1), h(i));
|
|
36
|
+
else o(this, t);
|
|
37
|
+
}
|
|
38
|
+
const d = (t) => {
|
|
39
|
+
t.type == A.CHILD && (t._$AP ?? (t._$AP = a), t._$AQ ?? (t._$AQ = f));
|
|
40
|
+
};
|
|
41
|
+
class p extends _ {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments), this._$AN = void 0;
|
|
44
|
+
}
|
|
45
|
+
_$AT(e, s, i) {
|
|
46
|
+
super._$AT(e, s, i), c(this), this.isConnected = e._$AU;
|
|
47
|
+
}
|
|
48
|
+
_$AO(e, s = !0) {
|
|
49
|
+
var i, r;
|
|
50
|
+
e !== this.isConnected && (this.isConnected = e, e ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), s && (o(this, e), h(this));
|
|
51
|
+
}
|
|
52
|
+
setValue(e) {
|
|
53
|
+
if ($(this._$Ct)) this._$Ct._$AI(e, this);
|
|
54
|
+
else {
|
|
55
|
+
const s = [...this._$Ct._$AH];
|
|
56
|
+
s[this._$Ci] = e, this._$Ct._$AI(s, this, 0);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
disconnected() {
|
|
60
|
+
}
|
|
61
|
+
reconnected() {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
p as AsyncDirective,
|
|
66
|
+
_ as Directive,
|
|
67
|
+
A as PartType,
|
|
68
|
+
N as directive
|
|
69
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { _$LH as m } from "./lit-html.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const { I: c } = m, g = (e) => e.strings === void 0, l = () => document.createComment(""), u = (e, i, t) => {
|
|
8
|
+
var a;
|
|
9
|
+
const r = e._$AA.parentNode, A = i === void 0 ? e._$AB : i._$AA;
|
|
10
|
+
if (t === void 0) {
|
|
11
|
+
const $ = r.insertBefore(l(), A), _ = r.insertBefore(l(), A);
|
|
12
|
+
t = new c($, _, e, e.options);
|
|
13
|
+
} else {
|
|
14
|
+
const $ = t._$AB.nextSibling, _ = t._$AM, o = _ !== e;
|
|
15
|
+
if (o) {
|
|
16
|
+
let s;
|
|
17
|
+
(a = t._$AQ) == null || a.call(t, e), t._$AM = e, t._$AP !== void 0 && (s = e._$AU) !== _._$AU && t._$AP(s);
|
|
18
|
+
}
|
|
19
|
+
if ($ !== A || o) {
|
|
20
|
+
let s = t._$AA;
|
|
21
|
+
for (; s !== $; ) {
|
|
22
|
+
const n = s.nextSibling;
|
|
23
|
+
r.insertBefore(s, A), s = n;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}, v = (e, i, t = e) => (e._$AI(i, t), e), f = {}, p = (e, i = f) => e._$AH = i, x = (e) => e._$AH, B = (e) => {
|
|
29
|
+
var r;
|
|
30
|
+
(r = e._$AP) == null || r.call(e, !1, !0);
|
|
31
|
+
let i = e._$AA;
|
|
32
|
+
const t = e._$AB.nextSibling;
|
|
33
|
+
for (; i !== t; ) {
|
|
34
|
+
const A = i.nextSibling;
|
|
35
|
+
i.remove(), i = A;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
x as getCommittedValue,
|
|
40
|
+
u as insertPart,
|
|
41
|
+
g as isSingleExpression,
|
|
42
|
+
B as removePart,
|
|
43
|
+
v as setChildPartValue,
|
|
44
|
+
p as setCommittedValue
|
|
45
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const s = { ATTRIBUTE: 1, CHILD: 2 }, $ = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
7
|
+
class _ {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
}
|
|
10
|
+
get _$AU() {
|
|
11
|
+
return this._$AM._$AU;
|
|
12
|
+
}
|
|
13
|
+
_$AT(t, e, r) {
|
|
14
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
15
|
+
}
|
|
16
|
+
_$AS(t, e) {
|
|
17
|
+
return this.update(t, e);
|
|
18
|
+
}
|
|
19
|
+
update(t, e) {
|
|
20
|
+
return this.render(...e);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
_ as Directive,
|
|
25
|
+
s as PartType,
|
|
26
|
+
$ as directive
|
|
27
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { nothing as o } from "../lit-html.js";
|
|
2
|
+
import { AsyncDirective as n } from "../async-directive.js";
|
|
3
|
+
import { directive as r } from "../directive.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2020 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const v = () => new c();
|
|
10
|
+
class c {
|
|
11
|
+
}
|
|
12
|
+
const e = /* @__PURE__ */ new WeakMap(), G = r(class extends n {
|
|
13
|
+
render(t) {
|
|
14
|
+
return o;
|
|
15
|
+
}
|
|
16
|
+
update(t, [i]) {
|
|
17
|
+
var h;
|
|
18
|
+
const s = i !== this.G;
|
|
19
|
+
return s && this.G !== void 0 && this.rt(void 0), (s || this.lt !== this.ct) && (this.G = i, this.ht = (h = t.options) == null ? void 0 : h.host, this.rt(this.ct = t.element)), o;
|
|
20
|
+
}
|
|
21
|
+
rt(t) {
|
|
22
|
+
if (this.isConnected || (t = void 0), typeof this.G == "function") {
|
|
23
|
+
const i = this.ht ?? globalThis;
|
|
24
|
+
let s = e.get(i);
|
|
25
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), e.set(i, s)), s.get(this.G) !== void 0 && this.G.call(this.ht, void 0), s.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
|
|
26
|
+
} else this.G.value = t;
|
|
27
|
+
}
|
|
28
|
+
get lt() {
|
|
29
|
+
var t, i;
|
|
30
|
+
return typeof this.G == "function" ? (t = e.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (i = this.G) == null ? void 0 : i.value;
|
|
31
|
+
}
|
|
32
|
+
disconnected() {
|
|
33
|
+
this.lt === this.ct && this.rt(void 0);
|
|
34
|
+
}
|
|
35
|
+
reconnected() {
|
|
36
|
+
this.rt(this.ct);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
v as createRef,
|
|
41
|
+
G as ref
|
|
42
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { noChange as k } from "../lit-html.js";
|
|
2
|
+
import { directive as w, Directive as V, PartType as $ } from "../directive.js";
|
|
3
|
+
import { getCommittedValue as A, setChildPartValue as h, insertPart as m, removePart as g, setCommittedValue as D } from "../directive-helpers.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2017 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const P = (s, f, c) => {
|
|
10
|
+
const p = /* @__PURE__ */ new Map();
|
|
11
|
+
for (let e = f; e <= c; e++) p.set(s[e], e);
|
|
12
|
+
return p;
|
|
13
|
+
}, j = w(class extends V {
|
|
14
|
+
constructor(s) {
|
|
15
|
+
if (super(s), s.type !== $.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
16
|
+
}
|
|
17
|
+
dt(s, f, c) {
|
|
18
|
+
let p;
|
|
19
|
+
c === void 0 ? c = f : f !== void 0 && (p = f);
|
|
20
|
+
const e = [], n = [];
|
|
21
|
+
let l = 0;
|
|
22
|
+
for (const a of s) e[l] = p ? p(a, l) : l, n[l] = c(a, l), l++;
|
|
23
|
+
return { values: n, keys: e };
|
|
24
|
+
}
|
|
25
|
+
render(s, f, c) {
|
|
26
|
+
return this.dt(s, f, c).values;
|
|
27
|
+
}
|
|
28
|
+
update(s, [f, c, p]) {
|
|
29
|
+
const e = A(s), { values: n, keys: l } = this.dt(f, c, p);
|
|
30
|
+
if (!Array.isArray(e)) return this.ut = l, n;
|
|
31
|
+
const a = this.ut ?? (this.ut = []), u = [];
|
|
32
|
+
let v, x, t = 0, o = e.length - 1, r = 0, i = n.length - 1;
|
|
33
|
+
for (; t <= o && r <= i; ) if (e[t] === null) t++;
|
|
34
|
+
else if (e[o] === null) o--;
|
|
35
|
+
else if (a[t] === l[r]) u[r] = h(e[t], n[r]), t++, r++;
|
|
36
|
+
else if (a[o] === l[i]) u[i] = h(e[o], n[i]), o--, i--;
|
|
37
|
+
else if (a[t] === l[i]) u[i] = h(e[t], n[i]), m(s, u[i + 1], e[t]), t++, i--;
|
|
38
|
+
else if (a[o] === l[r]) u[r] = h(e[o], n[r]), m(s, e[t], e[o]), o--, r++;
|
|
39
|
+
else if (v === void 0 && (v = P(l, r, i), x = P(a, t, o)), v.has(a[t])) if (v.has(a[o])) {
|
|
40
|
+
const d = x.get(l[r]), y = d !== void 0 ? e[d] : null;
|
|
41
|
+
if (y === null) {
|
|
42
|
+
const C = m(s, e[t]);
|
|
43
|
+
h(C, n[r]), u[r] = C;
|
|
44
|
+
} else u[r] = h(y, n[r]), m(s, e[t], y), e[d] = null;
|
|
45
|
+
r++;
|
|
46
|
+
} else g(e[o]), o--;
|
|
47
|
+
else g(e[t]), t++;
|
|
48
|
+
for (; r <= i; ) {
|
|
49
|
+
const d = m(s, u[i + 1]);
|
|
50
|
+
h(d, n[r]), u[r++] = d;
|
|
51
|
+
}
|
|
52
|
+
for (; t <= o; ) {
|
|
53
|
+
const d = e[t++];
|
|
54
|
+
d !== null && g(d);
|
|
55
|
+
}
|
|
56
|
+
return this.ut = l, D(s, u), k;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
j as repeat
|
|
61
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { noChange as l } from "../lit-html.js";
|
|
2
|
+
import { directive as c, Directive as a, PartType as u } from "../directive.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2018 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const o = "important", d = " !" + o, h = c(class extends a {
|
|
9
|
+
constructor(n) {
|
|
10
|
+
var t;
|
|
11
|
+
if (super(n), n.type !== u.ATTRIBUTE || n.name !== "style" || ((t = n.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
12
|
+
}
|
|
13
|
+
render(n) {
|
|
14
|
+
return Object.keys(n).reduce((t, s) => {
|
|
15
|
+
const e = n[s];
|
|
16
|
+
return e == null ? t : t + `${s = s.includes("-") ? s : s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${e};`;
|
|
17
|
+
}, "");
|
|
18
|
+
}
|
|
19
|
+
update(n, [t]) {
|
|
20
|
+
const { style: s } = n.element;
|
|
21
|
+
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
22
|
+
for (const e of this.ft) t[e] == null && (this.ft.delete(e), e.includes("-") ? s.removeProperty(e) : s[e] = null);
|
|
23
|
+
for (const e in t) {
|
|
24
|
+
const r = t[e];
|
|
25
|
+
if (r != null) {
|
|
26
|
+
this.ft.add(e);
|
|
27
|
+
const i = typeof r == "string" && r.endsWith(d);
|
|
28
|
+
e.includes("-") || i ? s.setProperty(e, i ? r.slice(0, -11) : r, i ? o : "") : s[e] = r;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return l;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
h as styleMap
|
|
36
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { nothing as s, noChange as r } from "../lit-html.js";
|
|
2
|
+
import { directive as n, Directive as o, PartType as a } from "../directive.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
class i extends o {
|
|
9
|
+
constructor(t) {
|
|
10
|
+
if (super(t), this.it = s, t.type !== a.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
11
|
+
}
|
|
12
|
+
render(t) {
|
|
13
|
+
if (t === s || t == null) return this._t = void 0, this.it = t;
|
|
14
|
+
if (t === r) return t;
|
|
15
|
+
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
+
if (t === this.it) return this._t;
|
|
17
|
+
this.it = t;
|
|
18
|
+
const e = [t];
|
|
19
|
+
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
i.directiveName = "unsafeHTML", i.resultType = 1;
|
|
23
|
+
const l = n(i);
|
|
24
|
+
export {
|
|
25
|
+
i as UnsafeHTMLDirective,
|
|
26
|
+
l as unsafeHTML
|
|
27
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const x = globalThis, M = x.trustedTypes, B = M ? M.createPolicy("lit-html", { createHTML: (h) => h }) : void 0, W = "$lit$", p = `lit$${Math.random().toFixed(9).slice(2)}$`, k = "?" + p, D = `<${k}>`, f = document, H = () => f.createComment(""), N = (h) => h === null || typeof h != "object" && typeof h != "function", E = Array.isArray, z = (h) => E(h) || typeof (h == null ? void 0 : h[Symbol.iterator]) == "function", w = `[
|
|
7
|
+
\f\r]`, y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P = /-->/g, U = />/g, u = RegExp(`>|${w}(?:([^\\s"'>=/]+)(${w}*=${w}*(?:[^
|
|
8
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), L = /'/g, O = /"/g, V = /^(?:script|style|textarea|title)$/i, Z = (h) => (t, ...e) => ({ _$litType$: h, strings: t, values: e }), X = Z(1), T = Symbol.for("lit-noChange"), a = Symbol.for("lit-nothing"), R = /* @__PURE__ */ new WeakMap(), g = f.createTreeWalker(f, 129);
|
|
9
|
+
function j(h, t) {
|
|
10
|
+
if (!E(h) || !h.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
11
|
+
return B !== void 0 ? B.createHTML(t) : t;
|
|
12
|
+
}
|
|
13
|
+
const F = (h, t) => {
|
|
14
|
+
const e = h.length - 1, i = [];
|
|
15
|
+
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = y;
|
|
16
|
+
for (let A = 0; A < e; A++) {
|
|
17
|
+
const r = h[A];
|
|
18
|
+
let $, _, l = -1, c = 0;
|
|
19
|
+
for (; c < r.length && (n.lastIndex = c, _ = n.exec(r), _ !== null); ) c = n.lastIndex, n === y ? _[1] === "!--" ? n = P : _[1] !== void 0 ? n = U : _[2] !== void 0 ? (V.test(_[2]) && (s = RegExp("</" + _[2], "g")), n = u) : _[3] !== void 0 && (n = u) : n === u ? _[0] === ">" ? (n = s ?? y, l = -1) : _[1] === void 0 ? l = -2 : (l = n.lastIndex - _[2].length, $ = _[1], n = _[3] === void 0 ? u : _[3] === '"' ? O : L) : n === O || n === L ? n = u : n === P || n === U ? n = y : (n = u, s = void 0);
|
|
20
|
+
const d = n === u && h[A + 1].startsWith("/>") ? " " : "";
|
|
21
|
+
o += n === y ? r + D : l >= 0 ? (i.push($), r.slice(0, l) + W + r.slice(l) + p + d) : r + p + (l === -2 ? A : d);
|
|
22
|
+
}
|
|
23
|
+
return [j(h, o + (h[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
24
|
+
};
|
|
25
|
+
class b {
|
|
26
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
|
27
|
+
let s;
|
|
28
|
+
this.parts = [];
|
|
29
|
+
let o = 0, n = 0;
|
|
30
|
+
const A = t.length - 1, r = this.parts, [$, _] = F(t, e);
|
|
31
|
+
if (this.el = b.createElement($, i), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
32
|
+
const l = this.el.content.firstChild;
|
|
33
|
+
l.replaceWith(...l.childNodes);
|
|
34
|
+
}
|
|
35
|
+
for (; (s = g.nextNode()) !== null && r.length < A; ) {
|
|
36
|
+
if (s.nodeType === 1) {
|
|
37
|
+
if (s.hasAttributes()) for (const l of s.getAttributeNames()) if (l.endsWith(W)) {
|
|
38
|
+
const c = _[n++], d = s.getAttribute(l).split(p), C = /([.?@])?(.*)/.exec(c);
|
|
39
|
+
r.push({ type: 1, index: o, name: C[2], strings: d, ctor: C[1] === "." ? G : C[1] === "?" ? J : C[1] === "@" ? K : S }), s.removeAttribute(l);
|
|
40
|
+
} else l.startsWith(p) && (r.push({ type: 6, index: o }), s.removeAttribute(l));
|
|
41
|
+
if (V.test(s.tagName)) {
|
|
42
|
+
const l = s.textContent.split(p), c = l.length - 1;
|
|
43
|
+
if (c > 0) {
|
|
44
|
+
s.textContent = M ? M.emptyScript : "";
|
|
45
|
+
for (let d = 0; d < c; d++) s.append(l[d], H()), g.nextNode(), r.push({ type: 2, index: ++o });
|
|
46
|
+
s.append(l[c], H());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
} else if (s.nodeType === 8) if (s.data === k) r.push({ type: 2, index: o });
|
|
50
|
+
else {
|
|
51
|
+
let l = -1;
|
|
52
|
+
for (; (l = s.data.indexOf(p, l + 1)) !== -1; ) r.push({ type: 7, index: o }), l += p.length - 1;
|
|
53
|
+
}
|
|
54
|
+
o++;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
static createElement(t, e) {
|
|
58
|
+
const i = f.createElement("template");
|
|
59
|
+
return i.innerHTML = t, i;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function v(h, t, e = h, i) {
|
|
63
|
+
var n, A;
|
|
64
|
+
if (t === T) return t;
|
|
65
|
+
let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
|
66
|
+
const o = N(t) ? void 0 : t._$litDirective$;
|
|
67
|
+
return (s == null ? void 0 : s.constructor) !== o && ((A = s == null ? void 0 : s._$AO) == null || A.call(s, !1), o === void 0 ? s = void 0 : (s = new o(h), s._$AT(h, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = v(h, s._$AS(h, t.values), s, i)), t;
|
|
68
|
+
}
|
|
69
|
+
class q {
|
|
70
|
+
constructor(t, e) {
|
|
71
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
72
|
+
}
|
|
73
|
+
get parentNode() {
|
|
74
|
+
return this._$AM.parentNode;
|
|
75
|
+
}
|
|
76
|
+
get _$AU() {
|
|
77
|
+
return this._$AM._$AU;
|
|
78
|
+
}
|
|
79
|
+
u(t) {
|
|
80
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? f).importNode(e, !0);
|
|
81
|
+
g.currentNode = s;
|
|
82
|
+
let o = g.nextNode(), n = 0, A = 0, r = i[0];
|
|
83
|
+
for (; r !== void 0; ) {
|
|
84
|
+
if (n === r.index) {
|
|
85
|
+
let $;
|
|
86
|
+
r.type === 2 ? $ = new m(o, o.nextSibling, this, t) : r.type === 1 ? $ = new r.ctor(o, r.name, r.strings, this, t) : r.type === 6 && ($ = new Q(o, this, t)), this._$AV.push($), r = i[++A];
|
|
87
|
+
}
|
|
88
|
+
n !== (r == null ? void 0 : r.index) && (o = g.nextNode(), n++);
|
|
89
|
+
}
|
|
90
|
+
return g.currentNode = f, s;
|
|
91
|
+
}
|
|
92
|
+
p(t) {
|
|
93
|
+
let e = 0;
|
|
94
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
class m {
|
|
98
|
+
get _$AU() {
|
|
99
|
+
var t;
|
|
100
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
101
|
+
}
|
|
102
|
+
constructor(t, e, i, s) {
|
|
103
|
+
this.type = 2, this._$AH = a, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
104
|
+
}
|
|
105
|
+
get parentNode() {
|
|
106
|
+
let t = this._$AA.parentNode;
|
|
107
|
+
const e = this._$AM;
|
|
108
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
109
|
+
}
|
|
110
|
+
get startNode() {
|
|
111
|
+
return this._$AA;
|
|
112
|
+
}
|
|
113
|
+
get endNode() {
|
|
114
|
+
return this._$AB;
|
|
115
|
+
}
|
|
116
|
+
_$AI(t, e = this) {
|
|
117
|
+
t = v(this, t, e), N(t) ? t === a || t == null || t === "" ? (this._$AH !== a && this._$AR(), this._$AH = a) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : z(t) ? this.k(t) : this._(t);
|
|
118
|
+
}
|
|
119
|
+
O(t) {
|
|
120
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
121
|
+
}
|
|
122
|
+
T(t) {
|
|
123
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
124
|
+
}
|
|
125
|
+
_(t) {
|
|
126
|
+
this._$AH !== a && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(f.createTextNode(t)), this._$AH = t;
|
|
127
|
+
}
|
|
128
|
+
$(t) {
|
|
129
|
+
var o;
|
|
130
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = b.createElement(j(i.h, i.h[0]), this.options)), i);
|
|
131
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
|
|
132
|
+
else {
|
|
133
|
+
const n = new q(s, this), A = n.u(this.options);
|
|
134
|
+
n.p(e), this.T(A), this._$AH = n;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
_$AC(t) {
|
|
138
|
+
let e = R.get(t.strings);
|
|
139
|
+
return e === void 0 && R.set(t.strings, e = new b(t)), e;
|
|
140
|
+
}
|
|
141
|
+
k(t) {
|
|
142
|
+
E(this._$AH) || (this._$AH = [], this._$AR());
|
|
143
|
+
const e = this._$AH;
|
|
144
|
+
let i, s = 0;
|
|
145
|
+
for (const o of t) s === e.length ? e.push(i = new m(this.O(H()), this.O(H()), this, this.options)) : i = e[s], i._$AI(o), s++;
|
|
146
|
+
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
|
147
|
+
}
|
|
148
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
|
149
|
+
var i;
|
|
150
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
151
|
+
const s = t.nextSibling;
|
|
152
|
+
t.remove(), t = s;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
setConnected(t) {
|
|
156
|
+
var e;
|
|
157
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class S {
|
|
161
|
+
get tagName() {
|
|
162
|
+
return this.element.tagName;
|
|
163
|
+
}
|
|
164
|
+
get _$AU() {
|
|
165
|
+
return this._$AM._$AU;
|
|
166
|
+
}
|
|
167
|
+
constructor(t, e, i, s, o) {
|
|
168
|
+
this.type = 1, this._$AH = a, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = a;
|
|
169
|
+
}
|
|
170
|
+
_$AI(t, e = this, i, s) {
|
|
171
|
+
const o = this.strings;
|
|
172
|
+
let n = !1;
|
|
173
|
+
if (o === void 0) t = v(this, t, e, 0), n = !N(t) || t !== this._$AH && t !== T, n && (this._$AH = t);
|
|
174
|
+
else {
|
|
175
|
+
const A = t;
|
|
176
|
+
let r, $;
|
|
177
|
+
for (t = o[0], r = 0; r < o.length - 1; r++) $ = v(this, A[i + r], e, r), $ === T && ($ = this._$AH[r]), n || (n = !N($) || $ !== this._$AH[r]), $ === a ? t = a : t !== a && (t += ($ ?? "") + o[r + 1]), this._$AH[r] = $;
|
|
178
|
+
}
|
|
179
|
+
n && !s && this.j(t);
|
|
180
|
+
}
|
|
181
|
+
j(t) {
|
|
182
|
+
t === a ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class G extends S {
|
|
186
|
+
constructor() {
|
|
187
|
+
super(...arguments), this.type = 3;
|
|
188
|
+
}
|
|
189
|
+
j(t) {
|
|
190
|
+
this.element[this.name] = t === a ? void 0 : t;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
class J extends S {
|
|
194
|
+
constructor() {
|
|
195
|
+
super(...arguments), this.type = 4;
|
|
196
|
+
}
|
|
197
|
+
j(t) {
|
|
198
|
+
this.element.toggleAttribute(this.name, !!t && t !== a);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class K extends S {
|
|
202
|
+
constructor(t, e, i, s, o) {
|
|
203
|
+
super(t, e, i, s, o), this.type = 5;
|
|
204
|
+
}
|
|
205
|
+
_$AI(t, e = this) {
|
|
206
|
+
if ((t = v(this, t, e, 0) ?? a) === T) return;
|
|
207
|
+
const i = this._$AH, s = t === a && i !== a || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== a && (i === a || s);
|
|
208
|
+
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
209
|
+
}
|
|
210
|
+
handleEvent(t) {
|
|
211
|
+
var e;
|
|
212
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
class Q {
|
|
216
|
+
constructor(t, e, i) {
|
|
217
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
218
|
+
}
|
|
219
|
+
get _$AU() {
|
|
220
|
+
return this._$AM._$AU;
|
|
221
|
+
}
|
|
222
|
+
_$AI(t) {
|
|
223
|
+
v(this, t);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const Y = { I: m }, I = x.litHtmlPolyfillSupport;
|
|
227
|
+
I == null || I(b, m), (x.litHtmlVersions ?? (x.litHtmlVersions = [])).push("3.3.0");
|
|
228
|
+
const tt = (h, t, e) => {
|
|
229
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
230
|
+
let s = i._$litPart$;
|
|
231
|
+
if (s === void 0) {
|
|
232
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
233
|
+
i._$litPart$ = s = new m(t.insertBefore(H(), o), o, void 0, e ?? {});
|
|
234
|
+
}
|
|
235
|
+
return s._$AI(h), s;
|
|
236
|
+
};
|
|
237
|
+
export {
|
|
238
|
+
Y as _$LH,
|
|
239
|
+
X as html,
|
|
240
|
+
T as noChange,
|
|
241
|
+
a as nothing,
|
|
242
|
+
tt as render
|
|
243
|
+
};
|