@emotion/core
Advanced tools
Comparing version 11.0.0-next.2 to 11.0.0-next.3
# @emotion/core | ||
## 11.0.0-next.3 | ||
### Patch Changes | ||
- [`a085003d`](https://github.com/emotion-js/emotion/commit/a085003d4c8ca284c116668d7217fb747802ed85) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@Andarist](https://github.com/Andarist)! - Add missing `#__PURE__` annotations | ||
- Updated dependencies [[`8a896a31`](https://github.com/emotion-js/emotion/commit/8a896a31434a1d2f69e1f1467c446c884c929387), [`a085003d`](https://github.com/emotion-js/emotion/commit/a085003d4c8ca284c116668d7217fb747802ed85), [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8)]: | ||
- @emotion/serialize@0.11.15-next.1 | ||
- @emotion/styled@11.0.0-next.3 | ||
- @emotion/css@11.0.0-next.3 | ||
- emotion-theming@11.0.0-next.3 | ||
## 11.0.0-next.2 | ||
@@ -4,0 +15,0 @@ |
@@ -290,3 +290,5 @@ 'use strict'; | ||
var ClassNames = exports.withEmotionCache(function (props, cache) { | ||
var ClassNames = | ||
/* #__PURE__ */ | ||
exports.withEmotionCache(function (props, cache) { | ||
var hasRendered = false; | ||
@@ -293,0 +295,0 @@ |
@@ -285,3 +285,5 @@ import { createContext, forwardRef, useContext, createElement, useRef, useLayoutEffect } from 'react'; | ||
var ClassNames = withEmotionCache(function (props, cache) { | ||
var ClassNames = | ||
/* #__PURE__ */ | ||
withEmotionCache(function (props, cache) { | ||
var hasRendered = false; | ||
@@ -288,0 +290,0 @@ |
@@ -358,3 +358,5 @@ 'use strict'; | ||
var ClassNames = exports.withEmotionCache(function (props, cache) { | ||
var ClassNames = | ||
/* #__PURE__ */ | ||
exports.withEmotionCache(function (props, cache) { | ||
var rules = ''; | ||
@@ -361,0 +363,0 @@ var serializedHashes = ''; |
@@ -14,6 +14,6 @@ "use strict"; | ||
exports.withEmotionCache = function(func) { | ||
return React.forwardRef(function(props, ref) { | ||
return React.forwardRef((function(props, ref) { | ||
var cache = React.useContext(EmotionCacheContext); | ||
return func(props, cache, ref); | ||
}); | ||
})); | ||
}, isBrowser || (exports.withEmotionCache = function(func) { | ||
@@ -28,3 +28,3 @@ return function(props) { | ||
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", hasOwnProperty = Object.prototype.hasOwnProperty, Emotion = exports.withEmotionCache(function(props, cache, ref) { | ||
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", hasOwnProperty = Object.prototype.hasOwnProperty, Emotion = exports.withEmotionCache((function(props, cache, ref) { | ||
var cssProp = props.css; | ||
@@ -50,3 +50,3 @@ "function" == typeof cssProp && (cssProp = cssProp(React.useContext(ThemeContext))), | ||
return ele; | ||
}), jsx = function(type, props) { | ||
})), jsx = function(type, props) { | ||
var args = arguments; | ||
@@ -61,3 +61,3 @@ if (null == props || !hasOwnProperty.call(props, "css")) return React.createElement.apply(void 0, args); | ||
return React.createElement.apply(null, createElementArgArray); | ||
}, Global = exports.withEmotionCache(function(props, cache) { | ||
}, Global = exports.withEmotionCache((function(props, cache) { | ||
var styles = props.styles, serialized = serialize.serializeStyles([ "function" == typeof styles ? styles(React.useContext(ThemeContext)) : styles ]); | ||
@@ -77,3 +77,3 @@ if (!isBrowser) { | ||
var sheetRef = React.useRef(); | ||
return React.useLayoutEffect(function() { | ||
return React.useLayoutEffect((function() { | ||
var sheet$1 = new sheet.StyleSheet({ | ||
@@ -88,3 +88,3 @@ key: cache.key + "-global", | ||
}; | ||
}, [ cache ]), React.useLayoutEffect(function() { | ||
}), [ cache ]), React.useLayoutEffect((function() { | ||
void 0 !== serialized.next && utils.insertStyles(cache, serialized.next, !0); | ||
@@ -97,4 +97,4 @@ var sheet = sheetRef.current; | ||
cache.insert("", serialized, sheet, !1); | ||
}, [ cache, serialized.name ]), null; | ||
}), keyframes = function() { | ||
}), [ cache, serialized.name ]), null; | ||
})), keyframes = function() { | ||
var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name; | ||
@@ -137,3 +137,3 @@ return { | ||
var ClassNames = exports.withEmotionCache(function(props, cache) { | ||
var ClassNames = exports.withEmotionCache((function(props, cache) { | ||
var _ref, rules = "", serializedHashes = "", css = function() { | ||
@@ -159,3 +159,3 @@ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; | ||
}, _ref.nonce = cache.sheet.nonce, _ref)), ele); | ||
}); | ||
})); | ||
@@ -162,0 +162,0 @@ exports.css = css, exports.CacheProvider = CacheProvider, exports.ClassNames = ClassNames, |
@@ -353,3 +353,5 @@ import { createContext, forwardRef, useContext, createElement, Fragment, useRef, useLayoutEffect } from 'react'; | ||
var ClassNames = withEmotionCache(function (props, cache) { | ||
var ClassNames = | ||
/* #__PURE__ */ | ||
withEmotionCache(function (props, cache) { | ||
var rules = ''; | ||
@@ -356,0 +358,0 @@ var serializedHashes = ''; |
@@ -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(){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 a(e){function t(e,t,a){var n=t.trim().split(b);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(p,"$1"+e.trim());case 58:return e.trim()+t.replace(p,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(p,(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===N||2===N&&n(o,1)?"-webkit-"+o+o:o}if(0===N||2===N&&!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(O,"$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 h.test(s)?s.replace(f,":-webkit-")+s.replace(f,":-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(y," or ($1)").substring(4):"("+t+")"}function s(e,t,r,a,n,i,s,c,l,u){for(var f,h=0,d=t;h<z;++h)switch(f=j[h].call(o,e,d,r,a,n,i,s,c,l,u)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?N=1:(N=2,R=e):N=0),c}function o(e,r){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<z){var o=s(-1,r,c,c,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var f=function e(r,c,o,f,h){for(var d,b,p,k,y,C=0,A=0,x=0,O=0,j=0,R=0,M=p=d=0,P=0,I=0,T=0,L=0,W=o.length,q=W-1,D="",F="",H="",B="";P<W;){if(b=o.charCodeAt(P),P===q&&0!==A+O+x+C&&(0!==A&&(b=47===A?10:47),O=x=C=0,W++,q++),0===A+O+x+C){if(P===q&&(0<I&&(D=D.replace(u,"")),0<D.trim().length)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:D+=o.charAt(P)}b=59}switch(b){case 123:for(d=(D=D.trim()).charCodeAt(0),p=1,L=++P;P<W;){switch(b=o.charCodeAt(P)){case 123:p++;break;case 125:p--;break;case 47:switch(b=o.charCodeAt(P+1)){case 42:case 47:e:{for(M=P+1;M<q;++M)switch(o.charCodeAt(M)){case 47:if(42===b&&42===o.charCodeAt(M-1)&&P+2!==M){P=M+1;break e}break;case 10:if(47===b){P=M+1;break e}}P=M}}break;case 91:b++;case 40:b++;case 34:case 39:for(;P++<q&&o.charCodeAt(P)!==b;);}if(0===p)break;P++}switch(p=o.substring(L,P),0===d&&(d=(D=D.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<I&&(D=D.replace(u,"")),b=D.charCodeAt(1)){case 100:case 109:case 115:case 45:I=c;break;default:I=$}if(L=(p=e(c,I,p,b,h+1)).length,0<z&&(y=s(3,p,I=t($,D,T),c,S,E,L,b,h,f),D=I.join(""),void 0!==y&&0===(L=(p=y.trim()).length)&&(b=0,p="")),0<L)switch(b){case 115:D=D.replace(w,i);case 100:case 109:case 45:p=D+"{"+p+"}";break;case 107:p=(D=D.replace(m,"$1 $2"))+"{"+p+"}",p=1===N||2===N&&n("@"+p,3)?"@-webkit-"+p+"@"+p:"@"+p;break;default:p=D+p,112===f&&(F+=p,p="")}else p="";break;default:p=e(c,t(c,D,T),p,f,h+1)}H+=p,p=T=I=M=d=0,D="",b=o.charCodeAt(++P);break;case 125:case 59:if(1<(L=(D=(0<I?D.replace(u,""):D).trim()).length))switch(0===M&&(d=D.charCodeAt(0),45===d||96<d&&123>d)&&(L=(D=D.replace(" ",":")).length),0<z&&void 0!==(y=s(1,D,c,r,S,E,F.length,f,h,f))&&0===(L=(D=y.trim()).length)&&(D="\0\0"),d=D.charCodeAt(0),b=D.charCodeAt(1),d){case 0:break;case 64:if(105===b||99===b){B+=D+o.charAt(P);break}default:58!==D.charCodeAt(L-1)&&(F+=a(D,d,b,D.charCodeAt(2)))}T=I=M=d=0,D="",b=o.charCodeAt(++P)}}switch(b){case 13:case 10:47===A?A=0:0===1+d&&107!==f&&0<D.length&&(I=1,D+="\0"),0<z*G&&s(0,D,c,r,S,E,F.length,f,h,f),E=1,S++;break;case 59:case 125:if(0===A+O+x+C){E++;break}default:switch(E++,k=o.charAt(P),b){case 9:case 32:if(0===O+C+A)switch(j){case 44:case 58:case 9:case 32:k="";break;default:32!==b&&(k=" ")}break;case 0:k="\\0";break;case 12:k="\\f";break;case 11:k="\\v";break;case 38:0===O+A+C&&(I=T=1,k="\f"+k);break;case 108:if(0===O+A+C+_&&0<M)switch(P-M){case 2:112===j&&58===o.charCodeAt(P-3)&&(_=j);case 8:111===R&&(_=R)}break;case 58:0===O+A+C&&(M=P);break;case 44:0===A+x+O+C&&(I=1,k+="\r");break;case 34:case 39:0===A&&(O=O===b?0:0===O?b:O);break;case 91:0===O+A+x&&C++;break;case 93:0===O+A+x&&C--;break;case 41:0===O+A+C&&x--;break;case 40:if(0===O+A+C){if(0===d)switch(2*j+3*R){case 533:break;default:d=1}x++}break;case 64:0===A+x+O+C+M+p&&(p=1);break;case 42:case 47:if(!(0<O+C+x))switch(A){case 0:switch(2*b+3*o.charCodeAt(P+1)){case 235:A=47;break;case 220:L=P,A=42}break;case 42:47===b&&42===j&&L+2!==P&&(33===o.charCodeAt(L+2)&&(F+=o.substring(L,P+1)),k="",A=0)}}0===A&&(D+=k)}R=j,j=b,P++}if(0<(L=F.length)){if(I=c,0<z&&void 0!==(y=s(2,F,I,r,S,E,L,f,h,f))&&0===(F=y).length)return B+F+H;if(F=I.join(",")+"{"+F+"}",0!=N*_){switch(2!==N||n(F,2)||(_=0),_){case 111:F=F.replace(g,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return B+F+H}($,c,r,0,0);return 0<z&&(void 0!==(o=s(-2,f,c,c,S,E,f.length,0,0,0))&&(f=o)),"",_=0,E=S=1,f}var l=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,d=/([,: ])(transform)/g,b=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,E=1,S=1,_=0,N=1,$=[],j=[],z=0,R=null,G=0;return o.use=function e(t){switch(t){case void 0:case null:z=j.length=0;break;default:if("function"==typeof t)j[z++]=t;else if("object"==typeof t)for(var r=0,a=t.length;r<a;++r)e(t[r]);else G=0|!!t}return e},o.set=c,void 0!==e&&c(e),o}function n(e){e&&i.current.insert(e+"}")}var i={current:null},s=function(e,t,r,a,s,c,o,l,u,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return i.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 i.current.insert(r[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(n)}},c=t.createContext("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var c,o=new a(t),l={};c=e.container||document.head;var u,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){l[e]=!0}),e.parentNode!==c&&c.appendChild(e)}),o.use(e.stylisPlugins)(s),u=function(e,t,r,a){var n=t.name;i.current=r,o(e,t.styles),a&&(h.inserted[n]=!0)};var h={key:n,sheet:new r({key:n,container:c,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:u};return h}():null),o=t.createContext({}),l=c.Provider;e.withEmotionCache=function(e){return t.forwardRef(function(r,a){var n=t.useContext(c);return e(r,n,a)})};function u(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 h={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 d,b,p=/[A-Z]|^ms/g,m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v=function(e){return 45===e.charCodeAt(1)},g=function(e){return null!=e&&"boolean"!=typeof e},k=(d=function(e){return v(e)?e:e.replace(p,"-$&").toLowerCase()},b={},function(e){return void 0===b[e]&&(b[e]=d(e)),b[e]}),w=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(m,function(e,t,r){return C={name:t,styles:r,next:C},t})}return 1===h[e]||v(e)||"number"!=typeof t||0===t?t:t+"px"};function y(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+=y(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]+"}":g(s)&&(a+=k(i)+":"+w(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=y(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++)g(s[o])&&(a+=k(i)+":"+w(i,s[o])+";")}return a}(e,t,r);case"function":if(void 0!==e){var i=C,s=r(e);return C=i,y(e,t,s,a)}}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+=y(r,t,i,!1)):n+=i[0];for(var s=1;s<e.length;s++)n+=y(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}},O="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",E=Object.prototype.hasOwnProperty,S=e.withEmotionCache(function(e,r,a){var n=e.css;"function"==typeof n&&(n=n(t.useContext(o))),"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var i=e[O],s=[n],c="";"string"==typeof e.className?c=u(r.registered,s,e.className):null!=e.className&&(c=e.className+" ");var l=x(s);f(r,l,"string"==typeof i);c+=r.key+"-"+l.name;var h={};for(var d in e)E.call(e,d)&&"css"!==d&&d!==O&&(h[d]=e[d]);return h.ref=a,h.className=c,t.createElement(i,h)}),_=e.withEmotionCache(function(e,a){var n=e.styles,i=x(["function"==typeof n?n(t.useContext(o)):n]),s=t.useRef();return t.useLayoutEffect(function(){var e=new r({key:a.key+"-global",nonce:a.sheet.nonce,container:a.sheet.container}),t=document.querySelector("style[data-emotion-"+a.key+'="'+i.name+'"]');return null!==t&&e.tags.push(t),a.sheet.tags.length&&(e.before=a.sheet.tags[0]),s.current=e,function(){e.flush()}},[a]),t.useLayoutEffect(function(){void 0!==i.next&&f(a,i.next,!0);var e=s.current;if(e.tags.length){var t=e.tags[e.tags.length-1].nextElementSibling;e.before=t,e.flush()}a.insert("",i,e,!1)},[a,i.name]),null});function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return x(t)}var $=e.withEmotionCache(function(e,r){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=u(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.useContext(o)},i=e.children(n);return!0,i});e.CacheProvider=l,e.ClassNames=$,e.Global=_,e.ThemeContext=o,e.css=N,e.jsx=function(e,r){var a=arguments;if(null==r||!E.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)E.call(r,c)&&(s[c]=r[c]);s[O]=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(){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 a(e){function t(e,t,a){var n=t.trim().split(b);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(p,"$1"+e.trim());case 58:return e.trim()+t.replace(p,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(p,(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===N||2===N&&n(o,1)?"-webkit-"+o+o:o}if(0===N||2===N&&!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(O,"$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 h.test(s)?s.replace(f,":-webkit-")+s.replace(f,":-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(y," or ($1)").substring(4):"("+t+")"}function s(e,t,r,a,n,i,s,c,l,u){for(var f,h=0,d=t;h<z;++h)switch(f=j[h].call(o,e,d,r,a,n,i,s,c,l,u)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function c(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?N=1:(N=2,R=e):N=0),c}function o(e,r){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<z){var o=s(-1,r,c,c,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var f=function e(r,c,o,f,h){for(var d,b,p,k,y,C=0,A=0,x=0,O=0,j=0,R=0,M=p=d=0,P=0,I=0,T=0,L=0,W=o.length,q=W-1,D="",F="",H="",B="";P<W;){if(b=o.charCodeAt(P),P===q&&0!==A+O+x+C&&(0!==A&&(b=47===A?10:47),O=x=C=0,W++,q++),0===A+O+x+C){if(P===q&&(0<I&&(D=D.replace(u,"")),0<D.trim().length)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:D+=o.charAt(P)}b=59}switch(b){case 123:for(d=(D=D.trim()).charCodeAt(0),p=1,L=++P;P<W;){switch(b=o.charCodeAt(P)){case 123:p++;break;case 125:p--;break;case 47:switch(b=o.charCodeAt(P+1)){case 42:case 47:e:{for(M=P+1;M<q;++M)switch(o.charCodeAt(M)){case 47:if(42===b&&42===o.charCodeAt(M-1)&&P+2!==M){P=M+1;break e}break;case 10:if(47===b){P=M+1;break e}}P=M}}break;case 91:b++;case 40:b++;case 34:case 39:for(;P++<q&&o.charCodeAt(P)!==b;);}if(0===p)break;P++}switch(p=o.substring(L,P),0===d&&(d=(D=D.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<I&&(D=D.replace(u,"")),b=D.charCodeAt(1)){case 100:case 109:case 115:case 45:I=c;break;default:I=$}if(L=(p=e(c,I,p,b,h+1)).length,0<z&&(y=s(3,p,I=t($,D,T),c,S,E,L,b,h,f),D=I.join(""),void 0!==y&&0===(L=(p=y.trim()).length)&&(b=0,p="")),0<L)switch(b){case 115:D=D.replace(w,i);case 100:case 109:case 45:p=D+"{"+p+"}";break;case 107:p=(D=D.replace(m,"$1 $2"))+"{"+p+"}",p=1===N||2===N&&n("@"+p,3)?"@-webkit-"+p+"@"+p:"@"+p;break;default:p=D+p,112===f&&(F+=p,p="")}else p="";break;default:p=e(c,t(c,D,T),p,f,h+1)}H+=p,p=T=I=M=d=0,D="",b=o.charCodeAt(++P);break;case 125:case 59:if(1<(L=(D=(0<I?D.replace(u,""):D).trim()).length))switch(0===M&&(d=D.charCodeAt(0),45===d||96<d&&123>d)&&(L=(D=D.replace(" ",":")).length),0<z&&void 0!==(y=s(1,D,c,r,S,E,F.length,f,h,f))&&0===(L=(D=y.trim()).length)&&(D="\0\0"),d=D.charCodeAt(0),b=D.charCodeAt(1),d){case 0:break;case 64:if(105===b||99===b){B+=D+o.charAt(P);break}default:58!==D.charCodeAt(L-1)&&(F+=a(D,d,b,D.charCodeAt(2)))}T=I=M=d=0,D="",b=o.charCodeAt(++P)}}switch(b){case 13:case 10:47===A?A=0:0===1+d&&107!==f&&0<D.length&&(I=1,D+="\0"),0<z*G&&s(0,D,c,r,S,E,F.length,f,h,f),E=1,S++;break;case 59:case 125:if(0===A+O+x+C){E++;break}default:switch(E++,k=o.charAt(P),b){case 9:case 32:if(0===O+C+A)switch(j){case 44:case 58:case 9:case 32:k="";break;default:32!==b&&(k=" ")}break;case 0:k="\\0";break;case 12:k="\\f";break;case 11:k="\\v";break;case 38:0===O+A+C&&(I=T=1,k="\f"+k);break;case 108:if(0===O+A+C+_&&0<M)switch(P-M){case 2:112===j&&58===o.charCodeAt(P-3)&&(_=j);case 8:111===R&&(_=R)}break;case 58:0===O+A+C&&(M=P);break;case 44:0===A+x+O+C&&(I=1,k+="\r");break;case 34:case 39:0===A&&(O=O===b?0:0===O?b:O);break;case 91:0===O+A+x&&C++;break;case 93:0===O+A+x&&C--;break;case 41:0===O+A+C&&x--;break;case 40:if(0===O+A+C){if(0===d)switch(2*j+3*R){case 533:break;default:d=1}x++}break;case 64:0===A+x+O+C+M+p&&(p=1);break;case 42:case 47:if(!(0<O+C+x))switch(A){case 0:switch(2*b+3*o.charCodeAt(P+1)){case 235:A=47;break;case 220:L=P,A=42}break;case 42:47===b&&42===j&&L+2!==P&&(33===o.charCodeAt(L+2)&&(F+=o.substring(L,P+1)),k="",A=0)}}0===A&&(D+=k)}R=j,j=b,P++}if(0<(L=F.length)){if(I=c,0<z&&(void 0!==(y=s(2,F,I,r,S,E,L,f,h,f))&&0===(F=y).length))return B+F+H;if(F=I.join(",")+"{"+F+"}",0!=N*_){switch(2!==N||n(F,2)||(_=0),_){case 111:F=F.replace(g,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return B+F+H}($,c,r,0,0);return 0<z&&(void 0!==(o=s(-2,f,c,c,S,E,f.length,0,0,0))&&(f=o)),"",_=0,E=S=1,f}var l=/^\0+/g,u=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,d=/([,: ])(transform)/g,b=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,C=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,E=1,S=1,_=0,N=1,$=[],j=[],z=0,R=null,G=0;return o.use=function e(t){switch(t){case void 0:case null:z=j.length=0;break;default:if("function"==typeof t)j[z++]=t;else if("object"==typeof t)for(var r=0,a=t.length;r<a;++r)e(t[r]);else G=0|!!t}return e},o.set=c,void 0!==e&&c(e),o}function n(e){e&&i.current.insert(e+"}")}var i={current:null},s=function(e,t,r,a,s,c,o,l,u,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return i.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 i.current.insert(r[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(n)}},c=t.createContext("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var c,o=new a(t),l={};c=e.container||document.head;var u,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==c&&c.appendChild(e)})),o.use(e.stylisPlugins)(s),u=function(e,t,r,a){var n=t.name;i.current=r,o(e,t.styles),a&&(h.inserted[n]=!0)};var h={key:n,sheet:new r({key:n,container:c,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:u};return h}():null),o=t.createContext({}),l=c.Provider;e.withEmotionCache=function(e){return t.forwardRef((function(r,a){var n=t.useContext(c);return e(r,n,a)}))};function u(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 h={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};function d(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var b=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(e){return 45===e.charCodeAt(1)},v=function(e){return null!=e&&"boolean"!=typeof e},g=d((function(e){return m(e)?e:e.replace(b,"-$&").toLowerCase()})),k=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(p,(function(e,t,r){return y={name:t,styles:r,next:y},t}))}return 1===h[e]||m(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 y={name:r.name,styles:r.styles,next:y},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)y={name:n.name,styles:n.styles,next:y},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]+"}":v(s)&&(a+=g(i)+":"+k(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+=g(i)+":"+c+";";break;default:a+=i+"{"+c+"}"}}else for(var o=0;o<s.length;o++)v(s[o])&&(a+=g(i)+":"+k(i,s[o])+";")}return a}(e,t,r);case"function":if(void 0!==e){var i=y,s=r(e);return y=i,w(e,t,s,a)}}if(null==t)return r;var c=t[r];return void 0===c||a?r:c}var y,C=/label:\s*([^\s;\n{]+)\s*;/g,A=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="";y=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]);C.lastIndex=0;for(var c,o="";null!==(c=C.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:y}},x="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=Object.prototype.hasOwnProperty,E=e.withEmotionCache((function(e,r,a){var n=e.css;"function"==typeof n&&(n=n(t.useContext(o))),"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var i=e[x],s=[n],c="";"string"==typeof e.className?c=u(r.registered,s,e.className):null!=e.className&&(c=e.className+" ");var l=A(s);f(r,l,"string"==typeof i);c+=r.key+"-"+l.name;var h={};for(var d in e)O.call(e,d)&&"css"!==d&&d!==x&&(h[d]=e[d]);return h.ref=a,h.className=c,t.createElement(i,h)})),S=e.withEmotionCache((function(e,a){var n=e.styles,i=A(["function"==typeof n?n(t.useContext(o)):n]),s=t.useRef();return t.useLayoutEffect((function(){var e=new r({key:a.key+"-global",nonce:a.sheet.nonce,container:a.sheet.container}),t=document.querySelector("style[data-emotion-"+a.key+'="'+i.name+'"]');return null!==t&&e.tags.push(t),a.sheet.tags.length&&(e.before=a.sheet.tags[0]),s.current=e,function(){e.flush()}}),[a]),t.useLayoutEffect((function(){void 0!==i.next&&f(a,i.next,!0);var e=s.current;if(e.tags.length){var t=e.tags[e.tags.length-1].nextElementSibling;e.before=t,e.flush()}a.insert("",i,e,!1)}),[a,i.name]),null}));function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return A(t)}var N=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};function $(e,t,r){var a=[],n=u(e,a,r);return a.length<2?r:n+t(a)}var j=e.withEmotionCache((function(e,r){var a=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var n=A(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 $(r.registered,a,N(t))},theme:t.useContext(o)},i=e.children(n);return!0,i}));e.CacheProvider=l,e.ClassNames=j,e.Global=S,e.ThemeContext=o,e.css=_,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]=E;var s={};for(var c in r)O.call(r,c)&&(s[c]=r[c]);s[x]=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=_.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": "11.0.0-next.2", | ||
"version": "11.0.0-next.3", | ||
"main": "dist/core.cjs.js", | ||
@@ -22,6 +22,6 @@ "module": "dist/core.esm.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.5.5", | ||
"@babel/runtime": "^7.7.2", | ||
"@emotion/cache": "^11.0.0-next.0", | ||
"@emotion/css": "^11.0.0-next.1", | ||
"@emotion/serialize": "^1.0.0-next.0", | ||
"@emotion/css": "^11.0.0-next.3", | ||
"@emotion/serialize": "^0.11.15-next.1", | ||
"@emotion/sheet": "0.9.3", | ||
@@ -34,3 +34,3 @@ "@emotion/utils": "0.11.2" | ||
"devDependencies": { | ||
"@emotion/styled": "^11.0.0-next.2", | ||
"@emotion/styled": "^11.0.0-next.3", | ||
"@types/react": "^16.9.11", | ||
@@ -40,3 +40,3 @@ "dtslint": "^0.3.0", | ||
"emotion-server": "^11.0.0-next.0", | ||
"emotion-theming": "^11.0.0-next.2", | ||
"emotion-theming": "^11.0.0-next.3", | ||
"html-tag-names": "^1.1.2", | ||
@@ -43,0 +43,0 @@ "react": "^16.11.0", |
@@ -81,55 +81,55 @@ // @flow | ||
export const ClassNames: React.AbstractComponent<Props> = withEmotionCache( | ||
(props, cache) => { | ||
let rules = '' | ||
let serializedHashes = '' | ||
let hasRendered = false | ||
export const ClassNames: React.AbstractComponent< | ||
Props | ||
> = /* #__PURE__ */ withEmotionCache((props, cache) => { | ||
let rules = '' | ||
let serializedHashes = '' | ||
let hasRendered = false | ||
let css = (...args: Array<any>) => { | ||
if (hasRendered && process.env.NODE_ENV !== 'production') { | ||
throw new Error('css can only be used during render') | ||
} | ||
let serialized = serializeStyles(args, cache.registered) | ||
if (isBrowser) { | ||
insertStyles(cache, serialized, false) | ||
} else { | ||
let res = insertStyles(cache, serialized, false) | ||
if (res !== undefined) { | ||
rules += res | ||
} | ||
} | ||
if (!isBrowser) { | ||
serializedHashes += ` ${serialized.name}` | ||
} | ||
return `${cache.key}-${serialized.name}` | ||
let css = (...args: Array<any>) => { | ||
if (hasRendered && process.env.NODE_ENV !== 'production') { | ||
throw new Error('css can only be used during render') | ||
} | ||
let cx = (...args: Array<ClassNameArg>) => { | ||
if (hasRendered && process.env.NODE_ENV !== 'production') { | ||
throw new Error('cx can only be used during render') | ||
let serialized = serializeStyles(args, cache.registered) | ||
if (isBrowser) { | ||
insertStyles(cache, serialized, false) | ||
} else { | ||
let res = insertStyles(cache, serialized, false) | ||
if (res !== undefined) { | ||
rules += res | ||
} | ||
return merge(cache.registered, css, classnames(args)) | ||
} | ||
let content = { | ||
css, | ||
cx, | ||
theme: useContext(ThemeContext) | ||
if (!isBrowser) { | ||
serializedHashes += ` ${serialized.name}` | ||
} | ||
let ele = props.children(content) | ||
hasRendered = true | ||
if (!isBrowser && rules.length !== 0) { | ||
return ( | ||
<React.Fragment> | ||
<style | ||
{...{ | ||
[`data-emotion-${cache.key}`]: serializedHashes.substring(1), | ||
dangerouslySetInnerHTML: { __html: rules }, | ||
nonce: cache.sheet.nonce | ||
}} | ||
/> | ||
{ele} | ||
</React.Fragment> | ||
) | ||
return `${cache.key}-${serialized.name}` | ||
} | ||
let cx = (...args: Array<ClassNameArg>) => { | ||
if (hasRendered && process.env.NODE_ENV !== 'production') { | ||
throw new Error('cx can only be used during render') | ||
} | ||
return ele | ||
return merge(cache.registered, css, classnames(args)) | ||
} | ||
) | ||
let content = { | ||
css, | ||
cx, | ||
theme: useContext(ThemeContext) | ||
} | ||
let ele = props.children(content) | ||
hasRendered = true | ||
if (!isBrowser && rules.length !== 0) { | ||
return ( | ||
<React.Fragment> | ||
<style | ||
{...{ | ||
[`data-emotion-${cache.key}`]: serializedHashes.substring(1), | ||
dangerouslySetInnerHTML: { __html: rules }, | ||
nonce: cache.sheet.nonce | ||
}} | ||
/> | ||
{ele} | ||
</React.Fragment> | ||
) | ||
} | ||
return ele | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185394
2132
+ Added@emotion/hash@0.8.0(transitive)
+ Added@emotion/memoize@0.7.4(transitive)
+ Added@emotion/serialize@0.11.16(transitive)
+ Added@emotion/unitless@0.7.5(transitive)
+ Added@emotion/utils@0.11.3(transitive)
+ Addedcsstype@2.6.21(transitive)
Updated@babel/runtime@^7.7.2
Updated@emotion/css@^11.0.0-next.3