import { createRequire } from "module";
import __path from "path";
const __rootRequire = createRequire(import.meta.url);
const __sharpRequire = createRequire(__path.dirname(import.meta.url) + __path.sep + "sharp" + __path.sep + "index.js");
const require = (module) => {
    if (typeof module === "string" && module.startsWith("@img/")) {
        return __sharpRequire(module);
    }
    return __rootRequire(module);
};
var u=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,f)=>(typeof require<"u"?require:r)[f]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var v=(e,r)=>()=>(e&&(r=e(e=0)),r);var p=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);import d from"path";import{fileURLToPath as k}from"url";var n,c,t=v(()=>{"use strict";n=k(import.meta.url),c=d.dirname(n)});var s=p(o=>{"use strict";t();Object.defineProperty(o,"__esModule",{value:!0});o.getWorkerPipeName=void 0;function l(e){return e+"-worker"}o.getWorkerPipeName=l});var g=p(P=>{t();Object.defineProperty(P,"__esModule",{value:!0});var a=u("worker_threads"),_=u("net"),w=s(),m=a.workerData.conoutPipeName,i=new _.Socket;i.setEncoding("utf8");i.connect(m,function(){var e=_.createServer(function(r){i.pipe(r)});if(e.listen(w.getWorkerPipeName(m)),!a.parentPort)throw new Error("worker_threads parentPort is null");a.parentPort.postMessage(1)})});export default g();
//# sourceMappingURL=conoutSocketWorker.js.map
