/*!
* MIT License
*
* Copyright (c) 2023 Lufthansa Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*
*
* This project is heavily inspired by the shoelace component library. Shoelace is released under the following license:
*
* MIT License
*
* Copyright (c) 2020 A Beautiful Site, LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const Ji = globalThis, hr = Ji.ShadowRoot && (Ji.ShadyCSS === void 0 || Ji.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pr = Symbol(), Yr = /* @__PURE__ */ new WeakMap();
let kn = class {
constructor(e, t, o) {
if (this._$cssResult$ = !0, o !== pr)
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = e, this.t = t;
}
get styleSheet() {
let e = this.o;
const t = this.t;
if (hr && e === void 0) {
const o = t !== void 0 && t.length === 1;
o && (e = Yr.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && Yr.set(t, e));
}
return e;
}
toString() {
return this.cssText;
}
};
const m = (a) => new kn(typeof a == "string" ? a : a + "", void 0, pr), s = (a, ...e) => {
const t = a.length === 1 ? a[0] : e.reduce((o, i, r) => o + ((n) => {
if (n._$cssResult$ === !0)
return n.cssText;
if (typeof n == "number")
return n;
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(i) + a[r + 1], a[0]);
return new kn(t, a, pr);
}, Nl = (a, e) => {
if (hr)
a.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
else
for (const t of e) {
const o = document.createElement("style"), i = Ji.litNonce;
i !== void 0 && o.setAttribute("nonce", i), o.textContent = t.cssText, a.appendChild(o);
}
}, Xr = hr ? (a) => a : (a) => a instanceof CSSStyleSheet ? ((e) => {
let t = "";
for (const o of e.cssRules)
t += o.cssText;
return m(t);
})(a) : a;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const { is: Il, defineProperty: Ul, getOwnPropertyDescriptor: Dl, getOwnPropertyNames: Rl, getOwnPropertySymbols: El, getPrototypeOf: Pl } = Object, ga = globalThis, Zr = ga.trustedTypes, Hl = Zr ? Zr.emptyScript : "", Gl = ga.reactiveElementPolyfillSupport, hi = (a, e) => a, Do = { toAttribute(a, e) {
switch (e) {
case Boolean:
a = a ? Hl : null;
break;
case Object:
case Array:
a = a == null ? a : JSON.stringify(a);
}
return a;
}, fromAttribute(a, e) {
let t = a;
switch (e) {
case Boolean:
t = a !== null;
break;
case Number:
t = a === null ? null : Number(a);
break;
case Object:
case Array:
try {
t = JSON.parse(a);
} catch {
t = null;
}
}
return t;
} }, ba = (a, e) => !Il(a, e), Vr = { attribute: !0, type: String, converter: Do, reflect: !1, hasChanged: ba };
Symbol.metadata ??= Symbol("metadata"), ga.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
class Io extends HTMLElement {
static addInitializer(e) {
this._$Ei(), (this.l ??= []).push(e);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(e, t = Vr) {
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
const o = Symbol(), i = this.getPropertyDescriptor(e, o, t);
i !== void 0 && Ul(this.prototype, e, i);
}
}
static getPropertyDescriptor(e, t, o) {
const { get: i, set: r } = Dl(this.prototype, e) ?? { get() {
return this[t];
}, set(n) {
this[t] = n;
} };
return { get() {
return i?.call(this);
}, set(n) {
const d = i?.call(this);
r.call(this, n), this.requestUpdate(e, d, o);
}, configurable: !0, enumerable: !0 };
}
static getPropertyOptions(e) {
return this.elementProperties.get(e) ?? Vr;
}
static _$Ei() {
if (this.hasOwnProperty(hi("elementProperties")))
return;
const e = Pl(this);
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(hi("finalized")))
return;
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(hi("properties"))) {
const t = this.properties, o = [...Rl(t), ...El(t)];
for (const i of o)
this.createProperty(i, t[i]);
}
const e = this[Symbol.metadata];
if (e !== null) {
const t = litPropertyMetadata.get(e);
if (t !== void 0)
for (const [o, i] of t)
this.elementProperties.set(o, i);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [t, o] of this.elementProperties) {
const i = this._$Eu(t, o);
i !== void 0 && this._$Eh.set(i, t);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(e) {
const t = [];
if (Array.isArray(e)) {
const o = new Set(e.flat(1 / 0).reverse());
for (const i of o)
t.unshift(Xr(i));
} else
e !== void 0 && t.push(Xr(e));
return t;
}
static _$Eu(e, t) {
const o = t.attribute;
return o === !1 ? void 0 : typeof o == "string" ? o : typeof e == "string" ? e.toLowerCase() : void 0;
}
constructor() {
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
}
_$Ev() {
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((e) => e(this));
}
addController(e) {
(this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
}
removeController(e) {
this._$EO?.delete(e);
}
_$E_() {
const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
for (const o of t.keys())
this.hasOwnProperty(o) && (e.set(o, this[o]), delete this[o]);
e.size > 0 && (this._$Ep = e);
}
createRenderRoot() {
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return Nl(e, this.constructor.elementStyles), e;
}
connectedCallback() {
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
}
enableUpdating(e) {
}
disconnectedCallback() {
this._$EO?.forEach((e) => e.hostDisconnected?.());
}
attributeChangedCallback(e, t, o) {
this._$AK(e, o);
}
_$EC(e, t) {
const o = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, o);
if (i !== void 0 && o.reflect === !0) {
const r = (o.converter?.toAttribute !== void 0 ? o.converter : Do).toAttribute(t, o.type);
this._$Em = e, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
}
}
_$AK(e, t) {
const o = this.constructor, i = o._$Eh.get(e);
if (i !== void 0 && this._$Em !== i) {
const r = o.getPropertyOptions(i), n = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : Do;
this._$Em = i, this[i] = n.fromAttribute(t, r.type), this._$Em = null;
}
}
requestUpdate(e, t, o) {
if (e !== void 0) {
if (o ??= this.constructor.getPropertyOptions(e), !(o.hasChanged ?? ba)(this[e], t))
return;
this.P(e, t, o);
}
this.isUpdatePending === !1 && (this._$ES = this._$ET());
}
P(e, t, o) {
this._$AL.has(e) || this._$AL.set(e, t), o.reflect === !0 && this._$Em !== e && (this._$Ej ??= /* @__PURE__ */ new Set()).add(e);
}
async _$ET() {
this.isUpdatePending = !0;
try {
await this._$ES;
} catch (t) {
Promise.reject(t);
}
const e = this.scheduleUpdate();
return e != null && await e, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
if (!this.isUpdatePending)
return;
if (!this.hasUpdated) {
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
for (const [i, r] of this._$Ep)
this[i] = r;
this._$Ep = void 0;
}
const o = this.constructor.elementProperties;
if (o.size > 0)
for (const [i, r] of o)
r.wrapped !== !0 || this._$AL.has(i) || this[i] === void 0 || this.P(i, this[i], r);
}
let e = !1;
const t = this._$AL;
try {
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach((o) => o.hostUpdate?.()), this.update(t)) : this._$EU();
} catch (o) {
throw e = !1, this._$EU(), o;
}
e && this._$AE(t);
}
willUpdate(e) {
}
_$AE(e) {
this._$EO?.forEach((t) => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
}
_$EU() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(e) {
return !0;
}
update(e) {
this._$Ej &&= this._$Ej.forEach((t) => this._$EC(t, this[t])), this._$EU();
}
updated(e) {
}
firstUpdated(e) {
}
}
Io.elementStyles = [], Io.shadowRootOptions = { mode: "open" }, Io[hi("elementProperties")] = /* @__PURE__ */ new Map(), Io[hi("finalized")] = /* @__PURE__ */ new Map(), Gl?.({ ReactiveElement: Io }), (ga.reactiveElementVersions ??= []).push("2.0.4");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const gr = globalThis, aa = gr.trustedTypes, jr = aa ? aa.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, br = "$lit$", _t = `lit$${Math.random().toFixed(9).slice(2)}$`, vr = "?" + _t, Tl = `<${vr}>`, po = document, gi = () => po.createComment(""), bi = (a) => a === null || typeof a != "object" && typeof a != "function", fr = Array.isArray, _n = (a) => fr(a) || typeof a?.[Symbol.iterator] == "function", Pa = `[
\f\r]`, si = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qr = /-->/g, Kr = />/g, no = RegExp(`>|${Pa}(?:([^\\s"'>=/]+)(${Pa}*=${Pa}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g"), Wr = /'/g, Qr = /"/g, Sn = /^(?:script|style|textarea|title)$/i, Yl = (a) => (e, ...t) => ({ _$litType$: a, strings: e, values: t }), u = Yl(1), ze = Symbol.for("lit-noChange"), H = Symbol.for("lit-nothing"), Jr = /* @__PURE__ */ new WeakMap(), uo = po.createTreeWalker(po, 129);
function zn(a, e) {
if (!fr(a) || !a.hasOwnProperty("raw"))
throw Error("invalid template strings array");
return jr !== void 0 ? jr.createHTML(e) : e;
}
const On = (a, e) => {
const t = a.length - 1, o = [];
let i, r = e === 2 ? "" : e === 3 ? "" : "")), o];
};
class vi {
constructor({ strings: e, _$litType$: t }, o) {
let i;
this.parts = [];
let r = 0, n = 0;
const d = e.length - 1, h = this.parts, [b, f] = On(e, t);
if (this.el = vi.createElement(b, o), uo.currentNode = this.el.content, t === 2 || t === 3) {
const v = this.el.content.firstChild;
v.replaceWith(...v.childNodes);
}
for (; (i = uo.nextNode()) !== null && h.length < d; ) {
if (i.nodeType === 1) {
if (i.hasAttributes())
for (const v of i.getAttributeNames())
if (v.endsWith(br)) {
const x = f[n++], k = i.getAttribute(v).split(_t), w = /([.?@])?(.*)/.exec(x);
h.push({ type: 1, index: r, name: w[2], strings: k, ctor: w[1] === "." ? Mn : w[1] === "?" ? Ln : w[1] === "@" ? Cn : wi }), i.removeAttribute(v);
} else
v.startsWith(_t) && (h.push({ type: 6, index: r }), i.removeAttribute(v));
if (Sn.test(i.tagName)) {
const v = i.textContent.split(_t), x = v.length - 1;
if (x > 0) {
i.textContent = aa ? aa.emptyScript : "";
for (let k = 0; k < x; k++)
i.append(v[k], gi()), uo.nextNode(), h.push({ type: 2, index: ++r });
i.append(v[x], gi());
}
}
} else if (i.nodeType === 8)
if (i.data === vr)
h.push({ type: 2, index: r });
else {
let v = -1;
for (; (v = i.data.indexOf(_t, v + 1)) !== -1; )
h.push({ type: 7, index: r }), v += _t.length - 1;
}
r++;
}
}
static createElement(e, t) {
const o = po.createElement("template");
return o.innerHTML = e, o;
}
}
function go(a, e, t = a, o) {
if (e === ze)
return e;
let i = o !== void 0 ? t._$Co?.[o] : t._$Cl;
const r = bi(e) ? void 0 : e._$litDirective$;
return i?.constructor !== r && (i?._$AO?.(!1), r === void 0 ? i = void 0 : (i = new r(a), i._$AT(a, t, o)), o !== void 0 ? (t._$Co ??= [])[o] = i : t._$Cl = i), i !== void 0 && (e = go(a, i._$AS(a, e.values), i, o)), e;
}
let An = class {
constructor(e, t) {
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(e) {
const { el: { content: t }, parts: o } = this._$AD, i = (e?.creationScope ?? po).importNode(t, !0);
uo.currentNode = i;
let r = uo.nextNode(), n = 0, d = 0, h = o[0];
for (; h !== void 0; ) {
if (n === h.index) {
let b;
h.type === 2 ? b = new Ho(r, r.nextSibling, this, e) : h.type === 1 ? b = new h.ctor(r, h.name, h.strings, this, e) : h.type === 6 && (b = new Bn(r, this, e)), this._$AV.push(b), h = o[++d];
}
n !== h?.index && (r = uo.nextNode(), n++);
}
return uo.currentNode = po, i;
}
p(e) {
let t = 0;
for (const o of this._$AV)
o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
}
};
class Ho {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(e, t, o, i) {
this.type = 2, this._$AH = H, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = o, this.options = i, this._$Cv = i?.isConnected ?? !0;
}
get parentNode() {
let e = this._$AA.parentNode;
const t = this._$AM;
return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(e, t = this) {
e = go(this, e, t), bi(e) ? e === H || e == null || e === "" ? (this._$AH !== H && this._$AR(), this._$AH = H) : e !== this._$AH && e !== ze && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : _n(e) ? this.k(e) : this._(e);
}
O(e) {
return this._$AA.parentNode.insertBefore(e, this._$AB);
}
T(e) {
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
}
_(e) {
this._$AH !== H && bi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(po.createTextNode(e)), this._$AH = e;
}
$(e) {
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = vi.createElement(zn(o.h, o.h[0]), this.options)), o);
if (this._$AH?._$AD === i)
this._$AH.p(t);
else {
const r = new An(i, this), n = r.u(this.options);
r.p(t), this.T(n), this._$AH = r;
}
}
_$AC(e) {
let t = Jr.get(e.strings);
return t === void 0 && Jr.set(e.strings, t = new vi(e)), t;
}
k(e) {
fr(this._$AH) || (this._$AH = [], this._$AR());
const t = this._$AH;
let o, i = 0;
for (const r of e)
i === t.length ? t.push(o = new Ho(this.O(gi()), this.O(gi()), this, this.options)) : o = t[i], o._$AI(r), i++;
i < t.length && (this._$AR(o && o._$AB.nextSibling, i), t.length = i);
}
_$AR(e = this._$AA.nextSibling, t) {
for (this._$AP?.(!1, !0, t); e && e !== this._$AB; ) {
const o = e.nextSibling;
e.remove(), e = o;
}
}
setConnected(e) {
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
}
}
class wi {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(e, t, o, i, r) {
this.type = 1, this._$AH = H, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = H;
}
_$AI(e, t = this, o, i) {
const r = this.strings;
let n = !1;
if (r === void 0)
e = go(this, e, t, 0), n = !bi(e) || e !== this._$AH && e !== ze, n && (this._$AH = e);
else {
const d = e;
let h, b;
for (e = r[0], h = 0; h < r.length - 1; h++)
b = go(this, d[o + h], t, h), b === ze && (b = this._$AH[h]), n ||= !bi(b) || b !== this._$AH[h], b === H ? e = H : e !== H && (e += (b ?? "") + r[h + 1]), this._$AH[h] = b;
}
n && !i && this.j(e);
}
j(e) {
e === H ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
}
}
class Mn extends wi {
constructor() {
super(...arguments), this.type = 3;
}
j(e) {
this.element[this.name] = e === H ? void 0 : e;
}
}
class Ln extends wi {
constructor() {
super(...arguments), this.type = 4;
}
j(e) {
this.element.toggleAttribute(this.name, !!e && e !== H);
}
}
class Cn extends wi {
constructor(e, t, o, i, r) {
super(e, t, o, i, r), this.type = 5;
}
_$AI(e, t = this) {
if ((e = go(this, e, t, 0) ?? H) === ze)
return;
const o = this._$AH, i = e === H && o !== H || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, r = e !== H && (o === H || i);
i && this.element.removeEventListener(this.name, this, o), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
}
handleEvent(e) {
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
}
}
class Bn {
constructor(e, t, o) {
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(e) {
go(this, e);
}
}
const Xl = { M: br, P: _t, A: vr, C: 1, L: On, R: An, D: _n, V: go, I: Ho, H: wi, N: Ln, U: Cn, B: Mn, F: Bn }, Zl = gr.litHtmlPolyfillSupport;
Zl?.(vi, Ho), (gr.litHtmlVersions ??= []).push("3.2.1");
const Vl = (a, e, t) => {
const o = t?.renderBefore ?? e;
let i = o._$litPart$;
if (i === void 0) {
const r = t?.renderBefore ?? null;
o._$litPart$ = i = new Ho(e.insertBefore(gi(), r), r, void 0, t ?? {});
}
return i._$AI(a), i;
};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
let pi = class extends Io {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
createRenderRoot() {
const e = super.createRenderRoot();
return this.renderOptions.renderBefore ??= e.firstChild, e;
}
update(e) {
const t = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Vl(t, this.renderRoot, this.renderOptions);
}
connectedCallback() {
super.connectedCallback(), this._$Do?.setConnected(!0);
}
disconnectedCallback() {
super.disconnectedCallback(), this._$Do?.setConnected(!1);
}
render() {
return ze;
}
};
pi._$litElement$ = !0, pi.finalized = !0, globalThis.litElementHydrateSupport?.({ LitElement: pi });
const jl = globalThis.litElementPolyfillSupport;
jl?.({ LitElement: pi });
(globalThis.litElementVersions ??= []).push("4.1.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const ot = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, $i = (a) => (...e) => ({ _$litDirective$: a, values: e });
let ki = class {
constructor(e) {
}
get _$AU() {
return this._$AM._$AU;
}
_$AT(e, t, o) {
this._$Ct = e, this._$AM = t, this._$Ci = o;
}
_$AS(e, t) {
return this.update(e, t);
}
update(e, t) {
return this.render(...t);
}
};
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const y = $i(class extends ki {
constructor(a) {
if (super(a), a.type !== ot.ATTRIBUTE || a.name !== "class" || a.strings?.length > 2)
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
}
render(a) {
return " " + Object.keys(a).filter((e) => a[e]).join(" ") + " ";
}
update(a, [e]) {
if (this.st === void 0) {
this.st = /* @__PURE__ */ new Set(), a.strings !== void 0 && (this.nt = new Set(a.strings.join(" ").split(/\s/).filter((o) => o !== "")));
for (const o in e)
e[o] && !this.nt?.has(o) && this.st.add(o);
return this.render(e);
}
const t = a.element.classList;
for (const o of this.st)
o in e || (t.remove(o), this.st.delete(o));
for (const o in e) {
const i = !!e[o];
i === this.st.has(o) || this.nt?.has(o) || (i ? (t.add(o), this.st.add(o)) : (t.remove(o), this.st.delete(o)));
}
return ze;
}
});
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const ql = { attribute: !0, type: String, converter: Do, reflect: !1, hasChanged: ba }, Kl = (a = ql, e, t) => {
const { kind: o, metadata: i } = t;
let r = globalThis.litPropertyMetadata.get(i);
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, a), o === "accessor") {
const { name: n } = t;
return { set(d) {
const h = e.get.call(this);
e.set.call(this, d), this.requestUpdate(n, h, a);
}, init(d) {
return d !== void 0 && this.P(n, void 0, a), d;
} };
}
if (o === "setter") {
const { name: n } = t;
return function(d) {
const h = this[n];
e.call(this, d), this.requestUpdate(n, h, a);
};
}
throw Error("Unsupported decorator location: " + o);
};
function l(a) {
return (e, t) => typeof t == "object" ? Kl(a, e, t) : ((o, i, r) => {
const n = i.hasOwnProperty(r);
return i.constructor.createProperty(r, n ? { ...o, wrapped: !0 } : o), n ? Object.getOwnPropertyDescriptor(i, r) : void 0;
})(a, e, t);
}
const F = s`
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-variant-numeric: var(--maui-font-variant-numeric, proportional-nums);
}
`, C = s`
:host {
box-sizing: border-box;
}
:host *,
:host *::before,
:host *::after {
box-sizing: inherit;
}
[hidden] {
display: none !important;
}
.sr-only {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
opacity: 0;
}
`, en = {
lh: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
h2: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`),
h3: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h4: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-3);
`),
h5: m(`
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
`),
h6: m(`
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-7);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-7);
`),
h2: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
h3: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`)
}
},
os: {
mobile: {
h1: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-8);
letter-spacing: var(--maui-letter-spacing-8);
`),
"h1-emphasized": m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-8);
letter-spacing: var(--maui-letter-spacing-8);
`),
h2: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-6);
letter-spacing: var(--maui-letter-spacing-6);
`),
h3: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-4);
letter-spacing: var(--maui-letter-spacing-4);
`),
h4: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-3);
letter-spacing: var(--maui-letter-spacing-3);
`),
h5: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-2);
letter-spacing: var(--maui-letter-spacing-2);
`),
h6: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
letter-spacing: var(--maui-letter-spacing-10);
`)
},
desktop: {
h1: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-9);
letter-spacing: var(--maui-letter-spacing-9);
`),
"h1-emphasized": m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-9);
letter-spacing: var(--maui-letter-spacing-9);
`),
h2: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-7);
letter-spacing: var(--maui-letter-spacing-7);
`),
h3: m(`
font-family: var(--maui-font-family-headline);
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-5);
letter-spacing: var(--maui-letter-spacing-5);
`),
h4: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-3);
letter-spacing: var(--maui-letter-spacing-3);
`),
h5: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-2);
letter-spacing: var(--maui-letter-spacing-2);
`),
h6: m(`
font-family: var(--maui-font-family-copy);
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
letter-spacing: var(--maui-letter-spacing-10);
`)
}
},
lx: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-7);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-7);
`),
h2: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-6);
`),
h3: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-5);
`),
h4: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-3);
`),
h5: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-3);
`),
h6: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-3);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-9);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-9);
`),
h2: m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-8);
`),
h3: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-6);
`),
h4: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-4);
`),
h5: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-3);
`),
h6: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-3);
`)
}
},
sn: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-8);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-8);
`),
h2: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-7);
`),
h3: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-5);
`),
h4: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h5: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-2);
`),
h6: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-2);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-9);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-9);
`),
h2: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-8);
`),
h3: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-7);
`),
h4: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-5);
`),
h5: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h6: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`)
}
},
four_y: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-10);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-13);
line-height: var(--maui-line-height-12);
`),
h2: m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-9);
`),
h3: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-8);
`),
h4: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-7);
`),
h5: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-6);
`),
h6: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-5);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-14);
line-height: var(--maui-line-height-13);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-15);
line-height: var(--maui-line-height-14);
`),
h2: m(`
font-size: var(--maui-font-size-12);
line-height: var(--maui-line-height-11);
`),
h3: m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-9);
`),
h4: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-8);
`),
h5: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-6 );
`)
}
},
b2b: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
h2: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`),
h3: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h4: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-3);
`),
h5: m(`
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
`),
h6: m(`
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-7);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-7);
`),
h2: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
h3: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`)
}
},
mmg: {
mobile: {
h1: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-9);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-9);
`),
h2: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-7);
`),
h3: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`),
h4: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h5: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-4);
`),
h6: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-4);
`)
},
desktop: {
h1: m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-11);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-11);
`),
h2: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-10);
`),
h3: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-8);
`),
h4: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-6);
`),
h5: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h6: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`)
}
},
az: {
mobile: {
"display-1": m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-10);
`),
"display-2": m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-9);
`),
h1: m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-8);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-8);
line-height: var(--maui-line-height-8);
`),
h2: m(`
font-size: var(--maui-font-size-7);
line-height: var(--maui-line-height-7);
`),
h3: m(`
font-size: var(--maui-font-size-6);
line-height: var(--maui-line-height-6);
`),
h4: m(`
font-size: var(--maui-font-size-5);
line-height: var(--maui-line-height-5);
`),
h5: m(`
font-size: var(--maui-font-size-4);
line-height: var(--maui-line-height-4);
`),
h6: m(`
font-size: var(--maui-font-size-3);
line-height: var(--maui-line-height-3);
`)
},
desktop: {
"display-1": m(`
font-size: var(--maui-font-size-11);
line-height: var(--maui-line-height-11);
`),
"display-2": m(`
font-size: var(--maui-font-size-10);
line-height: var(--maui-line-height-10);
`),
h1: m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-9);
`),
"h1-emphasized": m(`
font-size: var(--maui-font-size-9);
line-height: var(--maui-line-height-9);
`)
}
}
}, Wl = (a = !1) => ({
lh: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`),
intro: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`)
}
},
os: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
letter-spacing: var(--maui-letter-spacing-1);
`),
"copy-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
letter-spacing: var(--maui-letter-spacing-2);
`),
intro: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
letter-spacing: var(--maui-letter-spacing-2);
`)
}
},
lx: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-0)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-6);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`),
intro: m(`
font-size: var(--maui-font-size-6);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`)
}
},
sn: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-0)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-7);
${a ? "" : "line-height: var(--maui-line-height-9)"};
`),
intro: m(`
font-size: var(--maui-font-size-7);
${a ? "" : "line-height: var(--maui-line-height-9)"};
`)
}
},
four_y: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-5);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`),
intro: m(`
font-size: var(--maui-font-size-6);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`)
}
},
b2b: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`),
intro: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`)
}
},
mmg: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`),
intro: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`)
}
},
az: {
mobile: {
"copy-extra-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1)"};
`),
"copy-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2)"};
`),
"copy-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3)"};
`),
"copy-large": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`),
intro: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4)"};
`)
}
}
}), Ql = (a = !1) => ({
lh: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
notification: m(`
font-size: var(--maui-font-size-notification-headline);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
os: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1-condensed);"}
letter-spacing: var(--maui-letter-spacing-10);
`),
"button-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
letter-spacing: var(--maui-letter-spacing-10);
`),
"forms-large": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-3);"}
letter-spacing: var(--maui-letter-spacing-9);
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
letter-spacing: var(--maui-letter-spacing-9);
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-0);"}
letter-spacing: var(--maui-letter-spacing-2);
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
letter-spacing: var(--maui-letter-spacing-7);
`),
"link-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
letter-spacing: var(--maui-letter-spacing-8);
`),
"link-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
letter-spacing: var(--maui-letter-spacing-9);
`),
notification: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-2);"}
letter-spacing: var(--maui-letter-spacing-2);
`),
collapsible: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
letter-spacing: var(--maui-letter-spacing-2);
`),
"collapsible-nested": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
letter-spacing: var(--maui-letter-spacing-1);
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
lx: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2-condensed);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3-condensed);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : m`line-height: var(--maui-line-height-3-condensed);`}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-6);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
notification: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"collapsible-nested": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
sn: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-0);
${a ? "" : "line-height: var(--maui-line-height-0);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-7);
${a ? "" : "line-height: var(--maui-line-height-7);"}
`),
notification: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"collapsible-nested": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`)
}
},
four_y: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-5);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-5);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
notification: m(`
font-size: var(--maui-font-size-notification-headline);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-5);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"collapsible-nested": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
b2b: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
notification: m(`
font-size: var(--maui-font-notification-headline);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
mmg: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
notification: m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
},
az: {
mobile: {
"button-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"button-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-large": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"forms-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`),
"forms-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-small": m(`
font-size: var(--maui-font-size-1);
${a ? "" : "line-height: var(--maui-line-height-1);"}
`),
"link-medium": m(`
font-size: var(--maui-font-size-3);
${a ? "" : "line-height: var(--maui-line-height-3);"}
`),
"link-large": m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
notification: m(`
font-size: var(--maui-font-size-4);
${a ? "" : "line-height: var(--maui-line-height-4);"}
`),
collapsible: m(`
font-size: var(--maui-font-size-5);
${a ? "" : "line-height: var(--maui-line-height-5);"}
`),
caption: m(`
font-size: var(--maui-font-size-2);
${a ? "" : "line-height: var(--maui-line-height-2);"}
`)
}
}
}), g = ({
size: a,
tenant: e
}) => {
const t = en[e === "wl" ? "lh" : e].mobile[a], o = m(`${t}`), i = en[e === "wl" ? "lh" : e].desktop[a];
return {
desktop: m(`${i || t}`),
mobile: o
};
}, c = ({
size: a,
tenant: e,
omitLineHeight: t = !1
}) => {
const o = Wl(t)[e === "wl" ? "lh" : e].mobile[a];
return m(`${o}`);
}, p = ({
size: a,
tenant: e,
omitLineHeight: t = !1
}) => {
const o = Ql(t)[e === "wl" ? "lh" : e].mobile[a];
return m(`${o}`);
}, Jl = (a) => {
const e = m(a);
return s`
.${e}.default {
--maui-badge-background-default: var(--maui-color-brand-secondary);
--maui-badge-text-color: var(
--maui-badge-text-color-override,
var(--maui-color-text-copy)
);
}
.${e}.info {
--maui-badge-background-info: var(--maui-color-grey-02);
}
.${e}.mam, .${e}.ftl, .${e}.hon, .${e}.sen {
--maui-badge-border-radius: var(--maui-radii-default-radius);
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.${e}.eco, .${e}.premium-eco, .${e}.business, .${e}.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.${e}.warning {
--maui-badge-text-color: var(--maui-color-text-copy);
}
.${e}.small {
${c({ size: "copy-small", tenant: a })};
--maui-badge-padding: 1px 6px;
}
.${e}.medium {
${c({ size: "copy-large", tenant: a })};
--maui-badge-padding: 2px 6px;
}
.${e}.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
`;
}, ec = s`
${C}
${F}
:host {
display: inline;
position: relative;
}
.badge {
--maui-badge-text-color: var(
--maui-badge-text-color-override,
var(--maui-color-brand-light)
);
--maui-badge-font-weight: var(
--maui-badge-font-weight-override,
var(--maui-font-weight-regular)
);
--maui-badge-font-family: var(
--maui-badge-font-family-override,
var(--maui-font-family-copy)
);
--maui-badge-background: var(
--maui-badge-background-override,
var(--maui-badge-background-default)
);
--maui-badge-border-radius: 0; /* init for no radius */
background: var(--maui-badge-background);
color: var(--maui-badge-text-color);
padding: var(--maui-badge-padding);
border: 0;
border-radius: var(--maui-badge-border-radius);
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
align-items: center;
position: relative;
text-decoration: none;
white-space: nowrap;
font-family: var(--maui-font-family-copy);
font-weight: var(--maui-badge-font-weight);
}
/** presets -------------------------- */
.info {
--maui-badge-background: var(--maui-badge-background-info);
--maui-badge-text-color: var(--maui-color-text-copy);
}
.success {
--maui-badge-background: var(--maui-color-message-bg-success);
--maui-badge-text-color: var(--maui-color-message-success);
}
.warning {
--maui-badge-background: var(--maui-color-message-bg-warning);
--maui-badge-text-color: var(--maui-color-message-warning);
}
.error {
--maui-badge-background: var(--maui-color-message-bg-error);
--maui-badge-text-color: var(--maui-color-message-error);
}
.mam {
--maui-badge-background: var(--maui-color-status-member);
}
.ftl {
--maui-badge-background: var(--maui-color-status-frequenttraveller);
}
.hon {
--maui-badge-background: var(--maui-color-status-hon);
}
.sen {
--maui-badge-background: var(--maui-color-status-senator);
}
.mam.badge,
.ftl.badge,
.hon.badge,
.sen.badge {
/* Always bold for status badges in all tenants */
--maui-badge-font-weight: var(--maui-font-weight-bold);
}
.eco {
--maui-badge-background: var(--maui-color-cabinclass-economy);
}
.premium-eco {
--maui-badge-background: var(--maui-color-cabinclass-premiumeconomy);
}
.business {
--maui-badge-background: var(--maui-color-cabinclass-business);
}
.first {
--maui-badge-background: var(--maui-color-cabinclass-first);
}
/** border radius variants -------------------------- */
.pill {
--maui-badge-border-radius: var(--maui-radii-pill-radius);
}
.rounded {
--maui-badge-border-radius: var(--maui-badge-border-radius);
}
/** size variants -------------------------- */
.small {
${c({ size: "copy-small", tenant: "wl" })};
height: 20px;
}
.medium {
${c({ size: "copy-medium", tenant: "wl" })};
height: 26px;
}
`, tc = s`
${Jl("lh")}
`, oc = s`
.os {
--maui-badge-font-weight: var(
--maui-badge-font-weight-override,
var(--maui-font-weight-bold)
);
}
.os.small {
${c({ size: "copy-small", tenant: "os" })};
--maui-badge-padding: 1px 10px;
}
.os.medium {
${c({ size: "copy-medium", tenant: "os" })};
--maui-badge-padding: 2px 6px;
}
.os.default {
--maui-badge-background-default: var(--maui-color-brand-primary);
}
.os.info {
--maui-badge-background-info: var(--maui-color-grey-04);
--maui-badge-text-color: var(--maui-color-grey-07);
}
.os.mam,
.os.ftl,
.os.hon,
.os.sen {
--maui-badge-border-radius: var(--maui-radii-default-radius);
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.os.eco,
.os.premium-eco,
.os.business,
.os.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.os.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
`, ic = s`
.lx {
/* Only bold for LX badges */
--maui-badge-font-weight: var(--maui-font-weight-bold);
}
.lx.small {
${c({ size: "copy-small", tenant: "lx" })};
--maui-badge-padding: 1px 5px;
}
.lx.medium {
${c({ size: "copy-medium", tenant: "lx" })};
--maui-badge-padding: 2px 6px 0;
}
.lx.default {
--maui-badge-background-default: var(--maui-color-brand-primary);
}
.lx.info {
--maui-badge-background-info: var(--maui-color-message-bg-info);
}
.lx.mam,
.lx.ftl,
.lx.hon,
.lx.sen {
--maui-badge-border-radius: 4px;
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.lx.eco,
.lx.premium-eco,
.lx.business,
.lx.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.lx.rounded {
--maui-badge-border-radius: 4px;
}
`, ac = s`
.sn.small {
${c({ size: "copy-small", tenant: "sn" })};
--maui-badge-padding: 0 8px;
}
.sn.medium {
${c({ size: "copy-medium", tenant: "sn" })};
--maui-badge-padding: 1px 6px;
}
.sn.default {
--maui-badge-background-default: var(--maui-color-brand-primary);
}
.sn.info {
--maui-badge-background-info: var(--maui-color-message-bg-info);
}
.sn.mam,
.sn.ftl,
.sn.hon,
.sn.sen {
--maui-badge-border-radius: 4px;
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.sn.eco,
.sn.premium-eco,
.sn.business,
.sn.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.sn.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
`, rc = s`
.b2b.default {
--maui-badge-background-default: var(--maui-color-brand-secondary);
--maui-badge-text-color: var(
--maui-badge-text-color-override,
var(--maui-color-text-copy-inverted)
);
}
.b2b.info {
--maui-badge-background-info: var(--maui-color-grey-02);
}
.b2b.mam,
.b2b.ftl,
.b2b.hon,
.b2b.sen {
--maui-badge-border-radius: var(--maui-radii-default-radius);
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.b2b.eco,
.b2b.premium-eco,
.b2b.business,
.b2b.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.b2b.small {
${c({ size: "copy-small", tenant: "b2b" })};
--maui-badge-padding: 1px 6px;
}
.b2b.medium {
${c({ size: "copy-large", tenant: "b2b" })};
--maui-badge-padding: 2px 6px;
}
.b2b.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
`, nc = s`
.four_y.small {
${c({ size: "copy-small", tenant: "four_y" })};
--maui-badge-padding: 0 8px;
}
.four_y.medium {
${c({ size: "copy-medium", tenant: "four_y" })};
--maui-badge-padding: 1px 6px;
}
.four_y.default {
--maui-badge-background-default: var(--maui-color-brand-secondary);
--maui-badge-text-color: var(
--maui-badge-text-color-override,
var(--maui-color-text-copy)
);
}
.four_y.info {
--maui-badge-background-info: var(--maui-color-message-bg-info);
}
.four_y.mam,
.four_y.ftl,
.four_y.hon,
.four_y.sen {
--maui-badge-border-radius: 4px;
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.four_y.eco,
.four_y.premium-eco,
.four_y.business,
.four_y.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.four_y,
.four_y.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
`, sc = s`
.mmg.small {
${c({ size: "copy-small", tenant: "mmg" })};
--maui-badge-padding: 1px 6px;
}
.mmg.medium {
${c({ size: "copy-medium", tenant: "mmg" })};
--maui-badge-padding: 1px 6px;
}
.mmg.default {
--maui-badge-background-default: var(--maui-color-message-bg-info);
--maui-badge-text-color: var(--maui-color-text-copy);
}
.mmg.info {
--maui-badge-background-info: var(--maui-color-brand-mmg-grey2);
}
.mmg.success,
.mmg.warning,
.mmg.error {
--maui-badge-text-color: var(--maui-color-text-copy);
}
.mmg.mam,
.mmg.ftl,
.mmg.hon,
.mmg.sen {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
--maui-badge-font-weight: var(--maui-font-weight-bold);
font-family: var(--maui-font-family-headline);
}
.mmg.eco,
.mmg.premium-eco,
.mmg.business,
.mmg.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.mmg,
.mmg.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
.mmg.pill {
--maui-badge-font-weight: var(--maui-font-weight-bold);
font-family: var(--maui-font-family-headline);
}
`, lc = s`
.az {
--maui-badge-border-radius: var(--maui-radii-default-radius);
--maui-badge-font-weight-override: var(--maui-font-weight-bold);
text-transform: uppercase;
border-radius: var(--maui-badge-border-radius);
}
.az.small {
height: 24px;
font-size: var(--maui-font-size-0);
line-height: var(--maui-line-height-1);
--maui-badge-padding: var(--maui-spacing-1) var(--maui-spacing-2);
}
.az.medium {
height: 26px;
font-size: var(--maui-font-size-2);
line-height: var(--maui-line-height-2);
--maui-badge-padding: var(--maui-spacing-1) var(--maui-spacing-3);
}
.az.default {
--maui-badge-background-default: var(--maui-color-brand-primary);
}
.az.info,
.az.success,
.az.error {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.az.info {
--maui-badge-background-info: var(--maui-color-message-info);
}
.az.success {
background-color: var(--maui-color-message-success);
}
.az.warning {
background-color: var(--maui-color-message-warning);
--maui-badge-text-color: var(--maui-color-text-copy);
}
.az.error {
background-color: var(--maui-color-message-error);
}
.az.pill.mam,
.az.pill.ftl,
.az.pill.hon,
.az.pill.sen,
.az.mam,
.az.ftl,
.az.hon,
.az.sen {
--maui-badge-border-radius: var(--maui-radii-default-radius);
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.az.eco,
.az.premium-eco,
.az.business,
.az.first {
--maui-badge-text-color: var(--maui-color-text-copy-inverted);
}
.az.rounded {
--maui-badge-border-radius: var(--maui-radii-default-radius);
}
.az.pill {
--maui-badge-border-radius: var(--maui-radii-pill-radius);
}
`, cc = [
ec,
tc,
oc,
ic,
ac,
rc,
nc,
sc,
lc
], _i = [
"wl",
"os",
"sn",
"lh",
"lx",
"b2b",
"four_y",
"mmg",
"az"
], dc = (a) => _i.includes(a), uc = (a) => Object.fromEntries(_i.map((e) => [e, a])), tn = (a, e) => ({
...uc(a),
...e
});
function ra(a, e = this, t = !1) {
function o(i) {
if (!i || i === document || i === window)
return null;
const r = t ? i.parentElement?.querySelector(a) : null;
return i.closest(a) || r || o(i.getRootNode().host);
}
return o(e);
}
const mc = (a) => {
let e = "lh";
const t = Object.values(_i).map((i) => `.maui-theme-${i}`).join(",");
return ra(t, a)?.classList.forEach((i) => {
if (i.indexOf("maui-theme-") !== 0)
return;
const r = i.split("-").slice(-1)[0];
dc(r) && (e = r);
}), e;
};
var hc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, gc = (a, e, t, o) => {
for (var i = o > 1 ? void 0 : o ? pc(e, t) : e, r = a.length - 1, n; r >= 0; r--)
(n = a[r]) && (i = (o ? n(e, t, i) : n(i)) || i);
return o && i && hc(e, t, i), i;
};
class S extends pi {
/** Emits a custom event with more convenient defaults. */
emit(e, t) {
const o = new CustomEvent(e, {
bubbles: !0,
cancelable: !1,
composed: !0,
detail: {},
...t
});
return this.dispatchEvent(o), o;
}
firstUpdated() {
}
connectedCallback() {
super.connectedCallback(), this.theme || (this.theme = mc(this));
}
}
gc([
l({ reflect: !0 })
], S.prototype, "theme", 2);
function $(a, e) {
customElements.get(a) || customElements.define(a, e);
}
var bc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, va = (a, e, t, o) => {
for (var i = o > 1 ? void 0 : o ? vc(e, t) : e, r = a.length - 1, n; r >= 0; r--)
(n = a[r]) && (i = (o ? n(e, t, i) : n(i)) || i);
return o && i && bc(e, t, i), i;
};
class Go extends S {
constructor() {
super(), this.size = "small", this.preset = "default", this.componentName = "badge";
}
render() {
const e = this.value ? this.value : "Badge";
return u`