const go=new Go;let mod,instance;WebAssembly.instantiateStreaming(fetch("main.wasm"),go.importObject).then(result=>{mod=result.module,instance=result.instance,document.getElementById("gtree").disabled=!1,go.run(instance),instance=WebAssembly.instantiate(mod,go.importObject)});const clearMarkdown=()=>{document.getElementById("in").value=""},generateTree=()=>{gtree()},copyToClipboard=()=>{var tree=document.getElementById("treeView");null!==tree&&window.navigator.clipboard.writeText(tree.innerHTML)},resetParts=()=>{document.getElementById("parts1").value="└",document.getElementById("parts2").value="├",document.getElementById("parts3").value="──",document.getElementById("parts4").value="│"};