VimUnDo=N_K })5_=?>N_K5_>@?N_K return stream()5_?A@N_K return stream(next, stop)5_@BAN_K return stream(next, stop) {}5_ACB N_K return stream(next, stop) {5_BDCN_K5_CEDN_K5_DFE N_K root()5_EGF N_K root(node)5_FHGN_K root(function onNode())5_GIHN_K root(function onNode(node))5_HJI N_K" root(function onNode(node) {})5_IKJN_K root(function onNode(node) {5_JLKN_K }, )5_KMLN_K 5_LNMN_K function recur()5_MONN_K function recur() {}5_NPON_K function recur() {5_OQPN_K }5_PRQN_K root(function onNode(node) {5_QSRN_K })5_RUSN_K 5_SVTUN_L root()5_UWVN_L head(root()5_VXWN_L  head(root)()5_WYXN_L' head(root)(onNext())5_XZY!N_L-# head(root)(function onNode())5_Y[Z&N_L.' head(root)(function onNode(node))5_Z\[(N_L.* head(root)(function onNode(node) {})5_[]\N_L0 })5_\^]'N_L9 5_]_^N_L= isBranch()5_^`_N_L> isBranch(node)5__a`N_LP isBranch(node) ? tree()5_`ba2N_Lh7 isBranch(node) ? tree(isBranch, children, node)5_acb@N_Ll@ isBranch(node) ? tree(isBranch, children, children(node)5_bdcAN_LnA isBranch(node) ? tree(isBranch, children, children(node))5_cedBN_LqC isBranch(node) ? tree(isBranch, children, children(node))()5_dfeKN_Lu 5_egfLN_L}M isBranch(node) ? tree(isBranch, children, children(node))(next, stop)5_fhgN_L :5_gihN_L : next()5_hjiN_LN isBranch(node) ? tree(isBranch, children, children(node))(next, recur)5_ikj N_LU return isBranch(node) ? tree(isBranch, children, children(node))(next, recur)5_jlkN_LD tree(isBranch, children, children(node))(next, recur) : next(node)# : next(node)5_kmlGN_LQ tree(isBranch, children, children(node))(next, recur) : next(node)5_lnmEN_LF tree(isBranch, children, children(node))(next, recur) :5_monN_L !function recur() {5_npoN_L 5_oqp N_L if ()5_prqN_L if (error)5_qsrN_L if (error) stop()5_rtsN_O 5_sutN_O map()5_tvuN_O$ map(root, function walk())5_uwvN_O$! map(root, function walk() {})5_vxwN_O'  map(root, function walk() {5_wyxN_O, # map(root, function walk(node) {5_xzyN_O0 , map(children(root, function walk(node) {5_y{zN_O< - map(children(root), function walk(node) {5_z|{N_OA  })5_{}|vN_OG 3 merge(map(children(root), function walk(node) {5_|~}vN_OH % merge(map(, function walk(node) {5_}~vN_OJ  }))5_~vN_ON # merge(map(function walk(node) {5_vN_OT!  5_vN_OW! isBranch()5_vN_Oa! isBranch(node)5_vN_Ok! isBranch(node) ? 5_vN_Ol! isBranch(node) ? tree()5_9vN_Ou!; isBranch(node) ? tree(isBranch, children, children())5_?vN_O{!? isBranch(node) ? tree(isBranch, children, children(node))5_GvN_O~!H isBranch(node) ? tree(isBranch, children, children(node)) : list()5_vN_O !function recur(error) {5_vN_O( head(root)(function onNode(node) {5_vN_O if (error) stop(error)5_vN_O return isBranch(node) ?5_vN_OF tree(isBranch, children, children(node))(next, recur) :5_vN_O next(node)5_vN_O }, recur)5_vN_O }()5_ vN_O var streamer = require  5_ vN_O var streamer = require()5_ vN_O var streamer = require('')5_ vN_O  var streamer = require('./core')5_ vN_O var core = require('./core')5_vN_OL isBranch(node) ? tree(isBranch, children, children(node)) : list(node)5_vN_OS return isBranch(node) ? tree(isBranch, children, children(node)) : list(node)5_vN_P=5_ vN_P  5_!!vN_P)5_ ""vN_P *function normalize(source) {5_,##vN_P +5_$$vN_Q ,- Normalizes given stream into a normal one*/5_'$$vN_Q ,6 Normalizes given `source` stream into a normal one*/5_H$$vN_Q ,J Normalizes given `source` stream, so that it's guaranteed a normal one*/5_<$$vN_Q" ,> Normalizes given `source` stream, so that it's guaranteed */5_%%vN_Q/- stop is called only once */5_E%%vN_Q< -G stop is called only once & no next is called after stream is closed*/5_%%vN_QB .-5_#vN_T$.G Returns a lazy stream of the nodes in a tree, via a depth-first walk.K `isBranch` must be a function that takes one argument and returns true ifJ passed a node that can have children (but may not). `children` must be aM function that takes one argument and returns a stream of the children. WillO only be called on nodes for which `isBranch` returns true. `root` is the root node of the tree.*/5_vN_T .@ Normalizes given `source` stream, so that it's guaranteed that< stop is called only once & no next is called after that.*/5_vN_T .>Normalizes given `source` stream, so that it's guaranteed that:stop is called only once & no next is called after that.*/5_#vN_U $.EReturns a lazy stream of the nodes in a tree, via a depth-first walk.I`isBranch` must be a function that takes one argument and returns true ifHpassed a node that can have children (but may not). `children` must be aKfunction that takes one argument and returns a stream of the children. WillMonly be called on nodes for which `isBranch` returns true. `root` is the rootnode of the tree.*/5_ #vN_V .function normalize(source) {/*5_$vN_V / /*5_:$vN_V/< stop is called only once & no next is called after that.*/5_) %vN_V!0+function tree(isBranch, children, root) {/*5_ !&vN_V!1 /*5_&!&vN_V %(1 node of the tree.*/5_*2VN__)+2* return merge(map(function walk(node) {5_)2VN_` ()& return function stream(next, stop) {5_)1VN_` (*1# merge(map(function walk(node) {5_-1VN_`,- }5_,0VN_`+-0 }, children(root)))5_,0VN_`+-0}, children(root)))5_*0VN_`)+0 return isBranch(node) ?5_+ 0VN_`*,0B tree(isBranch, children, children(node)) : list(node)5_+ 0VN_`)+0 return isBranch(node) ?5tree(isBranch, children, children(node)) : list(node)*,0@ tree(isBranch, children, children(node)) : list(node)5_*G/VN_`),/Q return isBranch(node) ? tree(isBranch, children, children(node)) : list(node)5_) 0VN_`w(*0( return merge(map(function walk(node) {5_,0VN_`+-0 }, children(root)))5_,0VN_`+-0 }, children(root))) : list()5_*Nc[e*,; appendtree(isBranch, children, children(node)) :),0F return isBranch(node) ? tree(isBranch, children, children(node)) :5_+FNc[q*,1H append(list(node), tree(isBranch, children, children(node)) :5_,Nc[t+-1& list(node)5_(Nc[(* function walk'*15_(Nc[')2 5_)Nc[(*2 function walk()5_)Nc[(*2 function walk(node)5_)Nc[(+2 function walk(node) {}5_)Nc[)+4 )+35_* Nc[)+4 isBranch()5_*Nc[)+4 isBranch(noed)5_*Nc\)+4 isBranch(node)5_*Nc\)+4 return isBranch(node)5_* Nc\)+4 return isBranch(node) ? 5_*Nc\)+4 return !isBranch(node) ? 5_*"Nc\)+4# return !isBranch(node) ? list()5_*'Nc\)+4' return !isBranch(node) ? list(node)5_*0Nc\&)+41 return !isBranch(node) ? list(node) : merge()5_*4Nc\*)+46 return !isBranch(node) ? list(node) : merge(map())5_*9Nc\,)+4: return !isBranch(node) ? list(node) : merge(map(walk))5_*CNc\4)+4E return !isBranch(node) ? list(node) : merge(map(walk, children())5_**Nc\C)+4I return !isBranch(node) ? list(node) : merge(map(walk, children(root))5_*\Nc\L)+4\ return !isBranch(node) ? list(node) : append(list(node), merge(map(walk, children(root))5_*]Nc\P)+4] return !isBranch(node) ? list(node) : append(list(node), merge(map(walk, children(root)))5_**Nc\T),4^ return !isBranch(node) ? list(node) : append(list(node), merge(map(walk, children(root))))5_+;Nc\g*,5? append(list(node), merge(map(walk, children(root))))5_)Nc\(*5 function walk(node) {5_,Nc\+-5 }5_,Nc\+-5 })()5_-Nc\,-9 return isBranch(root) ? merge(map(function walk(node) {5_-Nc\,- return isBranch(node) ?5_- Nc\,-I append(list(node), tree(isBranch, children, children(node))) :5_-Nc\,- list(node)5_-Nc\,-" }, children(root))) : list(root)5_ 8Nc]  08 map = core.map, merge = core.merge, list = core.list5_Ncc meta:  1 05_ Ncc 2meta: {}5_ Ncc 4  35_ Ncc 4 doc: ""5_ #Ncc  author:  4# doc: "Experimental streamer APIs"5_ Ncc 5 author: ""5_ Ncc 5meta: {5_Ncc765_ vNcc 7meta:5_ vNcc 7package:5_ vNcc 7 metadata:5_vNcc7meta:5_ vNcc 7 metadata:5_ vNcc 7plugin:5_vNcc metadata:5_ vNcc 6meta:{ 6{5_ vNcc 6  55_ vNcd 6 version: ""5_ vNcd 6 author: "Irakli Gozalishvili"5_  vNcd 6meta: {$ doc: "Experimental streamer APIs", author: "Irakli Gozalishvili", version: "1.0"}5_  vNcd 5_*  vNceN)+0) return !isBranch(node) ? list(node) :5_* vNceR)+0: return function stream()!isBranch(node) ? list(node) :5_*& vNceV)+0D return function stream(next, stop)!isBranch(node) ? list(node) :5_*( vNceX),0G return function stream(next, stop) {}!isBranch(node) ? list(node) :5_+ vNceY*,1% }!isBranch(node) ? list(node) :5_+ vNcef*,1$ !isBranch(node) ? list(node) :5_+ vNcej*,1# isBranch(node) ? list(node) :5_+ vNcek*,1% isBranch(node)() ? list(node) :5_+ vNcem*,1/ isBranch(node)(function()) ? list(node) :5_+! vNcen*-12 isBranch(node)(function() {}) ? list(node) :5_+ vNcex*,2! isBranch(node)(function() {5_ + vNce|+-3 +-25_  , vNce+-3 $ ? list()5_   , vNce+-3 $ ? list(node)5_   . . .>v>Nce-/3? append(list(node), merge(map(walk, children(node))))5_   ,. .>v>Nce+-3 $ ? list(node) : 5_  . . .>v>Nce-. 5_ -. .>v>Nce,.2 }) ? list(node) :5_,. .>v>Nce+-2M $ ? list(node) : append(list(node), merge(map(walk, children(node))))5_,. .>v>Nce+-2N !$ ? list(node) : append(list(node), merge(map(walk, children(node))))5_, . .>v>Nce+-2P ()!$ ? list(node) : append(list(node), merge(map(walk, children(node))))5_, , ,vNce+-2M $ ? list(node) : append(list(node), merge(map(walk, children(node))))5_,, ,vNce+-2C $ ? : append(list(node), merge(map(walk, children(node))))5_,@, ,vNce+-2@ $ ? append(list(node), merge(map(walk, children(node))))5_,M, ,vNce+-2M $ ? append(list(node), merge(map(walk, children(node)))) : list(node)5_,, ,vNce+-2N $ ? append(list(node), merge(map(walk, children(node)))) : list(node))5_, , ,vNce+-2P ()$ ? append(list(node), merge(map(walk, children(node)))) : list(node))5_,O, ,vNce,. +.2O ($ ? append(list(node), merge(map(walk, children(node)))) : list(node))5_- , ,vNce,.3 ()5_*, ,vNce*,4 *,35_+- -vNce*+ var hasChild5_+, ,vNce*,3" isBranch(node)(function($) {5_*, ,vNce*,4 *,35_ + - -vNcf*,4 branch = 5_! +- -vNcf*,4 branched = 5_ "!,,,vNcf+-4# isBranch(node) (function($) {5_!#"+,,vNcf*,4 var $ = 5_"$#+,,vNcf+-5 +-45_#%$, --vNcf$+-5 typeof()5_$&%,--vNcf'+-5 typeof(isBranch)5_%'&,--vNcf)+-5 typeof(isBranch) ? ''5_&(',--vNcf++-5 typeof(isBranch) === ''5_')(,%--vNcf-+-5% typeof(isBranch) === 'function'5_(*),1--vNcfQ+-52 typeof(isBranch) === 'function' ? function()5_)+*,3--vNcfS+-53 typeof(isBranch) === 'function' ? function($)5_*,+,5--vNcfV+-56 typeof(isBranch) === 'function' ? function($) {}5_+-,,(--vNcf^+-5@ typeof(isBranch) === 'function' ? function($) { return $ }5_,.-,--vNcfb+-5K typeof(isBranch) === 'function' ? isBranch : function($) { return $ }5_-/.,L--vNcfd+-5L (typeof(isBranch) === 'function' ? isBranch : function($) { return $ }5_.1/,M--vNcfl+-5M (typeof(isBranch) === 'function' ? isBranch : function($) { return $ })5_/201,O--vNcfq+-5O (typeof(isBranch) === 'function' ? isBranch : function($) { return $ })()5_132+--vNcfv+-55_243,..vNcfw+,5_354,--vNcfx+-5N (typeof(isBranch) === 'function' ? isBranch : function($) { return $ })(5_465,*--vNcf{+-5G (typeof($) === 'function' ? isBranch : function($) { return $ })(5_586-,,0v0Ncf+-5@ (typeof($) === 'function' ? $ : function($) { return $ })( function($) {,.5 (function($) {5_6978,>,,0v0Ncf+-4M (typeof($) === 'function' ? $ : function($) { return $ })(function($) {5_8:9,+,,0v0Ncf+-4; (typeof($) === 'function' ? $ : list())(function($) {5_9<:,9,,0v0Ncf+-4< (typeof($) === 'function' ? $ : list($))(function($) {5_:=;<,<,,0v0Ncf+-4? (typeof($) === 'function' ? $ : list($))(function(isBr) {5_<>=- ,,0v0Ncf,.4O ($ ? append(list(node), merge(map(walk, children(node)))) : list(node))5_=?>-,,0v0Ncf,.4U isBranch ? append(list(node), merge(map(walk, children(node)))) : list(node))5_>@?-K,,0v0Ncf,/4V (isBranch ? append(list(node), merge(map(walk, children(node)))) : list(node))5_?A@/,,0v0Ncf-/5 list(node)) (next, stop).05 (next, stop)5_@BA/,,0v0Ncg /15 /145_ACB-,,0v0Ncg6,/5J (isBranch ? append(list(node), merge(map(walk, children(node)))) :5_BDC. ,,0v0Ncg8-/6@ append(list(node), merge(map(walk, children(node)))) :5_CHD/,,0v0Ncg>+.06+ list(node))(next, stop)5_DIEH*,,0v0Nc*,7 *,65_HJI+--0v0Nc*,7 console.log()5_IqJ---0v0Nc,.7C (typeof($) === 'function' ? $ : list($))(function(isBranch) {5_JKq+--0v0Ncֳ,*+ console.log(isBranch)5_JLqK+,,0v0Nc*,5_KTL.,,0v0NcY-/6 append(list(node),3 merge(map(walk, children(node)))) :5_LUNT. ,,0v0Nc͡-/7& append(list(node),5_TVU/,,0v0Ncͤ.07> merge(map(walk, children(node)))) :5_UWV.,,0v0Ncͨ-/7append(list(node),,/7& (isBranch ? append(list(node),5_VXW.+,,0v0Ncͬ-/6* merge(map(walk,8 children(node)))) :5_WYX0 ,,0v0Ncͻ/17- list(node))(next, stop)5_XZY/8,,0v0Nc;.076 children(node)))) :5_Y[Z1,,0v0Nc$028list(node))(next, stop)/28+ : list(node))(next, stop)5_Z\[*++0v0Nc)+5_[]\***0v0Nc)+5_\^]***0v0Nc)+5_]_^* **0v0Nc)+4( return isBranch ? append(list(node),5_^`_***0v0Nc)+4* return isBranch() ? append(list(node),5__a`***0v0Nc)+4. return isBranch(node) ? append(list(node),5_`ba+**0v0Nc *,4merge(map(walk,),4> return isBranch(node) ? append(list(node), merge(map(walk,5_acb+%**0v0Nc*,3children(node))))),3P return isBranch(node) ? append(list(node), merge(map(walk, children(node))))5_bdc***0v0Nc)+2 return isBranch(node) ?? append(list(node), merge(map(walk, children(node))))5_cfd+**0v0Nc*,3 append(list(node),3 merge(map(walk, children(node))))5_dgef-+**0v0Nc*%,.4 : list(node))5_fhg-**0v0NcV',.4 : list(node)5_gih/**0v0Ncψ.05_hji.**0v0Ncϐ-/5_ikj* --vNcϗ)+2 return !isBranch(node) ?5_jlk---vNcϛ,.2 : 5_kml*--vNcϝ)+2' return !isBranch(node) ? list(node)5_lnm*'--vNcϞ)+2) return !isBranch(node) ? list(node) :5_mon+ --vNcϠ*,2 append(list(node),5_npo,,,vNcϣ+-2!merge(map(walk, children(node))))*-2@ append(list(node), merge(map(walk, children(node))))5_op,vNcϦ*+-5_dfe-**0v0Nc,.4: list(node))(next, stop)+.4M merge(map(walk, children(node)))) : list(node))(next, stop)5_LOMTN- 0 0vNcr,.7 (!isBranch ?5_NPO0 0 0vNcu/17 )(next, stop)5_OQP-0 0vNcw,.7! (!isBranch ? list(node) :5_PRQ. / /vNc͈-/7append(list(node),,/74 (!isBranch ? list(node) : append(list(node),5_QSR./ /vNc͎-/6L merge(map(walk, children(node)))) :5_RS.L/ /vNc͒-/6J merge(map(walk, children(node))))5_LNM. ,,0v0Nck-/7& append(list(node),5_DFHE,",,0v0Ncgk+-6I (typeof($) === 'function' ? head()$ : list($))(function(isBranch) {5_EGF,(,,0v0Ncgm+-6H (typeof($) === 'function' ? head($ : list($))(function(isBranch) {5_FG,(,,0v0Ncgn+-6I (typeof($) === 'function' ? head($) : list($))(function(isBranch) {5_:<;',,0v0Ncf&(4 **/return5_687,J,,0v0Ncf+-4T (typeof($) === 'function' ? $ : function($) { return $ })(function(isBranch) {5_/10,N--vNcfm+-5P (typeof(isBranch) === 'function' ? isBranch : function($) { return $ })($)5_,P. .>v>Nce+-2O ()!$ ? list(node) : append(list(node), merge(map(walk, children(node)))5_  vNcd6var core = require('./core'),5_ vNcd 6 meta: (){5_ vNcd 6meta: ({5_vNcd 6})5_*(Nc\Z)+5' return !isBranch(node) ? list(node) :5_, Nc\]+-64append(list(node), merge(map(walk, children(root))))*-6Q : append(list(node), merge(map(walk, children(root))))5_)Nc[)*3 )+4 return isBranch()5_*Nc[)+4 return isBranch(node)5_*Nc[V)+0Y return isBranch(node) ? append(list(node), tree(isBranch, children, children(node)) :5_-2VN_`,.2 }, children(root)))()5_-2VN_`,.2 }, children(root)))(next)5_SUT N_L root(function onNode())5_465N_K I Returns a lazy sequence of the nodes in a tree, via a depth-first walk.C branch? must be a fn of one arg that returns true if passed a nodeD that can have children (but may not). children must be a fn of oneD arg that returns a sequence of the children. Will only be called onC nodes for which branch? returns true. Root is the root node of thetree.5_  N_J AisBranch is be a fn of one arg that returns true if passed a node5