1 line
31 KiB
JSON
1 line
31 KiB
JSON
{"id":"3HKz","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/filter.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/filter.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/filter.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/filter.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.filter=i;var t=r(require(\"tslib\")),e=require(\"../Subscriber\");function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e.default=t,e}function i(t,e){return function(r){return r.lift(new n(t,e))}}var n=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))},t}(),o=function(e){function r(t,r,i){var n=e.call(this,t)||this;return n.predicate=r,n.thisArg=i,n.count=0,n}return t.__extends(r,e),r.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)},r}(e.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":83}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":85}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":93}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":101}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":111}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":113}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":55,"column":0},"generated":{"line":1,"column":121}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":138}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":147}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":149}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":152}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":155}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":160}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":178}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":180}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":186}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":189}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":192}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":198}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":200}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":204}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":208}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":213}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":215}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":225}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":235}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":250}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":255}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":260}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":265}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":267}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":274}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":290}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":297}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":322}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":329}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":354}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":356}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":359}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":362}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":364}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":369}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":371}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":375}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":382}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":397}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":399}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":401}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":406}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":409}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":411}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":414}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":421}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":423}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":57,"column":2},"generated":{"line":1,"column":435}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":57,"column":9},"generated":{"line":1,"column":444}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":57,"column":18},"generated":{"line":1,"column":446}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":57,"column":18},"generated":{"line":1,"column":448}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":451}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":1,"column":458}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":58,"column":27},"generated":{"line":1,"column":467}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":470}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":477}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":479}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":484}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":488}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":490}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":59,"column":4},"generated":{"line":1,"column":492}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":1,"column":501}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":22},"generated":{"line":1,"column":503}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":22},"generated":{"line":1,"column":514}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":22},"generated":{"line":1,"column":523}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":22},"generated":{"line":1,"column":525}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":69},"generated":{"line":1,"column":527}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":64,"column":22},"generated":{"line":1,"column":530}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":64,"column":22},"generated":{"line":1,"column":535}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":64,"column":22},"generated":{"line":1,"column":545}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":65,"column":3},"generated":{"line":1,"column":547}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":65,"column":3},"generated":{"line":1,"column":552}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":65,"column":3},"generated":{"line":1,"column":560}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":70,"column":1},"generated":{"line":1,"column":562}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":1,"column":569}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":1,"column":571}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":18},"generated":{"line":1,"column":581}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":32},"generated":{"line":1,"column":586}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":32},"generated":{"line":1,"column":595}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":68,"column":49},"generated":{"line":1,"column":597}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":607}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":609}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":619}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":623}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":625}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":627}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":632}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":642}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":1,"column":647}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":70,"column":1},"generated":{"line":1,"column":658}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":63,"column":22},"generated":{"line":1,"column":660}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":663}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":665}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":47},"generated":{"line":1,"column":674}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":2},"generated":{"line":1,"column":677}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":2},"generated":{"line":1,"column":686}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":84,"column":4},"generated":{"line":1,"column":688}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":84,"column":10},"generated":{"line":1,"column":690}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":84,"column":22},"generated":{"line":1,"column":692}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":695}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":699}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":701}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":703}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":22},"generated":{"line":1,"column":708}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":69},"generated":{"line":1,"column":713}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":82,"column":69},"generated":{"line":1,"column":717}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":85,"column":3},"generated":{"line":1,"column":722}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":83,"column":22},"generated":{"line":1,"column":729}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":83,"column":22},"generated":{"line":1,"column":731}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":83,"column":22},"generated":{"line":1,"column":741}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":743}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":79,"column":2},"generated":{"line":1,"column":745}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":79,"column":20},"generated":{"line":1,"column":753}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":755}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":757}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":763}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":85,"column":3},"generated":{"line":1,"column":765}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":767}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":2},"generated":{"line":1,"column":774}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":2},"generated":{"line":1,"column":776}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":2},"generated":{"line":1,"column":786}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":81,"column":14},"generated":{"line":1,"column":788}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":1,"column":791}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":1,"column":793}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":1,"column":803}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":1,"column":809}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":90,"column":20},"generated":{"line":1,"column":818}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":91,"column":8},"generated":{"line":1,"column":821}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":91,"column":8},"generated":{"line":1,"column":825}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":92,"column":6},"generated":{"line":1,"column":827}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":831}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":833}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":838}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":848}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":853}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":858}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":866}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":868}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":1,"column":873}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":94,"column":6},"generated":{"line":1,"column":882}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":94,"column":6},"generated":{"line":1,"column":888}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":96,"column":5},"generated":{"line":1,"column":891}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":95,"column":6},"generated":{"line":1,"column":903}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":95,"column":6},"generated":{"line":1,"column":908}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":95,"column":13},"generated":{"line":1,"column":920}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":95,"column":13},"generated":{"line":1,"column":926}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":98,"column":6},"generated":{"line":1,"column":929}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":99,"column":5},"generated":{"line":1,"column":932}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":99,"column":5},"generated":{"line":1,"column":937}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":99,"column":5},"generated":{"line":1,"column":949}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":99,"column":5},"generated":{"line":1,"column":954}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":958}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":960}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":961}},{"source":"../../../src/internal/operators/filter.ts","name":null,"original":{"line":77,"column":34},"generated":{"line":1,"column":963}}],"sources":{"../../../src/internal/operators/filter.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OperatorFunction, MonoTypeOperatorFunction, TeardownLogic } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S,\n thisArg?: any): OperatorFunction<T, S>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean,\n thisArg?: any): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * ![](filter.png)\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * ## Example\n * Emit only click events whose target was a DIV element\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const clicksOnDivs = clicks.pipe(filter(ev => ev.target.tagName === 'DIV'));\n * clicksOnDivs.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of values from the source that were\n * allowed by the `predicate` function.\n * @method filter\n * @owner Observable\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean,\n thisArg?: any): MonoTypeOperatorFunction<T> {\n return function filterOperatorFunction(source: Observable<T>): Observable<T> {\n return source.lift(new FilterOperator(predicate, thisArg));\n };\n}\n\nclass FilterOperator<T> implements Operator<T, T> {\n constructor(private predicate: (value: T, index: number) => boolean,\n private thisArg?: any) {\n }\n\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass FilterSubscriber<T> extends Subscriber<T> {\n\n count: number = 0;\n\n constructor(destination: Subscriber<T>,\n private predicate: (value: T, index: number) => boolean,\n private thisArg: any) {\n super(destination);\n }\n\n // the try catch block below is left specifically for\n // optimization and perf reasons. a tryCatcher is not necessary here.\n protected _next(value: T) {\n let result: any;\n try {\n result = this.predicate.call(this.thisArg, value, this.count++);\n } catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.destination.next(value);\n }\n }\n}\n"},"lineCount":null}},"hash":"664a7631fc2dff2624a0884aefab5042","cacheData":{"env":{}}} |