"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeMap = void 0;
const Observable_js_1 = require("../Observable.js");
const mergeInternals_js_1 = require("./mergeInternals.js");
function mergeMap(project, concurrent = Infinity) {
    return (source) => new Observable_js_1.Observable((subscriber) => (0, mergeInternals_js_1.mergeInternals)(source, subscriber, project, concurrent));
}
exports.mergeMap = mergeMap;