'use strict';

var readable = require('../../_virtual/readable.js');
var Stream = require('stream');
var _stream_readable = require('./lib/_stream_readable.js');
var _stream_writable = require('./lib/_stream_writable.js');
var _stream_duplex = require('./lib/_stream_duplex.js');
var _stream_transform = require('./lib/_stream_transform.js');
var _stream_passthrough = require('./lib/_stream_passthrough.js');
var endOfStream = require('./lib/internal/streams/end-of-stream.js');
var pipeline = require('./lib/internal/streams/pipeline.js');

(function (module, exports) {
	var Stream$1 = Stream;
	if (process.env.READABLE_STREAM === 'disable' && Stream$1) {
	  module.exports = Stream$1.Readable;
	  Object.assign(module.exports, Stream$1);
	  module.exports.Stream = Stream$1;
	} else {
	  exports = module.exports = _stream_readable.__require();
	  exports.Stream = Stream$1 || exports;
	  exports.Readable = exports;
	  exports.Writable = _stream_writable.__require();
	  exports.Duplex = _stream_duplex.__require();
	  exports.Transform = _stream_transform.__require();
	  exports.PassThrough = _stream_passthrough.__require();
	  exports.finished = endOfStream.__require();
	  exports.pipeline = pipeline.__require();
	} 
} (readable.__module, readable.__module.exports));

var readableExports = readable.__module.exports;

exports.readableExports = readableExports;
