react-emotion
Advanced tools
Comparing version 8.0.2-9 to 8.0.2-10
@@ -1,2 +0,2 @@ | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],a):a(e["react-emotion"]=e["react-emotion"]||{},e.React)}(this,function(e,a){"use strict";function t(e){return r(e,e.length).toString(36)}function r(e,a){for(var t=1540483477,r=a^e.length,n=e.length,o=0;n>=4;){var l=c(e,o);l=i(l,t),l=i(l^=l>>>24,t),r=i(r,t),r^=l,o+=4,n-=4}switch(n){case 3:r^=s(e,o),r=i(r^=e.charCodeAt(o+2)<<16,t);break;case 2:r=i(r^=s(e,o),t);break;case 1:r=i(r^=e.charCodeAt(o),t)}return r^=r>>>13,r=i(r,t),(r^=r>>>15)>>>0}function c(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)+(e.charCodeAt(a++)<<16)+(e.charCodeAt(a)<<24)}function s(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)}function i(e,a){return(65535&(e|=0))*(a|=0)+(((e>>>16)*a&65535)<<16)|0}function n(e){var a={};return function(t){return void 0===a[t]&&(a[t]=e(t)),a[t]}}function o(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function l(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}function d(){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-emotion",""),e.appendChild(document.createTextNode("")),document.head.appendChild(e),e}function f(e){C.insert(e,O)}function u(e,a,t,r,c,s,i,n){switch(e){case-2:j.forEach(f),j=[];break;case 2:if(0===n){var o=t.join(","),l=o+"{"+a+"}";r.join(",")===o||""===r[0]?j.push(l):j.unshift(l)}break;case 3:var d=t.join(""),u=a;switch(d.charCodeAt(1)){case 115:case 100:case 109:j.push(d+"{"+u+"}");break;case 107:u=(d=d.substring(1))+"{"+u+"}",j.push("@-webkit-"+u),j.push("@"+u);break;default:j.push(d+u)}}}function h(e){var a=[];return e.forEach(function(e){a=Array.isArray(e)?a.concat(h(e)):a.concat(e)}),a}function p(a,t){return void 0===a||null===a||"boolean"==typeof value?"":"function"==typeof a?p(a()):"object"==typeof a?b(a):!1===t&&void 0!==e.registered[a]?e.registered[a]:a}function b(a){if(_.has(a))return _.get(a);var t="";return Array.isArray(a)?h(a).forEach(function(e){t+=p(e,!1)}):Object.keys(a).forEach(function(r){"object"!=typeof a[r]?void 0!==e.registered[a[r]]?t+=r+"{"+e.registered[a[r]]+"}":t+=E(r)+":"+N(r,a[r])+";":t+=r+"{"+p(a[r])+"}"}),_.set(a,t),t}function g(e){return 46===e.charCodeAt(e.length-1)}function k(e){var a=!0,t="";null==e||void 0===e||void 0===e.raw?(a=!1,t=p(e,!1)):t=e[0];for(var r=arguments.length,c=Array(r>1?r-1:0),s=1;s<r;s++)c[s-1]=arguments[s];return c.forEach(function(r,c){t+=p(r,g(t)),!0===a&&void 0!==e[c+1]&&(t+=e[c+1])}),t}function m(){var a=k.apply(void 0,arguments),r=t(a),c="css-"+r;return void 0===e.registered[c]&&(e.registered[c]=a),void 0===e.inserted[r]&&(A("."+c,a),e.inserted[r]=!0),c}function w(a,t){var r="";return t.split(" ").forEach(function(t){void 0!==e.registered[t]?a.push(t):r+=t+" "}),r}var v={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,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},y="undefined"!=typeof window,C=new(function(){function e(){o(this,e),this.isSpeedy=!0,this.tags=[],this.ctr=0}return e.prototype.inject=function(){if(this.injected)throw new Error("already injected!");y?this.tags[0]=d():this.sheet=[],this.injected=!0},e.prototype.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},e.prototype.insert=function(e,a){if(y){if(this.isSpeedy){var t=l(this.tags[this.tags.length-1]);try{t.insertRule(e,t.cssRules.length)}catch(e){}}else{var r=d();this.tags.push(r),r.appendChild(document.createTextNode(e+(a||"")))}++this.ctr%65e3==0&&this.tags.push(d())}else this.sheet.push(e)},e.prototype.flush=function(){y?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0):this.sheet=[],this.injected=!1},e}());C.inject();var A=new function e(a){function t(e,a,c,o){for(var l,d,h,p,b,g=0,k=0,w=0,v=0,y=0,C=0,O=0,j=0,$=0,E=0,_=l=0,z=d=0,R=0,I=c.length,D=I-1,B="",Y="",ee="",ae="";_<I;){if(h=c.charCodeAt(_),0===k+v+w+g){if(_===D&&(0<d&&(B=B.replace(u,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(_)}h=59}if(1===z)switch(h){case 123:case 44:z=0;break;case 9:case 13:case 10:case 32:break;default:_--,h=59}switch(h){case 123:for(l=(B=B.trim()).charCodeAt(0),j=1,$=++_;_<I;){switch(h=c.charCodeAt(_)){case 123:j++;break;case 125:j--}if(0===j)break;_++}switch(E=c.substring($,_),0===l&&(l=(B=B.replace(f,"").trim()).charCodeAt(0)),l){case 64:switch(0<d&&(B=B.replace(u,"")),d=B.charCodeAt(1)){case 100:case 109:case 115:h=a;break;default:h=V}if(E=t(a,h,E,d),$=E.length,0<q&&0===$&&($=B.length),0<Z&&(h=r(V,B,R),b=n(3,E,h,a,F,M,$,d),B=h.join(""),void 0!==b&&0===($=(E=b.trim()).length)&&(d=0,E="")),0<$)switch(d){case 115:B=B.replace(T,i);case 100:case 109:E=B+"{"+E+"}";break;case 107:E=(B=B.replace(A,"$1 $2"+(0<J?Q:"")))+"{"+E+"}",E="@"+(0<W?"-webkit-"+E+"@"+E:E);break;default:E=B+E}else E="";break;default:E=t(a,r(a,B,R),E,o)}ee+=E,E=R=d=l=z=$=0,B="",h=c.charCodeAt(++_);break;case 125:case 59:if(B=(0<d?B.replace(u,""):B).trim(),1<($=B.length))switch(0===l&&(45===(l=B.charCodeAt(0))||96<l&&123>l)&&($=(B=B.replace(" ",":")).length),0<Z&&void 0!==(b=n(1,B,a,e,F,M,Y.length,o))&&0===($=(B=b.trim()).length)&&(B="\0\0"),l=B.charCodeAt(0),d=B.charCodeAt(1),l+d){case 0:break;case 169:case 163:ae+=B+c.charAt(_);break;default:58!==B.charCodeAt($-1)&&(Y+=s(B,l,d,B.charCodeAt(2)))}R=d=l=z=$=0,B="",h=c.charCodeAt(++_)}}switch(h){case 13:case 10:if(0===k+v+w+g+H)switch(O){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<l&&(z=1)}47===k&&(k=0),0<Z*K&&n(0,B,a,e,F,M,Y.length,o),M=1,F++;break;case 59:case 125:if(0===k+v+w+g){M++;break}default:switch(M++,p=c.charAt(_),h){case 9:case 32:if(0===v+g)switch(y){case 44:case 58:case 9:case 32:p="";break;default:32!==h&&(p=" ")}break;case 0:p="\\0";break;case 12:p="\\f";break;case 11:p="\\v";break;case 38:0===v+k+g&&0<P&&(d=R=1,p="\f"+p);break;case 108:if(0===v+k+g+L&&0<l)switch(_-l){case 2:112===y&&58===c.charCodeAt(_-3)&&(L=y);case 8:111===C&&(L=C)}break;case 58:0===v+k+g&&(l=_);break;case 44:0===k+w+v+g&&(d=1,p+="\r");break;case 34:case 39:0===k&&(v=v===h?0:0===v?h:v,_===D&&(D++,I++));break;case 91:0===v+k+w&&g++;break;case 93:0===v+k+w&&g--;break;case 41:0===v+k+g&&(_===D&&(D++,I++),w--);break;case 40:if(0===v+k+g){if(0===$)switch(2*y+3*C){case 533:break;default:j=0,$=1}w++}break;case 64:0===k+w+v+g+l+E&&(E=1);break;case 42:case 47:if(!(0<v+g+w))switch(k){case 0:switch(2*h+3*c.charCodeAt(_+1)){case 235:k=47;break;case 220:k=42}break;case 42:47===h&&42===y&&(p="",k=0)}}if(0===k){if(0===P+v+g+E&&107!==o&&59!==h)switch(h){case 44:case 126:case 62:case 43:case 41:case 40:if(0===$){switch(y){case 9:case 32:case 10:case 13:p+="\0";break;default:p="\0"+p+(44===h?"":"\0")}d=1}else switch(h){case 40:$=++j;break;case 41:0==($=--j)&&(d=1,p+="\0")}break;case 32:switch(y){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===$&&(d=1,p+="\0")}}B+=p,32!==h&&(O=h)}}C=y,y=h,_++}if($=Y.length,0<q&&0===$&&0===ee.length&&0===a[0].length==0&&(109!==o||1===a.length&&(0<P?U:X)===a[0])&&($=a.join(",").length+2),0<$){if(0===P&&107!==o){for(c=0,g=a.length,k=Array(g);c<g;++c){for(C="",O=0,I=(y=a[c].split(m)).length;O<I;++O)if(!(0===(j=(v=y[O]).length)&&1<I)){if(_=C.charCodeAt(C.length-1),R=v.charCodeAt(0),w="",0!==O)switch(_){case 42:case 126:case 62:case 43:case 32:case 40:break;default:w=" "}switch(R){case 38:v=w+U;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:v=w+v+U;break;case 58:switch(2*v.charCodeAt(1)+3*v.charCodeAt(2)){case 530:if(0<G){v=w+v.substring(8,j-1);break}default:(1>O||1>y[O-1].length)&&(v=w+U+v)}break;case 44:w="";default:v=1<j&&0<v.indexOf(":")?w+v.replace(N,"$1"+U+"$2"):w+v+U}C+=v}k[c]=C.replace(u,"").trim()}a=k}if(h=a,0<Z&&void 0!==(b=n(2,Y,h,e,F,M,$,o))&&0===(Y=b).length)return ae+Y+ee;if(Y=h.join(",")+"{"+Y+"}",0<W*L){switch(L){case 111:Y=Y.replace(S,":-moz-$1")+Y;break;case 112:Y=Y.replace(x,"::-webkit-input-$1")+Y.replace(x,"::-moz-$1")+Y.replace(x,":-ms-input-$1")+Y}L=0}}return ae+Y+ee}function r(e,a,t){var r=a.trim().split(w);a=r;var s=r.length,i=e.length;switch(i){case 0:case 1:var n=0;for(e=0===i?"":e[0]+" ";n<s;++n)a[n]=c(e,a[n],t,i).trim();break;default:var o=n=0;for(a=[];n<s;++n)for(var l=0;l<i;++l)a[o++]=c(e[l]+" ",r[n],t,i).trim()}return a}function c(e,a,t,r){var c=a.charCodeAt(0);switch(33>c&&(c=(a=a.trim()).charCodeAt(0)),c){case 38:switch(P+r){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(v,"$1"+e.trim())}break;case 58:switch(a.charCodeAt(1)){case 103:if(0<G&&0<P)return a.replace(y,"$1").replace(v,"$1"+X);break;default:return e.trim()+a}default:if(0<t*P&&0<a.indexOf("\f"))return a.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+a}function s(e,a,t,r){var c=0,s=e+";";if(944==(a=2*a+3*t+4*r)){if(r=s,e=r.length,t=r.indexOf(":",9)+1,c=r.substring(0,t).trim(),e=r.substring(t,e-1).trim(),s="",45!==r.charCodeAt(9))for(r=e.split(g),t=a=0,e=r.length;a<e;t=0,++a){for(var i=r[a],n=i.split(k);i=n[t];){var o=i.charCodeAt(0);if(1===J&&(64<o&&90>o||96<o&&123>o||95===o||45===o&&45!==i.charCodeAt(1)))switch(isNaN(parseFloat(i))+(-1!==i.indexOf("("))){case 1:switch(i){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:i+=Q}}n[t++]=i}s+=(0===a?"":",")+n.join(" ")}else s+=110===r.charCodeAt(10)?e+(1===J?Q:""):e;s=c+s+";",s=0<W?"-webkit-"+s+s:s}else if(0<W)switch(a){case 969:s="-webkit-"+s.replace(z,"-webkit-$1")+s;break;case 951:s="-webkit-"+s+s;break;case 963:110===s.charCodeAt(5)&&(s="-webkit-"+s+s);break;case 978:s="-webkit-"+s+"-moz-"+s+s;break;case 1019:case 983:s="-webkit-"+s+"-moz-"+s+"-ms-"+s+s;break;case 883:45===s.charCodeAt(8)&&(s="-webkit-"+s+s);break;case 932:s="-webkit-"+s+"-ms-"+s+s;break;case 964:s="-webkit-"+s+"-ms-flex-"+s+s;break;case 1023:s="-webkit-box-pack"+(e=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+e+s;break;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(c=(s=e).length-10,e=(33===s.charCodeAt(c)?s.substring(0,c):s).substring(e.indexOf(":",7)+1).trim(),a=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:s=s.replace(e,"-webkit-"+e)+";"+s;break;case 207:case 102:s=s.replace(e,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(e,"-webkit-"+e)+";"+s.replace(e,"-ms-"+e+"box")+";"+s}s+=";";break;case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:s="-webkit-"+s+"-webkit-box-"+(e=s.replace("-items",""))+"-ms-flex-"+e+s;break;case 115:s="-webkit-"+s+"-ms-flex-item-"+s.replace(I,"")+s;break;default:s="-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","")+s}break;case 1005:p.test(s)&&(s=s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s);break;case 953:0<(c=s.indexOf("-content",9))&&109===s.charCodeAt(c-3)&&45!==s.charCodeAt(c-4)&&(e=s.substring(c-3),s="width:-webkit-"+e+"width:-moz-"+e+"width:"+e);break;case 1015:if(45!==e.charCodeAt(9))break;case 962:s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===t+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10)&&(s=s.substring(0,s.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+s);break;case 1e3:switch(e=s.substring(13).trim(),c=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(c)){case 226:e=s.replace(_,"tb");break;case 232:e=s.replace(_,"tb-rl");break;case 220:e=s.replace(_,"lr");break;default:return s}s="-webkit-"+s+"-ms-"+e+s}return s}function i(e,a){var t=s(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return t!==a+";"?t.replace(R,"or($1)").substring(2):"("+a+")"}function n(e,a,t,r,c,s,i,n){for(var o,l=0,f=a;l<Z;++l)switch(o=B[l].call(d,e,f,t,r,c,s,i,n)){case void 0:case!1:case!0:case null:break;default:f=o}switch(f){case void 0:case!1:case!0:case null:case a:break;default:return f}}function o(e){switch(e){case void 0:case null:Z=B.length=0;break;default:switch(e.constructor){case Array:for(var a=0,t=e.length;a<t;++a)o(e[a]);break;case Function:B[Z++]=e;break;case Boolean:K=0|!!e}}return o}function l(e){for(var a in e){var t=e[a];switch(a){case"keyframe":J=0|t;break;case"global":G=0|t;break;case"cascade":P=0|t;break;case"compress":D=0|t;break;case"prefix":W=0|t;break;case"semicolon":H=0|t;break;case"preserve":q=0|t}}return l}function d(a,r){if(void 0!==this&&this.constructor===d)return e(a);var c=a,s=c.charCodeAt(0);if(33>s&&(s=(c=c.trim()).charCodeAt(0)),0<J&&(Q=c.replace(C,91===s?"":"-")),s=1,1===P?X=c:U=c,c=[X],0<Z){var i=n(-1,r,c,c,F,M,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(V,c,r,0);return 0<Z&&void 0!==(i=n(-2,o,c,c,F,M,o.length,0))&&"string"!=typeof(o=i)&&(s=0),U=X=Q="",L=0,M=F=1,0==D*s?o:o.replace(u,"").replace(O,"").replace(j,"$1").replace($,"$1").replace(E," ")}var f=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,b=/([,: ])(transform)/g,g=/,+\s*(?![^(]*[)])/g,k=/ +\s*(?![^(]*[)])/g,m=/ *[\0] */g,w=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,C=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,S=/:(read-only)/g,O=/\s+(?=[{\];=:>])/g,j=/([[}=:>])\s+/g,$=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,N=/([^\(])(:+) */g,_=/[svh]\w+-[tblr]{2}/,z=/([\w-]+t\()/g,T=/\(\s*([^]*?)\s*\)/g,R=/([^]*?);/g,I=/-self|flex-/g,M=1,F=1,L=0,P=1,W=1,G=1,D=0,H=0,q=0,V=[],B=[],Z=0,K=0,J=1,Q="",U="",X="";return d.use=o,d.set=l,void 0!==a&&l(a),d}({keyframe:!1}),x=[],S=A.use;e.registered={},e.inserted={};var O="",j=[];A.use(u);var $=/[A-Z]|^ms/g,E=n(function(e){return e.replace($,"-$&").toLowerCase()}),N=function(e,a){return void 0===a||null===a||"boolean"==typeof a?"":1===v[e]||isNaN(a)||0===a?a:a+"px"},_=new WeakMap,z=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$/,T=n(function(e){return z.test(e)}),R=function(e){return"theme"!==e&&"innerRef"!==e},I=function(e,a){for(var t=2,r=arguments.length;t<r;t++){var c=arguments[t],s=void 0;for(s in c)e(s)&&(a[s]=c[s])}return a};e.default=function e(t,r){var c=!1;void 0!==r&&void 0!==r.e&&(c=r.e);var s=!1===c?t.__emotion_base||t:t,i="string"==typeof s?T:R;return function(n){for(var o=arguments.length,l=Array(o>1?o-1:0),d=1;d<o;d++)l[d-1]=arguments[d];var f=void 0!==n&&void 0!==n.raw,u=t.__emotion_styles||[];!1===c&&(u=f?l.reduce(function(e,a,t){return e.concat(a,n[t+1])},u.concat(n[0])):u.concat(n,l));var h=function(e,t){var r="",n=[];return e.className&&(r+=!1===c?w(n,e.className):e.className+" "),r+=!1===c?m.apply(void 0,u.map(function(a){return"function"==typeof a?a(e,t):a}).concat(n)):c,a.createElement(s,I(i,{},e,{className:r,ref:e.innerRef}))};return h.__emotion_styles=u,h.__emotion_base=s,h.withComponent=function(a){return e(a,r)(u)},h}},e.sheet=C,e.useStylisPlugin=function(e){x.push(e),S(null)(x)(u)},e.flush=function(){C.flush(),e.inserted={},e.registered={},C.inject()},e.css=m,e.injectGlobal=function(){var a=k.apply(void 0,arguments),r=t(a);void 0===e.inserted[r]&&(A("",a),e.inserted[r]=!0)},e.keyframes=function(){var a=k.apply(void 0,arguments),r=t(a),c="animation-"+r;return void 0===e.inserted[r]&&(A("","@keyframes "+c+"{"+a+"}"),e.inserted[r]=!0),c},e.fontFace=function(){var a=k.apply(void 0,arguments),r=t(a);void 0===e.inserted[r]&&(A("","@font-face{"+a+"}"),e.inserted[r]=!0)},e.getRegisteredStyles=w,e.merge=function(e,a){var t=[],r=w(t,e);return t.length<2?e:r+m(t,a)},e.hydrate=function(a){a.forEach(function(a){e.inserted[a]=!0})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t(e["react-emotion"]=e["react-emotion"]||{},e.React,e.PropTypes)}(this,function(e,t,a){"use strict";function r(e){return c(e,e.length).toString(36)}function c(e,t){for(var a=1540483477,r=t^e.length,c=e.length,o=0;c>=4;){var l=s(e,o);l=i(l,a),l=i(l^=l>>>24,a),r=i(r,a),r^=l,o+=4,c-=4}switch(c){case 3:r^=n(e,o),r=i(r^=e.charCodeAt(o+2)<<16,a);break;case 2:r=i(r^=n(e,o),a);break;case 1:r=i(r^=e.charCodeAt(o),a)}return r^=r>>>13,r=i(r,a),(r^=r>>>15)>>>0}function s(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function n(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}function o(e){var t={};return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}function l(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]}function u(){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-emotion",""),e.appendChild(document.createTextNode("")),document.head.appendChild(e),e}function f(e){A.insert(e,S)}function d(e,t,a,r,c,s,n,i){switch(e){case-2:j.forEach(f),j=[];break;case 2:if(0===i){var o=a.join(","),l=o+"{"+t+"}";r.join(",")===o||""===r[0]?j.push(l):j.unshift(l)}break;case 3:var u=a.join(""),d=t;switch(u.charCodeAt(1)){case 115:case 100:case 109:j.push(u+"{"+d+"}");break;case 107:d=(u=u.substring(1))+"{"+d+"}",j.push("@-webkit-"+d),j.push("@"+d);break;default:j.push(u+d)}}}function h(e){var t=[];return e.forEach(function(e){t=Array.isArray(e)?t.concat(h(e)):t.concat(e)}),t}function p(t,a){return void 0===t||null===t||"boolean"==typeof value?"":"function"==typeof t?p(t()):"object"==typeof t?b(t):!1===a&&void 0!==e.registered[t]?e.registered[t]:t}function b(t){if(z.has(t))return z.get(t);var a="";return Array.isArray(t)?h(t).forEach(function(e){a+=p(e,!1)}):Object.keys(t).forEach(function(r){"object"!=typeof t[r]?void 0!==e.registered[t[r]]?a+=r+"{"+e.registered[t[r]]+"}":a+=$(r)+":"+N(r,t[r])+";":a+=r+"{"+p(t[r])+"}"}),z.set(t,a),a}function g(e){return 46===e.charCodeAt(e.length-1)}function k(e){var t=!0,a="";null==e||void 0===e||void 0===e.raw?(t=!1,a=p(e,!1)):a=e[0];for(var r=arguments.length,c=Array(r>1?r-1:0),s=1;s<r;s++)c[s-1]=arguments[s];return c.forEach(function(r,c){a+=p(r,g(a)),!0===t&&void 0!==e[c+1]&&(a+=e[c+1])}),a}function m(){var t=k.apply(void 0,arguments),a=r(t),c="css-"+a;return void 0===e.registered[c]&&(e.registered[c]=t),void 0===e.inserted[a]&&(x("."+c,t),e.inserted[a]=!0),c}function w(t,a){var r="";return a.split(" ").forEach(function(a){void 0!==e.registered[a]?t.push(a):r+=a+" "}),r}a=a&&"default"in a?a.default:a;var v={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,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},C="undefined"!=typeof window,A=new(function(){function e(){y(this,e),this.isSpeedy=!0,this.tags=[],this.ctr=0}return e.prototype.inject=function(){if(this.injected)throw new Error("already injected!");C?this.tags[0]=u():this.sheet=[],this.injected=!0},e.prototype.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},e.prototype.insert=function(e,t){if(C){if(this.isSpeedy){var a=l(this.tags[this.tags.length-1]);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else{var r=u();this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}++this.ctr%65e3==0&&this.tags.push(u())}else this.sheet.push(e)},e.prototype.flush=function(){C?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0):this.sheet=[],this.injected=!1},e}());A.inject();var x=new function e(t){function a(e,t,c,o){for(var l,u,h,p,b,g=0,k=0,w=0,v=0,y=0,C=0,_=0,S=0,j=0,E=0,$=l=0,N=u=0,I=0,M=c.length,D=M-1,B="",Y="",ee="",te="";$<M;){if(h=c.charCodeAt($),0===k+v+w+g){if($===D&&(0<u&&(B=B.replace(d,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt($)}h=59}if(1===N)switch(h){case 123:case 44:N=0;break;case 9:case 13:case 10:case 32:break;default:$--,h=59}switch(h){case 123:for(l=(B=B.trim()).charCodeAt(0),S=1,j=++$;$<M;){switch(h=c.charCodeAt($)){case 123:S++;break;case 125:S--}if(0===S)break;$++}switch(E=c.substring(j,$),0===l&&(l=(B=B.replace(f,"").trim()).charCodeAt(0)),l){case 64:switch(0<u&&(B=B.replace(d,"")),u=B.charCodeAt(1)){case 100:case 109:case 115:h=t;break;default:h=V}if(E=a(t,h,E,u),j=E.length,0<q&&0===j&&(j=B.length),0<Z&&(h=r(V,B,I),b=i(3,E,h,t,P,R,j,u),B=h.join(""),void 0!==b&&0===(j=(E=b.trim()).length)&&(u=0,E="")),0<j)switch(u){case 115:B=B.replace(z,n);case 100:case 109:E=B+"{"+E+"}";break;case 107:E=(B=B.replace(A,"$1 $2"+(0<U?J:"")))+"{"+E+"}",E="@"+(0<L?"-webkit-"+E+"@"+E:E);break;default:E=B+E}else E="";break;default:E=a(t,r(t,B,I),E,o)}ee+=E,E=I=u=l=N=j=0,B="",h=c.charCodeAt(++$);break;case 125:case 59:if(B=(0<u?B.replace(d,""):B).trim(),1<(j=B.length))switch(0===l&&(45===(l=B.charCodeAt(0))||96<l&&123>l)&&(j=(B=B.replace(" ",":")).length),0<Z&&void 0!==(b=i(1,B,t,e,P,R,Y.length,o))&&0===(j=(B=b.trim()).length)&&(B="\0\0"),l=B.charCodeAt(0),u=B.charCodeAt(1),l+u){case 0:break;case 169:case 163:te+=B+c.charAt($);break;default:58!==B.charCodeAt(j-1)&&(Y+=s(B,l,u,B.charCodeAt(2)))}I=u=l=N=j=0,B="",h=c.charCodeAt(++$)}}switch(h){case 13:case 10:if(0===k+v+w+g+H)switch(_){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<l&&(N=1)}47===k&&(k=0),0<Z*K&&i(0,B,t,e,P,R,Y.length,o),R=1,P++;break;case 59:case 125:if(0===k+v+w+g){R++;break}default:switch(R++,p=c.charAt($),h){case 9:case 32:if(0===v+g)switch(y){case 44:case 58:case 9:case 32:p="";break;default:32!==h&&(p=" ")}break;case 0:p="\\0";break;case 12:p="\\f";break;case 11:p="\\v";break;case 38:0===v+k+g&&0<F&&(u=I=1,p="\f"+p);break;case 108:if(0===v+k+g+W&&0<l)switch($-l){case 2:112===y&&58===c.charCodeAt($-3)&&(W=y);case 8:111===C&&(W=C)}break;case 58:0===v+k+g&&(l=$);break;case 44:0===k+w+v+g&&(u=1,p+="\r");break;case 34:case 39:0===k&&(v=v===h?0:0===v?h:v,$===D&&(D++,M++));break;case 91:0===v+k+w&&g++;break;case 93:0===v+k+w&&g--;break;case 41:0===v+k+g&&($===D&&(D++,M++),w--);break;case 40:if(0===v+k+g){if(0===j)switch(2*y+3*C){case 533:break;default:S=0,j=1}w++}break;case 64:0===k+w+v+g+l+E&&(E=1);break;case 42:case 47:if(!(0<v+g+w))switch(k){case 0:switch(2*h+3*c.charCodeAt($+1)){case 235:k=47;break;case 220:k=42}break;case 42:47===h&&42===y&&(p="",k=0)}}if(0===k){if(0===F+v+g+E&&107!==o&&59!==h)switch(h){case 44:case 126:case 62:case 43:case 41:case 40:if(0===j){switch(y){case 9:case 32:case 10:case 13:p+="\0";break;default:p="\0"+p+(44===h?"":"\0")}u=1}else switch(h){case 40:j=++S;break;case 41:0==(j=--S)&&(u=1,p+="\0")}break;case 32:switch(y){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===j&&(u=1,p+="\0")}}B+=p,32!==h&&(_=h)}}C=y,y=h,$++}if(j=Y.length,0<q&&0===j&&0===ee.length&&0===t[0].length==0&&(109!==o||1===t.length&&(0<F?Q:X)===t[0])&&(j=t.join(",").length+2),0<j){if(0===F&&107!==o){for(c=0,g=t.length,k=Array(g);c<g;++c){for(C="",_=0,M=(y=t[c].split(m)).length;_<M;++_)if(!(0===(S=(v=y[_]).length)&&1<M)){if($=C.charCodeAt(C.length-1),I=v.charCodeAt(0),w="",0!==_)switch($){case 42:case 126:case 62:case 43:case 32:case 40:break;default:w=" "}switch(I){case 38:v=w+Q;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:v=w+v+Q;break;case 58:switch(2*v.charCodeAt(1)+3*v.charCodeAt(2)){case 530:if(0<G){v=w+v.substring(8,S-1);break}default:(1>_||1>y[_-1].length)&&(v=w+Q+v)}break;case 44:w="";default:v=1<S&&0<v.indexOf(":")?w+v.replace(T,"$1"+Q+"$2"):w+v+Q}C+=v}k[c]=C.replace(d,"").trim()}t=k}if(h=t,0<Z&&void 0!==(b=i(2,Y,h,e,P,R,j,o))&&0===(Y=b).length)return te+Y+ee;if(Y=h.join(",")+"{"+Y+"}",0<L*W){switch(W){case 111:Y=Y.replace(O,":-moz-$1")+Y;break;case 112:Y=Y.replace(x,"::-webkit-input-$1")+Y.replace(x,"::-moz-$1")+Y.replace(x,":-ms-input-$1")+Y}W=0}}return te+Y+ee}function r(e,t,a){var r=t.trim().split(w);t=r;var s=r.length,n=e.length;switch(n){case 0:case 1:var i=0;for(e=0===n?"":e[0]+" ";i<s;++i)t[i]=c(e,t[i],a,n).trim();break;default:var o=i=0;for(t=[];i<s;++i)for(var l=0;l<n;++l)t[o++]=c(e[l]+" ",r[i],a,n).trim()}return t}function c(e,t,a,r){var c=t.charCodeAt(0);switch(33>c&&(c=(t=t.trim()).charCodeAt(0)),c){case 38:switch(F+r){case 0:case 1:if(0===e.trim().length)break;default:return t.replace(v,"$1"+e.trim())}break;case 58:switch(t.charCodeAt(1)){case 103:if(0<G&&0<F)return t.replace(y,"$1").replace(v,"$1"+X);break;default:return e.trim()+t}default:if(0<a*F&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function s(e,t,a,r){var c=0,s=e+";";if(944==(t=2*t+3*a+4*r)){if(r=s,e=r.length,a=r.indexOf(":",9)+1,c=r.substring(0,a).trim(),e=r.substring(a,e-1).trim(),s="",45!==r.charCodeAt(9))for(r=e.split(g),a=t=0,e=r.length;t<e;a=0,++t){for(var n=r[t],i=n.split(k);n=i[a];){var o=n.charCodeAt(0);if(1===U&&(64<o&&90>o||96<o&&123>o||95===o||45===o&&45!==n.charCodeAt(1)))switch(isNaN(parseFloat(n))+(-1!==n.indexOf("("))){case 1:switch(n){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:n+=J}}i[a++]=n}s+=(0===t?"":",")+i.join(" ")}else s+=110===r.charCodeAt(10)?e+(1===U?J:""):e;s=c+s+";",s=0<L?"-webkit-"+s+s:s}else if(0<L)switch(t){case 969:s="-webkit-"+s.replace(N,"-webkit-$1")+s;break;case 951:s="-webkit-"+s+s;break;case 963:110===s.charCodeAt(5)&&(s="-webkit-"+s+s);break;case 978:s="-webkit-"+s+"-moz-"+s+s;break;case 1019:case 983:s="-webkit-"+s+"-moz-"+s+"-ms-"+s+s;break;case 883:45===s.charCodeAt(8)&&(s="-webkit-"+s+s);break;case 932:s="-webkit-"+s+"-ms-"+s+s;break;case 964:s="-webkit-"+s+"-ms-flex-"+s+s;break;case 1023:s="-webkit-box-pack"+(e=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+e+s;break;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(c=(s=e).length-10,e=(33===s.charCodeAt(c)?s.substring(0,c):s).substring(e.indexOf(":",7)+1).trim(),t=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:s=s.replace(e,"-webkit-"+e)+";"+s;break;case 207:case 102:s=s.replace(e,"-webkit-"+(102<t?"inline-":"")+"box")+";"+s.replace(e,"-webkit-"+e)+";"+s.replace(e,"-ms-"+e+"box")+";"+s}s+=";";break;case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:s="-webkit-"+s+"-webkit-box-"+(e=s.replace("-items",""))+"-ms-flex-"+e+s;break;case 115:s="-webkit-"+s+"-ms-flex-item-"+s.replace(M,"")+s;break;default:s="-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","")+s}break;case 1005:p.test(s)&&(s=s.replace(h,":-webkit-")+s.replace(h,":-moz-")+s);break;case 953:0<(c=s.indexOf("-content",9))&&109===s.charCodeAt(c-3)&&45!==s.charCodeAt(c-4)&&(e=s.substring(c-3),s="width:-webkit-"+e+"width:-moz-"+e+"width:"+e);break;case 1015:if(45!==e.charCodeAt(9))break;case 962:s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===a+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10)&&(s=s.substring(0,s.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+s);break;case 1e3:switch(e=s.substring(13).trim(),c=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(c)){case 226:e=s.replace($,"tb");break;case 232:e=s.replace($,"tb-rl");break;case 220:e=s.replace($,"lr");break;default:return s}s="-webkit-"+s+"-ms-"+e+s}return s}function n(e,t){var a=s(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(I,"or($1)").substring(2):"("+t+")"}function i(e,t,a,r,c,s,n,i){for(var o,l=0,f=t;l<Z;++l)switch(o=B[l].call(u,e,f,a,r,c,s,n,i)){case void 0:case!1:case!0:case null:break;default:f=o}switch(f){case void 0:case!1:case!0:case null:case t:break;default:return f}}function o(e){switch(e){case void 0:case null:Z=B.length=0;break;default:switch(e.constructor){case Array:for(var t=0,a=e.length;t<a;++t)o(e[t]);break;case Function:B[Z++]=e;break;case Boolean:K=0|!!e}}return o}function l(e){for(var t in e){var a=e[t];switch(t){case"keyframe":U=0|a;break;case"global":G=0|a;break;case"cascade":F=0|a;break;case"compress":D=0|a;break;case"prefix":L=0|a;break;case"semicolon":H=0|a;break;case"preserve":q=0|a}}return l}function u(t,r){if(void 0!==this&&this.constructor===u)return e(t);var c=t,s=c.charCodeAt(0);if(33>s&&(s=(c=c.trim()).charCodeAt(0)),0<U&&(J=c.replace(C,91===s?"":"-")),s=1,1===F?X=c:Q=c,c=[X],0<Z){var n=i(-1,r,c,c,P,R,0,0);void 0!==n&&"string"==typeof n&&(r=n)}var o=a(V,c,r,0);return 0<Z&&void 0!==(n=i(-2,o,c,c,P,R,o.length,0))&&"string"!=typeof(o=n)&&(s=0),Q=X=J="",W=0,R=P=1,0==D*s?o:o.replace(d,"").replace(_,"").replace(S,"$1").replace(j,"$1").replace(E," ")}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,b=/([,: ])(transform)/g,g=/,+\s*(?![^(]*[)])/g,k=/ +\s*(?![^(]*[)])/g,m=/ *[\0] */g,w=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,C=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,O=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,S=/([[}=:>])\s+/g,j=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,T=/([^\(])(:+) */g,$=/[svh]\w+-[tblr]{2}/,N=/([\w-]+t\()/g,z=/\(\s*([^]*?)\s*\)/g,I=/([^]*?);/g,M=/-self|flex-/g,R=1,P=1,W=0,F=1,L=1,G=1,D=0,H=0,q=0,V=[],B=[],Z=0,K=0,U=1,J="",Q="",X="";return u.use=o,u.set=l,void 0!==t&&l(t),u}({keyframe:!1}),O=[],_=x.use;e.registered={},e.inserted={};var S="",j=[];x.use(d);var E,T=/[A-Z]|^ms/g,$=o(function(e){return e.replace(T,"-$&").toLowerCase()}),N=function(e,t){return void 0===t||null===t||"boolean"==typeof t?"":1===v[e]||isNaN(t)||0===t?t:t+"px"},z=new WeakMap,I="__EMOTION_THEMING__",M=(E={},E[I]=a.object,E),R=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},W=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},F=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$/,L=o(function(e){return F.test(e)}),G=function(e){return"theme"!==e&&"innerRef"!==e},D=function(){return!0},H=function(e,t){for(var a=2,r=arguments.length;a<r;a++){var c=arguments[a],s=void 0;for(s in c)e(s)&&(t[s]=c[s])}return t};e.default=function e(a,r){var c=!1;void 0!==r&&void 0!==r.e&&(c=r.e);var s=a.__emotion_real===a,n=!1===c?s&&a.__emotion_base||a:a,i="string"==typeof n?L:G;return function(o){for(var l=arguments.length,u=Array(l>1?l-1:0),f=1;f<l;f++)u[f-1]=arguments[f];var d=void 0!==o&&void 0!==o.raw,h=s&&a.__emotion_styles||[];!1===c&&(h=d?u.reduce(function(e,t,a){return e.concat(t,o[a+1])},h.concat(o[0])):h.concat(o,u));var p=function(e){function a(){var t,r,c;R(this,a);for(var s=arguments.length,n=Array(s),i=0;i<s;i++)n[i]=arguments[i];return t=r=W(this,e.call.apply(e,[this].concat(n))),r.setTheme=function(e){return r.setState({theme:e})},c=t,W(r,c)}return P(a,e),a.prototype.componentWillMount=function(){void 0!==this.context[I]&&(this.unsubscribe=this.context[I].subscribe(this.setTheme))},a.prototype.componentWillUnmount=function(){void 0!==this.unsubscribe&&this.context[I].unsubscribe(this.unsubscribe)},a.prototype.render=function(){var e=this.props,a=this.state,r=this.context,s=e;a&&a.theme&&(s=H(D,{},e,{theme:a.theme||{}}));var o="",l=[];return e.className&&(o+=!1===c?w(l,e.className):e.className+" "),o+=!1===c?m.apply(void 0,h.map(function(e){return"function"==typeof e?e(s,r):e}).concat(l)):c,t.createElement(n,H(i,{},e,{className:o,ref:e.innerRef}))},a}(t.Component);return p.contextTypes=M,p.__emotion_styles=h,p.__emotion_base=n,p.__emotion_real=p,p.withComponent=function(t){return e(t,r)(h)},p}},e.sheet=A,e.useStylisPlugin=function(e){O.push(e),_(null)(O)(d)},e.flush=function(){A.flush(),e.inserted={},e.registered={},A.inject()},e.css=m,e.injectGlobal=function(){var t=k.apply(void 0,arguments),a=r(t);void 0===e.inserted[a]&&(x("",t),e.inserted[a]=!0)},e.keyframes=function(){var t=k.apply(void 0,arguments),a=r(t),c="animation-"+a;return void 0===e.inserted[a]&&(x("","@keyframes "+c+"{"+t+"}"),e.inserted[a]=!0),c},e.fontFace=function(){var t=k.apply(void 0,arguments),a=r(t);void 0===e.inserted[a]&&(x("","@font-face{"+t+"}"),e.inserted[a]=!0)},e.getRegisteredStyles=w,e.merge=function(e,t){var a=[],r=w(a,e);return a.length<2?e:r+m(a,t)},e.hydrate=function(t){t.forEach(function(t){e.inserted[t]=!0})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=DO-NOT-USE.min.js.map |
@@ -5,6 +5,65 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var react = require('react'); | ||
var emotionUtils = require('emotion-utils'); | ||
var emotion = require('emotion'); | ||
var PropTypes = _interopDefault(require('prop-types')); | ||
var _contextTypes; | ||
var channel = '__EMOTION_THEMING__'; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
var classCallCheck = function (instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
}; | ||
var inherits = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
}; | ||
var possibleConstructorReturn = function (self, call) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return call && (typeof call === "object" || typeof call === "function") ? call : self; | ||
}; | ||
/* global codegen */ | ||
@@ -18,2 +77,5 @@ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$/; | ||
}; | ||
var testAlwaysTrue = function testAlwaysTrue() { | ||
return true; | ||
}; | ||
@@ -45,3 +107,4 @@ var omitAssign = function omitAssign(testFn, target) { | ||
} | ||
var baseTag = staticClassName === false ? tag.__emotion_base || tag : tag; | ||
var isReal = tag.__emotion_real === tag; | ||
var baseTag = staticClassName === false ? isReal && tag.__emotion_base || tag : tag; | ||
@@ -56,3 +119,3 @@ var omitFn = typeof baseTag === 'string' ? testOmitPropsOnStringTag : testOmitPropsOnComponent; | ||
var stringMode = strings !== undefined && strings.raw !== undefined; | ||
var styles = tag.__emotion_styles || []; | ||
var styles = isReal && tag.__emotion_styles || []; | ||
if (staticClassName === false) { | ||
@@ -68,31 +131,77 @@ if (stringMode) { | ||
var Styled = function Styled(props, context) { | ||
var getValue = function getValue(v) { | ||
if (typeof v === 'function') { | ||
return v(props, context); | ||
var Styled = function (_Component) { | ||
inherits(Styled, _Component); | ||
function Styled() { | ||
var _temp, _this, _ret; | ||
classCallCheck(this, Styled); | ||
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
return v; | ||
return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.setTheme = function (theme) { | ||
return _this.setState({ theme: theme }); | ||
}, _temp), possibleConstructorReturn(_this, _ret); | ||
} | ||
Styled.prototype.componentWillMount = function componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(this.setTheme); | ||
} | ||
}; | ||
var className = ''; | ||
var classInterpolations = []; | ||
Styled.prototype.componentWillUnmount = function componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe); | ||
} | ||
}; | ||
if (props.className) { | ||
Styled.prototype.render = function render() { | ||
var props = this.props, | ||
state = this.state, | ||
context = this.context; | ||
var mergedProps = props; | ||
if (state && state.theme) { | ||
mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: state.theme || {} | ||
}); | ||
} | ||
var getValue = function getValue(v) { | ||
if (typeof v === 'function') { | ||
return v(mergedProps, context); | ||
} | ||
return v; | ||
}; | ||
var className = ''; | ||
var classInterpolations = []; | ||
if (props.className) { | ||
if (staticClassName === false) { | ||
className += emotion.getRegisteredStyles(classInterpolations, props.className); | ||
} else { | ||
className += props.className + ' '; | ||
} | ||
} | ||
if (staticClassName === false) { | ||
className += emotion.getRegisteredStyles(classInterpolations, props.className); | ||
className += emotion.css.apply(undefined, styles.map(getValue).concat(classInterpolations)); | ||
} else { | ||
className += props.className + ' '; | ||
className += staticClassName; | ||
} | ||
} | ||
if (staticClassName === false) { | ||
className += emotion.css.apply(undefined, styles.map(getValue).concat(classInterpolations)); | ||
} else { | ||
className += staticClassName; | ||
} | ||
return react.createElement(baseTag, omitAssign(omitFn, {}, props, { className: className, ref: props.innerRef })); | ||
}; | ||
return react.createElement(baseTag, omitAssign(omitFn, {}, props, { className: className, ref: props.innerRef })); | ||
}; | ||
return Styled; | ||
}(react.Component); | ||
Styled.contextTypes = contextTypes; | ||
Styled.__emotion_styles = styles; | ||
Styled.__emotion_base = baseTag; | ||
Styled.__emotion_real = Styled; | ||
@@ -99,0 +208,0 @@ Styled.withComponent = function (nextTag) { |
@@ -1,6 +0,63 @@ | ||
import { createElement } from 'react'; | ||
import { Component, createElement } from 'react'; | ||
import { memoize } from 'emotion-utils'; | ||
import { css, getRegisteredStyles } from 'emotion'; | ||
import * as emotion from 'emotion'; | ||
import PropTypes from 'prop-types'; | ||
var _contextTypes; | ||
var channel = '__EMOTION_THEMING__'; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
var classCallCheck = function (instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
}; | ||
var inherits = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
}; | ||
var possibleConstructorReturn = function (self, call) { | ||
if (!self) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return call && (typeof call === "object" || typeof call === "function") ? call : self; | ||
}; | ||
/* global codegen */ | ||
@@ -14,2 +71,5 @@ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$/; | ||
}; | ||
var testAlwaysTrue = function testAlwaysTrue() { | ||
return true; | ||
}; | ||
@@ -41,3 +101,4 @@ var omitAssign = function omitAssign(testFn, target) { | ||
} | ||
var baseTag = staticClassName === false ? tag.__emotion_base || tag : tag; | ||
var isReal = tag.__emotion_real === tag; | ||
var baseTag = staticClassName === false ? isReal && tag.__emotion_base || tag : tag; | ||
@@ -52,3 +113,3 @@ var omitFn = typeof baseTag === 'string' ? testOmitPropsOnStringTag : testOmitPropsOnComponent; | ||
var stringMode = strings !== undefined && strings.raw !== undefined; | ||
var styles = tag.__emotion_styles || []; | ||
var styles = isReal && tag.__emotion_styles || []; | ||
if (staticClassName === false) { | ||
@@ -64,31 +125,77 @@ if (stringMode) { | ||
var Styled = function Styled(props, context) { | ||
var getValue = function getValue(v) { | ||
if (typeof v === 'function') { | ||
return v(props, context); | ||
var Styled = function (_Component) { | ||
inherits(Styled, _Component); | ||
function Styled() { | ||
var _temp, _this, _ret; | ||
classCallCheck(this, Styled); | ||
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
args[_key2] = arguments[_key2]; | ||
} | ||
return v; | ||
return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.setTheme = function (theme) { | ||
return _this.setState({ theme: theme }); | ||
}, _temp), possibleConstructorReturn(_this, _ret); | ||
} | ||
Styled.prototype.componentWillMount = function componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(this.setTheme); | ||
} | ||
}; | ||
var className = ''; | ||
var classInterpolations = []; | ||
Styled.prototype.componentWillUnmount = function componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe); | ||
} | ||
}; | ||
if (props.className) { | ||
Styled.prototype.render = function render() { | ||
var props = this.props, | ||
state = this.state, | ||
context = this.context; | ||
var mergedProps = props; | ||
if (state && state.theme) { | ||
mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: state.theme || {} | ||
}); | ||
} | ||
var getValue = function getValue(v) { | ||
if (typeof v === 'function') { | ||
return v(mergedProps, context); | ||
} | ||
return v; | ||
}; | ||
var className = ''; | ||
var classInterpolations = []; | ||
if (props.className) { | ||
if (staticClassName === false) { | ||
className += getRegisteredStyles(classInterpolations, props.className); | ||
} else { | ||
className += props.className + ' '; | ||
} | ||
} | ||
if (staticClassName === false) { | ||
className += getRegisteredStyles(classInterpolations, props.className); | ||
className += css.apply(undefined, styles.map(getValue).concat(classInterpolations)); | ||
} else { | ||
className += props.className + ' '; | ||
className += staticClassName; | ||
} | ||
} | ||
if (staticClassName === false) { | ||
className += css.apply(undefined, styles.map(getValue).concat(classInterpolations)); | ||
} else { | ||
className += staticClassName; | ||
} | ||
return createElement(baseTag, omitAssign(omitFn, {}, props, { className: className, ref: props.innerRef })); | ||
}; | ||
return createElement(baseTag, omitAssign(omitFn, {}, props, { className: className, ref: props.innerRef })); | ||
}; | ||
return Styled; | ||
}(Component); | ||
Styled.contextTypes = contextTypes; | ||
Styled.__emotion_styles = styles; | ||
Styled.__emotion_base = baseTag; | ||
Styled.__emotion_real = Styled; | ||
@@ -95,0 +202,0 @@ Styled.withComponent = function (nextTag) { |
{ | ||
"name": "react-emotion", | ||
"version": "8.0.2-9", | ||
"version": "8.0.2-10", | ||
"description": "The Next Generation of CSS-in-JS, for React projects.", | ||
@@ -20,11 +20,11 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"babel-plugin-emotion": "^8.0.2-7", | ||
"babel-plugin-emotion": "^8.0.2-10", | ||
"emotion-utils": "^8.0.2-7" | ||
}, | ||
"peerDependencies": { | ||
"emotion": "^8.0.2-9" | ||
"emotion": "^8.0.2-10" | ||
}, | ||
"devDependencies": { | ||
"cross-env": "^5.0.5", | ||
"emotion": "^8.0.2-9", | ||
"emotion": "^8.0.2-10", | ||
"npm-run-all": "^4.0.2", | ||
@@ -31,0 +31,0 @@ "rimraf": "^2.6.1", |
/* global codegen */ | ||
import { createElement } from 'react' | ||
import { createElement, Component } from 'react' | ||
import { memoize } from 'emotion-utils' | ||
import { css, getRegisteredStyles } from 'emotion' | ||
import { channel, contextTypes } from '../../emotion-theming/src/utils' | ||
@@ -11,2 +12,3 @@ export * from 'emotion' | ||
const testOmitPropsOnComponent = key => key !== 'theme' && key !== 'innerRef' | ||
const testAlwaysTrue = () => true | ||
@@ -40,3 +42,5 @@ const omitAssign = function(testFn, target) { | ||
} | ||
const baseTag = staticClassName === false ? tag.__emotion_base || tag : tag | ||
const isReal = tag.__emotion_real === tag | ||
const baseTag = | ||
staticClassName === false ? (isReal && tag.__emotion_base) || tag : tag | ||
@@ -50,3 +54,3 @@ const omitFn = | ||
const stringMode = strings !== undefined && strings.raw !== undefined | ||
let styles = tag.__emotion_styles || [] | ||
let styles = (isReal && tag.__emotion_styles) || [] | ||
if (staticClassName === false) { | ||
@@ -63,34 +67,62 @@ if (stringMode) { | ||
const Styled = (props, context) => { | ||
const getValue = v => { | ||
if (typeof v === 'function') { | ||
return v(props, context) | ||
class Styled extends Component { | ||
componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(this.setTheme) | ||
} | ||
return v | ||
} | ||
let className = '' | ||
let classInterpolations = [] | ||
componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe) | ||
} | ||
} | ||
setTheme = theme => this.setState({ theme }) | ||
if (props.className) { | ||
render() { | ||
const { props, state, context } = this | ||
let mergedProps = props | ||
if (state && state.theme) { | ||
mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: state.theme || {} | ||
}) | ||
} | ||
const getValue = v => { | ||
if (typeof v === 'function') { | ||
return v(mergedProps, context) | ||
} | ||
return v | ||
} | ||
let className = '' | ||
let classInterpolations = [] | ||
if (props.className) { | ||
if (staticClassName === false) { | ||
className += getRegisteredStyles( | ||
classInterpolations, | ||
props.className | ||
) | ||
} else { | ||
className += `${props.className} ` | ||
} | ||
} | ||
if (staticClassName === false) { | ||
className += getRegisteredStyles(classInterpolations, props.className) | ||
className += css(...styles.map(getValue), ...classInterpolations) | ||
} else { | ||
className += `${props.className} ` | ||
className += staticClassName | ||
} | ||
return createElement( | ||
baseTag, | ||
omitAssign(omitFn, {}, props, { className, ref: props.innerRef }) | ||
) | ||
} | ||
if (staticClassName === false) { | ||
className += css(...styles.map(getValue), ...classInterpolations) | ||
} else { | ||
className += staticClassName | ||
} | ||
return createElement( | ||
baseTag, | ||
omitAssign(omitFn, {}, props, { className, ref: props.innerRef }) | ||
) | ||
} | ||
Styled.contextTypes = contextTypes | ||
Styled.__emotion_styles = styles | ||
Styled.__emotion_base = baseTag | ||
Styled.__emotion_real = Styled | ||
@@ -97,0 +129,0 @@ Styled.withComponent = nextTag => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
114419
707