@record-evolution/widget-mapbox 1.4.20 → 1.5.1

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.
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
17
  ***************************************************************************** */
18
- /* global Reflect, Promise, SuppressedError, Symbol */
18
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
19
19
 
20
20
  function __decorate(decorators, target, key, desc) {
21
21
  var c = arguments.length,
@@ -34,21 +34,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
34
34
  * Copyright 2019 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
36
  */
37
- const t$3 = globalThis,
38
- e$3 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
39
- s$3 = Symbol(),
40
- o$3 = new WeakMap();
37
+ const t$1 = globalThis,
38
+ e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
39
+ s = Symbol(),
40
+ o$2 = new WeakMap();
41
41
  let n$3 = class n {
42
42
  constructor(t, e, o) {
43
- if (this._$cssResult$ = !0, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
43
+ if (this._$cssResult$ = !0, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
44
44
  this.cssText = t, this.t = e;
45
45
  }
46
46
  get styleSheet() {
47
47
  let t = this.o;
48
48
  const s = this.t;
49
- if (e$3 && void 0 === t) {
49
+ if (e$2 && void 0 === t) {
50
50
  const e = void 0 !== s && 1 === s.length;
51
- e && (t = o$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$3.set(s, t));
51
+ e && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$2.set(s, t));
52
52
  }
53
53
  return t;
54
54
  }
@@ -56,26 +56,26 @@ let n$3 = class n {
56
56
  return this.cssText;
57
57
  }
58
58
  };
59
- const r$6 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
60
- i$3 = (t, ...e) => {
59
+ const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
60
+ i$2 = (t, ...e) => {
61
61
  const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
62
62
  if (!0 === t._$cssResult$) return t.cssText;
63
63
  if ("number" == typeof t) return t;
64
64
  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.");
65
65
  })(s) + t[o + 1], t[0]);
66
- return new n$3(o, t, s$3);
66
+ return new n$3(o, t, s);
67
67
  },
68
68
  S$1 = (s, o) => {
69
- if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
69
+ if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
70
70
  const o = document.createElement("style"),
71
- n = t$3.litNonce;
71
+ n = t$1.litNonce;
72
72
  void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
73
73
  }
74
74
  },
75
- c$3 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
75
+ c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
76
76
  let e = "";
77
77
  for (const s of t.cssRules) e += s.cssText;
78
- return r$6(e);
78
+ return r$3(e);
79
79
  })(t) : t;
80
80
 
81
81
  /**
@@ -84,23 +84,23 @@ const r$6 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
85
  */
86
86
  const {
87
- is: i$2,
88
- defineProperty: e$2,
89
- getOwnPropertyDescriptor: r$5,
87
+ is: i$1,
88
+ defineProperty: e$1,
89
+ getOwnPropertyDescriptor: r$2,
90
90
  getOwnPropertyNames: h$2,
91
- getOwnPropertySymbols: o$2,
91
+ getOwnPropertySymbols: o$1,
92
92
  getPrototypeOf: n$2
93
93
  } = Object,
