import{Ca as a,Gb as u,na as c,oa as r,sa as d}from"./chunk-4BRW6LCZ.js";var s=class{_document;_textarea;constructor(i,o){this._document=o;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=i,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let i=this._textarea,o=!1;try{if(i){let t=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),o=this._document.execCommand("copy"),t&&t.focus()}}catch{}return o}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},x=(()=>{class e{_document=d(a);constructor(){}copy(o){let t=this.beginCopy(o),n=t.copy();return t.destroy(),n}beginCopy(o){return new s(o,this._document)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var D=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=u({type:e});static \u0275inj=r({})}return e})();export{x as a,D as b};
