import{defaultConverter as t}from"lit";const o=(o="value")=>(i,n)=>{const s=i.constructor,c=s.prototype.attributeChangedCallback;s.prototype.attributeChangedCallback=function(i,f,e){const p=s.getPropertyOptions(o);if(i===("string"==typeof p.attribute?p.attribute:o)){const i=p.converter||t,s=("function"==typeof i?i:i?.fromAttribute??t.fromAttribute)(e,p.type);this[o]!==s&&(this[n]=s)}c.call(this,i,f,e)}};export{o as d};
