VimŸUnDoå¤n7Ã…�äž^÷*‚—Ã�©>‹å:G±Ø£ˆÞP‰Ày[[[[P°¦_ÐÿÿÿÿP‡[‡õ5�_ÐÿÿÿÿP‡[�õ5�_ÐÿÿÿÿvP‡[›õ$var _read = decorate(fsbinding.read)5�_ÐÿÿÿÿvP‡[£õ õ5�_Ðÿÿÿÿ  vP‡bUõõõ5�_Ðÿÿÿÿ  vP‡bfõ 6õ 55�_Ð ÿÿÿÿ  vP‡biõ 5�_Ð  ÿÿÿÿ  vP‡biõ 5�_Ð ÿÿÿÿ  vP‡bwõ #var drop = require("reducers/drop")5�_Ð ÿÿÿÿ  vP‡b…õ 65�_Ð ÿÿÿÿ  vP‡b˜ õ 8õ 75�_Ð ÿÿÿÿ  vP‡b« õ :õ 95�_Ð  ÿÿÿÿvP‡b´õ <õ ;5�_Ð  ÿÿÿÿvP‡bµ õ 5�_Ð ÿÿÿÿvP‡b¾õ =õ <5�_Ð ÿÿÿÿvP‡b¿ õ 5�_ÐÿÿÿÿvP‡bÇõ=5�_Ðÿÿÿÿ)v)P‡bÏõ=0var _read = decorate(process.binding("fs").read)5�_Ðÿÿÿÿ)v)P‡bÐõ=var fsbinding = 5�_Ðÿÿÿÿ)v)P‡bÒ õ=var _read = decorate(.read)5�_Ðÿÿÿÿ)v)P‡bíõ =5�_Ðÿÿÿÿ)v)P‡bùõ?õ>5�_Ðÿÿÿÿ)v)P‡bûõ5�_Ðÿÿÿÿ)v)P‡c õ@õ?5�_Ðÿÿÿÿ)v)P‡cõA5�_ÐÿÿÿÿP‡f õ'/* vim:set ts=2 sw=2 sts=2 expandtab */5�_ÐÿÿÿÿP‡f õM/*jshint asi: true undef: true es5: true node: true browser: true devel: true5�_Ð ÿÿÿÿP‡f õ9 forin: true latedef: false globalstrict: true */5�_ÐÿÿÿÿP‡f õ5�_Ð>ÿÿÿÿ'vÿÿÿPˆ7”õ>õ>5�_Ð"ÿÿÿÿ'vÿÿÿPˆ­5õ @(var deliver = require("pending/deliver")5�_Ð# " ÿÿÿÿ'vÿÿÿPˆÃýõ "A õ "@5�_Ð"5#!$ÿÿÿÿ'vÿÿÿPˆÄ õ "A$ var sync = options && options.sync5�_Ð#6$59/ÿÿÿÿ'vÿÿÿPˆÅõ8:AC when(readChunck(fd, buffer, start, size), onChunk, onError)5�_Ð5769 ÿÿÿÿ'vÿÿÿPˆÅõ8:AI when(readChunck(fd, buffer, start, size, sync), onChunk, onError)5�_Ð6879ÿÿÿÿ99<v<PˆÅõ8;AP when(sync ? readChunck(fd, buffer, start, size, sync), onChunk, onError)5�_Ð7988ÿÿÿÿ99<v<PˆÅ&õ8:Cõ8:B5�_Ð8:9! ÿÿÿÿ::<v<PˆÅGõ!#D õ!#C5�_Ð9;:;?ÿÿÿÿ;;<v<PˆÅ\õ:<D? when(sync ? readChunck(fd, buffer, start, size, sync) ;5�_Ð:<;:ÿÿÿÿ;;<v<PˆÅ_õ9: var readChunch 5�_Ð;=<;ÿÿÿÿ::<v<PˆÅaõ9;C when(2(fd, buffer, start, size, sync), onChunk, onError)õ:<CP readChunck(fd, buffer, start, size, sync), onChunk, onError)5�_Ð<>=:ÿÿÿÿ::<v<PˆÅhõ9;BC when(read(fd, buffer, start, size, sync), onChunk, onError)5�_Ð=?>:ÿÿÿÿ::<v<PˆÅjõ9;BH when(readChunc(fd, buffer, start, size, sync), onChunk, onError)5�_Ð>@?:ÿÿÿÿ::<v<PˆÅkõ9;BG when(readChun(fd, buffer, start, size, sync), onChunk, onError)5�_Ð?A@: ÿÿÿÿ: :vPˆÅ{õ9;BH when(readChunk(fd, buffer, start, size, sync), onChunk, onError)5�_Ð@BA"ÿÿÿÿ"" v PˆÅ�õ!#B/ var read = sync ? readChunchSync : readChunch5�_ÐACB"+ÿÿÿÿ"+"4v4PˆÅ…õ!#B5 var readChunck = sync ? readChunchSync : readChunch5�_ÐBDC"ÿÿÿÿ""#v#PˆÅŠõ!#B5 var readChunck = sync ? readChunchSync : readChunck5�_ÐCED"ÿÿÿÿ! !#v#PˆÅ�õ!#B5 var readChunck = sync ? readChunckSync : readChunck5�_ÐDFE!ÿÿÿÿ! !#v#PˆÅ’õ !- var sync = options && options.sync || false5�_ÐEGF!Hÿÿÿÿ! !#v#PˆÅ˜ õ "AH var readChunck = options && options.sync ? readChunckSync : readChunck5�_ÐFHGÿÿÿÿ! !#v#PˆÅ¡õA.function readChunck(fd, buffer, start, size) {5�_ÐGIHÿÿÿÿvPˆÅ§õ#CõBõA5�_ÐHJIÿÿÿÿvPˆÅ«!õI3function readChunckAsync(fd, buffer, start, size) {5�_ÐIKJÿÿÿÿvPˆÅ±"õI2function readChuncksync(fd, buffer, start, size) {5�_ÐJLKÿÿÿÿvPˆÅ´õ var promise = defer()5�_ÐKMLÿÿÿÿvPˆÅµõI õH5�_ÐLNMÿÿÿÿvPˆÅ·õI try {}5�_ÐMONÿÿÿÿvPˆÅ¸õIL fsbinding.read(fd, buffer, 0, size, start, function onread(error, count) {5�_ÐNPOÿÿÿÿvPˆÅ¾õIN fsbinding.read(fd, buffer, 0, size, start, function onread(error, count) {5�_ÐOQPUÿÿÿÿvPˆÅÃõIU return fsbinding.read(fd, buffer, 0, size, start, function onread(error, count) {5�_ÐPRQ4ÿÿÿÿvPˆÅÇõ J õ I5�_ÐQSR ÿÿÿÿvPˆÅËõ!J } catch {}5�_ÐRTS!ÿÿÿÿvPˆÅÌõ !$ deliver(promise, error || count)5�_ÐSUT!ÿÿÿÿvPˆÅÍõ ! })5�_ÐTVU!ÿÿÿÿvPˆÅÎõ ! return promise5�_ÐUWVÿÿÿÿvPˆÅÏõ!I õ!H5�_ÐVXW ÿÿÿÿvPˆÅÔõ I } catch {5�_ÐWYX ÿÿÿÿvPˆÅÔ$õ I } catch () {5�_ÐX[YA5ÿÿÿÿvPˆÅà)õ@BII when(readChunck(fd, buffer, start, size, sync), onChunk, onError)5�_ÐY\Z[,ÿÿÿÿvPˆ×õ+-I$ return expand(file, function(fd) {5�_Ð[]\,ÿÿÿÿvPˆ× *õ+-I* return expand(cache(file, function(fd) {5�_Ð\^]ÿÿÿÿvPˆ×õJõI5�_Ð]_^ÿÿÿÿvPˆ×õJvar cache = require()5�_Ð^`_ÿÿÿÿvPˆ×+õJvar cache = require("")5�_Ð_a`#ÿÿÿÿvPˆ×,õJ%var cache = require("reducers/catch")5�_Ð`baÿÿÿÿ%vPˆ×&-õJ&var cache = require("reducers/catche")5�_Ðacbÿÿÿÿ%vPˆ×'.õ5�_Ðbdcÿÿÿÿ%vPˆ×@/õ5�_Ðced,ÿÿÿÿ%vPˆØ‡õ+-I+ return expand(cache(file), function(fd) {5�_Ðdfe,ÿÿÿÿ%vPˆØ‰0õ+-I% return expand(file), function(fd) {5�_Ðegfÿÿÿÿ%vPˆØ‹1õ%var cache = require("reducers/cache")5�_Ðflg,ÿÿÿÿ%vPˆÙ¿5õ+-H6 return convert(file, function(self, next, state) {5�_Ðgmhl+ÿÿÿÿ%vPˆÚŸõ*,H$ return expand(file, function(fd) {5�_ÐlnmEÿÿÿÿ%vPˆÚ¢õDFH })5�_Ðmon*ÿÿÿÿ%vPˆÚ§õ*,Iõ*,H5�_Ðnpo+ÿÿÿÿ%vPˆÚ¬6õ*,I var fd = file[]5�_Ðoqp,ÿÿÿÿ%vPˆÚçõ+,& //return expand(file, function(fd) {5�_ÐprqEÿÿÿÿ%vPˆÚêõDE //})5�_Ðqsr,ÿÿÿÿD,vPˆÚíõ+EG4 return convert({}, function(self, next, state) {, function onError(e) { next(error(e)) } function onChunk(count) { if (count === 0)# return next(end(), state)6 start = start === null ? start : start + countB when(next(buffer.slice(0, count), state), onNext, onError) } function onNext(value) { state = value. if (state && state.is === accumulated)) return next(end(), state.value)! else if (start >= finish)# return next(end(), state)' if (state && state.is == pause) return stateC when(readChunck(fd, buffer, start, size), onChunk, onError) } onNext(state) })5�_Ðrts+ÿÿÿÿD,vPˆÚñõ*,F2 return convert({}, function(self, next, state) {õ*+ var fd = file[0]5�_Ðsut#ÿÿÿÿC+vPˆÚô7õ"$F function reader(file, options) {5�_Ðtvu/ÿÿÿÿP“Ë8õ.0F! return next(end(), state)5�_Ðuwv+ÿÿÿÿP“Ðõ*,F2 return convert({}, function(self, next, state) {5�_Ðvxw+ÿÿÿÿP“Óõ*,F5 return reducible`({}, function(self, next, state) {5�_Ðwyx+ÿÿÿÿP“Õõ*,F4 return reducible({}, function(self, next, state) {5�_Ðxzy+"ÿÿÿÿP“Úõ*,F0 return reducible(function(self, next, state) {5�_Ðy|z ÿÿÿÿP“âõ F1var accumulated = require("reducers/accumulated")5�_Ðz}{| ÿÿÿÿP“óõ F-var reduced = require("reducers/accumulated")5�_Ð|~} -ÿÿÿÿP“ö9õ F/var isReduced = require("reducers/accumulated")5�_Ð}~ ÿÿÿÿP“ý:õ %var error = require("reducers/error")5�_Ð~€9ÿÿÿÿP“ õ8:E! return next(end(), state)5�_Ђ€7ÿÿÿÿP“ ;õ68E' return next(end(), state.value)5�_Ѐƒ�‚ ÿÿÿÿP“ %õE)var convert = require("reducers/convert")5�_Ђ„ƒ)ÿÿÿÿP“ *=õE+var reducible = require("reducers/convert")5�_Ѓ…„+ÿÿÿÿP“ 4õ*,E* function onError(e) { next(error(e)) }5�_Є†…++ÿÿÿÿP“ 7õ*,E. function onError(error) { next(error(e)) }5�_Ð…‡†+(ÿÿÿÿP“ 9>õ*,E* function onError(error) { next(error }5�_Іˆ‡.ÿÿÿÿP“ G?õ-/E return next(end, state)5�_Ї‰ˆ.ÿÿÿÿP“ L@õ,.E if (count === 0)return next(end)õ-/E return next(end)5�_ÐˆŠ‰5 ÿÿÿÿP“ Âõ46D, if (state && state.is === accumulated)5�_Љ‹Š5;ÿÿÿÿP“ ÈAõ46D< if (isReduced(value)state && state.is === accumulated)5�_ЊŒ‹ ÿÿÿÿP“ Bõ 9var pause = Box("Indicator that source has to be paused")5�_Ћ�Œ8ÿÿÿÿP“ ‡õ785�_ÐŒŽ�8ÿÿÿÿP“ ˆõ78% if (state && state.is == pause)5�_Ð��Ž8ÿÿÿÿP“ ‰Cõ78 return state5�_ÐŽ��))ÿÿÿÿP“ �õ)+A õ)+@5�_Ð�‘�+ÿÿÿÿP“ ©Dõ*++ function onError(error) { next(error) }5�_Ð�’‘+ÿÿÿÿP“ ±Eõ+-A õ+-@5�_Б“’.ÿÿÿÿP“ ËFõ.0Bõ.0A5�_Ð’”“03ÿÿÿÿP“ õGõ03C õ02B5�_Г•”2=ÿÿÿÿP“ GHõ13D= // a promise which is delivered once write is complete.5�_Д–•2=ÿÿÿÿP“ Tõ15D= // a promise which is delivered once write is complete.5�_Е—–4ÿÿÿÿP“ nõ35F // node 5�_Ж˜—4ÿÿÿÿP“ ‚õ35F/ // streams in node, where watermarks for 5�_З™˜49ÿÿÿÿP“ †Iõ37F9 // streams in node, where buffering watermarks for 5�_Иš™76ÿÿÿÿP“ ®Jõ68H@ when(next(buffer.slice(0, count), state), onNext, onError)5�_Й›š:ÿÿÿÿP“ ¶Kõ9;H function onNext(value) {5�_Кœ›77ÿÿÿÿP“ ¼õ68HA when(next(buffer.slice(0, count), state), onWrite, onError)5�_Л�œ:ÿÿÿÿ7670v0P“ Áõ9;H function onWrite(value) {5�_Мž�:ÿÿÿÿ7670v0P“ Ìõ:<I õ:<H5�_Ð�Ÿž;6ÿÿÿÿ7670v0P“ âõ:<I6 // Called with a value returned by a writer. If 5�_О Ÿ;3ÿÿÿÿ7670v0P“ åõ:<I3 // Called with a value returned by a writer. 5�_П¡ ;8ÿÿÿÿ7670v0P“ ëLõ:=I8 // Called with a value returned by an accumulator.5�_Р¢¡<'ÿÿÿÿ7670v0P“ ûõ;=J' // represented by this reducible.5�_С£¢<;ÿÿÿÿ7670v0P“ Mõ;>J; // represented by this reducible. If value is marked 5�_Т¤£G ÿÿÿÿ7670v0P“ (NõFHK onNext(state)5�_У¥¤< ÿÿÿÿ7670v0P“ @õ;=KG // represented by this reducible. If value is marked as `reduced`5�_Ф¦¥<(ÿÿÿÿ7670v0P“ Eõ;=K[ // that this reducible represented by this reducible. If value is marked as `reduced`5�_Ð¥§¦<;ÿÿÿÿ7670v0P“ Gõ;=K[ // that this reducible represents. by this reducible. If value is marked as `reduced`5�_Ц¨§<Hÿÿÿÿ7670v0P“ Jõ;>KH // that this reducible represents. If value is marked as `reduced`5�_Ч©¨=ÿÿÿÿ7670v0P“ Kõ<= //5�_Шª©=)ÿÿÿÿ7670v0P“ LOõ<>K) // no further reads need to happen.5�_Щ«ª@ÿÿÿÿ7670v0P“ UPõ>@K if (isReduced(value))return next(end, state.value)õ?AK% return next(end, state.value)5�_Ъ¬«Aÿÿÿÿ7670v0P“ XQõ?AJ else if (start >= finish)return next(end, state)õ@BJ return next(end, state)5�_Ы­¬?ÿÿÿÿ7670v0P“ gõ?AJ õ?AI5�_Ь®­@6ÿÿÿÿ7670v0P“ Rõ?BJ6 // If current position reached or passed finish 5�_Э¯®B ÿÿÿÿ7670v0P“ –õBEL õBDK5�_Ю°¯Cÿÿÿÿ7670v0P“ œõBC5�_Я±°Dÿÿÿÿ7670v0P“ œõCD5�_а²±Cÿÿÿÿ7670v0P“ žõBDK // Otherwise 5�_б³²C&ÿÿÿÿ7670v0P“ ­SõBDK& // Otherwise read another chunk 5�_в´³Fÿÿÿÿ7670v0P“ ÆTõFHLõFHK5�_гµ´0 ÿÿÿÿ7670v0P“ Üõ/1L4 start = start === null ? start : start + count5�_д¶µ0ÿÿÿÿ7670v0P“ ßõ/1L7 position = start === null ? start : start + count5�_е·¶0*ÿÿÿÿ7670v0P“ ãõ/1L: position = position === null ? start : start + count5�_ж¸·05ÿÿÿÿ7670v0P“ åõ/1L= position = position === null ? position : start + count5�_з¹¸# ÿÿÿÿ7670v0P“ ëUõ"$LB var start = options && options.start >= 0 ? options.start : null5�_иº¹Bÿÿÿÿ7670v0P“ þõACL7 else if (start >= finish) return next(end, state)5�_й»ºD'ÿÿÿÿ7670v0P“VõCELA when(readChunck(fd, buffer, start, size), onChunk, onError)5�_к¼»!ÿÿÿÿ7670v0P“õ!$M õ!#L5�_л½¼#ÿÿÿÿ9690v0P“õ#%N5�_м¾½"ÿÿÿÿ:6:0v0P“Wõ"%P * õ"$O5�_н¿¾$ ÿÿÿÿ<6<0v0P“;õ#%Q a read.5�_оÀ¿$ÿÿÿÿ<6<0v0P“—õ#%Q a read. Read happens in a 5�_пÁÀ$'ÿÿÿÿ<6<0v0P“·õ#%QA a read. Read happens in lazy manner. Each chunk is provided to 5�_ÐÀÂÁ$ÿÿÿÿ<6<0v0P“½õ#%Q9 a read. Read happens lazily, Each chunk is provided to 5�_ÐÁÃÂ$2ÿÿÿÿ<6<0v0P“Çõ#&QL a read. Read happens lazily, each time specific Each chunk is provided to 5�_ÐÂÄÃ$2ÿÿÿÿ=6=0v0P“Íõ#&R2 a read. Read happens lazily, each time chunk of 5�_ÐÃÅÄ%"ÿÿÿÿ>6>0v0P“çõ$&S1 chunk size can be specified via `options.size`)5�_ÐÄÆÅ%:ÿÿÿÿ>6>0v0P“ëõ$'S: chunk size can be specified via optional `options.size`)5�_ÐÅÇÆ& ÿÿÿÿ?6?0v0P“öõ%'T that chunk 5�_ÐÆÈÇ%Nÿÿÿÿ?6?0v0P“øõ$'TN chunk size can be specified via optional `options.size`). Consumer consuming5�_ÐÇÉÈ& ÿÿÿÿ@6@0v0P“õ%'U returned reduceible5�_ÐÈÊÉ&ÿÿÿÿ@6@0v0P“õ%'U returned `reduceible5�_ÐÉËÊ$ ÿÿÿÿ@6@0v0P“õ#%UP a read. Read happens lazily, each time chunk of specific size is read (default5�_ÐÊÌË$8ÿÿÿÿ@6@0v0P“õ#%Uk a read. In result it returns lazy Read happens lazily, each time chunk of specific size is read (default5�_ÐËÍÌ$ÿÿÿÿ@6@0v0P“$õ#%Ub a read. In result it returns lazy collection , each time chunk of specific size is read (default5�_ÐÌÎÍ$ ÿÿÿÿ@6@0v0P“)õ#%Ui a read. In result it returns pleudo-lazy collection , each time chunk of specific size is read (default5�_ÐÍÏÎ$6ÿÿÿÿ@6@0v0P“+õ#%Ui a read. In result it returns pseudo-lazy collection , each time chunk of specific size is read (default5�_ÐÎÐÏ$Mÿÿÿÿ@6@0v0P“8õ#&U~ a read. In result it returns pseudo-lazy collection of chunks being read., each time chunk of specific size is read (default5�_ÐÏÑÐ%ÿÿÿÿA6A0v0P“:õ$&V3 each time chunk of specific size is read (default5�_ÐÐÒÑ% ÿÿÿÿA6A0v0P“Aõ$&V3 Each time chunk of specific size is read (default5�_ÐÑÓÒ$ÿÿÿÿA6A0v0P“Fõ$&W õ$&V5�_ÐÒÔÓ% ÿÿÿÿB6B0v0P“Sõ$&W# Read starts only when collection 5�_ÐÓÕÔ%RÿÿÿÿB6B0v0P“gõ$'WR Actual read is initiated by reduction ovre returned value, only when collection 5�_ÐÔÖÕ'%ÿÿÿÿC6C0v0P“võ%'X in chunks of specific size (defaultõ&(X. Each chunk of specific size is read (default5�_ÐÕ×Ö&ÿÿÿÿB6B0v0P“xõ%'W% in chunks of specific size (default5�_ÐÖØ×&ÿÿÿÿB6B0v0P“yõ%'W& in chunks of specific `size (default5�_Ð×ÙØ'ÿÿÿÿB6B0v0P“{õ%'W' in chunks of specific `size` (defaultIchunk size can be specified via optional `options.size`). Consumer of theõ&(WK chunk size can be specified via optional `options.size`). Consumer of the5�_ÐØÚÙ&HÿÿÿÿA6A0v0P“�õ%(Vq in chunks of specific `size` (default chunk size can be specified via optional `options.size`). Consumer of the5�_ÐÙÛÚ'$ÿÿÿÿB6B0v0P“‹õ&(W+ optional `options.size`). Consumer of the5�_ÐÚÜÛ''ÿÿÿÿB6B0v0P“Žõ&(W' optional `options.size`). Once of the5�_ÐÛÝÜ')ÿÿÿÿB6B0v0P“—õ&(W) optional `options.size`). Once consumer5�_ÐÜÞÝ(ÿÿÿÿB6B0v0P“˜õ'(# returned `reduceible` collection.5�_ÐÝßÞ'*ÿÿÿÿA6A0v0P“™õ&(V* optional `options.size`). Once consumer 5�_ÐÞàß'KÿÿÿÿA6A0v0P“"Zõ&(VK optional `options.size`). Once consumer is given a chunk it could either\5�_Ðßáà(ÿÿÿÿA6A0v0P“"_õ'( 5�_Ðàâá(ÿÿÿÿ@6@0v0P“"`õ'( Each chunk is provided to 5�_Ðáãâ'Jÿÿÿÿ?6?0v0P“"jõ(* should be read õ')- further reads by returning an eventual thatõ&)TJ optional `options.size`). Once consumer is given a chunk it could either5�_Ðâäã)#ÿÿÿÿA6A0v0P“"Ÿõ(*V1 should be read (write and writer) do return eve5�_Ðãæä)&ÿÿÿÿA6A0v0P“"¡õ(*V0 should be read (write and writer do return eve5�_Ðäçåæ)-ÿÿÿÿA6A0v0P“"³Yõ(+V- should be read (write and writer return eve5�_Ðæèç%,ÿÿÿÿB6B0v0P“"ÙZõ$&WM Actual read is initiated by reduction ovre returned value, and read happens5�_Ðçéè*ÿÿÿÿB6B0v0P“"Üõ),W chunk is written.5�_Ðèêé1ÿÿÿÿC6C0v0P“# [õ018 var encoding = options && options.encoding || "binary"5�_Ðéëê+'ÿÿÿÿB6B0v0P“# õ*,W0 `option.finish` positions to specify range it 5�_Ðêìë+2ÿÿÿÿB6B0v0P“#õ*,W2 `option.finish` positions to specify a range it 5�_Ðëíì+:ÿÿÿÿB6B0v0P“#õ*-W: `option.finish` positions to specify a range of the read5�_Ðìîí,ÿÿÿÿC6C0v0P“#2õ+-X read from current position 5�_Ðíïî,ÿÿÿÿC6C0v0P“#8õ+-X read from the position 5�_Ðîðï,!ÿÿÿÿC6C0v0P“#<]õ+-X! read from the current position 5�_Ðïñð,0ÿÿÿÿC6C0v0P“#Nõ+-X0 read from the current position till end of it.5�_Ððòñ,8ÿÿÿÿC6C0v0P“#\õ+-XE read from the current position till end of it. Read is asynchronous5�_Ðñóò,EÿÿÿÿC6C0v0P“#cõ+-XE read from the current position till end of it. Read is asynchronous5�_Ðòôó,IÿÿÿÿC6C0v0P“#fõ+.XP read from the current position till end of it. Read is asynchronous by default5�_Ðóõô- ÿÿÿÿD6D0v0P“#gõ,.Y default5�_Ðôöõ-IÿÿÿÿD6D0v0P“#�õ,/YR default but synchronous read can be enforced by passing `options.sync` attribute5�_Ðõ÷ö. ÿÿÿÿE6E0v0P“#‘^õ-/Z attribute5�_Ðöø÷7ÿÿÿÿE6E0v0P“#Ÿ_õ7:[ õ79Z5�_Ð÷ùø:ÿÿÿÿG6G0v0P“#Èõ:<\5�_Ðøúù;ÿÿÿÿH6H0v0P“#Îõ;>^õ;=]5�_Ðùûú=,ÿÿÿÿJ6J0v0P“$õ<>_A // from the current position. Note that position is captured 5�_Ðúüû=5ÿÿÿÿJ6J0v0P“$õ<>_B // from the current position. Note that `position is captured 5�_Ðûýü=CÿÿÿÿJ6J0v0P“$õ<?_C // from the current position. Note that `position` is captured 5�_Ðüþý>#ÿÿÿÿK6K0v0P“$.õ=?`# // mutated by `onDrain` belowe.5�_Ðýÿþ>%ÿÿÿÿK6K0v0P“$2õ=?`% // mutated by `onDrain` function.5�_Ðþÿ>+ÿÿÿÿK6K0v0P“$5`õ=?`, // mutated by `onDrain` function belowe.5�_Ðÿ>+ÿÿÿÿK6K0v0P“$=aõ=@`+ // mutated by `onDrain` function below.5�_ÐAÿÿÿÿL6L0v0P“$]õ@Ba7 // If nothing is read then just end a collection.5�_ÐA ÿÿÿÿL6L0v0P“$aõ@Ba7 // If nothing is read then just end a collection.5�_ÐA&ÿÿÿÿL6L0v0P“$iõ@BaB // If chunk read nothing is read then just end a collection.5�_ÐA>ÿÿÿÿL6L0v0P“$yõ@BaP // If chunk read has no bytes than it's ended, then just end a collection.5�_ÐA4ÿÿÿÿL6L0v0P“$}bõ@BaF // If chunk read has no bytes than it's ended, end a collection.5�_ÐA3ÿÿÿÿL6L0v0P“$…õ@BaI // If chunk read has no bytes than it's ended, so end a collection.5�_ÐAIÿÿÿÿL6L0v0P“$Œcõ@CaT // If chunk read has no bytes than there is nothing left, so end a collection.5�_Ð =Cÿÿÿÿ=C>)v)P“$µõ<>bK // from the current position. Note that `position` is captured and onlyN // mutated by `onDrain` function below. `onChunk` handler is invoked after5�_Ð  =Cÿÿÿÿ=C=lv)P“$¶õ<>ag // from the current position. Note that `position` is captured . `onChunk` handler is invoked after5�_Ð   =Nÿÿÿÿ=C=lv)P“$¸õ<?af // from the current position. Note that `position` is captured. `onChunk` handler is invoked after5�_Ð   ?ÿÿÿÿ=C=lv)P“$¹dõ=?b // handler is invoked afterreading a chunk of a file.õ>@b! // reading a chunk of a file.5�_Ð   Dÿÿÿÿ=C=lv)P“$ÄõCEa> // Calculate new stating offset to read next chunk from.5�_Ð  D8ÿÿÿÿ=C=lv)P“$ÐõCEaW // Move a position to a new Calculate new stating offset to read next chunk from.5�_Ð Dÿÿÿÿ=C=lv)P“$ÓõCEaA // Move a position to a new offset to read next chunk from.5�_ÐD ÿÿÿÿ=C=lv)P“$ØõCEaI // Move a offset `position to a new offset to read next chunk from.5�_ÐD5ÿÿÿÿ=C=lv)P“$ÜõCEaJ // Move a offset `position` to a new offset to read next chunk from.5�_ÐD3ÿÿÿÿ=C=lv)P“$êõCEaD // Move a offset `position` with `count` read next chunk from.5�_ÐDFÿÿÿÿ=C=lv)P“$òõCEaF // Move a offset `position` with `count` bytes next chunk from.5�_ÐD/ÿÿÿÿ=C=lv)P“$úeõCEa/ // Move a offset `position` with `count`.5�_ÐD?ÿÿÿÿ=C=lv)P“%fõDF= // position was a `null` in which case we just keep it õCFa? // Move a offset `position` with `count` towards the end.5�_ÐPÿÿÿÿ=C=lv)P“%=gõPSdõPRc5�_ÐRBÿÿÿÿ=C=lv)P“%nõQTeB // consumption of the previous chunk and can accept more data.5�_ÐS%ÿÿÿÿ=C=lv)P“%…hõRTf% // also passed a new state value.5�_ÐUÿÿÿÿ=C=lv)P“%™õTUI // Called with a value returned by an accumulator of the collection5�_ÐU)ÿÿÿÿ=C=lv)P“%›õTVeH // that this reducible represents. If value is marked as `reduced`5�_ÐUÿÿÿÿUV,vÿÿÿP“%¤õTVe( // If value is marked as `reduced`, // no further reads should take place. state = value5�_ÐU ÿÿÿÿUU2vÿÿÿP“%¥õTVc state = value5�_ÐUÿÿÿÿUU2vÿÿÿP“%¦õUYd õUWc5�_ÐW ÿÿÿÿUU2vÿÿÿP“%¨õUWf( // If value is marked as `reduced`#no further reads should take place.õVXf, // no further reads should take place.5�_ÐWÿÿÿÿUU2vÿÿÿP“%«õVW5�_Ð W8ÿÿÿÿUU2vÿÿÿP“%³õVXd9 if (isReduced(value)) return next(end, state.value)5�_Ð! VKÿÿÿÿUU2vÿÿÿP“%½iõUXdL // If value is marked as `reduced` no further reads should take place.5�_Ð "!W.ÿÿÿÿUU2vÿÿÿP“%ËjõVXe. // as consumer has finished consumption.5�_Ð!#"Z ÿÿÿÿUU2vÿÿÿP“%øõXZe? // If current position reached or passed finish mark justthen end the collection.õY[e! // then end the collection.5�_Ð"$#YEÿÿÿÿUU2vÿÿÿP“%üõX[dX // If current position reached or passed finish mark just then end the collection.5�_Ð#%$YÿÿÿÿUU2vÿÿÿP“%ÿõXZeD // If current position reached or passed finish mark just then5�_Ð$&%YÿÿÿÿUU2vÿÿÿP“&õXZeE // If current `position reached or passed finish mark just then5�_Ð%'&YÿÿÿÿUU2vÿÿÿP“&õXZeF // If current `position` reached or passed finish mark just then5�_Ð&('Y5ÿÿÿÿUU2vÿÿÿP“&õXZeJ // If current `position` has reached or passed finish mark just then5�_Ð')(Y<ÿÿÿÿUU2vÿÿÿP“&õXZeK // If current `position` has reached or passed `finish mark just then5�_Ð(*)YLÿÿÿÿUU2vÿÿÿP“& õXZeL // If current `position` has reached or passed `finish` mark just then5�_Ð)+*ZÿÿÿÿUU2vÿÿÿP“&kõX[eH // If current `position` has reached or passed `finish` mark end a collection.õY[e // end the collection.5�_Ð*,+[ ÿÿÿÿUU2vÿÿÿP“&nõ[]e5�_Ð+-,ÿÿÿÿUU2vÿÿÿP“&µõg õf5�_Ð,.-ÿÿÿÿWW2vÿÿÿP“&¹õi * õh5�_Ð-/.0ÿÿÿÿXX2vÿÿÿP“&Þõi0 Function reads a chunk of data from given `fd`5�_Ð.0/ ÿÿÿÿYY2vÿÿÿP“&úõjK Function reads a chunk of data from given `fd` file descriptor into given5�_Ð/10IÿÿÿÿYY2vÿÿÿP“' õjh Function reads a chunk in specified range (`start`, `size`) from given `fd` file descriptor into given5�_Ð021ÿÿÿÿZZ2vÿÿÿP“'õk! `fd` file descriptor into given `buffer` õk `buffer` 5�_Ð132ÿÿÿÿYY2vÿÿÿP“'õj+ `fd` file descriptor into given `buffer` 5�_Ð243-ÿÿÿÿYY2vÿÿÿP“'põj- `fd` file descriptor into a given `buffer` 5�_Ð354ÿÿÿÿvP“'Kõ&m õ!l5�_Ð465".ÿÿÿÿvP“'Tõ!#rG `fd` file descriptor into a given `buffer` asynchronously and returns5�_Ð576#ÿÿÿÿvP“'\õ"$rI promise that is delivered a number of bytes being read or rejected with5�_Ð687#!ÿÿÿÿvP“'bõ"$r/ a number of bytes being read or rejected with5�_Ð798#*ÿÿÿÿvP“'fõ"$r8 a number of bytes being read or an error rejected with5�_Ð8:9#<ÿÿÿÿvP“'hõ"$r< a number of bytes being read or an error if rejected with5�_Ð9;:$ÿÿÿÿvP“'nqõ#$ an error.5�_Ð:<;h@ÿÿÿÿvP“'Šõgjq@ // Otherwise read another chunk from the current position.5�_Ð;=<i<ÿÿÿÿvP“'©õhjrE // `onChunk` handler or `onError` if fails. Note that readChunk5�_Ð<>=iFÿÿÿÿvP“'©õhkrF // `onChunk` handler or `onError` if fails. Note that `readChunk5�_Ð=?>j#ÿÿÿÿvP“'»õiks# // either reads sync or async5�_Ð>@?j<ÿÿÿÿvP“'Þõims< // reads chunk and returns either promise or a number 5�_Ð?A@l*ÿÿÿÿvP“(sõknu* // causing collection error and end.5�_Ð@BA ÿÿÿÿvP“(etõ !var Box = require("reducers/box")5�_ÐACB ÿÿÿÿvP“(qvõ 5�_ÐBDC*ÿÿÿÿr*vP“-óõ)+tIfunction reader(fd, options) { /**M Function takes file descriptor and set of options describing how to performK a read. In result it returns pseudo-lazy collection of chunks being read.M Actual read is initiated by reduction over returned value, and read happensG in chunks of specific `size` (default chunk size can be specified viaI optional `options.size`). Once consumer is given a chunk it could deferI further reads by returning an eventual that's delivered when next chunkI should be read (write and writer return eventuals that's delivered onceI chunk is written. In addition function can be passed `option.start` andN `option.finish` positions to specify a range of the read. By default it willH read from the current position till end of it. Read is asynchronous byH default but synchronous read can be enforced by passing `options.sync` with a value `true`. **/1 var size = options && options.size || 64 * 1024E var position = options && options.start >= 0 ? options.start : null1 var finish = options && options.end || InfinityM var readChunck = options && options.sync ? readChunckSync : readChunckAsync var buffer = Buffer(size)* return reducible(function(next, state) {J // Since passing an error to `next` will error a collection, it's used // as an error handler. var onError = nextN // Function is used to read out given `count` bytes from the file startingM // from the current position. Note that `position` is captured. `onChunk`: // handler is invoked after reading a chunk of a file. function onChunk(count) {H // If chunk read has no bytes than there is nothing left, so end a // collection.' if (count === 0) return next(end)E // Move a offset `position` with `count` towards the end unlessJ // position was a `null` in which case we just keep it (`null` means" // from a current position).@ position = position === null ? position : position + count? // Read chunk is forwarded to a consumer that will return= // a promise which is delivered once write is complete.@ // In a future we may switch to an approach similar to newB // streams in node, where buffering watermarks are specified@ // via options and reads can buffer up up to that point in // parallel to write.A when(next(buffer.slice(0, count), state), onDrain, onError) }F // Handler is invoked whenever consumer of the collection finishedG // consumption of the previous chunk and can accept more data. It's? // also passed a new state value that is being accumulated. function onDrain(value) { state = valueL // If value is marked as `reduced` no further reads should take place,. // as consumer has finished consumption., if (isReduced(value)) return next(end)H // If current `position` has reached or passed `finish` mark end a // collection.: else if (position >= finish) return next(end, state)I // Otherwise read another chunk from the current position & executeG // `onChunk` handler or `onError` if fails. Note that `readChunk`I // reads chunk and returns either number of bytes read or a promiseK // for that or an error if failed. Errors will invoke onError handlerH // causing collection error and end. `onChunk` will propagate data7 // further likely to the writer on the other end.D when(readChunck(fd, buffer, position, size), onChunk, onError) } // Start reading! onDrain(state) })}5�_ÐCED*ÿÿÿÿ**vP“-ôõ)*5�_ÐDFE*ÿÿÿÿ**vP“-ôõ)*5�_ÐEGFÿÿÿÿ**vP“-÷õ*5�_ÐFHGÿÿÿÿ++vP“-øõ5�_ÐGIHÿÿÿÿ**vP“-øõX+õ*5�_ÐHJIWÿÿÿÿssvP“-úwõWZtõWYs5�_ÐIKJÿÿÿÿuuvP“-þyõu5�_ÐJLK#ÿÿÿÿvP“39zõ"$vM var readChunck = options && options.sync ? readChunckSync : readChunckAsync5�_ÐKML#5ÿÿÿÿvP“3=õ"$vL var readChunk = options && options.sync ? readChunckSync : readChunckAsync5�_ÐLNM#EÿÿÿÿvP“3A{õ"$vK var readChunk = options && options.sync ? readChunkSync : readChunckAsync5�_ÐMONRÿÿÿÿvP“3JõQSvD when(readChunck(fd, buffer, position, size), onChunk, onError)5�_ÐNPOiÿÿÿÿvP“3Qõhjv2function readChunckSync(fd, buffer, start, size) {5�_ÐOQP[ÿÿÿÿvP“3S|õZ\v3function readChunckAsync(fd, buffer, start, size) {5�_ÐPRQÿÿÿÿP°¢õv5�_ÐQSRÿÿÿÿP°¢õw5�_ÐRTS ÿÿÿÿP°¢õ x5�_ÐSUT !ÿÿÿÿP°¢õ y.var isReduced = require("reducers/is-reduced")5�_ÐTVU ÿÿÿÿ ! vP°¢}õ y!var end = require("reducers/end")5�_ÐUWV!ÿÿÿÿP°¦õy-var reducible = require("reducers/reducible")5�_ÐVXW!ÿÿÿÿP°¦~õy5�_ÐWYXÿÿÿÿ.vÿÿÿP°¦õz.var reducible = require("reducible/reducible")5�_ÐXZYÿÿÿÿ.vÿÿÿP°¦õ5�_ÐY[Z ÿÿÿÿ.vÿÿÿP°¦õ yõ x5�_ÐZ[ ÿÿÿÿ.vÿÿÿP°¦õ 5�_Ðäæå)-ÿÿÿÿA6A0v0P“"£õ(*V+ should be read (write and writer do that 5�_Ѐ‚�ÿÿÿÿP“ #<õ5�_Ðz|{ ÿÿÿÿP“èõ 5�_ÐgilhEÿÿÿÿ%vPˆÙÈõDF5�_Ðhji+ÿÿÿÿ+CvPˆÙÌõ*,5�_Ðikj+ÿÿÿÿ+CvPˆÙÏõ*DF2 return convert({}, function(self, next, state) {* function onError(e) { next(error(e)) } function onChunk(count) { if (count === 0)! return next(end(), state)4 start = start === null ? start : start + count@ when(next(buffer.slice(0, count), state), onNext, onError) } function onNext(value) { state = value, if (state && state.is === accumulated)' return next(end(), state.value) else if (start >= finish)! return next(end(), state)% if (state && state.is == pause) return stateA when(readChunck(fd, buffer, start, size), onChunk, onError) } onNext(state) })5�_Ðjk#ÿÿÿÿ+CvPˆÙÙ3õ"$Ffunction reader(fd, options) {5�_ÐY[Z-ÿÿÿÿvPˆÖ÷'õ,.I4 return convert({}, function(self, next, state) {5�_Ð#%5$8ÿÿÿÿ: :/v/PˆÄõ89Aõ8:B return sync ? 5�_Ð$&%9ÿÿÿÿ: :/v/PˆÄ%õ8:B9 return sync ? readChunck(fd, buffer, start, size)5�_Ð%'&99ÿÿÿÿ: :/v/PˆÄ'õ8:B; return sync ? readChunck(fd, buffer, start, size) :5�_Ð&(':ÿÿÿÿ: :/v/PˆÄ+õ9;BQ when(readChunck(fd, buffer, start, size), onChunk, onError)5�_Ð')(9 ÿÿÿÿ: :/v/PˆÄ<õ8:B? return sync ? readChunckSync(fd, buffer, start, size) :5�_Ð(*)9<ÿÿÿÿ: :/v/PˆÄ?õ8:BQ return sync ? readChunckSync(fd, buffer, start, size, onChunk, onError) :5�_Ð)+*8ÿÿÿÿ; ;/v/PˆÄ^õ89B5�_Ð*,+9ÿÿÿÿ: :/v/PˆÄ_õ8:5�_Ð+-,ÿÿÿÿ< </v/PˆÄŽõBõCfunction readChunckSync5�_Ð,.-ÿÿÿÿ< </v/PˆÄ•õDfunction readChunckSync()5�_Ð-/.ÿÿÿÿ< </v/PˆÄ•õD0function readChunckSync(fd, buffer, start, size)5�_Ð.0/0ÿÿÿÿ< </v/PˆÄ›õD3function readChunckSync(fd, buffer, start, size) {}5�_Ð/102ÿÿÿÿ= =/v/PˆÄ›õD2function readChunckSync(fd, buffer, start, size) {}5�_Ð021ÿÿÿÿ> >/v/PˆÄœõE õF try {}5�_Ð132ÿÿÿÿ*v*PˆÄ¡õF try { }5�_Ð243ÿÿÿÿ*v*PˆÄ©õG õH- fsbinding.read(fd, buffer, 0, size, start5�_Ð34-ÿÿÿÿ*v*PˆÄ«õH. fsbinding.read(fd, buffer, 0, size, start)5�_Ð!" ÿÿÿÿ'vÿÿÿPˆÃÒõ @1 evar finish = options && options.end || Infinity5�_Ð !ÿÿÿÿ'vÿÿÿPˆÃÓõ @2 edvar finish = options && options.end || Infinity5�çª