@telia-ace/alliance-ui 1.0.14-next.1 → 1.0.14

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.
@@ -0,0 +1,856 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const j = window, ht = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, at = Symbol(), $t = /* @__PURE__ */ new WeakMap();
7
+ let Pt = class {
8
+ constructor(t, e, i) {
9
+ if (this._$cssResult$ = !0, i !== at)
10
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
+ this.cssText = t, this.t = e;
12
+ }
13
+ get styleSheet() {
14
+ let t = this.o;
15
+ const e = this.t;
16
+ if (ht && t === void 0) {
17
+ const i = e !== void 0 && e.length === 1;
18
+ i && (t = $t.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && $t.set(e, t));
19
+ }
20
+ return t;
21
+ }
22
+ toString() {
23
+ return this.cssText;
24
+ }
25
+ };
26
+ const Ft = (n) => new Pt(typeof n == "string" ? n : n + "", void 0, at), pe = (n, ...t) => {
27
+ const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
28
+ if (o._$cssResult$ === !0)
29
+ return o.cssText;
30
+ if (typeof o == "number")
31
+ return o;
32
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
+ })(s) + n[r + 1], n[0]);
34
+ return new Pt(e, n, at);
35
+ }, Gt = (n, t) => {
36
+ ht ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
37
+ const i = document.createElement("style"), s = j.litNonce;
38
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
39
+ });
40
+ }, ut = ht ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
41
+ let e = "";
42
+ for (const i of t.cssRules)
43
+ e += i.cssText;
44
+ return Ft(e);
45
+ })(n) : n;
46
+ /**
47
+ * @license
48
+ * Copyright 2017 Google LLC
49
+ * SPDX-License-Identifier: BSD-3-Clause
50
+ */
51
+ var F;
52
+ const D = window, pt = D.trustedTypes, Qt = pt ? pt.emptyScript : "", vt = D.reactiveElementPolyfillSupport, nt = { toAttribute(n, t) {
53
+ switch (t) {
54
+ case Boolean:
55
+ n = n ? Qt : null;
56
+ break;
57
+ case Object:
58
+ case Array:
59
+ n = n == null ? n : JSON.stringify(n);
60
+ }
61
+ return n;
62
+ }, fromAttribute(n, t) {
63
+ let e = n;
64
+ switch (t) {
65
+ case Boolean:
66
+ e = n !== null;
67
+ break;
68
+ case Number:
69
+ e = n === null ? null : Number(n);
70
+ break;
71
+ case Object:
72
+ case Array:
73
+ try {
74
+ e = JSON.parse(n);
75
+ } catch {
76
+ e = null;
77
+ }
78
+ }
79
+ return e;
80
+ } }, Ut = (n, t) => t !== n && (t == t || n == n), G = { attribute: !0, type: String, converter: nt, reflect: !1, hasChanged: Ut }, ot = "finalized";
81
+ let w = class extends HTMLElement {
82
+ constructor() {
83
+ super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
84
+ }
85
+ static addInitializer(t) {
86
+ var e;
87
+ this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
88
+ }
89
+ static get observedAttributes() {
90
+ this.finalize();
91
+ const t = [];
92
+ return this.elementProperties.forEach((e, i) => {
93
+ const s = this._$Ep(i, e);
94
+ s !== void 0 && (this._$Ev.set(s, i), t.push(s));
95
+ }), t;
96
+ }
97
+ static createProperty(t, e = G) {
98
+ if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
99
+ const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
100
+ s !== void 0 && Object.defineProperty(this.prototype, t, s);
101
+ }
102
+ }
103
+ static getPropertyDescriptor(t, e, i) {
104
+ return { get() {
105
+ return this[e];
106
+ }, set(s) {
107
+ const r = this[t];
108
+ this[e] = s, this.requestUpdate(t, r, i);
109
+ }, configurable: !0, enumerable: !0 };
110
+ }
111
+ static getPropertyOptions(t) {
112
+ return this.elementProperties.get(t) || G;
113
+ }
114
+ static finalize() {
115
+ if (this.hasOwnProperty(ot))
116
+ return !1;
117
+ this[ot] = !0;
118
+ const t = Object.getPrototypeOf(this);
119
+ if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
120
+ const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
121
+ for (const s of i)
122
+ this.createProperty(s, e[s]);
123
+ }
124
+ return this.elementStyles = this.finalizeStyles(this.styles), !0;
125
+ }
126
+ static finalizeStyles(t) {
127
+ const e = [];
128
+ if (Array.isArray(t)) {
129
+ const i = new Set(t.flat(1 / 0).reverse());
130
+ for (const s of i)
131
+ e.unshift(ut(s));
132
+ } else
133
+ t !== void 0 && e.push(ut(t));
134
+ return e;
135
+ }
136
+ static _$Ep(t, e) {
137
+ const i = e.attribute;
138
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
139
+ }
140
+ u() {
141
+ var t;
142
+ this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
143
+ }
144
+ addController(t) {
145
+ var e, i;
146
+ ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((i = t.hostConnected) === null || i === void 0 || i.call(t));
147
+ }
148
+ removeController(t) {
149
+ var e;
150
+ (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
151
+ }
152
+ _$Eg() {
153
+ this.constructor.elementProperties.forEach((t, e) => {
154
+ this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
155
+ });
156
+ }
157
+ createRenderRoot() {
158
+ var t;
159
+ const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
160
+ return Gt(e, this.constructor.elementStyles), e;
161
+ }
162
+ connectedCallback() {
163
+ var t;
164
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
165
+ var i;
166
+ return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
167
+ });
168
+ }
169
+ enableUpdating(t) {
170
+ }
171
+ disconnectedCallback() {
172
+ var t;
173
+ (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
174
+ var i;
175
+ return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
176
+ });
177
+ }
178
+ attributeChangedCallback(t, e, i) {
179
+ this._$AK(t, i);
180
+ }
181
+ _$EO(t, e, i = G) {
182
+ var s;
183
+ const r = this.constructor._$Ep(t, i);
184
+ if (r !== void 0 && i.reflect === !0) {
185
+ const o = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : nt).toAttribute(e, i.type);
186
+ this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
187
+ }
188
+ }
189
+ _$AK(t, e) {
190
+ var i;
191
+ const s = this.constructor, r = s._$Ev.get(t);
192
+ if (r !== void 0 && this._$El !== r) {
193
+ const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : nt;
194
+ this._$El = r, this[r] = c.fromAttribute(e, o.type), this._$El = null;
195
+ }
196
+ }
197
+ requestUpdate(t, e, i) {
198
+ let s = !0;
199
+ t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || Ut)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, i))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
200
+ }
201
+ async _$Ej() {
202
+ this.isUpdatePending = !0;
203
+ try {
204
+ await this._$E_;
205
+ } catch (e) {
206
+ Promise.reject(e);
207
+ }
208
+ const t = this.scheduleUpdate();
209
+ return t != null && await t, !this.isUpdatePending;
210
+ }
211
+ scheduleUpdate() {
212
+ return this.performUpdate();
213
+ }
214
+ performUpdate() {
215
+ var t;
216
+ if (!this.isUpdatePending)
217
+ return;
218
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, r) => this[r] = s), this._$Ei = void 0);
219
+ let e = !1;
220
+ const i = this._$AL;
221
+ try {
222
+ e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
223
+ var r;
224
+ return (r = s.hostUpdate) === null || r === void 0 ? void 0 : r.call(s);
225
+ }), this.update(i)) : this._$Ek();
226
+ } catch (s) {
227
+ throw e = !1, this._$Ek(), s;
228
+ }
229
+ e && this._$AE(i);
230
+ }
231
+ willUpdate(t) {
232
+ }
233
+ _$AE(t) {
234
+ var e;
235
+ (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
236
+ var s;
237
+ return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
238
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
239
+ }
240
+ _$Ek() {
241
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
242
+ }
243
+ get updateComplete() {
244
+ return this.getUpdateComplete();
245
+ }
246
+ getUpdateComplete() {
247
+ return this._$E_;
248
+ }
249
+ shouldUpdate(t) {
250
+ return !0;
251
+ }
252
+ update(t) {
253
+ this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
254
+ }
255
+ updated(t) {
256
+ }
257
+ firstUpdated(t) {
258
+ }
259
+ };
260
+ w[ot] = !0, w.elementProperties = /* @__PURE__ */ new Map(), w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, vt == null || vt({ ReactiveElement: w }), ((F = D.reactiveElementVersions) !== null && F !== void 0 ? F : D.reactiveElementVersions = []).push("1.6.2");
261
+ /**
262
+ * @license
263
+ * Copyright 2017 Google LLC
264
+ * SPDX-License-Identifier: BSD-3-Clause
265
+ */
266
+ var Q;
267
+ const V = window, H = V.trustedTypes, _t = H ? H.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, W = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, dt = "?" + A, Xt = `<${dt}>`, S = document, Z = () => S.createComment(""), M = (n) => n === null || typeof n != "object" && typeof n != "function", Mt = Array.isArray, kt = (n) => Mt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", X = `[
268
+ \f\r]`, P = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, At = /-->/g, ft = />/g, g = RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
269
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), gt = /'/g, mt = /"/g, Rt = /^(?:script|style|textarea|title)$/i, k = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), yt = /* @__PURE__ */ new WeakMap(), y = S.createTreeWalker(S, 129, null, !1);
270
+ function Ot(n, t) {
271
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
272
+ throw Error("invalid template strings array");
273
+ return _t !== void 0 ? _t.createHTML(t) : t;
274
+ }
275
+ const Lt = (n, t) => {
276
+ const e = n.length - 1, i = [];
277
+ let s, r = t === 2 ? "<svg>" : "", o = P;
278
+ for (let c = 0; c < e; c++) {
279
+ const l = n[c];
280
+ let h, a, d = -1, $ = 0;
281
+ for (; $ < l.length && (o.lastIndex = $, a = o.exec(l), a !== null); )
282
+ $ = o.lastIndex, o === P ? a[1] === "!--" ? o = At : a[1] !== void 0 ? o = ft : a[2] !== void 0 ? (Rt.test(a[2]) && (s = RegExp("</" + a[2], "g")), o = g) : a[3] !== void 0 && (o = g) : o === g ? a[0] === ">" ? (o = s ?? P, d = -1) : a[1] === void 0 ? d = -2 : (d = o.lastIndex - a[2].length, h = a[1], o = a[3] === void 0 ? g : a[3] === '"' ? mt : gt) : o === mt || o === gt ? o = g : o === At || o === ft ? o = P : (o = g, s = void 0);
283
+ const u = o === g && n[c + 1].startsWith("/>") ? " " : "";
284
+ r += o === P ? l + Xt : d >= 0 ? (i.push(h), l.slice(0, d) + W + l.slice(d) + A + u) : l + A + (d === -2 ? (i.push(void 0), c) : u);
285
+ }
286
+ return [Ot(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
287
+ };
288
+ let rt = class It {
289
+ constructor({ strings: t, _$litType$: e }, i) {
290
+ let s;
291
+ this.parts = [];
292
+ let r = 0, o = 0;
293
+ const c = t.length - 1, l = this.parts, [h, a] = Lt(t, e);
294
+ if (this.el = It.createElement(h, i), y.currentNode = this.el.content, e === 2) {
295
+ const d = this.el.content, $ = d.firstChild;
296
+ $.remove(), d.append(...$.childNodes);
297
+ }
298
+ for (; (s = y.nextNode()) !== null && l.length < c; ) {
299
+ if (s.nodeType === 1) {
300
+ if (s.hasAttributes()) {
301
+ const d = [];
302
+ for (const $ of s.getAttributeNames())
303
+ if ($.endsWith(W) || $.startsWith(A)) {
304
+ const u = a[o++];
305
+ if (d.push($), u !== void 0) {
306
+ const J = s.getAttribute(u.toLowerCase() + W).split(A), _ = /([.?@])?(.*)/.exec(u);
307
+ l.push({ type: 1, index: r, name: _[2], strings: J, ctor: _[1] === "." ? zt : _[1] === "?" ? Dt : _[1] === "@" ? Vt : I });
308
+ } else
309
+ l.push({ type: 6, index: r });
310
+ }
311
+ for (const $ of d)
312
+ s.removeAttribute($);
313
+ }
314
+ if (Rt.test(s.tagName)) {
315
+ const d = s.textContent.split(A), $ = d.length - 1;
316
+ if ($ > 0) {
317
+ s.textContent = H ? H.emptyScript : "";
318
+ for (let u = 0; u < $; u++)
319
+ s.append(d[u], Z()), y.nextNode(), l.push({ type: 2, index: ++r });
320
+ s.append(d[$], Z());
321
+ }
322
+ }
323
+ } else if (s.nodeType === 8)
324
+ if (s.data === dt)
325
+ l.push({ type: 2, index: r });
326
+ else {
327
+ let d = -1;
328
+ for (; (d = s.data.indexOf(A, d + 1)) !== -1; )
329
+ l.push({ type: 7, index: r }), d += A.length - 1;
330
+ }
331
+ r++;
332
+ }
333
+ }
334
+ static createElement(t, e) {
335
+ const i = S.createElement("template");
336
+ return i.innerHTML = t, i;
337
+ }
338
+ };
339
+ function b(n, t, e = n, i) {
340
+ var s, r, o, c;
341
+ if (t === k)
342
+ return t;
343
+ let l = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
344
+ const h = M(t) ? void 0 : t._$litDirective$;
345
+ return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, i)), i !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[i] = l : e._$Cl = l), l !== void 0 && (t = b(n, l._$AS(n, t.values), l, i)), t;
346
+ }
347
+ let Bt = class {
348
+ constructor(t, e) {
349
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
350
+ }
351
+ get parentNode() {
352
+ return this._$AM.parentNode;
353
+ }
354
+ get _$AU() {
355
+ return this._$AM._$AU;
356
+ }
357
+ u(t) {
358
+ var e;
359
+ const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : S).importNode(i, !0);
360
+ y.currentNode = r;
361
+ let o = y.nextNode(), c = 0, l = 0, h = s[0];
362
+ for (; h !== void 0; ) {
363
+ if (c === h.index) {
364
+ let a;
365
+ h.type === 2 ? a = new ct(o, o.nextSibling, this, t) : h.type === 1 ? a = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (a = new Wt(o, this, t)), this._$AV.push(a), h = s[++l];
366
+ }
367
+ c !== (h == null ? void 0 : h.index) && (o = y.nextNode(), c++);
368
+ }
369
+ return y.currentNode = S, r;
370
+ }
371
+ v(t) {
372
+ let e = 0;
373
+ for (const i of this._$AV)
374
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
375
+ }
376
+ }, ct = class jt {
377
+ constructor(t, e, i, s) {
378
+ var r;
379
+ this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
380
+ }
381
+ get _$AU() {
382
+ var t, e;
383
+ return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
384
+ }
385
+ get parentNode() {
386
+ let t = this._$AA.parentNode;
387
+ const e = this._$AM;
388
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
389
+ }
390
+ get startNode() {
391
+ return this._$AA;
392
+ }
393
+ get endNode() {
394
+ return this._$AB;
395
+ }
396
+ _$AI(t, e = this) {
397
+ t = b(this, t, e), M(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== k && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : kt(t) ? this.T(t) : this._(t);
398
+ }
399
+ k(t) {
400
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
401
+ }
402
+ $(t) {
403
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
404
+ }
405
+ _(t) {
406
+ this._$AH !== p && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(S.createTextNode(t)), this._$AH = t;
407
+ }
408
+ g(t) {
409
+ var e;
410
+ const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = rt.createElement(Ot(s.h, s.h[0]), this.options)), s);
411
+ if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
412
+ this._$AH.v(i);
413
+ else {
414
+ const o = new Bt(r, this), c = o.u(this.options);
415
+ o.v(i), this.$(c), this._$AH = o;
416
+ }
417
+ }
418
+ _$AC(t) {
419
+ let e = yt.get(t.strings);
420
+ return e === void 0 && yt.set(t.strings, e = new rt(t)), e;
421
+ }
422
+ T(t) {
423
+ Mt(this._$AH) || (this._$AH = [], this._$AR());
424
+ const e = this._$AH;
425
+ let i, s = 0;
426
+ for (const r of t)
427
+ s === e.length ? e.push(i = new jt(this.k(Z()), this.k(Z()), this, this.options)) : i = e[s], i._$AI(r), s++;
428
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
429
+ }
430
+ _$AR(t = this._$AA.nextSibling, e) {
431
+ var i;
432
+ for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
433
+ const s = t.nextSibling;
434
+ t.remove(), t = s;
435
+ }
436
+ }
437
+ setConnected(t) {
438
+ var e;
439
+ this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
440
+ }
441
+ }, I = class {
442
+ constructor(t, e, i, s, r) {
443
+ this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
444
+ }
445
+ get tagName() {
446
+ return this.element.tagName;
447
+ }
448
+ get _$AU() {
449
+ return this._$AM._$AU;
450
+ }
451
+ _$AI(t, e = this, i, s) {
452
+ const r = this.strings;
453
+ let o = !1;
454
+ if (r === void 0)
455
+ t = b(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
456
+ else {
457
+ const c = t;
458
+ let l, h;
459
+ for (t = r[0], l = 0; l < r.length - 1; l++)
460
+ h = b(this, c[i + l], e, l), h === k && (h = this._$AH[l]), o || (o = !M(h) || h !== this._$AH[l]), h === p ? t = p : t !== p && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
461
+ }
462
+ o && !s && this.j(t);
463
+ }
464
+ j(t) {
465
+ t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
466
+ }
467
+ }, zt = class extends I {
468
+ constructor() {
469
+ super(...arguments), this.type = 3;
470
+ }
471
+ j(t) {
472
+ this.element[this.name] = t === p ? void 0 : t;
473
+ }
474
+ };
475
+ const Yt = H ? H.emptyScript : "";
476
+ let Dt = class extends I {
477
+ constructor() {
478
+ super(...arguments), this.type = 4;
479
+ }
480
+ j(t) {
481
+ t && t !== p ? this.element.setAttribute(this.name, Yt) : this.element.removeAttribute(this.name);
482
+ }
483
+ }, Vt = class extends I {
484
+ constructor(t, e, i, s, r) {
485
+ super(t, e, i, s, r), this.type = 5;
486
+ }
487
+ _$AI(t, e = this) {
488
+ var i;
489
+ if ((t = (i = b(this, t, e, 0)) !== null && i !== void 0 ? i : p) === k)
490
+ return;
491
+ const s = this._$AH, r = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== p && (s === p || r);
492
+ r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
493
+ }
494
+ handleEvent(t) {
495
+ var e, i;
496
+ typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
497
+ }
498
+ }, Wt = class {
499
+ constructor(t, e, i) {
500
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
501
+ }
502
+ get _$AU() {
503
+ return this._$AM._$AU;
504
+ }
505
+ _$AI(t) {
506
+ b(this, t);
507
+ }
508
+ };
509
+ const Ee = { O: W, P: A, A: dt, C: 1, M: Lt, L: Bt, D: kt, R: b, I: ct, V: I, H: Dt, N: Vt, U: zt, F: Wt }, Et = V.litHtmlPolyfillSupport;
510
+ Et == null || Et(rt, ct), ((Q = V.litHtmlVersions) !== null && Q !== void 0 ? Q : V.litHtmlVersions = []).push("2.7.5");
511
+ /**
512
+ * @license
513
+ * Copyright 2017 Google LLC
514
+ * SPDX-License-Identifier: BSD-3-Clause
515
+ */
516
+ var Y;
517
+ const q = window, x = q.trustedTypes, St = x ? x.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, lt = "$lit$", f = `lit$${(Math.random() + "").slice(9)}$`, Zt = "?" + f, te = `<${Zt}>`, C = document, R = () => C.createComment(""), O = (n) => n === null || typeof n != "object" && typeof n != "function", qt = Array.isArray, ee = (n) => qt(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", tt = `[
518
+ \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, Ct = />/g, m = RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
519
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), wt = /'/g, Ht = /"/g, Kt = /^(?:script|style|textarea|title)$/i, ie = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Se = ie(1), N = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), xt = /* @__PURE__ */ new WeakMap(), E = C.createTreeWalker(C, 129, null, !1);
520
+ function Jt(n, t) {
521
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
522
+ throw Error("invalid template strings array");
523
+ return St !== void 0 ? St.createHTML(t) : t;
524
+ }
525
+ const se = (n, t) => {
526
+ const e = n.length - 1, i = [];
527
+ let s, r = t === 2 ? "<svg>" : "", o = U;
528
+ for (let c = 0; c < e; c++) {
529
+ const l = n[c];
530
+ let h, a, d = -1, $ = 0;
531
+ for (; $ < l.length && (o.lastIndex = $, a = o.exec(l), a !== null); )
532
+ $ = o.lastIndex, o === U ? a[1] === "!--" ? o = bt : a[1] !== void 0 ? o = Ct : a[2] !== void 0 ? (Kt.test(a[2]) && (s = RegExp("</" + a[2], "g")), o = m) : a[3] !== void 0 && (o = m) : o === m ? a[0] === ">" ? (o = s ?? U, d = -1) : a[1] === void 0 ? d = -2 : (d = o.lastIndex - a[2].length, h = a[1], o = a[3] === void 0 ? m : a[3] === '"' ? Ht : wt) : o === Ht || o === wt ? o = m : o === bt || o === Ct ? o = U : (o = m, s = void 0);
533
+ const u = o === m && n[c + 1].startsWith("/>") ? " " : "";
534
+ r += o === U ? l + te : d >= 0 ? (i.push(h), l.slice(0, d) + lt + l.slice(d) + f + u) : l + f + (d === -2 ? (i.push(void 0), c) : u);
535
+ }
536
+ return [Jt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
537
+ };
538
+ class L {
539
+ constructor({ strings: t, _$litType$: e }, i) {
540
+ let s;
541
+ this.parts = [];
542
+ let r = 0, o = 0;
543
+ const c = t.length - 1, l = this.parts, [h, a] = se(t, e);
544
+ if (this.el = L.createElement(h, i), E.currentNode = this.el.content, e === 2) {
545
+ const d = this.el.content, $ = d.firstChild;
546
+ $.remove(), d.append(...$.childNodes);
547
+ }
548
+ for (; (s = E.nextNode()) !== null && l.length < c; ) {
549
+ if (s.nodeType === 1) {
550
+ if (s.hasAttributes()) {
551
+ const d = [];
552
+ for (const $ of s.getAttributeNames())
553
+ if ($.endsWith(lt) || $.startsWith(f)) {
554
+ const u = a[o++];
555
+ if (d.push($), u !== void 0) {
556
+ const J = s.getAttribute(u.toLowerCase() + lt).split(f), _ = /([.?@])?(.*)/.exec(u);
557
+ l.push({ type: 1, index: r, name: _[2], strings: J, ctor: _[1] === "." ? oe : _[1] === "?" ? le : _[1] === "@" ? he : K });
558
+ } else
559
+ l.push({ type: 6, index: r });
560
+ }
561
+ for (const $ of d)
562
+ s.removeAttribute($);
563
+ }
564
+ if (Kt.test(s.tagName)) {
565
+ const d = s.textContent.split(f), $ = d.length - 1;
566
+ if ($ > 0) {
567
+ s.textContent = x ? x.emptyScript : "";
568
+ for (let u = 0; u < $; u++)
569
+ s.append(d[u], R()), E.nextNode(), l.push({ type: 2, index: ++r });
570
+ s.append(d[$], R());
571
+ }
572
+ }
573
+ } else if (s.nodeType === 8)
574
+ if (s.data === Zt)
575
+ l.push({ type: 2, index: r });
576
+ else {
577
+ let d = -1;
578
+ for (; (d = s.data.indexOf(f, d + 1)) !== -1; )
579
+ l.push({ type: 7, index: r }), d += f.length - 1;
580
+ }
581
+ r++;
582
+ }
583
+ }
584
+ static createElement(t, e) {
585
+ const i = C.createElement("template");
586
+ return i.innerHTML = t, i;
587
+ }
588
+ }
589
+ function T(n, t, e = n, i) {
590
+ var s, r, o, c;
591
+ if (t === N)
592
+ return t;
593
+ let l = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
594
+ const h = O(t) ? void 0 : t._$litDirective$;
595
+ return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, i)), i !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[i] = l : e._$Cl = l), l !== void 0 && (t = T(n, l._$AS(n, t.values), l, i)), t;
596
+ }
597
+ class ne {
598
+ constructor(t, e) {
599
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
600
+ }
601
+ get parentNode() {
602
+ return this._$AM.parentNode;
603
+ }
604
+ get _$AU() {
605
+ return this._$AM._$AU;
606
+ }
607
+ u(t) {
608
+ var e;
609
+ const { el: { content: i }, parts: s } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : C).importNode(i, !0);
610
+ E.currentNode = r;
611
+ let o = E.nextNode(), c = 0, l = 0, h = s[0];
612
+ for (; h !== void 0; ) {
613
+ if (c === h.index) {
614
+ let a;
615
+ h.type === 2 ? a = new B(o, o.nextSibling, this, t) : h.type === 1 ? a = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (a = new ae(o, this, t)), this._$AV.push(a), h = s[++l];
616
+ }
617
+ c !== (h == null ? void 0 : h.index) && (o = E.nextNode(), c++);
618
+ }
619
+ return E.currentNode = C, r;
620
+ }
621
+ v(t) {
622
+ let e = 0;
623
+ for (const i of this._$AV)
624
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
625
+ }
626
+ }
627
+ class B {
628
+ constructor(t, e, i, s) {
629
+ var r;
630
+ this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (r = s == null ? void 0 : s.isConnected) === null || r === void 0 || r;
631
+ }
632
+ get _$AU() {
633
+ var t, e;
634
+ return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
635
+ }
636
+ get parentNode() {
637
+ let t = this._$AA.parentNode;
638
+ const e = this._$AM;
639
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
640
+ }
641
+ get startNode() {
642
+ return this._$AA;
643
+ }
644
+ get endNode() {
645
+ return this._$AB;
646
+ }
647
+ _$AI(t, e = this) {
648
+ t = T(this, t, e), O(t) ? t === v || t == null || t === "" ? (this._$AH !== v && this._$AR(), this._$AH = v) : t !== this._$AH && t !== N && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ee(t) ? this.T(t) : this._(t);
649
+ }
650
+ k(t) {
651
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
652
+ }
653
+ $(t) {
654
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
655
+ }
656
+ _(t) {
657
+ this._$AH !== v && O(this._$AH) ? this._$AA.nextSibling.data = t : this.$(C.createTextNode(t)), this._$AH = t;
658
+ }
659
+ g(t) {
660
+ var e;
661
+ const { values: i, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = L.createElement(Jt(s.h, s.h[0]), this.options)), s);
662
+ if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
663
+ this._$AH.v(i);
664
+ else {
665
+ const o = new ne(r, this), c = o.u(this.options);
666
+ o.v(i), this.$(c), this._$AH = o;
667
+ }
668
+ }
669
+ _$AC(t) {
670
+ let e = xt.get(t.strings);
671
+ return e === void 0 && xt.set(t.strings, e = new L(t)), e;
672
+ }
673
+ T(t) {
674
+ qt(this._$AH) || (this._$AH = [], this._$AR());
675
+ const e = this._$AH;
676
+ let i, s = 0;
677
+ for (const r of t)
678
+ s === e.length ? e.push(i = new B(this.k(R()), this.k(R()), this, this.options)) : i = e[s], i._$AI(r), s++;
679
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
680
+ }
681
+ _$AR(t = this._$AA.nextSibling, e) {
682
+ var i;
683
+ for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
684
+ const s = t.nextSibling;
685
+ t.remove(), t = s;
686
+ }
687
+ }
688
+ setConnected(t) {
689
+ var e;
690
+ this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
691
+ }
692
+ }
693
+ class K {
694
+ constructor(t, e, i, s, r) {
695
+ this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = v;
696
+ }
697
+ get tagName() {
698
+ return this.element.tagName;
699
+ }
700
+ get _$AU() {
701
+ return this._$AM._$AU;
702
+ }
703
+ _$AI(t, e = this, i, s) {
704
+ const r = this.strings;
705
+ let o = !1;
706
+ if (r === void 0)
707
+ t = T(this, t, e, 0), o = !O(t) || t !== this._$AH && t !== N, o && (this._$AH = t);
708
+ else {
709
+ const c = t;
710
+ let l, h;
711
+ for (t = r[0], l = 0; l < r.length - 1; l++)
712
+ h = T(this, c[i + l], e, l), h === N && (h = this._$AH[l]), o || (o = !O(h) || h !== this._$AH[l]), h === v ? t = v : t !== v && (t += (h ?? "") + r[l + 1]), this._$AH[l] = h;
713
+ }
714
+ o && !s && this.j(t);
715
+ }
716
+ j(t) {
717
+ t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
718
+ }
719
+ }
720
+ class oe extends K {
721
+ constructor() {
722
+ super(...arguments), this.type = 3;
723
+ }
724
+ j(t) {
725
+ this.element[this.name] = t === v ? void 0 : t;
726
+ }
727
+ }
728
+ const re = x ? x.emptyScript : "";
729
+ class le extends K {
730
+ constructor() {
731
+ super(...arguments), this.type = 4;
732
+ }
733
+ j(t) {
734
+ t && t !== v ? this.element.setAttribute(this.name, re) : this.element.removeAttribute(this.name);
735
+ }
736
+ }
737
+ class he extends K {
738
+ constructor(t, e, i, s, r) {
739
+ super(t, e, i, s, r), this.type = 5;
740
+ }
741
+ _$AI(t, e = this) {
742
+ var i;
743
+ if ((t = (i = T(this, t, e, 0)) !== null && i !== void 0 ? i : v) === N)
744
+ return;
745
+ const s = this._$AH, r = t === v && s !== v || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== v && (s === v || r);
746
+ r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
747
+ }
748
+ handleEvent(t) {
749
+ var e, i;
750
+ typeof this._$AH == "function" ? this._$AH.call((i = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && i !== void 0 ? i : this.element, t) : this._$AH.handleEvent(t);
751
+ }
752
+ }
753
+ class ae {
754
+ constructor(t, e, i) {
755
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
756
+ }
757
+ get _$AU() {
758
+ return this._$AM._$AU;
759
+ }
760
+ _$AI(t) {
761
+ T(this, t);
762
+ }
763
+ }
764
+ const Nt = q.litHtmlPolyfillSupport;
765
+ Nt == null || Nt(L, B), ((Y = q.litHtmlVersions) !== null && Y !== void 0 ? Y : q.litHtmlVersions = []).push("2.8.0");
766
+ const de = (n, t, e) => {
767
+ var i, s;
768
+ const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
769
+ let o = r._$litPart$;
770
+ if (o === void 0) {
771
+ const c = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
772
+ r._$litPart$ = o = new B(t.insertBefore(R(), c), c, void 0, e ?? {});
773
+ }
774
+ return o._$AI(n), o;
775
+ };
776
+ /**
777
+ * @license
778
+ * Copyright 2017 Google LLC
779
+ * SPDX-License-Identifier: BSD-3-Clause
780
+ */
781
+ var et, it;
782
+ class z extends w {
783
+ constructor() {
784
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
785
+ }
786
+ createRenderRoot() {
787
+ var t, e;
788
+ const i = super.createRenderRoot();
789
+ return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
790
+ }
791
+ update(t) {
792
+ const e = this.render();
793
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = de(e, this.renderRoot, this.renderOptions);
794
+ }
795
+ connectedCallback() {
796
+ var t;
797
+ super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
798
+ }
799
+ disconnectedCallback() {
800
+ var t;
801
+ super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
802
+ }
803
+ render() {
804
+ return N;
805
+ }
806
+ }
807
+ z.finalized = !0, z._$litElement$ = !0, (et = globalThis.litElementHydrateSupport) === null || et === void 0 || et.call(globalThis, { LitElement: z });
808
+ const Tt = globalThis.litElementPolyfillSupport;
809
+ Tt == null || Tt({ LitElement: z });
810
+ ((it = globalThis.litElementVersions) !== null && it !== void 0 ? it : globalThis.litElementVersions = []).push("3.3.2");
811
+ /**
812
+ * @license
813
+ * Copyright 2017 Google LLC
814
+ * SPDX-License-Identifier: BSD-3-Clause
815
+ */
816
+ const be = (n) => (t) => typeof t == "function" ? ((e, i) => (customElements.define(e, i), i))(n, t) : ((e, i) => {
817
+ const { kind: s, elements: r } = i;
818
+ return { kind: s, elements: r, finisher(o) {
819
+ customElements.define(e, o);
820
+ } };
821
+ })(n, t);
822
+ /**
823
+ * @license
824
+ * Copyright 2017 Google LLC
825
+ * SPDX-License-Identifier: BSD-3-Clause
826
+ */
827
+ const ce = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
828
+ e.createProperty(t.key, n);
829
+ } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
830
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
831
+ }, finisher(e) {
832
+ e.createProperty(t.key, n);
833
+ } }, $e = (n, t, e) => {
834
+ t.constructor.createProperty(e, n);
835
+ };
836
+ function Ce(n) {
837
+ return (t, e) => e !== void 0 ? $e(n, t, e) : ce(n, t);
838
+ }
839
+ /**
840
+ * @license
841
+ * Copyright 2021 Google LLC
842
+ * SPDX-License-Identifier: BSD-3-Clause
843
+ */
844
+ var st;
845
+ ((st = window.HTMLSlotElement) === null || st === void 0 ? void 0 : st.prototype.assignedElements) != null;
846
+ export {
847
+ k as T,
848
+ be as e,
849
+ pe as i,
850
+ Ee as j,
851
+ Ce as n,
852
+ Ft as r,
853
+ z as s,
854
+ Se as x
855
+ };
856
+ //# sourceMappingURL=query-assigned-elements-6cda07f5.js.map