94
- a$1 = globalThis,
95
- c$2 = a$1.trustedTypes,
96
- l$1 = c$2 ? c$2.emptyScript : "",
97
- p$2 = a$1.reactiveElementPolyfillSupport,
98
- d$1 = (t, s) => t,
99
- u$3 = {
94
+ a = globalThis,
95
+ c$1 = a.trustedTypes,
96
+ l = c$1 ? c$1.emptyScript : "",
97
+ p = a.reactiveElementPolyfillSupport,
98
+ d = (t, s) => t,
99
+ u = {
100
100
  toAttribute(t, s) {
101
101
  switch (s) {
102
102
  case Boolean:
103
- t = t ? l$1 : null;
103
+ t = t ? l : null;
104
104
  break;
105
105
  case Object:
106
106
  case Array:
@@ -128,15 +128,15 @@ const {
128
128
  return i;
129
129
  }
130
130
  },
131
- f$1 = (t, s) => !i$2(t, s),
132
- y$1 = {
131
+ f$2 = (t, s) => !i$1(t, s),
132
+ y = {
133
133
  attribute: !0,
134
134
  type: String,
135
- converter: u$3,
135
+ converter: u,
136
136
  reflect: !1,
137
- hasChanged: f$1
137
+ hasChanged: f$2
138
138
  };
139
- Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
139
+ Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
140
140
  class b extends HTMLElement {
141
141
  static addInitializer(t) {
142
142
  this._$Ei(), (this.l ??= []).push(t);
@@ -144,18 +144,18 @@ class b extends HTMLElement {
144
144
  static get observedAttributes() {
145
145
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
146
146
  }
147
- static createProperty(t, s = y$1) {
147
+ static createProperty(t, s = y) {
148
148
  if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
149
149
  const i = Symbol(),
150
150
  r = this.getPropertyDescriptor(t, i, s);
151
- void 0 !== r && e$2(this.prototype, t, r);
151
+ void 0 !== r && e$1(this.prototype, t, r);
152
152
  }
153
153
  }
154
154
  static getPropertyDescriptor(t, s, i) {
155
155
  const {
156
156
  get: e,
157
157
  set: h
158
- } = r$5(this.prototype, t) ?? {
158
+ } = r$2(this.prototype, t) ?? {
159
159
  get() {
160
160
  return this[s];
161
161
  },
@@ -176,18 +176,18 @@ class b extends HTMLElement {
176
176
  };
177
177
  }
178
178
  static getPropertyOptions(t) {
179
- return this.elementProperties.get(t) ?? y$1;
179
+ return this.elementProperties.get(t) ?? y;
180
180
  }
181
181
  static _$Ei() {
182
- if (this.hasOwnProperty(d$1("elementProperties"))) return;
182
+ if (this.hasOwnProperty(d("elementProperties"))) return;
183
183
  const t = n$2(this);
184
184
  t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
185
185
  }
186
186
  static finalize() {
187
- if (this.hasOwnProperty(d$1("finalized"))) return;
188
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
187
+ if (this.hasOwnProperty(d("finalized"))) return;
188
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
189
189
  const t = this.properties,
190
- s = [...h$2(t), ...o$2(t)];
190
+ s = [...h$2(t), ...o$1(t)];
191
191
  for (const i of s) this.createProperty(i, t[i]);
192
192
  }
193
193
  const t = this[Symbol.metadata];
@@ -206,8 +206,8 @@ class b extends HTMLElement {
206
206
  const i = [];
207
207
  if (Array.isArray(s)) {
208
208
  const e = new Set(s.flat(1 / 0).reverse());
209
- for (const s of e) i.unshift(c$3(s));
210
- } else void 0 !== s && i.push(c$3(s));
209
+ for (const s of e) i.unshift(c$2(s));
210
+ } else void 0 !== s && i.push(c$2(s));
211
211
  return i;
212
212
  }
213
213
  static _$Eu(t, s) {
@@ -218,13 +218,13 @@ class b extends HTMLElement {
218
218
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
219
219
  }
220
220
  _$Ev() {
221
- this._$Eg = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
221
+ this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
222
222
  }
223
223
  addController(t) {
224
- (this._$ES ??= []).push(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
224
+ (this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
225
225
  }
226
226
  removeController(t) {
227
- this._$ES?.splice(this._$ES.indexOf(t) >>> 0, 1);
227
+ this._$EO?.delete(t);
228
228
  }
229
229
  _$E_() {
230
230
  const t = new Map(),
@@ -237,20 +237,20 @@ class b extends HTMLElement {
237
237
  return S$1(t, this.constructor.elementStyles), t;
238
238
  }
239
239
  connectedCallback() {
240
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$ES?.forEach(t => t.hostConnected?.());
240
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(t => t.hostConnected?.());
241
241
  }
242
242
  enableUpdating(t) {}
243
243
  disconnectedCallback() {
244
- this._$ES?.forEach(t => t.hostDisconnected?.());
244
+ this._$EO?.forEach(t => t.hostDisconnected?.());
245
245
  }
246
246
  attributeChangedCallback(t, s, i) {
247
247
  this._$AK(t, i);
248
248
  }
249
- _$EO(t, s) {
249
+ _$EC(t, s) {
250
250
  const i = this.constructor.elementProperties.get(t),
251
251
  e = this.constructor._$Eu(t, i);
252
252
  if (void 0 !== e && !0 === i.reflect) {
253
- const r = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
253
+ const r = (void 0 !== i.converter?.toAttribute ? i.converter : u).toAttribute(s, i.type);
254
254
  this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
255
255
  }
256
256
  }
@@ -261,24 +261,24 @@ class b extends HTMLElement {
261
261
  const t = i.getPropertyOptions(e),
262
262
  r = "function" == typeof t.converter ? {
263
263
  fromAttribute: t.converter
264
- } : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
264
+ } : void 0 !== t.converter?.fromAttribute ? t.converter : u;
265
265
  this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
266
266
  }
267
267
  }
268
- requestUpdate(t, s, i, e = !1, r) {
268
+ requestUpdate(t, s, i) {
269
269
  if (void 0 !== t) {
270
- if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$1)(e ? r : this[t], s)) return;
271
- this.C(t, s, i);
270
+ if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$2)(this[t], s)) return;
271
+ this.P(t, s, i);
272
272
  }
273
- !1 === this.isUpdatePending && (this._$Eg = this._$EP());
273
+ !1 === this.isUpdatePending && (this._$ES = this._$ET());
274
274
  }
275
- C(t, s, i) {
275
+ P(t, s, i) {
276
276
  this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
277
277
  }
278
- async _$EP() {
278
+ async _$ET() {
279
279
  this.isUpdatePending = !0;
280
280
  try {
281
- await this._$Eg;
281
+ await this._$ES;
282
282
  } catch (t) {
283
283
  Promise.reject(t);
284
284
  }
@@ -291,179 +291,179 @@ class b extends HTMLElement {
291
291
  performUpdate() {
292
292
  if (!this.isUpdatePending) return;
293
293
  if (!this.hasUpdated) {
294
- if (this._$Ep) {
294
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
295
295
  for (const [t, s] of this._$Ep) this[t] = s;
296
296
  this._$Ep = void 0;
297
297
  }
298
298
  const t = this.constructor.elementProperties;
299
- if (t.size > 0) for (const [s, i] of t) !0 !== i.wrapped || this._$AL.has(s) || void 0 === this[s] || this.C(s, this[s], i);
299
+ 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);
300
300
  }
301
301
  let t = !1;
302
302
  const s = this._$AL;
303
303
  try {
304
- t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$ES?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$ET();
304
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EU();
305
305
  } catch (s) {
306
- throw t = !1, this._$ET(), s;
306
+ throw t = !1, this._$EU(), s;
307
307
  }
308
308
  t && this._$AE(s);
309
309
  }
310
310
  willUpdate(t) {}
311
311
  _$AE(t) {
312
- this._$ES?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
312
+ this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
313
313
  }
314
- _$ET() {
314
+ _$EU() {
315
315
  this._$AL = new Map(), this.isUpdatePending = !1;
316
316
  }
317
317
  get updateComplete() {
318
318
  return this.getUpdateComplete();
319
319
  }
320
320
  getUpdateComplete() {
321
- return this._$Eg;
321
+ return this._$ES;
322
322
  }
323
323
  shouldUpdate(t) {
324
324
  return !0;
325
325
  }
326
326
  update(t) {
327
- this._$Ej &&= this._$Ej.forEach(t => this._$EO(t, this[t])), this._$ET();
327
+ this._$Ej &&= this._$Ej.forEach(t => this._$EC(t, this[t])), this._$EU();
328
328
  }
329
329
  updated(t) {}
330
330
  firstUpdated(t) {}
331
331
  }
332
332
  b.elementStyles = [], b.shadowRootOptions = {
333
333
  mode: "open"
334
- }, b[d$1("elementProperties")] = new Map(), b[d$1("finalized")] = new Map(), p$2?.({
334
+ }, b[d("elementProperties")] = new Map(), b[d("finalized")] = new Map(), p?.({
335
335
  ReactiveElement: b
336
- }), (a$1.reactiveElementVersions ??= []).push("2.0.1");
336
+ }), (a.reactiveElementVersions ??= []).push("2.0.4");
337
337
 
338
338
  /**
339
339
  * @license
340
340
  * Copyright 2017 Google LLC
341
341
  * SPDX-License-Identifier: BSD-3-Clause
342
342
  */
343
- const t$2 = globalThis,
344
- i$1 = t$2.trustedTypes,
345
- s$2 = i$1 ? i$1.createPolicy("lit-html", {
343
+ const n$1 = globalThis,
344
+ c = n$1.trustedTypes,
345
+ h$1 = c ? c.createPolicy("lit-html", {
346
346
  createHTML: t => t
347
347
  }) : void 0,
348
- e$1 = "$lit$",
349
- h$1 = `lit$${(Math.random() + "").slice(9)}$`,
350
- o$1 = "?" + h$1,
351
- n$1 = `<${o$1}>`,
352
- r$4 = document,
353
- l = () => r$4.createComment(""),
354
- c$1 = t => null === t || "object" != typeof t && "function" != typeof t,
355
- a = Array.isArray,
356
- u$2 = t => a(t) || "function" == typeof t?.[Symbol.iterator],
357
- d = "[ \t\n\f\r]",
358
- f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
359
- v$1 = /-->/g,
360
- _ = />/g,
361
- m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
362
- p$1 = /'/g,
363
- g = /"/g,
364
- $ = /^(?:script|style|textarea|title)$/i,
365
- y = t => (i, ...s) => ({
348
+ f$1 = "$lit$",
349
+ v = `lit$${Math.random().toFixed(9).slice(2)}$`,
350
+ m = "?" + v,
351
+ _ = `<${m}>`,
352
+ w = document,
353
+ lt$1 = () => w.createComment(""),
354
+ st = t => null === t || "object" != typeof t && "function" != typeof t,
355
+ g = Array.isArray,
356
+ $ = t => g(t) || "function" == typeof t?.[Symbol.iterator],
357
+ x = "[ \t\n\f\r]",
358
+ T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
359
+ E = /-->/g,
360
+ k = />/g,
361
+ O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
362
+ S = /'/g,
363
+ j = /"/g,
364
+ M = /^(?:script|style|textarea|title)$/i,
365
+ P = t => (i, ...s) => ({
366
366
  _$litType$: t,
367
367
  strings: i,
368
368
  values: s
369
369
  }),
370
- x = y(1),
371
- w = Symbol.for("lit-noChange"),
372
- T = Symbol.for("lit-nothing"),
373
- A = new WeakMap(),
374
- E = r$4.createTreeWalker(r$4, 129);
375
- function C(t, i) {
376
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
377
- return void 0 !== s$2 ? s$2.createHTML(i) : i;
370
+ ke = P(1),
371
+ R = Symbol.for("lit-noChange"),
372
+ D = Symbol.for("lit-nothing"),
373
+ V = new WeakMap(),
374
+ I = w.createTreeWalker(w, 129);
375
+ function N(t, i) {
376
+ if (!g(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
377
+ return void 0 !== h$1 ? h$1.createHTML(i) : i;
378
378
  }
379
- const P = (t, i) => {
379
+ const U = (t, i) => {
380
380
  const s = t.length - 1,
381
- o = [];
382
- let r,
383
- l = 2 === i ? "<svg>" : "",
384
- c = f;
381
+ e = [];
382
+ let h,
383
+ o = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
384
+ n = T;
385
385
  for (let i = 0; i < s; i++) {
386
386
  const s = t[i];
387
- let a,
388
- u,
389
- d = -1,
390
- y = 0;
391
- 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);
392
- const x = c === m$1 && t[i + 1].startsWith("/>") ? " " : "";
393
- l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e$1 + s.slice(d) + h$1 + x) : s + h$1 + (-2 === d ? i : x);
394
- }
395
- return [C(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), o];
387
+ let r,
388
+ l,
389
+ c = -1,
390
+ a = 0;
391
+ 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);
392
+ const u = n === O && t[i + 1].startsWith("/>") ? " " : "";
393
+ 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);
394
+ }
395
+ return [N(t, o + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
396
396
  };
397
- class V {
397
+ class B {
398
398
  constructor({
399
399
  strings: t,
400
- _$litType$: s
401
- }, n) {
402
- let r;
400
+ _$litType$: i
401
+ }, s) {
402
+ let e;
403
403
  this.parts = [];
404
- let c = 0,
405
- a = 0;
406
- const u = t.length - 1,
407
- d = this.parts,
408
- [f, v] = P(t, s);
409
- if (this.el = V.createElement(f, n), E.currentNode = this.el.content, 2 === s) {
404
+ let h = 0,
405
+ o = 0;
406
+ const n = t.length - 1,
407
+ r = this.parts,
408
+ [l, a] = U(t, i);
409
+ if (this.el = B.createElement(l, s), I.currentNode = this.el.content, 2 === i || 3 === i) {
410
410
  const t = this.el.content.firstChild;
411
411
  t.replaceWith(...t.childNodes);
412
412
  }
413
- for (; null !== (r = E.nextNode()) && d.length < u;) {
414
- if (1 === r.nodeType) {
415
- if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$1)) {
416
- const i = v[a++],
417
- s = r.getAttribute(t).split(h$1),
418
- e = /([.?@])?(.*)/.exec(i);
419
- d.push({
413
+ for (; null !== (e = I.nextNode()) && r.length < n;) {
414
+ if (1 === e.nodeType) {
415
+ if (e.hasAttributes()) for (const t of e.getAttributeNames()) if (t.endsWith(f$1)) {
416
+ const i = a[o++],
417
+ s = e.getAttribute(t).split(v),
418
+ n = /([.?@])?(.*)/.exec(i);
419
+ r.push({
420
420
  type: 1,
421
- index: c,
422
- name: e[2],
421
+ index: h,
422
+ name: n[2],
423
423
  strings: s,
424
- ctor: "." === e[1] ? k : "?" === e[1] ? H : "@" === e[1] ? I : R
425
- }), r.removeAttribute(t);
426
- } else t.startsWith(h$1) && (d.push({
424
+ ctor: "." === n[1] ? Y : "?" === n[1] ? Z : "@" === n[1] ? q : G
425
+ }), e.removeAttribute(t);
426
+ } else t.startsWith(v) && (r.push({
427
427
  type: 6,
428
- index: c
429
- }), r.removeAttribute(t));
430
- if ($.test(r.tagName)) {
431
- const t = r.textContent.split(h$1),
432
- s = t.length - 1;
433
- if (s > 0) {
434
- r.textContent = i$1 ? i$1.emptyScript : "";
435
- for (let i = 0; i < s; i++) r.append(t[i], l()), E.nextNode(), d.push({
428
+ index: h
429
+ }), e.removeAttribute(t));
430
+ if (M.test(e.tagName)) {
431
+ const t = e.textContent.split(v),
432
+ i = t.length - 1;
433
+ if (i > 0) {
434
+ e.textContent = c ? c.emptyScript : "";
435
+ for (let s = 0; s < i; s++) e.append(t[s], lt$1()), I.nextNode(), r.push({
436
436
  type: 2,
437
- index: ++c
437
+ index: ++h
438
438
  });
439
- r.append(t[s], l());
439
+ e.append(t[i], lt$1());
440
440
  }
441
441
  }
442
- } else if (8 === r.nodeType) if (r.data === o$1) d.push({
442
+ } else if (8 === e.nodeType) if (e.data === m) r.push({
443
443
  type: 2,
444
- index: c
444
+ index: h
445
445
  });else {
446
446
  let t = -1;
447
- for (; -1 !== (t = r.data.indexOf(h$1, t + 1));) d.push({
447
+ for (; -1 !== (t = e.data.indexOf(v, t + 1));) r.push({
448
448
  type: 7,
449
- index: c
450
- }), t += h$1.length - 1;
449
+ index: h
450
+ }), t += v.length - 1;
451
451
  }
452
- c++;
452
+ h++;
453
453
  }
454
454
  }
455
455
  static createElement(t, i) {
456
- const s = r$4.createElement("template");
456
+ const s = w.createElement("template");
457
457
  return s.innerHTML = t, s;
458
458
  }
459
459
  }
460
- function N(t, i, s = t, e) {
461
- if (i === w) return i;
462
- let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
463
- const o = c$1(i) ? void 0 : i._$litDirective$;
464
- return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = N(t, h._$AS(t, i.values), h, e)), i;
460
+ function z(t, i, s = t, e) {
461
+ if (i === R) return i;
462
+ let h = void 0 !== e ? s.o?.[e] : s.l;
463
+ const o = st(i) ? void 0 : i._$litDirective$;
464
+ 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;
465
465
  }
466
- class S {
466
+ class F {
467
467
  constructor(t, i) {
468
468
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
469
469
  }
@@ -480,32 +480,32 @@ class S {
480
480
  },
481
481
  parts: s
482
482
  } = this._$AD,
483
- e = (t?.creationScope ?? r$4).importNode(i, !0);
484
- E.currentNode = e;
485
- let h = E.nextNode(),
483
+ e = (t?.creationScope ?? w).importNode(i, !0);
484
+ I.currentNode = e;
485
+ let h = I.nextNode(),
486
486
  o = 0,
487
487
  n = 0,
488
- l = s[0];
489
- for (; void 0 !== l;) {
490
- if (o === l.index) {
488
+ r = s[0];
489
+ for (; void 0 !== r;) {
490
+ if (o === r.index) {
491
491
  let i;
492
- 2 === l.type ? i = new M(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new L(h, this, t)), this._$AV.push(i), l = s[++n];
492
+ 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];
493
493
  }
494
- o !== l?.index && (h = E.nextNode(), o++);
494
+ o !== r?.index && (h = I.nextNode(), o++);
495
495
  }
496
- return E.currentNode = r$4, e;
496
+ return I.currentNode = w, e;
497
497
  }
498
498
  p(t) {
499
499
  let i = 0;
500
500
  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++;
501
501
  }
502
502
  }
503
- class M {
503
+ let et$1 = class et {
504
504
  get _$AU() {
505
- return this._$AM?._$AU ?? this._$Cv;
505
+ return this._$AM?._$AU ?? this.v;
506
506
  }
507
507
  constructor(t, i, s, e) {
508
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? !0;
508
+ 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;
509
509
  }
510
510
  get parentNode() {
511
511
  let t = this._$AA.parentNode;
@@ -519,39 +519,39 @@ class M {
519
519
  return this._$AB;
520
520
  }
521
521
  _$AI(t, i = this) {
522
- t = N(this, t, i), c$1(t) ? t === T || null == t || "" === t ? (this._$AH !== T && this._$AR(), this._$AH = T) : t !== this._$AH && t !== w && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : u$2(t) ? this.T(t) : this._(t);
522
+ 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);
523
523
  }
524
- k(t) {
524
+ O(t) {
525
525
  return this._$AA.parentNode.insertBefore(t, this._$AB);
526
526
  }
527
- $(t) {
528
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
527
+ T(t) {
528
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
529
529
  }
530
530
  _(t) {
531
- this._$AH !== T && c$1(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r$4.createTextNode(t)), this._$AH = t;
531
+ this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
532
532
  }
533
- g(t) {
533
+ $(t) {
534
534
  const {
535
535
  values: i,
536
536
  _$litType$: s
537
537
  } = t,
538
- e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = V.createElement(C(s.h, s.h[0]), this.options)), s);
538
+ e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = B.createElement(N(s.h, s.h[0]), this.options)), s);
539
539
  if (this._$AH?._$AD === e) this._$AH.p(i);else {
540
- const t = new S(e, this),
540
+ const t = new F(e, this),
541
541
  s = t.u(this.options);
542
- t.p(i), this.$(s), this._$AH = t;
542
+ t.p(i), this.T(s), this._$AH = t;
543
543
  }
544
544
  }
545
545
  _$AC(t) {
546
- let i = A.get(t.strings);
547
- return void 0 === i && A.set(t.strings, i = new V(t)), i;
546
+ let i = V.get(t.strings);
547
+ return void 0 === i && V.set(t.strings, i = new B(t)), i;
548
548
  }
549
- T(t) {
550
- a(this._$AH) || (this._$AH = [], this._$AR());
549
+ k(t) {
550
+ g(this._$AH) || (this._$AH = [], this._$AR());
551
551
  const i = this._$AH;
552
552
  let s,
553
553
  e = 0;
554
- for (const h of t) e === i.length ? i.push(s = new M(this.k(l()), this.k(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
554
+ 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++;
555
555
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
556
556
  }
557
557
  _$AR(t = this._$AA.nextSibling, i) {
@@ -561,10 +561,10 @@ class M {
561
561
  }
562
562
  }
563
563
  setConnected(t) {
564
- void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
564
+ void 0 === this._$AM && (this.v = t, this._$AP?.(t));
565
565
  }
566
- }
567
- class R {
566
+ };
567
+ class G {
568
568
  get tagName() {
569
569
  return this.element.tagName;
570
570
  }
@@ -572,54 +572,54 @@ class R {
572
572
  return this._$AM._$AU;
573
573
  }
574
574
  constructor(t, i, s, e, h) {
575
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = T;
575
+ 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;
576
576
  }
577
577
  _$AI(t, i = this, s, e) {
578
578
  const h = this.strings;
579
579
  let o = !1;
580
- if (void 0 === h) t = N(this, t, i, 0), o = !c$1(t) || t !== this._$AH && t !== w, o && (this._$AH = t);else {
580
+ if (void 0 === h) t = z(this, t, i, 0), o = !st(t) || t !== this._$AH && t !== R, o && (this._$AH = t);else {
581
581
  const e = t;
582
582
  let n, r;
583
- for (t = h[0], n = 0; n < h.length - 1; n++) r = N(this, e[s + n], i, n), r === w && (r = this._$AH[n]), o ||= !c$1(r) || r !== this._$AH[n], r === T ? t = T : t !== T && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
583
+ 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;
584
584
  }
585
- o && !e && this.O(t);
585
+ o && !e && this.j(t);
586
586
  }
587
- O(t) {
588
- t === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
587
+ j(t) {
588
+ t === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
589
589
  }
590
590
  }
591
- class k extends R {
591
+ class Y extends G {
592
592
  constructor() {
593
593
  super(...arguments), this.type = 3;
594
594
  }
595
- O(t) {
596
- this.element[this.name] = t === T ? void 0 : t;
595
+ j(t) {
596
+ this.element[this.name] = t === D ? void 0 : t;
597
597
  }
598
598
  }
599
- class H extends R {
599
+ class Z extends G {
600
600
  constructor() {
601
601
  super(...arguments), this.type = 4;
602
602
  }
603
- O(t) {
604
- this.element.toggleAttribute(this.name, !!t && t !== T);
603
+ j(t) {
604
+ this.element.toggleAttribute(this.name, !!t && t !== D);
605
605
  }
606
606
  }
607
- class I extends R {
607
+ class q extends G {
608
608
  constructor(t, i, s, e, h) {
609
609
  super(t, i, s, e, h), this.type = 5;
610
610
  }
611
611
  _$AI(t, i = this) {
612
- if ((t = N(this, t, i, 0) ?? T) === w) return;
612
+ if ((t = z(this, t, i, 0) ?? D) === R) return;
613
613
  const s = this._$AH,
614
- e = t === T && s !== T || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
615
- h = t !== T && (s === T || e);
614
+ e = t === D && s !== D || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
615
+ h = t !== D && (s === D || e);
616
616
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
617
617
  }
618
618
  handleEvent(t) {
619
619
  "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
620
620
  }
621
621
  }
622
- class L {
622
+ class K {
623
623
  constructor(t, i, s) {
624
624
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
625
625
  }
@@ -627,33 +627,33 @@ class L {
627
627
  return this._$AM._$AU;
628
628
  }
629
629
  _$AI(t) {
630
- N(this, t);
630
+ z(this, t);
631
631
  }
632
632
  }
633
- const z = {
634
- j: e$1,
635
- P: h$1,
636
- A: o$1,
633
+ const si = {
634
+ M: f$1,
635
+ P: v,
636
+ A: m,
637
637
  C: 1,
638
- M: P,
639
- L: S,
640
- R: u$2,
641
- V: N,
642
- D: M,
643
- I: R,
644
- H,
645
- N: I,
646
- U: k,
647
- B: L
638
+ L: U,
639
+ R: F,
640
+ D: $,
641
+ V: z,
642
+ I: et$1,
643
+ H: G,
644
+ N: Z,
645
+ U: q,
646
+ B: Y,
647
+ F: K
648
648
  },
649
- Z = t$2.litHtmlPolyfillSupport;
650
- Z?.(V, M), (t$2.litHtmlVersions ??= []).push("3.0.2");
651
- const j = (t, i, s) => {
649
+ Re = n$1.litHtmlPolyfillSupport;
650
+ Re?.(B, et$1), (n$1.litHtmlVersions ??= []).push("3.2.0");
651
+ const Q = (t, i, s) => {
652
652
  const e = s?.renderBefore ?? i;
653
653
  let h = e._$litPart$;
654
654
  if (void 0 === h) {
655
655
  const t = s?.renderBefore ?? null;
656
- e._$litPart$ = h = new M(i.insertBefore(l(), t), t, void 0, s ?? {});
656
+ e._$litPart$ = h = new et$1(i.insertBefore(lt$1(), t), t, void 0, s ?? {});
657
657
  }
658
658
  return h._$AI(t), h;
659
659
  };
@@ -663,38 +663,38 @@ const j = (t, i, s) => {
663
663
  * Copyright 2017 Google LLC
664
664
  * SPDX-License-Identifier: BSD-3-Clause
665
665
  */
666
- let s$1 = class s extends b {
666
+ class h extends b {
667
667
  constructor() {
668
668
  super(...arguments), this.renderOptions = {
669
669
  host: this
670
- }, this._$Do = void 0;
670
+ }, this.o = void 0;
671
671
  }
672
672
  createRenderRoot() {
673
673
  const t = super.createRenderRoot();
674
674
  return this.renderOptions.renderBefore ??= t.firstChild, t;
675
675
  }
676
676
  update(t) {
677
- const i = this.render();
678
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = j(i, this.renderRoot, this.renderOptions);
677
+ const e = this.render();
678
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Q(e, this.renderRoot, this.renderOptions);
679
679
  }
680
680
  connectedCallback() {
681
- super.connectedCallback(), this._$Do?.setConnected(!0);
681
+ super.connectedCallback(), this.o?.setConnected(!0);
682
682
  }
683
683
  disconnectedCallback() {
684
- super.disconnectedCallback(), this._$Do?.setConnected(!1);
684
+ super.disconnectedCallback(), this.o?.setConnected(!1);
685
685
  }
686
686
  render() {
687
- return w;
687
+ return R;
688
688
  }
689
- };
690
- s$1._$litElement$ = !0, s$1[("finalized")] = !0, globalThis.litElementHydrateSupport?.({
691
- LitElement: s$1
689
+ }
690
+ h._$litElement$ = !0, h["finalized"] = !0, globalThis.litElementHydrateSupport?.({
691
+ LitElement: h
692
692
  });
693
- const r$3 = globalThis.litElementPolyfillSupport;
694
- r$3?.({
695
- LitElement: s$1
693
+ const f = globalThis.litElementPolyfillSupport;
694
+ f?.({
695
+ LitElement: h
696
696
  });
697
- (globalThis.litElementVersions ??= []).push("4.0.1");
697
+ (globalThis.litElementVersions ??= []).push("4.1.0");
698
698
 
699
699
  /**
700
700
  * @license
@@ -704,11 +704,11 @@ r$3?.({
704
704
  const o = {
705
705
  attribute: !0,
706
706
  type: String,
707
- converter: u$3,
707
+ converter: u,
708
708
  reflect: !1,
709
- hasChanged: f$1
709
+ hasChanged: f$2
710
710
  },
711
- r$2 = (t = o, e, r) => {
711
+ r$1 = (t = o, e, r) => {
712
712
  const {
713
713
  kind: n,
714
714
  metadata: i
@@ -724,7 +724,7 @@ const o = {
724
724
  e.set.call(this, r), this.requestUpdate(o, n, t);
725
725
  },
726
726
  init(e) {
727
- return void 0 !== e && this.C(o, void 0, t), e;
727
+ return void 0 !== e && this.P(o, void 0, t), e;
728
728
  }
729
729
  };
730
730
  }
@@ -740,7 +740,7 @@ const o = {
740
740
  throw Error("Unsupported decorator location: " + n);
741
741
  };
742
742
  function n(t) {
743
- return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
743
+ return (e, o) => "object" == typeof o ? r$1(t, e, o) : ((t, e, o) => {
744
744
  const r = e.hasOwnProperty(o);
745
745
  return e.constructor.createProperty(o, r ? {
746
746
  ...t,
@@ -754,7 +754,7 @@ function n(t) {
754
754
  * Copyright 2017 Google LLC
755
755
  * SPDX-License-Identifier: BSD-3-Clause
756
756
  */
757
- function r$1(r) {
757
+ function r(r) {
758
758
  return n({
759
759
  ...r,
760
760
  state: !0,
@@ -767,7 +767,7 @@ function r$1(r) {
767
767
  * Copyright 2017 Google LLC
768
768
  * SPDX-License-Identifier: BSD-3-Clause
769
769
  */
770
- const t$1 = {
770
+ const t = {
771
771
  ATTRIBUTE: 1,
772
772
  CHILD: 2,
773
773
  PROPERTY: 3,
@@ -785,7 +785,7 @@ class i {
785
785
  return this._$AM._$AU;
786
786
  }
787
787
  _$AT(t, e, i) {
788
- this._$Ct = t, this._$AM = e, this._$Ci = i;
788
+ this.t = t, this._$AM = e, this.i = i;
789
789
  }
790
790
  _$AS(t, e) {
791
791
  return this.update(t, e);
@@ -801,39 +801,39 @@ class i {
801
801
  * SPDX-License-Identifier: BSD-3-Clause
802
802
  */
803
803
  const {
804
- D: t
805
- } = z,
806
- s = () => document.createComment(""),
807
- r = (o, i, n) => {
808
- const e = o._$AA.parentNode,
809
- l = void 0 === i ? o._$AB : i._$AA;
810
- if (void 0 === n) {
811
- const i = e.insertBefore(s(), l),
812
- c = e.insertBefore(s(), l);
813
- n = new t(i, c, o, o.options);
804
+ I: et
805
+ } = si,
806
+ lt = () => document.createComment(""),
807
+ at = (o, t, i) => {
808
+ const n = o._$AA.parentNode,
809
+ e = void 0 === t ? o._$AB : t._$AA;
810
+ if (void 0 === i) {
811
+ const t = n.insertBefore(lt(), e),
812
+ l = n.insertBefore(lt(), e);
813
+ i = new et(t, l, o, o.options);
814
814
  } else {
815
- const t = n._$AB.nextSibling,
816
- i = n._$AM,
817
- c = i !== o;
815
+ const t = i._$AB.nextSibling,
816
+ l = i._$AM,
817
+ c = l !== o;
818
818
  if (c) {
819
819
  let t;
820
- n._$AQ?.(o), n._$AM = o, void 0 !== n._$AP && (t = o._$AU) !== i._$AU && n._$AP(t);
820
+ i._$AQ?.(o), i._$AM = o, void 0 !== i._$AP && (t = o._$AU) !== l._$AU && i._$AP(t);
821
821
  }
822
- if (t !== l || c) {
823
- let o = n._$AA;
822
+ if (t !== e || c) {
823
+ let o = i._$AA;
824
824
  for (; o !== t;) {
825
825
  const t = o.nextSibling;
826
- e.insertBefore(o, l), o = t;
826
+ n.insertBefore(o, e), o = t;
827
827
  }
828
828
  }
829
829
  }
830
- return n;
830
+ return i;
831
831
  },
832
- v = (o, t, i = o) => (o._$AI(t, i), o),
833
- u$1 = {},
834
- m = (o, t = u$1) => o._$AH = t,
835
- p = o => o._$AH,
836
- h = o => {
832
+ ct = (o, t, i = o) => (o._$AI(t, i), o),
833
+ ht = {},
834
+ dt = (o, t = ht) => o._$AH = t,
835
+ ut = o => o._$AH,
836
+ pt = o => {
837
837
  o._$AP?.(!1, !0);
838
838
  let t = o._$AA;
839
839
  const i = o._$AB.nextSibling;
@@ -848,16 +848,16 @@ const {
848
848
  * Copyright 2017 Google LLC
849
849
  * SPDX-License-Identifier: BSD-3-Clause
850
850
  */
851
- const u = (e, s, t) => {
851
+ const Jt = (e, s, t) => {
852
852
  const r = new Map();
853
853
  for (let l = s; l <= t; l++) r.set(e[l], l);
854
854
  return r;
855
855
  },
856
- c = e(class extends i {
856
+ Qt = e(class extends i {
857
857
  constructor(e) {
858
- if (super(e), e.type !== t$1.CHILD) throw Error("repeat() can only be used in text expressions");
858
+ if (super(e), e.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
859
859
  }
860
- ht(e, s, t) {
860
+ dt(e, s, t) {
861
861
  let r;
862
862
  void 0 === t ? t = s : void 0 !== s && (r = s);
863
863
  const l = [],
@@ -870,43 +870,43 @@ const u = (e, s, t) => {
870
870
  };
871
871
  }
872
872
  render(e, s, t) {
873
- return this.ht(e, s, t).values;
873
+ return this.dt(e, s, t).values;
874
874
  }
875
- update(s, [t, r$1, c]) {
876
- const d = p(s),
875
+ update(e, [s, t, r]) {
876
+ const l = ut(e),
877
877
  {
878
- values: p$1,
879
- keys: a
880
- } = this.ht(t, r$1, c);
881
- if (!Array.isArray(d)) return this.dt = a, p$1;
882
- const h$1 = this.dt ??= [],
883
- v$1 = [];
884
- let m$1,
885
- y,
886
- x = 0,
887
- j = d.length - 1,
888
- k = 0,
889
- w$1 = p$1.length - 1;
890
- for (; x <= j && k <= w$1;) if (null === d[x]) x++;else if (null === d[j]) j--;else if (h$1[x] === a[k]) v$1[k] = v(d[x], p$1[k]), x++, k++;else if (h$1[j] === a[w$1]) v$1[w$1] = v(d[j], p$1[w$1]), j--, w$1--;else if (h$1[x] === a[w$1]) v$1[w$1] = v(d[x], p$1[w$1]), r(s, v$1[w$1 + 1], d[x]), x++, w$1--;else if (h$1[j] === a[k]) v$1[k] = v(d[j], p$1[k]), r(s, d[x], d[j]), j--, k++;else if (void 0 === m$1 && (m$1 = u(a, k, w$1), y = u(h$1, x, j)), m$1.has(h$1[x])) {
891
- if (m$1.has(h$1[j])) {
892
- const e = y.get(a[k]),
893
- t = void 0 !== e ? d[e] : null;
878
+ values: o,
879
+ keys: i
880
+ } = this.dt(s, t, r);
881
+ if (!Array.isArray(l)) return this.ut = i, o;
882
+ const n = this.ut ??= [],
883
+ f = [];
884
+ let u,
885
+ c,
886
+ d = 0,
887
+ p = l.length - 1,
888
+ a = 0,
889
+ h = o.length - 1;
890
+ 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])) {
891
+ if (u.has(n[p])) {
892
+ const s = c.get(i[a]),
893
+ t = void 0 !== s ? l[s] : null;
894
894
  if (null === t) {
895
- const e = r(s, d[x]);
896
- v(e, p$1[k]), v$1[k] = e;
897
- } else v$1[k] = v(t, p$1[k]), r(s, d[x], t), d[e] = null;
898
- k++;
899
- } else h(d[j]), j--;
900
- } else h(d[x]), x++;
901
- for (; k <= w$1;) {
902
- const e = r(s, v$1[w$1 + 1]);
903
- v(e, p$1[k]), v$1[k++] = e;
895
+ const s = at(e, l[d]);
896
+ ct(s, o[a]), f[a] = s;
897
+ } else f[a] = ct(t, o[a]), at(e, l[d], t), l[s] = null;
898
+ a++;
899
+ } else pt(l[p]), p--;
900
+ } else pt(l[d]), d++;
901
+ for (; a <= h;) {
902
+ const s = at(e, f[h + 1]);
903
+ ct(s, o[a]), f[a++] = s;
904
904
  }
905
- for (; x <= j;) {
906
- const e = d[x++];
907
- null !== e && h(e);
905
+ for (; d <= p;) {
906
+ const e = l[d++];
907
+ null !== e && pt(e);
908
908
  }
909
- return this.dt = a, m(s, v$1), w;
909
+ return this.ut = i, dt(e, f), R;
910
910
  }
911
911
  });
912
912
 
@@ -2089,24 +2089,28 @@ function validateWCAG2Parms(parms) {
2089
2089
  };
2090
2090
  }
2091
2091
 
2092
- class WidgetMapbox extends s$1 {
2092
+ class WidgetMapbox extends h {
2093
2093
  constructor() {
2094
2094
  super();
2095
2095
  this.map = undefined;
2096
2096
  this.dataSets = [];
2097
2097
  this.dataSources = new Map();
2098
2098
  this.colors = new Map();
2099
- this.version = '1.4.20';
2099
+ this.version = '1.5.1';
2100
2100
  this.mapLoaded = false;
2101
2101
  this.imageList = [];
2102
2102
  this.resizeObserver = new ResizeObserver(() => {
2103
- var _a;
2104
- (_a = this.map) === null || _a === void 0 ? void 0 : _a.resize();
2105
- this.fitBounds();
2103
+ this.updateMap();
2106
2104
  });
2107
2105
  mapboxgl.accessToken =
2108
2106
  'pk.eyJ1IjoibWFya29wZSIsImEiOiJjazc1OWlsNjkwN2pyM2VxajV1eGRnYzgwIn0.3lVksk1nej_0KnWjCkBDAA';
2109
2107
  }
2108
+ disconnectedCallback() {
2109
+ super.disconnectedCallback();
2110
+ if (this.resizeObserver) {
2111
+ this.resizeObserver.disconnect();
2112
+ }
2113
+ }
2110
2114
  update(changedProperties) {
2111
2115
  if (changedProperties.has('inputData')) {
2112
2116
  this.transformInputData();
@@ -2119,6 +2123,15 @@ class WidgetMapbox extends s$1 {
2119
2123
  this.resizeObserver.observe(this.map._container);
2120
2124
  this.fitBounds();
2121
2125
  }
2126
+ updateMap() {
2127
+ if (this.customDebounce)
2128
+ clearTimeout(this.customDebounce);
2129
+ this.customDebounce = setTimeout(() => {
2130
+ var _a;
2131
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.resize();
2132
+ this.fitBounds();
2133
+ }, 300);
2134
+ }
2122
2135
  fitBounds() {
2123
2136
  const bounds = new mapboxgl.LngLatBounds();
2124
2137
  this.dataSources.forEach((col) => {
@@ -2136,9 +2149,9 @@ class WidgetMapbox extends s$1 {
2136
2149
  }
2137
2150
  transformInputData() {
2138
2151
  var _a, _b, _c;
2139
- if (!((_a = this === null || this === void 0 ? void 0 : this.inputData) === null || _a === void 0 ? void 0 : _a.settings) || !((_c = (_b = this === null || this === void 0 ? void 0 : this.inputData) === null || _b === void 0 ? void 0 : _b.dataseries) === null || _c === void 0 ? void 0 : _c.length))
2152
+ if (!(this === null || this === void 0 ? void 0 : this.inputData) || !((_b = (_a = this === null || this === void 0 ? void 0 : this.inputData) === null || _a === void 0 ? void 0 : _a.dataseries) === null || _b === void 0 ? void 0 : _b.length))
2140
2153
  return;
2141
- if (this.map && this.inputData.settings.style !== this.mapStyle) {
2154
+ if (this.map && ((_c = this.inputData) === null || _c === void 0 ? void 0 : _c.style) !== this.mapStyle) {
2142
2155
  this.createMap();
2143
2156
  }
2144
2157
  // choose random color if dataseries has none and store it for furure updates
@@ -2160,16 +2173,16 @@ class WidgetMapbox extends s$1 {
2160
2173
  .monochromatic(distincts.length)
2161
2174
  .map((c) => c.toHexString());
2162
2175
  distincts.forEach((piv, i) => {
2163
- var _a, _b;
2176
+ var _a;
2164
2177
  const prefix = piv ? `${piv} - ` : '';
2165
2178
  const pds = {
2166
- label: (_a = prefix + ds.label) !== null && _a !== void 0 ? _a : '',
2179
+ label: prefix + ds.label,
2167
2180
  order: ds.order,
2168
2181
  type: ds.type,
2169
2182
  latestValues: ds.latestValues,
2170
2183
  color: derivedColors[i],
2171
2184
  config: ds.config,
2172
- data: distincts.length === 1 ? ds.data : (_b = ds.data) === null || _b === void 0 ? void 0 : _b.filter((d) => d.pivot === piv)
2185
+ data: distincts.length === 1 ? ds.data : (_a = ds.data) === null || _a === void 0 ? void 0 : _a.filter((d) => d.pivot === piv)
2173
2186
  };
2174
2187
  this.dataSets.push(pds);
2175
2188
  });
@@ -2413,7 +2426,7 @@ class WidgetMapbox extends s$1 {
2413
2426
  (_l = this.map) === null || _l === void 0 ? void 0 : _l.addLayer(layerConfig2);
2414
2427
  }
2415
2428
  syncDataLayers() {
2416
- var _a, _b, _c;
2429
+ var _a, _b;
2417
2430
  if (!this.mapLoaded) {
2418
2431
  console.log('Map not yet finished loading. Skipping syncDataLayers');
2419
2432
  return;
@@ -2472,7 +2485,7 @@ class WidgetMapbox extends s$1 {
2472
2485
  this.addLineLayer(ds);
2473
2486
  }
2474
2487
  });
2475
- if ((_c = (_b = this.inputData) === null || _b === void 0 ? void 0 : _b.settings) === null || _c === void 0 ? void 0 : _c.follow)
2488
+ if ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.follow)
2476
2489
  this.fitBounds();
2477
2490
  }
2478
2491
  addBuildingLayer() {
@@ -2519,13 +2532,13 @@ class WidgetMapbox extends s$1 {
2519
2532
  }, labelLayerId);
2520
2533
  }
2521
2534
  createMap() {
2522
- var _a, _b, _c, _d;
2535
+ var _a, _b, _c;
2523
2536
  if (this.map)
2524
2537
  return;
2525
- this.mapStyle = (_b = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.style;
2538
+ this.mapStyle = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.style;
2526
2539
  this.map = new mapboxgl.Map({
2527
- container: (_c = this.shadowRoot) === null || _c === void 0 ? void 0 : _c.getElementById('map'),
2528
- style: `mapbox://styles/mapbox/${(_d = this.mapStyle) !== null && _d !== void 0 ? _d : 'light-v11'}`,
2540
+ container: (_b = this.shadowRoot) === null || _b === void 0 ? void 0 : _b.getElementById('map'),
2541
+ style: `mapbox://styles/mapbox/${(_c = this.mapStyle) !== null && _c !== void 0 ? _c : 'light-v11'}`,
2529
2542
  center: [8.68417, 50.11552],
2530
2543
  zoom: 1.8,
2531
2544
  attributionControl: false
@@ -2545,8 +2558,8 @@ class WidgetMapbox extends s$1 {
2545
2558
  });
2546
2559
  }
2547
2560
  render() {
2548
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
2549
- return x `
2561
+ var _a, _b, _c, _d, _e, _f, _g;
2562
+ return ke `
2550
2563
  <link
2551
2564
  href="https://api.mapbox.com/mapbox-gl-js/v${mapboxgl.version}/mapbox-gl.css"
2552
2565
  rel="stylesheet"
@@ -2554,19 +2567,19 @@ class WidgetMapbox extends s$1 {
2554
2567
  <div class="wrapper">
2555
2568
  <header
2556
2569
  class="paging"
2557
- ?active=${((_b = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.title) || ((_d = (_c = this.inputData) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d.subTitle)}
2570
+ ?active=${((_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title) || ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.subTitle)}
2558
2571
  >
2559
2572
  <div class="title">
2560
- <h3 class="paging" ?active=${(_f = (_e = this.inputData) === null || _e === void 0 ? void 0 : _e.settings) === null || _f === void 0 ? void 0 : _f.title}>
2561
- ${(_h = (_g = this.inputData) === null || _g === void 0 ? void 0 : _g.settings) === null || _h === void 0 ? void 0 : _h.title}
2573
+ <h3 class="paging" ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.title}>
2574
+ ${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.title}
2562
2575
  </h3>
2563
- <p class="paging" ?active=${(_k = (_j = this.inputData) === null || _j === void 0 ? void 0 : _j.settings) === null || _k === void 0 ? void 0 : _k.subTitle}>
2564
- ${(_m = (_l = this.inputData) === null || _l === void 0 ? void 0 : _l.settings) === null || _m === void 0 ? void 0 : _m.subTitle}
2576
+ <p class="paging" ?active=${(_e = this.inputData) === null || _e === void 0 ? void 0 : _e.subTitle}>
2577
+ ${(_f = this.inputData) === null || _f === void 0 ? void 0 : _f.subTitle}
2565
2578
  </p>
2566
2579
  </div>
2567
- <div class="legend paging" ?active=${(_p = (_o = this === null || this === void 0 ? void 0 : this.inputData) === null || _o === void 0 ? void 0 : _o.settings) === null || _p === void 0 ? void 0 : _p.showLegend}>
2568
- ${c(this.dataSets, (ds) => ds.label, (ds) => {
2569
- return x `
2580
+ <div class="legend paging" ?active=${(_g = this === null || this === void 0 ? void 0 : this.inputData) === null || _g === void 0 ? void 0 : _g.showLegend}>
2581
+ ${Qt(this.dataSets, (ds) => ds.label, (ds) => {
2582
+ return ke `
2570
2583
  <div class="label">
2571
2584
  <div
2572
2585
  style="background: ${ds.color}; width: 24px; height: 12px;"
@@ -2582,7 +2595,7 @@ class WidgetMapbox extends s$1 {
2582
2595
  `;
2583
2596
  }
2584
2597
  }
2585
- WidgetMapbox.styles = i$3 `
2598
+ WidgetMapbox.styles = i$2 `
2586
2599
  :host {
2587
2600
  display: block;
2588
2601
  color: var(--re-bar-text-color, #000);
@@ -2654,18 +2667,18 @@ __decorate([
2654
2667
  n({ type: Object })
2655
2668
  ], WidgetMapbox.prototype, "inputData", void 0);
2656
2669
  __decorate([
2657
- r$1()
2670
+ r()
2658
2671
  ], WidgetMapbox.prototype, "map", void 0);
2659
2672
  __decorate([
2660
- r$1()
2673
+ r()
2661
2674
  ], WidgetMapbox.prototype, "dataSets", void 0);
2662
2675
  __decorate([
2663
- r$1()
2676
+ r()
2664
2677
  ], WidgetMapbox.prototype, "dataSources", void 0);
2665
2678
  __decorate([
2666
- r$1()
2679
+ r()
2667
2680
  ], WidgetMapbox.prototype, "colors", void 0);
2668
- window.customElements.define('widget-mapbox-1.4.20', WidgetMapbox);
2681
+ window.customElements.define('widget-mapbox-1.5.1', WidgetMapbox);
2669
2682
 
2670
2683
  export { WidgetMapbox };
2671
2684
  //# sourceMappingURL=widget-mapbox.js.map