@record-evolution/widget-value 1.1.7 → 1.1.8

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.
@@ -32,21 +32,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
32
32
  * Copyright 2019 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
34
  */
35
- const t$1 = globalThis,
36
- e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
37
- s = Symbol(),
38
- o$2 = new WeakMap();
35
+ const t$3 = globalThis,
36
+ e$3 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
37
+ s$3 = Symbol(),
38
+ o$4 = new WeakMap();
39
39
  let n$3 = class n {
40
40
  constructor(t, e, o) {
41
- if (this._$cssResult$ = !0, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
41
+ if (this._$cssResult$ = true, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
42
42
  this.cssText = t, this.t = e;
43
43
  }
44
44
  get styleSheet() {
45
45
  let t = this.o;
46
46
  const s = this.t;
47
- if (e$2 && void 0 === t) {
47
+ if (e$3 && void 0 === t) {
48
48
  const e = void 0 !== s && 1 === s.length;
49
- e && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$2.set(s, t));
49
+ e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
50
50
  }
51
51
  return t;
52
52
  }
@@ -54,26 +54,26 @@ let n$3 = class n {
54
54
  return this.cssText;
55
55
  }
56
56
  };
57
- const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
58
- i$2 = (t, ...e) => {
57
+ const r$5 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
58
+ i$4 = (t, ...e) => {
59
59
  const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
60
- if (!0 === t._$cssResult$) return t.cssText;
60
+ if (true === t._$cssResult$) return t.cssText;
61
61
  if ("number" == typeof t) return t;
62
62
  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.");
63
63
  })(s) + t[o + 1], t[0]);
64
- return new n$3(o, t, s);
64
+ return new n$3(o, t, s$3);
65
65
  },
66
66
  S$1 = (s, o) => {
67
- if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
67
+ if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
68
68
  const o = document.createElement("style"),
69
- n = t$1.litNonce;
69
+ n = t$3.litNonce;
70
70
  void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
71
71
  }
72
72
  },
73
- c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
73
+ c$3 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
74
74
  let e = "";
75
75
  for (const s of t.cssRules) e += s.cssText;
76
- return r$3(e);
76
+ return r$5(e);
77
77
  })(t) : t;
78
78
 
79
79
  /**
@@ -82,23 +82,23 @@ const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
82
82
  * SPDX-License-Identifier: BSD-3-Clause
83
83
  */
84
84
  const {
85
- is: i$1,
86
- defineProperty: e$1,
87
- getOwnPropertyDescriptor: r$2,
88
- getOwnPropertyNames: h$2,
89
- getOwnPropertySymbols: o$1,
85
+ is: i$3,
86
+ defineProperty: e$2,
87
+ getOwnPropertyDescriptor: h$1,
88
+ getOwnPropertyNames: r$4,
89
+ getOwnPropertySymbols: o$3,
90
90
  getPrototypeOf: n$2
91
91
  } = Object,
