@decidables/decidables-elements 0.3.5 → 0.4.0
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/lib/decidablesElements.esm.js +347 -798
- package/lib/decidablesElements.esm.js.map +1 -1
- package/lib/decidablesElements.esm.min.js +61 -63
- package/lib/decidablesElements.esm.min.js.map +1 -1
- package/lib/decidablesElements.umd.js +347 -797
- package/lib/decidablesElements.umd.js.map +1 -1
- package/lib/decidablesElements.umd.min.js +61 -63
- package/lib/decidablesElements.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/decidables-element.js +54 -1
- package/src/index.js +7 -0
- package/src/mixin-resizeable.js +51 -0
- package/src/spinner.js +15 -0
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
* Copyright 2019 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const t$
|
|
13
|
-
e$
|
|
14
|
-
s$
|
|
15
|
-
n$
|
|
16
|
-
let o$
|
|
12
|
+
const t$1 = window,
|
|
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$3 = Symbol(),
|
|
15
|
+
n$3 = new WeakMap();
|
|
16
|
+
let o$3 = class o {
|
|
17
17
|
constructor(t, e, n) {
|
|
18
|
-
if (this._$cssResult$ = !0, n !== s$
|
|
18
|
+
if (this._$cssResult$ = !0, n !== s$3) 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() {
|
|
22
22
|
let t = this.o;
|
|
23
23
|
const s = this.t;
|
|
24
|
-
if (e$
|
|
24
|
+
if (e$2 && void 0 === t) {
|
|
25
25
|
const e = void 0 !== s && 1 === s.length;
|
|
26
|
-
e && (t = n$
|
|
26
|
+
e && (t = n$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && n$3.set(s, t));
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
@@ -31,608 +31,26 @@
|
|
|
31
31
|
return this.cssText;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const r$
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const n = document.createElement("style"),
|
|
38
|
-
o = t$3.litNonce;
|
|
39
|
-
void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
c$2 = e$5 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
43
|
-
let e = "";
|
|
44
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
45
|
-
return r$5(e);
|
|
46
|
-
})(t) : t;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @license
|
|
50
|
-
* Copyright 2017 Google LLC
|
|
51
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/
|
|
53
|
-
var s$5;
|
|
54
|
-
const e$4 = window,
|
|
55
|
-
r$4 = e$4.trustedTypes,
|
|
56
|
-
h$3 = r$4 ? r$4.emptyScript : "",
|
|
57
|
-
o$5 = e$4.reactiveElementPolyfillSupport,
|
|
58
|
-
n$5 = {
|
|
59
|
-
toAttribute(t, i) {
|
|
60
|
-
switch (i) {
|
|
61
|
-
case Boolean:
|
|
62
|
-
t = t ? h$3 : null;
|
|
63
|
-
break;
|
|
64
|
-
case Object:
|
|
65
|
-
case Array:
|
|
66
|
-
t = null == t ? t : JSON.stringify(t);
|
|
67
|
-
}
|
|
68
|
-
return t;
|
|
69
|
-
},
|
|
70
|
-
fromAttribute(t, i) {
|
|
71
|
-
let s = t;
|
|
72
|
-
switch (i) {
|
|
73
|
-
case Boolean:
|
|
74
|
-
s = null !== t;
|
|
75
|
-
break;
|
|
76
|
-
case Number:
|
|
77
|
-
s = null === t ? null : Number(t);
|
|
78
|
-
break;
|
|
79
|
-
case Object:
|
|
80
|
-
case Array:
|
|
81
|
-
try {
|
|
82
|
-
s = JSON.parse(t);
|
|
83
|
-
} catch (t) {
|
|
84
|
-
s = null;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return s;
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
a$3 = (t, i) => i !== t && (i == i || t == t),
|
|
91
|
-
l$5 = {
|
|
92
|
-
attribute: !0,
|
|
93
|
-
type: String,
|
|
94
|
-
converter: n$5,
|
|
95
|
-
reflect: !1,
|
|
96
|
-
hasChanged: a$3
|
|
97
|
-
};
|
|
98
|
-
let d$2 = class d extends HTMLElement {
|
|
99
|
-
constructor() {
|
|
100
|
-
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
101
|
-
}
|
|
102
|
-
static addInitializer(t) {
|
|
103
|
-
var i;
|
|
104
|
-
this.finalize(), (null !== (i = this.h) && void 0 !== i ? i : this.h = []).push(t);
|
|
105
|
-
}
|
|
106
|
-
static get observedAttributes() {
|
|
107
|
-
this.finalize();
|
|
108
|
-
const t = [];
|
|
109
|
-
return this.elementProperties.forEach((i, s) => {
|
|
110
|
-
const e = this._$Ep(s, i);
|
|
111
|
-
void 0 !== e && (this._$Ev.set(e, s), t.push(e));
|
|
112
|
-
}), t;
|
|
113
|
-
}
|
|
114
|
-
static createProperty(t, i = l$5) {
|
|
115
|
-
if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
116
|
-
const s = "symbol" == typeof t ? Symbol() : "__" + t,
|
|
117
|
-
e = this.getPropertyDescriptor(t, s, i);
|
|
118
|
-
void 0 !== e && Object.defineProperty(this.prototype, t, e);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
static getPropertyDescriptor(t, i, s) {
|
|
122
|
-
return {
|
|
123
|
-
get() {
|
|
124
|
-
return this[i];
|
|
125
|
-
},
|
|
126
|
-
set(e) {
|
|
127
|
-
const r = this[t];
|
|
128
|
-
this[i] = e, this.requestUpdate(t, r, s);
|
|
129
|
-
},
|
|
130
|
-
configurable: !0,
|
|
131
|
-
enumerable: !0
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
static getPropertyOptions(t) {
|
|
135
|
-
return this.elementProperties.get(t) || l$5;
|
|
136
|
-
}
|
|
137
|
-
static finalize() {
|
|
138
|
-
if (this.hasOwnProperty("finalized")) return !1;
|
|
139
|
-
this.finalized = !0;
|
|
140
|
-
const t = Object.getPrototypeOf(this);
|
|
141
|
-
if (t.finalize(), void 0 !== t.h && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map(), this.hasOwnProperty("properties")) {
|
|
142
|
-
const t = this.properties,
|
|
143
|
-
i = [...Object.getOwnPropertyNames(t), ...Object.getOwnPropertySymbols(t)];
|
|
144
|
-
for (const s of i) this.createProperty(s, t[s]);
|
|
145
|
-
}
|
|
146
|
-
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
|
147
|
-
}
|
|
148
|
-
static finalizeStyles(i) {
|
|
149
|
-
const s = [];
|
|
150
|
-
if (Array.isArray(i)) {
|
|
151
|
-
const e = new Set(i.flat(1 / 0).reverse());
|
|
152
|
-
for (const i of e) s.unshift(c$2(i));
|
|
153
|
-
} else void 0 !== i && s.push(c$2(i));
|
|
154
|
-
return s;
|
|
155
|
-
}
|
|
156
|
-
static _$Ep(t, i) {
|
|
157
|
-
const s = i.attribute;
|
|
158
|
-
return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
159
|
-
}
|
|
160
|
-
u() {
|
|
161
|
-
var t;
|
|
162
|
-
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));
|
|
163
|
-
}
|
|
164
|
-
addController(t) {
|
|
165
|
-
var i, s;
|
|
166
|
-
(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));
|
|
167
|
-
}
|
|
168
|
-
removeController(t) {
|
|
169
|
-
var i;
|
|
170
|
-
null === (i = this._$ES) || void 0 === i || i.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
171
|
-
}
|
|
172
|
-
_$Eg() {
|
|
173
|
-
this.constructor.elementProperties.forEach((t, i) => {
|
|
174
|
-
this.hasOwnProperty(i) && (this._$Ei.set(i, this[i]), delete this[i]);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
createRenderRoot() {
|
|
178
|
-
var t;
|
|
179
|
-
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
180
|
-
return S$3(s, this.constructor.elementStyles), s;
|
|
181
|
-
}
|
|
182
|
-
connectedCallback() {
|
|
183
|
-
var t;
|
|
184
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
185
|
-
var i;
|
|
186
|
-
return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
enableUpdating(t) {}
|
|
190
|
-
disconnectedCallback() {
|
|
191
|
-
var t;
|
|
192
|
-
null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
193
|
-
var i;
|
|
194
|
-
return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
attributeChangedCallback(t, i, s) {
|
|
198
|
-
this._$AK(t, s);
|
|
199
|
-
}
|
|
200
|
-
_$EO(t, i, s = l$5) {
|
|
201
|
-
var e;
|
|
202
|
-
const r = this.constructor._$Ep(t, s);
|
|
203
|
-
if (void 0 !== r && !0 === s.reflect) {
|
|
204
|
-
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$5).toAttribute(i, s.type);
|
|
205
|
-
this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
_$AK(t, i) {
|
|
209
|
-
var s;
|
|
210
|
-
const e = this.constructor,
|
|
211
|
-
r = e._$Ev.get(t);
|
|
212
|
-
if (void 0 !== r && this._$El !== r) {
|
|
213
|
-
const t = e.getPropertyOptions(r),
|
|
214
|
-
h = "function" == typeof t.converter ? {
|
|
215
|
-
fromAttribute: t.converter
|
|
216
|
-
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$5;
|
|
217
|
-
this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
requestUpdate(t, i, s) {
|
|
221
|
-
let e = !0;
|
|
222
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$3)(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());
|
|
223
|
-
}
|
|
224
|
-
async _$Ej() {
|
|
225
|
-
this.isUpdatePending = !0;
|
|
226
|
-
try {
|
|
227
|
-
await this._$E_;
|
|
228
|
-
} catch (t) {
|
|
229
|
-
Promise.reject(t);
|
|
230
|
-
}
|
|
231
|
-
const t = this.scheduleUpdate();
|
|
232
|
-
return null != t && (await t), !this.isUpdatePending;
|
|
233
|
-
}
|
|
234
|
-
scheduleUpdate() {
|
|
235
|
-
return this.performUpdate();
|
|
236
|
-
}
|
|
237
|
-
performUpdate() {
|
|
238
|
-
var t;
|
|
239
|
-
if (!this.isUpdatePending) return;
|
|
240
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t, i) => this[i] = t), this._$Ei = void 0);
|
|
241
|
-
let i = !1;
|
|
242
|
-
const s = this._$AL;
|
|
243
|
-
try {
|
|
244
|
-
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
245
|
-
var i;
|
|
246
|
-
return null === (i = t.hostUpdate) || void 0 === i ? void 0 : i.call(t);
|
|
247
|
-
}), this.update(s)) : this._$Ek();
|
|
248
|
-
} catch (t) {
|
|
249
|
-
throw i = !1, this._$Ek(), t;
|
|
250
|
-
}
|
|
251
|
-
i && this._$AE(s);
|
|
252
|
-
}
|
|
253
|
-
willUpdate(t) {}
|
|
254
|
-
_$AE(t) {
|
|
255
|
-
var i;
|
|
256
|
-
null === (i = this._$ES) || void 0 === i || i.forEach(t => {
|
|
257
|
-
var i;
|
|
258
|
-
return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
|
|
259
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
260
|
-
}
|
|
261
|
-
_$Ek() {
|
|
262
|
-
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
263
|
-
}
|
|
264
|
-
get updateComplete() {
|
|
265
|
-
return this.getUpdateComplete();
|
|
266
|
-
}
|
|
267
|
-
getUpdateComplete() {
|
|
268
|
-
return this._$E_;
|
|
269
|
-
}
|
|
270
|
-
shouldUpdate(t) {
|
|
271
|
-
return !0;
|
|
272
|
-
}
|
|
273
|
-
update(t) {
|
|
274
|
-
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$EO(i, this[i], t)), this._$EC = void 0), this._$Ek();
|
|
275
|
-
}
|
|
276
|
-
updated(t) {}
|
|
277
|
-
firstUpdated(t) {}
|
|
278
|
-
};
|
|
279
|
-
d$2.finalized = !0, d$2.elementProperties = new Map(), d$2.elementStyles = [], d$2.shadowRootOptions = {
|
|
280
|
-
mode: "open"
|
|
281
|
-
}, null == o$5 || o$5({
|
|
282
|
-
ReactiveElement: d$2
|
|
283
|
-
}), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* @license
|
|
287
|
-
* Copyright 2017 Google LLC
|
|
288
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
|
-
*/
|
|
290
|
-
var t$2;
|
|
291
|
-
const i$2 = window,
|
|
292
|
-
s$4 = i$2.trustedTypes,
|
|
293
|
-
e$3 = s$4 ? s$4.createPolicy("lit-html", {
|
|
294
|
-
createHTML: t => t
|
|
295
|
-
}) : void 0,
|
|
296
|
-
o$4 = "$lit$",
|
|
297
|
-
n$4 = `lit$${(Math.random() + "").slice(9)}$`,
|
|
298
|
-
l$4 = "?" + n$4,
|
|
299
|
-
h$2 = `<${l$4}>`,
|
|
300
|
-
r$3 = document,
|
|
301
|
-
u$1 = () => r$3.createComment(""),
|
|
302
|
-
d$1 = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
303
|
-
c$1 = Array.isArray,
|
|
304
|
-
v$1 = t => c$1(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
|
|
305
|
-
a$2 = "[ \t\n\f\r]",
|
|
306
|
-
f$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
307
|
-
_$1 = /-->/g,
|
|
308
|
-
m$1 = />/g,
|
|
309
|
-
p$1 = RegExp(`>|${a$2}(?:([^\\s"'>=/]+)(${a$2}*=${a$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
310
|
-
g$1 = /'/g,
|
|
311
|
-
$$1 = /"/g,
|
|
312
|
-
y$1 = /^(?:script|style|textarea|title)$/i,
|
|
313
|
-
T$1 = Symbol.for("lit-noChange"),
|
|
314
|
-
A$1 = Symbol.for("lit-nothing"),
|
|
315
|
-
E$1 = new WeakMap(),
|
|
316
|
-
C$1 = r$3.createTreeWalker(r$3, 129, null, !1);
|
|
317
|
-
function P$1(t, i) {
|
|
318
|
-
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
319
|
-
return void 0 !== e$3 ? e$3.createHTML(i) : i;
|
|
320
|
-
}
|
|
321
|
-
const V$1 = (t, i) => {
|
|
322
|
-
const s = t.length - 1,
|
|
323
|
-
e = [];
|
|
324
|
-
let l,
|
|
325
|
-
r = 2 === i ? "<svg>" : "",
|
|
326
|
-
u = f$1;
|
|
327
|
-
for (let i = 0; i < s; i++) {
|
|
328
|
-
const s = t[i];
|
|
329
|
-
let d,
|
|
330
|
-
c,
|
|
331
|
-
v = -1,
|
|
332
|
-
a = 0;
|
|
333
|
-
for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f$1 ? "!--" === c[1] ? u = _$1 : void 0 !== c[1] ? u = m$1 : void 0 !== c[2] ? (y$1.test(c[2]) && (l = RegExp("</" + c[2], "g")), u = p$1) : void 0 !== c[3] && (u = p$1) : u === p$1 ? ">" === c[0] ? (u = null != l ? l : f$1, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, d = c[1], u = void 0 === c[3] ? p$1 : '"' === c[3] ? $$1 : g$1) : u === $$1 || u === g$1 ? u = p$1 : u === _$1 || u === m$1 ? u = f$1 : (u = p$1, l = void 0);
|
|
334
|
-
const w = u === p$1 && t[i + 1].startsWith("/>") ? " " : "";
|
|
335
|
-
r += u === f$1 ? s + h$2 : v >= 0 ? (e.push(d), s.slice(0, v) + o$4 + s.slice(v) + n$4 + w) : s + n$4 + (-2 === v ? (e.push(void 0), i) : w);
|
|
336
|
-
}
|
|
337
|
-
return [P$1(t, r + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), e];
|
|
338
|
-
};
|
|
339
|
-
let N$1 = class N {
|
|
340
|
-
constructor({
|
|
341
|
-
strings: t,
|
|
342
|
-
_$litType$: i
|
|
343
|
-
}, e) {
|
|
344
|
-
let h;
|
|
345
|
-
this.parts = [];
|
|
346
|
-
let r = 0,
|
|
347
|
-
d = 0;
|
|
348
|
-
const c = t.length - 1,
|
|
349
|
-
v = this.parts,
|
|
350
|
-
[a, f] = V$1(t, i);
|
|
351
|
-
if (this.el = N.createElement(a, e), C$1.currentNode = this.el.content, 2 === i) {
|
|
352
|
-
const t = this.el.content,
|
|
353
|
-
i = t.firstChild;
|
|
354
|
-
i.remove(), t.append(...i.childNodes);
|
|
355
|
-
}
|
|
356
|
-
for (; null !== (h = C$1.nextNode()) && v.length < c;) {
|
|
357
|
-
if (1 === h.nodeType) {
|
|
358
|
-
if (h.hasAttributes()) {
|
|
359
|
-
const t = [];
|
|
360
|
-
for (const i of h.getAttributeNames()) if (i.endsWith(o$4) || i.startsWith(n$4)) {
|
|
361
|
-
const s = f[d++];
|
|
362
|
-
if (t.push(i), void 0 !== s) {
|
|
363
|
-
const t = h.getAttribute(s.toLowerCase() + o$4).split(n$4),
|
|
364
|
-
i = /([.?@])?(.*)/.exec(s);
|
|
365
|
-
v.push({
|
|
366
|
-
type: 1,
|
|
367
|
-
index: r,
|
|
368
|
-
name: i[2],
|
|
369
|
-
strings: t,
|
|
370
|
-
ctor: "." === i[1] ? H$1 : "?" === i[1] ? L$1 : "@" === i[1] ? z$1 : k$1
|
|
371
|
-
});
|
|
372
|
-
} else v.push({
|
|
373
|
-
type: 6,
|
|
374
|
-
index: r
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
for (const i of t) h.removeAttribute(i);
|
|
378
|
-
}
|
|
379
|
-
if (y$1.test(h.tagName)) {
|
|
380
|
-
const t = h.textContent.split(n$4),
|
|
381
|
-
i = t.length - 1;
|
|
382
|
-
if (i > 0) {
|
|
383
|
-
h.textContent = s$4 ? s$4.emptyScript : "";
|
|
384
|
-
for (let s = 0; s < i; s++) h.append(t[s], u$1()), C$1.nextNode(), v.push({
|
|
385
|
-
type: 2,
|
|
386
|
-
index: ++r
|
|
387
|
-
});
|
|
388
|
-
h.append(t[i], u$1());
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
} else if (8 === h.nodeType) if (h.data === l$4) v.push({
|
|
392
|
-
type: 2,
|
|
393
|
-
index: r
|
|
394
|
-
});else {
|
|
395
|
-
let t = -1;
|
|
396
|
-
for (; -1 !== (t = h.data.indexOf(n$4, t + 1));) v.push({
|
|
397
|
-
type: 7,
|
|
398
|
-
index: r
|
|
399
|
-
}), t += n$4.length - 1;
|
|
400
|
-
}
|
|
401
|
-
r++;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
static createElement(t, i) {
|
|
405
|
-
const s = r$3.createElement("template");
|
|
406
|
-
return s.innerHTML = t, s;
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
function S$2(t, i, s = t, e) {
|
|
410
|
-
var o, n, l, h;
|
|
411
|
-
if (i === T$1) return i;
|
|
412
|
-
let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
|
|
413
|
-
const u = d$1(i) ? void 0 : i._$litDirective$;
|
|
414
|
-
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$2(t, r._$AS(t, i.values), r, e)), i;
|
|
415
|
-
}
|
|
416
|
-
let M$1 = class M {
|
|
417
|
-
constructor(t, i) {
|
|
418
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
419
|
-
}
|
|
420
|
-
get parentNode() {
|
|
421
|
-
return this._$AM.parentNode;
|
|
422
|
-
}
|
|
423
|
-
get _$AU() {
|
|
424
|
-
return this._$AM._$AU;
|
|
425
|
-
}
|
|
426
|
-
u(t) {
|
|
427
|
-
var i;
|
|
428
|
-
const {
|
|
429
|
-
el: {
|
|
430
|
-
content: s
|
|
431
|
-
},
|
|
432
|
-
parts: e
|
|
433
|
-
} = this._$AD,
|
|
434
|
-
o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : r$3).importNode(s, !0);
|
|
435
|
-
C$1.currentNode = o;
|
|
436
|
-
let n = C$1.nextNode(),
|
|
437
|
-
l = 0,
|
|
438
|
-
h = 0,
|
|
439
|
-
u = e[0];
|
|
440
|
-
for (; void 0 !== u;) {
|
|
441
|
-
if (l === u.index) {
|
|
442
|
-
let i;
|
|
443
|
-
2 === u.type ? i = new R$1(n, n.nextSibling, this, t) : 1 === u.type ? i = new u.ctor(n, u.name, u.strings, this, t) : 6 === u.type && (i = new Z(n, this, t)), this._$AV.push(i), u = e[++h];
|
|
444
|
-
}
|
|
445
|
-
l !== (null == u ? void 0 : u.index) && (n = C$1.nextNode(), l++);
|
|
446
|
-
}
|
|
447
|
-
return C$1.currentNode = r$3, o;
|
|
448
|
-
}
|
|
449
|
-
v(t) {
|
|
450
|
-
let i = 0;
|
|
451
|
-
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++;
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
let R$1 = class R {
|
|
455
|
-
constructor(t, i, s, e) {
|
|
456
|
-
var o;
|
|
457
|
-
this.type = 2, this._$AH = A$1, 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;
|
|
458
|
-
}
|
|
459
|
-
get _$AU() {
|
|
460
|
-
var t, i;
|
|
461
|
-
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cp;
|
|
462
|
-
}
|
|
463
|
-
get parentNode() {
|
|
464
|
-
let t = this._$AA.parentNode;
|
|
465
|
-
const i = this._$AM;
|
|
466
|
-
return void 0 !== i && 11 === (null == t ? void 0 : t.nodeType) && (t = i.parentNode), t;
|
|
467
|
-
}
|
|
468
|
-
get startNode() {
|
|
469
|
-
return this._$AA;
|
|
470
|
-
}
|
|
471
|
-
get endNode() {
|
|
472
|
-
return this._$AB;
|
|
473
|
-
}
|
|
474
|
-
_$AI(t, i = this) {
|
|
475
|
-
t = S$2(this, t, i), d$1(t) ? t === A$1 || null == t || "" === t ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : t !== this._$AH && t !== T$1 && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : v$1(t) ? this.T(t) : this._(t);
|
|
476
|
-
}
|
|
477
|
-
k(t) {
|
|
478
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
479
|
-
}
|
|
480
|
-
$(t) {
|
|
481
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
482
|
-
}
|
|
483
|
-
_(t) {
|
|
484
|
-
this._$AH !== A$1 && d$1(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r$3.createTextNode(t)), this._$AH = t;
|
|
485
|
-
}
|
|
486
|
-
g(t) {
|
|
487
|
-
var i;
|
|
488
|
-
const {
|
|
489
|
-
values: s,
|
|
490
|
-
_$litType$: e
|
|
491
|
-
} = t,
|
|
492
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = N$1.createElement(P$1(e.h, e.h[0]), this.options)), e);
|
|
493
|
-
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.v(s);else {
|
|
494
|
-
const t = new M$1(o, this),
|
|
495
|
-
i = t.u(this.options);
|
|
496
|
-
t.v(s), this.$(i), this._$AH = t;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
_$AC(t) {
|
|
500
|
-
let i = E$1.get(t.strings);
|
|
501
|
-
return void 0 === i && E$1.set(t.strings, i = new N$1(t)), i;
|
|
502
|
-
}
|
|
503
|
-
T(t) {
|
|
504
|
-
c$1(this._$AH) || (this._$AH = [], this._$AR());
|
|
505
|
-
const i = this._$AH;
|
|
506
|
-
let s,
|
|
507
|
-
e = 0;
|
|
508
|
-
for (const o of t) e === i.length ? i.push(s = new R(this.k(u$1()), this.k(u$1()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
509
|
-
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
510
|
-
}
|
|
511
|
-
_$AR(t = this._$AA.nextSibling, i) {
|
|
512
|
-
var s;
|
|
513
|
-
for (null === (s = this._$AP) || void 0 === s || s.call(this, !1, !0, i); t && t !== this._$AB;) {
|
|
514
|
-
const i = t.nextSibling;
|
|
515
|
-
t.remove(), t = i;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
setConnected(t) {
|
|
519
|
-
var i;
|
|
520
|
-
void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
let k$1 = class k {
|
|
524
|
-
constructor(t, i, s, e, o) {
|
|
525
|
-
this.type = 1, this._$AH = A$1, 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$1;
|
|
526
|
-
}
|
|
527
|
-
get tagName() {
|
|
528
|
-
return this.element.tagName;
|
|
529
|
-
}
|
|
530
|
-
get _$AU() {
|
|
531
|
-
return this._$AM._$AU;
|
|
532
|
-
}
|
|
533
|
-
_$AI(t, i = this, s, e) {
|
|
534
|
-
const o = this.strings;
|
|
535
|
-
let n = !1;
|
|
536
|
-
if (void 0 === o) t = S$2(this, t, i, 0), n = !d$1(t) || t !== this._$AH && t !== T$1, n && (this._$AH = t);else {
|
|
537
|
-
const e = t;
|
|
538
|
-
let l, h;
|
|
539
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h = S$2(this, e[s + l], i, l), h === T$1 && (h = this._$AH[l]), n || (n = !d$1(h) || h !== this._$AH[l]), h === A$1 ? t = A$1 : t !== A$1 && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
540
|
-
}
|
|
541
|
-
n && !e && this.j(t);
|
|
542
|
-
}
|
|
543
|
-
j(t) {
|
|
544
|
-
t === A$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
let H$1 = class H extends k$1 {
|
|
548
|
-
constructor() {
|
|
549
|
-
super(...arguments), this.type = 3;
|
|
550
|
-
}
|
|
551
|
-
j(t) {
|
|
552
|
-
this.element[this.name] = t === A$1 ? void 0 : t;
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
const I$1 = s$4 ? s$4.emptyScript : "";
|
|
556
|
-
let L$1 = class L extends k$1 {
|
|
557
|
-
constructor() {
|
|
558
|
-
super(...arguments), this.type = 4;
|
|
559
|
-
}
|
|
560
|
-
j(t) {
|
|
561
|
-
t && t !== A$1 ? this.element.setAttribute(this.name, I$1) : this.element.removeAttribute(this.name);
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
let z$1 = class z extends k$1 {
|
|
565
|
-
constructor(t, i, s, e, o) {
|
|
566
|
-
super(t, i, s, e, o), this.type = 5;
|
|
567
|
-
}
|
|
568
|
-
_$AI(t, i = this) {
|
|
569
|
-
var s;
|
|
570
|
-
if ((t = null !== (s = S$2(this, t, i, 0)) && void 0 !== s ? s : A$1) === T$1) return;
|
|
571
|
-
const e = this._$AH,
|
|
572
|
-
o = t === A$1 && e !== A$1 || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
573
|
-
n = t !== A$1 && (e === A$1 || o);
|
|
574
|
-
o && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
575
|
-
}
|
|
576
|
-
handleEvent(t) {
|
|
577
|
-
var i, s;
|
|
578
|
-
"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);
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
class Z {
|
|
582
|
-
constructor(t, i, s) {
|
|
583
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
584
|
-
}
|
|
585
|
-
get _$AU() {
|
|
586
|
-
return this._$AM._$AU;
|
|
587
|
-
}
|
|
588
|
-
_$AI(t) {
|
|
589
|
-
S$2(this, t);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
const B$1 = i$2.litHtmlPolyfillSupport;
|
|
593
|
-
null == B$1 || B$1(N$1, R$1), (null !== (t$2 = i$2.litHtmlVersions) && void 0 !== t$2 ? t$2 : i$2.litHtmlVersions = []).push("2.8.0");
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* @license
|
|
597
|
-
* Copyright 2019 Google LLC
|
|
598
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
599
|
-
*/
|
|
600
|
-
const t$1 = window.ShadowRoot && (void 0 === window.ShadyCSS || window.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
601
|
-
e$2 = Symbol(),
|
|
602
|
-
n$3 = new Map();
|
|
603
|
-
let s$3 = class s {
|
|
604
|
-
constructor(t, n) {
|
|
605
|
-
if (this._$cssResult$ = !0, n !== e$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
606
|
-
this.cssText = t;
|
|
607
|
-
}
|
|
608
|
-
get styleSheet() {
|
|
609
|
-
let e = n$3.get(this.cssText);
|
|
610
|
-
return t$1 && void 0 === e && (n$3.set(this.cssText, e = new CSSStyleSheet()), e.replaceSync(this.cssText)), e;
|
|
611
|
-
}
|
|
612
|
-
toString() {
|
|
613
|
-
return this.cssText;
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
const o$3 = t => new s$3("string" == typeof t ? t : t + "", e$2),
|
|
617
|
-
r$2 = (t, ...n) => {
|
|
618
|
-
const o = 1 === t.length ? t[0] : n.reduce((e, n, s) => e + (t => {
|
|
34
|
+
const r$2 = t => new o$3("string" == typeof t ? t : t + "", void 0, s$3),
|
|
35
|
+
i$1 = (t, ...e) => {
|
|
36
|
+
const n = 1 === t.length ? t[0] : e.reduce((e, s, n) => e + (t => {
|
|
619
37
|
if (!0 === t._$cssResult$) return t.cssText;
|
|
620
38
|
if ("number" == typeof t) return t;
|
|
621
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.");
|
|
622
|
-
})(
|
|
623
|
-
return new
|
|
40
|
+
})(s) + t[n + 1], t[0]);
|
|
41
|
+
return new o$3(n, t, s$3);
|
|
624
42
|
},
|
|
625
|
-
|
|
626
|
-
|
|
43
|
+
S$1 = (s, n) => {
|
|
44
|
+
e$2 ? s.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(e => {
|
|
627
45
|
const n = document.createElement("style"),
|
|
628
|
-
|
|
629
|
-
void 0 !==
|
|
46
|
+
o = t$1.litNonce;
|
|
47
|
+
void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
630
48
|
});
|
|
631
49
|
},
|
|
632
|
-
|
|
50
|
+
c$1 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
633
51
|
let e = "";
|
|
634
|
-
for (const
|
|
635
|
-
return
|
|
52
|
+
for (const s of t.cssRules) e += s.cssText;
|
|
53
|
+
return r$2(e);
|
|
636
54
|
})(t) : t;
|
|
637
55
|
|
|
638
56
|
/**
|
|
@@ -641,14 +59,15 @@
|
|
|
641
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
642
60
|
*/
|
|
643
61
|
var s$2;
|
|
644
|
-
const e$1 = window
|
|
645
|
-
r$1 = e$1
|
|
646
|
-
h$1 =
|
|
647
|
-
o$2 =
|
|
62
|
+
const e$1 = window,
|
|
63
|
+
r$1 = e$1.trustedTypes,
|
|
64
|
+
h$1 = r$1 ? r$1.emptyScript : "",
|
|
65
|
+
o$2 = e$1.reactiveElementPolyfillSupport,
|
|
66
|
+
n$2 = {
|
|
648
67
|
toAttribute(t, i) {
|
|
649
68
|
switch (i) {
|
|
650
69
|
case Boolean:
|
|
651
|
-
t = t ?
|
|
70
|
+
t = t ? h$1 : null;
|
|
652
71
|
break;
|
|
653
72
|
case Object:
|
|
654
73
|
case Array:
|
|
@@ -676,28 +95,29 @@
|
|
|
676
95
|
return s;
|
|
677
96
|
}
|
|
678
97
|
},
|
|
679
|
-
|
|
98
|
+
a$1 = (t, i) => i !== t && (i == i || t == t),
|
|
680
99
|
l$3 = {
|
|
681
100
|
attribute: !0,
|
|
682
101
|
type: String,
|
|
683
|
-
converter:
|
|
102
|
+
converter: n$2,
|
|
684
103
|
reflect: !1,
|
|
685
|
-
hasChanged:
|
|
686
|
-
}
|
|
687
|
-
|
|
104
|
+
hasChanged: a$1
|
|
105
|
+
},
|
|
106
|
+
d$1 = "finalized";
|
|
107
|
+
let u$1 = class u extends HTMLElement {
|
|
688
108
|
constructor() {
|
|
689
|
-
super(), this._$
|
|
109
|
+
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
|
690
110
|
}
|
|
691
111
|
static addInitializer(t) {
|
|
692
112
|
var i;
|
|
693
|
-
null !== (i = this.
|
|
113
|
+
this.finalize(), (null !== (i = this.h) && void 0 !== i ? i : this.h = []).push(t);
|
|
694
114
|
}
|
|
695
115
|
static get observedAttributes() {
|
|
696
116
|
this.finalize();
|
|
697
117
|
const t = [];
|
|
698
118
|
return this.elementProperties.forEach((i, s) => {
|
|
699
|
-
const e = this._$
|
|
700
|
-
void 0 !== e && (this._$
|
|
119
|
+
const e = this._$Ep(s, i);
|
|
120
|
+
void 0 !== e && (this._$Ev.set(e, s), t.push(e));
|
|
701
121
|
}), t;
|
|
702
122
|
}
|
|
703
123
|
static createProperty(t, i = l$3) {
|
|
@@ -724,10 +144,10 @@
|
|
|
724
144
|
return this.elementProperties.get(t) || l$3;
|
|
725
145
|
}
|
|
726
146
|
static finalize() {
|
|
727
|
-
if (this.hasOwnProperty(
|
|
728
|
-
this
|
|
147
|
+
if (this.hasOwnProperty(d$1)) return !1;
|
|
148
|
+
this[d$1] = !0;
|
|
729
149
|
const t = Object.getPrototypeOf(this);
|
|
730
|
-
if (t.finalize(), this.elementProperties = new Map(t.elementProperties), 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")) {
|
|
731
151
|
const t = this.properties,
|
|
732
152
|
i = [...Object.getOwnPropertyNames(t), ...Object.getOwnPropertySymbols(t)];
|
|
733
153
|
for (const s of i) this.createProperty(s, t[s]);
|
|
@@ -738,39 +158,39 @@
|
|
|
738
158
|
const s = [];
|
|
739
159
|
if (Array.isArray(i)) {
|
|
740
160
|
const e = new Set(i.flat(1 / 0).reverse());
|
|
741
|
-
for (const i of e) s.unshift(
|
|
742
|
-
} else void 0 !== i && s.push(
|
|
161
|
+
for (const i of e) s.unshift(c$1(i));
|
|
162
|
+
} else void 0 !== i && s.push(c$1(i));
|
|
743
163
|
return s;
|
|
744
164
|
}
|
|
745
|
-
static _$
|
|
165
|
+
static _$Ep(t, i) {
|
|
746
166
|
const s = i.attribute;
|
|
747
167
|
return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
|
|
748
168
|
}
|
|
749
|
-
|
|
169
|
+
_$Eu() {
|
|
750
170
|
var t;
|
|
751
|
-
this._$
|
|
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));
|
|
752
172
|
}
|
|
753
173
|
addController(t) {
|
|
754
174
|
var i, s;
|
|
755
|
-
(null !== (i = this._$
|
|
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));
|
|
756
176
|
}
|
|
757
177
|
removeController(t) {
|
|
758
178
|
var i;
|
|
759
|
-
null === (i = this._$
|
|
179
|
+
null === (i = this._$ES) || void 0 === i || i.splice(this._$ES.indexOf(t) >>> 0, 1);
|
|
760
180
|
}
|
|
761
|
-
_$
|
|
181
|
+
_$Eg() {
|
|
762
182
|
this.constructor.elementProperties.forEach((t, i) => {
|
|
763
|
-
this.hasOwnProperty(i) && (this._$
|
|
183
|
+
this.hasOwnProperty(i) && (this._$Ei.set(i, this[i]), delete this[i]);
|
|
764
184
|
});
|
|
765
185
|
}
|
|
766
186
|
createRenderRoot() {
|
|
767
187
|
var t;
|
|
768
188
|
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
769
|
-
return
|
|
189
|
+
return S$1(s, this.constructor.elementStyles), s;
|
|
770
190
|
}
|
|
771
191
|
connectedCallback() {
|
|
772
192
|
var t;
|
|
773
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$
|
|
193
|
+
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
774
194
|
var i;
|
|
775
195
|
return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
|
|
776
196
|
});
|
|
@@ -778,7 +198,7 @@
|
|
|
778
198
|
enableUpdating(t) {}
|
|
779
199
|
disconnectedCallback() {
|
|
780
200
|
var t;
|
|
781
|
-
null === (t = this._$
|
|
201
|
+
null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
782
202
|
var i;
|
|
783
203
|
return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
|
|
784
204
|
});
|
|
@@ -786,33 +206,34 @@
|
|
|
786
206
|
attributeChangedCallback(t, i, s) {
|
|
787
207
|
this._$AK(t, s);
|
|
788
208
|
}
|
|
789
|
-
_$
|
|
790
|
-
var e
|
|
791
|
-
const
|
|
792
|
-
if (void 0 !==
|
|
793
|
-
const
|
|
794
|
-
this._$
|
|
209
|
+
_$EO(t, i, s = l$3) {
|
|
210
|
+
var e;
|
|
211
|
+
const r = this.constructor._$Ep(t, s);
|
|
212
|
+
if (void 0 !== r && !0 === s.reflect) {
|
|
213
|
+
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$2).toAttribute(i, s.type);
|
|
214
|
+
this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
|
|
795
215
|
}
|
|
796
216
|
}
|
|
797
217
|
_$AK(t, i) {
|
|
798
|
-
var s
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
if (void 0 !==
|
|
802
|
-
const t =
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
218
|
+
var s;
|
|
219
|
+
const e = this.constructor,
|
|
220
|
+
r = e._$Ev.get(t);
|
|
221
|
+
if (void 0 !== r && this._$El !== r) {
|
|
222
|
+
const t = e.getPropertyOptions(r),
|
|
223
|
+
h = "function" == typeof t.converter ? {
|
|
224
|
+
fromAttribute: t.converter
|
|
225
|
+
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$2;
|
|
226
|
+
this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
|
|
806
227
|
}
|
|
807
228
|
}
|
|
808
229
|
requestUpdate(t, i, s) {
|
|
809
230
|
let e = !0;
|
|
810
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
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());
|
|
811
232
|
}
|
|
812
|
-
async _$
|
|
233
|
+
async _$Ej() {
|
|
813
234
|
this.isUpdatePending = !0;
|
|
814
235
|
try {
|
|
815
|
-
await this._$
|
|
236
|
+
await this._$E_;
|
|
816
237
|
} catch (t) {
|
|
817
238
|
Promise.reject(t);
|
|
818
239
|
}
|
|
@@ -825,50 +246,50 @@
|
|
|
825
246
|
performUpdate() {
|
|
826
247
|
var t;
|
|
827
248
|
if (!this.isUpdatePending) return;
|
|
828
|
-
this.hasUpdated, this._$
|
|
249
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t, i) => this[i] = t), this._$Ei = void 0);
|
|
829
250
|
let i = !1;
|
|
830
251
|
const s = this._$AL;
|
|
831
252
|
try {
|
|
832
|
-
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$
|
|
253
|
+
i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$ES) || void 0 === t || t.forEach(t => {
|
|
833
254
|
var i;
|
|
834
255
|
return null === (i = t.hostUpdate) || void 0 === i ? void 0 : i.call(t);
|
|
835
|
-
}), this.update(s)) : this._$
|
|
256
|
+
}), this.update(s)) : this._$Ek();
|
|
836
257
|
} catch (t) {
|
|
837
|
-
throw i = !1, this._$
|
|
258
|
+
throw i = !1, this._$Ek(), t;
|
|
838
259
|
}
|
|
839
260
|
i && this._$AE(s);
|
|
840
261
|
}
|
|
841
262
|
willUpdate(t) {}
|
|
842
263
|
_$AE(t) {
|
|
843
264
|
var i;
|
|
844
|
-
null === (i = this._$
|
|
265
|
+
null === (i = this._$ES) || void 0 === i || i.forEach(t => {
|
|
845
266
|
var i;
|
|
846
267
|
return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
|
|
847
268
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
848
269
|
}
|
|
849
|
-
_$
|
|
270
|
+
_$Ek() {
|
|
850
271
|
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
851
272
|
}
|
|
852
273
|
get updateComplete() {
|
|
853
274
|
return this.getUpdateComplete();
|
|
854
275
|
}
|
|
855
276
|
getUpdateComplete() {
|
|
856
|
-
return this._$
|
|
277
|
+
return this._$E_;
|
|
857
278
|
}
|
|
858
279
|
shouldUpdate(t) {
|
|
859
280
|
return !0;
|
|
860
281
|
}
|
|
861
282
|
update(t) {
|
|
862
|
-
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$
|
|
283
|
+
void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$EO(i, this[i], t)), this._$EC = void 0), this._$Ek();
|
|
863
284
|
}
|
|
864
285
|
updated(t) {}
|
|
865
286
|
firstUpdated(t) {}
|
|
866
287
|
};
|
|
867
|
-
|
|
288
|
+
u$1[d$1] = !0, u$1.elementProperties = new Map(), u$1.elementStyles = [], u$1.shadowRootOptions = {
|
|
868
289
|
mode: "open"
|
|
869
|
-
}, null ==
|
|
870
|
-
ReactiveElement:
|
|
871
|
-
}), (null !== (s$2 =
|
|
290
|
+
}, null == o$2 || o$2({
|
|
291
|
+
ReactiveElement: u$1
|
|
292
|
+
}), (null !== (s$2 = e$1.reactiveElementVersions) && void 0 !== s$2 ? s$2 : e$1.reactiveElementVersions = []).push("1.6.3");
|
|
872
293
|
|
|
873
294
|
/**
|
|
874
295
|
* @license
|
|
@@ -886,8 +307,8 @@
|
|
|
886
307
|
l$2 = "?" + n$1,
|
|
887
308
|
h = `<${l$2}>`,
|
|
888
309
|
r = document,
|
|
889
|
-
|
|
890
|
-
|
|
310
|
+
u = () => r.createComment(""),
|
|
311
|
+
d = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
891
312
|
c = Array.isArray,
|
|
892
313
|
v = t => c(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
|
|
893
314
|
a = "[ \t\n\f\r]",
|
|
@@ -908,28 +329,30 @@
|
|
|
908
329
|
T = Symbol.for("lit-noChange"),
|
|
909
330
|
A = Symbol.for("lit-nothing"),
|
|
910
331
|
E = new WeakMap(),
|
|
911
|
-
C = r.createTreeWalker(r, 129, null, !1)
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
932
|
-
|
|
332
|
+
C = r.createTreeWalker(r, 129, null, !1);
|
|
333
|
+
function P(t, i) {
|
|
334
|
+
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
335
|
+
return void 0 !== e ? e.createHTML(i) : i;
|
|
336
|
+
}
|
|
337
|
+
const V = (t, i) => {
|
|
338
|
+
const s = t.length - 1,
|
|
339
|
+
e = [];
|
|
340
|
+
let l,
|
|
341
|
+
r = 2 === i ? "<svg>" : "",
|
|
342
|
+
u = f;
|
|
343
|
+
for (let i = 0; i < s; i++) {
|
|
344
|
+
const s = t[i];
|
|
345
|
+
let d,
|
|
346
|
+
c,
|
|
347
|
+
v = -1,
|
|
348
|
+
a = 0;
|
|
349
|
+
for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f ? "!--" === c[1] ? u = _ : void 0 !== c[1] ? u = m : void 0 !== c[2] ? (y.test(c[2]) && (l = RegExp("</" + c[2], "g")), u = p) : void 0 !== c[3] && (u = p) : u === p ? ">" === c[0] ? (u = null != l ? l : f, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, d = c[1], u = void 0 === c[3] ? p : '"' === c[3] ? $ : g) : u === $ || u === g ? u = p : u === _ || u === m ? u = f : (u = p, l = void 0);
|
|
350
|
+
const w = u === p && t[i + 1].startsWith("/>") ? " " : "";
|
|
351
|
+
r += u === f ? s + h : v >= 0 ? (e.push(d), s.slice(0, v) + o$1 + s.slice(v) + n$1 + w) : s + n$1 + (-2 === v ? (e.push(void 0), i) : w);
|
|
352
|
+
}
|
|
353
|
+
return [P(t, r + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), e];
|
|
354
|
+
};
|
|
355
|
+
class N {
|
|
933
356
|
constructor({
|
|
934
357
|
strings: t,
|
|
935
358
|
_$litType$: i
|
|
@@ -937,11 +360,11 @@
|
|
|
937
360
|
let h;
|
|
938
361
|
this.parts = [];
|
|
939
362
|
let r = 0,
|
|
940
|
-
|
|
363
|
+
d = 0;
|
|
941
364
|
const c = t.length - 1,
|
|
942
365
|
v = this.parts,
|
|
943
|
-
[a, f] =
|
|
944
|
-
if (this.el =
|
|
366
|
+
[a, f] = V(t, i);
|
|
367
|
+
if (this.el = N.createElement(a, e), C.currentNode = this.el.content, 2 === i) {
|
|
945
368
|
const t = this.el.content,
|
|
946
369
|
i = t.firstChild;
|
|
947
370
|
i.remove(), t.append(...i.childNodes);
|
|
@@ -951,7 +374,7 @@
|
|
|
951
374
|
if (h.hasAttributes()) {
|
|
952
375
|
const t = [];
|
|
953
376
|
for (const i of h.getAttributeNames()) if (i.endsWith(o$1) || i.startsWith(n$1)) {
|
|
954
|
-
const s = f[
|
|
377
|
+
const s = f[d++];
|
|
955
378
|
if (t.push(i), void 0 !== s) {
|
|
956
379
|
const t = h.getAttribute(s.toLowerCase() + o$1).split(n$1),
|
|
957
380
|
i = /([.?@])?(.*)/.exec(s);
|
|
@@ -960,7 +383,7 @@
|
|
|
960
383
|
index: r,
|
|
961
384
|
name: i[2],
|
|
962
385
|
strings: t,
|
|
963
|
-
ctor: "." === i[1] ?
|
|
386
|
+
ctor: "." === i[1] ? H : "?" === i[1] ? L : "@" === i[1] ? z : k
|
|
964
387
|
});
|
|
965
388
|
} else v.push({
|
|
966
389
|
type: 6,
|
|
@@ -974,11 +397,11 @@
|
|
|
974
397
|
i = t.length - 1;
|
|
975
398
|
if (i > 0) {
|
|
976
399
|
h.textContent = s$1 ? s$1.emptyScript : "";
|
|
977
|
-
for (let s = 0; s < i; s++) h.append(t[s],
|
|
400
|
+
for (let s = 0; s < i; s++) h.append(t[s], u()), C.nextNode(), v.push({
|
|
978
401
|
type: 2,
|
|
979
402
|
index: ++r
|
|
980
403
|
});
|
|
981
|
-
h.append(t[i],
|
|
404
|
+
h.append(t[i], u());
|
|
982
405
|
}
|
|
983
406
|
}
|
|
984
407
|
} else if (8 === h.nodeType) if (h.data === l$2) v.push({
|
|
@@ -999,16 +422,16 @@
|
|
|
999
422
|
return s.innerHTML = t, s;
|
|
1000
423
|
}
|
|
1001
424
|
}
|
|
1002
|
-
function
|
|
425
|
+
function S(t, i, s = t, e) {
|
|
1003
426
|
var o, n, l, h;
|
|
1004
427
|
if (i === T) return i;
|
|
1005
428
|
let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
|
|
1006
|
-
const
|
|
1007
|
-
return (null == r ? void 0 : r.constructor) !==
|
|
429
|
+
const u = d(i) ? void 0 : i._$litDirective$;
|
|
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;
|
|
1008
431
|
}
|
|
1009
|
-
class
|
|
432
|
+
class M {
|
|
1010
433
|
constructor(t, i) {
|
|
1011
|
-
this.
|
|
434
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1012
435
|
}
|
|
1013
436
|
get parentNode() {
|
|
1014
437
|
return this._$AM.parentNode;
|
|
@@ -1016,7 +439,7 @@
|
|
|
1016
439
|
get _$AU() {
|
|
1017
440
|
return this._$AM._$AU;
|
|
1018
441
|
}
|
|
1019
|
-
|
|
442
|
+
u(t) {
|
|
1020
443
|
var i;
|
|
1021
444
|
const {
|
|
1022
445
|
el: {
|
|
@@ -1029,29 +452,29 @@
|
|
|
1029
452
|
let n = C.nextNode(),
|
|
1030
453
|
l = 0,
|
|
1031
454
|
h = 0,
|
|
1032
|
-
|
|
1033
|
-
for (; void 0 !==
|
|
1034
|
-
if (l ===
|
|
455
|
+
u = e[0];
|
|
456
|
+
for (; void 0 !== u;) {
|
|
457
|
+
if (l === u.index) {
|
|
1035
458
|
let i;
|
|
1036
|
-
2 ===
|
|
459
|
+
2 === u.type ? i = new R(n, n.nextSibling, this, t) : 1 === u.type ? i = new u.ctor(n, u.name, u.strings, this, t) : 6 === u.type && (i = new Z(n, this, t)), this._$AV.push(i), u = e[++h];
|
|
1037
460
|
}
|
|
1038
|
-
l !== (null ==
|
|
461
|
+
l !== (null == u ? void 0 : u.index) && (n = C.nextNode(), l++);
|
|
1039
462
|
}
|
|
1040
|
-
return o;
|
|
463
|
+
return C.currentNode = r, o;
|
|
1041
464
|
}
|
|
1042
|
-
|
|
465
|
+
v(t) {
|
|
1043
466
|
let i = 0;
|
|
1044
|
-
for (const s of this.
|
|
467
|
+
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++;
|
|
1045
468
|
}
|
|
1046
469
|
}
|
|
1047
|
-
class
|
|
470
|
+
class R {
|
|
1048
471
|
constructor(t, i, s, e) {
|
|
1049
472
|
var o;
|
|
1050
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$
|
|
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;
|
|
1051
474
|
}
|
|
1052
475
|
get _$AU() {
|
|
1053
476
|
var t, i;
|
|
1054
|
-
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$
|
|
477
|
+
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cp;
|
|
1055
478
|
}
|
|
1056
479
|
get parentNode() {
|
|
1057
480
|
let t = this._$AA.parentNode;
|
|
@@ -1065,40 +488,40 @@
|
|
|
1065
488
|
return this._$AB;
|
|
1066
489
|
}
|
|
1067
490
|
_$AI(t, i = this) {
|
|
1068
|
-
t =
|
|
491
|
+
t = S(this, t, i), d(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : v(t) ? this.T(t) : this._(t);
|
|
1069
492
|
}
|
|
1070
|
-
|
|
493
|
+
k(t) {
|
|
1071
494
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
1072
495
|
}
|
|
1073
|
-
|
|
1074
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
496
|
+
$(t) {
|
|
497
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
1075
498
|
}
|
|
1076
|
-
|
|
1077
|
-
this._$AH !== A &&
|
|
499
|
+
_(t) {
|
|
500
|
+
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r.createTextNode(t)), this._$AH = t;
|
|
1078
501
|
}
|
|
1079
|
-
|
|
502
|
+
g(t) {
|
|
1080
503
|
var i;
|
|
1081
504
|
const {
|
|
1082
505
|
values: s,
|
|
1083
506
|
_$litType$: e
|
|
1084
507
|
} = t,
|
|
1085
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el =
|
|
1086
|
-
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.
|
|
1087
|
-
const t = new
|
|
1088
|
-
i = t.
|
|
1089
|
-
t.
|
|
508
|
+
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = N.createElement(P(e.h, e.h[0]), this.options)), e);
|
|
509
|
+
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.v(s);else {
|
|
510
|
+
const t = new M(o, this),
|
|
511
|
+
i = t.u(this.options);
|
|
512
|
+
t.v(s), this.$(i), this._$AH = t;
|
|
1090
513
|
}
|
|
1091
514
|
}
|
|
1092
515
|
_$AC(t) {
|
|
1093
516
|
let i = E.get(t.strings);
|
|
1094
|
-
return void 0 === i && E.set(t.strings, i = new
|
|
517
|
+
return void 0 === i && E.set(t.strings, i = new N(t)), i;
|
|
1095
518
|
}
|
|
1096
|
-
|
|
519
|
+
T(t) {
|
|
1097
520
|
c(this._$AH) || (this._$AH = [], this._$AR());
|
|
1098
521
|
const i = this._$AH;
|
|
1099
522
|
let s,
|
|
1100
523
|
e = 0;
|
|
1101
|
-
for (const o of t) e === i.length ? i.push(s = new
|
|
524
|
+
for (const o of t) e === i.length ? i.push(s = new R(this.k(u()), this.k(u()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
1102
525
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1103
526
|
}
|
|
1104
527
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -1110,10 +533,10 @@
|
|
|
1110
533
|
}
|
|
1111
534
|
setConnected(t) {
|
|
1112
535
|
var i;
|
|
1113
|
-
void 0 === this._$AM && (this._$
|
|
536
|
+
void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
1114
537
|
}
|
|
1115
538
|
}
|
|
1116
|
-
class
|
|
539
|
+
class k {
|
|
1117
540
|
constructor(t, i, s, e, o) {
|
|
1118
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;
|
|
1119
542
|
}
|
|
@@ -1126,10 +549,10 @@
|
|
|
1126
549
|
_$AI(t, i = this, s, e) {
|
|
1127
550
|
const o = this.strings;
|
|
1128
551
|
let n = !1;
|
|
1129
|
-
if (void 0 === o) t =
|
|
552
|
+
if (void 0 === o) t = S(this, t, i, 0), n = !d(t) || t !== this._$AH && t !== T, n && (this._$AH = t);else {
|
|
1130
553
|
const e = t;
|
|
1131
554
|
let l, h;
|
|
1132
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h =
|
|
555
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) h = S(this, e[s + l], i, l), h === T && (h = this._$AH[l]), n || (n = !d(h) || h !== this._$AH[l]), h === A ? t = A : t !== A && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
1133
556
|
}
|
|
1134
557
|
n && !e && this.j(t);
|
|
1135
558
|
}
|
|
@@ -1137,7 +560,7 @@
|
|
|
1137
560
|
t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
1138
561
|
}
|
|
1139
562
|
}
|
|
1140
|
-
class
|
|
563
|
+
class H extends k {
|
|
1141
564
|
constructor() {
|
|
1142
565
|
super(...arguments), this.type = 3;
|
|
1143
566
|
}
|
|
@@ -1145,22 +568,22 @@
|
|
|
1145
568
|
this.element[this.name] = t === A ? void 0 : t;
|
|
1146
569
|
}
|
|
1147
570
|
}
|
|
1148
|
-
const
|
|
1149
|
-
class
|
|
571
|
+
const I = s$1 ? s$1.emptyScript : "";
|
|
572
|
+
class L extends k {
|
|
1150
573
|
constructor() {
|
|
1151
574
|
super(...arguments), this.type = 4;
|
|
1152
575
|
}
|
|
1153
576
|
j(t) {
|
|
1154
|
-
t && t !== A ? this.element.setAttribute(this.name,
|
|
577
|
+
t && t !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
1155
578
|
}
|
|
1156
579
|
}
|
|
1157
|
-
class
|
|
580
|
+
class z extends k {
|
|
1158
581
|
constructor(t, i, s, e, o) {
|
|
1159
582
|
super(t, i, s, e, o), this.type = 5;
|
|
1160
583
|
}
|
|
1161
584
|
_$AI(t, i = this) {
|
|
1162
585
|
var s;
|
|
1163
|
-
if ((t = null !== (s =
|
|
586
|
+
if ((t = null !== (s = S(this, t, i, 0)) && void 0 !== s ? s : A) === T) return;
|
|
1164
587
|
const e = this._$AH,
|
|
1165
588
|
o = t === A && e !== A || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
1166
589
|
n = t !== A && (e === A || o);
|
|
@@ -1171,7 +594,7 @@
|
|
|
1171
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);
|
|
1172
595
|
}
|
|
1173
596
|
}
|
|
1174
|
-
class
|
|
597
|
+
class Z {
|
|
1175
598
|
constructor(t, i, s) {
|
|
1176
599
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1177
600
|
}
|
|
@@ -1179,18 +602,18 @@
|
|
|
1179
602
|
return this._$AM._$AU;
|
|
1180
603
|
}
|
|
1181
604
|
_$AI(t) {
|
|
1182
|
-
|
|
605
|
+
S(this, t);
|
|
1183
606
|
}
|
|
1184
607
|
}
|
|
1185
|
-
const
|
|
1186
|
-
null ==
|
|
1187
|
-
const
|
|
608
|
+
const B = i.litHtmlPolyfillSupport;
|
|
609
|
+
null == B || B(N, R), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.8.0");
|
|
610
|
+
const D = (t, i, s) => {
|
|
1188
611
|
var e, o;
|
|
1189
612
|
const n = null !== (e = null == s ? void 0 : s.renderBefore) && void 0 !== e ? e : i;
|
|
1190
613
|
let l = n._$litPart$;
|
|
1191
614
|
if (void 0 === l) {
|
|
1192
615
|
const t = null !== (o = null == s ? void 0 : s.renderBefore) && void 0 !== o ? o : null;
|
|
1193
|
-
n._$litPart$ = l = new
|
|
616
|
+
n._$litPart$ = l = new R(i.insertBefore(u(), t), t, void 0, null != s ? s : {});
|
|
1194
617
|
}
|
|
1195
618
|
return l._$AI(t), l;
|
|
1196
619
|
};
|
|
@@ -1201,7 +624,7 @@
|
|
|
1201
624
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1202
625
|
*/
|
|
1203
626
|
var l$1, o;
|
|
1204
|
-
class s extends
|
|
627
|
+
class s extends u$1 {
|
|
1205
628
|
constructor() {
|
|
1206
629
|
super(...arguments), this.renderOptions = {
|
|
1207
630
|
host: this
|
|
@@ -1214,7 +637,7 @@
|
|
|
1214
637
|
}
|
|
1215
638
|
update(t) {
|
|
1216
639
|
const i = this.render();
|
|
1217
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
640
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = D(i, this.renderRoot, this.renderOptions);
|
|
1218
641
|
}
|
|
1219
642
|
connectedCallback() {
|
|
1220
643
|
var t;
|
|
@@ -1235,7 +658,7 @@
|
|
|
1235
658
|
null == n || n({
|
|
1236
659
|
LitElement: s
|
|
1237
660
|
});
|
|
1238
|
-
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.
|
|
661
|
+
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.3");
|
|
1239
662
|
|
|
1240
663
|
var noop = {
|
|
1241
664
|
value: () => {}
|
|
@@ -2152,15 +1575,15 @@
|
|
|
2152
1575
|
var darker = 0.7;
|
|
2153
1576
|
var brighter = 1 / darker;
|
|
2154
1577
|
var reI = "\\s*([+-]?\\d+)\\s*",
|
|
2155
|
-
reN = "\\s*([+-]?\\d
|
|
2156
|
-
reP = "\\s*([+-]?\\d
|
|
1578
|
+
reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
1579
|
+
reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
|
|
2157
1580
|
reHex = /^#([0-9a-f]{3,8})$/,
|
|
2158
|
-
reRgbInteger = new RegExp(
|
|
2159
|
-
reRgbPercent = new RegExp(
|
|
2160
|
-
reRgbaInteger = new RegExp(
|
|
2161
|
-
reRgbaPercent = new RegExp(
|
|
2162
|
-
reHslPercent = new RegExp(
|
|
2163
|
-
reHslaPercent = new RegExp(
|
|
1581
|
+
reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
|
|
1582
|
+
reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
|
|
1583
|
+
reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
|
|
1584
|
+
reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
|
|
1585
|
+
reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
|
|
1586
|
+
reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
|
2164
1587
|
var named = {
|
|
2165
1588
|
aliceblue: 0xf0f8ff,
|
|
2166
1589
|
antiquewhite: 0xfaebd7,
|
|
@@ -2312,15 +1735,16 @@
|
|
|
2312
1735
|
yellowgreen: 0x9acd32
|
|
2313
1736
|
};
|
|
2314
1737
|
define(Color, color, {
|
|
2315
|
-
copy
|
|
1738
|
+
copy(channels) {
|
|
2316
1739
|
return Object.assign(new this.constructor(), this, channels);
|
|
2317
1740
|
},
|
|
2318
|
-
displayable
|
|
1741
|
+
displayable() {
|
|
2319
1742
|
return this.rgb().displayable();
|
|
2320
1743
|
},
|
|
2321
1744
|
hex: color_formatHex,
|
|
2322
1745
|
// Deprecated! Use color.formatHex.
|
|
2323
1746
|
formatHex: color_formatHex,
|
|
1747
|
+
formatHex8: color_formatHex8,
|
|
2324
1748
|
formatHsl: color_formatHsl,
|
|
2325
1749
|
formatRgb: color_formatRgb,
|
|
2326
1750
|
toString: color_formatRgb
|
|
@@ -2328,6 +1752,9 @@
|
|
|
2328
1752
|
function color_formatHex() {
|
|
2329
1753
|
return this.rgb().formatHex();
|
|
2330
1754
|
}
|
|
1755
|
+
function color_formatHex8() {
|
|
1756
|
+
return this.rgb().formatHex8();
|
|
1757
|
+
}
|
|
2331
1758
|
function color_formatHsl() {
|
|
2332
1759
|
return hslConvert(this).formatHsl();
|
|
2333
1760
|
}
|
|
@@ -2374,36 +1801,48 @@
|
|
|
2374
1801
|
this.opacity = +opacity;
|
|
2375
1802
|
}
|
|
2376
1803
|
define(Rgb, rgb, extend(Color, {
|
|
2377
|
-
brighter
|
|
1804
|
+
brighter(k) {
|
|
2378
1805
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
2379
1806
|
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2380
1807
|
},
|
|
2381
|
-
darker
|
|
1808
|
+
darker(k) {
|
|
2382
1809
|
k = k == null ? darker : Math.pow(darker, k);
|
|
2383
1810
|
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
2384
1811
|
},
|
|
2385
|
-
rgb
|
|
1812
|
+
rgb() {
|
|
2386
1813
|
return this;
|
|
2387
1814
|
},
|
|
2388
|
-
|
|
1815
|
+
clamp() {
|
|
1816
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
1817
|
+
},
|
|
1818
|
+
displayable() {
|
|
2389
1819
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
2390
1820
|
},
|
|
2391
1821
|
hex: rgb_formatHex,
|
|
2392
1822
|
// Deprecated! Use color.formatHex.
|
|
2393
1823
|
formatHex: rgb_formatHex,
|
|
1824
|
+
formatHex8: rgb_formatHex8,
|
|
2394
1825
|
formatRgb: rgb_formatRgb,
|
|
2395
1826
|
toString: rgb_formatRgb
|
|
2396
1827
|
}));
|
|
2397
1828
|
function rgb_formatHex() {
|
|
2398
|
-
return
|
|
1829
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
1830
|
+
}
|
|
1831
|
+
function rgb_formatHex8() {
|
|
1832
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2399
1833
|
}
|
|
2400
1834
|
function rgb_formatRgb() {
|
|
2401
|
-
|
|
2402
|
-
a
|
|
2403
|
-
|
|
1835
|
+
const a = clampa(this.opacity);
|
|
1836
|
+
return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
|
|
1837
|
+
}
|
|
1838
|
+
function clampa(opacity) {
|
|
1839
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
1840
|
+
}
|
|
1841
|
+
function clampi(value) {
|
|
1842
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
2404
1843
|
}
|
|
2405
1844
|
function hex(value) {
|
|
2406
|
-
value =
|
|
1845
|
+
value = clampi(value);
|
|
2407
1846
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
2408
1847
|
}
|
|
2409
1848
|
function hsla(h, s, l, a) {
|
|
@@ -2443,15 +1882,15 @@
|
|
|
2443
1882
|
this.opacity = +opacity;
|
|
2444
1883
|
}
|
|
2445
1884
|
define(Hsl, hsl, extend(Color, {
|
|
2446
|
-
brighter
|
|
1885
|
+
brighter(k) {
|
|
2447
1886
|
k = k == null ? brighter : Math.pow(brighter, k);
|
|
2448
1887
|
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2449
1888
|
},
|
|
2450
|
-
darker
|
|
1889
|
+
darker(k) {
|
|
2451
1890
|
k = k == null ? darker : Math.pow(darker, k);
|
|
2452
1891
|
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
2453
1892
|
},
|
|
2454
|
-
rgb
|
|
1893
|
+
rgb() {
|
|
2455
1894
|
var h = this.h % 360 + (this.h < 0) * 360,
|
|
2456
1895
|
s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
|
|
2457
1896
|
l = this.l,
|
|
@@ -2459,15 +1898,24 @@
|
|
|
2459
1898
|
m1 = 2 * l - m2;
|
|
2460
1899
|
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
2461
1900
|
},
|
|
2462
|
-
|
|
1901
|
+
clamp() {
|
|
1902
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
1903
|
+
},
|
|
1904
|
+
displayable() {
|
|
2463
1905
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
2464
1906
|
},
|
|
2465
|
-
formatHsl
|
|
2466
|
-
|
|
2467
|
-
a
|
|
2468
|
-
return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
|
|
1907
|
+
formatHsl() {
|
|
1908
|
+
const a = clampa(this.opacity);
|
|
1909
|
+
return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
|
|
2469
1910
|
}
|
|
2470
1911
|
}));
|
|
1912
|
+
function clamph(value) {
|
|
1913
|
+
value = (value || 0) % 360;
|
|
1914
|
+
return value < 0 ? value + 360 : value;
|
|
1915
|
+
}
|
|
1916
|
+
function clampt(value) {
|
|
1917
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
1918
|
+
}
|
|
2471
1919
|
|
|
2472
1920
|
/* From FvD 13.37, CSS Color Module Level 3 */
|
|
2473
1921
|
function hsl2rgb(h, m1, m2) {
|
|
@@ -3797,6 +3245,48 @@
|
|
|
3797
3245
|
const ambientS = rotate ? `${-ambientM.y}px ${ambientM.y / 2}px ${ambientM.b}px ${ambientM.s}px` : `${ambientM.y / 2}px ${ambientM.y}px ${ambientM.b}px ${ambientM.s}px`;
|
|
3798
3246
|
return `${umbraS} ${umbraC}, ${penumbraS} ${penumbraC}, ${ambientS} ${ambientC}`;
|
|
3799
3247
|
}
|
|
3248
|
+
static get svgDefs() {
|
|
3249
|
+
const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
|
|
3250
|
+
|
|
3251
|
+
const filters = shadows.elevations.map(z => {
|
|
3252
|
+
return `
|
|
3253
|
+
<filter id=${`shadow-${z}`} filterUnits="userSpaceOnUse" x="-100%" y="-100%" width="200%" height="200%">
|
|
3254
|
+
<feComponentTransfer in="SourceAlpha" result="solid">
|
|
3255
|
+
<feFuncA type="table" tableValues="0 1 1"/>
|
|
3256
|
+
</feComponentTransfer>
|
|
3257
|
+
<feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
|
|
3258
|
+
<feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
|
|
3259
|
+
<feOffset in="solid" result="offA" dx=${shadows.mapAmbient[z].y / 2} dy=${shadows.mapAmbient[z].y} />
|
|
3260
|
+
${shadows.mapUmbra[z].s === 0 ? '' : `<feMorphology in="offU" result="spreadU" operator=${shadows.mapUmbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapUmbra[z].s)} />`}
|
|
3261
|
+
${shadows.mapPenumbra[z].s === 0 ? '' : `<feMorphology in="offP" result="spreadP" operator=${shadows.mapPenumbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapPenumbra[z].s)} />`}
|
|
3262
|
+
${shadows.mapAmbient[z].s === 0 ? '' : `<feMorphology in="offA" result="spreadA" operator=${shadows.mapAmbient[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapAmbient[z].s)} />`}
|
|
3263
|
+
<feGaussianBlur in=${shadows.mapUmbra[z].s === 0 ? 'offU' : 'spreadU'} result="blurU" stdDeviation=${shadows.mapUmbra[z].b / 2} />
|
|
3264
|
+
<feGaussianBlur in=${shadows.mapPenumbra[z].s === 0 ? 'offP' : 'spreadP'} result="blurP" stdDeviation=${shadows.mapPenumbra[z].b / 2} />
|
|
3265
|
+
<feGaussianBlur in=${shadows.mapAmbient[z].s === 0 ? 'offA' : 'spreadA'} result="blurA" stdDeviation=${shadows.mapAmbient[z].b / 2} />
|
|
3266
|
+
<feFlood in="SourceGraphic" result="opU" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityUmbra + shadows.opacityBoost} />
|
|
3267
|
+
<feFlood in="SourceGraphic" result="opP" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityPenumbra + shadows.opacityBoost} />
|
|
3268
|
+
<feFlood in="SourceGraphic" result="opA" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityAmbient + shadows.opacityBoost} />
|
|
3269
|
+
<feComposite in="opU" in2="blurU" result="shU" operator="in" />
|
|
3270
|
+
<feComposite in="opP" in2="blurP" result="shP" operator="in" />
|
|
3271
|
+
<feComposite in="opA" in2="blurA" result="shA" operator="in" />
|
|
3272
|
+
<feMorphology in="solid" result="smaller" operator="erode" radius="1" />
|
|
3273
|
+
<feComposite in="shU" in2="smaller" result="finalU" operator="out" />
|
|
3274
|
+
<feComposite in="shP" in2="smaller" result="finalP" operator="out" />
|
|
3275
|
+
<feComposite in="shA" in2="smaller" result="finalA" operator="out" />
|
|
3276
|
+
<feMerge>
|
|
3277
|
+
<feMergeNode in="finalU" />
|
|
3278
|
+
<feMergeNode in="finalP" />
|
|
3279
|
+
<feMergeNode in="finalA" />
|
|
3280
|
+
<feMergeNode in="SourceGraphic" />
|
|
3281
|
+
</feMerge>
|
|
3282
|
+
</filter>`;
|
|
3283
|
+
});
|
|
3284
|
+
return `
|
|
3285
|
+
<defs>
|
|
3286
|
+
${filters}
|
|
3287
|
+
</defs>
|
|
3288
|
+
`;
|
|
3289
|
+
}
|
|
3800
3290
|
static get svgFilters() {
|
|
3801
3291
|
const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
|
|
3802
3292
|
|
|
@@ -3804,7 +3294,7 @@
|
|
|
3804
3294
|
return b`
|
|
3805
3295
|
<filter id=${`shadow-${z}`} x="-250%" y="-250%" width="600%" height="600%">
|
|
3806
3296
|
<feComponentTransfer in="SourceAlpha" result="solid">
|
|
3807
|
-
<feFuncA
|
|
3297
|
+
<feFuncA type="table" tableValues="0 1 1"/>
|
|
3808
3298
|
</feComponentTransfer>
|
|
3809
3299
|
<feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
|
|
3810
3300
|
<feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
|
|
@@ -3842,24 +3332,24 @@
|
|
|
3842
3332
|
`;
|
|
3843
3333
|
}
|
|
3844
3334
|
static get styles() {
|
|
3845
|
-
return
|
|
3335
|
+
return i$1`
|
|
3846
3336
|
:host {
|
|
3847
|
-
---shadow-0: var(--shadow-0, ${
|
|
3848
|
-
---shadow-2: var(--shadow-2, ${
|
|
3849
|
-
---shadow-4: var(--shadow-4, ${
|
|
3850
|
-
---shadow-8: var(--shadow-8, ${
|
|
3851
|
-
|
|
3852
|
-
---color-background: var(--color-background, ${
|
|
3853
|
-
---color-border: var(--color-border, ${
|
|
3854
|
-
---color-text: var(--color-text, ${
|
|
3855
|
-
---color-text-inverse: var(--color-text-inverse, ${
|
|
3856
|
-
---color-link: var(--color-link, ${
|
|
3857
|
-
---color-element-background: var(--color-element-background, ${
|
|
3858
|
-
---color-element-disabled: var(--color-element-disabled, ${
|
|
3859
|
-
---color-element-enabled: var(--color-element-enabled, ${
|
|
3860
|
-
---color-element-selected: var(--color-element-selected, ${
|
|
3861
|
-
---color-element-border: var(--color-element-border, ${
|
|
3862
|
-
---color-element-emphasis: var(--color-element-emphasis, ${
|
|
3337
|
+
---shadow-0: var(--shadow-0, ${r$2(this.cssBoxShadow(0))});
|
|
3338
|
+
---shadow-2: var(--shadow-2, ${r$2(this.cssBoxShadow(2))});
|
|
3339
|
+
---shadow-4: var(--shadow-4, ${r$2(this.cssBoxShadow(4))});
|
|
3340
|
+
---shadow-8: var(--shadow-8, ${r$2(this.cssBoxShadow(8))});
|
|
3341
|
+
|
|
3342
|
+
---color-background: var(--color-background, ${r$2(this.greys.white)});
|
|
3343
|
+
---color-border: var(--color-border, ${r$2(this.greys.light75)});
|
|
3344
|
+
---color-text: var(--color-text, ${r$2(this.greys.dark75)});
|
|
3345
|
+
---color-text-inverse: var(--color-text-inverse, ${r$2(this.greys.white)});
|
|
3346
|
+
---color-link: var(--color-link, ${r$2(this.greys.dark25)});
|
|
3347
|
+
---color-element-background: var(--color-element-background, ${r$2(this.greys.light75)});
|
|
3348
|
+
---color-element-disabled: var(--color-element-disabled, ${r$2(this.greys.light50)});
|
|
3349
|
+
---color-element-enabled: var(--color-element-enabled, ${r$2(this.greys.dark25)});
|
|
3350
|
+
---color-element-selected: var(--color-element-selected, ${r$2(this.greys.grey)});
|
|
3351
|
+
---color-element-border: var(--color-element-border, ${r$2(this.greys.dark50)});
|
|
3352
|
+
---color-element-emphasis: var(--color-element-emphasis, ${r$2(this.greys.dark75)});
|
|
3863
3353
|
|
|
3864
3354
|
---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
|
|
3865
3355
|
---font-family-math: var(--font-family-math, "Source Serif", serif);
|
|
@@ -3920,7 +3410,7 @@
|
|
|
3920
3410
|
this.disabled = false;
|
|
3921
3411
|
}
|
|
3922
3412
|
static get styles() {
|
|
3923
|
-
return [super.styles,
|
|
3413
|
+
return [super.styles, i$1`
|
|
3924
3414
|
:host {
|
|
3925
3415
|
margin: 0.25rem;
|
|
3926
3416
|
}
|
|
@@ -3990,7 +3480,7 @@
|
|
|
3990
3480
|
* Copyright 2018 Google LLC
|
|
3991
3481
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3992
3482
|
*/
|
|
3993
|
-
const l = l => null != l ? l : A
|
|
3483
|
+
const l = l => null != l ? l : A;
|
|
3994
3484
|
|
|
3995
3485
|
class DecidablesSlider extends DecidablesElement {
|
|
3996
3486
|
static get properties() {
|
|
@@ -4045,11 +3535,11 @@
|
|
|
4045
3535
|
this.value = event.target.value;
|
|
4046
3536
|
}
|
|
4047
3537
|
static get styles() {
|
|
4048
|
-
return [super.styles,
|
|
3538
|
+
return [super.styles, i$1`
|
|
4049
3539
|
:host {
|
|
4050
|
-
---shadow-2-rotate: var(--shadow-2-rotate, ${
|
|
4051
|
-
---shadow-4-rotate: var(--shadow-4-rotate, ${
|
|
4052
|
-
---shadow-8-rotate: var(--shadow-8-rotate, ${
|
|
3540
|
+
---shadow-2-rotate: var(--shadow-2-rotate, ${r$2(this.cssBoxShadow(2, true, false))});
|
|
3541
|
+
---shadow-4-rotate: var(--shadow-4-rotate, ${r$2(this.cssBoxShadow(4, true, false))});
|
|
3542
|
+
---shadow-8-rotate: var(--shadow-8-rotate, ${r$2(this.cssBoxShadow(8, true, false))});
|
|
4053
3543
|
|
|
4054
3544
|
display: flex;
|
|
4055
3545
|
|
|
@@ -4355,12 +3845,15 @@
|
|
|
4355
3845
|
this.value = event.target.value;
|
|
4356
3846
|
}
|
|
4357
3847
|
static get styles() {
|
|
4358
|
-
return [super.styles,
|
|
3848
|
+
return [super.styles, i$1`
|
|
4359
3849
|
:host {
|
|
4360
3850
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
4361
3851
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
4362
3852
|
---decidables-spinner-prefix: var(--decidables-spinner-prefix, "");
|
|
4363
3853
|
|
|
3854
|
+
---decidables-spinner-postfix: var(--decidables-spinner-postfix, "");
|
|
3855
|
+
---decidables-spinner-postfix-padding: var(--decidables-spinner-postfix-padding, 0);
|
|
3856
|
+
|
|
4364
3857
|
display: block;
|
|
4365
3858
|
}
|
|
4366
3859
|
|
|
@@ -4388,8 +3881,20 @@
|
|
|
4388
3881
|
content: var(---decidables-spinner-prefix);
|
|
4389
3882
|
}
|
|
4390
3883
|
|
|
3884
|
+
label::after {
|
|
3885
|
+
position: absolute;
|
|
3886
|
+
right: 0.25rem;
|
|
3887
|
+
bottom: 1px;
|
|
3888
|
+
|
|
3889
|
+
font-size: var(---decidables-spinner-font-size);
|
|
3890
|
+
line-height: normal;
|
|
3891
|
+
|
|
3892
|
+
content: var(---decidables-spinner-postfix);
|
|
3893
|
+
}
|
|
3894
|
+
|
|
4391
3895
|
input[type=number] {
|
|
4392
3896
|
width: var(---decidables-spinner-input-width);
|
|
3897
|
+
padding-right: var(---decidables-spinner-postfix-padding);
|
|
4393
3898
|
|
|
4394
3899
|
font-family: var(---font-family-base);
|
|
4395
3900
|
font-size: var(---decidables-spinner-font-size);
|
|
@@ -4479,7 +3984,7 @@
|
|
|
4479
3984
|
}));
|
|
4480
3985
|
}
|
|
4481
3986
|
static get styles() {
|
|
4482
|
-
return [super.styles,
|
|
3987
|
+
return [super.styles, i$1`
|
|
4483
3988
|
:host {
|
|
4484
3989
|
display: flex;
|
|
4485
3990
|
|
|
@@ -4631,7 +4136,7 @@
|
|
|
4631
4136
|
this.disabled = false;
|
|
4632
4137
|
}
|
|
4633
4138
|
static get styles() {
|
|
4634
|
-
return [super.styles,
|
|
4139
|
+
return [super.styles, i$1`
|
|
4635
4140
|
fieldset {
|
|
4636
4141
|
display: flex;
|
|
4637
4142
|
|
|
@@ -4706,7 +4211,7 @@
|
|
|
4706
4211
|
}));
|
|
4707
4212
|
}
|
|
4708
4213
|
static get styles() {
|
|
4709
|
-
return [super.styles,
|
|
4214
|
+
return [super.styles, i$1`
|
|
4710
4215
|
:host {
|
|
4711
4216
|
display: flex;
|
|
4712
4217
|
}
|
|
@@ -4842,10 +4347,55 @@
|
|
|
4842
4347
|
}
|
|
4843
4348
|
};
|
|
4844
4349
|
|
|
4350
|
+
function DecidablesMixinResizeable(superClass) {
|
|
4351
|
+
return class extends superClass {
|
|
4352
|
+
static get properties() {
|
|
4353
|
+
return {
|
|
4354
|
+
width: {
|
|
4355
|
+
attribute: false,
|
|
4356
|
+
type: Number,
|
|
4357
|
+
reflect: false
|
|
4358
|
+
},
|
|
4359
|
+
height: {
|
|
4360
|
+
attribute: false,
|
|
4361
|
+
type: Number,
|
|
4362
|
+
reflect: false
|
|
4363
|
+
},
|
|
4364
|
+
rem: {
|
|
4365
|
+
attribute: false,
|
|
4366
|
+
type: Number,
|
|
4367
|
+
reflect: false
|
|
4368
|
+
}
|
|
4369
|
+
};
|
|
4370
|
+
}
|
|
4371
|
+
constructor() {
|
|
4372
|
+
super();
|
|
4373
|
+
this.width = NaN;
|
|
4374
|
+
this.height = NaN;
|
|
4375
|
+
this.rem = NaN;
|
|
4376
|
+
}
|
|
4377
|
+
getDimensions() {
|
|
4378
|
+
this.width = parseFloat(this.getComputedStyleValue('width'), 10);
|
|
4379
|
+
this.height = parseFloat(this.getComputedStyleValue('height'), 10);
|
|
4380
|
+
this.rem = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('font-size'), 10);
|
|
4381
|
+
}
|
|
4382
|
+
connectedCallback() {
|
|
4383
|
+
super.connectedCallback();
|
|
4384
|
+
this.resizeObserver = new ResizeObserver(this.getDimensions.bind(this));
|
|
4385
|
+
this.resizeObserver.observe(this);
|
|
4386
|
+
}
|
|
4387
|
+
disconnectedCallback() {
|
|
4388
|
+
this.resizeObserver.unobserve(this);
|
|
4389
|
+
super.disconnectedCallback();
|
|
4390
|
+
}
|
|
4391
|
+
};
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4845
4394
|
exports.DecidablesButton = DecidablesButton;
|
|
4846
4395
|
exports.DecidablesConverterArray = DecidablesConverterArray;
|
|
4847
4396
|
exports.DecidablesConverterSet = DecidablesConverterSet;
|
|
4848
4397
|
exports.DecidablesElement = DecidablesElement;
|
|
4398
|
+
exports.DecidablesMixinResizeable = DecidablesMixinResizeable;
|
|
4849
4399
|
exports.DecidablesSlider = DecidablesSlider;
|
|
4850
4400
|
exports.DecidablesSpinner = DecidablesSpinner;
|
|
4851
4401
|
exports.DecidablesSwitch = DecidablesSwitch;
|