"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var m=(s,n,o)=>new Promise((u,a)=>{var r=t=>{try{i(o.next(t))}catch(e){a(e)}},c=t=>{try{i(o.throw(t))}catch(e){a(e)}},i=t=>t.done?u(t.value):Promise.resolve(t.value).then(r,c);i((o=o.apply(s,n)).next())});var _modulefromstring = require('module-from-string');var _wasm = require('@swc/wasm');var p=()=>"Bun"in globalThis,d=()=>"Deno"in globalThis,g=()=>!p()&&!d();function T(u,a){return m(this,arguments,function*(s,{target:n="es2018",loader:o="ts"}){if(d()){let{code:r}=_wasm.transformSync.call(void 0, s,{jsc:{target:n,parser:{syntax:o==="ts"?"typescript":"ecmascript"}}});return yield Promise.resolve().then(() => _interopRequireWildcard(require((t=>`data:text/javascript;base64,${btoa(t)}`)(r))))}if(g()||p())return _modulefromstring.importFromStringSync.call(void 0, s,{transformOptions:{target:n,loader:o}})})}exports.importModule = T;