export function generateStyleLinkEls(){if(globalThis.document.head&&globalThis.document.head.querySelector("#showlace-light")&&globalThis.document.head.querySelector("#showlace-dark"))return!1;const e=new URL("./light.css",import.meta.url).href;let t=globalThis.document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("media","(prefers-color-scheme:light)"),t.setAttribute("href",e),t.setAttribute("id","showlace-light"),globalThis.document.head.appendChild(t);const l=new URL("./dark.css",import.meta.url).href;return t=globalThis.document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("media","(prefers-color-scheme:dark)"),t.onload=()=>{globalThis.document.documentElement.classList.add("sl-theme-dark")},t.setAttribute("href",l),t.setAttribute("id","showlace-dark"),globalThis.document.head.appendChild(t),!0}