var m=(s,c,n)=>new Promise((e,o)=>{var t=a=>{try{l(n.next(a))}catch(i){o(i)}},r=a=>{try{l(n.throw(a))}catch(i){o(i)}},l=a=>a.done?e(a.value):Promise.resolve(a.value).then(t,r);l((n=n.apply(s,c)).next())});import{z as f,__tla as p}from"./index-f0df2f76.js";import{k as u,w as y}from"./vue-1631514e.js";let d,g=Promise.all([(()=>{try{return p}catch(s){}})()]).then(()=>m(void 0,null,function*(){d=function(c){const n=u(c||""),e=u(!1),o=u(!1);return y(n,t=>{f(t)&&(o.value=!0,e.value=s(t))},{immediate:!!c,flush:"sync"}),{clipboardRef:n,isSuccessRef:e,copiedRef:o}};function s(c,{target:n=document.body}={}){const e=document.createElement("textarea"),o=document.activeElement;e.value=c,e.setAttribute("readonly",""),e.style.contain="strict",e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="12pt";const t=document.getSelection();let r;t&&t.rangeCount>0&&(r=t.getRangeAt(0)),n.append(e),e.select(),e.selectionStart=0,e.selectionEnd=c.length;let l=!1;try{l=document.execCommand("copy")}catch(a){throw new Error(a)}return e.remove(),r&&t&&(t.removeAllRanges(),t.addRange(r)),o&&o.focus(),l}}));export{g as __tla,d as u};