"use strict";var m=Object.defineProperty;var q=(r,e)=>m(r,"name",{value:e,configurable:!0});var s=require("../../register-Ciecs-Zx.cjs"),c=require("node:crypto");require("../../get-pipe-path-D4YM6rQt.cjs");var t=require("../../register-C557imBs.cjs");require("../../require-DDxgG93A.cjs");var n=require("../../node-features-CEjg7cMX.cjs");require("node:module"),require("node:worker_threads"),require("node:url"),require("node:fs"),require("node:fs/promises"),require("../../index-6kqi0x0U.cjs"),require("node:path"),require("esbuild"),require("node:os"),require("../../temporary-directory-B83uKxJF.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("module"),require("fs"),require("os"),require("path"),require("node:util"),require("../../index-BWFBUo6r.cjs");const g=q((r,e)=>{if(!e||typeof e=="object"&&!e.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const i=typeof e=="string",u=i?e:e.parentURL,a=c.randomUUID(),o=t.register({namespace:a});return!n.isFeatureSupported(n.esmLoadReadFile)&&!t.isBarePackageNamePattern.test(r)&&t.cjsExtensionPattern.test(r)?Promise.resolve(o.require(r,u)):s.register({namespace:a,...i?{}:e}).import(r,u)},"tsImport");exports.register=s.register,exports.tsImport=g;
