const r=(r="",e="div")=>{const t=document.createElement(e);return t.innerHTML=r,t},e=(r,e,t)=>{Array.from(r.children).forEach(r=>r.setAttribute(e,t))},t=r=>{if(void 0!==r.innerHTML)return r.innerHTML;const e=new XMLSerializer,t=[],n=r.childNodes.length;let o=0;for(;o<n;o++)t.push(e.serializeToString(r.childNodes[o]));return t.join("")};export{r as c,t as g,e as s}