@telia-ace/widget-runtime-flamingo 1.0.2

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.
Files changed (73) hide show
  1. package/LICENSE.txt +6 -0
  2. package/README.md +3 -0
  3. package/dist/area-65adc6a5.js +50 -0
  4. package/dist/area-65adc6a5.js.map +1 -0
  5. package/dist/component-platform-factory.d.ts +14 -0
  6. package/dist/component-platform-factory.d.ts.map +1 -0
  7. package/dist/components/area/area-component.d.ts +28 -0
  8. package/dist/components/area/area-component.d.ts.map +1 -0
  9. package/dist/components/area/area.d.ts +10 -0
  10. package/dist/components/area/area.d.ts.map +1 -0
  11. package/dist/components/copyright/copyright-component.d.ts +4 -0
  12. package/dist/components/copyright/copyright-component.d.ts.map +1 -0
  13. package/dist/components/copyright/copyright.d.ts +8 -0
  14. package/dist/components/copyright/copyright.d.ts.map +1 -0
  15. package/dist/components/widget-header/widget-header-component.d.ts +4 -0
  16. package/dist/components/widget-header/widget-header-component.d.ts.map +1 -0
  17. package/dist/components/widget-header/widget-header.d.ts +8 -0
  18. package/dist/components/widget-header/widget-header.d.ts.map +1 -0
  19. package/dist/context/children.context.d.ts +5 -0
  20. package/dist/context/children.context.d.ts.map +1 -0
  21. package/dist/context/component-node.context.d.ts +5 -0
  22. package/dist/context/component-node.context.d.ts.map +1 -0
  23. package/dist/context/container.context.d.ts +5 -0
  24. package/dist/context/container.context.d.ts.map +1 -0
  25. package/dist/context/context.context.d.ts +4 -0
  26. package/dist/context/context.context.d.ts.map +1 -0
  27. package/dist/context/layout.context.d.ts +4 -0
  28. package/dist/context/layout.context.d.ts.map +1 -0
  29. package/dist/context/properties.context.d.ts +4 -0
  30. package/dist/context/properties.context.d.ts.map +1 -0
  31. package/dist/controllers/actions-controller.d.ts +11 -0
  32. package/dist/controllers/actions-controller.d.ts.map +1 -0
  33. package/dist/copyright-ef48bb60.js +171 -0
  34. package/dist/copyright-ef48bb60.js.map +1 -0
  35. package/dist/core/create-lit-component.d.ts +12 -0
  36. package/dist/core/create-lit-component.d.ts.map +1 -0
  37. package/dist/core/lock.d.ts +10 -0
  38. package/dist/core/lock.d.ts.map +1 -0
  39. package/dist/index-d589d5e4.js +3834 -0
  40. package/dist/index-d589d5e4.js.map +1 -0
  41. package/dist/index.d.ts +14 -0
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/index.js +18 -0
  44. package/dist/index.js.map +1 -0
  45. package/dist/query-assigned-elements-a9b1c83a.js +668 -0
  46. package/dist/query-assigned-elements-a9b1c83a.js.map +1 -0
  47. package/dist/render-8726e104.js +255 -0
  48. package/dist/render-8726e104.js.map +1 -0
  49. package/dist/services.d.ts +7 -0
  50. package/dist/services.d.ts.map +1 -0
  51. package/dist/ui/branding.d.ts +2 -0
  52. package/dist/ui/branding.d.ts.map +1 -0
  53. package/dist/ui/component.d.ts +22 -0
  54. package/dist/ui/component.d.ts.map +1 -0
  55. package/dist/ui/determine-slide-direction.d.ts +27 -0
  56. package/dist/ui/determine-slide-direction.d.ts.map +1 -0
  57. package/dist/ui/html-element-handlers.d.ts +19 -0
  58. package/dist/ui/html-element-handlers.d.ts.map +1 -0
  59. package/dist/ui/index.d.ts +2 -0
  60. package/dist/ui/index.d.ts.map +1 -0
  61. package/dist/ui/prepare-dom.d.ts +21 -0
  62. package/dist/ui/prepare-dom.d.ts.map +1 -0
  63. package/dist/ui/render.d.ts +5 -0
  64. package/dist/ui/render.d.ts.map +1 -0
  65. package/dist/ui/view-outlet.d.ts +33 -0
  66. package/dist/ui/view-outlet.d.ts.map +1 -0
  67. package/dist/ui/wrapper.d.ts +14 -0
  68. package/dist/ui/wrapper.d.ts.map +1 -0
  69. package/dist/widget-header-f222904a.js +55 -0
  70. package/dist/widget-header-f222904a.js.map +1 -0
  71. package/dist/widget.d.ts +55 -0
  72. package/dist/widget.d.ts.map +1 -0
  73. package/package.json +53 -0
