drill.define(async e=>{await e("./u-confirm.css");let{code:n}=await e("./u-confirm.dcode");return(e="确认")=>new Promise(i=>{let o=$(n);o.que(".uconfirm_title").text=e;let t=o.que(".cancelbtn"),r=o.que(".okbtn"),c=e=>{13==e.keyCode&&r.ele.click()};window.addEventListener("keypress",c),t.on("click",e=>{o.remove(),window.removeEventListener("keypress",c),i(!1)}),r.on("click",e=>{o.remove(),window.removeEventListener("keypress",c),i(!0)}),$("body").push(o)})});