@decidables/decidables-elements 0.4.0 → 0.4.2
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/CHANGELOG.md +16 -0
- package/README.md +1 -0
- package/lib/decidablesElements.esm.js +377 -382
- package/lib/decidablesElements.esm.js.map +1 -1
- package/lib/decidablesElements.esm.min.js +25 -25
- package/lib/decidablesElements.esm.min.js.map +1 -1
- package/lib/decidablesElements.umd.js +377 -382
- package/lib/decidablesElements.umd.js.map +1 -1
- package/lib/decidablesElements.umd.min.js +25 -25
- package/lib/decidablesElements.umd.min.js.map +1 -1
- package/package.json +4 -4
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* Copyright 2019 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const t$1 =
|
|
12
|
+
const t$1 = globalThis,
|
|
13
13
|
e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
14
|
-
s$
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
constructor(t, e,
|
|
18
|
-
if (this._$cssResult$ = !0,
|
|
14
|
+
s$2 = Symbol(),
|
|
15
|
+
o$3 = new WeakMap();
|
|
16
|
+
let n$2 = class n {
|
|
17
|
+
constructor(t, e, o) {
|
|
18
|
+
if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
19
19
|
this.cssText = t, this.t = e;
|
|
20
20
|
}
|
|
21
21
|
get styleSheet() {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
const s = this.t;
|
|
24
24
|
if (e$2 && void 0 === t) {
|
|
25
25
|
const e = void 0 !== s && 1 === s.length;
|
|
26
|
-
e && (t =
|
|
26
|
+
e && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$3.set(s, t));
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
return this.cssText;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const r$
|
|
35
|
-
i$
|
|
36
|
-
const
|
|
34
|
+
const r$3 = t => new n$2("string" == typeof t ? t : t + "", void 0, s$2),
|
|
35
|
+
i$2 = (t, ...e) => {
|
|
36
|
+
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
37
37
|
if (!0 === t._$cssResult$) return t.cssText;
|
|
38
38
|
if ("number" == typeof t) return t;
|
|
39
39
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
40
|
-
})(s) + t[
|
|
41
|
-
return new
|
|
40
|
+
})(s) + t[o + 1], t[0]);
|
|
41
|
+
return new n$2(o, t, s$2);
|
|
42
42
|
},
|
|
43
|
-
S$1 = (s,
|
|
44
|
-
e$2
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
void 0 !==
|
|
48
|
-
}
|
|
43
|
+
S$1 = (s, o) => {
|
|
44
|
+
if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
45
|
+
const o = document.createElement("style"),
|
|
46
|
+
n = t$1.litNonce;
|
|
47
|
+
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
48
|
+
}
|
|
49
49
|
},
|
|
50
|
-
c$
|
|
50
|
+
c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
51
51
|
let e = "";
|
|
52
52
|
for (const s of t.cssRules) e += s.cssText;
|
|
53
|
-
return r$
|
|
53
|
+
return r$3(e);
|
|
54
54
|
})(t) : t;
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -58,16 +58,24 @@
|
|
|
58
58
|
* Copyright 2017 Google LLC
|
|
59
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
60
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
const {
|
|
62
|
+
is: i$1,
|
|
63
|
+
defineProperty: e$1,
|
|
64
|
+
getOwnPropertyDescriptor: r$2,
|
|
65
|
+
getOwnPropertyNames: h$1,
|
|
66
|
+
getOwnPropertySymbols: o$2,
|
|
67
|
+
getPrototypeOf: n$1
|
|
68
|
+
} = Object,
|
|
69
|
+
a$1 = globalThis,
|
|
70
|
+
c$1 = a$1.trustedTypes,
|
|
71
|
+
l$1 = c$1 ? c$1.emptyScript : "",
|
|
72
|
+
p$1 = a$1.reactiveElementPolyfillSupport,
|
|
73
|
+
d$1 = (t, s) => t,
|
|
74
|
+
u$1 = {
|
|
75
|
+
toAttribute(t, s) {
|
|
76
|
+
switch (s) {
|
|
69
77
|
case Boolean:
|
|
70
|
-
t = t ?
|
|
78
|
+
t = t ? l$1 : null;
|
|
71
79
|
break;
|
|
72
80
|
case Object:
|
|
73
81
|
case Array:
|
|
@@ -75,165 +83,177 @@
|
|
|
75
83
|
}
|
|
76
84
|
return t;
|
|
77
85
|
},
|
|
78
|
-
fromAttribute(t,
|
|
79
|
-
let
|
|
80
|
-
switch (
|
|
86
|
+
fromAttribute(t, s) {
|
|
87
|
+
let i = t;
|
|
88
|
+
switch (s) {
|
|
81
89
|
case Boolean:
|
|
82
|
-
|
|
90
|
+
i = null !== t;
|
|
83
91
|
break;
|
|
84
92
|
case Number:
|
|
85
|
-
|
|
93
|
+
i = null === t ? null : Number(t);
|
|
86
94
|
break;
|
|
87
95
|
case Object:
|
|
88
96
|
case Array:
|
|
89
97
|
try {
|
|
90
|
-
|
|
98
|
+
i = JSON.parse(t);
|
|
91
99
|
} catch (t) {
|
|
92
|
-
|
|
100
|
+
i = null;
|
|
93
101
|
}
|
|
94
102
|
}
|
|
95
|
-
return
|
|
103
|
+
return i;
|
|
96
104
|
}
|
|
97
105
|
},
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
f$1 = (t, s) => !i$1(t, s),
|
|
107
|
+
y$1 = {
|
|
100
108
|
attribute: !0,
|
|
101
109
|
type: String,
|
|
102
|
-
converter:
|
|
110
|
+
converter: u$1,
|
|
103
111
|
reflect: !1,
|
|
104
|
-
hasChanged:
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
let
|
|
108
|
-
constructor() {
|
|
109
|
-
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
|
110
|
-
}
|
|
112
|
+
hasChanged: f$1
|
|
113
|
+
};
|
|
114
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
115
|
+
let b$1 = class b extends HTMLElement {
|
|
111
116
|
static addInitializer(t) {
|
|
112
|
-
|
|
113
|
-
this.finalize(), (null !== (i = this.h) && void 0 !== i ? i : this.h = []).push(t);
|
|
117
|
+
this._$Ei(), (this.l ??= []).push(t);
|
|
114
118
|
}
|
|
115
119
|
static get observedAttributes() {
|
|
116
|
-
this.finalize();
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
static createProperty(t, i = l$3) {
|
|
124
|
-
if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
125
|
-
const s = "symbol" == typeof t ? Symbol() : "__" + t,
|
|
126
|
-
e = this.getPropertyDescriptor(t, s, i);
|
|
127
|
-
void 0 !== e && Object.defineProperty(this.prototype, t, e);
|
|
120
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
121
|
+
}
|
|
122
|
+
static createProperty(t, s = y$1) {
|
|
123
|
+
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
124
|
+
const i = Symbol(),
|
|
125
|
+
r = this.getPropertyDescriptor(t, i, s);
|
|
126
|
+
void 0 !== r && e$1(this.prototype, t, r);
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
|
-
static getPropertyDescriptor(t,
|
|
129
|
+
static getPropertyDescriptor(t, s, i) {
|
|
130
|
+
const {
|
|
131
|
+
get: e,
|
|
132
|
+
set: h
|
|
133
|
+
} = r$2(this.prototype, t) ?? {
|
|
134
|
+
get() {
|
|
135
|
+
return this[s];
|
|
136
|
+
},
|
|
137
|
+
set(t) {
|
|
138
|
+
this[s] = t;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
131
141
|
return {
|
|
132
142
|
get() {
|
|
133
|
-
return this
|
|
143
|
+
return e?.call(this);
|
|
134
144
|
},
|
|
135
|
-
set(
|
|
136
|
-
const r = this
|
|
137
|
-
this
|
|
145
|
+
set(s) {
|
|
146
|
+
const r = e?.call(this);
|
|
147
|
+
h.call(this, s), this.requestUpdate(t, r, i);
|
|
138
148
|
},
|
|
139
149
|
configurable: !0,
|
|
140
150
|
enumerable: !0
|
|
141
151
|
};
|
|
142
152
|
}
|
|
143
153
|
static getPropertyOptions(t) {
|
|
144
|
-
return this.elementProperties.get(t)
|
|
154
|
+
return this.elementProperties.get(t) ?? y$1;
|
|
155
|
+
}
|
|
156
|
+
static _$Ei() {
|
|
157
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
158
|
+
const t = n$1(this);
|
|
159
|
+
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
145
160
|
}
|
|
146
161
|
static finalize() {
|
|
147
|
-
if (this.hasOwnProperty(d$1)) return
|
|
148
|
-
this
|
|
149
|
-
const t = Object.getPrototypeOf(this);
|
|
150
|
-
if (t.finalize(), void 0 !== t.h && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map(), this.hasOwnProperty("properties")) {
|
|
162
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
163
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
151
164
|
const t = this.properties,
|
|
152
|
-
|
|
153
|
-
for (const
|
|
165
|
+
s = [...h$1(t), ...o$2(t)];
|
|
166
|
+
for (const i of s) this.createProperty(i, t[i]);
|
|
167
|
+
}
|
|
168
|
+
const t = this[Symbol.metadata];
|
|
169
|
+
if (null !== t) {
|
|
170
|
+
const s = litPropertyMetadata.get(t);
|
|
171
|
+
if (void 0 !== s) for (const [t, i] of s) this.elementProperties.set(t, i);
|
|
154
172
|
}
|
|
155
|
-
|
|
173
|
+
this._$Eh = new Map();
|
|
174
|
+
for (const [t, s] of this.elementProperties) {
|
|
175
|
+
const i = this._$Eu(t, s);
|
|
176
|
+
void 0 !== i && this._$Eh.set(i, t);
|
|
177
|
+
}
|
|
178
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
179
|
+
}
|
|
180
|
+
static finalizeStyles(s) {
|
|
181
|
+
const i = [];
|
|
182
|
+
if (Array.isArray(s)) {
|
|
183
|
+
const e = new Set(s.flat(1 / 0).reverse());
|
|
184
|
+
for (const s of e) i.unshift(c$2(s));
|
|
185
|
+
} else void 0 !== s && i.push(c$2(s));
|
|
186
|
+
return i;
|
|
156
187
|
}
|
|
157
|
-
static
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
const e = new Set(i.flat(1 / 0).reverse());
|
|
161
|
-
for (const i of e) s.unshift(c$1(i));
|
|
162
|
-
} else void 0 !== i && s.push(c$1(i));
|
|
163
|
-
return s;
|
|
188
|
+
static _$Eu(t, s) {
|
|
189
|
+
const i = s.attribute;
|
|
190
|
+
return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
164
191
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
192
|
+
constructor() {
|
|
193
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
168
194
|
}
|
|
169
|
-
_$
|
|
170
|
-
|
|
171
|
-
this._$E_ = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(t => t(this));
|
|
195
|
+
_$Ev() {
|
|
196
|
+
this._$Eg = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$ES(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
|
|
172
197
|
}
|
|
173
198
|
addController(t) {
|
|
174
|
-
|
|
175
|
-
(null !== (i = this._$ES) && void 0 !== i ? i : this._$ES = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (s = t.hostConnected) || void 0 === s || s.call(t));
|
|
199
|
+
(this._$E_ ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
176
200
|
}
|
|
177
201
|
removeController(t) {
|
|
178
|
-
|
|
179
|
-
null === (i = this._$ES) || void 0 === i || i.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
202
|
+
this._$E_?.delete(t);
|
|
180
203
|
}
|
|
181
|
-
_$
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
204
|
+
_$ES() {
|
|
205
|
+
const t = new Map(),
|
|
206
|
+
s = this.constructor.elementProperties;
|
|
207
|
+
for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
|
208
|
+
t.size > 0 && (this._$Ep = t);
|
|
185
209
|
}
|
|
186
210
|
createRenderRoot() {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return S$1(s, this.constructor.elementStyles), s;
|
|
211
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
212
|
+
return S$1(t, this.constructor.elementStyles), t;
|
|
190
213
|
}
|
|
191
214
|
connectedCallback() {
|
|
192
|
-
|
|
193
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
194
|
-
var i;
|
|
195
|
-
return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
|
|
196
|
-
});
|
|
215
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$E_?.forEach(t => t.hostConnected?.());
|
|
197
216
|
}
|
|
198
217
|
enableUpdating(t) {}
|
|
199
218
|
disconnectedCallback() {
|
|
200
|
-
|
|
201
|
-
null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
202
|
-
var i;
|
|
203
|
-
return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
|
|
204
|
-
});
|
|
219
|
+
this._$E_?.forEach(t => t.hostDisconnected?.());
|
|
205
220
|
}
|
|
206
|
-
attributeChangedCallback(t,
|
|
207
|
-
this._$AK(t,
|
|
221
|
+
attributeChangedCallback(t, s, i) {
|
|
222
|
+
this._$AK(t, i);
|
|
208
223
|
}
|
|
209
|
-
_$EO(t,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (void 0 !==
|
|
213
|
-
const
|
|
214
|
-
this._$
|
|
224
|
+
_$EO(t, s) {
|
|
225
|
+
const i = this.constructor.elementProperties.get(t),
|
|
226
|
+
e = this.constructor._$Eu(t, i);
|
|
227
|
+
if (void 0 !== e && !0 === i.reflect) {
|
|
228
|
+
const r = (void 0 !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
229
|
+
this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
|
|
215
230
|
}
|
|
216
231
|
}
|
|
217
|
-
_$AK(t,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
h = "function" == typeof t.converter ? {
|
|
232
|
+
_$AK(t, s) {
|
|
233
|
+
const i = this.constructor,
|
|
234
|
+
e = i._$Eh.get(t);
|
|
235
|
+
if (void 0 !== e && this._$Em !== e) {
|
|
236
|
+
const t = i.getPropertyOptions(e),
|
|
237
|
+
r = "function" == typeof t.converter ? {
|
|
224
238
|
fromAttribute: t.converter
|
|
225
|
-
} : void 0 !==
|
|
226
|
-
this._$
|
|
239
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
240
|
+
this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
requestUpdate(t, s, i, e = !1, r) {
|
|
244
|
+
if (void 0 !== t) {
|
|
245
|
+
if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$1)(e ? r : this[t], s)) return;
|
|
246
|
+
this.C(t, s, i);
|
|
227
247
|
}
|
|
248
|
+
!1 === this.isUpdatePending && (this._$Eg = this._$EP());
|
|
228
249
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$1)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
|
|
250
|
+
C(t, s, i) {
|
|
251
|
+
this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
|
|
232
252
|
}
|
|
233
|
-
async _$
|
|
253
|
+
async _$EP() {
|
|
234
254
|
this.isUpdatePending = !0;
|
|
235
255
|
try {
|
|
236
|
-
await this._$
|
|
256
|
+
await this._$Eg;
|
|
237
257
|
} catch (t) {
|
|
238
258
|
Promise.reject(t);
|
|
239
259
|
}
|
|
@@ -244,192 +264,182 @@
|
|
|
244
264
|
return this.performUpdate();
|
|
245
265
|
}
|
|
246
266
|
performUpdate() {
|
|
247
|
-
var t;
|
|
248
267
|
if (!this.isUpdatePending) return;
|
|
249
|
-
|
|
250
|
-
|
|
268
|
+
if (!this.hasUpdated) {
|
|
269
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
270
|
+
for (const [t, s] of this._$Ep) this[t] = s;
|
|
271
|
+
this._$Ep = void 0;
|
|
272
|
+
}
|
|
273
|
+
const t = this.constructor.elementProperties;
|
|
274
|
+
if (t.size > 0) for (const [s, i] of t) !0 !== i.wrapped || this._$AL.has(s) || void 0 === this[s] || this.C(s, this[s], i);
|
|
275
|
+
}
|
|
276
|
+
let t = !1;
|
|
251
277
|
const s = this._$AL;
|
|
252
278
|
try {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}), this.update(s)) : this._$Ek();
|
|
257
|
-
} catch (t) {
|
|
258
|
-
throw i = !1, this._$Ek(), t;
|
|
279
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$E_?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$ET();
|
|
280
|
+
} catch (s) {
|
|
281
|
+
throw t = !1, this._$ET(), s;
|
|
259
282
|
}
|
|
260
|
-
|
|
283
|
+
t && this._$AE(s);
|
|
261
284
|
}
|
|
262
285
|
willUpdate(t) {}
|
|
263
286
|
_$AE(t) {
|
|
264
|
-
|
|
265
|
-
null === (i = this._$ES) || void 0 === i || i.forEach(t => {
|
|
266
|
-
var i;
|
|
267
|
-
return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
|
|
268
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
287
|
+
this._$E_?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
269
288
|
}
|
|
270
|
-
_$
|
|
289
|
+
_$ET() {
|
|
271
290
|
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
272
291
|
}
|
|
273
292
|
get updateComplete() {
|
|
274
293
|
return this.getUpdateComplete();
|
|
275
294
|
}
|
|
276
295
|
getUpdateComplete() {
|
|
277
|
-
return this._$
|
|
296
|
+
return this._$Eg;
|
|
278
297
|
}
|
|
279
298
|
shouldUpdate(t) {
|
|
280
299
|
return !0;
|
|
281
300
|
}
|
|
282
301
|
update(t) {
|
|
283
|
-
|
|
302
|
+
this._$Ej &&= this._$Ej.forEach(t => this._$EO(t, this[t])), this._$ET();
|
|
284
303
|
}
|
|
285
304
|
updated(t) {}
|
|
286
305
|
firstUpdated(t) {}
|
|
287
306
|
};
|
|
288
|
-
|
|
307
|
+
b$1.elementStyles = [], b$1.shadowRootOptions = {
|
|
289
308
|
mode: "open"
|
|
290
|
-
},
|
|
291
|
-
ReactiveElement:
|
|
292
|
-
}), (
|
|
309
|
+
}, b$1[d$1("elementProperties")] = new Map(), b$1[d$1("finalized")] = new Map(), p$1?.({
|
|
310
|
+
ReactiveElement: b$1
|
|
311
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.0.2");
|
|
293
312
|
|
|
294
313
|
/**
|
|
295
314
|
* @license
|
|
296
315
|
* Copyright 2017 Google LLC
|
|
297
316
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
298
317
|
*/
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
s$1 = i.
|
|
302
|
-
e = s$1 ? s$1.createPolicy("lit-html", {
|
|
318
|
+
const t = globalThis,
|
|
319
|
+
i = t.trustedTypes,
|
|
320
|
+
s$1 = i ? i.createPolicy("lit-html", {
|
|
303
321
|
createHTML: t => t
|
|
304
322
|
}) : void 0,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
r = document,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
323
|
+
e = "$lit$",
|
|
324
|
+
h = `lit$${(Math.random() + "").slice(9)}$`,
|
|
325
|
+
o$1 = "?" + h,
|
|
326
|
+
n = `<${o$1}>`,
|
|
327
|
+
r$1 = document,
|
|
328
|
+
l = () => r$1.createComment(""),
|
|
329
|
+
c = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
330
|
+
a = Array.isArray,
|
|
331
|
+
u = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
332
|
+
d = "[ \t\n\f\r]",
|
|
315
333
|
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
334
|
+
v = /-->/g,
|
|
335
|
+
_ = />/g,
|
|
336
|
+
m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
337
|
+
p = /'/g,
|
|
338
|
+
g = /"/g,
|
|
339
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
340
|
+
y = t => (i, ...s) => ({
|
|
323
341
|
_$litType$: t,
|
|
324
342
|
strings: i,
|
|
325
343
|
values: s
|
|
326
344
|
}),
|
|
327
|
-
x =
|
|
328
|
-
b =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
function
|
|
345
|
+
x = y(1),
|
|
346
|
+
b = y(2),
|
|
347
|
+
w = Symbol.for("lit-noChange"),
|
|
348
|
+
T = Symbol.for("lit-nothing"),
|
|
349
|
+
A = new WeakMap(),
|
|
350
|
+
E = r$1.createTreeWalker(r$1, 129);
|
|
351
|
+
function C(t, i) {
|
|
334
352
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
335
|
-
return void 0 !==
|
|
353
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
336
354
|
}
|
|
337
|
-
const
|
|
355
|
+
const P = (t, i) => {
|
|
338
356
|
const s = t.length - 1,
|
|
339
|
-
|
|
340
|
-
let
|
|
341
|
-
|
|
342
|
-
|
|
357
|
+
o = [];
|
|
358
|
+
let r,
|
|
359
|
+
l = 2 === i ? "<svg>" : "",
|
|
360
|
+
c = f;
|
|
343
361
|
for (let i = 0; i < s; i++) {
|
|
344
362
|
const s = t[i];
|
|
345
|
-
let
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
for (;
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
return [
|
|
363
|
+
let a,
|
|
364
|
+
u,
|
|
365
|
+
d = -1,
|
|
366
|
+
y = 0;
|
|
367
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
368
|
+
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
369
|
+
l += c === f ? s + n : d >= 0 ? (o.push(a), s.slice(0, d) + e + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
370
|
+
}
|
|
371
|
+
return [C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), o];
|
|
354
372
|
};
|
|
355
|
-
class
|
|
373
|
+
class V {
|
|
356
374
|
constructor({
|
|
357
375
|
strings: t,
|
|
358
|
-
_$litType$:
|
|
359
|
-
},
|
|
360
|
-
let
|
|
376
|
+
_$litType$: s
|
|
377
|
+
}, n) {
|
|
378
|
+
let r;
|
|
361
379
|
this.parts = [];
|
|
362
|
-
let
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
[
|
|
367
|
-
if (this.el =
|
|
368
|
-
const t = this.el.content
|
|
369
|
-
|
|
370
|
-
i.remove(), t.append(...i.childNodes);
|
|
380
|
+
let c = 0,
|
|
381
|
+
a = 0;
|
|
382
|
+
const u = t.length - 1,
|
|
383
|
+
d = this.parts,
|
|
384
|
+
[f, v] = P(t, s);
|
|
385
|
+
if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
|
|
386
|
+
const t = this.el.content.firstChild;
|
|
387
|
+
t.replaceWith(...t.childNodes);
|
|
371
388
|
}
|
|
372
|
-
for (; null !== (
|
|
373
|
-
if (1 ===
|
|
374
|
-
if (
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
if (y.test(h.tagName)) {
|
|
396
|
-
const t = h.textContent.split(n$1),
|
|
397
|
-
i = t.length - 1;
|
|
398
|
-
if (i > 0) {
|
|
399
|
-
h.textContent = s$1 ? s$1.emptyScript : "";
|
|
400
|
-
for (let s = 0; s < i; s++) h.append(t[s], u()), C.nextNode(), v.push({
|
|
389
|
+
for (; null !== (r = E.nextNode()) && d.length < u;) {
|
|
390
|
+
if (1 === r.nodeType) {
|
|
391
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
392
|
+
const i = v[a++],
|
|
393
|
+
s = r.getAttribute(t).split(h),
|
|
394
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
395
|
+
d.push({
|
|
396
|
+
type: 1,
|
|
397
|
+
index: c,
|
|
398
|
+
name: e[2],
|
|
399
|
+
strings: s,
|
|
400
|
+
ctor: "." === e[1] ? k : "?" === e[1] ? H : "@" === e[1] ? I : R
|
|
401
|
+
}), r.removeAttribute(t);
|
|
402
|
+
} else t.startsWith(h) && (d.push({
|
|
403
|
+
type: 6,
|
|
404
|
+
index: c
|
|
405
|
+
}), r.removeAttribute(t));
|
|
406
|
+
if ($.test(r.tagName)) {
|
|
407
|
+
const t = r.textContent.split(h),
|
|
408
|
+
s = t.length - 1;
|
|
409
|
+
if (s > 0) {
|
|
410
|
+
r.textContent = i ? i.emptyScript : "";
|
|
411
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), E.nextNode(), d.push({
|
|
401
412
|
type: 2,
|
|
402
|
-
index: ++
|
|
413
|
+
index: ++c
|
|
403
414
|
});
|
|
404
|
-
|
|
415
|
+
r.append(t[s], l());
|
|
405
416
|
}
|
|
406
417
|
}
|
|
407
|
-
} else if (8 ===
|
|
418
|
+
} else if (8 === r.nodeType) if (r.data === o$1) d.push({
|
|
408
419
|
type: 2,
|
|
409
|
-
index:
|
|
420
|
+
index: c
|
|
410
421
|
});else {
|
|
411
422
|
let t = -1;
|
|
412
|
-
for (; -1 !== (t =
|
|
423
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
413
424
|
type: 7,
|
|
414
|
-
index:
|
|
415
|
-
}), t +=
|
|
425
|
+
index: c
|
|
426
|
+
}), t += h.length - 1;
|
|
416
427
|
}
|
|
417
|
-
|
|
428
|
+
c++;
|
|
418
429
|
}
|
|
419
430
|
}
|
|
420
431
|
static createElement(t, i) {
|
|
421
|
-
const s = r.createElement("template");
|
|
432
|
+
const s = r$1.createElement("template");
|
|
422
433
|
return s.innerHTML = t, s;
|
|
423
434
|
}
|
|
424
435
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return (null == r ? void 0 : r.constructor) !== u && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === u ? r = void 0 : (r = new u(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = S(t, r._$AS(t, i.values), r, e)), i;
|
|
436
|
+
function N(t, i, s = t, e) {
|
|
437
|
+
if (i === w) return i;
|
|
438
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
439
|
+
const o = c(i) ? void 0 : i._$litDirective$;
|
|
440
|
+
return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
|
|
431
441
|
}
|
|
432
|
-
class
|
|
442
|
+
class S {
|
|
433
443
|
constructor(t, i) {
|
|
434
444
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
435
445
|
}
|
|
@@ -440,46 +450,43 @@
|
|
|
440
450
|
return this._$AM._$AU;
|
|
441
451
|
}
|
|
442
452
|
u(t) {
|
|
443
|
-
var i;
|
|
444
453
|
const {
|
|
445
454
|
el: {
|
|
446
|
-
content:
|
|
455
|
+
content: i
|
|
447
456
|
},
|
|
448
|
-
parts:
|
|
457
|
+
parts: s
|
|
449
458
|
} = this._$AD,
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
let
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
for (; void 0 !==
|
|
457
|
-
if (
|
|
459
|
+
e = (t?.creationScope ?? r$1).importNode(i, !0);
|
|
460
|
+
E.currentNode = e;
|
|
461
|
+
let h = E.nextNode(),
|
|
462
|
+
o = 0,
|
|
463
|
+
n = 0,
|
|
464
|
+
l = s[0];
|
|
465
|
+
for (; void 0 !== l;) {
|
|
466
|
+
if (o === l.index) {
|
|
458
467
|
let i;
|
|
459
|
-
2 ===
|
|
468
|
+
2 === l.type ? i = new M(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new L(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
460
469
|
}
|
|
461
|
-
|
|
470
|
+
o !== l?.index && (h = E.nextNode(), o++);
|
|
462
471
|
}
|
|
463
|
-
return
|
|
472
|
+
return E.currentNode = r$1, e;
|
|
464
473
|
}
|
|
465
|
-
|
|
474
|
+
p(t) {
|
|
466
475
|
let i = 0;
|
|
467
476
|
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
468
477
|
}
|
|
469
478
|
}
|
|
470
|
-
class
|
|
471
|
-
constructor(t, i, s, e) {
|
|
472
|
-
var o;
|
|
473
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cp = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
|
|
474
|
-
}
|
|
479
|
+
class M {
|
|
475
480
|
get _$AU() {
|
|
476
|
-
|
|
477
|
-
|
|
481
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
482
|
+
}
|
|
483
|
+
constructor(t, i, s, e) {
|
|
484
|
+
this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? !0;
|
|
478
485
|
}
|
|
479
486
|
get parentNode() {
|
|
480
487
|
let t = this._$AA.parentNode;
|
|
481
488
|
const i = this._$AM;
|
|
482
|
-
return void 0 !== i && 11 ===
|
|
489
|
+
return void 0 !== i && 11 === t?.nodeType && (t = i.parentNode), t;
|
|
483
490
|
}
|
|
484
491
|
get startNode() {
|
|
485
492
|
return this._$AA;
|
|
@@ -488,7 +495,7 @@
|
|
|
488
495
|
return this._$AB;
|
|
489
496
|
}
|
|
490
497
|
_$AI(t, i = this) {
|
|
491
|
-
t =
|
|
498
|
+
t = N(this, t, i), c(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : u(t) ? this.T(t) : this._(t);
|
|
492
499
|
}
|
|
493
500
|
k(t) {
|
|
494
501
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -497,104 +504,98 @@
|
|
|
497
504
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
498
505
|
}
|
|
499
506
|
_(t) {
|
|
500
|
-
this._$AH !==
|
|
507
|
+
this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r$1.createTextNode(t)), this._$AH = t;
|
|
501
508
|
}
|
|
502
509
|
g(t) {
|
|
503
|
-
var i;
|
|
504
510
|
const {
|
|
505
|
-
values:
|
|
506
|
-
_$litType$:
|
|
511
|
+
values: i,
|
|
512
|
+
_$litType$: s
|
|
507
513
|
} = t,
|
|
508
|
-
|
|
509
|
-
if (
|
|
510
|
-
const t = new
|
|
511
|
-
|
|
512
|
-
t.
|
|
514
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
|
|
515
|
+
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
516
|
+
const t = new S(e, this),
|
|
517
|
+
s = t.u(this.options);
|
|
518
|
+
t.p(i), this.$(s), this._$AH = t;
|
|
513
519
|
}
|
|
514
520
|
}
|
|
515
521
|
_$AC(t) {
|
|
516
|
-
let i =
|
|
517
|
-
return void 0 === i &&
|
|
522
|
+
let i = A.get(t.strings);
|
|
523
|
+
return void 0 === i && A.set(t.strings, i = new V(t)), i;
|
|
518
524
|
}
|
|
519
525
|
T(t) {
|
|
520
|
-
|
|
526
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
521
527
|
const i = this._$AH;
|
|
522
528
|
let s,
|
|
523
529
|
e = 0;
|
|
524
|
-
for (const
|
|
530
|
+
for (const h of t) e === i.length ? i.push(s = new M(this.k(l()), this.k(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
525
531
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
526
532
|
}
|
|
527
533
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
528
|
-
|
|
529
|
-
for (null === (s = this._$AP) || void 0 === s || s.call(this, !1, !0, i); t && t !== this._$AB;) {
|
|
534
|
+
for (this._$AP?.(!1, !0, i); t && t !== this._$AB;) {
|
|
530
535
|
const i = t.nextSibling;
|
|
531
536
|
t.remove(), t = i;
|
|
532
537
|
}
|
|
533
538
|
}
|
|
534
539
|
setConnected(t) {
|
|
535
|
-
|
|
536
|
-
void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
540
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
537
541
|
}
|
|
538
542
|
}
|
|
539
|
-
class
|
|
540
|
-
constructor(t, i, s, e, o) {
|
|
541
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = A;
|
|
542
|
-
}
|
|
543
|
+
class R {
|
|
543
544
|
get tagName() {
|
|
544
545
|
return this.element.tagName;
|
|
545
546
|
}
|
|
546
547
|
get _$AU() {
|
|
547
548
|
return this._$AM._$AU;
|
|
548
549
|
}
|
|
550
|
+
constructor(t, i, s, e, h) {
|
|
551
|
+
this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = T;
|
|
552
|
+
}
|
|
549
553
|
_$AI(t, i = this, s, e) {
|
|
550
|
-
const
|
|
551
|
-
let
|
|
552
|
-
if (void 0 ===
|
|
554
|
+
const h = this.strings;
|
|
555
|
+
let o = !1;
|
|
556
|
+
if (void 0 === h) t = N(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== w, o && (this._$AH = t);else {
|
|
553
557
|
const e = t;
|
|
554
|
-
let
|
|
555
|
-
for (t =
|
|
558
|
+
let n, r;
|
|
559
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = N(this, e[s + n], i, n), r === w && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === T ? t = T : t !== T && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
556
560
|
}
|
|
557
|
-
|
|
561
|
+
o && !e && this.O(t);
|
|
558
562
|
}
|
|
559
|
-
|
|
560
|
-
t ===
|
|
563
|
+
O(t) {
|
|
564
|
+
t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
561
565
|
}
|
|
562
566
|
}
|
|
563
|
-
class
|
|
567
|
+
class k extends R {
|
|
564
568
|
constructor() {
|
|
565
569
|
super(...arguments), this.type = 3;
|
|
566
570
|
}
|
|
567
|
-
|
|
568
|
-
this.element[this.name] = t ===
|
|
571
|
+
O(t) {
|
|
572
|
+
this.element[this.name] = t === T ? void 0 : t;
|
|
569
573
|
}
|
|
570
574
|
}
|
|
571
|
-
|
|
572
|
-
class L extends k {
|
|
575
|
+
class H extends R {
|
|
573
576
|
constructor() {
|
|
574
577
|
super(...arguments), this.type = 4;
|
|
575
578
|
}
|
|
576
|
-
|
|
577
|
-
|
|
579
|
+
O(t) {
|
|
580
|
+
this.element.toggleAttribute(this.name, !!t && t !== T);
|
|
578
581
|
}
|
|
579
582
|
}
|
|
580
|
-
class
|
|
581
|
-
constructor(t, i, s, e,
|
|
582
|
-
super(t, i, s, e,
|
|
583
|
+
class I extends R {
|
|
584
|
+
constructor(t, i, s, e, h) {
|
|
585
|
+
super(t, i, s, e, h), this.type = 5;
|
|
583
586
|
}
|
|
584
587
|
_$AI(t, i = this) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
o && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
588
|
+
if ((t = N(this, t, i, 0) ?? T) === w) return;
|
|
589
|
+
const s = this._$AH,
|
|
590
|
+
e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
591
|
+
h = t !== T && (s === T || e);
|
|
592
|
+
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
591
593
|
}
|
|
592
594
|
handleEvent(t) {
|
|
593
|
-
|
|
594
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
595
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
|
-
class
|
|
598
|
+
class L {
|
|
598
599
|
constructor(t, i, s) {
|
|
599
600
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
600
601
|
}
|
|
@@ -602,20 +603,19 @@
|
|
|
602
603
|
return this._$AM._$AU;
|
|
603
604
|
}
|
|
604
605
|
_$AI(t) {
|
|
605
|
-
|
|
606
|
+
N(this, t);
|
|
606
607
|
}
|
|
607
608
|
}
|
|
608
|
-
const
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
n._$litPart$ = l = new R(i.insertBefore(u(), t), t, void 0, null != s ? s : {});
|
|
609
|
+
const Z = t.litHtmlPolyfillSupport;
|
|
610
|
+
Z?.(V, M), (t.litHtmlVersions ??= []).push("3.1.0");
|
|
611
|
+
const j = (t, i, s) => {
|
|
612
|
+
const e = s?.renderBefore ?? i;
|
|
613
|
+
let h = e._$litPart$;
|
|
614
|
+
if (void 0 === h) {
|
|
615
|
+
const t = s?.renderBefore ?? null;
|
|
616
|
+
e._$litPart$ = h = new M(i.insertBefore(l(), t), t, void 0, s ?? {});
|
|
617
617
|
}
|
|
618
|
-
return
|
|
618
|
+
return h._$AI(t), h;
|
|
619
619
|
};
|
|
620
620
|
|
|
621
621
|
/**
|
|
@@ -623,42 +623,38 @@
|
|
|
623
623
|
* Copyright 2017 Google LLC
|
|
624
624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
625
625
|
*/
|
|
626
|
-
|
|
627
|
-
class s extends u$1 {
|
|
626
|
+
class s extends b$1 {
|
|
628
627
|
constructor() {
|
|
629
628
|
super(...arguments), this.renderOptions = {
|
|
630
629
|
host: this
|
|
631
630
|
}, this._$Do = void 0;
|
|
632
631
|
}
|
|
633
632
|
createRenderRoot() {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
return null !== (t = (e = this.renderOptions).renderBefore) && void 0 !== t || (e.renderBefore = i.firstChild), i;
|
|
633
|
+
const t = super.createRenderRoot();
|
|
634
|
+
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
637
635
|
}
|
|
638
636
|
update(t) {
|
|
639
637
|
const i = this.render();
|
|
640
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
638
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = j(i, this.renderRoot, this.renderOptions);
|
|
641
639
|
}
|
|
642
640
|
connectedCallback() {
|
|
643
|
-
|
|
644
|
-
super.connectedCallback(), null === (t = this._$Do) || void 0 === t || t.setConnected(!0);
|
|
641
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
645
642
|
}
|
|
646
643
|
disconnectedCallback() {
|
|
647
|
-
|
|
648
|
-
super.disconnectedCallback(), null === (t = this._$Do) || void 0 === t || t.setConnected(!1);
|
|
644
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
649
645
|
}
|
|
650
646
|
render() {
|
|
651
|
-
return
|
|
647
|
+
return w;
|
|
652
648
|
}
|
|
653
649
|
}
|
|
654
|
-
s.
|
|
650
|
+
s._$litElement$ = !0, s[("finalized")] = !0, globalThis.litElementHydrateSupport?.({
|
|
655
651
|
LitElement: s
|
|
656
652
|
});
|
|
657
|
-
const
|
|
658
|
-
|
|
653
|
+
const r = globalThis.litElementPolyfillSupport;
|
|
654
|
+
r?.({
|
|
659
655
|
LitElement: s
|
|
660
656
|
});
|
|
661
|
-
(
|
|
657
|
+
(globalThis.litElementVersions ??= []).push("4.0.2");
|
|
662
658
|
|
|
663
659
|
var noop = {
|
|
664
660
|
value: () => {}
|
|
@@ -3229,7 +3225,6 @@
|
|
|
3229
3225
|
};
|
|
3230
3226
|
/* eslint-enable key-spacing, object-curly-newline */
|
|
3231
3227
|
}
|
|
3232
|
-
|
|
3233
3228
|
static cssBoxShadow(elevation, rotate = false, inverse = false) {
|
|
3234
3229
|
const umbraO = this.shadows.opacityUmbra + this.shadows.opacityBoost;
|
|
3235
3230
|
const penumbraO = this.shadows.opacityPenumbra + this.shadows.opacityBoost;
|
|
@@ -3332,24 +3327,24 @@
|
|
|
3332
3327
|
`;
|
|
3333
3328
|
}
|
|
3334
3329
|
static get styles() {
|
|
3335
|
-
return i$
|
|
3330
|
+
return i$2`
|
|
3336
3331
|
:host {
|
|
3337
|
-
---shadow-0: var(--shadow-0, ${r$
|
|
3338
|
-
---shadow-2: var(--shadow-2, ${r$
|
|
3339
|
-
---shadow-4: var(--shadow-4, ${r$
|
|
3340
|
-
---shadow-8: var(--shadow-8, ${r$
|
|
3341
|
-
|
|
3342
|
-
---color-background: var(--color-background, ${r$
|
|
3343
|
-
---color-border: var(--color-border, ${r$
|
|
3344
|
-
---color-text: var(--color-text, ${r$
|
|
3345
|
-
---color-text-inverse: var(--color-text-inverse, ${r$
|
|
3346
|
-
---color-link: var(--color-link, ${r$
|
|
3347
|
-
---color-element-background: var(--color-element-background, ${r$
|
|
3348
|
-
---color-element-disabled: var(--color-element-disabled, ${r$
|
|
3349
|
-
---color-element-enabled: var(--color-element-enabled, ${r$
|
|
3350
|
-
---color-element-selected: var(--color-element-selected, ${r$
|
|
3351
|
-
---color-element-border: var(--color-element-border, ${r$
|
|
3352
|
-
---color-element-emphasis: var(--color-element-emphasis, ${r$
|
|
3332
|
+
---shadow-0: var(--shadow-0, ${r$3(this.cssBoxShadow(0))});
|
|
3333
|
+
---shadow-2: var(--shadow-2, ${r$3(this.cssBoxShadow(2))});
|
|
3334
|
+
---shadow-4: var(--shadow-4, ${r$3(this.cssBoxShadow(4))});
|
|
3335
|
+
---shadow-8: var(--shadow-8, ${r$3(this.cssBoxShadow(8))});
|
|
3336
|
+
|
|
3337
|
+
---color-background: var(--color-background, ${r$3(this.greys.white)});
|
|
3338
|
+
---color-border: var(--color-border, ${r$3(this.greys.light75)});
|
|
3339
|
+
---color-text: var(--color-text, ${r$3(this.greys.dark75)});
|
|
3340
|
+
---color-text-inverse: var(--color-text-inverse, ${r$3(this.greys.white)});
|
|
3341
|
+
---color-link: var(--color-link, ${r$3(this.greys.dark25)});
|
|
3342
|
+
---color-element-background: var(--color-element-background, ${r$3(this.greys.light75)});
|
|
3343
|
+
---color-element-disabled: var(--color-element-disabled, ${r$3(this.greys.light50)});
|
|
3344
|
+
---color-element-enabled: var(--color-element-enabled, ${r$3(this.greys.dark25)});
|
|
3345
|
+
---color-element-selected: var(--color-element-selected, ${r$3(this.greys.grey)});
|
|
3346
|
+
---color-element-border: var(--color-element-border, ${r$3(this.greys.dark50)});
|
|
3347
|
+
---color-element-emphasis: var(--color-element-emphasis, ${r$3(this.greys.dark75)});
|
|
3353
3348
|
|
|
3354
3349
|
---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
|
|
3355
3350
|
---font-family-math: var(--font-family-math, "Source Serif", serif);
|
|
@@ -3410,7 +3405,7 @@
|
|
|
3410
3405
|
this.disabled = false;
|
|
3411
3406
|
}
|
|
3412
3407
|
static get styles() {
|
|
3413
|
-
return [super.styles, i$
|
|
3408
|
+
return [super.styles, i$2`
|
|
3414
3409
|
:host {
|
|
3415
3410
|
margin: 0.25rem;
|
|
3416
3411
|
}
|
|
@@ -3480,7 +3475,7 @@
|
|
|
3480
3475
|
* Copyright 2018 Google LLC
|
|
3481
3476
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3482
3477
|
*/
|
|
3483
|
-
const
|
|
3478
|
+
const o = o => o ?? T;
|
|
3484
3479
|
|
|
3485
3480
|
class DecidablesSlider extends DecidablesElement {
|
|
3486
3481
|
static get properties() {
|
|
@@ -3535,11 +3530,11 @@
|
|
|
3535
3530
|
this.value = event.target.value;
|
|
3536
3531
|
}
|
|
3537
3532
|
static get styles() {
|
|
3538
|
-
return [super.styles, i$
|
|
3533
|
+
return [super.styles, i$2`
|
|
3539
3534
|
:host {
|
|
3540
|
-
---shadow-2-rotate: var(--shadow-2-rotate, ${r$
|
|
3541
|
-
---shadow-4-rotate: var(--shadow-4-rotate, ${r$
|
|
3542
|
-
---shadow-8-rotate: var(--shadow-8-rotate, ${r$
|
|
3535
|
+
---shadow-2-rotate: var(--shadow-2-rotate, ${r$3(this.cssBoxShadow(2, true, false))});
|
|
3536
|
+
---shadow-4-rotate: var(--shadow-4-rotate, ${r$3(this.cssBoxShadow(4, true, false))});
|
|
3537
|
+
---shadow-8-rotate: var(--shadow-8-rotate, ${r$3(this.cssBoxShadow(8, true, false))});
|
|
3543
3538
|
|
|
3544
3539
|
display: flex;
|
|
3545
3540
|
|
|
@@ -3793,9 +3788,9 @@
|
|
|
3793
3788
|
<slot></slot>
|
|
3794
3789
|
</label>
|
|
3795
3790
|
<div class="range">
|
|
3796
|
-
<input type="range" id="slider" min=${
|
|
3791
|
+
<input type="range" id="slider" min=${o(this.min)} max=${o(this.max)} step=${o(this.step)} .value=${this.value} @change=${this.changed.bind(this)} @input=${this.inputted.bind(this)}>
|
|
3797
3792
|
</div>
|
|
3798
|
-
<decidables-spinner min=${
|
|
3793
|
+
<decidables-spinner min=${o(this.min)} max=${o(this.max)} step=${o(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}></decidables-spinner>
|
|
3799
3794
|
`;
|
|
3800
3795
|
}
|
|
3801
3796
|
}
|
|
@@ -3845,7 +3840,7 @@
|
|
|
3845
3840
|
this.value = event.target.value;
|
|
3846
3841
|
}
|
|
3847
3842
|
static get styles() {
|
|
3848
|
-
return [super.styles, i$
|
|
3843
|
+
return [super.styles, i$2`
|
|
3849
3844
|
:host {
|
|
3850
3845
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
3851
3846
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
@@ -3945,7 +3940,7 @@
|
|
|
3945
3940
|
return x`
|
|
3946
3941
|
<label>
|
|
3947
3942
|
<slot></slot>
|
|
3948
|
-
<input ?disabled=${this.disabled} type="number" min=${
|
|
3943
|
+
<input ?disabled=${this.disabled} type="number" min=${o(this.min)} max=${o(this.max)} step=${o(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}>
|
|
3949
3944
|
</label>
|
|
3950
3945
|
`;
|
|
3951
3946
|
}
|
|
@@ -3984,7 +3979,7 @@
|
|
|
3984
3979
|
}));
|
|
3985
3980
|
}
|
|
3986
3981
|
static get styles() {
|
|
3987
|
-
return [super.styles, i$
|
|
3982
|
+
return [super.styles, i$2`
|
|
3988
3983
|
:host {
|
|
3989
3984
|
display: flex;
|
|
3990
3985
|
|
|
@@ -4136,7 +4131,7 @@
|
|
|
4136
4131
|
this.disabled = false;
|
|
4137
4132
|
}
|
|
4138
4133
|
static get styles() {
|
|
4139
|
-
return [super.styles, i$
|
|
4134
|
+
return [super.styles, i$2`
|
|
4140
4135
|
fieldset {
|
|
4141
4136
|
display: flex;
|
|
4142
4137
|
|
|
@@ -4211,7 +4206,7 @@
|
|
|
4211
4206
|
}));
|
|
4212
4207
|
}
|
|
4213
4208
|
static get styles() {
|
|
4214
|
-
return [super.styles, i$
|
|
4209
|
+
return [super.styles, i$2`
|
|
4215
4210
|
:host {
|
|
4216
4211
|
display: flex;
|
|
4217
4212
|
}
|