!function(o){"object"==typeof module&&"object"==typeof module.exports?o(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Validation"],o)}(function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=o("../../Validation");function c(){return{looping:!1}}function a(o,e){return o.call("loop"),{looping:!0,pass:o.passes,item:e}}i.prototype.execute=function(o,e){var i=l.validation.number("count",o.count,0),t=l.validation.number("limit",o.limit,1e3),n=l.validation.array("collections",o.collection,void 0),r=e.passes,u=o.exit;if(void 0!==u&&u)return c();o=o.loop;return void 0!==o&&!o||t<=r?c():void 0!==n?r>=n.length?c():a(e,n[r]):r<i||void 0!==u&&!u||void 0!==o&&o?a(e):c()},i.action="gcx:wf:core:loop:Loop",i.suite="gcx:wf:builtin",o=i;function i(){}e.Loop=o});