webdetector/.cache/f5/463256d0e855af38d86341bc09c178.json
2018-12-21 13:36:28 +01:00

1 line
30 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/defaultIfEmpty.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/defaultIfEmpty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subscriber","loc":{"line":3,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.defaultIfEmpty = defaultIfEmpty;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\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,_Subscriber PURE_IMPORTS_END */\nfunction defaultIfEmpty(defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = null;\n }\n\n return function (source) {\n return source.lift(new DefaultIfEmptyOperator(defaultValue));\n };\n}\n\nvar DefaultIfEmptyOperator =\n/*@__PURE__*/\nfunction () {\n function DefaultIfEmptyOperator(defaultValue) {\n this.defaultValue = defaultValue;\n }\n\n DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n };\n\n return DefaultIfEmptyOperator;\n}();\n\nvar DefaultIfEmptySubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(DefaultIfEmptySubscriber, _super);\n\n function DefaultIfEmptySubscriber(destination, defaultValue) {\n var _this = _super.call(this, destination) || this;\n\n _this.defaultValue = defaultValue;\n _this.isEmpty = true;\n return _this;\n }\n\n DefaultIfEmptySubscriber.prototype._next = function (value) {\n this.isEmpty = false;\n this.destination.next(value);\n };\n\n DefaultIfEmptySubscriber.prototype._complete = function () {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n\n this.destination.complete();\n };\n\n return DefaultIfEmptySubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":23}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":24}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":36}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":44,"column":37},"generated":{"line":15,"column":38}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":2},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":2},"generated":{"line":16,"column":6}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":9},"generated":{"line":16,"column":18}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":10},"generated":{"line":16,"column":23}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":31},"generated":{"line":16,"column":28}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":2},"generated":{"line":16,"column":29}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":45,"column":36},"generated":{"line":16,"column":31}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":46,"column":1},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":46,"column":1},"generated":{"line":17,"column":4}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":46,"column":1},"generated":{"line":17,"column":16}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":46,"column":1},"generated":{"line":17,"column":19}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":46,"column":1},"generated":{"line":17,"column":23}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":48,"column":0},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":20,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":20,"column":19}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":20,"column":25}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":20,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":21,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":21,"column":17}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":21,"column":18}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":21,"column":22}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":21,"column":23}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":21,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":21,"column":49}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":21,"column":50}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":21,"column":62}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":22},"generated":{"line":21,"column":63}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":21,"column":64}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":37},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":22,"column":3}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":2},"generated":{"line":25,"column":4}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":3},"generated":{"line":25,"column":26}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":3},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":3},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":3},"generated":{"line":27,"column":12}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":33}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":34}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":46}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":28,"column":48}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":29,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":29,"column":21}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":54,"column":18},"generated":{"line":29,"column":24}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":29,"column":36}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":55,"column":3},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":2}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":24}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":25}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":34}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":35}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":32,"column":39}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":42}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":52}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":62}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":64}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":70}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":32,"column":72}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":17}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":18}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":28}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":32}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":56}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":57}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":67}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":69}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":74}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":86}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":87}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":33,"column":88}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":0},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":34,"column":3}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":36,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":36,"column":31}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":51,"column":3},"generated":{"line":37,"column":1}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":39,"column":28}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":10},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":22},"generated":{"line":41,"column":10}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":10},"generated":{"line":41,"column":16}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":41,"column":18}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":66,"column":54},"generated":{"line":42,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":66,"column":54},"generated":{"line":42,"column":10}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":66,"column":54},"generated":{"line":42,"column":20}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":66,"column":69},"generated":{"line":42,"column":46}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":64,"column":10},"generated":{"line":44,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":64,"column":34},"generated":{"line":44,"column":36}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":64,"column":34},"generated":{"line":44,"column":49}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":64,"column":34},"generated":{"line":44,"column":63}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":4}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":10}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":22}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":25}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":47,"column":37}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":4}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":10}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":17}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":20}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":70,"column":12},"generated":{"line":48,"column":24}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":71,"column":4},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":71,"column":9},"generated":{"line":49,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":71,"column":4},"generated":{"line":49,"column":16}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":52,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":52,"column":2}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":26}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":52,"column":36}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":37}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":52,"column":42}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":45}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":55}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":60}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":3},"generated":{"line":52,"column":62}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":75,"column":12},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":75,"column":12},"generated":{"line":53,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":75,"column":12},"generated":{"line":53,"column":16}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":75,"column":12},"generated":{"line":53,"column":19}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":75,"column":12},"generated":{"line":53,"column":24}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":4},"generated":{"line":54,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":8},"generated":{"line":54,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":4},"generated":{"line":54,"column":20}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":20},"generated":{"line":54,"column":21}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":4},"generated":{"line":54,"column":25}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":22},"generated":{"line":54,"column":26}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":76,"column":4},"generated":{"line":54,"column":31}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":55,"column":3}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":78,"column":5},"generated":{"line":57,"column":26}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":78,"column":5},"generated":{"line":57,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":78,"column":5},"generated":{"line":57,"column":37}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":78,"column":5},"generated":{"line":57,"column":49}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":78,"column":5},"generated":{"line":57,"column":61}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":79,"column":4},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":79,"column":8},"generated":{"line":58,"column":8}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":79,"column":9},"generated":{"line":58,"column":13}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":79,"column":4},"generated":{"line":58,"column":20}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":79,"column":21},"generated":{"line":58,"column":22}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":11}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":22}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":23}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":27}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":28}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":33}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":80,"column":3},"generated":{"line":59,"column":45}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":81,"column":0},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":55},"generated":{"line":62,"column":9}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":62,"column":20}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":81,"column":1},"generated":{"line":62,"column":21}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":63,"column":45},"generated":{"line":62,"column":29}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":10},"generated":{"line":66,"column":1}},{"source":"../../../src/internal/operators/defaultIfEmpty.ts","name":null,"original":{"line":67,"column":10},"generated":{"line":66,"column":24}}],"sources":{"../../../src/internal/operators/defaultIfEmpty.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function defaultIfEmpty<T>(defaultValue?: T): MonoTypeOperatorFunction<T>;\nexport function defaultIfEmpty<T, R>(defaultValue?: R): OperatorFunction<T, T | R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * ![](defaultIfEmpty.png)\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * ## Example\n * If no clicks happen in 5 seconds, then emit \"no clicks\"\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000)));\n * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks'));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param {any} [defaultValue=null] The default value used if the source\n * Observable is empty.\n * @return {Observable} An Observable that emits either the specified\n * `defaultValue` if the source Observable emits no items, or the values emitted\n * by the source Observable.\n * @method defaultIfEmpty\n * @owner Observable\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R = null): OperatorFunction<T, T | R> {\n return (source: Observable<T>) => source.lift(new DefaultIfEmptyOperator(defaultValue)) as Observable<T | R>;\n}\n\nclass DefaultIfEmptyOperator<T, R> implements Operator<T, T | R> {\n\n constructor(private defaultValue: R) {\n }\n\n call(subscriber: Subscriber<T | R>, source: any): any {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DefaultIfEmptySubscriber<T, R> extends Subscriber<T> {\n private isEmpty: boolean = true;\n\n constructor(destination: Subscriber<T | R>, private defaultValue: R) {\n super(destination);\n }\n\n protected _next(value: T): void {\n this.isEmpty = false;\n this.destination.next(value);\n }\n\n protected _complete(): void {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n }\n}\n"},"lineCount":null}},"hash":"c726475549ae08ac0630afdb38eae1d7","cacheData":{"env":{}}}