new class{constructor(){this.init()}init(){"loading"===document.readyState?window.addEventListener("load",()=>this.initEditor()):this.initEditor()}initEditor(){const e=document.getElementById("dkpdf_pdf_custom_css");if(!e||"undefined"==typeof ace)return;e.style.display="none";const t=ace.edit("editor");t.setTheme("ace/theme/twilight"),t.getSession().setMode("ace/mode/css"),t.getSession().on("change",()=>{e.value=t.getSession().getValue()}),e.value=t.getSession().getValue()}};