@@ -0,0 +1,668 @@
1
+ var _t = Object.defineProperty, ft = Object.defineProperties;
2
+ var At = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var yt = Object.prototype.hasOwnProperty, mt = Object.prototype.propertyIsEnumerable;
5
+ var F = (n, t, e) => t in n ? _t(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, O = (n, t) => {
6
+ for (var e in t || (t = {}))
7
+ yt.call(t, e) && F(n, e, t[e]);
8
+ if (J)
9
+ for (var e of J(t))
10
+ mt.call(t, e) && F(n, e, t[e]);
11
+ return n;
12
+ }, M = (n, t) => ft(n, At(t));
13
+ var G = (n, t, e) => new Promise((i, s) => {
14
+ var o = (l) => {
15
+ try {
16
+ a(e.next(l));
17
+ } catch (h) {
18
+ s(h);
19
+ }
20
+ }, r = (l) => {
21
+ try {
22
+ a(e.throw(l));
23
+ } catch (h) {
24
+ s(h);
25
+ }
26
+ }, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, r);
27
+ a((e = e.apply(n, t)).next());
28
+ });
29
+ import { f as gt } from "./index-d589d5e4.js";
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
35
+ const Et = ({ finisher: n, descriptor: t }) => (e, i) => {
36
+ var s;
37
+ if (i === void 0) {
38
+ const o = (s = e.originalKey) !== null && s !== void 0 ? s : e.key, r = t != null ? { kind: "method", placement: "prototype", key: o, descriptor: t(e.key) } : M(O({}, e), { key: o });
39
+ return n != null && (r.finisher = function(a) {
40
+ n(a, o);
41
+ }), r;
42
+ }
43
+ {
44
+ const o = e.constructor;
45
+ t !== void 0 && Object.defineProperty(e, i, t(i)), n == null || n(o, i);
46
+ }
47
+ };
48
+ /**
49
+ * @license
50
+ * Copyright 2022 Google LLC
51
+ * SPDX-License-Identifier: BSD-3-Clause
52
+ */
53
+ function Dt({ context: n, subscribe: t }) {
54
+ return Et({ finisher: (e, i) => {
55
+ e.addInitializer((s) => {
56
+ new gt(s, { context: n, callback: (o) => {
57
+ s[i] = o;
58
+ }, subscribe: t });
59
+ });
60
+ } });
61
+ }
62
+ /**
63
+ * @license
64
+ * Copyright 2019 Google LLC
65
+ * SPDX-License-Identifier: BSD-3-Clause
66
+ */
67
+ const U = window, q = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), Q = /* @__PURE__ */ new WeakMap();
68
+ let at = class {
69
+ constructor(t, e, i) {
70
+ if (this._$cssResult$ = !0, i !== Z)
71
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
72
+ this.cssText = t, this.t = e;
73
+ }
74
+ get styleSheet() {
75
+ let t = this.o;
76
+ const e = this.t;
77
+ if (q && t === void 0) {
78
+ const i = e !== void 0 && e.length === 1;
79
+ i && (t = Q.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Q.set(e, t));
80
+ }
81
+ return t;
82
+ }
83
+ toString() {
84
+ return this.cssText;
85
+ }
86
+ };
87
+ const St = (n) => new at(typeof n == "string" ? n : n + "", void 0, Z), Vt = (n, ...t) => {
88
+ const e = n.length === 1 ? n[0] : t.reduce((i, s, o) => i + ((r) => {
89
+ if (r._$cssResult$ === !0)
90
+ return r.cssText;
91
+ if (typeof r == "number")
92
+ return r;
93
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
94
+ })(s) + n[o + 1], n[0]);
95
+ return new at(e, n, Z);
96
+ }, bt = (n, t) => {
97
+ q ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
98
+ const i = document.createElement("style"), s = U.litNonce;
99
+ s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
100
+ });
101
+ }, X = q ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
102
+ let e = "";
103
+ for (const i of t.cssRules)
104
+ e += i.cssText;
105
+ return St(e);
106
+ })(n) : n;
107
+ /**
108
+ * @license
109
+ * Copyright 2017 Google LLC
110
+ * SPDX-License-Identifier: BSD-3-Clause
111
+ */
112
+ var R;
113
+ const H = window, Y = H.trustedTypes, wt = Y ? Y.emptyScript : "", tt = H.reactiveElementPolyfillSupport, V = { toAttribute(n, t) {
114
+ switch (t) {
115
+ case Boolean:
116
+ n = n ? wt : null;
117
+ break;
118
+ case Object:
119
+ case Array:
120
+ n = n == null ? n : JSON.stringify(n);
121
+ }
122
+ return n;
123
+ }, fromAttribute(n, t) {
124
+ let e = n;
125
+ switch (t) {
126
+ case Boolean:
127
+ e = n !== null;
128
+ break;
129
+ case Number:
130
+ e = n === null ? null : Number(n);
131
+ break;
132
+ case Object:
133
+ case Array:
134
+ try {
135
+ e = JSON.parse(n);
136
+ } catch (i) {
137
+ e = null;
138
+ }
139
+ }
140
+ return e;
141
+ } }, dt = (n, t) => t !== n && (t == t || n == n), L = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: dt }, W = "finalized";
142
+ let y = class extends HTMLElement {
143
+ constructor() {
144
+ super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
145
+ }
146
+ static addInitializer(t) {
147
+ var e;
148
+ this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
149
+ }
150
+ static get observedAttributes() {
151
+ this.finalize();
152
+ const t = [];
153
+ return this.elementProperties.forEach((e, i) => {
154
+ const s = this._$Ep(i, e);
155
+ s !== void 0 && (this._$Ev.set(s, i), t.push(s));
156
+ }), t;
157
+ }
158
+ static createProperty(t, e = L) {
159
+ if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
160
+ const i = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, i, e);
161
+ s !== void 0 && Object.defineProperty(this.prototype, t, s);
162
+ }
163
+ }
164
+ static getPropertyDescriptor(t, e, i) {
165
+ return { get() {
166
+ return this[e];
167
+ }, set(s) {
168
+ const o = this[t];
169
+ this[e] = s, this.requestUpdate(t, o, i);
170
+ }, configurable: !0, enumerable: !0 };
171
+ }
172
+ static getPropertyOptions(t) {
173
+ return this.elementProperties.get(t) || L;
174
+ }
175
+ static finalize() {
176
+ if (this.hasOwnProperty(W))
177
+ return !1;
178
+ this[W] = !0;
179
+ const t = Object.getPrototypeOf(this);
180
+ 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")) {
181
+ const e = this.properties, i = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
182
+ for (const s of i)
183
+ this.createProperty(s, e[s]);
184
+ }
185
+ return this.elementStyles = this.finalizeStyles(this.styles), !0;
186
+ }
187
+ static finalizeStyles(t) {
188
+ const e = [];
189
+ if (Array.isArray(t)) {
190
+ const i = new Set(t.flat(1 / 0).reverse());
191
+ for (const s of i)
192
+ e.unshift(X(s));
193
+ } else
194
+ t !== void 0 && e.push(X(t));
195
+ return e;
196
+ }
197
+ static _$Ep(t, e) {
198
+ const i = e.attribute;
199
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
200
+ }
201
+ _$Eu() {
202
+ var t;
203
+ 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));
204
+ }
205
+ addController(t) {
206
+ var e, i;
207
+ ((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));
208
+ }
209
+ removeController(t) {
210
+ var e;
211
+ (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
212
+ }
213
+ _$Eg() {
214
+ this.constructor.elementProperties.forEach((t, e) => {
215
+ this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
216
+ });
217
+ }
218
+ createRenderRoot() {
219
+ var t;
220
+ const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
221
+ return bt(e, this.constructor.elementStyles), e;
222
+ }
223
+ connectedCallback() {
224
+ var t;
225
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
226
+ var i;
227
+ return (i = e.hostConnected) === null || i === void 0 ? void 0 : i.call(e);
228
+ });
229
+ }
230
+ enableUpdating(t) {
231
+ }
232
+ disconnectedCallback() {
233
+ var t;
234
+ (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
235
+ var i;
236
+ return (i = e.hostDisconnected) === null || i === void 0 ? void 0 : i.call(e);
237
+ });
238
+ }
239
+ attributeChangedCallback(t, e, i) {
240
+ this._$AK(t, i);
241
+ }
242
+ _$EO(t, e, i = L) {
243
+ var s;
244
+ const o = this.constructor._$Ep(t, i);
245
+ if (o !== void 0 && i.reflect === !0) {
246
+ const r = (((s = i.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? i.converter : V).toAttribute(e, i.type);
247
+ this._$El = t, r == null ? this.removeAttribute(o) : this.setAttribute(o, r), this._$El = null;
248
+ }
249
+ }
250
+ _$AK(t, e) {
251
+ var i;
252
+ const s = this.constructor, o = s._$Ev.get(t);
253
+ if (o !== void 0 && this._$El !== o) {
254
+ const r = s.getPropertyOptions(o), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((i = r.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? r.converter : V;
255
+ this._$El = o, this[o] = a.fromAttribute(e, r.type), this._$El = null;
256
+ }
257
+ }
258
+ requestUpdate(t, e, i) {
259
+ let s = !0;
260
+ t !== void 0 && (((i = i || this.constructor.getPropertyOptions(t)).hasChanged || dt)(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());
261
+ }
262
+ _$Ej() {
263
+ return G(this, null, function* () {
264
+ this.isUpdatePending = !0;
265
+ try {
266
+ yield this._$E_;
267
+ } catch (e) {
268
+ Promise.reject(e);
269
+ }
270
+ const t = this.scheduleUpdate();
271
+ return t != null && (yield t), !this.isUpdatePending;
272
+ });
273
+ }
274
+ scheduleUpdate() {
275
+ return this.performUpdate();
276
+ }
277
+ performUpdate() {
278
+ var t;
279
+ if (!this.isUpdatePending)
280
+ return;
281
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach((s, o) => this[o] = s), this._$Ei = void 0);
282
+ let e = !1;
283
+ const i = this._$AL;
284
+ try {
285
+ e = this.shouldUpdate(i), e ? (this.willUpdate(i), (t = this._$ES) === null || t === void 0 || t.forEach((s) => {
286
+ var o;
287
+ return (o = s.hostUpdate) === null || o === void 0 ? void 0 : o.call(s);
288
+ }), this.update(i)) : this._$Ek();
289
+ } catch (s) {
290
+ throw e = !1, this._$Ek(), s;
291
+ }
292
+ e && this._$AE(i);
293
+ }
294
+ willUpdate(t) {
295
+ }
296
+ _$AE(t) {
297
+ var e;
298
+ (e = this._$ES) === null || e === void 0 || e.forEach((i) => {
299
+ var s;
300
+ return (s = i.hostUpdated) === null || s === void 0 ? void 0 : s.call(i);
301
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
302
+ }
303
+ _$Ek() {
304
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
305
+ }
306
+ get updateComplete() {
307
+ return this.getUpdateComplete();
308
+ }
309
+ getUpdateComplete() {
310
+ return this._$E_;
311
+ }
312
+ shouldUpdate(t) {
313
+ return !0;
314
+ }
315
+ update(t) {
316
+ this._$EC !== void 0 && (this._$EC.forEach((e, i) => this._$EO(i, this[i], e)), this._$EC = void 0), this._$Ek();
317
+ }
318
+ updated(t) {
319
+ }
320
+ firstUpdated(t) {
321
+ }
322
+ };
323
+ y[W] = !0, y.elementProperties = /* @__PURE__ */ new Map(), y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, tt == null || tt({ ReactiveElement: y }), ((R = H.reactiveElementVersions) !== null && R !== void 0 ? R : H.reactiveElementVersions = []).push("1.6.3");
324
+ /**
325
+ * @license
326
+ * Copyright 2017 Google LLC
327
+ * SPDX-License-Identifier: BSD-3-Clause
328
+ */
329
+ var z;
330
+ const N = window, m = N.trustedTypes, et = m ? m.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, K = "$lit$", v = `lit$${(Math.random() + "").slice(9)}$`, ct = "?" + v, Ct = `<${ct}>`, A = document, b = () => A.createComment(""), w = (n) => n === null || typeof n != "object" && typeof n != "function", ut = Array.isArray, xt = (n) => ut(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", j = `[
331
+ \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, it = /-->/g, st = />/g, _ = RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
332
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, ot = /"/g, pt = /^(?:script|style|textarea|title)$/i, Pt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Kt = Pt(1), g = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), rt = /* @__PURE__ */ new WeakMap(), f = A.createTreeWalker(A, 129, null, !1);
333
+ function $t(n, t) {
334
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
335
+ throw Error("invalid template strings array");
336
+ return et !== void 0 ? et.createHTML(t) : t;
337
+ }
338
+ const Ut = (n, t) => {
339
+ const e = n.length - 1, i = [];
340
+ let s, o = t === 2 ? "<svg>" : "", r = S;
341
+ for (let a = 0; a < e; a++) {
342
+ const l = n[a];
343
+ let h, d, c = -1, p = 0;
344
+ for (; p < l.length && (r.lastIndex = p, d = r.exec(l), d !== null); )
345
+ p = r.lastIndex, r === S ? d[1] === "!--" ? r = it : d[1] !== void 0 ? r = st : d[2] !== void 0 ? (pt.test(d[2]) && (s = RegExp("</" + d[2], "g")), r = _) : d[3] !== void 0 && (r = _) : r === _ ? d[0] === ">" ? (r = s != null ? s : S, c = -1) : d[1] === void 0 ? c = -2 : (c = r.lastIndex - d[2].length, h = d[1], r = d[3] === void 0 ? _ : d[3] === '"' ? ot : nt) : r === ot || r === nt ? r = _ : r === it || r === st ? r = S : (r = _, s = void 0);
346
+ const $ = r === _ && n[a + 1].startsWith("/>") ? " " : "";
347
+ o += r === S ? l + Ct : c >= 0 ? (i.push(h), l.slice(0, c) + K + l.slice(c) + v + $) : l + v + (c === -2 ? (i.push(void 0), a) : $);
348
+ }
349
+ return [$t(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
350
+ };
351
+ class C {
352
+ constructor({ strings: t, _$litType$: e }, i) {
353
+ let s;
354
+ this.parts = [];
355
+ let o = 0, r = 0;
356
+ const a = t.length - 1, l = this.parts, [h, d] = Ut(t, e);
357
+ if (this.el = C.createElement(h, i), f.currentNode = this.el.content, e === 2) {
358
+ const c = this.el.content, p = c.firstChild;
359
+ p.remove(), c.append(...p.childNodes);
360
+ }
361
+ for (; (s = f.nextNode()) !== null && l.length < a; ) {
362
+ if (s.nodeType === 1) {
363
+ if (s.hasAttributes()) {
364
+ const c = [];
365
+ for (const p of s.getAttributeNames())
366
+ if (p.endsWith(K) || p.startsWith(v)) {
367
+ const $ = d[r++];
368
+ if (c.push(p), $ !== void 0) {
369
+ const vt = s.getAttribute($.toLowerCase() + K).split(v), P = /([.?@])?(.*)/.exec($);
370
+ l.push({ type: 1, index: o, name: P[2], strings: vt, ctor: P[1] === "." ? Ht : P[1] === "?" ? Tt : P[1] === "@" ? Ot : T });
371
+ } else
372
+ l.push({ type: 6, index: o });
373
+ }
374
+ for (const p of c)
375
+ s.removeAttribute(p);
376
+ }
377
+ if (pt.test(s.tagName)) {
378
+ const c = s.textContent.split(v), p = c.length - 1;
379
+ if (p > 0) {
380
+ s.textContent = m ? m.emptyScript : "";
381
+ for (let $ = 0; $ < p; $++)
382
+ s.append(c[$], b()), f.nextNode(), l.push({ type: 2, index: ++o });
383
+ s.append(c[p], b());
384
+ }
385
+ }
386
+ } else if (s.nodeType === 8)
387
+ if (s.data === ct)
388
+ l.push({ type: 2, index: o });
389
+ else {
390
+ let c = -1;
391
+ for (; (c = s.data.indexOf(v, c + 1)) !== -1; )
392
+ l.push({ type: 7, index: o }), c += v.length - 1;
393
+ }
394
+ o++;
395
+ }
396
+ }
397
+ static createElement(t, e) {
398
+ const i = A.createElement("template");
399
+ return i.innerHTML = t, i;
400
+ }
401
+ }
402
+ function E(n, t, e = n, i) {
403
+ var s, o, r, a;
404
+ if (t === g)
405
+ return t;
406
+ let l = i !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[i] : e._$Cl;
407
+ const h = w(t) ? void 0 : t._$litDirective$;
408
+ return (l == null ? void 0 : l.constructor) !== h && ((o = l == null ? void 0 : l._$AO) === null || o === void 0 || o.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, i)), i !== void 0 ? ((r = (a = e)._$Co) !== null && r !== void 0 ? r : a._$Co = [])[i] = l : e._$Cl = l), l !== void 0 && (t = E(n, l._$AS(n, t.values), l, i)), t;
409
+ }
410
+ class kt {
411
+ constructor(t, e) {
412
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
413
+ }
414
+ get parentNode() {
415
+ return this._$AM.parentNode;
416
+ }
417
+ get _$AU() {
418
+ return this._$AM._$AU;
419
+ }
420
+ u(t) {
421
+ var e;
422
+ const { el: { content: i }, parts: s } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : A).importNode(i, !0);
423
+ f.currentNode = o;
424
+ let r = f.nextNode(), a = 0, l = 0, h = s[0];
425
+ for (; h !== void 0; ) {
426
+ if (a === h.index) {
427
+ let d;
428
+ h.type === 2 ? d = new x(r, r.nextSibling, this, t) : h.type === 1 ? d = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (d = new Mt(r, this, t)), this._$AV.push(d), h = s[++l];
429
+ }
430
+ a !== (h == null ? void 0 : h.index) && (r = f.nextNode(), a++);
431
+ }
432
+ return f.currentNode = A, o;
433
+ }
434
+ v(t) {
435
+ let e = 0;
436
+ for (const i of this._$AV)
437
+ i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
438
+ }
439
+ }
440
+ class x {
441
+ constructor(t, e, i, s) {
442
+ var o;
443
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cp = (o = s == null ? void 0 : s.isConnected) === null || o === void 0 || o;
444
+ }
445
+ get _$AU() {
446
+ var t, e;
447
+ return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
448
+ }
449
+ get parentNode() {
450
+ let t = this._$AA.parentNode;
451
+ const e = this._$AM;
452
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
453
+ }
454
+ get startNode() {
455
+ return this._$AA;
456
+ }
457
+ get endNode() {
458
+ return this._$AB;
459
+ }
460
+ _$AI(t, e = this) {
461
+ t = E(this, t, e), w(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xt(t) ? this.T(t) : this._(t);
462
+ }
463
+ k(t) {
464
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
465
+ }
466
+ $(t) {
467
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
468
+ }
469
+ _(t) {
470
+ this._$AH !== u && w(this._$AH) ? this._$AA.nextSibling.data = t : this.$(A.createTextNode(t)), this._$AH = t;
471
+ }
472
+ g(t) {
473
+ var e;
474
+ const { values: i, _$litType$: s } = t, o = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = C.createElement($t(s.h, s.h[0]), this.options)), s);
475
+ if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === o)
476
+ this._$AH.v(i);
477
+ else {
478
+ const r = new kt(o, this), a = r.u(this.options);
479
+ r.v(i), this.$(a), this._$AH = r;
480
+ }
481
+ }
482
+ _$AC(t) {
483
+ let e = rt.get(t.strings);
484
+ return e === void 0 && rt.set(t.strings, e = new C(t)), e;
485
+ }
486
+ T(t) {
487
+ ut(this._$AH) || (this._$AH = [], this._$AR());
488
+ const e = this._$AH;
489
+ let i, s = 0;
490
+ for (const o of t)
491
+ s === e.length ? e.push(i = new x(this.k(b()), this.k(b()), this, this.options)) : i = e[s], i._$AI(o), s++;
492
+ s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
493
+ }
494
+ _$AR(t = this._$AA.nextSibling, e) {
495
+ var i;
496
+ for ((i = this._$AP) === null || i === void 0 || i.call(this, !1, !0, e); t && t !== this._$AB; ) {
497
+ const s = t.nextSibling;
498
+ t.remove(), t = s;
499
+ }
500
+ }
501
+ setConnected(t) {
502
+ var e;
503
+ this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
504
+ }
505
+ }
506
+ class T {
507
+ constructor(t, e, i, s, o) {
508
+ this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
509
+ }
510
+ get tagName() {
511
+ return this.element.tagName;
512
+ }
513
+ get _$AU() {
514
+ return this._$AM._$AU;
515
+ }
516
+ _$AI(t, e = this, i, s) {
517
+ const o = this.strings;
518
+ let r = !1;
519
+ if (o === void 0)
520
+ t = E(this, t, e, 0), r = !w(t) || t !== this._$AH && t !== g, r && (this._$AH = t);
521
+ else {
522
+ const a = t;
523
+ let l, h;
524
+ for (t = o[0], l = 0; l < o.length - 1; l++)
525
+ h = E(this, a[i + l], e, l), h === g && (h = this._$AH[l]), r || (r = !w(h) || h !== this._$AH[l]), h === u ? t = u : t !== u && (t += (h != null ? h : "") + o[l + 1]), this._$AH[l] = h;
526
+ }
527
+ r && !s && this.j(t);
528
+ }
529
+ j(t) {
530
+ t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
531
+ }
532
+ }
533
+ class Ht extends T {
534
+ constructor() {
535
+ super(...arguments), this.type = 3;
536
+ }
537
+ j(t) {
538
+ this.element[this.name] = t === u ? void 0 : t;
539
+ }
540
+ }
541
+ const Nt = m ? m.emptyScript : "";
542
+ class Tt extends T {
543
+ constructor() {
544
+ super(...arguments), this.type = 4;
545
+ }
546
+ j(t) {
547
+ t && t !== u ? this.element.setAttribute(this.name, Nt) : this.element.removeAttribute(this.name);
548
+ }
549
+ }
550
+ class Ot extends T {
551
+ constructor(t, e, i, s, o) {
552
+ super(t, e, i, s, o), this.type = 5;
553
+ }
554
+ _$AI(t, e = this) {
555
+ var i;
556
+ if ((t = (i = E(this, t, e, 0)) !== null && i !== void 0 ? i : u) === g)
557
+ return;
558
+ const s = this._$AH, o = t === u && s !== u || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== u && (s === u || o);
559
+ o && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
560
+ }
561
+ handleEvent(t) {
562
+ var e, i;
563
+ 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);
564
+ }
565
+ }
566
+ class Mt {
567
+ constructor(t, e, i) {
568
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
569
+ }
570
+ get _$AU() {
571
+ return this._$AM._$AU;
572
+ }
573
+ _$AI(t) {
574
+ E(this, t);
575
+ }
576
+ }
577
+ const lt = N.litHtmlPolyfillSupport;
578
+ lt == null || lt(C, x), ((z = N.litHtmlVersions) !== null && z !== void 0 ? z : N.litHtmlVersions = []).push("2.8.0");
579
+ const Rt = (n, t, e) => {
580
+ var i, s;
581
+ const o = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
582
+ let r = o._$litPart$;
583
+ if (r === void 0) {
584
+ const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
585
+ o._$litPart$ = r = new x(t.insertBefore(b(), a), a, void 0, e != null ? e : {});
586
+ }
587
+ return r._$AI(n), r;
588
+ };
589
+ /**
590
+ * @license
591
+ * Copyright 2017 Google LLC
592
+ * SPDX-License-Identifier: BSD-3-Clause
593
+ */
594
+ var B, D;
595
+ class k extends y {
596
+ constructor() {
597
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
598
+ }
599
+ createRenderRoot() {
600
+ var t, e;
601
+ const i = super.createRenderRoot();
602
+ return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = i.firstChild), i;
603
+ }
604
+ update(t) {
605
+ const e = this.render();
606
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Rt(e, this.renderRoot, this.renderOptions);
607
+ }
608
+ connectedCallback() {
609
+ var t;
610
+ super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
611
+ }
612
+ disconnectedCallback() {
613
+ var t;
614
+ super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
615
+ }
616
+ render() {
617
+ return g;
618
+ }
619
+ }
620
+ k.finalized = !0, k._$litElement$ = !0, (B = globalThis.litElementHydrateSupport) === null || B === void 0 || B.call(globalThis, { LitElement: k });
621
+ const ht = globalThis.litElementPolyfillSupport;
622
+ ht == null || ht({ LitElement: k });
623
+ ((D = globalThis.litElementVersions) !== null && D !== void 0 ? D : globalThis.litElementVersions = []).push("3.3.3");
624
+ /**
625
+ * @license
626
+ * Copyright 2017 Google LLC
627
+ * SPDX-License-Identifier: BSD-3-Clause
628
+ */
629
+ const qt = (n) => (t) => typeof t == "function" ? ((e, i) => (customElements.define(e, i), i))(n, t) : ((e, i) => {
630
+ const { kind: s, elements: o } = i;
631
+ return { kind: s, elements: o, finisher(r) {
632
+ customElements.define(e, r);
633
+ } };
634
+ })(n, t);
635
+ /**
636
+ * @license
637
+ * Copyright 2017 Google LLC
638
+ * SPDX-License-Identifier: BSD-3-Clause
639
+ */
640
+ const Lt = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? M(O({}, t), { finisher(e) {
641
+ e.createProperty(t.key, n);
642
+ } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
643
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
644
+ }, finisher(e) {
645
+ e.createProperty(t.key, n);
646
+ } }, zt = (n, t, e) => {
647
+ t.constructor.createProperty(e, n);
648
+ };
649
+ function Zt(n) {
650
+ return (t, e) => e !== void 0 ? zt(n, t, e) : Lt(n, t);
651
+ }
652
+ /**
653
+ * @license
654
+ * Copyright 2021 Google LLC
655
+ * SPDX-License-Identifier: BSD-3-Clause
656
+ */
657
+ var I;
658
+ ((I = window.HTMLSlotElement) === null || I === void 0 ? void 0 : I.prototype.assignedElements) != null;
659
+ export {
660
+ u as A,
661
+ qt as e,
662
+ Vt as i,
663
+ Zt as n,
664
+ k as s,
665
+ Dt as t,
666
+ Kt as x
667
+ };
668
+ //# sourceMappingURL=query-assigned-elements-a9b1c83a.js.map