webdetector/.cache/8e/4fbe69bf59045366d5cc45486bf6c7.json
2018-12-21 13:36:28 +01:00

1 line
51 KiB
JSON

{"id":"1YaG","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/windowWhen.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subject","loc":{"line":3,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subject.js"},{"name":"../util/tryCatch","loc":{"line":4,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/tryCatch.js"},{"name":"../util/errorObject","loc":{"line":5,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/errorObject.js"},{"name":"../OuterSubscriber","loc":{"line":6,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":7,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowWhen.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.windowWhen=c;var t=s(require(\"tslib\")),e=require(\"../Subject\"),i=require(\"../util/tryCatch\"),r=require(\"../util/errorObject\"),o=require(\"../OuterSubscriber\"),n=require(\"../util/subscribeToResult\");function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};r.get||r.set?Object.defineProperty(e,i,r):e[i]=t[i]}return e.default=t,e}function c(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},t}(),l=function(o){function s(t,e){var i=o.call(this,t)||this;return i.destination=t,i.closingSelector=e,i.openWindow(),i}return t.__extends(s,o),s.prototype.notifyNext=function(t,e,i,r,o){this.openWindow(o)},s.prototype.notifyError=function(t,e){this._error(t)},s.prototype.notifyComplete=function(t){this.openWindow(t)},s.prototype._next=function(t){this.window.next(t)},s.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},s.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},s.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},s.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var o=this.window;o&&o.complete();var s=this.window=new e.Subject;this.destination.next(s);var c=(0,i.tryCatch)(this.closingSelector)();if(c===r.errorObject){var u=r.errorObject.e;this.destination.error(u),this.window.error(u)}else this.add(this.closingNotification=(0,n.subscribeToResult)(this,c))},s}(o.OuterSubscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":87}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":93}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":95}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":97}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":105}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":115}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":125}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":139}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":141}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":149}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":169}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":179}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":204}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":234}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":236}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":244}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":273}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":282}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":284}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":287}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":290}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":295}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":306}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":313}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":315}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":319}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":321}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":324}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":327}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":333}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":335}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":339}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":343}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":348}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":350}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":353}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":360}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":370}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":385}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":390}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":392}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":395}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":396}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":400}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":409}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":425}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":432}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":457}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":464}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":489}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":491}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":494}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":499}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":504}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":506}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":510}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":517}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":532}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":534}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":536}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":539}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":541}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":544}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":546}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":549}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":556}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":558}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":566}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":568}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":56,"column":2},"generated":{"line":1,"column":570}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":56,"column":9},"generated":{"line":1,"column":579}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":56,"column":18},"generated":{"line":1,"column":581}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":1,"column":584}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":1,"column":591}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":57,"column":45},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":603}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":610}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":612}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":617}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":621}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":623}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":2},"generated":{"line":1,"column":628}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":2},"generated":{"line":1,"column":632}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":22},"generated":{"line":1,"column":634}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":22},"generated":{"line":1,"column":645}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":22},"generated":{"line":1,"column":654}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":37},"generated":{"line":1,"column":656}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":1,"column":659}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":1,"column":664}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":1,"column":680}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":68,"column":1},"generated":{"line":1,"column":682}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":11},"generated":{"line":1,"column":689}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":11},"generated":{"line":1,"column":691}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":18},"generated":{"line":1,"column":701}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":32},"generated":{"line":1,"column":706}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":32},"generated":{"line":1,"column":715}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":66,"column":49},"generated":{"line":1,"column":717}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":720}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":727}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":729}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":739}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":743}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":745}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":747}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":67,"column":3},"generated":{"line":1,"column":752}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":68,"column":1},"generated":{"line":1,"column":771}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":62,"column":22},"generated":{"line":1,"column":773}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":776}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":778}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":57},"generated":{"line":1,"column":787}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":790}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":799}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":81,"column":4},"generated":{"line":1,"column":801}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":1,"column":803}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":806}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":810}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":812}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":35},"generated":{"line":1,"column":814}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":819}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":824}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":62},"generated":{"line":1,"column":828}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":83,"column":3},"generated":{"line":1,"column":833}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":80,"column":22},"generated":{"line":1,"column":840}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":80,"column":22},"generated":{"line":1,"column":842}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":80,"column":22},"generated":{"line":1,"column":854}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":82,"column":4},"generated":{"line":1,"column":856}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":82,"column":9},"generated":{"line":1,"column":858}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":874}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":876}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":878}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":83,"column":3},"generated":{"line":1,"column":891}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":893}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":900}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":902}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":912}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":79,"column":24},"generated":{"line":1,"column":914}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":9},"generated":{"line":1,"column":917}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":9},"generated":{"line":1,"column":919}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":20},"generated":{"line":1,"column":929}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":940}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":949}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":951}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":953}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":955}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":88,"column":30},"generated":{"line":1,"column":957}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":960}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":965}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":976}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":16},"generated":{"line":1,"column":980}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":16},"generated":{"line":1,"column":982}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":1,"column":992}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":1,"column":1004}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":1,"column":1013}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":1,"column":1015}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":93,"column":3},"generated":{"line":1,"column":1018}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":93,"column":3},"generated":{"line":1,"column":1023}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":93,"column":3},"generated":{"line":1,"column":1030}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":96,"column":9},"generated":{"line":1,"column":1034}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":96,"column":9},"generated":{"line":1,"column":1036}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":96,"column":20},"generated":{"line":1,"column":1046}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":96,"column":30},"generated":{"line":1,"column":1061}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":96,"column":30},"generated":{"line":1,"column":1070}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":97,"column":3},"generated":{"line":1,"column":1073}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":97,"column":3},"generated":{"line":1,"column":1078}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":97,"column":3},"generated":{"line":1,"column":1089}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":100,"column":16},"generated":{"line":1,"column":1093}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":100,"column":16},"generated":{"line":1,"column":1095}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":100,"column":27},"generated":{"line":1,"column":1105}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":100,"column":28},"generated":{"line":1,"column":1111}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":100,"column":28},"generated":{"line":1,"column":1120}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":101,"column":3},"generated":{"line":1,"column":1123}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":101,"column":3},"generated":{"line":1,"column":1128}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":101,"column":3},"generated":{"line":1,"column":1135}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":101,"column":3},"generated":{"line":1,"column":1140}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":104,"column":16},"generated":{"line":1,"column":1144}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":104,"column":16},"generated":{"line":1,"column":1146}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":104,"column":27},"generated":{"line":1,"column":1156}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":104,"column":27},"generated":{"line":1,"column":1163}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":104,"column":27},"generated":{"line":1,"column":1172}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":105,"column":9},"generated":{"line":1,"column":1175}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":105,"column":9},"generated":{"line":1,"column":1180}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":105,"column":9},"generated":{"line":1,"column":1187}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":105,"column":21},"generated":{"line":1,"column":1193}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":106,"column":9},"generated":{"line":1,"column":1196}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":106,"column":9},"generated":{"line":1,"column":1201}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":106,"column":9},"generated":{"line":1,"column":1213}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":106,"column":9},"generated":{"line":1,"column":1219}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":107,"column":3},"generated":{"line":1,"column":1222}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":107,"column":3},"generated":{"line":1,"column":1227}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":110,"column":16},"generated":{"line":1,"column":1261}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":110,"column":16},"generated":{"line":1,"column":1263}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":110,"column":27},"generated":{"line":1,"column":1273}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":110,"column":27},"generated":{"line":1,"column":1283}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":111,"column":9},"generated":{"line":1,"column":1294}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":111,"column":9},"generated":{"line":1,"column":1299}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":111,"column":9},"generated":{"line":1,"column":1306}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":112,"column":9},"generated":{"line":1,"column":1317}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":112,"column":9},"generated":{"line":1,"column":1322}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":112,"column":9},"generated":{"line":1,"column":1334}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":113,"column":3},"generated":{"line":1,"column":1345}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":113,"column":3},"generated":{"line":1,"column":1350}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":1,"column":1384}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":1,"column":1386}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":1,"column":1396}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":116,"column":34},"generated":{"line":1,"column":1427}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":117,"column":6},"generated":{"line":1,"column":1438}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":117,"column":11},"generated":{"line":1,"column":1443}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":118,"column":5},"generated":{"line":1,"column":1464}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":118,"column":5},"generated":{"line":1,"column":1469}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":118,"column":5},"generated":{"line":1,"column":1489}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":121,"column":21},"generated":{"line":1,"column":1504}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":121,"column":21},"generated":{"line":1,"column":1506}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":121,"column":21},"generated":{"line":1,"column":1516}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":121,"column":21},"generated":{"line":1,"column":1527}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":121,"column":61},"generated":{"line":1,"column":1536}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":122,"column":18},"generated":{"line":1,"column":1544}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":122,"column":8},"generated":{"line":1,"column":1548}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":123,"column":6},"generated":{"line":1,"column":1552}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":123,"column":17},"generated":{"line":1,"column":1554}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1560}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":127,"column":10},"generated":{"line":1,"column":1564}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":127,"column":10},"generated":{"line":1,"column":1569}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":127,"column":20},"generated":{"line":1,"column":1576}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":128,"column":8},"generated":{"line":1,"column":1579}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":128,"column":8},"generated":{"line":1,"column":1581}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":130,"column":5},"generated":{"line":1,"column":1596}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":130,"column":5},"generated":{"line":1,"column":1600}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":130,"column":5},"generated":{"line":1,"column":1602}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":130,"column":5},"generated":{"line":1,"column":1607}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":132,"column":10},"generated":{"line":1,"column":1614}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":133,"column":8},"generated":{"line":1,"column":1617}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":133,"column":9},"generated":{"line":1,"column":1619}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":8},"generated":{"line":1,"column":1630}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":8},"generated":{"line":1,"column":1634}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":8},"generated":{"line":1,"column":1636}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":8},"generated":{"line":1,"column":1641}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":28},"generated":{"line":1,"column":1648}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":28},"generated":{"line":1,"column":1652}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":136,"column":28},"generated":{"line":1,"column":1654}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":137,"column":6},"generated":{"line":1,"column":1662}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":137,"column":6},"generated":{"line":1,"column":1667}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":137,"column":18},"generated":{"line":1,"column":1679}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":137,"column":18},"generated":{"line":1,"column":1684}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":6},"generated":{"line":1,"column":1687}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":6},"generated":{"line":1,"column":1691}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":23},"generated":{"line":1,"column":1694}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":33},"generated":{"line":1,"column":1696}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":33},"generated":{"line":1,"column":1698}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":33},"generated":{"line":1,"column":1708}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":34},"generated":{"line":1,"column":1713}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":138,"column":23},"generated":{"line":1,"column":1729}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":139,"column":6},"generated":{"line":1,"column":1732}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":139,"column":6},"generated":{"line":1,"column":1735}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":139,"column":24},"generated":{"line":1,"column":1739}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":139,"column":29},"generated":{"line":1,"column":1741}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":139,"column":29},"generated":{"line":1,"column":1753}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":5},"generated":{"line":1,"column":1754}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":5},"generated":{"line":1,"column":1758}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":5},"generated":{"line":1,"column":1760}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":5},"generated":{"line":1,"column":1762}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":5},"generated":{"line":1,"column":1774}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":11},"generated":{"line":1,"column":1776}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":11},"generated":{"line":1,"column":1781}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":11},"generated":{"line":1,"column":1793}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":140,"column":11},"generated":{"line":1,"column":1799}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":141,"column":11},"generated":{"line":1,"column":1802}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":141,"column":11},"generated":{"line":1,"column":1807}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":141,"column":15},"generated":{"line":1,"column":1814}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":141,"column":20},"generated":{"line":1,"column":1820}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":0},"generated":{"line":1,"column":1828}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":0},"generated":{"line":1,"column":1833}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":0},"generated":{"line":1,"column":1837}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":0},"generated":{"line":1,"column":1842}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":1},"generated":{"line":1,"column":1863}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":1},"generated":{"line":1,"column":1865}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":1},"generated":{"line":1,"column":1867}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":1},"generated":{"line":1,"column":1886}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":144,"column":1},"generated":{"line":1,"column":1891}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":1896}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":1898}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":1899}},{"source":"../../../src/internal/operators/windowWhen.ts","name":null,"original":{"line":75,"column":34},"generated":{"line":1,"column":1901}}],"sources":{"../../../src/internal/operators/windowWhen.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../types';\n\n/**\n * Branch out the source Observable values as a nested Observable using a\n * factory function of closing Observables to determine when to start a new\n * window.\n *\n * <span class=\"informal\">It's like {@link bufferWhen}, but emits a nested\n * Observable instead of an array.</span>\n *\n * ![](windowWhen.png)\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping windows.\n * It emits the current window and opens a new one whenever the Observable\n * produced by the specified `closingSelector` function emits an item. The first\n * window is opened immediately when subscribing to the output Observable.\n *\n * ## Example\n * Emit only the first two clicks events in every window of [1-5] random seconds\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(\n * windowWhen(() => interval(1000 + Math.random() * 4000)),\n * map(win => win.pipe(take(2))), // each window has at most 2 emissions\n * mergeAll(), // flatten the Observable-of-Observables\n * );\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link bufferWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals (on either `next` or\n * `complete`) when to close the previous window and start a new one.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowWhen\n * @owner Observable\n */\nexport function windowWhen<T>(closingSelector: () => Observable<any>): OperatorFunction<T, Observable<T>> {\n return function windowWhenOperatorFunction(source: Observable<T>) {\n return source.lift(new WindowOperator<T>(closingSelector));\n };\n}\n\nclass WindowOperator<T> implements Operator<T, Observable<T>> {\n constructor(private closingSelector: () => Observable<any>) {\n }\n\n call(subscriber: Subscriber<Observable<T>>, source: any): any {\n return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowSubscriber<T> extends OuterSubscriber<T, any> {\n private window: Subject<T>;\n private closingNotification: Subscription;\n\n constructor(protected destination: Subscriber<Observable<T>>,\n private closingSelector: () => Observable<any>) {\n super(destination);\n this.openWindow();\n }\n\n notifyNext(outerValue: T, innerValue: any,\n outerIndex: number, innerIndex: number,\n innerSub: InnerSubscriber<T, any>): void {\n this.openWindow(innerSub);\n }\n\n notifyError(error: any, innerSub: InnerSubscriber<T, any>): void {\n this._error(error);\n }\n\n notifyComplete(innerSub: InnerSubscriber<T, any>): void {\n this.openWindow(innerSub);\n }\n\n protected _next(value: T): void {\n this.window.next(value);\n }\n\n protected _error(err: any): void {\n this.window.error(err);\n this.destination.error(err);\n this.unsubscribeClosingNotification();\n }\n\n protected _complete(): void {\n this.window.complete();\n this.destination.complete();\n this.unsubscribeClosingNotification();\n }\n\n private unsubscribeClosingNotification(): void {\n if (this.closingNotification) {\n this.closingNotification.unsubscribe();\n }\n }\n\n private openWindow(innerSub: InnerSubscriber<T, any> = null): void {\n if (innerSub) {\n this.remove(innerSub);\n innerSub.unsubscribe();\n }\n\n const prevWindow = this.window;\n if (prevWindow) {\n prevWindow.complete();\n }\n\n const window = this.window = new Subject<T>();\n this.destination.next(window);\n\n const closingNotifier = tryCatch(this.closingSelector)();\n if (closingNotifier === errorObject) {\n const err = errorObject.e;\n this.destination.error(err);\n this.window.error(err);\n } else {\n this.add(this.closingNotification = subscribeToResult(this, closingNotifier));\n }\n }\n}\n"},"lineCount":null}},"hash":"b6c161751c87aa495cfd27894c824e6b","cacheData":{"env":{}}}