YUI.add("parallel",function(i,t){i.Parallel=function(t){this.config=t||{},this.results=[],this.context=this.config.context||i,this.total=0,this.finished=0},i.Parallel.prototype={results:null,total:null,finished:null,add:function(t){var l=this,a=l.total;return l.total+=1,function(){l.finished++,l.results[a]=t&&t.apply(l.context,arguments)||(1===arguments.length?arguments[0]:i.Array(arguments)),l.test()}},test:function(){var t=this;t.finished>=t.total&&t.callback&&t.callback.call(t.context,t.results,t.data)},done:function(t,l){this.callback=t,this.data=l,this.test()}}},"patched-v3.18.7",{requires:["yui-base"]});