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

@emotion/core

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/core - npm Package Compare versions

Comparing version 10.0.17 to 10.0.20

6

CHANGELOG.md
# @emotion/core
## 10.0.20
### Patch Changes
- [38bb2b19](https://github.com/emotion-js/emotion/commit/38bb2b19d4ff1552116829e068664516d167a3f8) [#1530](https://github.com/emotion-js/emotion/pull/1530) Thanks [@Andarist](https://github.com/Andarist)! - Fix class not being applied when putting nil as css prop value on wrapper component
## 10.0.17

@@ -4,0 +10,0 @@

9

dist/core.browser.cjs.js

@@ -47,5 +47,2 @@ 'use strict';

var render = function render(cache, props, theme, ref) {
var type = props[typePropName];
var registeredStyles = [];
var className = '';
var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works

@@ -59,3 +56,5 @@ // not passing the registered cache to serializeStyles because it would

registeredStyles.push(cssProp);
var type = props[typePropName];
var registeredStyles = [cssProp];
var className = '';

@@ -112,3 +111,3 @@ if (props.className !== undefined) {

if (props == null || props.css == null) {
if (props == null || !hasOwnProperty.call(props, 'css')) {
// $FlowFixMe

@@ -115,0 +114,0 @@ return React.createElement.apply(undefined, args);

@@ -42,5 +42,2 @@ import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';

var render = function render(cache, props, theme, ref) {
var type = props[typePropName];
var registeredStyles = [];
var className = '';
var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works

@@ -54,3 +51,5 @@ // not passing the registered cache to serializeStyles because it would

registeredStyles.push(cssProp);
var type = props[typePropName];
var registeredStyles = [cssProp];
var className = '';

@@ -107,3 +106,3 @@ if (props.className !== undefined) {

if (props == null || props.css == null) {
if (props == null || !hasOwnProperty.call(props, 'css')) {
// $FlowFixMe

@@ -110,0 +109,0 @@ return createElement.apply(undefined, args);

@@ -89,5 +89,2 @@ 'use strict';

var render = function render(cache, props, theme, ref) {
var type = props[typePropName];
var registeredStyles = [];
var className = '';
var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works

@@ -101,3 +98,5 @@ // not passing the registered cache to serializeStyles because it would

registeredStyles.push(cssProp);
var type = props[typePropName];
var registeredStyles = [cssProp];
var className = '';

@@ -170,3 +169,3 @@ if (props.className !== undefined) {

if (props == null || props.css == null) {
if (props == null || !hasOwnProperty.call(props, 'css')) {
// $FlowFixMe

@@ -173,0 +172,0 @@ return React.createElement.apply(undefined, args);

@@ -43,5 +43,6 @@ "use strict";

var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", hasOwnProperty = Object.prototype.hasOwnProperty, render = function(cache, props, theme, ref) {
var type = props[typePropName], registeredStyles = [], className = "", cssProp = null === theme ? props.css : props.css(theme);
"string" == typeof cssProp && void 0 !== cache.registered[cssProp] && (cssProp = cache.registered[cssProp]),
registeredStyles.push(cssProp), void 0 !== props.className && (className = utils.getRegisteredStyles(cache.registered, registeredStyles, props.className));
var cssProp = null === theme ? props.css : props.css(theme);
"string" == typeof cssProp && void 0 !== cache.registered[cssProp] && (cssProp = cache.registered[cssProp]);
var type = props[typePropName], registeredStyles = [ cssProp ], className = "";
void 0 !== props.className && (className = utils.getRegisteredStyles(cache.registered, registeredStyles, props.className));
var serialized = serialize.serializeStyles(registeredStyles), rules = utils.insertStyles(cache, serialized, "string" == typeof type);

@@ -68,3 +69,3 @@ className += cache.key + "-" + serialized.name;

var args = arguments;
if (null == props || null == props.css) return React.createElement.apply(void 0, args);
if (null == props || !hasOwnProperty.call(props, "css")) return React.createElement.apply(void 0, args);
var argsLength = args.length, createElementArgArray = new Array(argsLength);

@@ -71,0 +72,0 @@ createElementArgArray[0] = Emotion;

@@ -84,5 +84,2 @@ import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';

var render = function render(cache, props, theme, ref) {
var type = props[typePropName];
var registeredStyles = [];
var className = '';
var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works

@@ -96,3 +93,5 @@ // not passing the registered cache to serializeStyles because it would

registeredStyles.push(cssProp);
var type = props[typePropName];
var registeredStyles = [cssProp];
var className = '';

@@ -165,3 +164,3 @@ if (props.className !== undefined) {

if (props == null || props.css == null) {
if (props == null || !hasOwnProperty.call(props, 'css')) {
// $FlowFixMe

@@ -168,0 +167,0 @@ return createElement.apply(undefined, args);

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).emotionCore={},e.React)}(this,function(e,t){"use strict";var r=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t};var a=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(a);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);n.insertRule(e,i?0:n.cssRules.length)}catch(e){}}else a.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function n(e){function t(e,t,a){var n=t.trim().split(p);t=n;var i=n.length,s=e.length;switch(s){case 0:case 1:var c=0;for(e=0===s?"":e[0]+" ";c<i;++c)t[c]=r(e,t[c],a).trim();break;default:var o=c=0;for(t=[];c<i;++c)for(var l=0;l<s;++l)t[o++]=r(e[l]+" ",n[c],a).trim()}return t}function r(e,t,r){var a=t.charCodeAt(0);switch(33>a&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,r,i){var s=e+";",c=2*t+3*r+4*i;if(944===c){e=s.indexOf(":",9)+1;var o=s.substring(e,s.length-1).trim();return o=s.substring(0,e).trim()+o+";",1===z||2===z&&n(o,1)?"-webkit-"+o+o:o}if(0===z||2===z&&!n(s,1))return s;switch(c){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(o=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+o+s;case 1005:return f.test(s)?s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s:s;case 1e3:switch(t=(o=s.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=s.replace(k,"tb");break;case 232:o=s.replace(k,"tb-rl");break;case 220:o=s.replace(k,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+o+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,c=(o=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:s=s.replace(o,"-webkit-"+o)+";"+s;break;case 207:case 102:s=s.replace(o,"-webkit-"+(102<c?"inline-":"")+"box")+";"+s.replace(o,"-webkit-"+o)+";"+s.replace(o,"-ms-"+o+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return o=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+o+"-ms-flex-"+o+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,i).replace(":fill-available",":stretch"):s.replace(o,"-webkit-"+o)+s.replace(o,"-moz-"+o.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+i&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+s}return s}function n(e,t){var r=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?a:a.replace(A,"$1"),r,t)}function i(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,a,n,i,s,c,l,u){for(var h,f=0,d=t;f<j;++f)switch(h=N[f].call(o,e,d,r,a,n,i,s,c,l,u)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==t)return d}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?z=1:(z=2,R=e):z=0),c}function o(e,r){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<j){var o=s(-1,r,c,c,_,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var h=function e(r,c,o,h,f){for(var d,p,b,k,w,C=0,A=0,x=0,E=0,N=0,R=0,G=b=d=0,P=0,I=0,T=0,D=0,W=o.length,L=W-1,q="",U="",F="",H="";P<W;){if(p=o.charCodeAt(P),P===L&&0!==A+E+x+C&&(0!==A&&(p=47===A?10:47),E=x=C=0,W++,L++),0===A+E+x+C){if(P===L&&(0<I&&(q=q.replace(u,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=o.charAt(P)}p=59}switch(p){case 123:for(d=(q=q.trim()).charCodeAt(0),b=1,D=++P;P<W;){switch(p=o.charCodeAt(P)){case 123:b++;break;case 125:b--;break;case 47:switch(p=o.charCodeAt(P+1)){case 42:case 47:e:{for(G=P+1;G<L;++G)switch(o.charCodeAt(G)){case 47:if(42===p&&42===o.charCodeAt(G-1)&&P+2!==G){P=G+1;break e}break;case 10:if(47===p){P=G+1;break e}}P=G}}break;case 91:p++;case 40:p++;case 34:case 39:for(;P++<L&&o.charCodeAt(P)!==p;);}if(0===b)break;P++}switch(b=o.substring(D,P),0===d&&(d=(q=q.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<I&&(q=q.replace(u,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:I=c;break;default:I=$}if(D=(b=e(c,I,b,p,f+1)).length,0<j&&(w=s(3,b,I=t($,q,T),c,_,O,D,p,f,h),q=I.join(""),void 0!==w&&0===(D=(b=w.trim()).length)&&(p=0,b="")),0<D)switch(p){case 115:q=q.replace(y,i);case 100:case 109:case 45:b=q+"{"+b+"}";break;case 107:b=(q=q.replace(m,"$1 $2"))+"{"+b+"}",b=1===z||2===z&&n("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=q+b,112===h&&(U+=b,b="")}else b="";break;default:b=e(c,t(c,q,T),b,h,f+1)}F+=b,b=T=I=G=d=0,q="",p=o.charCodeAt(++P);break;case 125:case 59:if(1<(D=(q=(0<I?q.replace(u,""):q).trim()).length))switch(0===G&&(d=q.charCodeAt(0),45===d||96<d&&123>d)&&(D=(q=q.replace(" ",":")).length),0<j&&void 0!==(w=s(1,q,c,r,_,O,U.length,h,f,h))&&0===(D=(q=w.trim()).length)&&(q="\0\0"),d=q.charCodeAt(0),p=q.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){H+=q+o.charAt(P);break}default:58!==q.charCodeAt(D-1)&&(U+=a(q,d,p,q.charCodeAt(2)))}T=I=G=d=0,q="",p=o.charCodeAt(++P)}}switch(p){case 13:case 10:47===A?A=0:0===1+d&&107!==h&&0<q.length&&(I=1,q+="\0"),0<j*M&&s(0,q,c,r,_,O,U.length,h,f,h),O=1,_++;break;case 59:case 125:if(0===A+E+x+C){O++;break}default:switch(O++,k=o.charAt(P),p){case 9:case 32:if(0===E+C+A)switch(N){case 44:case 58:case 9:case 32:k="";break;default:32!==p&&(k=" ")}break;case 0:k="\\0";break;case 12:k="\\f";break;case 11:k="\\v";break;case 38:0===E+A+C&&(I=T=1,k="\f"+k);break;case 108:if(0===E+A+C+S&&0<G)switch(P-G){case 2:112===N&&58===o.charCodeAt(P-3)&&(S=N);case 8:111===R&&(S=R)}break;case 58:0===E+A+C&&(G=P);break;case 44:0===A+x+E+C&&(I=1,k+="\r");break;case 34:case 39:0===A&&(E=E===p?0:0===E?p:E);break;case 91:0===E+A+x&&C++;break;case 93:0===E+A+x&&C--;break;case 41:0===E+A+C&&x--;break;case 40:if(0===E+A+C){if(0===d)switch(2*N+3*R){case 533:break;default:d=1}x++}break;case 64:0===A+x+E+C+G+b&&(b=1);break;case 42:case 47:if(!(0<E+C+x))switch(A){case 0:switch(2*p+3*o.charCodeAt(P+1)){case 235:A=47;break;case 220:D=P,A=42}break;case 42:47===p&&42===N&&D+2!==P&&(33===o.charCodeAt(D+2)&&(U+=o.substring(D,P+1)),k="",A=0)}}0===A&&(q+=k)}R=N,N=p,P++}if(0<(D=U.length)){if(I=c,0<j&&void 0!==(w=s(2,U,I,r,_,O,D,h,f,h))&&0===(U=w).length)return H+U+F;if(U=I.join(",")+"{"+U+"}",0!=z*S){switch(2!==z||n(U,2)||(S=0),S){case 111:U=U.replace(g,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}S=0}}return H+U+F}($,c,r,0,0);return 0<j&&(void 0!==(o=s(-2,h,c,c,_,O,h.length,0,0,0))&&(h=o)),"",S=0,O=_=1,h}var l=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,O=1,_=1,S=0,z=1,$=[],N=[],j=0,R=null,M=0;return o.use=function e(t){switch(t){case void 0:case null:j=N.length=0;break;default:if("function"==typeof t)N[j++]=t;else if("object"==typeof t)for(var r=0,a=t.length;r<a;++r)e(t[r]);else M=0|!!t}return e},o.set=c,void 0!==e&&c(e),o}function i(e){e&&s.current.insert(e+"}")}var s={current:null},c=function(e,t,r,a,n,c,o,l,u,h){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===h?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(i)}},o=t.createContext("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i,o=new n(t),l={};i=e.container||document.head;var u,h=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(h,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){l[e]=!0}),e.parentNode!==i&&i.appendChild(e)}),o.use(e.stylisPlugins)(c),u=function(e,t,r,a){var n=t.name;s.current=r,o(e,t.styles),a&&(f.inserted[n]=!0)};var f={key:r,sheet:new a({key:r,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:u};return f}():null),l=t.createContext({}),u=o.Provider;e.withEmotionCache=function(e){return t.forwardRef(function(r,a){return t.createElement(o.Consumer,null,function(t){return e(r,t,a)})})};function h(e,t,r){var a="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):a+=r+" "}),a}var f=function(e,t,r){var a=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[a]&&(e.registered[a]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert("."+a,n,e.sheet,!0);n=n.next}while(void 0!==n)}};var d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var p,b,m=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},k=(p=function(e){return g(e)?e:e.replace(m,"-$&").toLowerCase()},b={},function(e){return void 0===b[e]&&(b[e]=p(e)),b[e]}),y=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,function(e,t,r){return C={name:t,styles:r,next:C},t})}return 1===d[e]||g(e)||"number"!=typeof t||0===t?t:t+"px"};function w(e,t,r,a){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return C={name:r.name,styles:r.styles,next:C},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)C={name:n.name,styles:n.styles,next:C},n=n.next;return r.styles}return function(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=w(e,t,r[n],!1);else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?a+=i+"{"+t[s]+"}":a+=k(i)+":"+y(i,s)+";";else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=w(e,t,s,!1);switch(i){case"animation":case"animationName":a+=k(i)+":"+c+";";break;default:a+=i+"{"+c+"}"}}else for(var o=0;o<s.length;o++)a+=k(i)+":"+y(i,s[o])+";"}return a}(e,t,r);case"function":if(void 0!==e){var i=C,s=r(e);return C=i,w(e,t,s,a)}default:if(null==t)return r;var c=t[r];return void 0===c||a?r:c}}var C,A=/label:\s*([^\s;\n{]+)\s*;/g,x=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,n="";C=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,n+=w(r,t,i,!1)):n+=i[0];for(var s=1;s<e.length;s++)n+=w(r,t,e[s],46===n.charCodeAt(n.length-1)),a&&(n+=i[s]);A.lastIndex=0;for(var c,o="";null!==(c=A.exec(n));)o+="-"+c[1];return{name:function(e){for(var t,r=e.length,a=r^r,n=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++n;switch(r){case 3:a^=(255&e.charCodeAt(n+2))<<16;case 2:a^=(255&e.charCodeAt(n+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(n)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(n)+o,styles:n,next:C}},E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=Object.prototype.hasOwnProperty,_=function(e,r,a,n){var i=r[E],s=[],c="",o=null===a?r.css:r.css(a);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]),s.push(o),void 0!==r.className&&(c=h(e.registered,s,r.className));var l=x(s);f(e,l,"string"==typeof i);c+=e.key+"-"+l.name;var u={};for(var d in r)O.call(r,d)&&"css"!==d&&d!==E&&(u[d]=r[d]);return u.ref=n,u.className=c,t.createElement(i,u)},S=e.withEmotionCache(function(e,r,a){return"function"==typeof e.css?t.createElement(l.Consumer,null,function(t){return _(r,e,t,a)}):_(r,e,null,a)}),z=e.withEmotionCache(function(e,r){var a=e.styles;if("function"==typeof a)return t.createElement(l.Consumer,null,function(e){var n=x([a(e)]);return t.createElement($,{serialized:n,cache:r})});var n=x([a]);return t.createElement($,{serialized:n,cache:r})}),$=function(e){function t(t,r,a){return e.call(this,t,r,a)||this}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&f(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(t.Component);function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return x(t)}var j=e.withEmotionCache(function(e,r){return t.createElement(l.Consumer,null,function(t){var a=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var n=x(t,r.registered);return f(r,n,!1),r.key+"-"+n.name},n={css:a,cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,r){var a=[],n=h(e,a,r);return a.length<2?r:n+t(a)}(r.registered,a,function e(t){for(var r=t.length,a=0,n="";a<r;a++){var i=t[a];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var c in s="",i)i[c]&&c&&(s&&(s+=" "),s+=c);break;default:s=i}s&&(n&&(n+=" "),n+=s)}}return n}(t))},theme:t},i=e.children(n);return!0,i})});e.CacheProvider=u,e.ClassNames=j,e.Global=z,e.ThemeContext=l,e.css=N,e.jsx=function(e,r){var a=arguments;if(null==r||null==r.css)return t.createElement.apply(void 0,a);var n=a.length,i=new Array(n);i[0]=S;var s={};for(var c in r)O.call(r,c)&&(s[c]=r[c]);s[E]=e,i[1]=s;for(var o=2;o<n;o++)i[o]=a[o];return t.createElement.apply(null,i)},e.keyframes=function(){var e=N.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).emotionCore={},e.React)}(this,function(e,t){"use strict";var r=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t};var a=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(a);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);n.insertRule(e,i?0:n.cssRules.length)}catch(e){}}else a.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function n(e){function t(e,t,a){var n=t.trim().split(p);t=n;var i=n.length,s=e.length;switch(s){case 0:case 1:var c=0;for(e=0===s?"":e[0]+" ";c<i;++c)t[c]=r(e,t[c],a).trim();break;default:var o=c=0;for(t=[];c<i;++c)for(var l=0;l<s;++l)t[o++]=r(e[l]+" ",n[c],a).trim()}return t}function r(e,t,r){var a=t.charCodeAt(0);switch(33>a&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,r,i){var s=e+";",c=2*t+3*r+4*i;if(944===c){e=s.indexOf(":",9)+1;var o=s.substring(e,s.length-1).trim();return o=s.substring(0,e).trim()+o+";",1===z||2===z&&n(o,1)?"-webkit-"+o+o:o}if(0===z||2===z&&!n(s,1))return s;switch(c){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(E,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(o=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+o+s;case 1005:return f.test(s)?s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s:s;case 1e3:switch(t=(o=s.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=s.replace(k,"tb");break;case 232:o=s.replace(k,"tb-rl");break;case 220:o=s.replace(k,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+o+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,c=(o=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:s=s.replace(o,"-webkit-"+o)+";"+s;break;case 207:case 102:s=s.replace(o,"-webkit-"+(102<c?"inline-":"")+"box")+";"+s.replace(o,"-webkit-"+o)+";"+s.replace(o,"-ms-"+o+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return o=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+o+"-ms-flex-"+o+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,i).replace(":fill-available",":stretch"):s.replace(o,"-webkit-"+o)+s.replace(o,"-moz-"+o.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+i&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+s}return s}function n(e,t){var r=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?a:a.replace(A,"$1"),r,t)}function i(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,a,n,i,s,c,l,u){for(var h,f=0,d=t;f<j;++f)switch(h=N[f].call(o,e,d,r,a,n,i,s,c,l,u)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==t)return d}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?z=1:(z=2,R=e):z=0),c}function o(e,r){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<j){var o=s(-1,r,c,c,_,O,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var h=function e(r,c,o,h,f){for(var d,p,b,k,w,C=0,A=0,x=0,E=0,N=0,R=0,G=b=d=0,P=0,I=0,T=0,D=0,W=o.length,L=W-1,q="",U="",F="",H="";P<W;){if(p=o.charCodeAt(P),P===L&&0!==A+E+x+C&&(0!==A&&(p=47===A?10:47),E=x=C=0,W++,L++),0===A+E+x+C){if(P===L&&(0<I&&(q=q.replace(u,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=o.charAt(P)}p=59}switch(p){case 123:for(d=(q=q.trim()).charCodeAt(0),b=1,D=++P;P<W;){switch(p=o.charCodeAt(P)){case 123:b++;break;case 125:b--;break;case 47:switch(p=o.charCodeAt(P+1)){case 42:case 47:e:{for(G=P+1;G<L;++G)switch(o.charCodeAt(G)){case 47:if(42===p&&42===o.charCodeAt(G-1)&&P+2!==G){P=G+1;break e}break;case 10:if(47===p){P=G+1;break e}}P=G}}break;case 91:p++;case 40:p++;case 34:case 39:for(;P++<L&&o.charCodeAt(P)!==p;);}if(0===b)break;P++}switch(b=o.substring(D,P),0===d&&(d=(q=q.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<I&&(q=q.replace(u,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:I=c;break;default:I=$}if(D=(b=e(c,I,b,p,f+1)).length,0<j&&(w=s(3,b,I=t($,q,T),c,_,O,D,p,f,h),q=I.join(""),void 0!==w&&0===(D=(b=w.trim()).length)&&(p=0,b="")),0<D)switch(p){case 115:q=q.replace(y,i);case 100:case 109:case 45:b=q+"{"+b+"}";break;case 107:b=(q=q.replace(m,"$1 $2"))+"{"+b+"}",b=1===z||2===z&&n("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=q+b,112===h&&(U+=b,b="")}else b="";break;default:b=e(c,t(c,q,T),b,h,f+1)}F+=b,b=T=I=G=d=0,q="",p=o.charCodeAt(++P);break;case 125:case 59:if(1<(D=(q=(0<I?q.replace(u,""):q).trim()).length))switch(0===G&&(d=q.charCodeAt(0),45===d||96<d&&123>d)&&(D=(q=q.replace(" ",":")).length),0<j&&void 0!==(w=s(1,q,c,r,_,O,U.length,h,f,h))&&0===(D=(q=w.trim()).length)&&(q="\0\0"),d=q.charCodeAt(0),p=q.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){H+=q+o.charAt(P);break}default:58!==q.charCodeAt(D-1)&&(U+=a(q,d,p,q.charCodeAt(2)))}T=I=G=d=0,q="",p=o.charCodeAt(++P)}}switch(p){case 13:case 10:47===A?A=0:0===1+d&&107!==h&&0<q.length&&(I=1,q+="\0"),0<j*M&&s(0,q,c,r,_,O,U.length,h,f,h),O=1,_++;break;case 59:case 125:if(0===A+E+x+C){O++;break}default:switch(O++,k=o.charAt(P),p){case 9:case 32:if(0===E+C+A)switch(N){case 44:case 58:case 9:case 32:k="";break;default:32!==p&&(k=" ")}break;case 0:k="\\0";break;case 12:k="\\f";break;case 11:k="\\v";break;case 38:0===E+A+C&&(I=T=1,k="\f"+k);break;case 108:if(0===E+A+C+S&&0<G)switch(P-G){case 2:112===N&&58===o.charCodeAt(P-3)&&(S=N);case 8:111===R&&(S=R)}break;case 58:0===E+A+C&&(G=P);break;case 44:0===A+x+E+C&&(I=1,k+="\r");break;case 34:case 39:0===A&&(E=E===p?0:0===E?p:E);break;case 91:0===E+A+x&&C++;break;case 93:0===E+A+x&&C--;break;case 41:0===E+A+C&&x--;break;case 40:if(0===E+A+C){if(0===d)switch(2*N+3*R){case 533:break;default:d=1}x++}break;case 64:0===A+x+E+C+G+b&&(b=1);break;case 42:case 47:if(!(0<E+C+x))switch(A){case 0:switch(2*p+3*o.charCodeAt(P+1)){case 235:A=47;break;case 220:D=P,A=42}break;case 42:47===p&&42===N&&D+2!==P&&(33===o.charCodeAt(D+2)&&(U+=o.substring(D,P+1)),k="",A=0)}}0===A&&(q+=k)}R=N,N=p,P++}if(0<(D=U.length)){if(I=c,0<j&&void 0!==(w=s(2,U,I,r,_,O,D,h,f,h))&&0===(U=w).length)return H+U+F;if(U=I.join(",")+"{"+U+"}",0!=z*S){switch(2!==z||n(U,2)||(S=0),S){case 111:U=U.replace(g,":-moz-$1")+U;break;case 112:U=U.replace(v,"::-webkit-input-$1")+U.replace(v,"::-moz-$1")+U.replace(v,":-ms-input-$1")+U}S=0}}return H+U+F}($,c,r,0,0);return 0<j&&(void 0!==(o=s(-2,h,c,c,_,O,h.length,0,0,0))&&(h=o)),"",S=0,O=_=1,h}var l=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,O=1,_=1,S=0,z=1,$=[],N=[],j=0,R=null,M=0;return o.use=function e(t){switch(t){case void 0:case null:j=N.length=0;break;default:if("function"==typeof t)N[j++]=t;else if("object"==typeof t)for(var r=0,a=t.length;r<a;++r)e(t[r]);else M=0|!!t}return e},o.set=c,void 0!==e&&c(e),o}function i(e){e&&s.current.insert(e+"}")}var s={current:null},c=function(e,t,r,a,n,c,o,l,u,h){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===h?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(i)}},o=t.createContext("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i,o=new n(t),l={};i=e.container||document.head;var u,h=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(h,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){l[e]=!0}),e.parentNode!==i&&i.appendChild(e)}),o.use(e.stylisPlugins)(c),u=function(e,t,r,a){var n=t.name;s.current=r,o(e,t.styles),a&&(f.inserted[n]=!0)};var f={key:r,sheet:new a({key:r,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:u};return f}():null),l=t.createContext({}),u=o.Provider;e.withEmotionCache=function(e){return t.forwardRef(function(r,a){return t.createElement(o.Consumer,null,function(t){return e(r,t,a)})})};function h(e,t,r){var a="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):a+=r+" "}),a}var f=function(e,t,r){var a=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[a]&&(e.registered[a]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert("."+a,n,e.sheet,!0);n=n.next}while(void 0!==n)}};var d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var p,b,m=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,g=function(e){return 45===e.charCodeAt(1)},k=(p=function(e){return g(e)?e:e.replace(m,"-$&").toLowerCase()},b={},function(e){return void 0===b[e]&&(b[e]=p(e)),b[e]}),y=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,function(e,t,r){return C={name:t,styles:r,next:C},t})}return 1===d[e]||g(e)||"number"!=typeof t||0===t?t:t+"px"};function w(e,t,r,a){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return C={name:r.name,styles:r.styles,next:C},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)C={name:n.name,styles:n.styles,next:C},n=n.next;return r.styles}return function(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=w(e,t,r[n],!1);else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?a+=i+"{"+t[s]+"}":a+=k(i)+":"+y(i,s)+";";else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=w(e,t,s,!1);switch(i){case"animation":case"animationName":a+=k(i)+":"+c+";";break;default:a+=i+"{"+c+"}"}}else for(var o=0;o<s.length;o++)a+=k(i)+":"+y(i,s[o])+";"}return a}(e,t,r);case"function":if(void 0!==e){var i=C,s=r(e);return C=i,w(e,t,s,a)}default:if(null==t)return r;var c=t[r];return void 0===c||a?r:c}}var C,A=/label:\s*([^\s;\n{]+)\s*;/g,x=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,n="";C=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,n+=w(r,t,i,!1)):n+=i[0];for(var s=1;s<e.length;s++)n+=w(r,t,e[s],46===n.charCodeAt(n.length-1)),a&&(n+=i[s]);A.lastIndex=0;for(var c,o="";null!==(c=A.exec(n));)o+="-"+c[1];return{name:function(e){for(var t,r=e.length,a=r^r,n=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++n;switch(r){case 3:a^=(255&e.charCodeAt(n+2))<<16;case 2:a^=(255&e.charCodeAt(n+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(n)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(n)+o,styles:n,next:C}},E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=Object.prototype.hasOwnProperty,_=function(e,r,a,n){var i=null===a?r.css:r.css(a);"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var s=r[E],c=[i],o="";void 0!==r.className&&(o=h(e.registered,c,r.className));var l=x(c);f(e,l,"string"==typeof s);o+=e.key+"-"+l.name;var u={};for(var d in r)O.call(r,d)&&"css"!==d&&d!==E&&(u[d]=r[d]);return u.ref=n,u.className=o,t.createElement(s,u)},S=e.withEmotionCache(function(e,r,a){return"function"==typeof e.css?t.createElement(l.Consumer,null,function(t){return _(r,e,t,a)}):_(r,e,null,a)}),z=e.withEmotionCache(function(e,r){var a=e.styles;if("function"==typeof a)return t.createElement(l.Consumer,null,function(e){var n=x([a(e)]);return t.createElement($,{serialized:n,cache:r})});var n=x([a]);return t.createElement($,{serialized:n,cache:r})}),$=function(e){function t(t,r,a){return e.call(this,t,r,a)||this}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new a({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&f(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(t.Component);function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return x(t)}var j=e.withEmotionCache(function(e,r){return t.createElement(l.Consumer,null,function(t){var a=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var n=x(t,r.registered);return f(r,n,!1),r.key+"-"+n.name},n={css:a,cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,r){var a=[],n=h(e,a,r);return a.length<2?r:n+t(a)}(r.registered,a,function e(t){for(var r=t.length,a=0,n="";a<r;a++){var i=t[a];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))s=e(i);else for(var c in s="",i)i[c]&&c&&(s&&(s+=" "),s+=c);break;default:s=i}s&&(n&&(n+=" "),n+=s)}}return n}(t))},theme:t},i=e.children(n);return!0,i})});e.CacheProvider=u,e.ClassNames=j,e.Global=z,e.ThemeContext=l,e.css=N,e.jsx=function(e,r){var a=arguments;if(null==r||!O.call(r,"css"))return t.createElement.apply(void 0,a);var n=a.length,i=new Array(n);i[0]=S;var s={};for(var c in r)O.call(r,c)&&(s[c]=r[c]);s[E]=e,i[1]=s;for(var o=2;o<n;o++)i[o]=a[o];return t.createElement.apply(null,i)},e.keyframes=function(){var e=N.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=core.umd.min.js.map
{
"name": "@emotion/core",
"version": "10.0.17",
"version": "10.0.20",
"main": "dist/core.cjs.js",

@@ -40,2 +40,3 @@ "module": "dist/core.esm.js",

"html-tag-names": "^1.1.2",
"react": "^16.5.2",
"svg-tag-names": "^1.1.1"

@@ -42,0 +43,0 @@ },

@@ -20,7 +20,2 @@ // @flow

let render = (cache, props, theme: null | Object, ref) => {
let type = props[typePropName]
let registeredStyles = []
let className = ''
let cssProp = theme === null ? props.css : props.css(theme)

@@ -35,3 +30,5 @@

registeredStyles.push(cssProp)
let type = props[typePropName]
let registeredStyles = [cssProp]
let className = ''

@@ -124,3 +121,3 @@ if (props.className !== undefined) {

if (props == null || props.css == null) {
if (props == null || !hasOwnProperty.call(props, 'css')) {
// $FlowFixMe

@@ -127,0 +124,0 @@ return React.createElement.apply(undefined, args)

Sorry, the diff of this file is not supported yet

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