import { __commonJS } from "../../_virtual/rolldown_runtime.mjs";
import { require_shams } from "../has-tostringtag/shams.mjs";
import { require_get_proto } from "../get-proto/index.mjs";
import { require_call_bound } from "../call-bound/index.mjs";
import { require_safe_regex_test } from "../safe-regex-test/index.mjs";
import { require_generator_function } from "../generator-function/index.mjs";

//#region ../../node_modules/is-generator-function/index.js
var require_is_generator_function = /* @__PURE__ */ __commonJS({ "../../node_modules/is-generator-function/index.js": ((exports, module) => {
	var callBound = require_call_bound();
	var isFnRegex = require_safe_regex_test()(/^\s*(?:function)?\*/);
	var hasToStringTag = require_shams()();
	var getProto = require_get_proto();
	var toStr = callBound("Object.prototype.toString");
	var fnToStr = callBound("Function.prototype.toString");
	var getGeneratorFunction = require_generator_function();
	/** @type {import('.')} */
	module.exports = function isGeneratorFunction(fn) {
		if (typeof fn !== "function") return false;
		if (isFnRegex(fnToStr(fn))) return true;
		if (!hasToStringTag) return toStr(fn) === "[object GeneratorFunction]";
		if (!getProto) return false;
		var GeneratorFunction = getGeneratorFunction();
		return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
	};
}) });

//#endregion
export default require_is_generator_function();

export { require_is_generator_function };
//# sourceMappingURL=index.mjs.map