import { u as a } from "./lit-element.jLBm65_O.js";
const C = (o = "value") => (u, s) => {
  const e = u.constructor, b = e.prototype.attributeChangedCallback;
  e.prototype.attributeChangedCallback = function(i, f, n) {
    const t = e.getPropertyOptions(o), l = typeof t.attribute == "string" ? t.attribute : o;
    if (i === l) {
      const r = t.converter || a, c = (typeof r == "function" ? r : r?.fromAttribute ?? a.fromAttribute)(n, t.type);
      this[o] !== c && (this[s] = c);
    }
    b.call(this, i, f, n);
  };
};
export {
  C as d
};