92
- a = globalThis,
93
- c$1 = a.trustedTypes,
94
- l = c$1 ? c$1.emptyScript : "",
95
- p = a.reactiveElementPolyfillSupport,
96
- d = (t, s) => t,
97
- u = {
92
+ a$1 = globalThis,
93
+ c$2 = a$1.trustedTypes,
94
+ l$1 = c$2 ? c$2.emptyScript : "",
95
+ p$2 = a$1.reactiveElementPolyfillSupport,
96
+ d$1 = (t, s) => t,
97
+ u$3 = {
98
98
  toAttribute(t, s) {
99
99
  switch (s) {
100
100
  case Boolean:
101
- t = t ? l : null;
101
+ t = t ? l$1 : null;
102
102
  break;
103
103
  case Object:
104
104
  case Array:
@@ -126,34 +126,35 @@ const {
126
126
  return i;
127
127
  }
128
128
  },
129
- f$2 = (t, s) => !i$1(t, s),
130
- y = {
131
- attribute: !0,
129
+ f$1 = (t, s) => !i$3(t, s),
130
+ b = {
131
+ attribute: true,
132
132
  type: String,
133
- converter: u,
134
- reflect: !1,
135
- hasChanged: f$2
133
+ converter: u$3,
134
+ reflect: false,
135
+ useDefault: false,
136
+ hasChanged: f$1
136
137
  };
137
- Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
138
- class b extends HTMLElement {
138
+ Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
139
+ let y$1 = class y extends HTMLElement {
139
140
  static addInitializer(t) {
140
141
  this._$Ei(), (this.l ??= []).push(t);
141
142
  }
142
143
  static get observedAttributes() {
143
144
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
144
145
  }
145
- static createProperty(t, s = y) {
146
- if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
146
+ static createProperty(t, s = b) {
147
+ if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
147
148
  const i = Symbol(),
148
- r = this.getPropertyDescriptor(t, i, s);
149
- void 0 !== r && e$1(this.prototype, t, r);
149
+ h = this.getPropertyDescriptor(t, i, s);
150
+ void 0 !== h && e$2(this.prototype, t, h);
150
151
  }
151
152
  }
152
153
  static getPropertyDescriptor(t, s, i) {
153
154
  const {
154
155
  get: e,
155
- set: h
156
- } = r$2(this.prototype, t) ?? {
156
+ set: r
157
+ } = h$1(this.prototype, t) ?? {
157
158
  get() {
158
159
  return this[s];
159
160
  },
@@ -162,30 +163,28 @@ class b extends HTMLElement {
162
163
  }
163
164
  };
164
165
  return {
165
- get() {
166
- return e?.call(this);
167
- },
166
+ get: e,
168
167
  set(s) {
169
- const r = e?.call(this);
170
- h.call(this, s), this.requestUpdate(t, r, i);
168
+ const h = e?.call(this);
169
+ r?.call(this, s), this.requestUpdate(t, h, i);
171
170
  },
172
- configurable: !0,
173
- enumerable: !0
171
+ configurable: true,
172
+ enumerable: true
174
173
  };
175
174
  }
176
175
  static getPropertyOptions(t) {
177
- return this.elementProperties.get(t) ?? y;
176
+ return this.elementProperties.get(t) ?? b;
178
177
  }
179
178
  static _$Ei() {
180
- if (this.hasOwnProperty(d("elementProperties"))) return;
179
+ if (this.hasOwnProperty(d$1("elementProperties"))) return;
181
180
  const t = n$2(this);
182
181
  t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
183
182
  }
184
183
  static finalize() {
185
- if (this.hasOwnProperty(d("finalized"))) return;
186
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
184
+ if (this.hasOwnProperty(d$1("finalized"))) return;
185
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
187
186
  const t = this.properties,
188
- s = [...h$2(t), ...o$1(t)];
187
+ s = [...r$4(t), ...o$3(t)];
189
188
  for (const i of s) this.createProperty(i, t[i]);
190
189
  }
191
190
  const t = this[Symbol.metadata];
@@ -204,16 +203,16 @@ class b extends HTMLElement {
204
203
  const i = [];
205
204
  if (Array.isArray(s)) {
206
205
  const e = new Set(s.flat(1 / 0).reverse());
207
- for (const s of e) i.unshift(c$2(s));
208
- } else void 0 !== s && i.push(c$2(s));
206
+ for (const s of e) i.unshift(c$3(s));
207
+ } else void 0 !== s && i.push(c$3(s));
209
208
  return i;
210
209
  }
211
210
  static _$Eu(t, s) {
212
211
  const i = s.attribute;
213
- return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
212
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
214
213
  }
215
214
  constructor() {
216
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
215
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
217
216
  }
218
217
  _$Ev() {
219
218
  this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
@@ -235,7 +234,7 @@ class b extends HTMLElement {
235
234
  return S$1(t, this.constructor.elementStyles), t;
236
235
  }
237
236
  connectedCallback() {
238
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(t => t.hostConnected?.());
237
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
239
238
  }
240
239
  enableUpdating(t) {}
241
240
  disconnectedCallback() {
@@ -244,12 +243,12 @@ class b extends HTMLElement {
244
243
  attributeChangedCallback(t, s, i) {
245
244
  this._$AK(t, i);
246
245
  }
247
- _$EC(t, s) {
246
+ _$ET(t, s) {
248
247
  const i = this.constructor.elementProperties.get(t),
249
248
  e = this.constructor._$Eu(t, i);
250
- if (void 0 !== e && !0 === i.reflect) {
251
- const r = (void 0 !== i.converter?.toAttribute ? i.converter : u).toAttribute(s, i.type);
252
- this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
249
+ if (void 0 !== e && true === i.reflect) {
250
+ const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
251
+ this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
253
252
  }
254
253
  }
255
254
  _$AK(t, s) {
@@ -257,24 +256,30 @@ class b extends HTMLElement {
257
256
  e = i._$Eh.get(t);
258
257
  if (void 0 !== e && this._$Em !== e) {
259
258
  const t = i.getPropertyOptions(e),
260
- r = "function" == typeof t.converter ? {
259
+ h = "function" == typeof t.converter ? {
261
260
  fromAttribute: t.converter
262
- } : void 0 !== t.converter?.fromAttribute ? t.converter : u;
263
- this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
261
+ } : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
262
+ this._$Em = e, this[e] = h.fromAttribute(s, t.type) ?? this._$Ej?.get(e) ?? null, this._$Em = null;
264
263
  }
265
264
  }
266
265
  requestUpdate(t, s, i) {
267
266
  if (void 0 !== t) {
268
- if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$2)(this[t], s)) return;
269
- this.P(t, s, i);
267
+ const e = this.constructor,
268
+ h = this[t];
269
+ if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
270
+ this.C(t, s, i);
270
271
  }
271
- !1 === this.isUpdatePending && (this._$ES = this._$ET());
272
+ false === this.isUpdatePending && (this._$ES = this._$EP());
272
273
  }
273
- P(t, s, i) {
274
- this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
274
+ C(t, s, {
275
+ useDefault: i,
276
+ reflect: e,
277
+ wrapped: h
278
+ }, r) {
279
+ i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
275
280
  }
276
- async _$ET() {
277
- this.isUpdatePending = !0;
281
+ async _$EP() {
282
+ this.isUpdatePending = true;
278
283
  try {
279
284
  await this._$ES;
280
285
  } catch (t) {
@@ -294,23 +299,29 @@ class b extends HTMLElement {
294
299
  this._$Ep = void 0;
295
300
  }
296
301
  const t = this.constructor.elementProperties;
297
- if (t.size > 0) for (const [s, i] of t) !0 !== i.wrapped || this._$AL.has(s) || void 0 === this[s] || this.P(s, this[s], i);
302
+ if (t.size > 0) for (const [s, i] of t) {
303
+ const {
304
+ wrapped: t
305
+ } = i,
306
+ e = this[s];
307
+ true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
308
+ }
298
309
  }
299
- let t = !1;
310
+ let t = false;
300
311
  const s = this._$AL;
301
312
  try {
302
- t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EU();
313
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
303
314
  } catch (s) {
304
- throw t = !1, this._$EU(), s;
315
+ throw t = false, this._$EM(), s;
305
316
  }
306
317
  t && this._$AE(s);
307
318
  }
308
319
  willUpdate(t) {}
309
320
  _$AE(t) {
310
- this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
321
+ this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
311
322
  }
312
- _$EU() {
313
- this._$AL = new Map(), this.isUpdatePending = !1;
323
+ _$EM() {
324
+ this._$AL = new Map(), this.isUpdatePending = false;
314
325
  }
315
326
  get updateComplete() {
316
327
  return this.getUpdateComplete();
@@ -319,149 +330,149 @@ class b extends HTMLElement {
319
330
  return this._$ES;
320
331
  }
321
332
  shouldUpdate(t) {
322
- return !0;
333
+ return true;
323
334
  }
324
335
  update(t) {
325
- this._$Ej &&= this._$Ej.forEach(t => this._$EC(t, this[t])), this._$EU();
336
+ this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
326
337
  }
327
338
  updated(t) {}
328
339
  firstUpdated(t) {}
329
- }
330
- b.elementStyles = [], b.shadowRootOptions = {
340
+ };
341
+ y$1.elementStyles = [], y$1.shadowRootOptions = {
331
342
  mode: "open"
332
- }, b[d("elementProperties")] = new Map(), b[d("finalized")] = new Map(), p?.({
333
- ReactiveElement: b
334
- }), (a.reactiveElementVersions ??= []).push("2.0.4");
343
+ }, y$1[d$1("elementProperties")] = new Map(), y$1[d$1("finalized")] = new Map(), p$2?.({
344
+ ReactiveElement: y$1
345
+ }), (a$1.reactiveElementVersions ??= []).push("2.1.0");
335
346
 
336
347
  /**
337
348
  * @license
338
349
  * Copyright 2017 Google LLC
339
350
  * SPDX-License-Identifier: BSD-3-Clause
340
351
  */
341
- const n$1 = globalThis,
342
- c = n$1.trustedTypes,
343
- h$1 = c ? c.createPolicy("lit-html", {
352
+ const t$2 = globalThis,
353
+ i$2 = t$2.trustedTypes,
354
+ s$2 = i$2 ? i$2.createPolicy("lit-html", {
344
355
  createHTML: t => t
345
356
  }) : void 0,
346
- f$1 = "$lit$",
347
- v = `lit$${Math.random().toFixed(9).slice(2)}$`,
348
- m = "?" + v,
349
- _ = `<${m}>`,
350
- w = document,
351
- lt$1 = () => w.createComment(""),
352
- st = t => null === t || "object" != typeof t && "function" != typeof t,
353
- g = Array.isArray,
354
- $ = t => g(t) || "function" == typeof t?.[Symbol.iterator],
355
- x = "[ \t\n\f\r]",
356
- T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
357
- E = /-->/g,
358
- k = />/g,
359
- O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
360
- S = /'/g,
361
- j = /"/g,
362
- M = /^(?:script|style|textarea|title)$/i,
363
- P = t => (i, ...s) => ({
357
+ e$1 = "$lit$",
358
+ h = `lit$${Math.random().toFixed(9).slice(2)}$`,
359
+ o$2 = "?" + h,
360
+ n$1 = `<${o$2}>`,
361
+ r$3 = document,
362
+ l = () => r$3.createComment(""),
363
+ c$1 = t => null === t || "object" != typeof t && "function" != typeof t,
364
+ a = Array.isArray,
365
+ u$2 = t => a(t) || "function" == typeof t?.[Symbol.iterator],
366
+ d = "[ \t\n\f\r]",
367
+ f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
368
+ v$1 = /-->/g,
369
+ _ = />/g,
370
+ m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
371
+ p$1 = /'/g,
372
+ g = /"/g,
373
+ $ = /^(?:script|style|textarea|title)$/i,
374
+ y = t => (i, ...s) => ({
364
375
  _$litType$: t,
365
376
  strings: i,
366
377
  values: s
367
378
  }),
368
- ke = P(1),
369
- R = Symbol.for("lit-noChange"),
370
- D = Symbol.for("lit-nothing"),
371
- V = new WeakMap(),
372
- I = w.createTreeWalker(w, 129);
373
- function N(t, i) {
374
- if (!g(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
375
- return void 0 !== h$1 ? h$1.createHTML(i) : i;
379
+ x = y(1),
380
+ T = Symbol.for("lit-noChange"),
381
+ E = Symbol.for("lit-nothing"),
382
+ A = new WeakMap(),
383
+ C = r$3.createTreeWalker(r$3, 129);
384
+ function P(t, i) {
385
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
386
+ return void 0 !== s$2 ? s$2.createHTML(i) : i;
376
387
  }
377
- const U = (t, i) => {
388
+ const V = (t, i) => {
378
389
  const s = t.length - 1,
379
- e = [];
380
- let h,
381
- o = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
382
- n = T;
390
+ o = [];
391
+ let r,
392
+ l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
393
+ c = f;
383
394
  for (let i = 0; i < s; i++) {
384
395
  const s = t[i];
385
- let r,
386
- l,
387
- c = -1,
388
- a = 0;
389
- for (; a < s.length && (n.lastIndex = a, l = n.exec(s), null !== l);) a = n.lastIndex, n === T ? "!--" === l[1] ? n = E : void 0 !== l[1] ? n = k : void 0 !== l[2] ? (M.test(l[2]) && (h = RegExp("</" + l[2], "g")), n = O) : void 0 !== l[3] && (n = O) : n === O ? ">" === l[0] ? (n = h ?? T, c = -1) : void 0 === l[1] ? c = -2 : (c = n.lastIndex - l[2].length, r = l[1], n = void 0 === l[3] ? O : '"' === l[3] ? j : S) : n === j || n === S ? n = O : n === E || n === k ? n = T : (n = O, h = void 0);
390
- const u = n === O && t[i + 1].startsWith("/>") ? " " : "";
391
- o += n === T ? s + _ : c >= 0 ? (e.push(r), s.slice(0, c) + f$1 + s.slice(c) + v + u) : s + v + (-2 === c ? i : u);
392
- }
393
- return [N(t, o + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
396
+ let a,
397
+ u,
398
+ d = -1,
399
+ y = 0;
400
+ for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v$1 : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m$1) : void 0 !== u[3] && (c = m$1) : c === m$1 ? ">" === 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$1 : '"' === u[3] ? g : p$1) : c === g || c === p$1 ? c = m$1 : c === v$1 || c === _ ? c = f : (c = m$1, r = void 0);
401
+ const x = c === m$1 && t[i + 1].startsWith("/>") ? " " : "";
402
+ l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e$1 + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
403
+ }
404
+ return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
394
405
  };
395
- class B {
406
+ class N {
396
407
  constructor({
397
408
  strings: t,
398
- _$litType$: i
399
- }, s) {
400
- let e;
409
+ _$litType$: s
410
+ }, n) {
411
+ let r;
401
412
  this.parts = [];
402
- let h = 0,
403
- o = 0;
404
- const n = t.length - 1,
405
- r = this.parts,
406
- [l, a] = U(t, i);
407
- if (this.el = B.createElement(l, s), I.currentNode = this.el.content, 2 === i || 3 === i) {
413
+ let c = 0,
414
+ a = 0;
415
+ const u = t.length - 1,
416
+ d = this.parts,
417
+ [f, v] = V(t, s);
418
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
408
419
  const t = this.el.content.firstChild;
409
420
  t.replaceWith(...t.childNodes);
410
421
  }
411
- for (; null !== (e = I.nextNode()) && r.length < n;) {
412
- if (1 === e.nodeType) {
413
- if (e.hasAttributes()) for (const t of e.getAttributeNames()) if (t.endsWith(f$1)) {
414
- const i = a[o++],
415
- s = e.getAttribute(t).split(v),
416
- n = /([.?@])?(.*)/.exec(i);
417
- r.push({
422
+ for (; null !== (r = C.nextNode()) && d.length < u;) {
423
+ if (1 === r.nodeType) {
424
+ if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$1)) {
425
+ const i = v[a++],
426
+ s = r.getAttribute(t).split(h),
427
+ e = /([.?@])?(.*)/.exec(i);
428
+ d.push({
418
429
  type: 1,
419
- index: h,
420
- name: n[2],
430
+ index: c,
431
+ name: e[2],
421
432
  strings: s,
422
- ctor: "." === n[1] ? Y : "?" === n[1] ? Z : "@" === n[1] ? q : G
423
- }), e.removeAttribute(t);
424
- } else t.startsWith(v) && (r.push({
433
+ ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
434
+ }), r.removeAttribute(t);
435
+ } else t.startsWith(h) && (d.push({
425
436
  type: 6,
426
- index: h
427
- }), e.removeAttribute(t));
428
- if (M.test(e.tagName)) {
429
- const t = e.textContent.split(v),
430
- i = t.length - 1;
431
- if (i > 0) {
432
- e.textContent = c ? c.emptyScript : "";
433
- for (let s = 0; s < i; s++) e.append(t[s], lt$1()), I.nextNode(), r.push({
437
+ index: c
438
+ }), r.removeAttribute(t));
439
+ if ($.test(r.tagName)) {
440
+ const t = r.textContent.split(h),
441
+ s = t.length - 1;
442
+ if (s > 0) {
443
+ r.textContent = i$2 ? i$2.emptyScript : "";
444
+ for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
434
445
  type: 2,
435
- index: ++h
446
+ index: ++c
436
447
  });
437
- e.append(t[i], lt$1());
448
+ r.append(t[s], l());
438
449
  }
439
450
  }
440
- } else if (8 === e.nodeType) if (e.data === m) r.push({
451
+ } else if (8 === r.nodeType) if (r.data === o$2) d.push({
441
452
  type: 2,
442
- index: h
453
+ index: c
443
454
  });else {
444
455
  let t = -1;
445
- for (; -1 !== (t = e.data.indexOf(v, t + 1));) r.push({
456
+ for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
446
457
  type: 7,
447
- index: h
448
- }), t += v.length - 1;
458
+ index: c
459
+ }), t += h.length - 1;
449
460
  }
450
- h++;
461
+ c++;
451
462
  }
452
463
  }
453
464
  static createElement(t, i) {
454
- const s = w.createElement("template");
465
+ const s = r$3.createElement("template");
455
466
  return s.innerHTML = t, s;
456
467
  }
457
468
  }
458
- function z(t, i, s = t, e) {
459
- if (i === R) return i;
460
- let h = void 0 !== e ? s.o?.[e] : s.l;
461
- const o = st(i) ? void 0 : i._$litDirective$;
462
- 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.o ??= [])[e] = h : s.l = h), void 0 !== h && (i = z(t, h._$AS(t, i.values), h, e)), i;
469
+ function S(t, i, s = t, e) {
470
+ if (i === T) return i;
471
+ let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
472
+ const o = c$1(i) ? void 0 : i._$litDirective$;
473
+ return h?.constructor !== o && (h?._$AO?.(false), 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 = S(t, h._$AS(t, i.values), h, e)), i;
463
474
  }
464
- class F {
475
+ let M$1 = class M {
465
476
  constructor(t, i) {
466
477
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
467
478
  }
@@ -478,32 +489,32 @@ class F {
478
489
  },
479
490
  parts: s
480
491
  } = this._$AD,
481
- e = (t?.creationScope ?? w).importNode(i, !0);
482
- I.currentNode = e;
483
- let h = I.nextNode(),
492
+ e = (t?.creationScope ?? r$3).importNode(i, true);
493
+ C.currentNode = e;
494
+ let h = C.nextNode(),
484
495
  o = 0,
485
496
  n = 0,
486
- r = s[0];
487
- for (; void 0 !== r;) {
488
- if (o === r.index) {
497
+ l = s[0];
498
+ for (; void 0 !== l;) {
499
+ if (o === l.index) {
489
500
  let i;
490
- 2 === r.type ? i = new et$1(h, h.nextSibling, this, t) : 1 === r.type ? i = new r.ctor(h, r.name, r.strings, this, t) : 6 === r.type && (i = new K(h, this, t)), this._$AV.push(i), r = s[++n];
501
+ 2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
491
502
  }
492
- o !== r?.index && (h = I.nextNode(), o++);
503
+ o !== l?.index && (h = C.nextNode(), o++);
493
504
  }
494
- return I.currentNode = w, e;
505
+ return C.currentNode = r$3, e;
495
506
  }
496
507
  p(t) {
497
508
  let i = 0;
498
509
  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++;
499
510
  }
500
- }
501
- let et$1 = class et {
511
+ };
512
+ class R {
502
513
  get _$AU() {
503
- return this._$AM?._$AU ?? this.v;
514
+ return this._$AM?._$AU ?? this._$Cv;
504
515
  }
505
516
  constructor(t, i, s, e) {
506
- this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this.v = e?.isConnected ?? !0;
517
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
507
518
  }
508
519
  get parentNode() {
509
520
  let t = this._$AA.parentNode;
@@ -517,7 +528,7 @@ let et$1 = class et {
517
528
  return this._$AB;
518
529
  }
519
530
  _$AI(t, i = this) {
520
- t = z(this, t, i), st(t) ? t === D || null == t || "" === t ? (this._$AH !== D && this._$AR(), this._$AH = D) : t !== this._$AH && t !== R && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : $(t) ? this.k(t) : this._(t);
531
+ t = S(this, t, i), c$1(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u$2(t) ? this.k(t) : this._(t);
521
532
  }
522
533
  O(t) {
523
534
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -526,43 +537,43 @@ let et$1 = class et {
526
537
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
527
538
  }
528
539
  _(t) {
529
- this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
540
+ this._$AH !== E && c$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
530
541
  }
531
542
  $(t) {
532
543
  const {
533
544
  values: i,
534
545
  _$litType$: s
535
546
  } = t,
536
- e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = B.createElement(N(s.h, s.h[0]), this.options)), s);
547
+ e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
537
548
  if (this._$AH?._$AD === e) this._$AH.p(i);else {
538
- const t = new F(e, this),
549
+ const t = new M$1(e, this),
539
550
  s = t.u(this.options);
540
551
  t.p(i), this.T(s), this._$AH = t;
541
552
  }
542
553
  }
543
554
  _$AC(t) {
544
- let i = V.get(t.strings);
545
- return void 0 === i && V.set(t.strings, i = new B(t)), i;
555
+ let i = A.get(t.strings);
556
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
546
557
  }
547
558
  k(t) {
548
- g(this._$AH) || (this._$AH = [], this._$AR());
559
+ a(this._$AH) || (this._$AH = [], this._$AR());
549
560
  const i = this._$AH;
550
561
  let s,
551
562
  e = 0;
552
- for (const h of t) e === i.length ? i.push(s = new et(this.O(lt$1()), this.O(lt$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
563
+ for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
553
564
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
554
565
  }
555
566
  _$AR(t = this._$AA.nextSibling, i) {
556
- for (this._$AP?.(!1, !0, i); t && t !== this._$AB;) {
567
+ for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
557
568
  const i = t.nextSibling;
558
569
  t.remove(), t = i;
559
570
  }
560
571
  }
561
572
  setConnected(t) {
562
- void 0 === this._$AM && (this.v = t, this._$AP?.(t));
573
+ void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
563
574
  }
564
- };
565
- class G {
575
+ }
576
+ class k {
566
577
  get tagName() {
567
578
  return this.element.tagName;
568
579
  }
@@ -570,54 +581,54 @@ class G {
570
581
  return this._$AM._$AU;
571
582
  }
572
583
  constructor(t, i, s, e, h) {
573
- this.type = 1, this._$AH = D, 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 = D;
584
+ this.type = 1, this._$AH = E, 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 = E;
574
585
  }
575
586
  _$AI(t, i = this, s, e) {
576
587
  const h = this.strings;
577
- let o = !1;
578
- if (void 0 === h) t = z(this, t, i, 0), o = !st(t) || t !== this._$AH && t !== R, o && (this._$AH = t);else {
588
+ let o = false;
589
+ if (void 0 === h) t = S(this, t, i, 0), o = !c$1(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
579
590
  const e = t;
580
591
  let n, r;
581
- for (t = h[0], n = 0; n < h.length - 1; n++) r = z(this, e[s + n], i, n), r === R && (r = this._$AH[n]), o ||= !st(r) || r !== this._$AH[n], r === D ? t = D : t !== D && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
592
+ for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c$1(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
582
593
  }
583
594
  o && !e && this.j(t);
584
595
  }
585
596
  j(t) {
586
- t === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
597
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
587
598
  }
588
599
  }
589
- class Y extends G {
600
+ class H extends k {
590
601
  constructor() {
591
602
  super(...arguments), this.type = 3;
592
603
  }
593
604
  j(t) {
594
- this.element[this.name] = t === D ? void 0 : t;
605
+ this.element[this.name] = t === E ? void 0 : t;
595
606
  }
596
607
  }
597
- class Z extends G {
608
+ class I extends k {
598
609
  constructor() {
599
610
  super(...arguments), this.type = 4;
600
611
  }
601
612
  j(t) {
602
- this.element.toggleAttribute(this.name, !!t && t !== D);
613
+ this.element.toggleAttribute(this.name, !!t && t !== E);
603
614
  }
604
615
  }
605
- class q extends G {
616
+ class L extends k {
606
617
  constructor(t, i, s, e, h) {
607
618
  super(t, i, s, e, h), this.type = 5;
608
619
  }
609
620
  _$AI(t, i = this) {
610
- if ((t = z(this, t, i, 0) ?? D) === R) return;
621
+ if ((t = S(this, t, i, 0) ?? E) === T) return;
611
622
  const s = this._$AH,
612
- e = t === D && s !== D || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
613
- h = t !== D && (s === D || e);
623
+ e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
624
+ h = t !== E && (s === E || e);
614
625
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
615
626
  }
616
627
  handleEvent(t) {
617
628
  "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
618
629
  }
619
630
  }
620
- class K {
631
+ class z {
621
632
  constructor(t, i, s) {
622
633
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
623
634
  }
@@ -625,33 +636,19 @@ class K {
625
636
  return this._$AM._$AU;
626
637
  }
627
638
  _$AI(t) {
628
- z(this, t);
639
+ S(this, t);
629
640
  }
630
641
  }
631
- const si = {
632
- M: f$1,
633
- P: v,
634
- A: m,
635
- C: 1,
636
- L: U,
637
- R: F,
638
- D: $,
639
- V: z,
640
- I: et$1,
641
- H: G,
642
- N: Z,
643
- U: q,
644
- B: Y,
645
- F: K
646
- },
647
- Re = n$1.litHtmlPolyfillSupport;
648
- Re?.(B, et$1), (n$1.litHtmlVersions ??= []).push("3.2.0");
649
- const Q = (t, i, s) => {
642
+ const Z = {
643
+ I: R},
644
+ j = t$2.litHtmlPolyfillSupport;
645
+ j?.(N, R), (t$2.litHtmlVersions ??= []).push("3.3.0");
646
+ const B = (t, i, s) => {
650
647
  const e = s?.renderBefore ?? i;
651
648
  let h = e._$litPart$;
652
649
  if (void 0 === h) {
653
650
  const t = s?.renderBefore ?? null;
654
- e._$litPart$ = h = new et$1(i.insertBefore(lt$1(), t), t, void 0, s ?? {});
651
+ e._$litPart$ = h = new R(i.insertBefore(l(), t), t, void 0, s ?? {});
655
652
  }
656
653
  return h._$AI(t), h;
657
654
  };
@@ -661,52 +658,47 @@ const Q = (t, i, s) => {
661
658
  * Copyright 2017 Google LLC
662
659
  * SPDX-License-Identifier: BSD-3-Clause
663
660
  */
664
- class h extends b {
661
+ const s$1 = globalThis;
662
+ let i$1 = class i extends y$1 {
665
663
  constructor() {
666
664
  super(...arguments), this.renderOptions = {
667
665
  host: this
668
- }, this.o = void 0;
666
+ }, this._$Do = void 0;
669
667
  }
670
668
  createRenderRoot() {
671
669
  const t = super.createRenderRoot();
672
670
  return this.renderOptions.renderBefore ??= t.firstChild, t;
673
671
  }
674
672
  update(t) {
675
- const e = this.render();
676
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Q(e, this.renderRoot, this.renderOptions);
673
+ const r = this.render();
674
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
677
675
  }
678
676
  connectedCallback() {
679
- super.connectedCallback(), this.o?.setConnected(!0);
677
+ super.connectedCallback(), this._$Do?.setConnected(true);
680
678
  }
681
679
  disconnectedCallback() {
682
- super.disconnectedCallback(), this.o?.setConnected(!1);
680
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
683
681
  }
684
682
  render() {
685
- return R;
683
+ return T;
686
684
  }
687
- }
688
- h._$litElement$ = !0, h["finalized"] = !0, globalThis.litElementHydrateSupport?.({
689
- LitElement: h
685
+ };
686
+ i$1._$litElement$ = true, i$1["finalized"] = true, s$1.litElementHydrateSupport?.({
687
+ LitElement: i$1
690
688
  });
691
- const f = globalThis.litElementPolyfillSupport;
692
- f?.({
693
- LitElement: h
689
+ const o$1 = s$1.litElementPolyfillSupport;
690
+ o$1?.({
691
+ LitElement: i$1
694
692
  });
695
- (globalThis.litElementVersions ??= []).push("4.1.0");
693
+ (s$1.litElementVersions ??= []).push("4.2.0");
696
694
 
697
695
  /**
698
696
  * @license
699
697
  * Copyright 2017 Google LLC
700
698
  * SPDX-License-Identifier: BSD-3-Clause
701
699
  */
702
- const t = {
703
- ATTRIBUTE: 1,
704
- CHILD: 2,
705
- PROPERTY: 3,
706
- BOOLEAN_ATTRIBUTE: 4,
707
- EVENT: 5,
708
- ELEMENT: 6
709
- },
700
+ const t$1 = {
701
+ CHILD: 2},
710
702
  e = t => (...e) => ({
711
703
  _$litDirective$: t,
712
704
  values: e
@@ -717,7 +709,7 @@ class i {
717
709
  return this._$AM._$AU;
718
710
  }
719
711
  _$AT(t, e, i) {
720
- this.t = t, this._$AM = e, this.i = i;
712
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
721
713
  }
722
714
  _$AS(t, e) {
723
715
  return this.update(t, e);
@@ -733,40 +725,40 @@ class i {
733
725
  * SPDX-License-Identifier: BSD-3-Clause
734
726
  */
735
727
  const {
736
- I: et
737
- } = si,
738
- lt = () => document.createComment(""),
739
- at = (o, t, i) => {
740
- const n = o._$AA.parentNode,
741
- e = void 0 === t ? o._$AB : t._$AA;
742
- if (void 0 === i) {
743
- const t = n.insertBefore(lt(), e),
744
- l = n.insertBefore(lt(), e);
745
- i = new et(t, l, o, o.options);
728
+ I: t
729
+ } = Z,
730
+ s = () => document.createComment(""),
731
+ r$2 = (o, i, n) => {
732
+ const e = o._$AA.parentNode,
733
+ l = void 0 === i ? o._$AB : i._$AA;
734
+ if (void 0 === n) {
735
+ const i = e.insertBefore(s(), l),
736
+ c = e.insertBefore(s(), l);
737
+ n = new t(i, c, o, o.options);
746
738
  } else {
747
- const t = i._$AB.nextSibling,
748
- l = i._$AM,
749
- c = l !== o;
739
+ const t = n._$AB.nextSibling,
740
+ i = n._$AM,
741
+ c = i !== o;
750
742
  if (c) {
751
743
  let t;
752
- i._$AQ?.(o), i._$AM = o, void 0 !== i._$AP && (t = o._$AU) !== l._$AU && i._$AP(t);
744
+ n._$AQ?.(o), n._$AM = o, void 0 !== n._$AP && (t = o._$AU) !== i._$AU && n._$AP(t);
753
745
  }
754
- if (t !== e || c) {
755
- let o = i._$AA;
746
+ if (t !== l || c) {
747
+ let o = n._$AA;
756
748
  for (; o !== t;) {
757
749
  const t = o.nextSibling;
758
- n.insertBefore(o, e), o = t;
750
+ e.insertBefore(o, l), o = t;
759
751
  }
760
752
  }
761
753
  }
762
- return i;
754
+ return n;
763
755
  },
764
- ct = (o, t, i = o) => (o._$AI(t, i), o),
765
- ht = {},
766
- dt = (o, t = ht) => o._$AH = t,
767
- ut = o => o._$AH,
768
- pt = o => {
769
- o._$AP?.(!1, !0);
756
+ v = (o, t, i = o) => (o._$AI(t, i), o),
757
+ u$1 = {},
758
+ m = (o, t = u$1) => o._$AH = t,
759
+ p = o => o._$AH,
760
+ M = o => {
761
+ o._$AP?.(false, true);
770
762
  let t = o._$AA;
771
763
  const i = o._$AB.nextSibling;
772
764
  for (; t !== i;) {
@@ -780,14 +772,14 @@ const {
780
772
  * Copyright 2017 Google LLC
781
773
  * SPDX-License-Identifier: BSD-3-Clause
782
774
  */
783
- const Jt = (e, s, t) => {
775
+ const u = (e, s, t) => {
784
776
  const r = new Map();
785
777
  for (let l = s; l <= t; l++) r.set(e[l], l);
786
778
  return r;
787
779
  },
788
- Qt = e(class extends i {
780
+ c = e(class extends i {
789
781
  constructor(e) {
790
- if (super(e), e.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
782
+ if (super(e), e.type !== t$1.CHILD) throw Error("repeat() can only be used in text expressions");
791
783
  }
792
784
  dt(e, s, t) {
793
785
  let r;
@@ -804,41 +796,41 @@ const Jt = (e, s, t) => {
804
796
  render(e, s, t) {
805
797
  return this.dt(e, s, t).values;
806
798
  }
807
- update(e, [s, t, r]) {
808
- const l = ut(e),
799
+ update(s, [t, r, c]) {
800
+ const d = p(s),
809
801
  {
810
- values: o,
811
- keys: i
812
- } = this.dt(s, t, r);
813
- if (!Array.isArray(l)) return this.ut = i, o;
814
- const n = this.ut ??= [],
815
- f = [];
816
- let u,
817
- c,
818
- d = 0,
819
- p = l.length - 1,
820
- a = 0,
821
- h = o.length - 1;
822
- for (; d <= p && a <= h;) if (null === l[d]) d++;else if (null === l[p]) p--;else if (n[d] === i[a]) f[a] = ct(l[d], o[a]), d++, a++;else if (n[p] === i[h]) f[h] = ct(l[p], o[h]), p--, h--;else if (n[d] === i[h]) f[h] = ct(l[d], o[h]), at(e, f[h + 1], l[d]), d++, h--;else if (n[p] === i[a]) f[a] = ct(l[p], o[a]), at(e, l[d], l[p]), p--, a++;else if (void 0 === u && (u = Jt(i, a, h), c = Jt(n, d, p)), u.has(n[d])) {
823
- if (u.has(n[p])) {
824
- const s = c.get(i[a]),
825
- t = void 0 !== s ? l[s] : null;
802
+ values: p$1,
803
+ keys: a
804
+ } = this.dt(t, r, c);
805
+ if (!Array.isArray(d)) return this.ut = a, p$1;
806
+ const h = this.ut ??= [],
807
+ v$1 = [];
808
+ let m$1,
809
+ y,
810
+ x = 0,
811
+ j = d.length - 1,
812
+ k = 0,
813
+ w = p$1.length - 1;
814
+ for (; x <= j && k <= w;) if (null === d[x]) x++;else if (null === d[j]) j--;else if (h[x] === a[k]) v$1[k] = v(d[x], p$1[k]), x++, k++;else if (h[j] === a[w]) v$1[w] = v(d[j], p$1[w]), j--, w--;else if (h[x] === a[w]) v$1[w] = v(d[x], p$1[w]), r$2(s, v$1[w + 1], d[x]), x++, w--;else if (h[j] === a[k]) v$1[k] = v(d[j], p$1[k]), r$2(s, d[x], d[j]), j--, k++;else if (void 0 === m$1 && (m$1 = u(a, k, w), y = u(h, x, j)), m$1.has(h[x])) {
815
+ if (m$1.has(h[j])) {
816
+ const e = y.get(a[k]),
817
+ t = void 0 !== e ? d[e] : null;
826
818
  if (null === t) {
827
- const s = at(e, l[d]);
828
- ct(s, o[a]), f[a] = s;
829
- } else f[a] = ct(t, o[a]), at(e, l[d], t), l[s] = null;
830
- a++;
831
- } else pt(l[p]), p--;
832
- } else pt(l[d]), d++;
833
- for (; a <= h;) {
834
- const s = at(e, f[h + 1]);
835
- ct(s, o[a]), f[a++] = s;
819
+ const e = r$2(s, d[x]);
820
+ v(e, p$1[k]), v$1[k] = e;
821
+ } else v$1[k] = v(t, p$1[k]), r$2(s, d[x], t), d[e] = null;
822
+ k++;
823
+ } else M(d[j]), j--;
824
+ } else M(d[x]), x++;
825
+ for (; k <= w;) {
826
+ const e = r$2(s, v$1[w + 1]);
827
+ v(e, p$1[k]), v$1[k++] = e;
836
828
  }
837
- for (; d <= p;) {
838
- const e = l[d++];
839
- null !== e && pt(e);
829
+ for (; x <= j;) {
830
+ const e = d[x++];
831
+ null !== e && M(e);
840
832
  }
841
- return this.ut = i, dt(e, f), R;
833
+ return this.ut = a, m(s, v$1), T;
842
834
  }
843
835
  });
844
836
 
@@ -848,11 +840,11 @@ const Jt = (e, s, t) => {
848
840
  * SPDX-License-Identifier: BSD-3-Clause
849
841
  */
850
842
  const o = {
851
- attribute: !0,
843
+ attribute: true,
852
844
  type: String,
853
- converter: u,
854
- reflect: !1,
855
- hasChanged: f$2
845
+ converter: u$3,
846
+ reflect: false,
847
+ hasChanged: f$1
856
848
  },
857
849
  r$1 = (t = o, e, r) => {
858
850
  const {
@@ -860,7 +852,7 @@ const o = {
860
852
  metadata: i
861
853
  } = r;
862
854
  let s = globalThis.litPropertyMetadata.get(i);
863
- if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), s.set(r.name, t), "accessor" === n) {
855
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
864
856
  const {
865
857
  name: o
866
858
  } = r;
@@ -870,7 +862,7 @@ const o = {
870
862
  e.set.call(this, r), this.requestUpdate(o, n, t);
871
863
  },
872
864
  init(e) {
873
- return void 0 !== e && this.P(o, void 0, t), e;
865
+ return void 0 !== e && this.C(o, void 0, t, e), e;
874
866
  }
875
867
  };
876
868
  }
@@ -888,10 +880,7 @@ const o = {
888
880
  function n(t) {
889
881
  return (e, o) => "object" == typeof o ? r$1(t, e, o) : ((t, e, o) => {
890
882
  const r = e.hasOwnProperty(o);
891
- return e.constructor.createProperty(o, r ? {
892
- ...t,
893
- wrapped: !0
894
- } : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
883
+ return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
895
884
  })(t, e, o);
896
885
  }
897
886
 
@@ -903,17 +892,17 @@ function n(t) {
903
892
  function r(r) {
904
893
  return n({
905
894
  ...r,
906
- state: !0,
907
- attribute: !1
895
+ state: true,
896
+ attribute: false
908
897
  });
909
898
  }
910
899
 
911
- class WidgetValue extends h {
900
+ class WidgetValue extends i$1 {
912
901
  constructor() {
913
902
  super();
914
903
  this.dataSets = new Map();
915
904
  this.textActive = true;
916
- this.version = '1.1.7';
905
+ this.version = '1.1.8';
917
906
  this.origWidth = 0;
918
907
  this.origHeight = 0;
919
908
  this.resizeObserver = new ResizeObserver(this.adjustSizes.bind(this));
@@ -932,10 +921,19 @@ class WidgetValue extends h {
932
921
  this.applyInputData();
933
922
  }
934
923
  update(changedProperties) {
924
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
935
925
  if (changedProperties.has('inputData')) {
936
926
  this.sizingSetup();
937
927
  this.applyInputData();
938
928
  }
929
+ if (changedProperties.has('theme')) {
930
+ const cssTextColor = getComputedStyle(this).getPropertyValue('--re-text-color').trim();
931
+ const cssBgColor = getComputedStyle(this).getPropertyValue('--re-background-color').trim();
932
+ this.themeBgColor = cssBgColor || ((_b = (_a = this.theme) === null || _a === void 0 ? void 0 : _a.theme_object) === null || _b === void 0 ? void 0 : _b.backgroundColor);
933
+ this.themeTitleColor = cssTextColor || ((_f = (_e = (_d = (_c = this.theme) === null || _c === void 0 ? void 0 : _c.theme_object) === null || _d === void 0 ? void 0 : _d.title) === null || _e === void 0 ? void 0 : _e.textStyle) === null || _f === void 0 ? void 0 : _f.color);
934
+ this.themeSubtitleColor =
935
+ cssTextColor || ((_k = (_j = (_h = (_g = this.theme) === null || _g === void 0 ? void 0 : _g.theme_object) === null || _h === void 0 ? void 0 : _h.title) === null || _j === void 0 ? void 0 : _j.subtextStyle) === null || _k === void 0 ? void 0 : _k.color) || this.themeTitleColor;
936
+ }
939
937
  super.update(changedProperties);
940
938
  }
941
939
  sizingSetup() {
@@ -988,16 +986,19 @@ class WidgetValue extends h {
988
986
  const label = n.getAttribute('label');
989
987
  const ds = this.dataSets.get(label !== null && label !== void 0 ? label : '');
990
988
  const numberText = n.querySelector('.current-value');
991
- numberText.setAttribute('style', `font-size: ${32 * modifier}px; ${((_a = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _a === void 0 ? void 0 : _a.valueColor) ? 'color: ' + ((_b = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _b === void 0 ? void 0 : _b.valueColor) : ''}`);
989
+ numberText.setAttribute('style', `font-size: ${32 * modifier}px;
990
+ ${((_a = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _a === void 0 ? void 0 : _a.valueColor) ? 'color: ' + ((_b = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _b === void 0 ? void 0 : _b.valueColor) : ''}`);
992
991
  });
993
992
  boxes === null || boxes === void 0 ? void 0 : boxes.forEach((n) => {
994
993
  var _a, _b, _c, _d;
995
994
  const label = n.getAttribute('label');
996
995
  const ds = this.dataSets.get(label !== null && label !== void 0 ? label : '');
997
996
  const labelText = n.querySelector('.label');
998
- labelText.setAttribute('style', `font-size: ${26 * modifier}px; ${((_a = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _a === void 0 ? void 0 : _a.labelColor) ? 'color: ' + ((_b = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _b === void 0 ? void 0 : _b.labelColor) : ''}`);
997
+ labelText.setAttribute('style', `font-size: ${26 * modifier}px;
998
+ ${((_a = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _a === void 0 ? void 0 : _a.labelColor) ? 'color: ' + ((_b = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _b === void 0 ? void 0 : _b.labelColor) : ''}`);
999
999
  const unitText = n.querySelector('.unit');
1000
- unitText.setAttribute('style', `font-size: ${26 * modifier}px; ${((_c = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _c === void 0 ? void 0 : _c.labelColor) ? 'color: ' + ((_d = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _d === void 0 ? void 0 : _d.labelColor) : ''}`);
1000
+ unitText.setAttribute('style', `font-size: ${26 * modifier}px;
1001
+ ${((_c = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _c === void 0 ? void 0 : _c.labelColor) ? 'color: ' + ((_d = ds === null || ds === void 0 ? void 0 : ds.styling) === null || _d === void 0 ? void 0 : _d.labelColor) : ''}`);
1001
1002
  });
1002
1003
  this.textActive = true;
1003
1004
  }
@@ -1056,19 +1057,32 @@ class WidgetValue extends h {
1056
1057
  }
1057
1058
  render() {
1058
1059
  var _a, _b, _c, _d;
1059
- return ke `
1060
- <div class="wrapper">
1060
+ return x `
1061
+ <div
1062
+ class="wrapper"
1063
+ style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
1064
+ >
1061
1065
  <header>
1062
1066
  <h3 class="paging" ?active=${(_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title}>${(_b = this.inputData) === null || _b === void 0 ? void 0 : _b.title}</h3>
1063
- <p class="paging" ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.subTitle}>${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.subTitle}</p>
1067
+ <p
1068
+ class="paging"
1069
+ ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.subTitle}
1070
+ style="color: ${this.themeSubtitleColor}"
1071
+ >
1072
+ ${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.subTitle}
1073
+ </p>
1064
1074
  </header>
1065
1075
  <div class="sizing-container">
1066
- ${Qt(this.dataSets, ([label]) => label, ([label, ds]) => {
1076
+ ${c(this.dataSets, ([label]) => label, ([label, ds]) => {
1067
1077
  var _a, _b;
1068
- return ke `
1078
+ return x `
1069
1079
  <div class="single-value" label="${label}">
1070
1080
  <div class="label paging" ?active=${this.textActive}>${label}</div>
1071
- <span class="current-value paging" ?active=${this.textActive}>
1081
+ <span
1082
+ class="current-value paging"
1083
+ ?active=${this.textActive}
1084
+ style="color: ${this.themeTitleColor}"
1085
+ >
1072
1086
  ${isNaN((_a = ds.needleValue) !== null && _a !== void 0 ? _a : 0) || ds.needleValue === undefined
1073
1087
  ? ''
1074
1088
  : ds.needleValue.toFixed(Math.max(0, (_b = ds.precision) !== null && _b !== void 0 ? _b : 0))}
@@ -1080,12 +1094,16 @@ class WidgetValue extends h {
1080
1094
  </div>
1081
1095
  <div class="paging no-data" ?active=${!this.dataSets.size}>No Data</div>
1082
1096
  <div class="value-container">
1083
- ${Qt([...this.dataSets.entries()].sort(), ([label]) => label, ([label, ds]) => {
1097
+ ${c([...this.dataSets.entries()].sort(), ([label]) => label, ([label, ds]) => {
1084
1098
  var _a, _b;
1085
- return ke `
1099
+ return x `
1086
1100
  <div class="single-value" label="${label}">
1087
1101
  <div class="label paging" ?active=${this.textActive}>${label}</div>
1088
- <span class="current-value paging" ?active=${this.textActive}>
1102
+ <span
1103
+ class="current-value paging"
1104
+ ?active=${this.textActive}
1105
+ style="color: ${this.themeTitleColor}"
1106
+ >
1089
1107
  ${isNaN((_a = ds.needleValue) !== null && _a !== void 0 ? _a : 0) || ds.needleValue === undefined
1090
1108
  ? ''
1091
1109
  : ds.needleValue.toFixed(Math.max(0, (_b = ds.precision) !== null && _b !== void 0 ? _b : 0))}
@@ -1099,7 +1117,7 @@ class WidgetValue extends h {
1099
1117
  `;
1100
1118
  }
1101
1119
  }
1102
- WidgetValue.styles = i$2 `
1120
+ WidgetValue.styles = i$4 `
1103
1121
  :host {
1104
1122
  display: block;
1105
1123
  font-family: sans-serif;
@@ -1127,7 +1145,6 @@ WidgetValue.styles = i$2 `
1127
1145
  overflow: hidden;
1128
1146
  text-overflow: ellipsis;
1129
1147
  white-space: nowrap;
1130
- color: var(--re-text-color, #000) !important;
1131
1148
  }
1132
1149
  p {
1133
1150
  margin: 10px 0 0 0;
@@ -1137,7 +1154,6 @@ WidgetValue.styles = i$2 `
1137
1154
  overflow: hidden;
1138
1155
  text-overflow: ellipsis;
1139
1156
  white-space: nowrap;
1140
- color: var(--re-text-color, #000) !important;
1141
1157
  }
1142
1158
 
1143
1159
  .value-container {
@@ -1165,14 +1181,12 @@ WidgetValue.styles = i$2 `
1165
1181
  font-size: 32px;
1166
1182
  font-weight: 600;
1167
1183
  white-space: nowrap;
1168
- color: var(--re-text-color, #000);
1169
1184
  }
1170
1185
 
1171
1186
  .label,
1172
1187
  .unit {
1173
1188
  font-weight: 300;
1174
1189
  font-size: 26px;
1175
- color: var(--re-text-color, #000);
1176
1190
  white-space: nowrap;
1177
1191
  }
1178
1192
 
@@ -1191,7 +1205,6 @@ WidgetValue.styles = i$2 `
1191
1205
 
1192
1206
  .no-data {
1193
1207
  font-size: 20px;
1194
- color: var(--re-text-color, #000);
1195
1208
  display: flex;
1196
1209
  height: 100%;
1197
1210
  width: 100%;
@@ -1203,6 +1216,9 @@ WidgetValue.styles = i$2 `
1203
1216
  __decorate([
1204
1217
  n({ type: Object })
1205
1218
  ], WidgetValue.prototype, "inputData", void 0);
1219
+ __decorate([
1220
+ n({ type: Object })
1221
+ ], WidgetValue.prototype, "theme", void 0);
1206
1222
  __decorate([
1207
1223
  r()
1208
1224
  ], WidgetValue.prototype, "dataSets", void 0);
@@ -1211,11 +1227,14 @@ __decorate([
1211
1227
  ], WidgetValue.prototype, "textActive", void 0);
1212
1228
  __decorate([
1213
1229
  r()
1214
- ], WidgetValue.prototype, "numberText", void 0);
1230
+ ], WidgetValue.prototype, "themeBgColor", void 0);
1231
+ __decorate([
1232
+ r()
1233
+ ], WidgetValue.prototype, "themeTitleColor", void 0);
1215
1234
  __decorate([
1216
1235
  r()
1217
- ], WidgetValue.prototype, "labelText", void 0);
1218
- window.customElements.define('widget-value-1.1.7', WidgetValue);
1236
+ ], WidgetValue.prototype, "themeSubtitleColor", void 0);
1237
+ window.customElements.define('widget-value-1.1.8', WidgetValue);
1219
1238
 
1220
1239
  export { WidgetValue };
1221
1240
  //# sourceMappingURL=widget-value.js.map