import { Observable } from '../Observable.js';
import { mergeInternals } from './mergeInternals.js';
export function mergeScan(accumulator, seed, concurrent = Infinity) {
    return (source) => new Observable((subscriber) => {
        let state = seed;
        return mergeInternals(source, subscriber, (value, index) => accumulator(state, value, index), concurrent, (value) => {
            state = value;
        }, false, undefined, () => (state = null));
    });
}//# sourceMappingURL=http://go/sourcemap/sourcemaps/fc2563ec93d793fc275eef734405a4fdf8b47b20/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js.map