"use client";
import { al as h, am as u, j as l, F as d } from "./index.package-DVXWP15X.js";
const p = { attribute: !0, type: String, converter: u, reflect: !1, hasChanged: h }, f = (t = p, s, r) => {
  const { kind: e, metadata: n } = r;
  let i = globalThis.litPropertyMetadata.get(n);
  if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), e === "setter" && ((t = Object.create(t)).wrapped = !0), i.set(r.name, t), e === "accessor") {
    const { name: a } = r;
    return { set(o) {
      const c = s.get.call(this);
      s.set.call(this, o), this.requestUpdate(a, c, t);
    }, init(o) {
      return o !== void 0 && this.C(a, void 0, t, o), o;
    } };
  }
  if (e === "setter") {
    const { name: a } = r;
    return function(o) {
      const c = this[a];
      s.call(this, o), this.requestUpdate(a, c, t);
    };
  }
  throw Error("Unsupported decorator location: " + e);
};
function b(t) {
  return (s, r) => typeof r == "object" ? f(t, s, r) : ((e, n, i) => {
    const a = n.hasOwnProperty(i);
    return n.constructor.createProperty(i, e), a ? Object.getOwnPropertyDescriptor(n, i) : void 0;
  })(t, s, r);
}
function T(t) {
  return b({ ...t, state: !0, attribute: !1 });
}
const $ = (t) => t ?? l;
const g = { ATTRIBUTE: 1, CHILD: 2 }, m = (t) => (...s) => ({ _$litDirective$: t, values: s });
class v {
  constructor(s) {
  }
  get _$AU() {
    return this._$AM._$AU;
  }
  _$AT(s, r, e) {
    this._$Ct = s, this._$AM = r, this._$Ci = e;
  }
  _$AS(s, r) {
    return this.update(s, r);
  }
  update(s, r) {
    return this.render(...r);
  }
}
const _ = m(class extends v {
  constructor(t) {
    if (super(t), t.type !== g.ATTRIBUTE || t.name !== "class" || t.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
  }
  render(t) {
    return " " + Object.keys(t).filter(((s) => t[s])).join(" ") + " ";
  }
  update(t, [s]) {
    if (this.st === void 0) {
      this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter(((e) => e !== ""))));
      for (const e in s) s[e] && !this.nt?.has(e) && this.st.add(e);
      return this.render(s);
    }
    const r = t.element.classList;
    for (const e of this.st) e in s || (r.remove(e), this.st.delete(e));
    for (const e in s) {
      const n = !!s[e];
      n === this.st.has(e) || this.nt?.has(e) || (n ? (r.add(e), this.st.add(e)) : (r.remove(e), this.st.delete(e)));
    }
    return d;
  }
});
export {
  _ as a,
  m as e,
  v as i,
  b as n,
  $ as o,
  T as r,
  g as t
};
