1 line
40 KiB
JSON
1 line
40 KiB
JSON
{"id":"4U78","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/scan.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/scan.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/scan.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/scan.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.scan=i;var e=r(require(\"tslib\")),t=require(\"../Subscriber\");function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};i.get||i.set?Object.defineProperty(t,r,i):t[r]=e[r]}return t.default=e,t}function i(e,t){var r=!1;return arguments.length>=2&&(r=!0),function(i){return i.lift(new n(e,t,r))}}var n=function(){function e(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.accumulator,this.seed,this.hasSeed))},e}(),s=function(t){function r(e,r,i,n){var s=t.call(this,e)||this;return s.accumulator=r,s._seed=i,s.hasSeed=n,s.index=0,s}return e.__extends(r,t),Object.defineProperty(r.prototype,\"seed\",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),r.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},r.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)},r}(t.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":81}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":83}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":87}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":99}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":52,"column":0},"generated":{"line":1,"column":109}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":52,"column":0},"generated":{"line":1,"column":111}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":52,"column":0},"generated":{"line":1,"column":119}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":136}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":147}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":150}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":153}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":156}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":169}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":176}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":178}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":187}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":190}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":196}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":198}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":206}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":211}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":213}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":216}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":223}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":233}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":248}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":253}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":255}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":258}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":259}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":263}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":265}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":272}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":288}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":295}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":320}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":327}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":352}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":354}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":357}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":360}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":362}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":367}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":369}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":373}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":380}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":395}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":397}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":399}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":407}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":409}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":412}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":419}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":421}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":429}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":53,"column":2},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":53,"column":13},"generated":{"line":1,"column":442}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":53,"column":16},"generated":{"line":1,"column":444}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":53,"column":22},"generated":{"line":1,"column":446}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":59,"column":6},"generated":{"line":1,"column":449}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":59,"column":6},"generated":{"line":1,"column":453}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":59,"column":16},"generated":{"line":1,"column":456}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":64,"column":4},"generated":{"line":1,"column":458}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":60,"column":4},"generated":{"line":1,"column":465}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":60,"column":14},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":60,"column":19},"generated":{"line":1,"column":483}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":61,"column":3},"generated":{"line":1,"column":487}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":61,"column":3},"generated":{"line":1,"column":490}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":64,"column":4},"generated":{"line":1,"column":493}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":64,"column":27},"generated":{"line":1,"column":502}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":505}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":512}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":514}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":519}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":523}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":525}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":527}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":1,"column":529}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":534}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":538}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":1,"column":540}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":105},"generated":{"line":1,"column":551}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":105},"generated":{"line":1,"column":560}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":105},"generated":{"line":1,"column":562}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":105},"generated":{"line":1,"column":564}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":105},"generated":{"line":1,"column":566}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":33},"generated":{"line":1,"column":574}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":1,"column":578}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":83},"generated":{"line":1,"column":582}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":83},"generated":{"line":1,"column":585}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":133},"generated":{"line":1,"column":588}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":133},"generated":{"line":1,"column":593}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":133},"generated":{"line":1,"column":605}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":71,"column":2},"generated":{"line":1,"column":607}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":71,"column":2},"generated":{"line":1,"column":612}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":71,"column":2},"generated":{"line":1,"column":617}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":72,"column":4},"generated":{"line":1,"column":619}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":72,"column":4},"generated":{"line":1,"column":624}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":72,"column":18},"generated":{"line":1,"column":632}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":81,"column":35},"generated":{"line":1,"column":634}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":0},"generated":{"line":1,"column":641}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":0},"generated":{"line":1,"column":643}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":653}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":658}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":667}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":669}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":672}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":679}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":681}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":691}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":695}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":697}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":699}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":704}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":716}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":721}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":726}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":74,"column":1},"generated":{"line":1,"column":731}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":81,"column":35},"generated":{"line":1,"column":742}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":1,"column":744}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":2},"generated":{"line":1,"column":747}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":749}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":10},"generated":{"line":1,"column":758}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":111},"generated":{"line":1,"column":761}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":111},"generated":{"line":1,"column":770}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":123},"generated":{"line":1,"column":772}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":123},"generated":{"line":1,"column":774}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":123},"generated":{"line":1,"column":776}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":123},"generated":{"line":1,"column":778}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":22},"generated":{"line":1,"column":781}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":22},"generated":{"line":1,"column":785}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":22},"generated":{"line":1,"column":787}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":22},"generated":{"line":1,"column":789}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":38},"generated":{"line":1,"column":794}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":38},"generated":{"line":1,"column":799}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":94,"column":38},"generated":{"line":1,"column":803}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":1,"column":808}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":1,"column":815}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":82,"column":10},"generated":{"line":1,"column":817}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":82,"column":28},"generated":{"line":1,"column":829}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":831}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":833}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":839}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":841}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":843}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":851}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":1,"column":853}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":1,"column":855}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":1,"column":861}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":84,"column":2},"generated":{"line":1,"column":863}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":865}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":50},"generated":{"line":1,"column":872}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":50},"generated":{"line":1,"column":874}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":50},"generated":{"line":1,"column":884}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":93,"column":50},"generated":{"line":1,"column":886}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":889}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":896}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":911}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":913}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":923}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":86,"column":3},"generated":{"line":1,"column":930}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":88,"column":2},"generated":{"line":1,"column":931}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":88,"column":2},"generated":{"line":1,"column":935}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":89,"column":9},"generated":{"line":1,"column":946}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":89,"column":9},"generated":{"line":1,"column":953}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":89,"column":16},"generated":{"line":1,"column":958}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":91,"column":2},"generated":{"line":1,"column":965}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":91,"column":3},"generated":{"line":1,"column":969}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":91,"column":3},"generated":{"line":1,"column":978}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":981}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":986}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":995}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":997}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1002}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1008}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":1011}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":1023}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":99,"column":4},"generated":{"line":1,"column":1025}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":99,"column":14},"generated":{"line":1,"column":1039}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":101,"column":11},"generated":{"line":1,"column":1043}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":101,"column":11},"generated":{"line":1,"column":1045}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":101,"column":23},"generated":{"line":1,"column":1055}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":101,"column":28},"generated":{"line":1,"column":1061}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":101,"column":35},"generated":{"line":1,"column":1070}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":5},"generated":{"line":1,"column":1073}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":5},"generated":{"line":1,"column":1076}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":5},"generated":{"line":1,"column":1081}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":107,"column":10},"generated":{"line":1,"column":1089}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":107,"column":10},"generated":{"line":1,"column":1096}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":107,"column":10},"generated":{"line":1,"column":1101}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":107,"column":10},"generated":{"line":1,"column":1110}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":11},"generated":{"line":1,"column":1113}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":11},"generated":{"line":1,"column":1118}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":102,"column":11},"generated":{"line":1,"column":1123}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":103,"column":6},"generated":{"line":1,"column":1125}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":103,"column":6},"generated":{"line":1,"column":1130}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":103,"column":18},"generated":{"line":1,"column":1142}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":103,"column":27},"generated":{"line":1,"column":1147}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":110,"column":8},"generated":{"line":1,"column":1151}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":110,"column":8},"generated":{"line":1,"column":1153}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":110,"column":8},"generated":{"line":1,"column":1163}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":110,"column":8},"generated":{"line":1,"column":1172}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":110,"column":8},"generated":{"line":1,"column":1181}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":111,"column":6},"generated":{"line":1,"column":1184}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":112,"column":5},"generated":{"line":1,"column":1188}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":111,"column":6},"generated":{"line":1,"column":1190}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":111,"column":12},"generated":{"line":1,"column":1192}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":111,"column":19},"generated":{"line":1,"column":1197}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":112,"column":6},"generated":{"line":1,"column":1205}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":6},"generated":{"line":1,"column":1209}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":11},"generated":{"line":1,"column":1211}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":11},"generated":{"line":1,"column":1216}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":32},"generated":{"line":1,"column":1228}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":34},"generated":{"line":1,"column":1233}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":34},"generated":{"line":1,"column":1238}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":113,"column":34},"generated":{"line":1,"column":1240}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":115,"column":4},"generated":{"line":1,"column":1243}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":115,"column":9},"generated":{"line":1,"column":1249}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":116,"column":9},"generated":{"line":1,"column":1252}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":116,"column":9},"generated":{"line":1,"column":1257}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":116,"column":25},"generated":{"line":1,"column":1269}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":116,"column":26},"generated":{"line":1,"column":1275}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":118,"column":0},"generated":{"line":1,"column":1278}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":118,"column":0},"generated":{"line":1,"column":1283}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":118,"column":0},"generated":{"line":1,"column":1288}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":81,"column":45},"generated":{"line":1,"column":1290}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":81,"column":45},"generated":{"line":1,"column":1295}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":118,"column":1},"generated":{"line":1,"column":1307}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":118,"column":1},"generated":{"line":1,"column":1312}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1316}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1318}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1319}},{"source":"../../../src/internal/operators/scan.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":1321}}],"sources":{"../../../src/internal/operators/scan.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 scan<T>(accumulator: (acc: T, value: T, index: number) => T, seed?: T): MonoTypeOperatorFunction<T>;\nexport function scan<T>(accumulator: (acc: T[], value: T, index: number) => T[], seed?: T[]): OperatorFunction<T, T[]>;\nexport function scan<T, R>(accumulator: (acc: R, value: T, index: number) => R, seed?: R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Applies an accumulator function over the source Observable, and returns each\n * intermediate result, with an optional seed value.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation whenever the source emits a value.</span>\n *\n * ![](scan.png)\n *\n * Combines together all values emitted on the source, using an accumulator\n * function that knows how to join a new source value into the accumulation from\n * the past. Is similar to {@link reduce}, but emits the intermediate\n * accumulations.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * ## Example\n * Count the number of click events\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const ones = clicks.pipe(mapTo(1));\n * const seed = 0;\n * const count = ones.pipe(scan((acc, one) => acc + one, seed));\n * count.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator\n * The accumulator function called on each source value.\n * @param {T|R} [seed] The initial accumulation value.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method scan\n * @owner Observable\n */\nexport function scan<T, R>(accumulator: (acc: R, value: T, index: number) => R, seed?: T | R): OperatorFunction<T, R> {\n let hasSeed = false;\n // providing a seed of `undefined` *should* be valid and trigger\n // hasSeed! so don't use `seed !== undefined` checks!\n // For this reason, we have to check it here at the original call site\n // otherwise inside Operator/Subscriber we won't know if `undefined`\n // means they didn't provide anything or if they literally provided `undefined`\n if (arguments.length >= 2) {\n hasSeed = true;\n }\n\n return function scanOperatorFunction(source: Observable<T>): Observable<R> {\n return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n };\n}\n\nclass ScanOperator<T, R> implements Operator<T, R> {\n constructor(private accumulator: (acc: R, value: T, index: number) => R, private seed?: T | R, private hasSeed: boolean = false) {}\n\n call(subscriber: Subscriber<R>, source: any): any {\n return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass ScanSubscriber<T, R> extends Subscriber<T> {\n private index: number = 0;\n\n get seed(): T | R {\n return this._seed;\n }\n\n set seed(value: T | R) {\n this.hasSeed = true;\n this._seed = value;\n }\n\n constructor(destination: Subscriber<R>, private accumulator: (acc: R, value: T, index: number) => R, private _seed: T | R,\n private hasSeed: boolean) {\n super(destination);\n }\n\n protected _next(value: T): void {\n if (!this.hasSeed) {\n this.seed = value;\n this.destination.next(value);\n } else {\n return this._tryNext(value);\n }\n }\n\n private _tryNext(value: T): void {\n const index = this.index++;\n let result: any;\n try {\n result = this.accumulator(<R>this.seed, value, index);\n } catch (err) {\n this.destination.error(err);\n }\n this.seed = result;\n this.destination.next(result);\n }\n}\n"},"lineCount":null}},"hash":"1464fbf1919acdf29120ece8fa0975e5","cacheData":{"env":{}}} |