!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports"],e)}(function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=(r.prototype.execute=function(e,o){var t=e.exit,r=o.state;if(!1!==t&&null!=t)return{looping:!1,count:r&&r.length||0};if(void 0===r){o.persist(r=[]);var n=e.items;if(null!=n){var i=0;if(Array.isArray(n))for(var u=0,l=n;u<l.length;u++){var s=l[u];r.push({looping:!0,pass:i++,item:s})}else if(function(e){if(e&&Symbol&&"function"==typeof e[Symbol.iterator])return!0;return!1}(n))for(var f=n[Symbol.iterator]();;){var a=f.next();if(a.done)break;r.push({looping:!0,pass:i++,item:a.value})}else for(var p in n)r.push({looping:!0,key:p,pass:i++,item:n[p]})}}if(o.passes<r.length){o.call("loop");o=r[o.passes];return o.count=r.length,o}return{looping:!1,count:r.length}},r.action="gcx:wf:core:loop:ForEach",r.suite="gcx:wf:builtin",r);function r(){}o.ForEach=t});