+ `,Qe=document.createElement("dialog");Qe.open=!0,Qe.innerHTML=Ai,document.body.appendChild(Qe),Z&&typeof Z=="function"&&Z();let li=Qe.querySelector("header button"),pe=Qe.querySelector("footer button:first-child"),ai=Qe.querySelector("footer button:last-child");li.onclick=function(){I&&typeof I=="function"&&I(),document.body.removeChild(Qe)},pe.onclick=function(){I&&typeof I=="function"&&I(),document.body.removeChild(Qe)},ai.onclick=function(){Y&&typeof Y=="function"&&Y(),document.body.removeChild(Qe)}}};function _Q(){let O="border-0 bg-transparent py-1";return`
${E.description}
- `).join("")}}).catch(w=>{console.error("Error fetching data:",w)})}function Ro(O){let w=document.querySelector(`script[src="${O}"]`);w&&w.remove()}function Kc(O){O.forEach(w=>{let k=document.querySelector(`script[src="${w}"]`);k&&k.remove()})}async function En(O){return new Promise((w,k)=>{if(document.querySelector(`script[src="${O}"]`)){w();return}let j=document.createElement("script");j.src=O,j.onload=w,j.onerror=()=>k(new Error(`Failed to load script: ${O}`)),document.body.appendChild(j)})}async function jo(O){return Promise.all(O.map(En))}async function gt(O,w){let k={html:{markdown:"libraries/preprocessors/marked.min.js",jade:"libraries/preprocessors/jade.js",pug:"libraries/preprocessors/pug.js"},css:{sass:"libraries/preprocessors/sass.sync.min.js",less:"libraries/preprocessors/less.min.js",stylus:"libraries/preprocessors/stylus.min.js"},javascript:{typescript:"libraries/preprocessors/typescript.min.js",babel:"libraries/preprocessors/babel.min.js",jsxtypescript:["libraries/preprocessors/typescript.min.js","libraries/preprocessors/babel.min.js"]}},E={html:p.html_pre_processor,css:p.css_pre_processor,javascript:p.javascript_pre_processor};try{let j=w!=="html"||w!=="css"||w!=="javascript",Z=j?k[O][w]:null;if(E[O]&&j){let I=k[O][E[O]];Array.isArray(I)?Kc(I):Ro(I),Array.isArray(Z)?await jo(Z):Z&&await En(Z)}if(O==="html")p.html_pre_processor=w;else if(O==="css")p.css_pre_processor=w;else if(O==="javascript"){if(p.javascript_pre_processor=w,!window.editorManager||!window.editorManager.jsEditor)return;window.editorManager.setMode(p.javascript_pre_processor==="javascript"?"javascript":w,editorManager.jsEditor)}}catch(j){console.error("Error setting preprocessor:",j)}}async function UQ(){await Promise.all([gt("html",p.html_pre_processor),gt("css",p.css_pre_processor),gt("javascript",p.javascript_pre_processor)]),window.editorManager&&(dispatchChanges(editorManager.htmlEditor,p.html),dispatchChanges(editorManager.cssEditor,p.css),dispatchChanges(editorManager.jsEditor,p.javascript),Ci(!0))}async function _0(){await jo(["libraries/js-beautify/beautify.min.js","libraries/js-beautify/beautify-css.min.js","libraries/js-beautify/beautify-html.min.js"])}async function Y0(){Kc(["libraries/js-beautify/beautify.min.js","libraries/js-beautify/beautify-css.min.js","libraries/js-beautify/beautify-html.min.js"])}async function GQ(){await _0();let O;switch(p.activePanel){case"html":O=html_beautify(p.html,{indent_size:2,max_preserve_newlines:1}),dispatchChanges(editorManager.htmlEditor,O);break;case"css":O=css_beautify(p.css,{indent_size:2,max_preserve_newlines:1}),p.css=O,dispatchChanges(editorManager.cssEditor,O);break;case"javascript":O=js_beautify(p.javascript,{indent_size:2,max_preserve_newlines:1}),p.javascript=O,dispatchChanges(editorManager.jsEditor,O);break;default:O="Unknown editor panel."}await Y0()}function FQ(){let O="";for(;!/^[a-zA-Z]/.test(O);)O=Math.random().toString(36).substr(2,9);return O}function HQ(O){ye.selectedSize=O,Eo()}function JQ(){let O=document.getElementById("previewElm").firstElementChild;if(O.style.width==="100%")return!1;let w=parseInt(O.style.width),k=parseInt(O.style.height);[w,k]=[k,w];let E=previewElm.clientWidth,j=previewElm.clientHeight,Z=Math.min(E/w,j/k);O.style.width=`${w}px`,O.style.height=`${k}px`,O.style.transform=`scale(${Z})`,O.style.marginTop=`-${k/2}px`,O.style.marginLeft=`-${w/2}px`,ye.selectedSize=w+"x"+k}function q0(){let O=document.getElementById("previewElm").firstElementChild;if(O.style.width==="100%")return!1;let w=parseInt(O.style.width),k=parseInt(O.style.height),E=previewElm.clientWidth,j=previewElm.clientHeight,Z=Math.min(E/w,j/k);O.style.width=`${w}px`,O.style.height=`${k}px`,O.style.transform=`scale(${Z})`,O.style.marginTop=`-${k/2}px`,O.style.marginLeft=`-${w/2}px`}var Hc;function Eo(){if(ye.selectedSize==="none"){let O=document.getElementById("iframe");ye.iframeSize=`${O.clientWidth}px x ${O.clientHeight}px`;let w=document.getElementById("iframeClientSize");w.classList.contains("hidden")&&(Hc&&clearTimeout(Hc),w.classList.remove("hidden","opacity-0"),w.classList.add("opacity-100"),Hc=setTimeout(()=>{w.classList.remove("opacity-100"),w.classList.add("opacity-0"),setTimeout(()=>{w.classList.add("hidden")},300)},2e3))}else q0()}async function Vi(O){try{if(O==="html")switch(p.html_pre_processor){case"markdown":return marked.parse(p.html);case"jade":return jade.render(p.html,{pretty:!0});case"pug":let w=document.getElementById("appScript");return w.hasAttribute("type")&&w.getAttribute("type")==="module"?(console.error("Cannot import pug as script is a module!"),!1):DQ("pug").compile(p.html)({name:this.name});default:return p.html}if(O==="css")switch(p.css_pre_processor){case"stylus":return stylus.render(p.css);case"less":return new Promise((w,k)=>{less.render(p.css,(E,j)=>E?k(E):w(j.css))});case"sass":return new Promise((w,k)=>{Sass.compile(p.css,E=>E.status===0?w(E.text):k(new Error(E.message)))});default:return p.css}if(O==="javascript")switch(p.javascript_pre_processor){case"babel":return typeof Babel>"u"&&await En("libraries/preprocessors/babel.min.js"),Babel.transform(p.javascript,{presets:["env","react"]}).code;case"typescript":return ts.transpileModule(p.javascript,{compilerOptions:{module:ts.ModuleKind.CommonJS}}).outputText;case"jsxtypescript":let w=ts.transpileModule(p.javascript,{compilerOptions:{module:ts.ModuleKind.CommonJS,target:ts.ScriptTarget.ES5,jsx:ts.JsxEmit.React}}).outputText;return ye.compiledJSX=Babel.transform(w,{presets:["env","react"]}).code,ye.compiledJSX;default:return p.javascript}}catch(w){console.error("Error compiling code:",w)}}async function KQ(O){let w=O.target.files[0];if(w)try{let k=await e5(w);p.logo=k}catch(k){console.error("Error converting image to base64:",k)}}function e5(O){return new Promise((w,k)=>{let E=new FileReader;E.readAsDataURL(O),E.onload=()=>w(E.result),E.onerror=j=>k(j)})}function t5(O){function w(E){return E.charAt(0).toUpperCase()+E.slice(1)}let k=w(O);gt("html","html"),gt("css","css"),O!=="typescript"&>("javascript","javascript"),(O==="typescript"||O==="angular")&>("javascript","typescript"),p.name=`${k} name`,p.version=.01,p.title=`A Cool ${k} App`,p.description=`A modern ${k} application!`,p.author="kodeWeave",p.url="https://michaelsboost.com/",p.module=!0,p.preview=!0,O==="angular"&&(p.module=!1),p.pwa=!1,O==="javascript"&&(p.meta="",p.libraries=["https://cdnjs.cloudflare.com/ajax/libs/picocss/2.0.6/pico.min.css","https://michaelsboost.com/TailwindCSSMod/tailwind-mod.min.js"],p.html=`
+ `).join("")}}).catch(w=>{console.error("Error fetching data:",w)})}function Ro(O){let w=document.querySelector(`script[src="${O}"]`);w&&w.remove()}function Kc(O){O.forEach(w=>{let k=document.querySelector(`script[src="${w}"]`);k&&k.remove()})}async function En(O){return new Promise((w,k)=>{if(document.querySelector(`script[src="${O}"]`)){w();return}let j=document.createElement("script");j.src=O,j.onload=w,j.onerror=()=>k(new Error(`Failed to load script: ${O}`)),document.body.appendChild(j)})}async function jo(O){return Promise.all(O.map(En))}async function gt(O,w){let k={html:{markdown:"libraries/preprocessors/marked.min.js",jade:"libraries/preprocessors/jade.js",pug:"libraries/preprocessors/pug.js"},css:{sass:"libraries/preprocessors/sass.sync.min.js",less:"libraries/preprocessors/less.min.js",stylus:"libraries/preprocessors/stylus.min.js"},javascript:{typescript:"libraries/preprocessors/typescript.min.js",babel:"libraries/preprocessors/babel.min.js",jsxtypescript:["libraries/preprocessors/typescript.min.js","libraries/preprocessors/babel.min.js"]}},E={html:p.html_pre_processor,css:p.css_pre_processor,javascript:p.javascript_pre_processor};try{let j=w!=="html"||w!=="css"||w!=="javascript",Z=j?k[O][w]:null;if(E[O]&&j){let I=k[O][E[O]];Array.isArray(I)?Kc(I):Ro(I),Array.isArray(Z)?await jo(Z):Z&&await En(Z)}if(O==="html")p.html_pre_processor=w;else if(O==="css")p.css_pre_processor=w;else if(O==="javascript"){if(p.javascript_pre_processor=w,!window.editorManager||!window.editorManager.jsEditor)return;window.editorManager.setMode(p.javascript_pre_processor==="javascript"?"javascript":w,editorManager.jsEditor)}}catch(j){console.error("Error setting preprocessor:",j)}}async function UQ(){await Promise.all([gt("html",p.html_pre_processor),gt("css",p.css_pre_processor),gt("javascript",p.javascript_pre_processor)]),window.editorManager&&(dispatchChanges(editorManager.htmlEditor,p.html),dispatchChanges(editorManager.cssEditor,p.css),dispatchChanges(editorManager.jsEditor,p.javascript),oi(!0))}async function _0(){await jo(["libraries/js-beautify/beautify.min.js","libraries/js-beautify/beautify-css.min.js","libraries/js-beautify/beautify-html.min.js"])}async function Y0(){Kc(["libraries/js-beautify/beautify.min.js","libraries/js-beautify/beautify-css.min.js","libraries/js-beautify/beautify-html.min.js"])}async function GQ(){await _0();let O;switch(p.activePanel){case"html":O=html_beautify(p.html,{indent_size:2,max_preserve_newlines:1}),dispatchChanges(editorManager.htmlEditor,O);break;case"css":O=css_beautify(p.css,{indent_size:2,max_preserve_newlines:1}),p.css=O,dispatchChanges(editorManager.cssEditor,O);break;case"javascript":O=js_beautify(p.javascript,{indent_size:2,max_preserve_newlines:1}),p.javascript=O,dispatchChanges(editorManager.jsEditor,O);break;default:O="Unknown editor panel."}await Y0()}function FQ(){let O="";for(;!/^[a-zA-Z]/.test(O);)O=Math.random().toString(36).substr(2,9);return O}function HQ(O){ye.selectedSize=O,Eo()}function JQ(){let O=document.getElementById("previewElm").firstElementChild;if(O.style.width==="100%")return!1;let w=parseInt(O.style.width),k=parseInt(O.style.height);[w,k]=[k,w];let E=previewElm.clientWidth,j=previewElm.clientHeight,Z=Math.min(E/w,j/k);O.style.width=`${w}px`,O.style.height=`${k}px`,O.style.transform=`scale(${Z})`,O.style.marginTop=`-${k/2}px`,O.style.marginLeft=`-${w/2}px`,ye.selectedSize=w+"x"+k}function q0(){let O=document.getElementById("previewElm").firstElementChild;if(O.style.width==="100%")return!1;let w=parseInt(O.style.width),k=parseInt(O.style.height),E=previewElm.clientWidth,j=previewElm.clientHeight,Z=Math.min(E/w,j/k);O.style.width=`${w}px`,O.style.height=`${k}px`,O.style.transform=`scale(${Z})`,O.style.marginTop=`-${k/2}px`,O.style.marginLeft=`-${w/2}px`}var Hc;function Eo(){if(ye.selectedSize==="none"){let O=document.getElementById("iframe");ye.iframeSize=`${O.clientWidth}px x ${O.clientHeight}px`;let w=document.getElementById("iframeClientSize");w.classList.contains("hidden")&&(Hc&&clearTimeout(Hc),w.classList.remove("hidden","opacity-0"),w.classList.add("opacity-100"),Hc=setTimeout(()=>{w.classList.remove("opacity-100"),w.classList.add("opacity-0"),setTimeout(()=>{w.classList.add("hidden")},300)},2e3))}else q0()}async function Vi(O){try{if(O==="html")switch(p.html_pre_processor){case"markdown":return marked.parse(p.html);case"jade":return jade.render(p.html,{pretty:!0});case"pug":let w=document.getElementById("appScript");return w.hasAttribute("type")&&w.getAttribute("type")==="module"?(console.error("Cannot import pug as script is a module!"),!1):DQ("pug").compile(p.html)({name:this.name});default:return p.html}if(O==="css")switch(p.css_pre_processor){case"stylus":return stylus.render(p.css);case"less":return new Promise((w,k)=>{less.render(p.css,(E,j)=>E?k(E):w(j.css))});case"sass":return new Promise((w,k)=>{Sass.compile(p.css,E=>E.status===0?w(E.text):k(new Error(E.message)))});default:return p.css}if(O==="javascript")switch(p.javascript_pre_processor){case"babel":return typeof Babel>"u"&&await En("libraries/preprocessors/babel.min.js"),Babel.transform(p.javascript,{presets:["env","react"]}).code;case"typescript":return ts.transpileModule(p.javascript,{compilerOptions:{module:ts.ModuleKind.CommonJS}}).outputText;case"jsxtypescript":let w=ts.transpileModule(p.javascript,{compilerOptions:{module:ts.ModuleKind.CommonJS,target:ts.ScriptTarget.ES5,jsx:ts.JsxEmit.React}}).outputText;return ye.compiledJSX=Babel.transform(w,{presets:["env","react"]}).code,ye.compiledJSX;default:return p.javascript}}catch(w){console.error("Error compiling code:",w)}}async function KQ(O){let w=O.target.files[0];if(w)try{let k=await e5(w);p.logo=k}catch(k){console.error("Error converting image to base64:",k)}}function e5(O){return new Promise((w,k)=>{let E=new FileReader;E.readAsDataURL(O),E.onload=()=>w(E.result),E.onerror=j=>k(j)})}function t5(O){function w(E){return E.charAt(0).toUpperCase()+E.slice(1)}let k=w(O);gt("html","html"),gt("css","css"),O!=="typescript"&>("javascript","javascript"),(O==="typescript"||O==="angular")&>("javascript","typescript"),p.name=`${k} name`,p.version=.01,p.title=`A Cool ${k} App`,p.description=`A modern ${k} application!`,p.author="kodeWeave",p.url="https://michaelsboost.com/",p.module=!0,p.preview=!0,O==="angular"&&(p.module=!1),p.pwa=!1,O==="javascript"&&(p.meta="",p.libraries=["https://cdnjs.cloudflare.com/ajax/libs/picocss/2.0.6/pico.min.css","https://michaelsboost.com/TailwindCSSMod/tailwind-mod.min.js"],p.html=`
\u{1F44B} Hello, ${k}! \u{1F30E}
Counter: 0