!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):e.ReactComposer=n(e.React)}(this,function(e){"use strict";return function(n){return function n(t,r,o){if(o=o||[],!r[0])return t(o);function c(e){return n(t,r.slice(1),o.concat([e]))}return"function"==typeof r[0]?r[0]({results:o,render:c}):e.cloneElement(r[0],{children:c})}(n.children,n.components)}});