var C=Object.create;var l=Object.defineProperty,S=Object.defineProperties,B=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,j=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=function(e,o,r){return o in e?l(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},y=function(e,o){for(var r in o||(o={}))P.call(o,r)&&d(e,r,o[r]);if(u)for(var t=u(o),p=0,s=t.length,r;p<s;p++)r=t[p],k.call(o,r)&&d(e,r,o[r]);return e},a=function(e,o){return S(e,O(o))},v=function(e){return l(e,"__esModule",{value:!0})};var N=function(e,o){for(var r in o)l(e,r,{get:o[r],enumerable:!0})},H=function(e,o,r,t){if(o&&typeof o=="object"||typeof o=="function")for(var p=b(o),s=0,x=p.length,n;s<x;s++)n=p[s],!P.call(e,n)&&(r||n!=="default")&&l(e,n,{get:function(m){return o[m]}.bind(null,n),enumerable:!(t=B(o,n))||t.enumerable});return e},F=function(e,o){return H(v(l(e!=null?C(j(e)):{},"default",!o&&e&&e.__esModule?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)},R=function(e){return function(o,r){return e&&e.get(o)||(r=H(v({}),o,1),e&&e.set(o,r),r)}}(typeof WeakMap!="undefined"?new WeakMap:0);var g={};N(g,{Box:function(){return h},Hypo:function(){return E},compose:function(){return T},useHypostyle:function(){return i},useTheme:function(){return A}});var c=F(require("react")),f=c.default.createContext({});function i(){return c.default.useContext(f)}function A(){var e=i();return e.theme}function E(e){return c.default.createElement(f.Provider,{value:e.hypostyle,children:e.children})}var h=c.default.forwardRef(function(e,o){var r=i(),t=r.pick(e),p=t.props.as||"div",s=t.props.cx||{},x=t.props.className,n=r.css(y(y({},r.explode(t.styles)),r.explode(s||{})));return delete t.props.as,delete t.props.cx,c.default.createElement(p,a(y({ref:o},t.props),{className:[x,n].filter(Boolean).map(function(m){return m.trim()}).join(" ")}))});function T(e,o){return function(r){var t=i(),p=t.pick(r),s=y(y(y({},t.explode(o)),t.explode(p.styles)),t.explode(p.props.cx||{}));return typeof e=="function"?c.default.createElement(e,a(y({},p.props),{cx:s})):c.default.createElement(h,a(y({as:e},p.props),{cx:s}))}}module.exports=R(g);0&&(module.exports={Box,Hypo,compose,useHypostyle,useTheme});
