Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

radium

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radium - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

.travis.yml

2

dist/radium.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.Radium=e(require("React")):t.Radium=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){e.StyleResolverMixin=n(1),e.BrowserStateMixin=n(2),e.MatchMediaBase=n(3),e.MatchMediaItem=n(4),e.Style=n(5)},function(t,e,n){var r=n(8),o={_getStateStyles:function(t,e){if(Array.isArray(t)){var n={};return t.forEach(function(t){var o=Object.keys(t)[0],i=t[o];e.state[o]&&r(n,i)}),n}},_getMediaQueryStyles:function(t){if(!Array.isArray(t.mediaQueries)||!this.context||!this.context.mediaQueries)return t;var e=r({},t),n=this.context.mediaQueries;return t.mediaQueries.forEach(function(t){var o=Object.keys(t)[0],i=t[o];if(n&&n[o]&&n[o].matches){var u=i;if(!u)return;r(e,u)}}),e},_getModifierStyles:function(t,e){if(!e||!Array.isArray(t.modifiers))return t;var n=r({},t);return t.modifiers.forEach(function(t){var o=Object.keys(t)[0],i=t[o];if(e[o]){var u,c=e[o];if("string"==typeof c)u=i[c];else{if(c!==!0&&c!==!1)return;u=i}if(!u)return;r(n,u)}}),n},_getStaticStyles:function(t,e){var n=this._getModifierStyles(t,e),o=this._getMediaQueryStyles(n);return r({},o,this.props.style,this._getStateStyles(o.states,this),{states:null})},_getComputedStyles:function(t){if(!t.computed)return t;var e={};return"function"==typeof t.computed?e=t.computed(t):Object.keys(t.computed).forEach(function(n){e[n]=t.computed[n](t)}),r({},t,e,{computed:null})},buildStyles:function(t,e,n){var o;o=n?e:r({},this.props,e);var i=this._getStaticStyles(t,o);return i.modifiers=null,i.mediaQueries=null,i.states=null,this._getComputedStyles(i)}};t.exports=o},function(t,e,n){var r=n(7),o={componentDidMount:function(){this.mouseUpListener=r.subscribe(this.radiumMouseUp)},componentWillUnmount:function(){this.mouseUpListener.remove()},getInitialState:function(){return{hover:!1,focus:!1,active:!1}},getBrowserStateEvents:function(){return{onMouseEnter:this.radiumMouseEnter,onMouseLeave:this.radiumMouseLeave,onMouseDown:this.radiumMouseDown,onFocus:this.radiumFocus,onBlur:this.radiumBlur}},_callRadiumHandler:function(t,e){var n=this.props[t];n&&n(e)},radiumMouseEnter:function(t){this._callRadiumHandler("onMouseEnter",t),this.setState({hover:!0})},radiumMouseLeave:function(t){this._callRadiumHandler("onMouseLeave",t),this.setState({hover:!1})},radiumMouseDown:function(t){this._callRadiumHandler("onMouseDown",t),this.setState({active:!0})},radiumMouseUp:function(){this.state.active&&this.setState({active:!1})},radiumFocus:function(t){this._callRadiumHandler("onFocus",t),this.setState({focus:!0})},radiumBlur:function(t){this._callRadiumHandler("onBlur",t),this.setState({focus:!1})}};t.exports=o},function(t,e,n){var r,o=n(6),i=n(9),u={},c={},a=function(){r()},s={childContextTypes:{mediaQueries:o.PropTypes.object},getChildContext:function(){return{mediaQueries:this.getMatchedMedia()}},init:function(t){t&&"undefined"!=typeof window&&Object.keys(t).forEach(function(e){u[e]=window.matchMedia(t[e]),u[e].addListener(a)})},componentWillMount:function(){(r=this.handleMediaChange)()},componentWillUnmount:function(){r=null,u&&Object.keys(u).forEach(function(t){u[t].removeListener(a)})},getMatchedMedia:function(){return c},handleMediaChange:i(function(){Object.keys(u).forEach(function(t){c[t]={matches:u[t].matches,media:u[t].media}}),this.forceUpdate()},10,{maxWait:250})};t.exports=s},function(t,e,n){var r=n(6),o={contextTypes:{mediaQueries:r.PropTypes.object}};t.exports=o},function(t,e,n){function r(t,e){return t&&e?t+"{"+i.createMarkupForStyles(e)+"}":void 0}var o=n(6),i=n(11),u=n(10),c=n(4),a=o.createClass({displayName:"Style",mixins:[c],propTypes:{scopeSelector:o.PropTypes.string,rules:o.PropTypes.arrayOf(o.PropTypes.object)},getDefaultProps:function(){return{scopeSelector:""}},_buildStyles:function(t){var e=u(t,function(t,e){var n=Object.keys(e)[0],o=e[n];if("mediaQueries"===n)t+=this._buildMediaQueryString(o);else{var i=(this.props.scopeSelector?this.props.scopeSelector+" ":"")+n;t+=r(i,o)}return t},"",this);return e},_buildMediaQueryString:function(t){var e=this._getContextMediaQueries(),n="";return Object.keys(t).forEach(function(r){var o=e[r]?e[r]:r;n+="@media "+o+"{"+this._buildStyles(t[r])+"}"}.bind(this)),n},_getContextMediaQueries:function(){var t={};return this.context&&this.context.mediaQueries&&Object.keys(this.context.mediaQueries).forEach(function(e){t[e]=this.context.mediaQueries[e].media}.bind(this)),t},render:function(){if(!this.props.rules)return null;var t=this._buildStyles(this.props.rules);return o.createElement("style",{dangerouslySetInnerHTML:{__html:t}})}});t.exports=a},function(e){e.exports=t},function(t){var e=[],n=!1,r=function(t){e.forEach(function(e){e(t)})},o=function(t){return-1===e.indexOf(t)&&e.push(t),n||(window.addEventListener("mouseup",r),n=!0),{remove:function(){var o=e.indexOf(t);e.splice(o,1),0===e.length&&n&&(window.removeEventListener("mouseup",r),n=!1)}}};t.exports={subscribe:o}},function(t,e,n){var r=n(12),o=n(13),i=o(r);t.exports=i},function(t,e,n){function r(t,e,n){function r(){y&&clearTimeout(y),p&&clearTimeout(p),p=y=m=void 0}function a(){var n=e-(i()-v);if(0>=n||n>e){p&&clearTimeout(p);var r=m;p=y=m=void 0,r&&(b=i(),d=t.apply(h,l),y||p||(l=h=null))}else y=setTimeout(a,n)}function s(){y&&clearTimeout(y),p=y=m=void 0,(x||g!==e)&&(b=i(),d=t.apply(h,l),y||p||(l=h=null))}function f(){if(l=arguments,v=i(),h=this,m=x&&(y||!j),g===!1)var n=j&&!y;else{p||j||(b=v);var r=g-(v-b),o=0>=r||r>g;o?(p&&(p=clearTimeout(p)),b=v,d=t.apply(h,l)):p||(p=setTimeout(s,r))}return o&&y?y=clearTimeout(y):y||e===g||(y=setTimeout(a,e)),n&&(o=!0,d=t.apply(h,l)),!o||y||p||(l=h=null),d}var l,p,d,v,h,y,m,b=0,g=!1,x=!0;if("function"!=typeof t)throw new TypeError(u);if(e=0>e?0:+e||0,n===!0){var j=!0;x=!1}else o(n)&&(j=n.leading,g="maxWait"in n&&c(+n.maxWait||0,e),x="trailing"in n?n.trailing:x);return f.cancel=r,f}var o=n(14),i=n(15),u="Expected a function",c=Math.max;t.exports=r},function(t,e,n){function r(t,e,n,r){var s=a(t)?o:c;return s(t,i(e,r,4),n,arguments.length<3,u)}var o=n(16),i=n(17),u=n(18),c=n(19),a=n(20);t.exports=r},function(t,e,n){"use strict";var r=n(21),o=n(22),i=(n(23),n(24)),u=n(25),c=n(26),a=(n(27),c(function(t){return u(t)})),s="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(s="styleFloat");var f={createMarkupForStyles:function(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];null!=r&&(e+=a(n)+":",e+=i(n,r)+";")}return e||null},setValueForStyles:function(t,e){var n=t.style;for(var o in e)if(e.hasOwnProperty(o)){var u=i(o,e[o]);if("float"===o&&(o=s),u)n[o]=u;else{var c=r.shorthandPropertyExpansions[o];if(c)for(var a in c)n[a]="";else n[o]=""}}}};t.exports=f},function(t,e,n){function r(t,e,n,p,d){if(!s(t))return t;var v=a(e.length)&&(c(e)||l(e));return(v?o:i)(e,function(e,o,i){if(f(e))return p||(p=[]),d||(d=[]),u(t,i,o,r,n,p,d);var c=t[o],a=n?n(c,e,o,t,i):void 0,s="undefined"==typeof a;s&&(a=e),!v&&"undefined"==typeof a||!s&&(a===a?a===c:c!==c)||(t[o]=a)}),t}var o=n(28),i=n(29),u=n(30),c=n(20),a=n(31),s=n(14),f=n(32),l=n(33);t.exports=r},function(t,e,n){function r(t){return function(){var e=arguments,n=e.length,r=e[0];if(2>n||null==r)return r;var u=e[n-2],c=e[n-1],a=e[3];n>3&&"function"==typeof u?(u=o(u,c,5),n-=2):(u=n>2&&"function"==typeof c?c:null,n-=u?1:0),a&&i(e[1],e[2],a)&&(u=3==n?null:u,n=2);for(var s=0;++s<n;){var f=e[s];f&&t(r,f,u)}return r}}var o=n(34),i=n(35);t.exports=r},function(t){function e(t){var e=typeof t;return"function"==e||t&&"object"==e||!1}t.exports=e},function(t,e,n){var r=n(42),o=r(o=Date.now)&&o,i=o||function(){return(new Date).getTime()};t.exports=i},function(t){function e(t,e,n,r){var o=-1,i=t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}t.exports=e},function(t,e,n){function r(t,e,n){var r=typeof t;return"function"==r?"undefined"!=typeof e&&s(t)?c(t,e,n):t:null==t?a:"object"==r?o(t):"undefined"==typeof e?u(t+""):i(t+"",e)}var o=n(36),i=n(37),u=n(38),c=n(34),a=n(39),s=n(40);t.exports=r},function(t,e,n){function r(t,e){var n=t?t.length:0;if(!i(n))return o(t,e);for(var r=-1,c=u(t);++r<n&&e(c[r],r,c)!==!1;);return t}var o=n(29),i=n(31),u=n(41);t.exports=r},function(t){function e(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}t.exports=e},function(t,e,n){var r=n(31),o=n(42),i=n(32),u="[object Array]",c=Object.prototype,a=c.toString,s=o(s=Array.isArray)&&s,f=s||function(t){return i(t)&&r(t.length)&&a.call(t)==u||!1};t.exports=f},function(t){"use strict";function e(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var n={columnCount:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeOpacity:!0},r=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(t){r.forEach(function(r){n[e(r,t)]=n[t]})});var o={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},i={isUnitlessNumber:n,shorthandPropertyExpansions:o};t.exports=i},function(t){"use strict";var e=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};t.exports=n},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(43),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=null==e||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||i.hasOwnProperty(t)&&i[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}var o=n(21),i=o.isUnitlessNumber;t.exports=r},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(44),i=/^ms-/;t.exports=r},function(t){"use strict";function e(t){var e={};return function(n){return e.hasOwnProperty(n)?e[n]:e[n]=t.call(this,n)}}t.exports=e},function(t,e,n){"use strict";var r=n(45),o=r;t.exports=o},function(t){function e(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}t.exports=e},function(t,e,n){function r(t,e){return o(t,e,i)}var o=n(46),i=n(47);t.exports=r},function(t,e,n){function r(t,e,n,r,l,p,d){for(var v=p.length,h=e[n];v--;)if(p[v]==h)return void(t[n]=d[v]);var y=t[n],m=l?l(y,h,n,t,e):void 0,b="undefined"==typeof m;b&&(m=h,c(h.length)&&(u(h)||s(h))?m=u(y)?y:y?o(y):[]:a(h)||i(h)?m=i(y)?f(y):a(y)?y:{}:b=!1),p.push(h),d.push(m),b?t[n]=r(m,h,l,p,d):(m===m?m!==y:y===y)&&(t[n]=m)}var o=n(48),i=n(49),u=n(20),c=n(31),a=n(50),s=n(33),f=n(51);t.exports=r},function(t){function e(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=Math.pow(2,53)-1;t.exports=e},function(t){function e(t){return t&&"object"==typeof t||!1}t.exports=e},function(t,e,n){function r(t){return i(t)&&o(t.length)&&R[T.call(t)]||!1}var o=n(31),i=n(32),u="[object Arguments]",c="[object Array]",a="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Function]",p="[object Map]",d="[object Number]",v="[object Object]",h="[object RegExp]",y="[object Set]",m="[object String]",b="[object WeakMap]",g="[object ArrayBuffer]",x="[object Float32Array]",j="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",_="[object Uint32Array]",R={};R[x]=R[j]=R[S]=R[w]=R[O]=R[M]=R[E]=R[A]=R[_]=!0,R[u]=R[c]=R[g]=R[a]=R[s]=R[f]=R[l]=R[p]=R[d]=R[v]=R[h]=R[y]=R[m]=R[b]=!1;var k=Object.prototype,T=k.toString;t.exports=r},function(t,e,n){function r(t,e,n){if("function"!=typeof t)return o;if("undefined"==typeof e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)};case 5:return function(n,r,o,i,u){return t.call(e,n,r,o,i,u)}}return function(){return t.apply(e,arguments)}}var o=n(39);t.exports=r},function(t,e,n){function r(t,e,n){if(!u(n))return!1;var r=typeof e;if("number"==r)var c=n.length,a=i(c)&&o(e,c);else a="string"==r&&e in n;if(a){var s=n[e];return t===t?t===s:s!==s}return!1}var o=n(52),i=n(31),u=n(14);t.exports=r},function(t,e,n){function r(t){var e=u(t),n=e.length;if(1==n){var r=e[0],c=t[r];if(i(c))return function(t){return null!=t&&t[r]===c&&a.call(t,r)}}for(var s=Array(n),f=Array(n);n--;)c=t[e[n]],s[n]=c,f[n]=i(c);return function(t){return o(t,e,s,f)}}var o=n(53),i=n(54),u=n(47),c=Object.prototype,a=c.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){return i(e)?function(n){return null!=n&&n[t]===e}:function(n){return null!=n&&o(e,n[t],null,!0)}}var o=n(55),i=n(54);t.exports=r},function(t){function e(t){return function(e){return null==e?void 0:e[t]}}t.exports=e},function(t){function e(t){return t}t.exports=e},function(t,e,n){function r(t){var e=!(u.funcNames?t.name:u.funcDecomp);if(!e){var n=s.call(t);u.funcNames||(e=!c.test(n)),e||(e=a.test(n)||i(t),o(t,e))}return e}var o=n(56),i=n(42),u=n(57),c=/^\s*function[ \n\r\t]+\w/,a=/\bthis\b/,s=Function.prototype.toString;t.exports=r},function(t,e,n){function r(t){return o(t)?t:Object(t)}var o=n(14);t.exports=r},function(t,e,n){function r(t){return null==t?!1:f.call(t)==u?l.test(s.call(t)):i(t)&&c.test(t)||!1}var o=n(58),i=n(32),u="[object Function]",c=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,f=a.toString,l=RegExp("^"+o(f).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t){function e(t){return t.replace(n,function(t,e){return e.toUpperCase()})}var n=/-(.)/g;t.exports=e},function(t){function e(t){return t.replace(n,"-$1").toLowerCase()}var n=/([A-Z])/g;t.exports=e},function(t){function e(t){return function(){return t}}function n(){}n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,i=o(t),u=n(t),c=u.length;++r<c;){var a=u[r];if(e(i[a],a,i)===!1)break}return t}var o=n(41);t.exports=r},function(t,e,n){var r=n(31),o=n(42),i=n(14),u=n(59),c=o(c=Object.keys)&&c,a=c?function(t){if(t)var e=t.constructor,n=t.length;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&n&&r(n)?u(t):i(t)?c(t):[]}:u;t.exports=a},function(t){function e(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=e},function(t,e,n){function r(t){var e=i(t)?t.length:void 0;return o(e)&&a.call(t)==u||!1}var o=n(31),i=n(32),u="[object Arguments]",c=Object.prototype,a=c.toString;t.exports=r},function(t,e,n){var r=n(42),o=n(60),i="[object Object]",u=Object.prototype,c=u.toString,a=r(a=Object.getPrototypeOf)&&a,s=a?function(t){if(!t||c.call(t)!=i)return!1;var e=t.valueOf,n=r(e)&&(n=a(e))&&a(n);return n?t==n||a(t)==n:o(t)}:o;t.exports=s},function(t,e,n){function r(t){return o(t,i(t))}var o=n(61),i=n(62);t.exports=r},function(t){function e(t,e){return t=+t,e=null==e?n:e,t>-1&&t%1==0&&e>t}var n=Math.pow(2,53)-1;t.exports=e},function(t,e,n){function r(t,e,n,r,i){var c=e.length;if(null==t)return!c;for(var a=-1,s=!i;++a<c;)if(s&&r[a]?n[a]!==t[e[a]]:!u.call(t,e[a]))return!1;for(a=-1;++a<c;){var f=e[a];if(s&&r[a])var l=u.call(t,f);else{var p=t[f],d=n[a];l=i?i(p,d,f):void 0,"undefined"==typeof l&&(l=o(d,p,i,!0))}if(!l)return!1}return!0}var o=n(55),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){return t===t&&(0===t?1/t>0:!o(t))}var o=n(14);t.exports=r},function(t,e,n){function r(t,e,n,i,u,c){if(t===e)return 0!==t||1/t==1/e;var a=typeof t,s=typeof e;return"function"!=a&&"object"!=a&&"function"!=s&&"object"!=s||null==t||null==e?t!==t&&e!==e:o(t,e,r,n,i,u,c)}var o=n(63);t.exports=r},function(t,e,n){var r=n(39),o=n(64),i=o?function(t,e){return o.set(t,e),t}:r;t.exports=i},function(t,e,n){(function(e){var r=n(42),o=/\bthis\b/,i=Object.prototype,u=(u=e.window)&&u.document,c=i.propertyIsEnumerable,a={};!function(){a.funcDecomp=!r(e.WinRTError)&&o.test(function(){return this}),a.funcNames="string"==typeof Function.name;try{a.dom=11===u.createDocumentFragment().nodeType}catch(t){a.dom=!1}try{a.nonEnumArgs=!c.call(arguments,1)}catch(t){a.nonEnumArgs=!0}}(0,0),t.exports=a}).call(e,function(){return this}())},function(t,e,n){function r(t){return t=o(t),t&&u.test(t)?t.replace(i,"\\$&"):t}var o=n(65),i=/[.*+?^${}()|[\]\/\\]/g,u=RegExp(i.source);t.exports=r},function(t,e,n){function r(t){for(var e=a(t),n=e.length,r=n&&t.length,f=r&&c(r)&&(i(t)||s.nonEnumArgs&&o(t)),p=-1,d=[];++p<n;){var v=e[p];(f&&u(v,r)||l.call(t,v))&&d.push(v)}return d}var o=n(49),i=n(20),u=n(52),c=n(31),a=n(62),s=n(57),f=Object.prototype,l=f.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e;if(!i(t)||s.call(t)!=u||!a.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return o(t,function(t,e){n=e}),"undefined"==typeof n||a.call(t,n)}var o=n(66),i=n(32),u="[object Object]",c=Object.prototype,a=c.hasOwnProperty,s=c.toString;t.exports=r},function(t){function e(t,e,n){n||(n=e,e={});for(var r=-1,o=n.length;++r<o;){var i=n[r];e[i]=t[i]}return e}t.exports=e},function(t,e,n){function r(t){if(null==t)return[];a(t)||(t=Object(t));var e=t.length;e=e&&c(e)&&(i(t)||s.nonEnumArgs&&o(t))&&e||0;for(var n=t.constructor,r=-1,f="function"==typeof n&&n.prototype===t,p=Array(e),d=e>0;++r<e;)p[r]=r+"";for(var v in t)d&&u(v,e)||"constructor"==v&&(f||!l.call(t,v))||p.push(v);return p}var o=n(49),i=n(20),u=n(52),c=n(31),a=n(14),s=n(57),f=Object.prototype,l=f.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n,r,p,h,y){var m=c(t),b=c(e),g=f,x=f;m||(g=v.call(t),g==s?g=l:g!=l&&(m=a(t))),b||(x=v.call(e),x==s?x=l:x!=l&&(b=a(e)));var j=g==l,S=x==l,w=g==x;if(w&&!m&&!j)return i(t,e,g);var O=j&&d.call(t,"__wrapped__"),M=S&&d.call(e,"__wrapped__");if(O||M)return n(O?t.value():t,M?e.value():e,r,p,h,y);if(!w)return!1;h||(h=[]),y||(y=[]);for(var E=h.length;E--;)if(h[E]==t)return y[E]==e;h.push(t),y.push(e);var A=(m?o:u)(t,e,n,r,p,h,y);return h.pop(),y.pop(),A}var o=n(67),i=n(68),u=n(69),c=n(20),a=n(33),s="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,d=p.hasOwnProperty,v=p.toString;t.exports=r},function(t,e,n){(function(e){var r=n(42),o=r(o=e.WeakMap)&&o,i=o&&new o;t.exports=i}).call(e,function(){return this}())},function(t){function e(t){return"string"==typeof t?t:null==t?"":t+""}t.exports=e},function(t,e,n){function r(t,e){return o(t,e,i)}var o=n(46),i=n(62);t.exports=r},function(t){function e(t,e,n,r,o,i,u){var c=-1,a=t.length,s=e.length,f=!0;if(a!=s&&!(o&&s>a))return!1;for(;f&&++c<a;){var l=t[c],p=e[c];if(f=void 0,r&&(f=o?r(p,l,c):r(l,p,c)),"undefined"==typeof f)if(o)for(var d=s;d--&&(p=e[d],!(f=l&&l===p||n(l,p,r,o,i,u))););else f=l&&l===p||n(l,p,r,o,i,u)}return!!f}t.exports=e},function(t){function e(t,e,a){switch(a){case n:case r:return+t==+e;case o:return t.name==e.name&&t.message==e.message;case i:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case u:case c:return t==e+""}return!1}var n="[object Boolean]",r="[object Date]",o="[object Error]",i="[object Number]",u="[object RegExp]",c="[object String]";t.exports=e},function(t,e,n){function r(t,e,n,r,i,c,a){var s=o(t),f=s.length,l=o(e),p=l.length;if(f!=p&&!i)return!1;for(var d,v=-1;++v<f;){var h=s[v],y=u.call(e,h);if(y){var m=t[h],b=e[h];y=void 0,r&&(y=i?r(b,m,h):r(m,b,h)),"undefined"==typeof y&&(y=m&&m===b||n(m,b,r,i,c,a))}if(!y)return!1;d||(d="constructor"==h)}if(!d){var g=t.constructor,x=e.constructor;if(g!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof x&&x instanceof x))return!1}return!0}var o=n(47),i=Object.prototype,u=i.hasOwnProperty;t.exports=r}])});
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("React")):"function"==typeof define&&define.amd?define(["React"],r):"object"==typeof exports?exports.Radium=r(require("React")):t.Radium=r(t.React)}(this,function(t){return function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}var e={};return r.m=t,r.c=e,r.p="",r(0)}([function(t,r,e){r.StyleResolverMixin=e(1),r.BrowserStateMixin=e(2),r.MatchMediaBase=e(3),r.MatchMediaItem=e(4),r.Style=e(5)},function(t,r,e){var n=e(8),o={_getStateStyles:function(t,r){if(Array.isArray(t)){var e={};return t.forEach(function(t){var o=Object.keys(t)[0],i=t[o];r.state[o]&&n(e,i)}),e}},_getMediaQueryStyles:function(t){if(!Array.isArray(t.mediaQueries)||!this.context||!this.context.mediaQueries)return t;var r=n({},t),e=this.context.mediaQueries;return t.mediaQueries.forEach(function(t){var o=Object.keys(t)[0],i=t[o];if(e&&e[o]&&e[o].matches){var u=i;if(!u)return;n(r,u)}}),r},_getModifierStyles:function(t,r){if(!r||!Array.isArray(t.modifiers))return t;var e=n({},t);return t.modifiers.forEach(function(t){var o=Object.keys(t)[0],i=t[o];if(r[o]){var u,c=r[o];if("string"==typeof c)u=i[c];else{if(c!==!0&&c!==!1)return;u=i}if(!u)return;n(e,u)}}),e},_getStaticStyles:function(t,r){var e=this._getModifierStyles(t,r),o=this._getMediaQueryStyles(e);return n({},o,this.props.style,this._getStateStyles(o.states,this),{states:null})},_getComputedStyles:function(t){if(!t.computed)return t;var r={};return"function"==typeof t.computed?r=t.computed(t):Object.keys(t.computed).forEach(function(e){r[e]=t.computed[e](t)}),n({},t,r,{computed:null})},buildStyles:function(t,r,e){var o;o=e?r:n({},this.props,r);var i=this._getStaticStyles(t,o);return i.modifiers=null,i.mediaQueries=null,i.states=null,this._getComputedStyles(i)}};t.exports=o},function(t,r,e){var n=e(7),o={componentDidMount:function(){this.mouseUpListener=n.subscribe(this.radiumMouseUp)},componentWillUnmount:function(){this.mouseUpListener.remove()},getInitialState:function(){return{hover:!1,focus:!1,active:!1}},getBrowserStateEvents:function(){return{onMouseEnter:this.radiumMouseEnter,onMouseLeave:this.radiumMouseLeave,onMouseDown:this.radiumMouseDown,onFocus:this.radiumFocus,onBlur:this.radiumBlur}},_callRadiumHandler:function(t,r){var e=this.props[t];e&&e(r)},radiumMouseEnter:function(t){this._callRadiumHandler("onMouseEnter",t),this.setState({hover:!0})},radiumMouseLeave:function(t){this._callRadiumHandler("onMouseLeave",t),this.setState({hover:!1})},radiumMouseDown:function(t){this._callRadiumHandler("onMouseDown",t),this.setState({active:!0})},radiumMouseUp:function(){this.state.active&&this.setState({active:!1})},radiumFocus:function(t){this._callRadiumHandler("onFocus",t),this.setState({focus:!0})},radiumBlur:function(t){this._callRadiumHandler("onBlur",t),this.setState({focus:!1})}};t.exports=o},function(t,r,e){var n,o,i=e(6),u=e(9),c={},a=function(){o()},s={childContextTypes:{mediaQueries:i.PropTypes.object},getChildContext:function(){return{mediaQueries:this.getMatchedMedia()}},init:function(t){t&&Object.keys(t).forEach(function(r){c[r]="undefined"==typeof window?{matches:!1,media:t[r]}:window.matchMedia(t[r]),c[r].addListener&&c[r].addListener(a)})},componentWillMount:function(){o=this.handleMediaChange},componentWillUnmount:function(){o=null,Object.keys(c).forEach(function(t){c[t].removeListener&&c[t].removeListener(a)})},getMatchedMedia:function(){return n||this._updateMatchedMedia()},handleMediaChange:u(function(){this._updateMatchedMedia(),this.forceUpdate()},10,{maxWait:250}),_updateMatchedMedia:function(){return Object.keys(c).forEach(function(t){n||(n={}),n[t]={matches:c[t].matches,media:c[t].media}}),n}};t.exports=s},function(t,r,e){var n=e(6),o={contextTypes:{mediaQueries:n.PropTypes.object}};t.exports=o},function(t,r,e){function n(t,r){return t&&r?t+"{"+i.createMarkupForStyles(r)+"}":void 0}var o=e(6),i=e(11),u=e(10),c=e(4),a=o.createClass({displayName:"Style",mixins:[c],propTypes:{scopeSelector:o.PropTypes.string,rules:o.PropTypes.arrayOf(o.PropTypes.object)},getDefaultProps:function(){return{scopeSelector:""}},_buildStyles:function(t){var r=u(t,function(t,r){var e=Object.keys(r)[0],o=r[e];if("mediaQueries"===e)t+=this._buildMediaQueryString(o);else{var i=(this.props.scopeSelector?this.props.scopeSelector+" ":"")+e;t+=n(i,o)}return t},"",this);return r},_buildMediaQueryString:function(t){var r=this._getContextMediaQueries(),e="";return Object.keys(t).forEach(function(n){var o=r[n]?r[n]:n;e+="@media "+o+"{"+this._buildStyles(t[n])+"}"}.bind(this)),e},_getContextMediaQueries:function(){var t={};return this.context&&this.context.mediaQueries&&Object.keys(this.context.mediaQueries).forEach(function(r){t[r]=this.context.mediaQueries[r].media}.bind(this)),t},render:function(){if(!this.props.rules)return null;var t=this._buildStyles(this.props.rules);return o.createElement("style",{dangerouslySetInnerHTML:{__html:t}})}});t.exports=a},function(r,e,n){r.exports=t},function(t,r,e){var n=[],o=!1,i=function(t){n.forEach(function(r){r(t)})},u=function(t){return-1===n.indexOf(t)&&n.push(t),o||(window.addEventListener("mouseup",i),o=!0),{remove:function(){var r=n.indexOf(t);n.splice(r,1),0===n.length&&o&&(window.removeEventListener("mouseup",i),o=!1)}}};t.exports={subscribe:u}},function(t,r,e){var n=e(14),o=e(15),i=o(n);t.exports=i},function(t,r,e){function n(t,r,e){function n(){y&&clearTimeout(y),p&&clearTimeout(p),p=y=m=void 0}function a(){var e=r-(i()-d);if(0>=e||e>r){p&&clearTimeout(p);var n=m;p=y=m=void 0,n&&(b=i(),v=t.apply(h,l),y||p||(l=h=null))}else y=setTimeout(a,e)}function s(){y&&clearTimeout(y),p=y=m=void 0,(g||x!==r)&&(b=i(),v=t.apply(h,l),y||p||(l=h=null))}function f(){if(l=arguments,d=i(),h=this,m=g&&(y||!j),x===!1)var e=j&&!y;else{p||j||(b=d);var n=x-(d-b),o=0>=n||n>x;o?(p&&(p=clearTimeout(p)),b=d,v=t.apply(h,l)):p||(p=setTimeout(s,n))}return o&&y?y=clearTimeout(y):y||r===x||(y=setTimeout(a,r)),e&&(o=!0,v=t.apply(h,l)),!o||y||p||(l=h=null),v}var l,p,v,d,h,y,m,b=0,x=!1,g=!0;if("function"!=typeof t)throw new TypeError(u);if(r=0>r?0:+r||0,e===!0){var j=!0;g=!1}else o(e)&&(j=e.leading,x="maxWait"in e&&c(+e.maxWait||0,r),g="trailing"in e?e.trailing:g);return f.cancel=n,f}var o=e(12),i=e(13),u="Expected a function",c=Math.max;t.exports=n},function(t,r,e){var n=e(16),o=e(17),i=e(18),u=i(n,o);t.exports=u},function(t,r,e){"use strict";var n=e(19),o=e(20),i=(e(21),e(22)),u=e(23),c=e(24),a=(e(25),c(function(t){return u(t)})),s="cssFloat";o.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(s="styleFloat");var f={createMarkupForStyles:function(t){var r="";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];null!=n&&(r+=a(e)+":",r+=i(e,n)+";")}return r||null},setValueForStyles:function(t,r){var e=t.style;for(var o in r)if(r.hasOwnProperty(o)){var u=i(o,r[o]);if("float"===o&&(o=s),u)e[o]=u;else{var c=n.shorthandPropertyExpansions[o];if(c)for(var a in c)e[a]="";else e[o]=""}}}};t.exports=f},function(t,r,e){function n(t){var r=typeof t;return"function"==r||!!t&&"object"==r}t.exports=n},function(t,r,e){var n=e(41),o=n(o=Date.now)&&o,i=o||function(){return(new Date).getTime()};t.exports=i},function(t,r,e){function n(t,r,e,v,h){if(!s(t))return t;var y=a(r.length)&&(c(r)||l(r));if(!y){var m=p(r);d.apply(m,u(r))}return o(m||r,function(o,u){if(m&&(u=o,o=r[u]),f(o))v||(v=[]),h||(h=[]),i(t,r,u,n,e,v,h);else{var c=t[u],a=e?e(c,o,u,t,r):void 0,s=void 0===a;s&&(a=o),!y&&void 0===a||!s&&(a===a?a===c:c!==c)||(t[u]=a)}}),t}var o=e(26),i=e(27),u=e(28),c=e(29),a=e(30),s=e(12),f=e(31),l=e(32),p=e(33),v=Array.prototype,d=v.push;t.exports=n},function(t,r,e){function n(t){return u(function(r,e){var n=-1,u=null==r?0:e.length,c=u>2&&e[u-2],a=u>2&&e[2],s=u>1&&e[u-1];for("function"==typeof c?(c=o(c,s,5),u-=2):(c="function"==typeof s?s:null,u-=c?1:0),a&&i(e[0],e[1],a)&&(c=3>u?null:c,u=1);++n<u;){var f=e[n];f&&t(r,f,c)}return r})}var o=e(34),i=e(35),u=e(36);t.exports=n},function(t,r,e){function n(t,r,e,n){var o=-1,i=t.length;for(n&&i&&(e=t[++o]);++o<i;)e=r(e,t[o],o,t);return e}t.exports=n},function(t,r,e){var n=e(37),o=e(38),i=o(n);t.exports=i},function(t,r,e){function n(t,r){return function(e,n,c,a){var s=arguments.length<3;return"function"==typeof n&&void 0===a&&u(e)?t(e,n,c,s):i(e,o(n,a,4),c,s,r)}}var o=e(39),i=e(40),u=e(29);t.exports=n},function(t,r,e){"use strict";function n(t,r){return t+r.charAt(0).toUpperCase()+r.substring(1)}var o={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(t){i.forEach(function(r){o[n(r,t)]=o[t]})});var u={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},c={isUnitlessNumber:o,shorthandPropertyExpansions:u};t.exports=c},function(t,r,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=o},function(t,r,e){"use strict";function n(t){return o(t.replace(i,"ms-"))}var o=e(42),i=/^-ms-/;t.exports=n},function(t,r,e){"use strict";function n(t,r){var e=null==r||"boolean"==typeof r||""===r;if(e)return"";var n=isNaN(r);return n||0===r||i.hasOwnProperty(t)&&i[t]?""+r:("string"==typeof r&&(r=r.trim()),r+"px")}var o=e(19),i=o.isUnitlessNumber;t.exports=n},function(t,r,e){"use strict";function n(t){return o(t).replace(i,"-ms-")}var o=e(43),i=/^ms-/;t.exports=n},function(t,r,e){"use strict";function n(t){var r={};return function(e){return r.hasOwnProperty(e)||(r[e]=t.call(this,e)),r[e]}}t.exports=n},function(t,r,e){"use strict";var n=e(44),o=n;t.exports=o},function(t,r,e){function n(t,r){for(var e=-1,n=t.length;++e<n&&r(t[e],e,t)!==!1;);return t}t.exports=n},function(t,r,e){function n(t,r,e,n,p,v,d){for(var h=v.length,y=r[e];h--;)if(v[h]==y)return void(t[e]=d[h]);var m=t[e],b=p?p(m,y,e,t,r):void 0,x=void 0===b;x&&(b=y,a(y.length)&&(c(y)||f(y))?b=c(m)?m:i(m)?o(m):[]:s(y)||u(y)?b=u(m)?l(m):s(m)?m:{}:x=!1),v.push(y),d.push(b),x?t[e]=n(b,y,p,v,d):(b===b?b!==m:m===m)&&(t[e]=b)}var o=e(45),i=e(46),u=e(47),c=e(29),a=e(30),s=e(48),f=e(32),l=e(49);t.exports=n},function(t,r,e){var n=e(50),o=e(41),i=e(51),u=o(u=Object.getOwnPropertySymbols)&&u,c=u?function(t){return u(i(t))}:n([]);t.exports=c},function(t,r,e){var n=e(30),o=e(41),i=e(31),u="[object Array]",c=Object.prototype,a=c.toString,s=o(s=Array.isArray)&&s,f=s||function(t){return i(t)&&n(t.length)&&a.call(t)==u};t.exports=f},function(t,r,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&o>=t}var o=Math.pow(2,53)-1;t.exports=n},function(t,r,e){function n(t){return!!t&&"object"==typeof t}t.exports=n},function(t,r,e){function n(t){return i(t)&&o(t.length)&&!!k[T.call(t)]}var o=e(30),i=e(31),u="[object Arguments]",c="[object Array]",a="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Function]",p="[object Map]",v="[object Number]",d="[object Object]",h="[object RegExp]",y="[object Set]",m="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",g="[object Float32Array]",j="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",M="[object Int32Array]",O="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",_="[object Uint32Array]",k={};k[g]=k[j]=k[S]=k[w]=k[M]=k[O]=k[E]=k[A]=k[_]=!0,k[u]=k[c]=k[x]=k[a]=k[s]=k[f]=k[l]=k[p]=k[v]=k[d]=k[h]=k[y]=k[m]=k[b]=!1;var R=Object.prototype,T=R.toString;t.exports=n},function(t,r,e){var n=e(30),o=e(41),i=e(12),u=e(52),c=o(c=Object.keys)&&c,a=c?function(t){if(t)var r=t.constructor,e=t.length;return"function"==typeof r&&r.prototype===t||"function"!=typeof t&&n(e)?u(t):i(t)?c(t):[]}:u;t.exports=a},function(t,r,e){function n(t,r,e){if("function"!=typeof t)return o;if(void 0===r)return t;switch(e){case 1:return function(e){return t.call(r,e)};case 3:return function(e,n,o){return t.call(r,e,n,o)};case 4:return function(e,n,o,i){return t.call(r,e,n,o,i)};case 5:return function(e,n,o,i,u){return t.call(r,e,n,o,i,u)}}return function(){return t.apply(r,arguments)}}var o=e(53);t.exports=n},function(t,r,e){function n(t,r,e){if(!c(e))return!1;var n=typeof r;if("number"==n)var a=o(e),s=u(a)&&i(r,a);else s="string"==n&&r in e;if(s){var f=e[r];return t===t?t===f:f!==f}return!1}var o=e(46),i=e(54),u=e(30),c=e(12);t.exports=n},function(t,r,e){function n(t,r){if("function"!=typeof t)throw new TypeError(o);return r=i(void 0===r?t.length-1:+r||0,0),function(){for(var e=arguments,n=-1,o=i(e.length-r,0),u=Array(o);++n<o;)u[n]=e[r+n];switch(r){case 0:return t.call(this,u);case 1:return t.call(this,e[0],u);case 2:return t.call(this,e[0],e[1],u)}var c=Array(r+1);for(n=-1;++n<r;)c[n]=e[n];return c[r]=u,t.apply(this,c)}}var o="Expected a function",i=Math.max;t.exports=n},function(t,r,e){function n(t,r){return o(t,r,i)}var o=e(55),i=e(33);t.exports=n},function(t,r,e){function n(t,r){return function(e,n){var c=e?o(e):0;if(!i(c))return t(e,n);for(var a=r?c:-1,s=u(e);(r?a--:++a<c)&&n(s[a],a,s)!==!1;);return e}}var o=e(46),i=e(30),u=e(51);t.exports=n},function(t,r,e){function n(t,r,e){var n=typeof t;return"function"==n?void 0===r?t:u(t,r,e):null==t?c:"object"==n?o(t):void 0===r?a(t):i(t,r)}var o=e(56),i=e(57),u=e(34),c=e(53),a=e(58);t.exports=n},function(t,r,e){function n(t,r,e,n,o){return o(t,function(t,o,i){e=n?(n=!1,t):r(e,t,o,i)}),e}t.exports=n},function(t,r,e){function n(t){return null==t?!1:f.call(t)==u?l.test(s.call(t)):i(t)&&c.test(t)}var o=e(59),i=e(31),u="[object Function]",c=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,f=a.toString,l=RegExp("^"+o(f).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,r,e){function n(t){return t.replace(o,function(t,r){return r.toUpperCase()})}var o=/-(.)/g;t.exports=n},function(t,r,e){function n(t){return t.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=n},function(t,r,e){function n(t){return function(){return t}}function o(){}o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,r,e){function n(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}t.exports=n},function(t,r,e){var n=e(60),o=n("length");t.exports=o},function(t,r,e){function n(t){var r=i(t)?t.length:void 0;return o(r)&&a.call(t)==u}var o=e(30),i=e(31),u="[object Arguments]",c=Object.prototype,a=c.toString;t.exports=n},function(t,r,e){var n=e(41),o=e(61),i="[object Object]",u=Object.prototype,c=u.toString,a=n(a=Object.getPrototypeOf)&&a,s=a?function(t){if(!t||c.call(t)!=i)return!1;var r=t.valueOf,e=n(r)&&(e=a(r))&&a(e);return e?t==e||a(t)==e:o(t)}:o;t.exports=s},function(t,r,e){function n(t){return o(t,i(t))}var o=e(62),i=e(63);t.exports=n},function(t,r,e){function n(t){return function(){return t}}t.exports=n},function(t,r,e){function n(t){return o(t)?t:Object(t)}var o=e(12);t.exports=n},function(t,r,e){function n(t){for(var r=a(t),e=r.length,n=e&&t.length,f=n&&c(n)&&(i(t)||s.nonEnumArgs&&o(t)),p=-1,v=[];++p<e;){var d=r[p];(f&&u(d,n)||l.call(t,d))&&v.push(d)}return v}var o=e(47),i=e(29),u=e(54),c=e(30),a=e(63),s=e(64),f=Object.prototype,l=f.hasOwnProperty;t.exports=n},function(t,r,e){function n(t){return t}t.exports=n},function(t,r,e){function n(t,r){return t=+t,r=null==r?o:r,t>-1&&t%1==0&&r>t}var o=Math.pow(2,53)-1;t.exports=n},function(t,r,e){var n=e(65),o=n();t.exports=o},function(t,r,e){function n(t){var r=c(t),e=r.length;if(!e)return i(!0);if(1==e){var n=r[0],s=t[n];if(u(s))return function(t){return null==t?!1:t[n]===s&&(void 0!==s||n in a(t))}}for(var f=Array(e),l=Array(e);e--;)s=t[r[e]],f[e]=s,l[e]=u(s);return function(t){return null!=t&&o(a(t),r,f,l)}}var o=e(66),i=e(50),u=e(67),c=e(33),a=e(51);t.exports=n},function(t,r,e){function n(t,r){var e=c(t),n=a(t)&&s(r),v=t+"";return t=p(t),function(c){if(null==c)return!1;var a=v;if(c=l(c),!(!e&&n||a in c)){if(c=1==t.length?c:o(c,u(t,0,-1)),null==c)return!1;a=f(t),c=l(c)}return c[a]===r?void 0!==r||a in c:i(r,c[a],null,!0)}}var o=e(68),i=e(69),u=e(70),c=e(29),a=e(71),s=e(67),f=e(72),l=e(51),p=e(73);t.exports=n},function(t,r,e){function n(t){return u(t)?o(t):i(t)}var o=e(60),i=e(74),u=e(71);t.exports=n},function(t,r,e){function n(t){return t=o(t),t&&u.test(t)?t.replace(i,"\\$&"):t}var o=e(75),i=/[.*+?^${}()|[\]\/\\]/g,u=RegExp(i.source);t.exports=n},function(t,r,e){function n(t){return function(r){return null==r?void 0:r[t]}}t.exports=n},function(t,r,e){function n(t){var r;if(!i(t)||s.call(t)!=u||!a.call(t,"constructor")&&(r=t.constructor,"function"==typeof r&&!(r instanceof r)))return!1;var e;return o(t,function(t,r){e=r}),void 0===e||a.call(t,e)}var o=e(76),i=e(31),u="[object Object]",c=Object.prototype,a=c.hasOwnProperty,s=c.toString;t.exports=n},function(t,r,e){function n(t,r,e){e||(e={});for(var n=-1,o=r.length;++n<o;){var i=r[n];e[i]=t[i]}return e}t.exports=n},function(t,r,e){function n(t){if(null==t)return[];a(t)||(t=Object(t));var r=t.length;r=r&&c(r)&&(i(t)||s.nonEnumArgs&&o(t))&&r||0;for(var e=t.constructor,n=-1,f="function"==typeof e&&e.prototype===t,p=Array(r),v=r>0;++n<r;)p[n]=n+"";for(var d in t)v&&u(d,r)||"constructor"==d&&(f||!l.call(t,d))||p.push(d);return p}var o=e(47),i=e(29),u=e(54),c=e(30),a=e(12),s=e(64),f=Object.prototype,l=f.hasOwnProperty;t.exports=n},function(t,r,e){(function(r){var e=Object.prototype,n=(n=r.window)&&n.document,o=e.propertyIsEnumerable,i={};!function(t){var r=function(){this.x=t},e=[];r.prototype={valueOf:t,y:t};for(var u in new r)e.push(u);i.funcDecomp=/\bthis\b/.test(function(){return this}),i.funcNames="string"==typeof Function.name;try{i.dom=11===n.createDocumentFragment().nodeType}catch(c){i.dom=!1}try{i.nonEnumArgs=!o.call(arguments,1)}catch(c){i.nonEnumArgs=!0}}(1,0),t.exports=i}).call(r,function(){return this}())},function(t,r,e){function n(t){return function(r,e,n){for(var i=o(r),u=n(r),c=u.length,a=t?c:-1;t?a--:++a<c;){var s=u[a];if(e(i[s],s,i)===!1)break}return r}}var o=e(51);t.exports=n},function(t,r,e){function n(t,r,e,n,i){for(var u=-1,c=r.length,a=!i;++u<c;)if(a&&n[u]?e[u]!==t[r[u]]:!(r[u]in t))return!1;for(u=-1;++u<c;){var s=r[u],f=t[s],l=e[u];if(a&&n[u])var p=void 0!==f||s in t;else p=i?i(f,l,s):void 0,void 0===p&&(p=o(l,f,i,!0));if(!p)return!1}return!0}var o=e(69);t.exports=n},function(t,r,e){function n(t){return t===t&&(0===t?1/t>0:!o(t))}var o=e(12);t.exports=n},function(t,r,e){function n(t,r,e){if(null!=t){void 0!==e&&e in o(t)&&(r=[e]);for(var n=-1,i=r.length;null!=t&&++n<i;)var u=t=t[r[n]];return u}}var o=e(51);t.exports=n},function(t,r,e){function n(t,r,e,i,u,c){if(t===r)return 0!==t||1/t==1/r;var a=typeof t,s=typeof r;return"function"!=a&&"object"!=a&&"function"!=s&&"object"!=s||null==t||null==r?t!==t&&r!==r:o(t,r,n,e,i,u,c)}var o=e(77);t.exports=n},function(t,r,e){function n(t,r,e){var n=-1,o=t.length;r=null==r?0:+r||0,0>r&&(r=-r>o?0:o+r),e=void 0===e||e>o?o:+e||0,0>e&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+r];return i}t.exports=n},function(t,r,e){function n(t,r){var e=typeof t;if("string"==e&&c.test(t)||"number"==e)return!0;if(o(t))return!1;var n=!u.test(t);return n||null!=r&&t in i(r)}var o=e(29),i=e(51),u=/\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/,c=/^\w*$/;t.exports=n},function(t,r,e){function n(t){var r=t?t.length:0;return r?t[r-1]:void 0}t.exports=n},function(t,r,e){function n(t){if(i(t))return t;var r=[];return o(t).replace(u,function(t,e,n,o){r.push(n?o.replace(c,"$1"):e||t)}),r}var o=e(75),i=e(29),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,c=/\\(\\)?/g;t.exports=n},function(t,r,e){function n(t){var r=t+"";return t=i(t),function(e){return o(e,t,r)}}var o=e(68),i=e(73);t.exports=n},function(t,r,e){function n(t){return"string"==typeof t?t:null==t?"":t+""}t.exports=n},function(t,r,e){function n(t,r){return o(t,r,i)}var o=e(55),i=e(63);t.exports=n},function(t,r,e){function n(t,r,e,n,p,h,y){var m=c(t),b=c(r),x=f,g=f;m||(x=d.call(t),x==s?x=l:x!=l&&(m=a(t))),b||(g=d.call(r),g==s?g=l:g!=l&&(b=a(r)));var j=x==l,S=g==l,w=x==g;if(w&&!m&&!j)return i(t,r,x);if(!p){var M=j&&v.call(t,"__wrapped__"),O=S&&v.call(r,"__wrapped__");if(M||O)return e(M?t.value():t,O?r.value():r,n,p,h,y)}if(!w)return!1;h||(h=[]),y||(y=[]);for(var E=h.length;E--;)if(h[E]==t)return y[E]==r;h.push(t),y.push(r);var A=(m?o:u)(t,r,e,n,p,h,y);return h.pop(),y.pop(),A}var o=e(78),i=e(79),u=e(80),c=e(29),a=e(32),s="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,v=p.hasOwnProperty,d=p.toString;t.exports=n},function(t,r,e){function n(t,r,e,n,o,i,u){var c=-1,a=t.length,s=r.length,f=!0;if(a!=s&&!(o&&s>a))return!1;for(;f&&++c<a;){var l=t[c],p=r[c];if(f=void 0,n&&(f=o?n(p,l,c):n(l,p,c)),void 0===f)if(o)for(var v=s;v--&&(p=r[v],!(f=l&&l===p||e(l,p,n,o,i,u))););else f=l&&l===p||e(l,p,n,o,i,u)}return!!f}t.exports=n},function(t,r,e){function n(t,r,e){switch(e){case o:case i:return+t==+r;case u:return t.name==r.name&&t.message==r.message;case c:return t!=+t?r!=+r:0==t?1/t==1/r:t==+r;case a:case s:return t==r+""}return!1}var o="[object Boolean]",i="[object Date]",u="[object Error]",c="[object Number]",a="[object RegExp]",s="[object String]";t.exports=n},function(t,r,e){function n(t,r,e,n,i,c,a){var s=o(t),f=s.length,l=o(r),p=l.length;if(f!=p&&!i)return!1;for(var v=i,d=-1;++d<f;){var h=s[d],y=i?h in r:u.call(r,h);if(y){var m=t[h],b=r[h];y=void 0,n&&(y=i?n(b,m,h):n(m,b,h)),void 0===y&&(y=m&&m===b||e(m,b,n,i,c,a))}if(!y)return!1;v||(v="constructor"==h)}if(!v){var x=t.constructor,g=r.constructor;if(x!=g&&"constructor"in t&&"constructor"in r&&!("function"==typeof x&&x instanceof x&&"function"==typeof g&&g instanceof g))return!1}return!0}var o=e(33),i=Object.prototype,u=i.hasOwnProperty;t.exports=n}])});

@@ -5,3 +5,3 @@ var React = require('react');

var matchers = {};
var matchedQueries = {};
var matchedQueries;

@@ -26,3 +26,3 @@ var mediaChangeCallback;

init: function (mediaQueryOpts) {
if (!mediaQueryOpts || typeof window === 'undefined') {
if (!mediaQueryOpts) {
return;

@@ -32,4 +32,9 @@ }

Object.keys(mediaQueryOpts).forEach(function (key) {
matchers[key] = window.matchMedia(mediaQueryOpts[key]);
matchers[key].addListener(onMediaChange);
matchers[key] = (typeof window === 'undefined') ? {
matches: false,
media: mediaQueryOpts[key]
} : window.matchMedia(mediaQueryOpts[key]);
if (matchers[key].addListener) {
matchers[key].addListener(onMediaChange);
}
});

@@ -40,3 +45,2 @@ },

mediaChangeCallback = this.handleMediaChange;
mediaChangeCallback();
},

@@ -47,8 +51,6 @@

if (!matchers) {
return;
}
Object.keys(matchers).forEach(function (key) {
matchers[key].removeListener(onMediaChange);
if (matchers[key].removeListener) {
matchers[key].removeListener(onMediaChange);
}
});

@@ -58,7 +60,17 @@ },

getMatchedMedia: function () {
return matchedQueries;
return matchedQueries || this._updateMatchedMedia();
},
handleMediaChange: debounce(function () {
this._updateMatchedMedia();
this.forceUpdate();
}, 10, {
maxWait: 250
}),
_updateMatchedMedia: function () {
Object.keys(matchers).forEach(function (key) {
if (!matchedQueries) {
matchedQueries = {};
}
matchedQueries[key] = {

@@ -69,9 +81,6 @@ matches: matchers[key].matches,

});
this.forceUpdate();
}, 10, {
maxWait: 250
})
return matchedQueries;
}
};
module.exports = MatchMediaBase;
{
"name": "radium",
"version": "0.10.2",
"version": "0.10.3",
"description": "A set of tools to manage inline styles on React elements",

@@ -5,0 +5,0 @@ "main": "modules/index.js",

@@ -0,1 +1,3 @@

[![Travis Status](https://api.travis-ci.org/FormidableLabs/radium.svg)](https://travis-ci.org/FormidableLabs/radium)
# Radium

@@ -2,0 +4,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc