function t(t,e){const o=(document.body.getAttribute("style")??"").split(";");let n="",s=!1;for(const c of o){if(!c)continue;const[o]=c.split(":");o===t?(s=!0,n+=`${o}:${e};`):n+=`${c};`}s||(n+=`${t}:${e};`),document.body.setAttribute("style",n)}export{t as default};