"use strict";var t=require("../../bt/factory"),r=require("../../bt/base"),e=r.Status,i=r.createBehavior;module.exports=i({constructor:function(t){this.children=t||[],this.current=-1},start:function(){return 0===this.children.length?!1:(this.current=0,this.findStart())},findStart:function(){for(var t=!1;!t&&this.current=this.children.length||!this.findStart()?e.SUCCEEDED:e.IN_PROGRESS):t===e.PAUSED?e.IN_PROGRESS:t}return e.SUCCEEDED}}),t.addBehavior(module);