const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
const require_js$1 = require('./js.cjs');
const require_io$1 = require('./io.cjs');
const require_node12$1 = require('./node12.cjs');

//#region ../../node_modules/node-rsa/src/encryptEngines/encryptEngines.js
var require_encryptEngines = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/node-rsa/src/encryptEngines/encryptEngines.js": ((exports, module) => {
	var crypt = require("crypto");
	module.exports = { getEngine: function(keyPair, options) {
		var engine = require_js$1.default;
		if (options.environment === "node") {
			if (typeof crypt.publicEncrypt === "function" && typeof crypt.privateDecrypt === "function") if (typeof crypt.privateEncrypt === "function" && typeof crypt.publicDecrypt === "function") engine = require_io$1.default;
			else engine = require_node12$1.default;
		}
		return engine(keyPair, options);
	} };
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_encryptEngines();
  }
});
//# sourceMappingURL=encryptEngines.cjs.map