"use strict";var o=require("./pkgroll_create-require-c530e400.cjs"),u=require("os"),a=require("worker_threads"),l=require("./client-2f0df4a6.cjs");require("./suppress-warnings.cjs"),require("module"),require("net"),require("./get-pipe-path-86e97fc9.cjs"),require("path"),require("./temporary-directory-2a027842.cjs");const f=(s,i)=>{for(const e of s)process.on(e,r=>{i(r),process.listenerCount(e)===0&&process.exit(128+u.constants.signals[e])});const{listenerCount:n,listeners:t}=process;process.listenerCount=function(e){let r=Reflect.apply(n,this,arguments);return s.includes(e)&&(r-=1),r},process.listeners=function(e){const r=Reflect.apply(t,this,arguments);return s.includes(e)?r.filter(c=>c!==i):r}};a.isMainThread&&(o.require("./cjs/index.cjs"),(async()=>{const s=await l.connectingToServer;s&&f(["SIGINT","SIGTERM"],i=>{s({type:"signal",signal:i})})})());
