@gsa-tts/graymatter-ui 1.3.0 → 2.0.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.
@@ -0,0 +1,807 @@
1
+ var _e = Object.defineProperty;
2
+ var ge = (r, e, t) => e in r ? _e(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var B = (r, e, t) => ge(r, typeof e != "symbol" ? e + "" : e, t);
4
+ /**
5
+ * @license
6
+ * Copyright 2019 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ */
9
+ const O = globalThis, J = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, le = Symbol(), G = /* @__PURE__ */ new WeakMap();
10
+ let ve = class {
11
+ constructor(e, t, n) {
12
+ if (this._$cssResult$ = !0, n !== le) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
13
+ this.cssText = e, this.t = t;
14
+ }
15
+ get styleSheet() {
16
+ let e = this.o;
17
+ const t = this.t;
18
+ if (J && e === void 0) {
19
+ const n = t !== void 0 && t.length === 1;
20
+ n && (e = G.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && G.set(t, e));
21
+ }
22
+ return e;
23
+ }
24
+ toString() {
25
+ return this.cssText;
26
+ }
27
+ };
28
+ const D = (r) => new ve(typeof r == "string" ? r : r + "", void 0, le), we = (r, e) => {
29
+ if (J) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
30
+ else for (const t of e) {
31
+ const n = document.createElement("style"), a = O.litNonce;
32
+ a !== void 0 && n.setAttribute("nonce", a), n.textContent = t.cssText, r.appendChild(n);
33
+ }
34
+ }, Q = J ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
35
+ let t = "";
36
+ for (const n of e.cssRules) t += n.cssText;
37
+ return D(t);
38
+ })(r) : r;
39
+ /**
40
+ * @license
41
+ * Copyright 2017 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */
44
+ const { is: $e, defineProperty: ye, getOwnPropertyDescriptor: ke, getOwnPropertyNames: xe, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, p = globalThis, Z = p.trustedTypes, Ee = Z ? Z.emptyScript : "", L = p.reactiveElementPolyfillSupport, A = (r, e) => r, V = { toAttribute(r, e) {
45
+ switch (e) {
46
+ case Boolean:
47
+ r = r ? Ee : null;
48
+ break;
49
+ case Object:
50
+ case Array:
51
+ r = r == null ? r : JSON.stringify(r);
52
+ }
53
+ return r;
54
+ }, fromAttribute(r, e) {
55
+ let t = r;
56
+ switch (e) {
57
+ case Boolean:
58
+ t = r !== null;
59
+ break;
60
+ case Number:
61
+ t = r === null ? null : Number(r);
62
+ break;
63
+ case Object:
64
+ case Array:
65
+ try {
66
+ t = JSON.parse(r);
67
+ } catch {
68
+ t = null;
69
+ }
70
+ }
71
+ return t;
72
+ } }, de = (r, e) => !$e(r, e), X = { attribute: !0, type: String, converter: V, reflect: !1, useDefault: !1, hasChanged: de };
73
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), p.litPropertyMetadata ?? (p.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
74
+ let y = class extends HTMLElement {
75
+ static addInitializer(e) {
76
+ this._$Ei(), (this.l ?? (this.l = [])).push(e);
77
+ }
78
+ static get observedAttributes() {
79
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
80
+ }
81
+ static createProperty(e, t = X) {
82
+ if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
83
+ const n = Symbol(), a = this.getPropertyDescriptor(e, n, t);
84
+ a !== void 0 && ye(this.prototype, e, a);
85
+ }
86
+ }
87
+ static getPropertyDescriptor(e, t, n) {
88
+ const { get: a, set: o } = ke(this.prototype, e) ?? { get() {
89
+ return this[t];
90
+ }, set(i) {
91
+ this[t] = i;
92
+ } };
93
+ return { get: a, set(i) {
94
+ const l = a == null ? void 0 : a.call(this);
95
+ o == null || o.call(this, i), this.requestUpdate(e, l, n);
96
+ }, configurable: !0, enumerable: !0 };
97
+ }
98
+ static getPropertyOptions(e) {
99
+ return this.elementProperties.get(e) ?? X;
100
+ }
101
+ static _$Ei() {
102
+ if (this.hasOwnProperty(A("elementProperties"))) return;
103
+ const e = Se(this);
104
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
105
+ }
106
+ static finalize() {
107
+ if (this.hasOwnProperty(A("finalized"))) return;
108
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(A("properties"))) {
109
+ const t = this.properties, n = [...xe(t), ...Ae(t)];
110
+ for (const a of n) this.createProperty(a, t[a]);
111
+ }
112
+ const e = this[Symbol.metadata];
113
+ if (e !== null) {
114
+ const t = litPropertyMetadata.get(e);
115
+ if (t !== void 0) for (const [n, a] of t) this.elementProperties.set(n, a);
116
+ }
117
+ this._$Eh = /* @__PURE__ */ new Map();
118
+ for (const [t, n] of this.elementProperties) {
119
+ const a = this._$Eu(t, n);
120
+ a !== void 0 && this._$Eh.set(a, t);
121
+ }
122
+ this.elementStyles = this.finalizeStyles(this.styles);
123
+ }
124
+ static finalizeStyles(e) {
125
+ const t = [];
126
+ if (Array.isArray(e)) {
127
+ const n = new Set(e.flat(1 / 0).reverse());
128
+ for (const a of n) t.unshift(Q(a));
129
+ } else e !== void 0 && t.push(Q(e));
130
+ return t;
131
+ }
132
+ static _$Eu(e, t) {
133
+ const n = t.attribute;
134
+ return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
135
+ }
136
+ constructor() {
137
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
138
+ }
139
+ _$Ev() {
140
+ var e;
141
+ this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((t) => t(this));
142
+ }
143
+ addController(e) {
144
+ var t;
145
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((t = e.hostConnected) == null || t.call(e));
146
+ }
147
+ removeController(e) {
148
+ var t;
149
+ (t = this._$EO) == null || t.delete(e);
150
+ }
151
+ _$E_() {
152
+ const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
153
+ for (const n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
154
+ e.size > 0 && (this._$Ep = e);
155
+ }
156
+ createRenderRoot() {
157
+ const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
158
+ return we(e, this.constructor.elementStyles), e;
159
+ }
160
+ connectedCallback() {
161
+ var e;
162
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((t) => {
163
+ var n;
164
+ return (n = t.hostConnected) == null ? void 0 : n.call(t);
165
+ });
166
+ }
167
+ enableUpdating(e) {
168
+ }
169
+ disconnectedCallback() {
170
+ var e;
171
+ (e = this._$EO) == null || e.forEach((t) => {
172
+ var n;
173
+ return (n = t.hostDisconnected) == null ? void 0 : n.call(t);
174
+ });
175
+ }
176
+ attributeChangedCallback(e, t, n) {
177
+ this._$AK(e, n);
178
+ }
179
+ _$ET(e, t) {
180
+ var o;
181
+ const n = this.constructor.elementProperties.get(e), a = this.constructor._$Eu(e, n);
182
+ if (a !== void 0 && n.reflect === !0) {
183
+ const i = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : V).toAttribute(t, n.type);
184
+ this._$Em = e, i == null ? this.removeAttribute(a) : this.setAttribute(a, i), this._$Em = null;
185
+ }
186
+ }
187
+ _$AK(e, t) {
188
+ var o, i;
189
+ const n = this.constructor, a = n._$Eh.get(e);
190
+ if (a !== void 0 && this._$Em !== a) {
191
+ const l = n.getPropertyOptions(a), s = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : V;
192
+ this._$Em = a;
193
+ const c = s.fromAttribute(t, l.type);
194
+ this[a] = c ?? ((i = this._$Ej) == null ? void 0 : i.get(a)) ?? c, this._$Em = null;
195
+ }
196
+ }
197
+ requestUpdate(e, t, n, a = !1, o) {
198
+ var i;
199
+ if (e !== void 0) {
200
+ const l = this.constructor;
201
+ if (a === !1 && (o = this[e]), n ?? (n = l.getPropertyOptions(e)), !((n.hasChanged ?? de)(o, t) || n.useDefault && n.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(l._$Eu(e, n)))) return;
202
+ this.C(e, t, n);
203
+ }
204
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
205
+ }
206
+ C(e, t, { useDefault: n, reflect: a, wrapped: o }, i) {
207
+ n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, i ?? t ?? this[e]), o !== !0 || i !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), a === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
208
+ }
209
+ async _$EP() {
210
+ this.isUpdatePending = !0;
211
+ try {
212
+ await this._$ES;
213
+ } catch (t) {
214
+ Promise.reject(t);
215
+ }
216
+ const e = this.scheduleUpdate();
217
+ return e != null && await e, !this.isUpdatePending;
218
+ }
219
+ scheduleUpdate() {
220
+ return this.performUpdate();
221
+ }
222
+ performUpdate() {
223
+ var n;
224
+ if (!this.isUpdatePending) return;
225
+ if (!this.hasUpdated) {
226
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
227
+ for (const [o, i] of this._$Ep) this[o] = i;
228
+ this._$Ep = void 0;
229
+ }
230
+ const a = this.constructor.elementProperties;
231
+ if (a.size > 0) for (const [o, i] of a) {
232
+ const { wrapped: l } = i, s = this[o];
233
+ l !== !0 || this._$AL.has(o) || s === void 0 || this.C(o, void 0, i, s);
234
+ }
235
+ }
236
+ let e = !1;
237
+ const t = this._$AL;
238
+ try {
239
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), (n = this._$EO) == null || n.forEach((a) => {
240
+ var o;
241
+ return (o = a.hostUpdate) == null ? void 0 : o.call(a);
242
+ }), this.update(t)) : this._$EM();
243
+ } catch (a) {
244
+ throw e = !1, this._$EM(), a;
245
+ }
246
+ e && this._$AE(t);
247
+ }
248
+ willUpdate(e) {
249
+ }
250
+ _$AE(e) {
251
+ var t;
252
+ (t = this._$EO) == null || t.forEach((n) => {
253
+ var a;
254
+ return (a = n.hostUpdated) == null ? void 0 : a.call(n);
255
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
256
+ }
257
+ _$EM() {
258
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
259
+ }
260
+ get updateComplete() {
261
+ return this.getUpdateComplete();
262
+ }
263
+ getUpdateComplete() {
264
+ return this._$ES;
265
+ }
266
+ shouldUpdate(e) {
267
+ return !0;
268
+ }
269
+ update(e) {
270
+ this._$Eq && (this._$Eq = this._$Eq.forEach((t) => this._$ET(t, this[t]))), this._$EM();
271
+ }
272
+ updated(e) {
273
+ }
274
+ firstUpdated(e) {
275
+ }
276
+ };
277
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[A("elementProperties")] = /* @__PURE__ */ new Map(), y[A("finalized")] = /* @__PURE__ */ new Map(), L == null || L({ ReactiveElement: y }), (p.reactiveElementVersions ?? (p.reactiveElementVersions = [])).push("2.1.2");
278
+ /**
279
+ * @license
280
+ * Copyright 2017 Google LLC
281
+ * SPDX-License-Identifier: BSD-3-Clause
282
+ */
283
+ const S = globalThis, Y = (r) => r, R = S.trustedTypes, ee = R ? R.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ce = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, he = "?" + m, Ce = `<${he}>`, $ = document, M = () => $.createComment(""), T = (r) => r === null || typeof r != "object" && typeof r != "function", K = Array.isArray, Me = (r) => K(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", j = `[
284
+ \f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, te = /-->/g, ne = />/g, g = RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
285
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ae = /'/g, re = /"/g, ue = /^(?:script|style|textarea|title)$/i, Te = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), H = Te(1), _ = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), oe = /* @__PURE__ */ new WeakMap(), v = $.createTreeWalker($, 129);
286
+ function fe(r, e) {
287
+ if (!K(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
288
+ return ee !== void 0 ? ee.createHTML(e) : e;
289
+ }
290
+ const ze = (r, e) => {
291
+ const t = r.length - 1, n = [];
292
+ let a, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", i = x;
293
+ for (let l = 0; l < t; l++) {
294
+ const s = r[l];
295
+ let c, u, d = -1, f = 0;
296
+ for (; f < s.length && (i.lastIndex = f, u = i.exec(s), u !== null); ) f = i.lastIndex, i === x ? u[1] === "!--" ? i = te : u[1] !== void 0 ? i = ne : u[2] !== void 0 ? (ue.test(u[2]) && (a = RegExp("</" + u[2], "g")), i = g) : u[3] !== void 0 && (i = g) : i === g ? u[0] === ">" ? (i = a ?? x, d = -1) : u[1] === void 0 ? d = -2 : (d = i.lastIndex - u[2].length, c = u[1], i = u[3] === void 0 ? g : u[3] === '"' ? re : ae) : i === re || i === ae ? i = g : i === te || i === ne ? i = x : (i = g, a = void 0);
297
+ const b = i === g && r[l + 1].startsWith("/>") ? " " : "";
298
+ o += i === x ? s + Ce : d >= 0 ? (n.push(c), s.slice(0, d) + ce + s.slice(d) + m + b) : s + m + (d === -2 ? l : b);
299
+ }
300
+ return [fe(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
301
+ };
302
+ class z {
303
+ constructor({ strings: e, _$litType$: t }, n) {
304
+ let a;
305
+ this.parts = [];
306
+ let o = 0, i = 0;
307
+ const l = e.length - 1, s = this.parts, [c, u] = ze(e, t);
308
+ if (this.el = z.createElement(c, n), v.currentNode = this.el.content, t === 2 || t === 3) {
309
+ const d = this.el.content.firstChild;
310
+ d.replaceWith(...d.childNodes);
311
+ }
312
+ for (; (a = v.nextNode()) !== null && s.length < l; ) {
313
+ if (a.nodeType === 1) {
314
+ if (a.hasAttributes()) for (const d of a.getAttributeNames()) if (d.endsWith(ce)) {
315
+ const f = u[i++], b = a.getAttribute(d).split(m), U = /([.?@])?(.*)/.exec(f);
316
+ s.push({ type: 1, index: o, name: U[2], strings: b, ctor: U[1] === "." ? Ue : U[1] === "?" ? He : U[1] === "@" ? Oe : N }), a.removeAttribute(d);
317
+ } else d.startsWith(m) && (s.push({ type: 6, index: o }), a.removeAttribute(d));
318
+ if (ue.test(a.tagName)) {
319
+ const d = a.textContent.split(m), f = d.length - 1;
320
+ if (f > 0) {
321
+ a.textContent = R ? R.emptyScript : "";
322
+ for (let b = 0; b < f; b++) a.append(d[b], M()), v.nextNode(), s.push({ type: 2, index: ++o });
323
+ a.append(d[f], M());
324
+ }
325
+ }
326
+ } else if (a.nodeType === 8) if (a.data === he) s.push({ type: 2, index: o });
327
+ else {
328
+ let d = -1;
329
+ for (; (d = a.data.indexOf(m, d + 1)) !== -1; ) s.push({ type: 7, index: o }), d += m.length - 1;
330
+ }
331
+ o++;
332
+ }
333
+ }
334
+ static createElement(e, t) {
335
+ const n = $.createElement("template");
336
+ return n.innerHTML = e, n;
337
+ }
338
+ }
339
+ function k(r, e, t = r, n) {
340
+ var i, l;
341
+ if (e === _) return e;
342
+ let a = n !== void 0 ? (i = t._$Co) == null ? void 0 : i[n] : t._$Cl;
343
+ const o = T(e) ? void 0 : e._$litDirective$;
344
+ return (a == null ? void 0 : a.constructor) !== o && ((l = a == null ? void 0 : a._$AO) == null || l.call(a, !1), o === void 0 ? a = void 0 : (a = new o(r), a._$AT(r, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = a : t._$Cl = a), a !== void 0 && (e = k(r, a._$AS(r, e.values), a, n)), e;
345
+ }
346
+ class Pe {
347
+ constructor(e, t) {
348
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
349
+ }
350
+ get parentNode() {
351
+ return this._$AM.parentNode;
352
+ }
353
+ get _$AU() {
354
+ return this._$AM._$AU;
355
+ }
356
+ u(e) {
357
+ const { el: { content: t }, parts: n } = this._$AD, a = ((e == null ? void 0 : e.creationScope) ?? $).importNode(t, !0);
358
+ v.currentNode = a;
359
+ let o = v.nextNode(), i = 0, l = 0, s = n[0];
360
+ for (; s !== void 0; ) {
361
+ if (i === s.index) {
362
+ let c;
363
+ s.type === 2 ? c = new P(o, o.nextSibling, this, e) : s.type === 1 ? c = new s.ctor(o, s.name, s.strings, this, e) : s.type === 6 && (c = new Re(o, this, e)), this._$AV.push(c), s = n[++l];
364
+ }
365
+ i !== (s == null ? void 0 : s.index) && (o = v.nextNode(), i++);
366
+ }
367
+ return v.currentNode = $, a;
368
+ }
369
+ p(e) {
370
+ let t = 0;
371
+ for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, t), t += n.strings.length - 2) : n._$AI(e[t])), t++;
372
+ }
373
+ }
374
+ class P {
375
+ get _$AU() {
376
+ var e;
377
+ return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
378
+ }
379
+ constructor(e, t, n, a) {
380
+ this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = a, this._$Cv = (a == null ? void 0 : a.isConnected) ?? !0;
381
+ }
382
+ get parentNode() {
383
+ let e = this._$AA.parentNode;
384
+ const t = this._$AM;
385
+ return t !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = t.parentNode), e;
386
+ }
387
+ get startNode() {
388
+ return this._$AA;
389
+ }
390
+ get endNode() {
391
+ return this._$AB;
392
+ }
393
+ _$AI(e, t = this) {
394
+ e = k(this, e, t), T(e) ? e === h || e == null || e === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : e !== this._$AH && e !== _ && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Me(e) ? this.k(e) : this._(e);
395
+ }
396
+ O(e) {
397
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
398
+ }
399
+ T(e) {
400
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
401
+ }
402
+ _(e) {
403
+ this._$AH !== h && T(this._$AH) ? this._$AA.nextSibling.data = e : this.T($.createTextNode(e)), this._$AH = e;
404
+ }
405
+ $(e) {
406
+ var o;
407
+ const { values: t, _$litType$: n } = e, a = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = z.createElement(fe(n.h, n.h[0]), this.options)), n);
408
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === a) this._$AH.p(t);
409
+ else {
410
+ const i = new Pe(a, this), l = i.u(this.options);
411
+ i.p(t), this.T(l), this._$AH = i;
412
+ }
413
+ }
414
+ _$AC(e) {
415
+ let t = oe.get(e.strings);
416
+ return t === void 0 && oe.set(e.strings, t = new z(e)), t;
417
+ }
418
+ k(e) {
419
+ K(this._$AH) || (this._$AH = [], this._$AR());
420
+ const t = this._$AH;
421
+ let n, a = 0;
422
+ for (const o of e) a === t.length ? t.push(n = new P(this.O(M()), this.O(M()), this, this.options)) : n = t[a], n._$AI(o), a++;
423
+ a < t.length && (this._$AR(n && n._$AB.nextSibling, a), t.length = a);
424
+ }
425
+ _$AR(e = this._$AA.nextSibling, t) {
426
+ var n;
427
+ for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, t); e !== this._$AB; ) {
428
+ const a = Y(e).nextSibling;
429
+ Y(e).remove(), e = a;
430
+ }
431
+ }
432
+ setConnected(e) {
433
+ var t;
434
+ this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
435
+ }
436
+ }
437
+ class N {
438
+ get tagName() {
439
+ return this.element.tagName;
440
+ }
441
+ get _$AU() {
442
+ return this._$AM._$AU;
443
+ }
444
+ constructor(e, t, n, a, o) {
445
+ this.type = 1, this._$AH = h, this._$AN = void 0, this.element = e, this.name = t, this._$AM = a, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = h;
446
+ }
447
+ _$AI(e, t = this, n, a) {
448
+ const o = this.strings;
449
+ let i = !1;
450
+ if (o === void 0) e = k(this, e, t, 0), i = !T(e) || e !== this._$AH && e !== _, i && (this._$AH = e);
451
+ else {
452
+ const l = e;
453
+ let s, c;
454
+ for (e = o[0], s = 0; s < o.length - 1; s++) c = k(this, l[n + s], t, s), c === _ && (c = this._$AH[s]), i || (i = !T(c) || c !== this._$AH[s]), c === h ? e = h : e !== h && (e += (c ?? "") + o[s + 1]), this._$AH[s] = c;
455
+ }
456
+ i && !a && this.j(e);
457
+ }
458
+ j(e) {
459
+ e === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
460
+ }
461
+ }
462
+ class Ue extends N {
463
+ constructor() {
464
+ super(...arguments), this.type = 3;
465
+ }
466
+ j(e) {
467
+ this.element[this.name] = e === h ? void 0 : e;
468
+ }
469
+ }
470
+ class He extends N {
471
+ constructor() {
472
+ super(...arguments), this.type = 4;
473
+ }
474
+ j(e) {
475
+ this.element.toggleAttribute(this.name, !!e && e !== h);
476
+ }
477
+ }
478
+ class Oe extends N {
479
+ constructor(e, t, n, a, o) {
480
+ super(e, t, n, a, o), this.type = 5;
481
+ }
482
+ _$AI(e, t = this) {
483
+ if ((e = k(this, e, t, 0) ?? h) === _) return;
484
+ const n = this._$AH, a = e === h && n !== h || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== h && (n === h || a);
485
+ a && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
486
+ }
487
+ handleEvent(e) {
488
+ var t;
489
+ typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
490
+ }
491
+ }
492
+ class Re {
493
+ constructor(e, t, n) {
494
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
495
+ }
496
+ get _$AU() {
497
+ return this._$AM._$AU;
498
+ }
499
+ _$AI(e) {
500
+ k(this, e);
501
+ }
502
+ }
503
+ const I = S.litHtmlPolyfillSupport;
504
+ I == null || I(z, P), (S.litHtmlVersions ?? (S.litHtmlVersions = [])).push("3.3.3");
505
+ const Ne = (r, e, t) => {
506
+ const n = (t == null ? void 0 : t.renderBefore) ?? e;
507
+ let a = n._$litPart$;
508
+ if (a === void 0) {
509
+ const o = (t == null ? void 0 : t.renderBefore) ?? null;
510
+ n._$litPart$ = a = new P(e.insertBefore(M(), o), o, void 0, t ?? {});
511
+ }
512
+ return a._$AI(r), a;
513
+ };
514
+ /**
515
+ * @license
516
+ * Copyright 2017 Google LLC
517
+ * SPDX-License-Identifier: BSD-3-Clause
518
+ */
519
+ const w = globalThis;
520
+ let E = class extends y {
521
+ constructor() {
522
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
523
+ }
524
+ createRenderRoot() {
525
+ var t;
526
+ const e = super.createRenderRoot();
527
+ return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e;
528
+ }
529
+ update(e) {
530
+ const t = this.render();
531
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Ne(t, this.renderRoot, this.renderOptions);
532
+ }
533
+ connectedCallback() {
534
+ var e;
535
+ super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
536
+ }
537
+ disconnectedCallback() {
538
+ var e;
539
+ super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
540
+ }
541
+ render() {
542
+ return _;
543
+ }
544
+ };
545
+ var se;
546
+ E._$litElement$ = !0, E.finalized = !0, (se = w.litElementHydrateSupport) == null || se.call(w, { LitElement: E });
547
+ const W = w.litElementPolyfillSupport;
548
+ W == null || W({ LitElement: E });
549
+ (w.litElementVersions ?? (w.litElementVersions = [])).push("4.2.2");
550
+ /**
551
+ * @license
552
+ * Copyright 2017 Google LLC
553
+ * SPDX-License-Identifier: BSD-3-Clause
554
+ */
555
+ const be = { ATTRIBUTE: 1, CHILD: 2 }, me = (r) => (...e) => ({ _$litDirective$: r, values: e });
556
+ class pe {
557
+ constructor(e) {
558
+ }
559
+ get _$AU() {
560
+ return this._$AM._$AU;
561
+ }
562
+ _$AT(e, t, n) {
563
+ this._$Ct = e, this._$AM = t, this._$Ci = n;
564
+ }
565
+ _$AS(e, t) {
566
+ return this.update(e, t);
567
+ }
568
+ update(e, t) {
569
+ return this.render(...t);
570
+ }
571
+ }
572
+ /**
573
+ * @license
574
+ * Copyright 2017 Google LLC
575
+ * SPDX-License-Identifier: BSD-3-Clause
576
+ */
577
+ let q = class extends pe {
578
+ constructor(e) {
579
+ if (super(e), this.it = h, e.type !== be.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
580
+ }
581
+ render(e) {
582
+ if (e === h || e == null) return this._t = void 0, this.it = e;
583
+ if (e === _) return e;
584
+ if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
585
+ if (e === this.it) return this._t;
586
+ this.it = e;
587
+ const t = [e];
588
+ return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
589
+ }
590
+ };
591
+ q.directiveName = "unsafeHTML", q.resultType = 1;
592
+ const ie = me(q);
593
+ /**
594
+ * @license
595
+ * Copyright 2018 Google LLC
596
+ * SPDX-License-Identifier: BSD-3-Clause
597
+ */
598
+ const Be = me(class extends pe {
599
+ constructor(r) {
600
+ var e;
601
+ if (super(r), r.type !== be.ATTRIBUTE || r.name !== "class" || ((e = r.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
602
+ }
603
+ render(r) {
604
+ return " " + Object.keys(r).filter((e) => r[e]).join(" ") + " ";
605
+ }
606
+ update(r, [e]) {
607
+ var n, a;
608
+ if (this.st === void 0) {
609
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
610
+ for (const o in e) e[o] && !((n = this.nt) != null && n.has(o)) && this.st.add(o);
611
+ return this.render(e);
612
+ }
613
+ const t = r.element.classList;
614
+ for (const o of this.st) o in e || (t.remove(o), this.st.delete(o));
615
+ for (const o in e) {
616
+ const i = !!e[o];
617
+ i === this.st.has(o) || (a = this.nt) != null && a.has(o) || (i ? (t.add(o), this.st.add(o)) : (t.remove(o), this.st.delete(o)));
618
+ }
619
+ return _;
620
+ }
621
+ }), Le = '@font-face{font-family:Roboto Mono Web;font-style:normal;font-weight:300;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-300.woff2) format("woff2")}@font-face{font-family:Roboto Mono Web;font-style:normal;font-weight:400;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-regular.woff2) format("woff2")}@font-face{font-family:Roboto Mono Web;font-style:normal;font-weight:700;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-700.woff2) format("woff2")}@font-face{font-family:Roboto Mono Web;font-style:italic;font-weight:300;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-300italic.woff2) format("woff2")}@font-face{font-family:Roboto Mono Web;font-style:italic;font-weight:400;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-italic.woff2) format("woff2")}@font-face{font-family:Roboto Mono Web;font-style:italic;font-weight:700;font-display:fallback;src:url(../fonts/roboto-mono/roboto-mono-v5-latin-700italic.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:normal;font-weight:300;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-light-webfont.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:normal;font-weight:400;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:normal;font-weight:700;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:italic;font-weight:300;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-lightitalic-webfont.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:italic;font-weight:400;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-italic-webfont.woff2) format("woff2")}@font-face{font-family:Source Sans Pro Web;font-style:italic;font-weight:700;font-display:fallback;src:url(../fonts/source-sans-pro/sourcesanspro-bolditalic-webfont.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:normal;font-weight:300;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-Light.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:normal;font-weight:400;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-Regular.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:normal;font-weight:700;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-Bold.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:italic;font-weight:300;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-LightItalic.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:italic;font-weight:400;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-Italic.woff2) format("woff2")}@font-face{font-family:Merriweather Web;font-style:italic;font-weight:700;font-display:fallback;src:url(../fonts/merriweather/Latin-Merriweather-BoldItalic.woff2) format("woff2")}.usa-media-block{align-items:flex-start;display:flex}.usa-media-block__img{flex-shrink:0;margin-right:.5rem}.usa-media-block__body{flex:1 1 0%}.usa-banner{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.06rem;line-height:1.5;background-color:#f0f0f0}@media all and (min-width:40em){.usa-banner{font-size:.87rem;padding-bottom:0rem}}.usa-banner .usa-accordion{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.06rem;line-height:1.5}.usa-banner .grid-row{display:flex;flex-wrap:wrap}.usa-banner .grid-row.grid-gap-lg{margin-left:-.75rem;margin-right:-.75rem}.usa-banner .grid-row.grid-gap-lg>*{padding-left:.75rem;padding-right:.75rem}@media all and (min-width:40em){.usa-banner .grid-row .tablet\\:grid-col-6{flex:0 1 auto;width:50%}}.usa-banner__header,.usa-banner__content{color:#1b1b1b}.usa-banner__content{margin-left:auto;margin-right:auto;max-width:64rem;padding-left:1rem;padding-right:1rem}.usa-banner__content{padding-left:1rem;padding-right:1rem}@media all and (min-width:64em){.usa-banner__content{padding-left:2rem;padding-right:2rem}}.usa-banner__content{background-color:transparent;font-size:1rem;overflow:hidden;padding-bottom:1rem;padding-left:.5rem;padding-top:.25rem;width:100%}@media all and (min-width:40em){.usa-banner__content{padding-bottom:1.5rem;padding-top:1.5rem}}.usa-banner__content p:first-child{margin:0}.usa-banner__guidance{display:flex;align-items:flex-start;max-width:64ex;padding-top:1rem}@media all and (min-width:40em){.usa-banner__guidance{padding-top:0rem}}.usa-banner__lock-image{height:1.5ex;width:1.21875ex}.usa-banner__lock-image path{fill:currentColor}@media(forced-colors:active){.usa-banner__lock-image path{fill:CanvasText}}.usa-banner__inner{padding-left:1rem;padding-right:1rem}.usa-banner__inner{margin-left:auto;margin-right:auto;max-width:64rem;padding-left:1rem;padding-right:1rem}@media all and (min-width:64em){.usa-banner__inner{padding-left:2rem;padding-right:2rem}}.usa-banner__inner{display:flex;flex-wrap:wrap;align-items:flex-start;padding-right:0rem}@media all and (min-width:40em){.usa-banner__inner{align-items:center}}.usa-banner__header{padding-bottom:.5rem;padding-top:.5rem;font-size:.8rem;font-weight:400;min-height:3rem;position:relative}@media all and (min-width:40em){.usa-banner__header{padding-bottom:.25rem;padding-top:.25rem;min-height:0}}.usa-banner__header-text{margin-bottom:0;margin-top:0;font-size:.8rem;line-height:1.1}.usa-banner__header-action:after{background-image:url(../img/usa-icons/expand_more.svg);background-repeat:no-repeat;background-position:center center;background-size:1rem 1rem;display:inline-block;height:1rem;width:1rem}@supports (mask: url()){.usa-banner__header-action:after{background:none;background-color:#005ea2;-webkit-mask-image:url(../img/usa-icons/expand_more.svg),linear-gradient(transparent,transparent);mask-image:url(../img/usa-icons/expand_more.svg),linear-gradient(transparent,transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1rem 1rem;mask-size:1rem 1rem}.usa-banner__header-action:after:hover{background-color:#1a4480}}.usa-banner__header-action:after{content:"";vertical-align:middle;margin-left:auto}.usa-banner__header-action:hover:after{content:"";background-color:#1a4480}.usa-banner__header-action{color:#005ea2}.usa-banner__header-action:visited{color:#54278f}.usa-banner__header-action:hover,.usa-banner__header-action:active{color:#1a4480}.usa-banner__header-action{line-height:1.1;margin-bottom:0rem;margin-top:2px;text-decoration:underline}@media all and (min-width:40em){.usa-banner__header-action{display:none}}@media(forced-colors:active){.usa-banner__header-action{color:LinkText}.usa-banner__header-action:after{background-color:ButtonText}}.usa-banner__header-flag{float:left;margin-right:.5rem;width:1rem}@media all and (min-width:40em){.usa-banner__header-flag{margin-right:.5rem;padding-top:0rem}}.usa-banner__header--expanded{padding-right:3.5rem}@media all and (min-width:40em){.usa-banner__header--expanded{background-color:transparent;display:block;font-size:.8rem;font-weight:400;min-height:0rem;padding-right:0rem}}.usa-banner__header--expanded .usa-banner__inner{margin-left:0rem}@media all and (min-width:40em){.usa-banner__header--expanded .usa-banner__inner{margin-left:auto}}.usa-banner__header--expanded .usa-banner__header-action{display:none}.usa-banner__button{color:#005ea2;text-decoration:underline}.usa-banner__button:hover{color:#1a4480}.usa-banner__button:active{color:#162e51}.usa-banner__button:focus{outline:.25rem solid #2491ff;outline-offset:0rem}.usa-banner__button{background-color:transparent;border:0;border-radius:0;box-shadow:none;font-weight:400;justify-content:normal;text-align:left;margin:0;padding:0;width:auto}.usa-banner__button:hover,.usa-banner__button.usa-button--hover,.usa-banner__button:disabled:hover,.usa-banner__button[aria-disabled=true]:hover,.usa-banner__button:disabled.usa-button--hover,.usa-banner__button[aria-disabled=true].usa-button--hover,.usa-banner__button:active,.usa-banner__button.usa-button--active,.usa-banner__button:disabled:active,.usa-banner__button[aria-disabled=true]:active,.usa-banner__button:disabled.usa-button--active,.usa-banner__button[aria-disabled=true].usa-button--active,.usa-banner__button:disabled:focus,.usa-banner__button[aria-disabled=true]:focus,.usa-banner__button:disabled.usa-focus,.usa-banner__button[aria-disabled=true].usa-focus,.usa-banner__button:disabled,.usa-banner__button[aria-disabled=true],.usa-banner__button.usa-button--disabled{background-color:transparent;box-shadow:none;text-decoration:underline}.usa-banner__button.usa-button--hover{color:#1a4480}.usa-banner__button.usa-button--active{color:#162e51}.usa-banner__button:disabled,.usa-banner__button[aria-disabled=true],.usa-banner__button:disabled:hover,.usa-banner__button[aria-disabled=true]:hover,.usa-banner__button[aria-disabled=true]:focus{color:#757575}@media(forced-colors:active){.usa-banner__button:disabled,.usa-banner__button[aria-disabled=true],.usa-banner__button:disabled:hover,.usa-banner__button[aria-disabled=true]:hover,.usa-banner__button[aria-disabled=true]:focus{color:GrayText}}.usa-banner__button{left:0;position:absolute;bottom:0;top:0;text-decoration:underline;color:#005ea2}.usa-banner__button:visited{color:#54278f}.usa-banner__button:hover,.usa-banner__button:active{color:#1a4480}.usa-banner__button{display:block;font-size:.8rem;height:auto;line-height:1.1;padding-top:0rem;padding-left:0rem;text-decoration:none;width:auto}@media all and (max-width:39.99em){.usa-banner__button{width:100%}.usa-banner__button:enabled:focus{outline-offset:-.25rem}}@media all and (min-width:40em){.usa-banner__button:after{background-image:url(../img/usa-icons/expand_more.svg);background-repeat:no-repeat;background-position:center center;background-size:1rem 1rem;display:inline-block;height:1rem;width:1rem}@supports (mask: url()){.usa-banner__button:after{background:none;background-color:#005ea2;-webkit-mask-image:url(../img/usa-icons/expand_more.svg),linear-gradient(transparent,transparent);mask-image:url(../img/usa-icons/expand_more.svg),linear-gradient(transparent,transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1rem 1rem;mask-size:1rem 1rem}.usa-banner__button:after:hover{background-color:#1a4480}}.usa-banner__button:after{content:"";vertical-align:middle;margin-left:2px}.usa-banner__button:hover:after{content:"";background-color:#1a4480}.usa-banner__button{color:#005ea2}.usa-banner__button:visited{color:#54278f}.usa-banner__button:hover,.usa-banner__button:active{color:#1a4480}.usa-banner__button{position:static;bottom:auto;left:auto;right:auto;top:auto;display:inline;margin-left:.5rem;position:relative}.usa-banner__button:after,.usa-banner__button:hover:after{position:absolute}}@media(min-width:40em)and (forced-colors:active){.usa-banner__button:after,.usa-banner__button:hover:after{background-color:ButtonText}}@media all and (min-width:40em){.usa-banner__button:hover{text-decoration:none}}.usa-banner__button[aria-expanded=false],.usa-banner__button[aria-expanded=false]:hover,.usa-banner__button[aria-expanded=true],.usa-banner__button[aria-expanded=true]:hover{background-image:none}@media(forced-colors:active){.usa-banner__button[aria-expanded=false]:before,.usa-banner__button[aria-expanded=false]:hover:before,.usa-banner__button[aria-expanded=true]:before,.usa-banner__button[aria-expanded=true]:hover:before{content:none}}@media all and (max-width:39.99em){.usa-banner__button[aria-expanded=true]:after{background-image:url(../img/usa-icons/close.svg);background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:3rem;width:3rem}@supports (mask: url()){.usa-banner__button[aria-expanded=true]:after{background:none;background-color:#005ea2;-webkit-mask-image:url(../img/usa-icons/close.svg),linear-gradient(transparent,transparent);mask-image:url(../img/usa-icons/close.svg),linear-gradient(transparent,transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}.usa-banner__button[aria-expanded=true]:after{content:"";vertical-align:middle;margin-left:0rem}.usa-banner__button[aria-expanded=true]:before{bottom:0;top:0;position:absolute;right:0;background-color:#dfe1e2;content:"";display:block;height:3rem;width:3rem}.usa-banner__button[aria-expanded=true]:after{bottom:0;top:0;position:absolute;right:0}}@media all and (min-width:40em){.usa-banner__button[aria-expanded=true]:after{background-image:url(../img/usa-icons/expand_less.svg);background-repeat:no-repeat;background-position:center center;background-size:1rem 1rem;display:inline-block;height:1rem;width:1rem}@supports (mask: url()){.usa-banner__button[aria-expanded=true]:after{background:none;background-color:#005ea2;-webkit-mask-image:url(../img/usa-icons/expand_less.svg),linear-gradient(transparent,transparent);mask-image:url(../img/usa-icons/expand_less.svg),linear-gradient(transparent,transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1rem 1rem;mask-size:1rem 1rem}.usa-banner__button[aria-expanded=true]:after:hover{background-color:#1a4480}}.usa-banner__button[aria-expanded=true]:after{content:"";vertical-align:middle;margin-left:2px}.usa-banner__button[aria-expanded=true]:hover:after{content:"";background-color:#1a4480}.usa-banner__button[aria-expanded=true]{height:auto;padding:0rem;position:relative}.usa-banner__button[aria-expanded=true]:after,.usa-banner__button[aria-expanded=true]:hover:after{position:absolute}}@media(min-width:40em)and (forced-colors:active){.usa-banner__button[aria-expanded=true]:after,.usa-banner__button[aria-expanded=true]:hover:after{background-color:ButtonText}}.usa-banner__button-text{position:absolute;left:-999em;right:auto;text-decoration:underline}@media all and (min-width:40em){.usa-banner__button-text{position:static;display:inline}}@media(forced-colors:active){.usa-banner__button-text{color:LinkText}}.usa-banner__icon{width:2.5rem}.usa-js-loading .usa-banner__content{position:absolute;left:-999em;right:auto}', je = `:host{--icon-lock: url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='52'%20height='64'%20viewBox='0%200%2052%2064'%3e%3ctitle%3elock%3c/title%3e%3cpath%20fill='%231B1B1B'%20fill-rule='evenodd'%20d='M26%200c10.493%200%2019%208.507%2019%2019v9h3a4%204%200%200%201%204%204v28a4%204%200%200%201-4%204H4a4%204%200%200%201-4-4V32a4%204%200%200%201%204-4h3v-9C7%208.507%2015.507%200%2026%200zm0%208c-5.979%200-10.843%204.77-10.996%2010.712L15%2019v9h22v-9c0-6.075-4.925-11-11-11z'/%3e%3c/svg%3e");--icon-chevron-up: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20fill='%23fff'%20d='m12%208-6%206%201.41%201.41L12%2010.83l4.59%204.58L18%2014z'/%3e%3c/svg%3e");--icon-chevron-down: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20fill='%23fff'%20d='M16.59%208.59%2012%2013.17%207.41%208.59%206%2010l6%206%206-6z'/%3e%3c/svg%3e");--icon-close: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20fill='%23fff'%20d='M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'/%3e%3c/svg%3e");--theme-banner-background-color: var(--usa-base-lightest, #f0f0f0);--theme-banner-font-family: var(--usa-font-ui, system-ui, sans-serif);--theme-banner-text-color: var(--usa-text-base, #1b1b1b);--theme-banner-link-color: var(--theme-link-color, #005ea2);--theme-banner-link-color-hover: var(--theme-link-hover-color, #1a4480);--theme-banner-chevron-color: var(--theme-banner-link-color, #005ea2)}*{box-sizing:border-box}.usa-banner{background-color:var(--theme-banner-background-color);color:var(--theme-banner-text-color);font-family:var(--theme-banner-font-family)}.usa-banner__header,.usa-banner__content{color:var(--theme-banner-text-color)}.usa-banner__inner{flex-wrap:nowrap}.usa-banner .usa-accordion{font-family:inherit}.usa-banner__button{color:var(--theme-banner-link-color);cursor:pointer;font-family:inherit}.usa-banner__button:hover{color:var(--theme-banner-link-hover-color)}.usa-banner__button:after,.usa-banner__header-action:after{-webkit-mask-image:var(--icon-chevron-down);mask-image:var(--icon-chevron-down)}.usa-banner__button[aria-expanded=true]:after{-webkit-mask-image:var(--icon-close);mask-image:var(--icon-close)}.usa-banner__icon-lock{background-position:center;background-repeat:no-repeat;background-size:cover;display:inline-block;height:1.5ex;background-image:var(--icon-lock);-webkit-mask-image:var(--icon-lock);mask-image:var(--icon-lock);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;vertical-align:middle;width:1.21875ex}@media all and (min-width:40em){:host{--chevron-width: 1rem}.usa-banner__button,.usa-banner__button[aria-expanded=true]{padding-inline-end:var(--chevron-width)}.usa-banner__button:after{background-color:var(--theme-banner-chevron-color);top:0;right:0}.usa-banner__button[aria-expanded=true]:after{-webkit-mask-image:var(--icon-chevron-up);mask-image:var(--icon-chevron-up)}}`, Ie = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAsBAMAAAAncaPMAAAAAXNSR0IArs4c6QAAABtQTFRF////4EAg2z8g2z8f2z4f2j4fHjSyHjOxHTOxQEYPwgAAAIdJREFUeNrNkUENxDAMBEOhFJaCKZiCKZhCKBj2ebV3rdR71+pIq+Qxj1GyqjJ3U8VlHkc07hFm0awBYe91juq6MSI0yhSAEgkzJ4TMKiXyzFw3pgR9lmIBJlqj2AmBedf+IycExmlKZVzvZEJ4A0oBrjBl/m6PCy95B3fFAN6YuQPxhbcB4QMkEj04wQXD5wAAAABJRU5ErkJggg==", We = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3e%3ctitle%3eicon-dot-gov%3c/title%3e%3cpath%20fill='%232378C3'%20fill-rule='evenodd'%20d='m32%200c17.7%200%2032%2014.3%2032%2032s-14.3%2032-32%2032-32-14.3-32-32%2014.3-32%2032-32zm0%201.2c-17%200-30.8%2013.8-30.8%2030.8s13.8%2030.8%2030.8%2030.8%2030.8-13.8%2030.8-30.8-13.8-30.8-30.8-30.8zm11.4%2038.9c.5%200%20.9.4.9.8v1.6h-24.6v-1.6c0-.5.4-.8.9-.8zm-17.1-12.3v9.8h1.6v-9.8h3.3v9.8h1.6v-9.8h3.3v9.8h1.6v-9.8h3.3v9.8h.8c.5%200%20.9.4.9.8v.8h-21.4v-.8c0-.5.4-.8.9-.8h.8v-9.8zm5.7-8.2%2012.3%204.9v1.6h-1.6c0%20.5-.4.8-.9.8h-19.6c-.5%200-.9-.4-.9-.8h-1.6v-1.6s12.3-4.9%2012.3-4.9z'/%3e%3c/svg%3e", De = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3e%3ctitle%3eicon-https%3c/title%3e%3cpath%20fill='%23719F2A'%20fill-rule='evenodd'%20d='M32%200c17.673%200%2032%2014.327%2032%2032%200%2017.673-14.327%2032-32%2032C14.327%2064%200%2049.673%200%2032%200%2014.327%2014.327%200%2032%200zm0%201.208C14.994%201.208%201.208%2014.994%201.208%2032S14.994%2062.792%2032%2062.792%2062.792%2049.006%2062.792%2032%2049.006%201.208%2032%201.208zm0%2018.886a7.245%207.245%200%200%201%207.245%207.245v3.103h.52c.86%200%201.557.698%201.557%201.558v9.322c0%20.86-.697%201.558-1.557%201.558h-15.53c-.86%200-1.557-.697-1.557-1.558V32c0-.86.697-1.558%201.557-1.558h.52V27.34A7.245%207.245%200%200%201%2032%2020.094zm0%203.103a4.142%204.142%200%200%200-4.142%204.142v3.103h8.284V27.34A4.142%204.142%200%200%200%2032%2023.197z'/%3e%3c/svg%3e", C = class C extends E {
622
+ toggle() {
623
+ this.isOpen = !this.isOpen, this.shadowRoot.querySelector(".usa-banner__content").toggleAttribute("hidden");
624
+ }
625
+ constructor() {
626
+ super(), this.lang = "en", this.isOpen = !1, this.tld = "gov", this.data = {
627
+ en: {
628
+ banner: {
629
+ label: "Official website of the United States government",
630
+ text: "An official website of the United States government",
631
+ action: "Here's how you know"
632
+ },
633
+ domain: {
634
+ heading: "Official websites use",
635
+ text1: "A",
636
+ text2: "website belongs to an official government organization in the United States."
637
+ },
638
+ https: {
639
+ heading1: "Secure",
640
+ heading2: "websites use HTTPS",
641
+ text1: "A <strong>lock</strong>",
642
+ text2: "or <strong>https://</strong> means you’ve safely connected to the",
643
+ text3: "website. Share sensitive information only on official, secure websites."
644
+ }
645
+ },
646
+ es: {
647
+ banner: {
648
+ label: "Un sitio oficial del Gobierno de Estados Unidos",
649
+ text: "Un sitio oficial del Gobierno de Estados Unidos",
650
+ action: "Así es como usted puede verificarlo"
651
+ },
652
+ domain: {
653
+ heading: "Los sitios web oficiales usan",
654
+ text1: "Un sitio web",
655
+ text2: "pertenece a una organización oficial del Gobierno de Estados Unidos."
656
+ },
657
+ https: {
658
+ heading1: "Los sitios web seguros",
659
+ heading2: "usan HTTPS",
660
+ text1: "Un <strong>candado</strong>",
661
+ text2: "o <strong>https://</strong> significa que usted se conectó de forma segura a un sitio web",
662
+ text3: "Comparta información sensible sólo en sitios web oficiales y seguros."
663
+ }
664
+ }
665
+ };
666
+ }
667
+ // Get English or Spanish strings. Default to English if an unknown `lang` is passed.
668
+ // Ex: <usa-banner lang="zy"></usa-banner>
669
+ get _bannerText() {
670
+ return this.data[this.lang] || this.data.en;
671
+ }
672
+ // Get the action text and use for both mobile & desktop buttons.
673
+ get _actionText() {
674
+ const e = this.querySelector('[slot="banner-action"]');
675
+ return e == null ? void 0 : e.textContent;
676
+ }
677
+ domainTemplate(e) {
678
+ const { domain: t } = this._bannerText;
679
+ return H`
680
+ <img
681
+ class="usa-banner__icon usa-media-block__img"
682
+ src="${We}"
683
+ role="img"
684
+ alt=""
685
+ aria-hidden="true"
686
+ />
687
+ <div class="usa-media-block__body">
688
+ <p>
689
+ <strong>
690
+ <slot name="domain-heading"> ${t.heading} .${e} </slot>
691
+ </strong>
692
+ <br />
693
+ <slot name="domain-text">
694
+ ${t.text1} <strong>.${e}</strong> ${t.text2}
695
+ </slot>
696
+ </p>
697
+ </div>
698
+ `;
699
+ }
700
+ static lockIcon() {
701
+ return H`
702
+ <span
703
+ class="usa-banner__icon-lock"
704
+ role="img"
705
+ aria-label="Locked padlock icon"
706
+ part="lock-icon"
707
+ ></span>
708
+ `;
709
+ }
710
+ httpsTemplate(e) {
711
+ const { https: t } = this._bannerText;
712
+ return H`
713
+ <img
714
+ class="usa-banner__icon usa-media-block__img"
715
+ src="${De}"
716
+ role="img"
717
+ alt=""
718
+ aria-hidden="true"
719
+ />
720
+ <div class="usa-media-block__body">
721
+ <p>
722
+ <strong>
723
+ <slot name="https-heading">
724
+ ${t.heading1} .${e} ${t.heading2}
725
+ </slot> </strong
726
+ ><br />
727
+ <slot name="https-text">
728
+ ${ie(t.text1)} (${C.lockIcon()})
729
+ ${ie(t.text2)} .${e} ${t.text3}
730
+ </slot>
731
+ </p>
732
+ </div>
733
+ `;
734
+ }
735
+ render() {
736
+ const e = { "usa-banner__header--expanded": this.isOpen }, t = this.tld === "mil" ? "mil" : "gov", { banner: n } = this._bannerText;
737
+ return H`
738
+ <section class="usa-banner" aria-label=${this.label || n.label}>
739
+ <div class="usa-accordion">
740
+ <header class="usa-banner__header ${Be(e)}">
741
+ <div class="usa-banner__inner">
742
+ <div class="grid-col-auto">
743
+ <img
744
+ aria-hidden="true"
745
+ class="usa-banner__header-flag"
746
+ src=${Ie}
747
+ alt=""
748
+ />
749
+ </div>
750
+ <div
751
+ class="grid-col-fill tablet:grid-col-auto"
752
+ aria-hidden="true"
753
+ >
754
+ <p class="usa-banner__header-text">
755
+ <slot name="banner-text">${n.text}</slot>
756
+ </p>
757
+ <p class="usa-banner__header-action">
758
+ <slot name="banner-action">${n.action}</slot>
759
+ </p>
760
+ </div>
761
+ <button
762
+ type="button"
763
+ class="usa-accordion__button usa-banner__button"
764
+ aria-expanded="${this.isOpen}"
765
+ aria-controls="gov-banner-default"
766
+ @click="${this.toggle}"
767
+ >
768
+ <span class="usa-banner__button-text">
769
+ ${this._actionText || n.action}
770
+ </span>
771
+ </button>
772
+ </div>
773
+ </header>
774
+ <div class="usa-banner__content usa-accordion__content" hidden>
775
+ <div class="grid-row grid-gap-lg">
776
+ <div class="usa-banner__guidance tablet:grid-col-6">
777
+ ${this.domainTemplate(t)}
778
+ </div>
779
+ <div class="usa-banner__guidance tablet:grid-col-6">
780
+ ${this.httpsTemplate(t)}
781
+ </div>
782
+ </div>
783
+ </div>
784
+ </div>
785
+ </section>
786
+ `;
787
+ }
788
+ };
789
+ B(C, "properties", {
790
+ lang: {
791
+ type: String,
792
+ reflect: !0
793
+ },
794
+ data: { attribute: !1 },
795
+ isOpen: { type: Boolean },
796
+ classes: {},
797
+ label: { type: String },
798
+ tld: {
799
+ type: String,
800
+ reflect: !0
801
+ }
802
+ }), B(C, "styles", [D(Le), D(je)]);
803
+ let F = C;
804
+ customElements.define("usa-banner", F);
805
+ export {
806
+ F as default
807
+ };