1 line
32 KiB
JSON
1 line
32 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/operators/exhaust.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/exhaust.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/exhaust.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"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/exhaust.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../OuterSubscriber","loc":{"line":3,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/exhaust.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":4,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/exhaust.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.exhaust = exhaust;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _OuterSubscriber = require(\"../OuterSubscriber\");\n\nvar _subscribeToResult = require(\"../util/subscribeToResult\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\n/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nfunction exhaust() {\n return function (source) {\n return source.lift(new SwitchFirstOperator());\n };\n}\n\nvar SwitchFirstOperator =\n/*@__PURE__*/\nfunction () {\n function SwitchFirstOperator() {}\n\n SwitchFirstOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SwitchFirstSubscriber(subscriber));\n };\n\n return SwitchFirstOperator;\n}();\n\nvar SwitchFirstSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(SwitchFirstSubscriber, _super);\n\n function SwitchFirstSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n\n _this.hasCompleted = false;\n _this.hasSubscription = false;\n return _this;\n }\n\n SwitchFirstSubscriber.prototype._next = function (value) {\n if (!this.hasSubscription) {\n this.hasSubscription = true;\n this.add((0, _subscribeToResult.subscribeToResult)(this, value));\n }\n };\n\n SwitchFirstSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n };\n\n SwitchFirstSubscriber.prototype.notifyComplete = function (innerSub) {\n this.remove(innerSub);\n this.hasSubscription = false;\n\n if (this.hasCompleted) {\n this.destination.complete();\n }\n };\n\n return SwitchFirstSubscriber;\n}(_OuterSubscriber.OuterSubscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":53,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":54,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":54,"column":9},"generated":{"line":17,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":54,"column":2},"generated":{"line":17,"column":16}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":54,"column":10},"generated":{"line":17,"column":19}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":18,"column":19}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":18,"column":25}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":18,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":17}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":18}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":46}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":48}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":19,"column":49}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":55,"column":1},"generated":{"line":20,"column":3}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":23,"column":4}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":23,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":25,"column":12}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":0},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":26,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":0},"generated":{"line":26,"column":30}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":26,"column":33}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":58,"column":2},"generated":{"line":26,"column":34}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":18},"generated":{"line":28,"column":21}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":18},"generated":{"line":28,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":28},"generated":{"line":28,"column":32}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":32},"generated":{"line":28,"column":39}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":32},"generated":{"line":28,"column":49}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":32},"generated":{"line":28,"column":59}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":54},"generated":{"line":28,"column":61}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":32},"generated":{"line":28,"column":67}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":59,"column":67},"generated":{"line":28,"column":69}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":17}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":18}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":28}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":32}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":53}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":54}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":64}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":65}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":60,"column":3},"generated":{"line":29,"column":66}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":0},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":32,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":32,"column":28}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":0},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":57,"column":0},"generated":{"line":33,"column":1}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":35,"column":4}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":35,"column":25}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":60},"generated":{"line":37,"column":10}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":37,"column":16}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":60},"generated":{"line":37,"column":18}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":2}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":10}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":19}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":20}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":41}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":14},"generated":{"line":38,"column":43}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":49}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":40,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":73,"column":4},"generated":{"line":40,"column":33}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":73,"column":10},"generated":{"line":40,"column":46}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":8}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":13}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":16}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":41,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":41,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":34},"generated":{"line":41,"column":28}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":32}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":40},"generated":{"line":41,"column":34}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":45}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":40},"generated":{"line":41,"column":50}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":41,"column":54}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":4}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":10}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":25},"generated":{"line":43,"column":25}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":70,"column":10},"generated":{"line":43,"column":30}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":45,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":45,"column":16}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":76,"column":12},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":14},"generated":{"line":48,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":14},"generated":{"line":48,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":31},"generated":{"line":48,"column":34}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":31},"generated":{"line":48,"column":42}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":31},"generated":{"line":48,"column":52}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":31},"generated":{"line":48,"column":57}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":77,"column":31},"generated":{"line":48,"column":59}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":78,"column":6},"generated":{"line":49,"column":8}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":78,"column":6},"generated":{"line":49,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":78,"column":11},"generated":{"line":49,"column":14}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":78,"column":29},"generated":{"line":49,"column":31}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":79,"column":6},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":79,"column":11},"generated":{"line":50,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":79,"column":6},"generated":{"line":50,"column":26}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":79,"column":15},"generated":{"line":50,"column":29}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":79,"column":6},"generated":{"line":50,"column":33}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":14}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":15}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":57}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":61}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":63}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":68}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":80,"column":5},"generated":{"line":51,"column":69}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":52,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":83,"column":12},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":84,"column":21},"generated":{"line":55,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":84,"column":21},"generated":{"line":55,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":84,"column":29},"generated":{"line":55,"column":34}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":84,"column":29},"generated":{"line":55,"column":46}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":84,"column":29},"generated":{"line":55,"column":58}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":85,"column":4},"generated":{"line":56,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":85,"column":9},"generated":{"line":56,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":85,"column":4},"generated":{"line":56,"column":21}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":85,"column":14},"generated":{"line":56,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":85,"column":4},"generated":{"line":56,"column":28}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":86,"column":6},"generated":{"line":58,"column":8}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":86,"column":6},"generated":{"line":58,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":86,"column":11},"generated":{"line":58,"column":14}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":86,"column":23},"generated":{"line":58,"column":31}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":87,"column":5},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":87,"column":5},"generated":{"line":59,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":87,"column":5},"generated":{"line":59,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":87,"column":5},"generated":{"line":59,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":87,"column":5},"generated":{"line":59,"column":31}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":88,"column":3},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":90,"column":2},"generated":{"line":61,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":16},"generated":{"line":63,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":16},"generated":{"line":63,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":26},"generated":{"line":63,"column":34}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":26},"generated":{"line":63,"column":51}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":26},"generated":{"line":63,"column":61}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":26},"generated":{"line":63,"column":69}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":91,"column":26},"generated":{"line":63,"column":71}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":92,"column":4},"generated":{"line":64,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":92,"column":9},"generated":{"line":64,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":92,"column":4},"generated":{"line":64,"column":15}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":92,"column":9},"generated":{"line":64,"column":16}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":92,"column":4},"generated":{"line":64,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":93,"column":4},"generated":{"line":65,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":93,"column":8},"generated":{"line":65,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":93,"column":4},"generated":{"line":65,"column":24}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":93,"column":27},"generated":{"line":65,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":93,"column":4},"generated":{"line":65,"column":32}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":94,"column":6},"generated":{"line":67,"column":8}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":94,"column":11},"generated":{"line":67,"column":13}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":94,"column":23},"generated":{"line":67,"column":27}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":95,"column":5},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":95,"column":5},"generated":{"line":68,"column":11}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":95,"column":5},"generated":{"line":68,"column":22}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":95,"column":5},"generated":{"line":68,"column":23}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":95,"column":5},"generated":{"line":68,"column":31}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":97,"column":0},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":72,"column":0}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":72,"column":9}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":72,"column":30}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":73,"column":1}},{"source":"../../../src/internal/operators/exhaust.ts","name":null,"original":{"line":68,"column":39},"generated":{"line":73,"column":34}}],"sources":{"../../../src/internal/operators/exhaust.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { ObservableInput, OperatorFunction, TeardownLogic } from '../types';\n\nexport function exhaust<T>(): OperatorFunction<ObservableInput<T>, T>;\nexport function exhaust<R>(): OperatorFunction<any, R>;\n\n/**\n * Converts a higher-order Observable into a first-order Observable by dropping\n * inner Observables while the previous inner Observable has not yet completed.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by dropping the\n * next inner Observables while the current inner is still executing.</span>\n *\n * ![](exhaust.png)\n *\n * `exhaust` subscribes to an Observable that emits Observables, also known as a\n * higher-order Observable. Each time it observes one of these emitted inner\n * Observables, the output Observable begins emitting the items emitted by that\n * inner Observable. So far, it behaves like {@link mergeAll}. However,\n * `exhaust` ignores every new inner Observable if the previous Observable has\n * not yet completed. Once that one completes, it will accept and flatten the\n * next inner Observable and repeat this process.\n *\n * ## Example\n * Run a finite timer for each click, only if there is no currently active timer\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const higherOrder = clicks.pipe(\n * map((ev) => interval(1000).pipe(take(5))),\n * );\n * const result = higherOrder.pipe(exhaust());\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link mergeAll}\n * @see {@link exhaustMap}\n * @see {@link zipAll}\n *\n * @return {Observable} An Observable that takes a source of Observables and propagates the first observable\n * exclusively until it completes before subscribing to the next.\n * @method exhaust\n * @owner Observable\n */\nexport function exhaust<T>(): OperatorFunction<any, T> {\n return (source: Observable<T>) => source.lift(new SwitchFirstOperator<T>());\n}\n\nclass SwitchFirstOperator<T> implements Operator<T, T> {\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n return source.subscribe(new SwitchFirstSubscriber(subscriber));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SwitchFirstSubscriber<T> extends OuterSubscriber<T, T> {\n private hasCompleted: boolean = false;\n private hasSubscription: boolean = false;\n\n constructor(destination: Subscriber<T>) {\n super(destination);\n }\n\n protected _next(value: T): void {\n if (!this.hasSubscription) {\n this.hasSubscription = true;\n this.add(subscribeToResult(this, value));\n }\n }\n\n protected _complete(): void {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n }\n\n notifyComplete(innerSub: Subscription): void {\n this.remove(innerSub);\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n }\n}\n"},"lineCount":null}},"hash":"c56b06d0bf964b2a4b1874b5e2a507e1","cacheData":{"env":{}}} |