@record-evolution/widget-mapbox 1.4.21 → 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.
- package/dist/src/widget-mapbox.d.ts +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/widget-mapbox.js +329 -329
- package/dist/widget-mapbox.js.map +1 -1
- package/package.json +28 -26
- package/src/default-data.json +3 -5
- package/src/definition-schema.d.ts +10 -14
- package/src/definition-schema.json +42 -49
- package/src/widget-mapbox.ts +15 -15
package/dist/widget-mapbox.js
CHANGED
|
@@ -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$
|
|
38
|
-
e$
|
|
39
|
-
s
|
|
40
|
-
o$
|
|
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
|
|
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$
|
|
49
|
+
if (e$2 && void 0 === t) {
|
|
50
50
|
const e = void 0 !== s && 1 === s.length;
|
|
51
|
-
e && (t = o$
|
|
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$
|
|
60
|
-
i$
|
|
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
|
|
66
|
+
return new n$3(o, t, s);
|
|
67
67
|
},
|
|
68
68
|
S$1 = (s, o) => {
|
|
69
|
-
if (e$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
88
|
-
defineProperty: e$
|
|
89
|
-
getOwnPropertyDescriptor: r$
|
|
87
|
+
is: i$1,
|
|
88
|
+
defineProperty: e$1,
|
|
89
|
+
getOwnPropertyDescriptor: r$2,
|
|
90
90
|
getOwnPropertyNames: h$2,
|
|
91
|
-
getOwnPropertySymbols: o$
|
|
91
|
+
getOwnPropertySymbols: o$1,
|
|
92
92
|
getPrototypeOf: n$2
|
|
93
93
|
} = Object,
|
|
94
|
-
a
|
|
95
|
-
c$
|
|
96
|
-
l
|
|
97
|
-
p
|
|
98
|
-
d
|
|
99
|
-
u
|
|
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
|
|
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$
|
|
132
|
-
y
|
|
131
|
+
f$2 = (t, s) => !i$1(t, s),
|
|
132
|
+
y = {
|
|
133
133
|
attribute: !0,
|
|
134
134
|
type: String,
|
|
135
|
-
converter: u
|
|
135
|
+
converter: u,
|
|
136
136
|
reflect: !1,
|
|
137
|
-
hasChanged: f$
|
|
137
|
+
hasChanged: f$2
|
|
138
138
|
};
|
|
139
|
-
Symbol.metadata ??= Symbol("metadata"), a
|
|
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
|
|
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$
|
|
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$
|
|
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
|
|
179
|
+
return this.elementProperties.get(t) ?? y;
|
|
180
180
|
}
|
|
181
181
|
static _$Ei() {
|
|
182
|
-
if (this.hasOwnProperty(d
|
|
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
|
|
188
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d
|
|
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$
|
|
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$
|
|
210
|
-
} else void 0 !== s && i.push(c$
|
|
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._$
|
|
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._$
|
|
224
|
+
(this._$EO ??= new Set()).add(t), void 0 !== this.renderRoot && this.isConnected && t.hostConnected?.();
|
|
225
225
|
}
|
|
226
226
|
removeController(t) {
|
|
227
|
-
this._$
|
|
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._$
|
|
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._$
|
|
244
|
+
this._$EO?.forEach(t => t.hostDisconnected?.());
|
|
245
245
|
}
|
|
246
246
|
attributeChangedCallback(t, s, i) {
|
|
247
247
|
this._$AK(t, i);
|
|
248
248
|
}
|
|
249
|
-
_$
|
|
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
|
|
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
|
|
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
|
|
268
|
+
requestUpdate(t, s, i) {
|
|
269
269
|
if (void 0 !== t) {
|
|
270
|
-
if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$
|
|
271
|
-
this.
|
|
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._$
|
|
273
|
+
!1 === this.isUpdatePending && (this._$ES = this._$ET());
|
|
274
274
|
}
|
|
275
|
-
|
|
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 _$
|
|
278
|
+
async _$ET() {
|
|
279
279
|
this.isUpdatePending = !0;
|
|
280
280
|
try {
|
|
281
|
-
await this._$
|
|
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.
|
|
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._$
|
|
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._$
|
|
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._$
|
|
312
|
+
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
313
313
|
}
|
|
314
|
-
_$
|
|
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._$
|
|
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._$
|
|
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
|
|
334
|
+
}, b[d("elementProperties")] = new Map(), b[d("finalized")] = new Map(), p?.({
|
|
335
335
|
ReactiveElement: b
|
|
336
|
-
}), (a
|
|
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
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
function
|
|
376
|
-
if (!
|
|
377
|
-
return void 0 !==
|
|
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
|
|
379
|
+
const U = (t, i) => {
|
|
380
380
|
const s = t.length - 1,
|
|
381
|
-
|
|
382
|
-
let
|
|
383
|
-
|
|
384
|
-
|
|
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
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
for (;
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
return [
|
|
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
|
|
397
|
+
class B {
|
|
398
398
|
constructor({
|
|
399
399
|
strings: t,
|
|
400
|
-
_$litType$:
|
|
401
|
-
},
|
|
402
|
-
let
|
|
400
|
+
_$litType$: i
|
|
401
|
+
}, s) {
|
|
402
|
+
let e;
|
|
403
403
|
this.parts = [];
|
|
404
|
-
let
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
[
|
|
409
|
-
if (this.el =
|
|
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 !== (
|
|
414
|
-
if (1 ===
|
|
415
|
-
if (
|
|
416
|
-
const i =
|
|
417
|
-
s =
|
|
418
|
-
|
|
419
|
-
|
|
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:
|
|
422
|
-
name:
|
|
421
|
+
index: h,
|
|
422
|
+
name: n[2],
|
|
423
423
|
strings: s,
|
|
424
|
-
ctor: "." ===
|
|
425
|
-
}),
|
|
426
|
-
} else t.startsWith(
|
|
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:
|
|
429
|
-
}),
|
|
430
|
-
if (
|
|
431
|
-
const t =
|
|
432
|
-
|
|
433
|
-
if (
|
|
434
|
-
|
|
435
|
-
for (let
|
|
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: ++
|
|
437
|
+
index: ++h
|
|
438
438
|
});
|
|
439
|
-
|
|
439
|
+
e.append(t[i], lt$1());
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
} else if (8 ===
|
|
442
|
+
} else if (8 === e.nodeType) if (e.data === m) r.push({
|
|
443
443
|
type: 2,
|
|
444
|
-
index:
|
|
444
|
+
index: h
|
|
445
445
|
});else {
|
|
446
446
|
let t = -1;
|
|
447
|
-
for (; -1 !== (t =
|
|
447
|
+
for (; -1 !== (t = e.data.indexOf(v, t + 1));) r.push({
|
|
448
448
|
type: 7,
|
|
449
|
-
index:
|
|
450
|
-
}), t +=
|
|
449
|
+
index: h
|
|
450
|
+
}), t += v.length - 1;
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
h++;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
static createElement(t, i) {
|
|
456
|
-
const s =
|
|
456
|
+
const s = w.createElement("template");
|
|
457
457
|
return s.innerHTML = t, s;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
if (i ===
|
|
462
|
-
let h = void 0 !== e ? s.
|
|
463
|
-
const o =
|
|
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.
|
|
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
|
|
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 ??
|
|
484
|
-
|
|
485
|
-
let h =
|
|
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
|
-
|
|
489
|
-
for (; void 0 !==
|
|
490
|
-
if (o ===
|
|
488
|
+
r = s[0];
|
|
489
|
+
for (; void 0 !== r;) {
|
|
490
|
+
if (o === r.index) {
|
|
491
491
|
let i;
|
|
492
|
-
2 ===
|
|
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 !==
|
|
494
|
+
o !== r?.index && (h = I.nextNode(), o++);
|
|
495
495
|
}
|
|
496
|
-
return
|
|
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
|
|
503
|
+
let et$1 = class et {
|
|
504
504
|
get _$AU() {
|
|
505
|
-
return this._$AM?._$AU ?? this.
|
|
505
|
+
return this._$AM?._$AU ?? this.v;
|
|
506
506
|
}
|
|
507
507
|
constructor(t, i, s, e) {
|
|
508
|
-
this.type = 2, this._$AH =
|
|
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 =
|
|
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
|
-
|
|
524
|
+
O(t) {
|
|
525
525
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
526
526
|
}
|
|
527
|
-
|
|
528
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
527
|
+
T(t) {
|
|
528
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
529
529
|
}
|
|
530
530
|
_(t) {
|
|
531
|
-
this._$AH !==
|
|
531
|
+
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
|
|
532
532
|
}
|
|
533
|
-
|
|
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 =
|
|
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
|
|
540
|
+
const t = new F(e, this),
|
|
541
541
|
s = t.u(this.options);
|
|
542
|
-
t.p(i), this
|
|
542
|
+
t.p(i), this.T(s), this._$AH = t;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
_$AC(t) {
|
|
546
|
-
let i =
|
|
547
|
-
return void 0 === 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
|
-
|
|
550
|
-
|
|
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
|
|
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.
|
|
564
|
+
void 0 === this._$AM && (this.v = t, this._$AP?.(t));
|
|
565
565
|
}
|
|
566
|
-
}
|
|
567
|
-
class
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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.
|
|
585
|
+
o && !e && this.j(t);
|
|
586
586
|
}
|
|
587
|
-
|
|
588
|
-
t ===
|
|
587
|
+
j(t) {
|
|
588
|
+
t === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
class
|
|
591
|
+
class Y extends G {
|
|
592
592
|
constructor() {
|
|
593
593
|
super(...arguments), this.type = 3;
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
this.element[this.name] = t ===
|
|
595
|
+
j(t) {
|
|
596
|
+
this.element[this.name] = t === D ? void 0 : t;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
class
|
|
599
|
+
class Z extends G {
|
|
600
600
|
constructor() {
|
|
601
601
|
super(...arguments), this.type = 4;
|
|
602
602
|
}
|
|
603
|
-
|
|
604
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
603
|
+
j(t) {
|
|
604
|
+
this.element.toggleAttribute(this.name, !!t && t !== D);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
class
|
|
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 =
|
|
612
|
+
if ((t = z(this, t, i, 0) ?? D) === R) return;
|
|
613
613
|
const s = this._$AH,
|
|
614
|
-
e = t ===
|
|
615
|
-
h = t !==
|
|
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
|
|
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
|
-
|
|
630
|
+
z(this, t);
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
P:
|
|
636
|
-
A:
|
|
633
|
+
const si = {
|
|
634
|
+
M: f$1,
|
|
635
|
+
P: v,
|
|
636
|
+
A: m,
|
|
637
637
|
C: 1,
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
V:
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
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
|
-
|
|
650
|
-
|
|
651
|
-
const
|
|
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
|
|
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
|
-
|
|
666
|
+
class h extends b {
|
|
667
667
|
constructor() {
|
|
668
668
|
super(...arguments), this.renderOptions = {
|
|
669
669
|
host: this
|
|
670
|
-
}, this.
|
|
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
|
|
678
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.
|
|
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.
|
|
681
|
+
super.connectedCallback(), this.o?.setConnected(!0);
|
|
682
682
|
}
|
|
683
683
|
disconnectedCallback() {
|
|
684
|
-
super.disconnectedCallback(), this.
|
|
684
|
+
super.disconnectedCallback(), this.o?.setConnected(!1);
|
|
685
685
|
}
|
|
686
686
|
render() {
|
|
687
|
-
return
|
|
687
|
+
return R;
|
|
688
688
|
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
LitElement:
|
|
689
|
+
}
|
|
690
|
+
h._$litElement$ = !0, h["finalized"] = !0, globalThis.litElementHydrateSupport?.({
|
|
691
|
+
LitElement: h
|
|
692
692
|
});
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
LitElement:
|
|
693
|
+
const f = globalThis.litElementPolyfillSupport;
|
|
694
|
+
f?.({
|
|
695
|
+
LitElement: h
|
|
696
696
|
});
|
|
697
|
-
(globalThis.litElementVersions ??= []).push("4.0
|
|
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
|
|
707
|
+
converter: u,
|
|
708
708
|
reflect: !1,
|
|
709
|
-
hasChanged: f$
|
|
709
|
+
hasChanged: f$2
|
|
710
710
|
},
|
|
711
|
-
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.
|
|
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$
|
|
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
|
|
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
|
|
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.
|
|
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
|
-
|
|
805
|
-
} =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
if (void 0 ===
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
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 =
|
|
816
|
-
|
|
817
|
-
c =
|
|
815
|
+
const t = i._$AB.nextSibling,
|
|
816
|
+
l = i._$AM,
|
|
817
|
+
c = l !== o;
|
|
818
818
|
if (c) {
|
|
819
819
|
let t;
|
|
820
|
-
|
|
820
|
+
i._$AQ?.(o), i._$AM = o, void 0 !== i._$AP && (t = o._$AU) !== l._$AU && i._$AP(t);
|
|
821
821
|
}
|
|
822
|
-
if (t !==
|
|
823
|
-
let o =
|
|
822
|
+
if (t !== e || c) {
|
|
823
|
+
let o = i._$AA;
|
|
824
824
|
for (; o !== t;) {
|
|
825
825
|
const t = o.nextSibling;
|
|
826
|
-
|
|
826
|
+
n.insertBefore(o, e), o = t;
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
return
|
|
830
|
+
return i;
|
|
831
831
|
},
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
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
|
|
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
|
-
|
|
856
|
+
Qt = e(class extends i {
|
|
857
857
|
constructor(e) {
|
|
858
|
-
if (super(e), e.type !== t
|
|
858
|
+
if (super(e), e.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
859
859
|
}
|
|
860
|
-
|
|
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.
|
|
873
|
+
return this.dt(e, s, t).values;
|
|
874
874
|
}
|
|
875
|
-
update(s,
|
|
876
|
-
const
|
|
875
|
+
update(e, [s, t, r]) {
|
|
876
|
+
const l = ut(e),
|
|
877
877
|
{
|
|
878
|
-
values:
|
|
879
|
-
keys:
|
|
880
|
-
} = this.
|
|
881
|
-
if (!Array.isArray(
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
let
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
for (;
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
893
|
-
t = void 0 !==
|
|
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
|
|
896
|
-
|
|
897
|
-
} else
|
|
898
|
-
|
|
899
|
-
} else
|
|
900
|
-
} else
|
|
901
|
-
for (;
|
|
902
|
-
const
|
|
903
|
-
|
|
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 (;
|
|
906
|
-
const e = d
|
|
907
|
-
null !== e &&
|
|
905
|
+
for (; d <= p;) {
|
|
906
|
+
const e = l[d++];
|
|
907
|
+
null !== e && pt(e);
|
|
908
908
|
}
|
|
909
|
-
return this.
|
|
909
|
+
return this.ut = i, dt(e, f), R;
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
912
|
|
|
@@ -2089,14 +2089,14 @@ function validateWCAG2Parms(parms) {
|
|
|
2089
2089
|
};
|
|
2090
2090
|
}
|
|
2091
2091
|
|
|
2092
|
-
class WidgetMapbox extends
|
|
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.
|
|
2099
|
+
this.version = '1.5.1';
|
|
2100
2100
|
this.mapLoaded = false;
|
|
2101
2101
|
this.imageList = [];
|
|
2102
2102
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -2149,9 +2149,9 @@ class WidgetMapbox extends s$1 {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
transformInputData() {
|
|
2151
2151
|
var _a, _b, _c;
|
|
2152
|
-
if (!(
|
|
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))
|
|
2153
2153
|
return;
|
|
2154
|
-
if (this.map && this.inputData.
|
|
2154
|
+
if (this.map && ((_c = this.inputData) === null || _c === void 0 ? void 0 : _c.style) !== this.mapStyle) {
|
|
2155
2155
|
this.createMap();
|
|
2156
2156
|
}
|
|
2157
2157
|
// choose random color if dataseries has none and store it for furure updates
|
|
@@ -2173,16 +2173,16 @@ class WidgetMapbox extends s$1 {
|
|
|
2173
2173
|
.monochromatic(distincts.length)
|
|
2174
2174
|
.map((c) => c.toHexString());
|
|
2175
2175
|
distincts.forEach((piv, i) => {
|
|
2176
|
-
var _a
|
|
2176
|
+
var _a;
|
|
2177
2177
|
const prefix = piv ? `${piv} - ` : '';
|
|
2178
2178
|
const pds = {
|
|
2179
|
-
label:
|
|
2179
|
+
label: prefix + ds.label,
|
|
2180
2180
|
order: ds.order,
|
|
2181
2181
|
type: ds.type,
|
|
2182
2182
|
latestValues: ds.latestValues,
|
|
2183
2183
|
color: derivedColors[i],
|
|
2184
2184
|
config: ds.config,
|
|
2185
|
-
data: distincts.length === 1 ? ds.data : (
|
|
2185
|
+
data: distincts.length === 1 ? ds.data : (_a = ds.data) === null || _a === void 0 ? void 0 : _a.filter((d) => d.pivot === piv)
|
|
2186
2186
|
};
|
|
2187
2187
|
this.dataSets.push(pds);
|
|
2188
2188
|
});
|
|
@@ -2426,7 +2426,7 @@ class WidgetMapbox extends s$1 {
|
|
|
2426
2426
|
(_l = this.map) === null || _l === void 0 ? void 0 : _l.addLayer(layerConfig2);
|
|
2427
2427
|
}
|
|
2428
2428
|
syncDataLayers() {
|
|
2429
|
-
var _a, _b
|
|
2429
|
+
var _a, _b;
|
|
2430
2430
|
if (!this.mapLoaded) {
|
|
2431
2431
|
console.log('Map not yet finished loading. Skipping syncDataLayers');
|
|
2432
2432
|
return;
|
|
@@ -2485,7 +2485,7 @@ class WidgetMapbox extends s$1 {
|
|
|
2485
2485
|
this.addLineLayer(ds);
|
|
2486
2486
|
}
|
|
2487
2487
|
});
|
|
2488
|
-
if ((
|
|
2488
|
+
if ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.follow)
|
|
2489
2489
|
this.fitBounds();
|
|
2490
2490
|
}
|
|
2491
2491
|
addBuildingLayer() {
|
|
@@ -2532,13 +2532,13 @@ class WidgetMapbox extends s$1 {
|
|
|
2532
2532
|
}, labelLayerId);
|
|
2533
2533
|
}
|
|
2534
2534
|
createMap() {
|
|
2535
|
-
var _a, _b, _c
|
|
2535
|
+
var _a, _b, _c;
|
|
2536
2536
|
if (this.map)
|
|
2537
2537
|
return;
|
|
2538
|
-
this.mapStyle = (
|
|
2538
|
+
this.mapStyle = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.style;
|
|
2539
2539
|
this.map = new mapboxgl.Map({
|
|
2540
|
-
container: (
|
|
2541
|
-
style: `mapbox://styles/mapbox/${(
|
|
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'}`,
|
|
2542
2542
|
center: [8.68417, 50.11552],
|
|
2543
2543
|
zoom: 1.8,
|
|
2544
2544
|
attributionControl: false
|
|
@@ -2558,8 +2558,8 @@ class WidgetMapbox extends s$1 {
|
|
|
2558
2558
|
});
|
|
2559
2559
|
}
|
|
2560
2560
|
render() {
|
|
2561
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
2562
|
-
return
|
|
2561
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2562
|
+
return ke `
|
|
2563
2563
|
<link
|
|
2564
2564
|
href="https://api.mapbox.com/mapbox-gl-js/v${mapboxgl.version}/mapbox-gl.css"
|
|
2565
2565
|
rel="stylesheet"
|
|
@@ -2567,19 +2567,19 @@ class WidgetMapbox extends s$1 {
|
|
|
2567
2567
|
<div class="wrapper">
|
|
2568
2568
|
<header
|
|
2569
2569
|
class="paging"
|
|
2570
|
-
?active=${((
|
|
2570
|
+
?active=${((_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title) || ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.subTitle)}
|
|
2571
2571
|
>
|
|
2572
2572
|
<div class="title">
|
|
2573
|
-
<h3 class="paging" ?active=${(
|
|
2574
|
-
${(
|
|
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}
|
|
2575
2575
|
</h3>
|
|
2576
|
-
<p class="paging" ?active=${(
|
|
2577
|
-
${(
|
|
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}
|
|
2578
2578
|
</p>
|
|
2579
2579
|
</div>
|
|
2580
|
-
<div class="legend paging" ?active=${(
|
|
2581
|
-
${
|
|
2582
|
-
return
|
|
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 `
|
|
2583
2583
|
<div class="label">
|
|
2584
2584
|
<div
|
|
2585
2585
|
style="background: ${ds.color}; width: 24px; height: 12px;"
|
|
@@ -2595,7 +2595,7 @@ class WidgetMapbox extends s$1 {
|
|
|
2595
2595
|
`;
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
WidgetMapbox.styles = i$
|
|
2598
|
+
WidgetMapbox.styles = i$2 `
|
|
2599
2599
|
:host {
|
|
2600
2600
|
display: block;
|
|
2601
2601
|
color: var(--re-bar-text-color, #000);
|
|
@@ -2667,18 +2667,18 @@ __decorate([
|
|
|
2667
2667
|
n({ type: Object })
|
|
2668
2668
|
], WidgetMapbox.prototype, "inputData", void 0);
|
|
2669
2669
|
__decorate([
|
|
2670
|
-
r
|
|
2670
|
+
r()
|
|
2671
2671
|
], WidgetMapbox.prototype, "map", void 0);
|
|
2672
2672
|
__decorate([
|
|
2673
|
-
r
|
|
2673
|
+
r()
|
|
2674
2674
|
], WidgetMapbox.prototype, "dataSets", void 0);
|
|
2675
2675
|
__decorate([
|
|
2676
|
-
r
|
|
2676
|
+
r()
|
|
2677
2677
|
], WidgetMapbox.prototype, "dataSources", void 0);
|
|
2678
2678
|
__decorate([
|
|
2679
|
-
r
|
|
2679
|
+
r()
|
|
2680
2680
|
], WidgetMapbox.prototype, "colors", void 0);
|
|
2681
|
-
window.customElements.define('widget-mapbox-1.
|
|
2681
|
+
window.customElements.define('widget-mapbox-1.5.1', WidgetMapbox);
|
|
2682
2682
|
|
|
2683
2683
|
export { WidgetMapbox };
|
|
2684
2684
|
//# sourceMappingURL=widget-mapbox.js.map
|