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m/wdfrp@0.1.20/dist/wdFrp.node.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/wdfrp@0.1.20/dist/wdFrp.node.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var wdCb = require(\"wdcb\");\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var JudgeUtils = (function (_super) {\n        __extends(JudgeUtils, _super);\n        function JudgeUtils() {\n            _super.apply(this, arguments);\n        }\n        JudgeUtils.isPromise = function (obj) {\n            return !!obj\n                && !_super.isFunction.call(this, obj.subscribe)\n                && _super.isFunction.call(this, obj.then);\n        };\n        JudgeUtils.isEqual = function (ob1, ob2) {\n            return ob1.uid === ob2.uid;\n        };\n        JudgeUtils.isIObserver = function (i) {\n            return i.next && i.error && i.completed;\n        };\n        return JudgeUtils;\n    }(wdCb.JudgeUtils));\n    wdFrp.JudgeUtils = JudgeUtils;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    wdFrp.fromNodeCallback = function (func, context) {\n        return function () {\n            var funcArgs = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                funcArgs[_i - 0] = arguments[_i];\n            }\n            return wdFrp.createStream(function (observer) {\n                var hander = function (err) {\n                    var args = [];\n                    for (var _i = 1; _i < arguments.length; _i++) {\n                        args[_i - 1] = arguments[_i];\n                    }\n                    if (err) {\n                        observer.error(err);\n                        return;\n                    }\n                    if (args.length <= 1) {\n                        observer.next.apply(observer, args);\n                    }\n                    else {\n                        observer.next(args);\n                    }\n                    observer.completed();\n                };\n                funcArgs.push(hander);\n                func.apply(context, funcArgs);\n            });\n        };\n    };\n    wdFrp.fromStream = function (stream, finishEventName) {\n        if (finishEventName === void 0) { finishEventName = \"end\"; }\n        if (stream.pause) {\n            stream.pause();\n        }\n        return wdFrp.createStream(function (observer) {\n            var dataHandler = function (data) {\n                observer.next(data);\n            }, errorHandler = function (err) {\n                observer.error(err);\n            }, endHandler = function () {\n                observer.completed();\n            };\n            stream.addListener(\"data\", dataHandler);\n            stream.addListener(\"error\", errorHandler);\n            stream.addListener(finishEventName, endHandler);\n            if (stream.resume) {\n                stream.resume();\n            }\n            return function () {\n                stream.removeListener(\"data\", dataHandler);\n                stream.removeListener(\"error\", errorHandler);\n                stream.removeListener(finishEventName, endHandler);\n            };\n        });\n    };\n    wdFrp.fromReadableStream = function (stream) {\n        return wdFrp.fromStream(stream, \"end\");\n    };\n    wdFrp.fromWritableStream = function (stream) {\n        return wdFrp.fromStream(stream, \"finish\");\n    };\n    wdFrp.fromTransformStream = function (stream) {\n        return wdFrp.fromStream(stream, \"finish\");\n    };\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var Entity = (function () {\n        function Entity(uidPre) {\n            this._uid = null;\n            this._uid = uidPre + String(Entity.UID++);\n        }\n        Object.defineProperty(Entity.prototype, \"uid\", {\n            get: function () {\n                return this._uid;\n            },\n            set: function (uid) {\n                this._uid = uid;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Entity.UID = 1;\n        return Entity;\n    }());\n    wdFrp.Entity = Entity;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var Main = (function () {\n        function Main() {\n        }\n        Main.isTest = false;\n        return Main;\n    }());\n    wdFrp.Main = Main;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var Log = wdCb.Log;\n    function assert(cond, message) {\n        if (message === void 0) { message = \"contract error\"; }\n        Log.error(!cond, message);\n    }\n    wdFrp.assert = assert;\n    function require(InFunc) {\n        return function (target, name, descriptor) {\n            var value = descriptor.value;\n            descriptor.value = function () {\n                var args = [];\n                for (var _i = 0; _i < arguments.length; _i++) {\n                    args[_i - 0] = arguments[_i];\n                }\n                if (wdFrp.Main.isTest) {\n                    InFunc.apply(this, args);\n                }\n                return value.apply(this, args);\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.require = require;\n    function ensure(OutFunc) {\n        return function (target, name, descriptor) {\n            var value = descriptor.value;\n            descriptor.value = function () {\n                var args = [];\n                for (var _i = 0; _i < arguments.length; _i++) {\n                    args[_i - 0] = arguments[_i];\n                }\n                var result = value.apply(this, args), params = [result].concat(args);\n                if (wdFrp.Main.isTest) {\n                    OutFunc.apply(this, params);\n                }\n                return result;\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.ensure = ensure;\n    function requireGetter(InFunc) {\n        return function (target, name, descriptor) {\n            var getter = descriptor.get;\n            descriptor.get = function () {\n                if (wdFrp.Main.isTest) {\n                    InFunc.call(this);\n                }\n                return getter.call(this);\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.requireGetter = requireGetter;\n    function requireSetter(InFunc) {\n        return function (target, name, descriptor) {\n            var setter = descriptor.set;\n            descriptor.set = function (val) {\n                if (wdFrp.Main.isTest) {\n                    InFunc.call(this, val);\n                }\n                setter.call(this, val);\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.requireSetter = requireSetter;\n    function ensureGetter(OutFunc) {\n        return function (target, name, descriptor) {\n            var getter = descriptor.get;\n            descriptor.get = function () {\n                var result = getter.call(this);\n                if (wdFrp.Main.isTest) {\n                    OutFunc.call(this, result);\n                }\n                return result;\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.ensureGetter = ensureGetter;\n    function ensureSetter(OutFunc) {\n        return function (target, name, descriptor) {\n            var setter = descriptor.set;\n            descriptor.set = function (val) {\n                var result = setter.call(this, val), params = [result, val];\n                if (wdFrp.Main.isTest) {\n                    OutFunc.apply(this, params);\n                }\n            };\n            return descriptor;\n        };\n    }\n    wdFrp.ensureSetter = ensureSetter;\n    function invariant(func) {\n        return function (target) {\n            if (wdFrp.Main.isTest) {\n                func(target);\n            }\n        };\n    }\n    wdFrp.invariant = invariant;\n})(wdFrp || (wdFrp = {}));\n\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var SingleDisposable = (function (_super) {\n        __extends(SingleDisposable, _super);\n        function SingleDisposable(disposeHandler) {\n            _super.call(this, \"SingleDisposable\");\n            this._disposeHandler = null;\n            this._isDisposed = false;\n            this._disposeHandler = disposeHandler;\n        }\n        SingleDisposable.create = function (disposeHandler) {\n            if (disposeHandler === void 0) { disposeHandler = function () { }; }\n            var obj = new this(disposeHandler);\n            return obj;\n        };\n        SingleDisposable.prototype.setDisposeHandler = function (handler) {\n            this._disposeHandler = handler;\n        };\n        SingleDisposable.prototype.dispose = function () {\n            if (this._isDisposed) {\n                return;\n            }\n            this._isDisposed = true;\n            this._disposeHandler();\n        };\n        return SingleDisposable;\n    }(wdFrp.Entity));\n    wdFrp.SingleDisposable = SingleDisposable;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var GroupDisposable = (function (_super) {\n        __extends(GroupDisposable, _super);\n        function GroupDisposable(disposable) {\n            _super.call(this, \"GroupDisposable\");\n            this._group = wdCb.Collection.create();\n            this._isDisposed = false;\n            if (disposable) {\n                this._group.addChild(disposable);\n            }\n        }\n        GroupDisposable.create = function (disposable) {\n            var obj = new this(disposable);\n            return obj;\n        };\n        GroupDisposable.prototype.add = function (disposable) {\n            this._group.addChild(disposable);\n            return this;\n        };\n        GroupDisposable.prototype.remove = function (disposable) {\n            this._group.removeChild(disposable);\n            return this;\n        };\n        GroupDisposable.prototype.dispose = function () {\n            if (this._isDisposed) {\n                return;\n            }\n            this._isDisposed = true;\n            this._group.forEach(function (disposable) {\n                disposable.dispose();\n            });\n        };\n        return GroupDisposable;\n    }(wdFrp.Entity));\n    wdFrp.GroupDisposable = GroupDisposable;\n})(wdFrp || (wdFrp = {}));\n\n\nvar wdFrp;\n(function (wdFrp) {\n    var InnerSubscription = (function () {\n        function InnerSubscription(subject, observer) {\n            this._subject = null;\n            this._observer = null;\n            this._subject = subject;\n            this._observer = observer;\n        }\n        InnerSubscription.create = function (subject, observer) {\n            var obj = new this(subject, observer);\n            return obj;\n        };\n        InnerSubscription.prototype.dispose = function () {\n            this._subject.remove(this._observer);\n            this._observer.dispose();\n        };\n        return InnerSubscription;\n    }());\n    wdFrp.InnerSubscription = InnerSubscription;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var InnerSubscriptionGroup = (function () {\n        function InnerSubscriptionGroup() {\n            this._container = wdCb.Collection.create();\n        }\n        InnerSubscriptionGroup.create = function () {\n            var obj = new this();\n            return obj;\n        };\n        InnerSubscriptionGroup.prototype.addChild = function (child) {\n            this._container.addChild(child);\n        };\n        InnerSubscriptionGroup.prototype.dispose = function () {\n            this._container.forEach(function (child) {\n                child.dispose();\n            });\n        };\n        return InnerSubscriptionGroup;\n    }());\n    wdFrp.InnerSubscriptionGroup = InnerSubscriptionGroup;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    if (wdFrp.JudgeUtils.isNodeJs() && typeof global != \"undefined\") {\n        wdFrp.root = global;\n    }\n    else {\n        wdFrp.root = window;\n    }\n})(wdFrp || (wdFrp = {}));\n\n\nvar wdFrp;\n(function (wdFrp) {\n    if (wdFrp.root.RSVP) {\n        wdFrp.root.RSVP.onerror = function (e) {\n            throw e;\n        };\n        wdFrp.root.RSVP.on('error', wdFrp.root.RSVP.onerror);\n    }\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    wdFrp.root.requestNextAnimationFrame = (function () {\n        var originalRequestAnimationFrame = undefined, wrapper = undefined, callback = undefined, geckoVersion = null, userAgent = wdFrp.root.navigator && wdFrp.root.navigator.userAgent, index = 0, self = this;\n        wrapper = function (time) {\n            time = wdFrp.root.performance.now();\n            self.callback(time);\n        };\n        if (wdFrp.root.requestAnimationFrame) {\n            return requestAnimationFrame;\n        }\n        if (wdFrp.root.webkitRequestAnimationFrame) {\n            originalRequestAnimationFrame = wdFrp.root.webkitRequestAnimationFrame;\n            wdFrp.root.webkitRequestAnimationFrame = function (callback, element) {\n                self.callback = callback;\n                return originalRequestAnimationFrame(wrapper, element);\n            };\n        }\n        if (wdFrp.root.msRequestAnimationFrame) {\n            originalRequestAnimationFrame = wdFrp.root.msRequestAnimationFrame;\n            wdFrp.root.msRequestAnimationFrame = function (callback) {\n                self.callback = callback;\n                return originalRequestAnimationFrame(wrapper);\n            };\n        }\n        if (wdFrp.root.mozRequestAnimationFrame) {\n            index = userAgent.indexOf('rv:');\n            if (userAgent.indexOf('Gecko') != -1) {\n                geckoVersion = userAgent.substr(index + 3, 3);\n                if (geckoVersion === '2.0') {\n                    wdFrp.root.mozRequestAnimationFrame = undefined;\n                }\n            }\n        }\n        return wdFrp.root.webkitRequestAnimationFrame ||\n            wdFrp.root.mozRequestAnimationFrame ||\n            wdFrp.root.oRequestAnimationFrame ||\n            wdFrp.root.msRequestAnimationFrame ||\n            function (callback, element) {\n                var start, finish;\n                wdFrp.root.setTimeout(function () {\n                    start = wdFrp.root.performance.now();\n                    callback(start);\n                    finish = wdFrp.root.performance.now();\n                    self.timeout = 1000 / 60 - (finish - start);\n                }, self.timeout);\n            };\n    }());\n    wdFrp.root.cancelNextRequestAnimationFrame = wdFrp.root.cancelRequestAnimationFrame\n        || wdFrp.root.webkitCancelAnimationFrame\n        || wdFrp.root.webkitCancelRequestAnimationFrame\n        || wdFrp.root.mozCancelRequestAnimationFrame\n        || wdFrp.root.oCancelRequestAnimationFrame\n        || wdFrp.root.msCancelRequestAnimationFrame\n        || clearTimeout;\n})(wdFrp || (wdFrp = {}));\n;\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar wdFrp;\n(function (wdFrp) {\n    var Log = wdCb.Log;\n    var Stream = (function (_super) {\n        __extends(Stream, _super);\n        function Stream(subscribeFunc) {\n            _super.call(this, \"Stream\");\n            this.scheduler = null;\n            this.subscribeFunc = null;\n            this.subscribeFunc = subscribeFunc || function () { };\n        }\n        Stream.prototype.buildStream = function (observer) {\n            return wdFrp.SingleDisposable.create((this.subscribeFunc(observer) || function () { }));\n        };\n        Stream.prototype.do = function (onNext, onError, onCompleted) {\n            return wdFrp.DoStream.create(this, onNext, onError, onCompleted);\n        };\n        Stream.prototype.map = function (selector) {\n            return wdFrp.MapStream.create(this, selector);\n        };\n        Stream.prototype.flatMap = function (selector) {\n            return this.map(selector).mergeAll();\n        };\n        Stream.prototype.concatMap = function (selector) {\n            return this.map(selector).concatAll();\n        };\n        Stream.prototype.mergeAll = function () {\n            return wdFrp.MergeAllStream.create(this);\n        };\n        Stream.prototype.concatAll = function () {\n            return this.merge(1);\n        };\n        Stream.prototype.skipUntil = function (otherStream) {\n            return wdFrp.SkipUntilStream.create(this, otherStream);\n        };\n        Stream.prototype.takeUntil = function (otherStream) {\n            return wdFrp.TakeUntilStream.create(this, otherStream);\n        };\n        Stream.prototype.take = function (count) {\n            if (count === void 0) { count = 1; }\n            var self = this;\n            if (count === 0) {\n                return wdFrp.empty();\n            }\n            return wdFrp.createStream(function (observer) {\n                self.subscribe(function (value) {\n                    if (count > 0) {\n                        observer.next(value);\n                    }\n                    count--;\n                    if (count <= 0) {\n                        observer.completed();\n                    }\n                }, function (e) {\n                    observer.error(e);\n                }, function () {\n                    observer.completed();\n                });\n            });\n        };\n        Stream.prototype.takeLast = function (count) {\n            if (count === void 0) { count = 1; }\n            var self = this;\n            if (count === 0) {\n                return wdFrp.empty();\n            }\n            return wdFrp.createStream(function (observer) {\n                var queue = [];\n                self.subscribe(function (value) {\n                    queue.push(value);\n                    if (queue.length > count) {\n                        queue.shift();\n                    }\n                }, function (e) {\n                    observer.error(e);\n                }, function () {\n                    while (queue.length > 0) {\n                        observer.next(queue.shift());\n                    }\n                    observer.completed();\n                });\n            });\n        };\n        Stream.prototype.takeWhile = function (predicate, thisArg) {\n            if (thisArg === void 0) { thisArg = this; }\n            var self = this, bindPredicate = null;\n            bindPredicate = wdCb.FunctionUtils.bind(thisArg, predicate);\n            return wdFrp.createStream(function (observer) {\n                var i = 0, isStart = false;\n                self.subscribe(function (value) {\n                    if (bindPredicate(value, i++, self)) {\n                        try {\n                            observer.next(value);\n                            isStart = true;\n                        }\n                        catch (e) {\n                            observer.error(e);\n                            return;\n                        }\n                    }\n                    else {\n                        if (isStart) {\n                            observer.completed();\n                        }\n                    }\n                }, function (e) {\n                    observer.error(e);\n                }, function () {\n                    observer.completed();\n                });\n            });\n        };\n        Stream.prototype.lastOrDefault = function (defaultValue) {\n            if (defaultValue === void 0) { defaultValue = null; }\n            var self = this;\n            return wdFrp.createStream(function (observer) {\n                var queue = [];\n                self.subscribe(function (value) {\n                    queue.push(value);\n                    if (queue.length > 1) {\n                        queue.shift();\n                    }\n                }, function (e) {\n                    observer.error(e);\n                }, function () {\n                    if (queue.length === 0) {\n                        observer.next(defaultValue);\n                    }\n                    else {\n                        while (queue.length > 0) {\n                            observer.next(queue.shift());\n                        }\n                    }\n                    observer.completed();\n                });\n            });\n        };\n        Stream.prototype.filter = function (predicate, thisArg) {\n            if (thisArg === void 0) { thisArg = this; }\n            if (this instanceof wdFrp.FilterStream) {\n                var self_1 = this;\n                return self_1.internalFilter(predicate, thisArg);\n            }\n            return wdFrp.FilterStream.create(this, predicate, thisArg);\n        };\n        Stream.prototype.filterWithState = function (predicate, thisArg) {\n            if (thisArg === void 0) { thisArg = this; }\n            if (this instanceof wdFrp.FilterStream) {\n                var self_2 = this;\n                return self_2.internalFilter(predicate, thisArg);\n            }\n            return wdFrp.FilterWithStateStream.create(this, predicate, thisArg);\n        };\n        Stream.prototype.concat = function () {\n            var args = null;\n            if (wdFrp.JudgeUtils.isArray(arguments[0])) {\n                args = arguments[0];\n            }\n            else {\n                args = Array.prototype.slice.call(arguments, 0);\n            }\n            args.unshift(this);\n            return wdFrp.ConcatStream.create(args);\n        };\n        Stream.prototype.merge = function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            if (wdFrp.JudgeUtils.isNumber(args[0])) {\n                var maxConcurrent = args[0];\n                return wdFrp.MergeStream.create(this, maxConcurrent);\n            }\n            if (wdFrp.JudgeUtils.isArray(args[0])) {\n                args = arguments[0];\n            }\n            else {\n            }\n            var stream = null;\n            args.unshift(this);\n            stream = wdFrp.fromArray(args).mergeAll();\n            return stream;\n        };\n        Stream.prototype.repeat = function (count) {\n            if (count === void 0) { count = -1; }\n            return wdFrp.RepeatStream.create(this, count);\n        };\n        Stream.prototype.ignoreElements = function () {\n            return wdFrp.IgnoreElementsStream.create(this);\n        };\n        Stream.prototype.handleSubject = function (subject) {\n            if (this._isSubject(subject)) {\n                this._setSubject(subject);\n                return true;\n            }\n            return false;\n        };\n        Stream.prototype._isSubject = function (subject) {\n            return subject instanceof wdFrp.Subject;\n        };\n        Stream.prototype._setSubject = function (subject) {\n            subject.source = this;\n        };\n        __decorate([\n            wdFrp.require(function (count) {\n                if (count === void 0) { count = 1; }\n                wdFrp.assert(count >= 0, Log.info.FUNC_SHOULD(\"count\", \">= 0\"));\n            })\n        ], Stream.prototype, \"take\", null);\n        __decorate([\n            wdFrp.require(function (count) {\n                if (count === void 0) { count = 1; }\n                wdFrp.assert(count >= 0, Log.info.FUNC_SHOULD(\"count\", \">= 0\"));\n            })\n        ], Stream.prototype, \"takeLast\", null);\n        return Stream;\n    }(wdFrp.Entity));\n    wdFrp.Stream = Stream;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var Scheduler = (function () {\n        function Scheduler() {\n            this._requestLoopId = null;\n        }\n        Scheduler.create = function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            var obj = new this();\n            return obj;\n        };\n        Object.defineProperty(Scheduler.prototype, \"requestLoopId\", {\n            get: function () {\n                return this._requestLoopId;\n            },\n            set: function (requestLoopId) {\n                this._requestLoopId = requestLoopId;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Scheduler.prototype.publishRecursive = function (observer, initial, action) {\n            action(initial);\n        };\n        Scheduler.prototype.publishInterval = function (observer, initial, interval, action) {\n            return wdFrp.root.setInterval(function () {\n                initial = action(initial);\n            }, interval);\n        };\n        Scheduler.prototype.publishIntervalRequest = function (observer, action) {\n            var self = this, loop = function (time) {\n                var isEnd = action(time);\n                if (isEnd) {\n                    return;\n                }\n                self._requestLoopId = wdFrp.root.requestNextAnimationFrame(loop);\n            };\n            this._requestLoopId = wdFrp.root.requestNextAnimationFrame(loop);\n        };\n        Scheduler.prototype.publishTimeout = function (observer, time, action) {\n            return wdFrp.root.setTimeout(function () {\n                action(time);\n                observer.completed();\n            }, time);\n        };\n        return Scheduler;\n    }());\n    wdFrp.Scheduler = Scheduler;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var Observer = (function (_super) {\n        __extends(Observer, _super);\n        function Observer() {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            _super.call(this, \"Observer\");\n            this._isDisposed = null;\n            this.onUserNext = null;\n            this.onUserError = null;\n            this.onUserCompleted = null;\n            this._isStop = false;\n            this._disposable = null;\n            if (args.length === 1) {\n                var observer_1 = args[0];\n                this.onUserNext = function (v) {\n                    observer_1.next(v);\n                };\n                this.onUserError = function (e) {\n                    observer_1.error(e);\n                };\n                this.onUserCompleted = function () {\n                    observer_1.completed();\n                };\n            }\n            else {\n                var onNext = args[0], onError = args[1], onCompleted = args[2];\n                this.onUserNext = onNext || function (v) { };\n                this.onUserError = onError || function (e) {\n                    throw e;\n                };\n                this.onUserCompleted = onCompleted || function () { };\n            }\n        }\n        Object.defineProperty(Observer.prototype, \"isDisposed\", {\n            get: function () {\n                return this._isDisposed;\n            },\n            set: function (isDisposed) {\n                this._isDisposed = isDisposed;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Observer.prototype.next = function (value) {\n            if (!this._isStop) {\n                return this.onNext(value);\n            }\n        };\n        Observer.prototype.error = function (error) {\n            if (!this._isStop) {\n                this._isStop = true;\n                this.onError(error);\n            }\n        };\n        Observer.prototype.completed = function () {\n            if (!this._isStop) {\n                this._isStop = true;\n                this.onCompleted();\n            }\n        };\n        Observer.prototype.dispose = function () {\n            this._isStop = true;\n            this._isDisposed = true;\n            if (this._disposable) {\n                this._disposable.dispose();\n            }\n        };\n        Observer.prototype.setDisposable = function (disposable) {\n            this._disposable = disposable;\n        };\n        return Observer;\n    }(wdFrp.Entity));\n    wdFrp.Observer = Observer;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var Subject = (function () {\n        function Subject() {\n            this._source = null;\n            this._observer = new wdFrp.SubjectObserver();\n        }\n        Subject.create = function () {\n            var obj = new this();\n            return obj;\n        };\n        Object.defineProperty(Subject.prototype, \"source\", {\n            get: function () {\n                return this._source;\n            },\n            set: function (source) {\n                this._source = source;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Subject.prototype.subscribe = function (arg1, onError, onCompleted) {\n            var observer = arg1 instanceof wdFrp.Observer\n                ? arg1\n                : wdFrp.AutoDetachObserver.create(arg1, onError, onCompleted);\n            this._observer.addChild(observer);\n            return wdFrp.InnerSubscription.create(this, observer);\n        };\n        Subject.prototype.next = function (value) {\n            this._observer.next(value);\n        };\n        Subject.prototype.error = function (error) {\n            this._observer.error(error);\n        };\n        Subject.prototype.completed = function () {\n            this._observer.completed();\n        };\n        Subject.prototype.start = function () {\n            if (!this._source) {\n                return;\n            }\n            this._observer.setDisposable(this._source.buildStream(this));\n        };\n        Subject.prototype.remove = function (observer) {\n            this._observer.removeChild(observer);\n        };\n        Subject.prototype.dispose = function () {\n            this._observer.dispose();\n        };\n        return Subject;\n    }());\n    wdFrp.Subject = Subject;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var GeneratorSubject = (function (_super) {\n        __extends(GeneratorSubject, _super);\n        function GeneratorSubject() {\n            _super.call(this, \"GeneratorSubject\");\n            this._isStart = false;\n            this.observer = new wdFrp.SubjectObserver();\n        }\n        GeneratorSubject.create = function () {\n            var obj = new this();\n            return obj;\n        };\n        Object.defineProperty(GeneratorSubject.prototype, \"isStart\", {\n            get: function () {\n                return this._isStart;\n            },\n            set: function (isStart) {\n                this._isStart = isStart;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        GeneratorSubject.prototype.onBeforeNext = function (value) {\n        };\n        GeneratorSubject.prototype.onAfterNext = function (value) {\n        };\n        GeneratorSubject.prototype.onIsCompleted = function (value) {\n            return false;\n        };\n        GeneratorSubject.prototype.onBeforeError = function (error) {\n        };\n        GeneratorSubject.prototype.onAfterError = function (error) {\n        };\n        GeneratorSubject.prototype.onBeforeCompleted = function () {\n        };\n        GeneratorSubject.prototype.onAfterCompleted = function () {\n        };\n        GeneratorSubject.prototype.subscribe = function (arg1, onError, onCompleted) {\n            var observer = arg1 instanceof wdFrp.Observer\n                ? arg1\n                : wdFrp.AutoDetachObserver.create(arg1, onError, onCompleted);\n            this.observer.addChild(observer);\n            return wdFrp.InnerSubscription.create(this, observer);\n        };\n        GeneratorSubject.prototype.next = function (value) {\n            if (!this._isStart || this.observer.isEmpty()) {\n                return;\n            }\n            try {\n                this.onBeforeNext(value);\n                this.observer.next(value);\n                this.onAfterNext(value);\n                if (this.onIsCompleted(value)) {\n                    this.completed();\n                }\n            }\n            catch (e) {\n                this.error(e);\n            }\n        };\n        GeneratorSubject.prototype.error = function (error) {\n            if (!this._isStart || this.observer.isEmpty()) {\n                return;\n            }\n            this.onBeforeError(error);\n            this.observer.error(error);\n            this.onAfterError(error);\n        };\n        GeneratorSubject.prototype.completed = function () {\n            if (!this._isStart || this.observer.isEmpty()) {\n                return;\n            }\n            this.onBeforeCompleted();\n            this.observer.completed();\n            this.onAfterCompleted();\n        };\n        GeneratorSubject.prototype.toStream = function () {\n            var self = this, stream = null;\n            stream = wdFrp.AnonymousStream.create(function (observer) {\n                self.subscribe(observer);\n            });\n            return stream;\n        };\n        GeneratorSubject.prototype.start = function () {\n            var self = this;\n            this._isStart = true;\n            this.observer.setDisposable(wdFrp.SingleDisposable.create(function () {\n                self.dispose();\n            }));\n        };\n        GeneratorSubject.prototype.stop = function () {\n            this._isStart = false;\n        };\n        GeneratorSubject.prototype.remove = function (observer) {\n            this.observer.removeChild(observer);\n        };\n        GeneratorSubject.prototype.dispose = function () {\n            this.observer.dispose();\n        };\n        return GeneratorSubject;\n    }(wdFrp.Entity));\n    wdFrp.GeneratorSubject = GeneratorSubject;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var AnonymousObserver = (function (_super) {\n        __extends(AnonymousObserver, _super);\n        function AnonymousObserver() {\n            _super.apply(this, arguments);\n        }\n        AnonymousObserver.create = function (onNext, onError, onCompleted) {\n            return new this(onNext, onError, onCompleted);\n        };\n        AnonymousObserver.prototype.onNext = function (value) {\n            this.onUserNext(value);\n        };\n        AnonymousObserver.prototype.onError = function (error) {\n            this.onUserError(error);\n        };\n        AnonymousObserver.prototype.onCompleted = function () {\n            this.onUserCompleted();\n        };\n        return AnonymousObserver;\n    }(wdFrp.Observer));\n    wdFrp.AnonymousObserver = AnonymousObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar wdFrp;\n(function (wdFrp) {\n    var AutoDetachObserver = (function (_super) {\n        __extends(AutoDetachObserver, _super);\n        function AutoDetachObserver() {\n            _super.apply(this, arguments);\n        }\n        AutoDetachObserver.create = function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            if (args.length === 1) {\n                return new this(args[0]);\n            }\n            else {\n                return new this(args[0], args[1], args[2]);\n            }\n        };\n        AutoDetachObserver.prototype.dispose = function () {\n            if (this.isDisposed) {\n                return;\n            }\n            _super.prototype.dispose.call(this);\n        };\n        AutoDetachObserver.prototype.onNext = function (value) {\n            try {\n                this.onUserNext(value);\n            }\n            catch (e) {\n                this.onError(e);\n            }\n        };\n        AutoDetachObserver.prototype.onError = function (error) {\n            try {\n                this.onUserError(error);\n            }\n            catch (e) {\n                throw e;\n            }\n            finally {\n                this.dispose();\n            }\n        };\n        AutoDetachObserver.prototype.onCompleted = function () {\n            try {\n                this.onUserCompleted();\n                this.dispose();\n            }\n            catch (e) {\n                throw e;\n            }\n        };\n        __decorate([\n            wdFrp.require(function () {\n                if (this.isDisposed) {\n                    wdCb.Log.warn(\"only can dispose once\");\n                }\n            })\n        ], AutoDetachObserver.prototype, \"dispose\", null);\n        return AutoDetachObserver;\n    }(wdFrp.Observer));\n    wdFrp.AutoDetachObserver = AutoDetachObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var MapObserver = (function (_super) {\n        __extends(MapObserver, _super);\n        function MapObserver(currentObserver, selector) {\n            _super.call(this, null, null, null);\n            this._currentObserver = null;\n            this._selector = null;\n            this._currentObserver = currentObserver;\n            this._selector = selector;\n        }\n        MapObserver.create = function (currentObserver, selector) {\n            return new this(currentObserver, selector);\n        };\n        MapObserver.prototype.onNext = function (value) {\n            var result = null;\n            try {\n                result = this._selector(value);\n            }\n            catch (e) {\n                this._currentObserver.error(e);\n            }\n            finally {\n                this._currentObserver.next(result);\n            }\n        };\n        MapObserver.prototype.onError = function (error) {\n            this._currentObserver.error(error);\n        };\n        MapObserver.prototype.onCompleted = function () {\n            this._currentObserver.completed();\n        };\n        return MapObserver;\n    }(wdFrp.Observer));\n    wdFrp.MapObserver = MapObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var DoObserver = (function (_super) {\n        __extends(DoObserver, _super);\n        function DoObserver(currentObserver, prevObserver) {\n            _super.call(this, null, null, null);\n            this._currentObserver = null;\n            this._prevObserver = null;\n            this._currentObserver = currentObserver;\n            this._prevObserver = prevObserver;\n        }\n        DoObserver.create = function (currentObserver, prevObserver) {\n            return new this(currentObserver, prevObserver);\n        };\n        DoObserver.prototype.onNext = function (value) {\n            try {\n                this._prevObserver.next(value);\n            }\n            catch (e) {\n                this._prevObserver.error(e);\n                this._currentObserver.error(e);\n            }\n            finally {\n                this._currentObserver.next(value);\n            }\n        };\n        DoObserver.prototype.onError = function (error) {\n            try {\n                this._prevObserver.error(error);\n            }\n            catch (e) {\n            }\n            finally {\n                this._currentObserver.error(error);\n            }\n        };\n        DoObserver.prototype.onCompleted = function () {\n            try {\n                this._prevObserver.completed();\n            }\n            catch (e) {\n                this._prevObserver.error(e);\n                this._currentObserver.error(e);\n            }\n            finally {\n                this._currentObserver.completed();\n            }\n        };\n        return DoObserver;\n    }(wdFrp.Observer));\n    wdFrp.DoObserver = DoObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar wdFrp;\n(function (wdFrp) {\n    var Log = wdCb.Log;\n    var MergeAllObserver = (function (_super) {\n        __extends(MergeAllObserver, _super);\n        function MergeAllObserver(currentObserver, streamGroup, groupDisposable) {\n            _super.call(this, null, null, null);\n            this.done = false;\n            this.currentObserver = null;\n            this._streamGroup = null;\n            this._groupDisposable = null;\n            this.currentObserver = currentObserver;\n            this._streamGroup = streamGroup;\n            this._groupDisposable = groupDisposable;\n        }\n        MergeAllObserver.create = function (currentObserver, streamGroup, groupDisposable) {\n            return new this(currentObserver, streamGroup, groupDisposable);\n        };\n        MergeAllObserver.prototype.onNext = function (innerSource) {\n            if (wdFrp.JudgeUtils.isPromise(innerSource)) {\n                innerSource = wdFrp.fromPromise(innerSource);\n            }\n            this._streamGroup.addChild(innerSource);\n            this._groupDisposable.add(innerSource.buildStream(InnerObserver.create(this, this._streamGroup, innerSource)));\n        };\n        MergeAllObserver.prototype.onError = function (error) {\n            this.currentObserver.error(error);\n        };\n        MergeAllObserver.prototype.onCompleted = function () {\n            this.done = true;\n            if (this._streamGroup.getCount() === 0) {\n                this.currentObserver.completed();\n            }\n        };\n        __decorate([\n            wdFrp.require(function (innerSource) {\n                wdFrp.assert(innerSource instanceof wdFrp.Stream || wdFrp.JudgeUtils.isPromise(innerSource), Log.info.FUNC_MUST_BE(\"innerSource\", \"Stream or Promise\"));\n            })\n        ], MergeAllObserver.prototype, \"onNext\", null);\n        return MergeAllObserver;\n    }(wdFrp.Observer));\n    wdFrp.MergeAllObserver = MergeAllObserver;\n    var InnerObserver = (function (_super) {\n        __extends(InnerObserver, _super);\n        function InnerObserver(parent, streamGroup, currentStream) {\n            _super.call(this, null, null, null);\n            this._parent = null;\n            this._streamGroup = null;\n            this._currentStream = null;\n            this._parent = parent;\n            this._streamGroup = streamGroup;\n            this._currentStream = currentStream;\n        }\n        InnerObserver.create = function (parent, streamGroup, currentStream) {\n            var obj = new this(parent, streamGroup, currentStream);\n            return obj;\n        };\n        InnerObserver.prototype.onNext = function (value) {\n            this._parent.currentObserver.next(value);\n        };\n        InnerObserver.prototype.onError = function (error) {\n            this._parent.currentObserver.error(error);\n        };\n        InnerObserver.prototype.onCompleted = function () {\n            var currentStream = this._currentStream, parent = this._parent;\n            this._streamGroup.removeChild(function (stream) {\n                return wdFrp.JudgeUtils.isEqual(stream, currentStream);\n            });\n            if (this._isAsync() && this._streamGroup.getCount() === 0) {\n                parent.currentObserver.completed();\n            }\n        };\n        InnerObserver.prototype._isAsync = function () {\n            return this._parent.done;\n        };\n        return InnerObserver;\n    }(wdFrp.Observer));\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar wdFrp;\n(function (wdFrp) {\n    var Log = wdCb.Log;\n    var MergeObserver = (function (_super) {\n        __extends(MergeObserver, _super);\n        function MergeObserver(currentObserver, maxConcurrent, streamGroup, groupDisposable) {\n            _super.call(this, null, null, null);\n            this.done = false;\n            this.currentObserver = null;\n            this.activeCount = 0;\n            this.q = [];\n            this._maxConcurrent = null;\n            this._groupDisposable = null;\n            this._streamGroup = null;\n            this.currentObserver = currentObserver;\n            this._maxConcurrent = maxConcurrent;\n            this._streamGroup = streamGroup;\n            this._groupDisposable = groupDisposable;\n        }\n        MergeObserver.create = function (currentObserver, maxConcurrent, streamGroup, groupDisposable) {\n            return new this(currentObserver, maxConcurrent, streamGroup, groupDisposable);\n        };\n        MergeObserver.prototype.handleSubscribe = function (innerSource) {\n            if (wdFrp.JudgeUtils.isPromise(innerSource)) {\n                innerSource = wdFrp.fromPromise(innerSource);\n            }\n            this._streamGroup.addChild(innerSource);\n            this._groupDisposable.add(innerSource.buildStream(InnerObserver.create(this, this._streamGroup, innerSource)));\n        };\n        MergeObserver.prototype.onNext = function (innerSource) {\n            if (this._isReachMaxConcurrent()) {\n                this.activeCount++;\n                this.handleSubscribe(innerSource);\n                return;\n            }\n            this.q.push(innerSource);\n        };\n        MergeObserver.prototype.onError = function (error) {\n            this.currentObserver.error(error);\n        };\n        MergeObserver.prototype.onCompleted = function () {\n            this.done = true;\n            if (this._streamGroup.getCount() === 0) {\n                this.currentObserver.completed();\n            }\n        };\n        MergeObserver.prototype._isReachMaxConcurrent = function () {\n            return this.activeCount < this._maxConcurrent;\n        };\n        __decorate([\n            wdFrp.require(function (innerSource) {\n                wdFrp.assert(innerSource instanceof wdFrp.Stream || wdFrp.JudgeUtils.isPromise(innerSource), Log.info.FUNC_MUST_BE(\"innerSource\", \"Stream or Promise\"));\n            })\n        ], MergeObserver.prototype, \"onNext\", null);\n        return MergeObserver;\n    }(wdFrp.Observer));\n    wdFrp.MergeObserver = MergeObserver;\n    var InnerObserver = (function (_super) {\n        __extends(InnerObserver, _super);\n        function InnerObserver(parent, streamGroup, currentStream) {\n            _super.call(this, null, null, null);\n            this._parent = null;\n            this._streamGroup = null;\n            this._currentStream = null;\n            this._parent = parent;\n            this._streamGroup = streamGroup;\n            this._currentStream = currentStream;\n        }\n        InnerObserver.create = function (parent, streamGroup, currentStream) {\n            var obj = new this(parent, streamGroup, currentStream);\n            return obj;\n        };\n        InnerObserver.prototype.onNext = function (value) {\n            this._parent.currentObserver.next(value);\n        };\n        InnerObserver.prototype.onError = function (error) {\n            this._parent.currentObserver.error(error);\n        };\n        InnerObserver.prototype.onCompleted = function () {\n            var parent = this._parent;\n            this._streamGroup.removeChild(this._currentStream);\n            if (parent.q.length > 0) {\n                parent.activeCount = 0;\n                parent.handleSubscribe(parent.q.shift());\n            }\n            else {\n                if (this._isAsync() && this._streamGroup.getCount() === 0) {\n                    parent.currentObserver.completed();\n                }\n            }\n        };\n        InnerObserver.prototype._isAsync = function () {\n            return this._parent.done;\n        };\n        return InnerObserver;\n    }(wdFrp.Observer));\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var TakeUntilObserver = (function (_super) {\n        __extends(TakeUntilObserver, _super);\n        function TakeUntilObserver(prevObserver) {\n            _super.call(this, null, null, null);\n            this._prevObserver = null;\n            this._prevObserver = prevObserver;\n        }\n        TakeUntilObserver.create = function (prevObserver) {\n            return new this(prevObserver);\n        };\n        TakeUntilObserver.prototype.onNext = function (value) {\n            this._prevObserver.completed();\n        };\n        TakeUntilObserver.prototype.onError = function (error) {\n            this._prevObserver.error(error);\n        };\n        TakeUntilObserver.prototype.onCompleted = function () {\n        };\n        return TakeUntilObserver;\n    }(wdFrp.Observer));\n    wdFrp.TakeUntilObserver = TakeUntilObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var SkipUntilSourceObserver = (function (_super) {\n        __extends(SkipUntilSourceObserver, _super);\n        function SkipUntilSourceObserver(prevObserver, skipUntilStream) {\n            _super.call(this, null, null, null);\n            this._prevObserver = null;\n            this._skipUntilStream = null;\n            this._prevObserver = prevObserver;\n            this._skipUntilStream = skipUntilStream;\n        }\n        SkipUntilSourceObserver.create = function (prevObserver, skipUntilStream) {\n            return new this(prevObserver, skipUntilStream);\n        };\n        SkipUntilSourceObserver.prototype.onNext = function (value) {\n            if (this._skipUntilStream.isOpen) {\n                this._prevObserver.next(value);\n            }\n        };\n        SkipUntilSourceObserver.prototype.onError = function (error) {\n            this._prevObserver.error(error);\n        };\n        SkipUntilSourceObserver.prototype.onCompleted = function () {\n            if (this._skipUntilStream.isOpen) {\n                this._prevObserver.completed();\n            }\n        };\n        return SkipUntilSourceObserver;\n    }(wdFrp.Observer));\n    wdFrp.SkipUntilSourceObserver = SkipUntilSourceObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var SkipUntilOtherObserver = (function (_super) {\n        __extends(SkipUntilOtherObserver, _super);\n        function SkipUntilOtherObserver(prevObserver, skipUntilStream) {\n            _super.call(this, null, null, null);\n            this.otherDisposable = null;\n            this._prevObserver = null;\n            this._skipUntilStream = null;\n            this._prevObserver = prevObserver;\n            this._skipUntilStream = skipUntilStream;\n        }\n        SkipUntilOtherObserver.create = function (prevObserver, skipUntilStream) {\n            return new this(prevObserver, skipUntilStream);\n        };\n        SkipUntilOtherObserver.prototype.onNext = function (value) {\n            this._skipUntilStream.isOpen = true;\n            this.otherDisposable.dispose();\n        };\n        SkipUntilOtherObserver.prototype.onError = function (error) {\n            this._prevObserver.error(error);\n        };\n        SkipUntilOtherObserver.prototype.onCompleted = function () {\n            this.otherDisposable.dispose();\n        };\n        return SkipUntilOtherObserver;\n    }(wdFrp.Observer));\n    wdFrp.SkipUntilOtherObserver = SkipUntilOtherObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var ConcatObserver = (function (_super) {\n        __extends(ConcatObserver, _super);\n        function ConcatObserver(currentObserver, startNextStream) {\n            _super.call(this, null, null, null);\n            this.currentObserver = null;\n            this._startNextStream = null;\n            this.currentObserver = currentObserver;\n            this._startNextStream = startNextStream;\n        }\n        ConcatObserver.create = function (currentObserver, startNextStream) {\n            return new this(currentObserver, startNextStream);\n        };\n        ConcatObserver.prototype.onNext = function (value) {\n            this.currentObserver.next(value);\n        };\n        ConcatObserver.prototype.onError = function (error) {\n            this.currentObserver.error(error);\n        };\n        ConcatObserver.prototype.onCompleted = function () {\n            this._startNextStream();\n        };\n        return ConcatObserver;\n    }(wdFrp.Observer));\n    wdFrp.ConcatObserver = ConcatObserver;\n})(wdFrp || (wdFrp = {}));\n\n\nvar wdFrp;\n(function (wdFrp) {\n    var SubjectObserver = (function () {\n        function SubjectObserver() {\n            this.observers = wdCb.Collection.create();\n            this._disposable = null;\n        }\n        SubjectObserver.prototype.isEmpty = function () {\n            return this.observers.getCount() === 0;\n        };\n        SubjectObserver.prototype.next = function (value) {\n            this.observers.forEach(function (ob) {\n                ob.next(value);\n            });\n        };\n        SubjectObserver.prototype.error = function (error) {\n            this.observers.forEach(function (ob) {\n                ob.error(error);\n            });\n        };\n        SubjectObserver.prototype.completed = function () {\n            this.observers.forEach(function (ob) {\n                ob.completed();\n            });\n        };\n        SubjectObserver.prototype.addChild = function (observer) {\n            this.observers.addChild(observer);\n            observer.setDisposable(this._disposable);\n        };\n        SubjectObserver.prototype.removeChild = function (observer) {\n            this.observers.removeChild(function (ob) {\n                return wdFrp.JudgeUtils.isEqual(ob, observer);\n            });\n        };\n        SubjectObserver.prototype.dispose = function () {\n            this.observers.forEach(function (ob) {\n                ob.dispose();\n            });\n            this.observers.removeAllChildren();\n        };\n        SubjectObserver.prototype.setDisposable = function (disposable) {\n            this.observers.forEach(function (observer) {\n                observer.setDisposable(disposable);\n            });\n            this._disposable = disposable;\n        };\n        return SubjectObserver;\n    }());\n    wdFrp.SubjectObserver = SubjectObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var IgnoreElementsObserver = (function (_super) {\n        __extends(IgnoreElementsObserver, _super);\n        function IgnoreElementsObserver(currentObserver) {\n            _super.call(this, null, null, null);\n            this._currentObserver = null;\n            this._currentObserver = currentObserver;\n        }\n        IgnoreElementsObserver.create = function (currentObserver) {\n            return new this(currentObserver);\n        };\n        IgnoreElementsObserver.prototype.onNext = function (value) {\n        };\n        IgnoreElementsObserver.prototype.onError = function (error) {\n            this._currentObserver.error(error);\n        };\n        IgnoreElementsObserver.prototype.onCompleted = function () {\n            this._currentObserver.completed();\n        };\n        return IgnoreElementsObserver;\n    }(wdFrp.Observer));\n    wdFrp.IgnoreElementsObserver = IgnoreElementsObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FilterObserver = (function (_super) {\n        __extends(FilterObserver, _super);\n        function FilterObserver(prevObserver, predicate, source) {\n            _super.call(this, null, null, null);\n            this.prevObserver = null;\n            this.source = null;\n            this.i = 0;\n            this.predicate = null;\n            this.prevObserver = prevObserver;\n            this.predicate = predicate;\n            this.source = source;\n        }\n        FilterObserver.create = function (prevObserver, predicate, source) {\n            return new this(prevObserver, predicate, source);\n        };\n        FilterObserver.prototype.onNext = function (value) {\n            try {\n                if (this.predicate(value, this.i++, this.source)) {\n                    this.prevObserver.next(value);\n                }\n            }\n            catch (e) {\n                this.prevObserver.error(e);\n            }\n        };\n        FilterObserver.prototype.onError = function (error) {\n            this.prevObserver.error(error);\n        };\n        FilterObserver.prototype.onCompleted = function () {\n            this.prevObserver.completed();\n        };\n        return FilterObserver;\n    }(wdFrp.Observer));\n    wdFrp.FilterObserver = FilterObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FilterWithStateObserver = (function (_super) {\n        __extends(FilterWithStateObserver, _super);\n        function FilterWithStateObserver() {\n            _super.apply(this, arguments);\n            this._isTrigger = false;\n        }\n        FilterWithStateObserver.create = function (prevObserver, predicate, source) {\n            return new this(prevObserver, predicate, source);\n        };\n        FilterWithStateObserver.prototype.onNext = function (value) {\n            var data = null;\n            try {\n                if (this.predicate(value, this.i++, this.source)) {\n                    if (!this._isTrigger) {\n                        data = {\n                            value: value,\n                            state: wdFrp.FilterState.ENTER\n                        };\n                    }\n                    else {\n                        data = {\n                            value: value,\n                            state: wdFrp.FilterState.TRIGGER\n                        };\n                    }\n                    this.prevObserver.next(data);\n                    this._isTrigger = true;\n                }\n                else {\n                    if (this._isTrigger) {\n                        data = {\n                            value: value,\n                            state: wdFrp.FilterState.LEAVE\n                        };\n                        this.prevObserver.next(data);\n                    }\n                    this._isTrigger = false;\n                }\n            }\n            catch (e) {\n                this.prevObserver.error(e);\n            }\n        };\n        return FilterWithStateObserver;\n    }(wdFrp.FilterObserver));\n    wdFrp.FilterWithStateObserver = FilterWithStateObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var BaseStream = (function (_super) {\n        __extends(BaseStream, _super);\n        function BaseStream() {\n            _super.apply(this, arguments);\n        }\n        BaseStream.prototype.subscribe = function (arg1, onError, onCompleted) {\n            var observer = null;\n            if (this.handleSubject(arg1)) {\n                return;\n            }\n            observer = arg1 instanceof wdFrp.Observer\n                ? wdFrp.AutoDetachObserver.create(arg1)\n                : wdFrp.AutoDetachObserver.create(arg1, onError, onCompleted);\n            observer.setDisposable(this.buildStream(observer));\n            return observer;\n        };\n        BaseStream.prototype.buildStream = function (observer) {\n            _super.prototype.buildStream.call(this, observer);\n            return this.subscribeCore(observer);\n        };\n        return BaseStream;\n    }(wdFrp.Stream));\n    wdFrp.BaseStream = BaseStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var DoStream = (function (_super) {\n        __extends(DoStream, _super);\n        function DoStream(source, onNext, onError, onCompleted) {\n            _super.call(this, null);\n            this._source = null;\n            this._observer = null;\n            this._source = source;\n            this._observer = wdFrp.AnonymousObserver.create(onNext, onError, onCompleted);\n            this.scheduler = this._source.scheduler;\n        }\n        DoStream.create = function (source, onNext, onError, onCompleted) {\n            var obj = new this(source, onNext, onError, onCompleted);\n            return obj;\n        };\n        DoStream.prototype.subscribeCore = function (observer) {\n            return this._source.buildStream(wdFrp.DoObserver.create(observer, this._observer));\n        };\n        return DoStream;\n    }(wdFrp.BaseStream));\n    wdFrp.DoStream = DoStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var MapStream = (function (_super) {\n        __extends(MapStream, _super);\n        function MapStream(source, selector) {\n            _super.call(this, null);\n            this._source = null;\n            this._selector = null;\n            this._source = source;\n            this.scheduler = this._source.scheduler;\n            this._selector = selector;\n        }\n        MapStream.create = function (source, selector) {\n            var obj = new this(source, selector);\n            return obj;\n        };\n        MapStream.prototype.subscribeCore = function (observer) {\n            return this._source.buildStream(wdFrp.MapObserver.create(observer, this._selector));\n        };\n        return MapStream;\n    }(wdFrp.BaseStream));\n    wdFrp.MapStream = MapStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FromArrayStream = (function (_super) {\n        __extends(FromArrayStream, _super);\n        function FromArrayStream(array, scheduler) {\n            _super.call(this, null);\n            this._array = null;\n            this._array = array;\n            this.scheduler = scheduler;\n        }\n        FromArrayStream.create = function (array, scheduler) {\n            var obj = new this(array, scheduler);\n            return obj;\n        };\n        FromArrayStream.prototype.subscribeCore = function (observer) {\n            var array = this._array, len = array.length;\n            function loopRecursive(i) {\n                if (i < len) {\n                    observer.next(array[i]);\n                    loopRecursive(i + 1);\n                }\n                else {\n                    observer.completed();\n                }\n            }\n            this.scheduler.publishRecursive(observer, 0, loopRecursive);\n            return wdFrp.SingleDisposable.create();\n        };\n        return FromArrayStream;\n    }(wdFrp.BaseStream));\n    wdFrp.FromArrayStream = FromArrayStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FromPromiseStream = (function (_super) {\n        __extends(FromPromiseStream, _super);\n        function FromPromiseStream(promise, scheduler) {\n            _super.call(this, null);\n            this._promise = null;\n            this._promise = promise;\n            this.scheduler = scheduler;\n        }\n        FromPromiseStream.create = function (promise, scheduler) {\n            var obj = new this(promise, scheduler);\n            return obj;\n        };\n        FromPromiseStream.prototype.subscribeCore = function (observer) {\n            this._promise.then(function (data) {\n                observer.next(data);\n                observer.completed();\n            }, function (err) {\n                observer.error(err);\n            }, observer);\n            return wdFrp.SingleDisposable.create();\n        };\n        return FromPromiseStream;\n    }(wdFrp.BaseStream));\n    wdFrp.FromPromiseStream = FromPromiseStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FromEventPatternStream = (function (_super) {\n        __extends(FromEventPatternStream, _super);\n        function FromEventPatternStream(addHandler, removeHandler) {\n            _super.call(this, null);\n            this._addHandler = null;\n            this._removeHandler = null;\n            this._addHandler = addHandler;\n            this._removeHandler = removeHandler;\n        }\n        FromEventPatternStream.create = function (addHandler, removeHandler) {\n            var obj = new this(addHandler, removeHandler);\n            return obj;\n        };\n        FromEventPatternStream.prototype.subscribeCore = function (observer) {\n            var self = this;\n            function innerHandler(event) {\n                observer.next(event);\n            }\n            this._addHandler(innerHandler);\n            return wdFrp.SingleDisposable.create(function () {\n                self._removeHandler(innerHandler);\n            });\n        };\n        return FromEventPatternStream;\n    }(wdFrp.BaseStream));\n    wdFrp.FromEventPatternStream = FromEventPatternStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var AnonymousStream = (function (_super) {\n        __extends(AnonymousStream, _super);\n        function AnonymousStream(subscribeFunc) {\n            _super.call(this, subscribeFunc);\n            this.scheduler = wdFrp.Scheduler.create();\n        }\n        AnonymousStream.create = function (subscribeFunc) {\n            var obj = new this(subscribeFunc);\n            return obj;\n        };\n        AnonymousStream.prototype.subscribe = function () {\n            var args = [];\n            for (var _i = 0; _i < arguments.length; _i++) {\n                args[_i - 0] = arguments[_i];\n            }\n            var observer = null;\n            if (args[0] instanceof wdFrp.Subject) {\n                var subject = args[0];\n                this.handleSubject(subject);\n                return;\n            }\n            else if (wdFrp.JudgeUtils.isIObserver(args[0])) {\n                observer = wdFrp.AutoDetachObserver.create(args[0]);\n            }\n            else {\n                var onNext = args[0], onError = args[1] || null, onCompleted = args[2] || null;\n                observer = wdFrp.AutoDetachObserver.create(onNext, onError, onCompleted);\n            }\n            observer.setDisposable(this.buildStream(observer));\n            return observer;\n        };\n        return AnonymousStream;\n    }(wdFrp.Stream));\n    wdFrp.AnonymousStream = AnonymousStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var IntervalStream = (function (_super) {\n        __extends(IntervalStream, _super);\n        function IntervalStream(interval, scheduler) {\n            _super.call(this, null);\n            this._interval = null;\n            this._interval = interval;\n            this.scheduler = scheduler;\n        }\n        IntervalStream.create = function (interval, scheduler) {\n            var obj = new this(interval, scheduler);\n            obj.initWhenCreate();\n            return obj;\n        };\n        IntervalStream.prototype.initWhenCreate = function () {\n            this._interval = this._interval <= 0 ? 1 : this._interval;\n        };\n        IntervalStream.prototype.subscribeCore = function (observer) {\n            var self = this, id = null;\n            id = this.scheduler.publishInterval(observer, 0, this._interval, function (count) {\n                observer.next(count);\n                return count + 1;\n            });\n            return wdFrp.SingleDisposable.create(function () {\n                wdFrp.root.clearInterval(id);\n            });\n        };\n        return IntervalStream;\n    }(wdFrp.BaseStream));\n    wdFrp.IntervalStream = IntervalStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var IntervalRequestStream = (function (_super) {\n        __extends(IntervalRequestStream, _super);\n        function IntervalRequestStream(scheduler) {\n            _super.call(this, null);\n            this._isEnd = false;\n            this.scheduler = scheduler;\n        }\n        IntervalRequestStream.create = function (scheduler) {\n            var obj = new this(scheduler);\n            return obj;\n        };\n        IntervalRequestStream.prototype.subscribeCore = function (observer) {\n            var self = this;\n            this.scheduler.publishIntervalRequest(observer, function (time) {\n                observer.next(time);\n                return self._isEnd;\n            });\n            return wdFrp.SingleDisposable.create(function () {\n                wdFrp.root.cancelNextRequestAnimationFrame(self.scheduler.requestLoopId);\n                self._isEnd = true;\n            });\n        };\n        return IntervalRequestStream;\n    }(wdFrp.BaseStream));\n    wdFrp.IntervalRequestStream = IntervalRequestStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar wdFrp;\n(function (wdFrp) {\n    var Log = wdCb.Log;\n    var TimeoutStream = (function (_super) {\n        __extends(TimeoutStream, _super);\n        function TimeoutStream(time, scheduler) {\n            _super.call(this, null);\n            this._time = null;\n            this._time = time;\n            this.scheduler = scheduler;\n        }\n        TimeoutStream.create = function (time, scheduler) {\n            var obj = new this(time, scheduler);\n            return obj;\n        };\n        TimeoutStream.prototype.subscribeCore = function (observer) {\n            var id = null;\n            id = this.scheduler.publishTimeout(observer, this._time, function (time) {\n                observer.next(time);\n            });\n            return wdFrp.SingleDisposable.create(function () {\n                wdFrp.root.clearTimeout(id);\n            });\n        };\n        __decorate([\n            wdFrp.require(function (time, scheduler) {\n                wdFrp.assert(time > 0, Log.info.FUNC_SHOULD(\"time\", \"> 0\"));\n            })\n        ], TimeoutStream, \"create\", null);\n        return TimeoutStream;\n    }(wdFrp.BaseStream));\n    wdFrp.TimeoutStream = TimeoutStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var MergeAllStream = (function (_super) {\n        __extends(MergeAllStream, _super);\n        function MergeAllStream(source) {\n            _super.call(this, null);\n            this._source = null;\n            this._observer = null;\n            this._source = source;\n            this.scheduler = this._source.scheduler;\n        }\n        MergeAllStream.create = function (source) {\n            var obj = new this(source);\n            return obj;\n        };\n        MergeAllStream.prototype.subscribeCore = function (observer) {\n            var streamGroup = wdCb.Collection.create(), groupDisposable = wdFrp.GroupDisposable.create();\n            this._source.buildStream(wdFrp.MergeAllObserver.create(observer, streamGroup, groupDisposable));\n            return groupDisposable;\n        };\n        return MergeAllStream;\n    }(wdFrp.BaseStream));\n    wdFrp.MergeAllStream = MergeAllStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var MergeStream = (function (_super) {\n        __extends(MergeStream, _super);\n        function MergeStream(source, maxConcurrent) {\n            _super.call(this, null);\n            this._source = null;\n            this._maxConcurrent = null;\n            this._source = source;\n            this._maxConcurrent = maxConcurrent;\n            this.scheduler = this._source.scheduler;\n        }\n        MergeStream.create = function (source, maxConcurrent) {\n            var obj = new this(source, maxConcurrent);\n            return obj;\n        };\n        MergeStream.prototype.subscribeCore = function (observer) {\n            var streamGroup = wdCb.Collection.create(), groupDisposable = wdFrp.GroupDisposable.create();\n            this._source.buildStream(wdFrp.MergeObserver.create(observer, this._maxConcurrent, streamGroup, groupDisposable));\n            return groupDisposable;\n        };\n        return MergeStream;\n    }(wdFrp.BaseStream));\n    wdFrp.MergeStream = MergeStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var TakeUntilStream = (function (_super) {\n        __extends(TakeUntilStream, _super);\n        function TakeUntilStream(source, otherStream) {\n            _super.call(this, null);\n            this._source = null;\n            this._otherStream = null;\n            this._source = source;\n            this._otherStream = wdFrp.JudgeUtils.isPromise(otherStream) ? wdFrp.fromPromise(otherStream) : otherStream;\n            this.scheduler = this._source.scheduler;\n        }\n        TakeUntilStream.create = function (source, otherSteam) {\n            var obj = new this(source, otherSteam);\n            return obj;\n        };\n        TakeUntilStream.prototype.subscribeCore = function (observer) {\n            var group = wdFrp.GroupDisposable.create(), autoDetachObserver = wdFrp.AutoDetachObserver.create(observer), sourceDisposable = null;\n            sourceDisposable = this._source.buildStream(observer);\n            group.add(sourceDisposable);\n            autoDetachObserver.setDisposable(sourceDisposable);\n            group.add(this._otherStream.buildStream(wdFrp.TakeUntilObserver.create(autoDetachObserver)));\n            return group;\n        };\n        return TakeUntilStream;\n    }(wdFrp.BaseStream));\n    wdFrp.TakeUntilStream = TakeUntilStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var SkipUntilStream = (function (_super) {\n        __extends(SkipUntilStream, _super);\n        function SkipUntilStream(source, otherStream) {\n            _super.call(this, null);\n            this.isOpen = false;\n            this._source = null;\n            this._otherStream = null;\n            this._source = source;\n            this._otherStream = wdFrp.JudgeUtils.isPromise(otherStream) ? wdFrp.fromPromise(otherStream) : otherStream;\n            this.scheduler = this._source.scheduler;\n        }\n        SkipUntilStream.create = function (source, otherSteam) {\n            var obj = new this(source, otherSteam);\n            return obj;\n        };\n        SkipUntilStream.prototype.subscribeCore = function (observer) {\n            var group = wdFrp.GroupDisposable.create(), otherDisposable = null, skipUntilOtherObserver = null;\n            group.add(this._source.buildStream(wdFrp.SkipUntilSourceObserver.create(observer, this)));\n            skipUntilOtherObserver = wdFrp.SkipUntilOtherObserver.create(observer, this);\n            otherDisposable = this._otherStream.buildStream(skipUntilOtherObserver);\n            skipUntilOtherObserver.otherDisposable = otherDisposable;\n            group.add(otherDisposable);\n            return group;\n        };\n        return SkipUntilStream;\n    }(wdFrp.BaseStream));\n    wdFrp.SkipUntilStream = SkipUntilStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var ConcatStream = (function (_super) {\n        __extends(ConcatStream, _super);\n        function ConcatStream(sources) {\n            _super.call(this, null);\n            this._sources = wdCb.Collection.create();\n            var self = this;\n            this.scheduler = sources[0].scheduler;\n            sources.forEach(function (source) {\n                if (wdFrp.JudgeUtils.isPromise(source)) {\n                    self._sources.addChild(wdFrp.fromPromise(source));\n                }\n                else {\n                    self._sources.addChild(source);\n                }\n            });\n        }\n        ConcatStream.create = function (sources) {\n            var obj = new this(sources);\n            return obj;\n        };\n        ConcatStream.prototype.subscribeCore = function (observer) {\n            var self = this, count = this._sources.getCount(), d = wdFrp.GroupDisposable.create();\n            function loopRecursive(i) {\n                if (i === count) {\n                    observer.completed();\n                    return;\n                }\n                d.add(self._sources.getChild(i).buildStream(wdFrp.ConcatObserver.create(observer, function () {\n                    loopRecursive(i + 1);\n                })));\n            }\n            this.scheduler.publishRecursive(observer, 0, loopRecursive);\n            return wdFrp.GroupDisposable.create(d);\n        };\n        return ConcatStream;\n    }(wdFrp.BaseStream));\n    wdFrp.ConcatStream = ConcatStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var RepeatStream = (function (_super) {\n        __extends(RepeatStream, _super);\n        function RepeatStream(source, count) {\n            _super.call(this, null);\n            this._source = null;\n            this._count = null;\n            this._source = source;\n            this._count = count;\n            this.scheduler = this._source.scheduler;\n        }\n        RepeatStream.create = function (source, count) {\n            var obj = new this(source, count);\n            return obj;\n        };\n        RepeatStream.prototype.subscribeCore = function (observer) {\n            var self = this, d = wdFrp.GroupDisposable.create();\n            function loopRecursive(count) {\n                if (count === 0) {\n                    observer.completed();\n                    return;\n                }\n                d.add(self._source.buildStream(wdFrp.ConcatObserver.create(observer, function () {\n                    loopRecursive(count - 1);\n                })));\n            }\n            this.scheduler.publishRecursive(observer, this._count, loopRecursive);\n            return wdFrp.GroupDisposable.create(d);\n        };\n        return RepeatStream;\n    }(wdFrp.BaseStream));\n    wdFrp.RepeatStream = RepeatStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var IgnoreElementsStream = (function (_super) {\n        __extends(IgnoreElementsStream, _super);\n        function IgnoreElementsStream(source) {\n            _super.call(this, null);\n            this._source = null;\n            this._source = source;\n            this.scheduler = this._source.scheduler;\n        }\n        IgnoreElementsStream.create = function (source) {\n            var obj = new this(source);\n            return obj;\n        };\n        IgnoreElementsStream.prototype.subscribeCore = function (observer) {\n            return this._source.buildStream(wdFrp.IgnoreElementsObserver.create(observer));\n        };\n        return IgnoreElementsStream;\n    }(wdFrp.BaseStream));\n    wdFrp.IgnoreElementsStream = IgnoreElementsStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var DeferStream = (function (_super) {\n        __extends(DeferStream, _super);\n        function DeferStream(buildStreamFunc) {\n            _super.call(this, null);\n            this._buildStreamFunc = null;\n            this._buildStreamFunc = buildStreamFunc;\n        }\n        DeferStream.create = function (buildStreamFunc) {\n            var obj = new this(buildStreamFunc);\n            return obj;\n        };\n        DeferStream.prototype.subscribeCore = function (observer) {\n            var group = wdFrp.GroupDisposable.create();\n            group.add(this._buildStreamFunc().buildStream(observer));\n            return group;\n        };\n        return DeferStream;\n    }(wdFrp.BaseStream));\n    wdFrp.DeferStream = DeferStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FilterStream = (function (_super) {\n        __extends(FilterStream, _super);\n        function FilterStream(source, predicate, thisArg) {\n            _super.call(this, null);\n            this.predicate = null;\n            this._source = null;\n            this._source = source;\n            this.predicate = wdCb.FunctionUtils.bind(thisArg, predicate);\n        }\n        FilterStream.create = function (source, predicate, thisArg) {\n            var obj = new this(source, predicate, thisArg);\n            return obj;\n        };\n        FilterStream.prototype.subscribeCore = function (observer) {\n            return this._source.subscribe(this.createObserver(observer));\n        };\n        FilterStream.prototype.internalFilter = function (predicate, thisArg) {\n            return this.createStreamForInternalFilter(this._source, this._innerPredicate(predicate, this), thisArg);\n        };\n        FilterStream.prototype.createObserver = function (observer) {\n            return wdFrp.FilterObserver.create(observer, this.predicate, this);\n        };\n        FilterStream.prototype.createStreamForInternalFilter = function (source, innerPredicate, thisArg) {\n            return FilterStream.create(source, innerPredicate, thisArg);\n        };\n        FilterStream.prototype._innerPredicate = function (predicate, self) {\n            var _this = this;\n            return function (value, i, o) {\n                return self.predicate(value, i, o) && predicate.call(_this, value, i, o);\n            };\n        };\n        return FilterStream;\n    }(wdFrp.BaseStream));\n    wdFrp.FilterStream = FilterStream;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var FilterWithStateStream = (function (_super) {\n        __extends(FilterWithStateStream, _super);\n        function FilterWithStateStream() {\n            _super.apply(this, arguments);\n        }\n        FilterWithStateStream.create = function (source, predicate, thisArg) {\n            var obj = new this(source, predicate, thisArg);\n            return obj;\n        };\n        FilterWithStateStream.prototype.createObserver = function (observer) {\n            return wdFrp.FilterWithStateObserver.create(observer, this.predicate, this);\n        };\n        FilterWithStateStream.prototype.createStreamForInternalFilter = function (source, innerPredicate, thisArg) {\n            return FilterWithStateStream.create(source, innerPredicate, thisArg);\n        };\n        return FilterWithStateStream;\n    }(wdFrp.FilterStream));\n    wdFrp.FilterWithStateStream = FilterWithStateStream;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    wdFrp.createStream = function (subscribeFunc) {\n        return wdFrp.AnonymousStream.create(subscribeFunc);\n    };\n    wdFrp.fromArray = function (array, scheduler) {\n        if (scheduler === void 0) { scheduler = wdFrp.Scheduler.create(); }\n        return wdFrp.FromArrayStream.create(array, scheduler);\n    };\n    wdFrp.fromPromise = function (promise, scheduler) {\n        if (scheduler === void 0) { scheduler = wdFrp.Scheduler.create(); }\n        return wdFrp.FromPromiseStream.create(promise, scheduler);\n    };\n    wdFrp.fromEventPattern = function (addHandler, removeHandler) {\n        return wdFrp.FromEventPatternStream.create(addHandler, removeHandler);\n    };\n    wdFrp.interval = function (interval, scheduler) {\n        if (scheduler === void 0) { scheduler = wdFrp.Scheduler.create(); }\n        return wdFrp.IntervalStream.create(interval, scheduler);\n    };\n    wdFrp.intervalRequest = function (scheduler) {\n        if (scheduler === void 0) { scheduler = wdFrp.Scheduler.create(); }\n        return wdFrp.IntervalRequestStream.create(scheduler);\n    };\n    wdFrp.timeout = function (time, scheduler) {\n        if (scheduler === void 0) { scheduler = wdFrp.Scheduler.create(); }\n        return wdFrp.TimeoutStream.create(time, scheduler);\n    };\n    wdFrp.empty = function () {\n        return wdFrp.createStream(function (observer) {\n            observer.completed();\n        });\n    };\n    wdFrp.callFunc = function (func, context) {\n        if (context === void 0) { context = wdFrp.root; }\n        return wdFrp.createStream(function (observer) {\n            try {\n                observer.next(func.call(context, null));\n            }\n            catch (e) {\n                observer.error(e);\n            }\n            observer.completed();\n        });\n    };\n    wdFrp.judge = function (condition, thenSource, elseSource) {\n        return condition() ? thenSource() : elseSource();\n    };\n    wdFrp.defer = function (buildStreamFunc) {\n        return wdFrp.DeferStream.create(buildStreamFunc);\n    };\n    wdFrp.just = function (returnValue) {\n        return wdFrp.createStream(function (observer) {\n            observer.next(returnValue);\n            observer.completed();\n        });\n    };\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    (function (FilterState) {\n        FilterState[FilterState[\"TRIGGER\"] = 0] = \"TRIGGER\";\n        FilterState[FilterState[\"ENTER\"] = 1] = \"ENTER\";\n        FilterState[FilterState[\"LEAVE\"] = 2] = \"LEAVE\";\n    })(wdFrp.FilterState || (wdFrp.FilterState = {}));\n    var FilterState = wdFrp.FilterState;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var defaultIsEqual = function (a, b) {\n        return a === b;\n    };\n    var Record = (function () {\n        function Record(time, value, actionType, comparer) {\n            this._time = null;\n            this._value = null;\n            this._actionType = null;\n            this._comparer = null;\n            this._time = time;\n            this._value = value;\n            this._actionType = actionType;\n            this._comparer = comparer || defaultIsEqual;\n        }\n        Record.create = function (time, value, actionType, comparer) {\n            var obj = new this(time, value, actionType, comparer);\n            return obj;\n        };\n        Object.defineProperty(Record.prototype, \"time\", {\n            get: function () {\n                return this._time;\n            },\n            set: function (time) {\n                this._time = time;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Object.defineProperty(Record.prototype, \"value\", {\n            get: function () {\n                return this._value;\n            },\n            set: function (value) {\n                this._value = value;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Object.defineProperty(Record.prototype, \"actionType\", {\n            get: function () {\n                return this._actionType;\n            },\n            set: function (actionType) {\n                this._actionType = actionType;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        Record.prototype.equals = function (other) {\n            return this._time === other.time && this._comparer(this._value, other.value);\n        };\n        return Record;\n    }());\n    wdFrp.Record = Record;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var MockObserver = (function (_super) {\n        __extends(MockObserver, _super);\n        function MockObserver(scheduler) {\n            _super.call(this, null, null, null);\n            this._messages = [];\n            this._scheduler = null;\n            this._scheduler = scheduler;\n        }\n        MockObserver.create = function (scheduler) {\n            var obj = new this(scheduler);\n            return obj;\n        };\n        Object.defineProperty(MockObserver.prototype, \"messages\", {\n            get: function () {\n                return this._messages;\n            },\n            set: function (messages) {\n                this._messages = messages;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        MockObserver.prototype.onNext = function (value) {\n            var record = null;\n            if (wdFrp.JudgeUtils.isDirectObject(value)) {\n                record = wdFrp.Record.create(this._scheduler.clock, value, wdFrp.ActionType.NEXT, function (a, b) {\n                    var result = true;\n                    for (var i in a) {\n                        if (a.hasOwnProperty(i)) {\n                            if (a[i] !== b[i]) {\n                                result = false;\n                                break;\n                            }\n                        }\n                    }\n                    return result;\n                });\n            }\n            else {\n                record = wdFrp.Record.create(this._scheduler.clock, value, wdFrp.ActionType.NEXT);\n            }\n            this._messages.push(record);\n        };\n        MockObserver.prototype.onError = function (error) {\n            this._messages.push(wdFrp.Record.create(this._scheduler.clock, error, wdFrp.ActionType.ERROR));\n        };\n        MockObserver.prototype.onCompleted = function () {\n            this._messages.push(wdFrp.Record.create(this._scheduler.clock, null, wdFrp.ActionType.COMPLETED));\n        };\n        MockObserver.prototype.dispose = function () {\n            _super.prototype.dispose.call(this);\n            this._scheduler.remove(this);\n        };\n        MockObserver.prototype.clone = function () {\n            var result = MockObserver.create(this._scheduler);\n            result.messages = this._messages;\n            return result;\n        };\n        return MockObserver;\n    }(wdFrp.Observer));\n    wdFrp.MockObserver = MockObserver;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    var MockPromise = (function () {\n        function MockPromise(scheduler, messages) {\n            this._messages = [];\n            this._scheduler = null;\n            this._scheduler = scheduler;\n            this._messages = messages;\n        }\n        MockPromise.create = function (scheduler, messages) {\n            var obj = new this(scheduler, messages);\n            return obj;\n        };\n        MockPromise.prototype.then = function (successCb, errorCb, observer) {\n            this._scheduler.setStreamMap(observer, this._messages);\n        };\n        return MockPromise;\n    }());\n    wdFrp.MockPromise = MockPromise;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var SUBSCRIBE_TIME = 200;\n    var DISPOSE_TIME = 1000;\n    var TestScheduler = (function (_super) {\n        __extends(TestScheduler, _super);\n        function TestScheduler(isReset) {\n            _super.call(this);\n            this._clock = null;\n            this._isReset = false;\n            this._isDisposed = false;\n            this._timerMap = wdCb.Hash.create();\n            this._streamMap = wdCb.Hash.create();\n            this._subscribedTime = null;\n            this._disposedTime = null;\n            this._observer = null;\n            this._isReset = isReset;\n        }\n        TestScheduler.next = function (tick, value) {\n            if (wdFrp.JudgeUtils.isDirectObject(value)) {\n                return wdFrp.Record.create(tick, value, wdFrp.ActionType.NEXT, function (a, b) {\n                    var result = true;\n                    for (var i in a) {\n                        if (a.hasOwnProperty(i)) {\n                            if (a[i] !== b[i]) {\n                                result = false;\n                                break;\n                            }\n                        }\n                    }\n                    return result;\n                });\n            }\n            else {\n                return wdFrp.Record.create(tick, value, wdFrp.ActionType.NEXT);\n            }\n        };\n        TestScheduler.error = function (tick, error) {\n            return wdFrp.Record.create(tick, error, wdFrp.ActionType.ERROR);\n        };\n        TestScheduler.completed = function (tick) {\n            return wdFrp.Record.create(tick, null, wdFrp.ActionType.COMPLETED);\n        };\n        TestScheduler.create = function (isReset) {\n            if (isReset === void 0) { isReset = false; }\n            var obj = new this(isReset);\n            return obj;\n        };\n        Object.defineProperty(TestScheduler.prototype, \"clock\", {\n            get: function () {\n                return this._clock;\n            },\n            set: function (clock) {\n                this._clock = clock;\n            },\n            enumerable: true,\n            configurable: true\n        });\n        TestScheduler.prototype.setStreamMap = function (observer, messages) {\n            var self = this;\n            messages.forEach(function (record) {\n                var func = null;\n                switch (record.actionType) {\n                    case wdFrp.ActionType.NEXT:\n                        func = function () {\n                            observer.next(record.value);\n                        };\n                        break;\n                    case wdFrp.ActionType.ERROR:\n                        func = function () {\n                            observer.error(record.value);\n                        };\n                        break;\n                    case wdFrp.ActionType.COMPLETED:\n                        func = function () {\n                            observer.completed();\n                        };\n                        break;\n                    default:\n                        wdCb.Log.error(true, wdCb.Log.info.FUNC_UNKNOW(\"actionType\"));\n                        break;\n                }\n                self._streamMap.addChild(String(record.time), func);\n            });\n        };\n        TestScheduler.prototype.remove = function (observer) {\n            this._isDisposed = true;\n        };\n        TestScheduler.prototype.publishRecursive = function (observer, initial, recursiveFunc) {\n            var self = this, next = null, completed = null;\n            this._setClock();\n            next = observer.next;\n            completed = observer.completed;\n            observer.next = function (value) {\n                next.call(observer, value);\n                self._tick(1);\n            };\n            observer.completed = function () {\n                completed.call(observer);\n                self._tick(1);\n            };\n            recursiveFunc(initial);\n        };\n        TestScheduler.prototype.publishInterval = function (observer, initial, interval, action) {\n            var COUNT = 10, messages = [];\n            this._setClock();\n            while (COUNT > 0 && !this._isDisposed) {\n                this._tick(interval);\n                messages.push(TestScheduler.next(this._clock, initial));\n                initial++;\n                COUNT--;\n            }\n            this.setStreamMap(observer, messages);\n            return NaN;\n        };\n        TestScheduler.prototype.publishIntervalRequest = function (observer, action) {\n            var COUNT = 10, messages = [], interval = 100, num = 0;\n            this._setClock();\n            while (COUNT > 0 && !this._isDisposed) {\n                this._tick(interval);\n                messages.push(TestScheduler.next(this._clock, num));\n                num++;\n                COUNT--;\n            }\n            this.setStreamMap(observer, messages);\n            return NaN;\n        };\n        TestScheduler.prototype.publishTimeout = function (observer, time, action) {\n            var messages = [];\n            this._setClock();\n            this._tick(time);\n            messages.push(TestScheduler.next(this._clock, time), TestScheduler.completed(this._clock + 1));\n            this.setStreamMap(observer, messages);\n            return NaN;\n        };\n        TestScheduler.prototype._setClock = function () {\n            if (this._isReset) {\n                this._clock = this._subscribedTime;\n            }\n        };\n        TestScheduler.prototype.startWithTime = function (create, subscribedTime, disposedTime) {\n            var observer = this.createObserver(), source, subscription, self = this;\n            this._subscribedTime = subscribedTime;\n            this._disposedTime = disposedTime;\n            this._clock = subscribedTime;\n            this._runAt(subscribedTime, function () {\n                source = create();\n                subscription = source.subscribe(observer);\n            });\n            this._runAt(disposedTime, function () {\n                subscription.dispose();\n                self._isDisposed = true;\n            });\n            this._observer = observer;\n            this.start();\n            return observer;\n        };\n        TestScheduler.prototype.startWithSubscribe = function (create, subscribedTime) {\n            if (subscribedTime === void 0) { subscribedTime = SUBSCRIBE_TIME; }\n            return this.startWithTime(create, subscribedTime, DISPOSE_TIME);\n        };\n        TestScheduler.prototype.startWithDispose = function (create, disposedTime) {\n            if (disposedTime === void 0) { disposedTime = DISPOSE_TIME; }\n            return this.startWithTime(create, SUBSCRIBE_TIME, disposedTime);\n        };\n        TestScheduler.prototype.publicAbsolute = function (time, handler) {\n            this._runAt(time, function () {\n                handler();\n            });\n        };\n        TestScheduler.prototype.start = function () {\n            var extremeNumArr = this._getMinAndMaxTime(), min = extremeNumArr[0], max = extremeNumArr[1], time = min;\n            while (time <= max) {\n                this._clock = time;\n                this._exec(time, this._timerMap);\n                this._clock = time;\n                this._runStream(time);\n                time++;\n                max = this._getMinAndMaxTime()[1];\n            }\n        };\n        TestScheduler.prototype.createStream = function (args) {\n            return wdFrp.TestStream.create(Array.prototype.slice.call(arguments, 0), this);\n        };\n        TestScheduler.prototype.createObserver = function () {\n            return wdFrp.MockObserver.create(this);\n        };\n        TestScheduler.prototype.createResolvedPromise = function (time, value) {\n            return wdFrp.MockPromise.create(this, [TestScheduler.next(time, value), TestScheduler.completed(time + 1)]);\n        };\n        TestScheduler.prototype.createRejectPromise = function (time, error) {\n            return wdFrp.MockPromise.create(this, [TestScheduler.error(time, error)]);\n        };\n        TestScheduler.prototype._getMinAndMaxTime = function () {\n            var timeArr = (this._timerMap.getKeys().addChildren(this._streamMap.getKeys()));\n            timeArr = timeArr.map(function (key) {\n                return Number(key);\n            }).toArray();\n            return [Math.min.apply(Math, timeArr), Math.max.apply(Math, timeArr)];\n        };\n        TestScheduler.prototype._exec = function (time, map) {\n            var handler = map.getChild(String(time));\n            if (handler) {\n                handler();\n            }\n        };\n        TestScheduler.prototype._runStream = function (time) {\n            var handler = this._streamMap.getChild(String(time));\n            if (handler) {\n                handler();\n            }\n        };\n        TestScheduler.prototype._runAt = function (time, callback) {\n            this._timerMap.addChild(String(time), callback);\n        };\n        TestScheduler.prototype._tick = function (time) {\n            this._clock += time;\n        };\n        return TestScheduler;\n    }(wdFrp.Scheduler));\n    wdFrp.TestScheduler = TestScheduler;\n})(wdFrp || (wdFrp = {}));\n\nvar wdFrp;\n(function (wdFrp) {\n    (function (ActionType) {\n        ActionType[ActionType[\"NEXT\"] = 0] = \"NEXT\";\n        ActionType[ActionType[\"ERROR\"] = 1] = \"ERROR\";\n        ActionType[ActionType[\"COMPLETED\"] = 2] = \"COMPLETED\";\n    })(wdFrp.ActionType || (wdFrp.ActionType = {}));\n    var ActionType = wdFrp.ActionType;\n})(wdFrp || (wdFrp = {}));\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar wdFrp;\n(function (wdFrp) {\n    var TestStream = (function (_super) {\n        __extends(TestStream, _super);\n        function TestStream(messages, scheduler) {\n            _super.call(this, null);\n            this.scheduler = null;\n            this._messages = null;\n            this._messages = messages;\n            this.scheduler = scheduler;\n        }\n        TestStream.create = function (messages, scheduler) {\n            var obj = new this(messages, scheduler);\n            return obj;\n        };\n        TestStream.prototype.subscribeCore = function (observer) {\n            this.scheduler.setStreamMap(observer, this._messages);\n            return wdFrp.SingleDisposable.create();\n        };\n        return TestStream;\n    }(wdFrp.BaseStream));\n    wdFrp.TestStream = TestStream;\n})(wdFrp || (wdFrp = {}));\n\nif (((typeof window != \"undefined\" && window.module) || (typeof module != \"undefined\")) && typeof module.exports != \"undefined\") {\n    module.exports = wdFrp;\n};\n"]}