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

create-emotion

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-emotion - npm Package Compare versions

Comparing version 10.0.0-beta.11 to 10.0.0-beta.12

2

dist/emotion.umd.min.js

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.createEmotion=r()}(this,function(){"use strict";var l=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 r=e.prototype;return r.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var r,t=(a=this,(n=document.createElement("style")).setAttribute("data-emotion",a.key),void 0!==a.nonce&&n.setAttribute("nonce",a.nonce),n.appendChild(document.createTextNode("")),n);r=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(t,r),this.tags.push(t)}var a,n,i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(i);try{var c=105===e.charCodeAt(1)&&64===e.charCodeAt(0);s.insertRule(e,c?0:s.cssRules.length)}catch(e){}}else i.appendChild(document.createTextNode(e));this.ctr++},r.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function f(e){function E(e,r,t){var a=r.trim().split(u),n=(r=a).length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<n;++s)r[s]=l(e,r[s],t).trim();break;default:var c=s=0;for(r=[];s<n;++s)for(var o=0;o<i;++o)r[c++]=l(e[o]+" ",a[s],t).trim()}return r}function l(e,r,t){var a=r.charCodeAt(0);switch(a<33&&(a=(r=r.trim()).charCodeAt(0)),a){case 38:return r.replace(n,"$1"+e.trim());case 58:return e.trim()+r.replace(n,"$1"+e.trim());default:if(0<1*t&&0<r.indexOf("\f"))return r.replace(n,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+r}function z(e,r,t,a){var n=e+";",i=2*r+3*t+4*a;if(944===i){e=n.indexOf(":",9)+1;var s=n.substring(e,n.length-1).trim();return s=n.substring(0,e).trim()+s+";",1===T||2===T&&j(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!j(n,1))return n;switch(i){case 1015:return 97===n.charCodeAt(10)?"-webkit-"+n+n:n;case 951:return 116===n.charCodeAt(3)?"-webkit-"+n+n:n;case 963:return 110===n.charCodeAt(5)?"-webkit-"+n+n:n;case 1009:if(100!==n.charCodeAt(4))break;case 969:case 942:return"-webkit-"+n+n;case 978:return"-webkit-"+n+"-moz-"+n+n;case 1019:case 983:return"-webkit-"+n+"-moz-"+n+"-ms-"+n+n;case 883:if(45===n.charCodeAt(8))return"-webkit-"+n+n;if(0<n.indexOf("image-set(",11))return n.replace(g,"$1-webkit-$2")+n;break;case 932:if(45===n.charCodeAt(4))switch(n.charCodeAt(5)){case 103:return"-webkit-box-"+n.replace("-grow","")+"-webkit-"+n+"-ms-"+n.replace("grow","positive")+n;case 115:return"-webkit-"+n+"-ms-"+n.replace("shrink","negative")+n;case 98:return"-webkit-"+n+"-ms-"+n.replace("basis","preferred-size")+n}return"-webkit-"+n+"-ms-"+n+n;case 964:return"-webkit-"+n+"-ms-flex-"+n+n;case 1023:if(99!==n.charCodeAt(8))break;return"-webkit-box-pack"+(s=n.substring(n.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+n+"-ms-flex-pack"+s+n;case 1005:return o.test(n)?n.replace(c,":-webkit-")+n.replace(c,":-moz-")+n:n;case 1e3:switch(r=(s=n.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(r)){case 226:s=n.replace(d,"tb");break;case 232:s=n.replace(d,"tb-rl");break;case 220:s=n.replace(d,"lr");break;default:return n}return"-webkit-"+n+"-ms-"+s+n;case 1017:if(-1===n.indexOf("sticky",9))break;case 975:switch(r=(n=e).length-10,i=(s=(33===n.charCodeAt(r)?n.substring(0,r):n).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:n=n.replace(s,"-webkit-"+s)+";"+n;break;case 207:case 102:n=n.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+n.replace(s,"-webkit-"+s)+";"+n.replace(s,"-ms-"+s+"box")+";"+n}return n+";";case 938:if(45===n.charCodeAt(5))switch(n.charCodeAt(6)){case 105:return s=n.replace("-items",""),"-webkit-"+n+"-webkit-box-"+s+"-ms-flex-"+s+n;case 115:return"-webkit-"+n+"-ms-flex-item-"+n.replace(b,"")+n;default:return"-webkit-"+n+"-ms-flex-line-pack"+n.replace("align-content","").replace(b,"")+n}break;case 973:case 989:if(45!==n.charCodeAt(3)||122===n.charCodeAt(4))break;case 931:case 953:if(!0===p.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?z(e.replace("stretch","fill-available"),r,t,a).replace(":fill-available",":stretch"):n.replace(s,"-webkit-"+s)+n.replace(s,"-moz-"+s.replace("fill-",""))+n;break;case 962:if(n="-webkit-"+n+(102===n.charCodeAt(5)?"-ms-"+n:"")+n,211===t+a&&105===n.charCodeAt(13)&&0<n.indexOf("transform",10))return n.substring(0,n.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+n}return n}function j(e,r){var t=e.indexOf(1===r?":":"{"),a=e.substring(0,3!==r?t:10);return t=e.substring(t+1,e.length-1),s(2!==r?a:a.replace(i,"$1"),t,r)}function R(e,r){var t=z(r,r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2));return t!==r+";"?t.replace(a," or ($1)").substring(4):"("+r+")"}function _(e,r,t,a,n,i,s,c,o,l){for(var f,u=0,d=r;u<B;++u)switch(f=k[u].call(h,e,d,t,a,n,i,s,c,o,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==r)return d}function r(e){return void 0!==(e=e.prefix)&&(s=null,e?"function"!=typeof e?T=1:(T=2,s=e):T=0),r}function h(e,r){var t=e;if(t.charCodeAt(0)<33&&(t=t.trim()),t=[t],0<B){var a=_(-1,r,t,t,F,D,0,0,0,0);void 0!==a&&"string"==typeof a&&(r=a)}var n=function e(r,t,a,n,i){for(var s,c,o,l,f,u=0,d=0,h=0,b=0,p=0,g=0,k=o=s=0,m=0,v=0,w=0,y=0,A=a.length,C=A-1,x="",S="",O="",$="";m<A;){if(c=a.charCodeAt(m),m===C&&0!==d+b+h+u&&(0!==d&&(c=47===d?10:47),b=h=u=0,A++,C++),0===d+b+h+u){if(m===C&&(0<v&&(x=x.replace(N,"")),0<x.trim().length)){switch(c){case 32:case 9:case 59:case 13:case 10:break;default:x+=a.charAt(m)}c=59}switch(c){case 123:for(s=(x=x.trim()).charCodeAt(0),o=1,y=++m;m<A;){switch(c=a.charCodeAt(m)){case 123:o++;break;case 125:o--;break;case 47:switch(c=a.charCodeAt(m+1)){case 42:case 47:e:{for(k=m+1;k<C;++k)switch(a.charCodeAt(k)){case 47:if(42===c&&42===a.charCodeAt(k-1)&&m+2!==k){m=k+1;break e}break;case 10:if(47===c){m=k+1;break e}}m=k}}break;case 91:c++;case 40:c++;case 34:case 39:for(;m++<C&&a.charCodeAt(m)!==c;);}if(0===o)break;m++}switch(o=a.substring(y,m),0===s&&(s=(x=x.replace(G,"").trim()).charCodeAt(0)),s){case 64:switch(0<v&&(x=x.replace(N,"")),c=x.charCodeAt(1)){case 100:case 109:case 115:case 45:v=t;break;default:v=q}if(y=(o=e(t,v,o,c,i+1)).length,0<B&&(f=_(3,o,v=E(q,x,w),t,F,D,y,c,i,n),x=v.join(""),void 0!==f&&0===(y=(o=f.trim()).length)&&(c=0,o="")),0<y)switch(c){case 115:x=x.replace(P,R);case 100:case 109:case 45:o=x+"{"+o+"}";break;case 107:o=(x=x.replace(I,"$1 $2"))+"{"+o+"}",o=1===T||2===T&&j("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=x+o,112===n&&(S+=o,o="")}else o="";break;default:o=e(t,E(t,x,w),o,n,i+1)}O+=o,o=w=v=k=s=0,x="",c=a.charCodeAt(++m);break;case 125:case 59:if(1<(y=(x=(0<v?x.replace(N,""):x).trim()).length))switch(0===k&&(s=x.charCodeAt(0),45===s||96<s&&s<123)&&(y=(x=x.replace(" ",":")).length),0<B&&void 0!==(f=_(1,x,t,r,F,D,S.length,n,i,n))&&0===(y=(x=f.trim()).length)&&(x="\0\0"),s=x.charCodeAt(0),c=x.charCodeAt(1),s){case 0:break;case 64:if(105===c||99===c){$+=x+a.charAt(m);break}default:58!==x.charCodeAt(y-1)&&(S+=z(x,s,c,x.charCodeAt(2)))}w=v=k=s=0,x="",c=a.charCodeAt(++m)}}switch(c){case 13:case 10:47===d?d=0:0===1+s&&107!==n&&0<x.length&&(v=1,x+="\0"),0<B*H&&_(0,x,t,r,F,D,S.length,n,i,n),D=1,F++;break;case 59:case 125:if(0===d+b+h+u){D++;break}default:switch(D++,l=a.charAt(m),c){case 9:case 32:if(0===b+u+d)switch(p){case 44:case 58:case 9:case 32:l="";break;default:32!==c&&(l=" ")}break;case 0:l="\\0";break;case 12:l="\\f";break;case 11:l="\\v";break;case 38:0===b+d+u&&(v=w=1,l="\f"+l);break;case 108:if(0===b+d+u+L&&0<k)switch(m-k){case 2:112===p&&58===a.charCodeAt(m-3)&&(L=p);case 8:111===g&&(L=g)}break;case 58:0===b+d+u&&(k=m);break;case 44:0===d+h+b+u&&(v=1,l+="\r");break;case 34:case 39:0===d&&(b=b===c?0:0===b?c:b);break;case 91:0===b+d+h&&u++;break;case 93:0===b+d+h&&u--;break;case 41:0===b+d+u&&h--;break;case 40:if(0===b+d+u){if(0===s)switch(2*p+3*g){case 533:break;default:s=1}h++}break;case 64:0===d+h+b+u+k+o&&(o=1);break;case 42:case 47:if(!(0<b+u+h))switch(d){case 0:switch(2*c+3*a.charCodeAt(m+1)){case 235:d=47;break;case 220:y=m,d=42}break;case 42:47===c&&42===p&&y+2!==m&&(33===a.charCodeAt(y+2)&&(S+=a.substring(y,m+1)),l="",d=0)}}0===d&&(x+=l)}g=p,p=c,m++}if(0<(y=S.length)){if(v=t,0<B&&void 0!==(f=_(2,S,v,r,F,D,y,n,i,n))&&0===(S=f).length)return $+S+O;if(S=v.join(",")+"{"+S+"}",0!=T*L){switch(2!==T||j(S,2)||(L=0),L){case 111:S=S.replace(M,":-moz-$1")+S;break;case 112:S=S.replace(W,"::-webkit-input-$1")+S.replace(W,"::-moz-$1")+S.replace(W,":-ms-input-$1")+S}L=0}}return $+S+O}(q,t,r,0,0);return 0<B&&(void 0!==(a=_(-2,n,t,t,F,D,n.length,0,0,0))&&(n=a)),"",L=0,D=F=1,n}var G=/^\0+/g,N=/[\0\r\f]/g,c=/: */g,o=/zoo|gra/,f=/([,: ])(transform)/g,u=/,\r+?/g,n=/([\t\r\n ])*\f?&/g,I=/@(k\w+)\s*(\S*)\s*/,W=/::(place)/g,M=/:(read-only)/g,d=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,i=/[^]*?(:[rp][el]a[\w-]+)[^]*/,p=/stretch|:\s*\w+\-(?:conte|avail)/,g=/([^-])(image-set\()/,D=1,F=1,L=0,T=1,q=[],k=[],B=0,s=null,H=0;return h.use=function e(r){switch(r){case void 0:case null:B=k.length=0;break;default:if("function"==typeof r)k[B++]=r;else if("object"==typeof r)for(var t=0,a=r.length;t<a;++t)e(r[t]);else H=0|!!r}return e},h.set=r,void 0!==e&&r(e),h}var u="/*|*/";function d(e){e&&h.current.insert(e+"}")}var h={current:null},b=function(e,r,t,a,n,i,s,c,o,l){switch(e){case 1:switch(r.charCodeAt(0)){case 64:return h.current.insert(r+";"),"";case 108:if(98===r.charCodeAt(2))return""}break;case 2:if(0===c)return r+u;break;case 3:switch(c){case 102:case 112:return h.current.insert(t[0]+r),"";default:return r+(0===l?u:"")}case-2:r.split("/*|*/}").forEach(d)}};var t={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 r,a,n=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o=(r=function(e){return e.replace(n,"-$&").toLowerCase()},a={},function(e){return void 0===a[e]&&(a[e]=r(e)),a[e]}),p=function(e,r){if(null==r||"boolean"==typeof r)return"";switch(e){case"animation":case"animationName":r=r.replace(i,function(e,r,t){return k={name:r,styles:t,next:k},r})}return 1!==t[e]&&45!==e.charCodeAt(1)&&"number"==typeof r&&0!==r?r+"px":r};function g(e,r,t,a){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return k={name:t.name,styles:t.styles,next:k},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)k={name:n.name,styles:n.styles,next:k},n=n.next;return t.styles}return function(e,r,t){var a="";if(Array.isArray(t))for(var n=0;n<t.length;n++)a+=g(e,r,t[n],!1);else for(var i in t){var s=t[i];if("object"!=typeof s)void 0!==r[s]?a+=i+"{"+r[s]+"}":a+=o(i)+":"+p(i,s)+";";else if(Array.isArray(s)&&"string"==typeof s[0]&&void 0===r[s[0]])for(var c=0;c<s.length;c++)a+=o(i)+":"+p(i,s[c])+";";else a+=i+"{"+g(e,r,s,!1)+"}"}return a}(e,r,t);case"function":if(void 0!==e){var i=k,s=t(e);return k=i,g(e,r,s,a)}default:var c=r[t];return void 0===c||a?t:c}}var k,m=/label:\s*([^\s;\n{]+)\s*;/g,s=function(e,r,t){if(1===r.length&&"object"==typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var a=!0,n="";k=void 0;var i=r[0];null==i||void 0===i.raw?n+=g(t,e,i,a=!1):n+=i[0];for(var s=1;s<r.length;s++)n+=g(t,e,r[s],46===n.charCodeAt(n.length-1)),a&&(n+=i[s]);m.lastIndex=0;for(var c,o="";null!==(c=m.exec(n));)o+="-"+c[1];return{name:function(e){for(var r,t=e.length,a=t^t,n=0;4<=t;)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+((1540483477*(r>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),t-=4,++n;switch(t){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:k}};function c(r,t,e){var a="";return e.split(" ").forEach(function(e){void 0!==r[e]?t.push(r[e]):a+=e+" "}),a}function v(e,r){if(void 0===e.inserted[r.name])return e.insert("",r,e.sheet,!0)}function w(e,r,t){var a=[],n=c(e,a,t);return a.length<2?t:n+r(a)}var y=function e(r){for(var t="",a=0;a<r.length;a++){var n=r[a];if(null!=n){var i=void 0;switch(typeof n){case"boolean":break;case"object":if(Array.isArray(n))i=e(n);else for(var s in i="",n)n[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=n}i&&(t&&(t+=" "),t+=i)}}return t};return function(e){var i=function(e){void 0===e&&(e={});var r,t=e.key||"css";void 0!==e.prefix&&(r={prefix:e.prefix});var a,i=new f(r),n={};a=e.container||document.head;var s,c=document.querySelectorAll("style[data-emotion-"+t+"]");Array.prototype.forEach.call(c,function(e){e.getAttribute("data-emotion-"+t).split(" ").forEach(function(e){n[e]=!0}),e.parentNode!==a&&a.appendChild(e)}),i.use(e.stylisPlugins)(b),s=function(e,r,t,a){var n=r.name;h.current=t,i(e,r.styles),a&&(o.inserted[n]=!0)};var o={key:t,sheet:new l({key:t,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:n,registered:{},insert:s};return o}(e);i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0;var a=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r,void 0!==this?this.mergedProps:void 0);return function(e,r,t){var a=e.key+"-"+r.name;if(!1===t&&void 0===e.registered[a]&&(e.registered[a]=r.styles),void 0===e.inserted[r.name])for(var n=r;e.insert("."+a,n,e.sheet,!0),void 0!==(n=n.next););}(i,a,!1),i.key+"-"+a.name};return{css:a,cx:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return w(i.registered,a,y(r))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r);v(i,a)},keyframes:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r),n="animation-"+a.name;return v(i,{name:a.name,styles:"@keyframes "+n+"{"+a.styles+"}"}),n},hydrate:function(e){e.forEach(function(e){i.inserted[e]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:c.bind(null,i.registered),merge:w.bind(null,i.registered,a)}}});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.createEmotion=r()}(this,function(){"use strict";var l=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 r=e.prototype;return r.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var r,t=(a=this,(n=document.createElement("style")).setAttribute("data-emotion",a.key),void 0!==a.nonce&&n.setAttribute("nonce",a.nonce),n.appendChild(document.createTextNode("")),n);r=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(t,r),this.tags.push(t)}var a,n,i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=function(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}(i);try{var c=105===e.charCodeAt(1)&&64===e.charCodeAt(0);s.insertRule(e,c?0:s.cssRules.length)}catch(e){}}else i.appendChild(document.createTextNode(e));this.ctr++},r.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function f(e){function E(e,r,t){var a=r.trim().split(u),n=(r=a).length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<n;++s)r[s]=l(e,r[s],t).trim();break;default:var c=s=0;for(r=[];s<n;++s)for(var o=0;o<i;++o)r[c++]=l(e[o]+" ",a[s],t).trim()}return r}function l(e,r,t){var a=r.charCodeAt(0);switch(a<33&&(a=(r=r.trim()).charCodeAt(0)),a){case 38:return r.replace(n,"$1"+e.trim());case 58:return e.trim()+r.replace(n,"$1"+e.trim());default:if(0<1*t&&0<r.indexOf("\f"))return r.replace(n,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+r}function z(e,r,t,a){var n=e+";",i=2*r+3*t+4*a;if(944===i){e=n.indexOf(":",9)+1;var s=n.substring(e,n.length-1).trim();return s=n.substring(0,e).trim()+s+";",1===T||2===T&&j(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!j(n,1))return n;switch(i){case 1015:return 97===n.charCodeAt(10)?"-webkit-"+n+n:n;case 951:return 116===n.charCodeAt(3)?"-webkit-"+n+n:n;case 963:return 110===n.charCodeAt(5)?"-webkit-"+n+n:n;case 1009:if(100!==n.charCodeAt(4))break;case 969:case 942:return"-webkit-"+n+n;case 978:return"-webkit-"+n+"-moz-"+n+n;case 1019:case 983:return"-webkit-"+n+"-moz-"+n+"-ms-"+n+n;case 883:if(45===n.charCodeAt(8))return"-webkit-"+n+n;if(0<n.indexOf("image-set(",11))return n.replace(g,"$1-webkit-$2")+n;break;case 932:if(45===n.charCodeAt(4))switch(n.charCodeAt(5)){case 103:return"-webkit-box-"+n.replace("-grow","")+"-webkit-"+n+"-ms-"+n.replace("grow","positive")+n;case 115:return"-webkit-"+n+"-ms-"+n.replace("shrink","negative")+n;case 98:return"-webkit-"+n+"-ms-"+n.replace("basis","preferred-size")+n}return"-webkit-"+n+"-ms-"+n+n;case 964:return"-webkit-"+n+"-ms-flex-"+n+n;case 1023:if(99!==n.charCodeAt(8))break;return"-webkit-box-pack"+(s=n.substring(n.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+n+"-ms-flex-pack"+s+n;case 1005:return o.test(n)?n.replace(c,":-webkit-")+n.replace(c,":-moz-")+n:n;case 1e3:switch(r=(s=n.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(r)){case 226:s=n.replace(d,"tb");break;case 232:s=n.replace(d,"tb-rl");break;case 220:s=n.replace(d,"lr");break;default:return n}return"-webkit-"+n+"-ms-"+s+n;case 1017:if(-1===n.indexOf("sticky",9))break;case 975:switch(r=(n=e).length-10,i=(s=(33===n.charCodeAt(r)?n.substring(0,r):n).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:n=n.replace(s,"-webkit-"+s)+";"+n;break;case 207:case 102:n=n.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+n.replace(s,"-webkit-"+s)+";"+n.replace(s,"-ms-"+s+"box")+";"+n}return n+";";case 938:if(45===n.charCodeAt(5))switch(n.charCodeAt(6)){case 105:return s=n.replace("-items",""),"-webkit-"+n+"-webkit-box-"+s+"-ms-flex-"+s+n;case 115:return"-webkit-"+n+"-ms-flex-item-"+n.replace(b,"")+n;default:return"-webkit-"+n+"-ms-flex-line-pack"+n.replace("align-content","").replace(b,"")+n}break;case 973:case 989:if(45!==n.charCodeAt(3)||122===n.charCodeAt(4))break;case 931:case 953:if(!0===p.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?z(e.replace("stretch","fill-available"),r,t,a).replace(":fill-available",":stretch"):n.replace(s,"-webkit-"+s)+n.replace(s,"-moz-"+s.replace("fill-",""))+n;break;case 962:if(n="-webkit-"+n+(102===n.charCodeAt(5)?"-ms-"+n:"")+n,211===t+a&&105===n.charCodeAt(13)&&0<n.indexOf("transform",10))return n.substring(0,n.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+n}return n}function j(e,r){var t=e.indexOf(1===r?":":"{"),a=e.substring(0,3!==r?t:10);return t=e.substring(t+1,e.length-1),s(2!==r?a:a.replace(i,"$1"),t,r)}function R(e,r){var t=z(r,r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2));return t!==r+";"?t.replace(a," or ($1)").substring(4):"("+r+")"}function _(e,r,t,a,n,i,s,c,o,l){for(var f,u=0,d=r;u<B;++u)switch(f=k[u].call(h,e,d,t,a,n,i,s,c,o,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==r)return d}function r(e){return void 0!==(e=e.prefix)&&(s=null,e?"function"!=typeof e?T=1:(T=2,s=e):T=0),r}function h(e,r){var t=e;if(t.charCodeAt(0)<33&&(t=t.trim()),t=[t],0<B){var a=_(-1,r,t,t,F,D,0,0,0,0);void 0!==a&&"string"==typeof a&&(r=a)}var n=function e(r,t,a,n,i){for(var s,c,o,l,f,u=0,d=0,h=0,b=0,p=0,g=0,k=o=s=0,m=0,v=0,w=0,y=0,A=a.length,C=A-1,x="",S="",O="",$="";m<A;){if(c=a.charCodeAt(m),m===C&&0!==d+b+h+u&&(0!==d&&(c=47===d?10:47),b=h=u=0,A++,C++),0===d+b+h+u){if(m===C&&(0<v&&(x=x.replace(N,"")),0<x.trim().length)){switch(c){case 32:case 9:case 59:case 13:case 10:break;default:x+=a.charAt(m)}c=59}switch(c){case 123:for(s=(x=x.trim()).charCodeAt(0),o=1,y=++m;m<A;){switch(c=a.charCodeAt(m)){case 123:o++;break;case 125:o--;break;case 47:switch(c=a.charCodeAt(m+1)){case 42:case 47:e:{for(k=m+1;k<C;++k)switch(a.charCodeAt(k)){case 47:if(42===c&&42===a.charCodeAt(k-1)&&m+2!==k){m=k+1;break e}break;case 10:if(47===c){m=k+1;break e}}m=k}}break;case 91:c++;case 40:c++;case 34:case 39:for(;m++<C&&a.charCodeAt(m)!==c;);}if(0===o)break;m++}switch(o=a.substring(y,m),0===s&&(s=(x=x.replace(G,"").trim()).charCodeAt(0)),s){case 64:switch(0<v&&(x=x.replace(N,"")),c=x.charCodeAt(1)){case 100:case 109:case 115:case 45:v=t;break;default:v=q}if(y=(o=e(t,v,o,c,i+1)).length,0<B&&(f=_(3,o,v=E(q,x,w),t,F,D,y,c,i,n),x=v.join(""),void 0!==f&&0===(y=(o=f.trim()).length)&&(c=0,o="")),0<y)switch(c){case 115:x=x.replace(P,R);case 100:case 109:case 45:o=x+"{"+o+"}";break;case 107:o=(x=x.replace(I,"$1 $2"))+"{"+o+"}",o=1===T||2===T&&j("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=x+o,112===n&&(S+=o,o="")}else o="";break;default:o=e(t,E(t,x,w),o,n,i+1)}O+=o,o=w=v=k=s=0,x="",c=a.charCodeAt(++m);break;case 125:case 59:if(1<(y=(x=(0<v?x.replace(N,""):x).trim()).length))switch(0===k&&(s=x.charCodeAt(0),45===s||96<s&&s<123)&&(y=(x=x.replace(" ",":")).length),0<B&&void 0!==(f=_(1,x,t,r,F,D,S.length,n,i,n))&&0===(y=(x=f.trim()).length)&&(x="\0\0"),s=x.charCodeAt(0),c=x.charCodeAt(1),s){case 0:break;case 64:if(105===c||99===c){$+=x+a.charAt(m);break}default:58!==x.charCodeAt(y-1)&&(S+=z(x,s,c,x.charCodeAt(2)))}w=v=k=s=0,x="",c=a.charCodeAt(++m)}}switch(c){case 13:case 10:47===d?d=0:0===1+s&&107!==n&&0<x.length&&(v=1,x+="\0"),0<B*H&&_(0,x,t,r,F,D,S.length,n,i,n),D=1,F++;break;case 59:case 125:if(0===d+b+h+u){D++;break}default:switch(D++,l=a.charAt(m),c){case 9:case 32:if(0===b+u+d)switch(p){case 44:case 58:case 9:case 32:l="";break;default:32!==c&&(l=" ")}break;case 0:l="\\0";break;case 12:l="\\f";break;case 11:l="\\v";break;case 38:0===b+d+u&&(v=w=1,l="\f"+l);break;case 108:if(0===b+d+u+L&&0<k)switch(m-k){case 2:112===p&&58===a.charCodeAt(m-3)&&(L=p);case 8:111===g&&(L=g)}break;case 58:0===b+d+u&&(k=m);break;case 44:0===d+h+b+u&&(v=1,l+="\r");break;case 34:case 39:0===d&&(b=b===c?0:0===b?c:b);break;case 91:0===b+d+h&&u++;break;case 93:0===b+d+h&&u--;break;case 41:0===b+d+u&&h--;break;case 40:if(0===b+d+u){if(0===s)switch(2*p+3*g){case 533:break;default:s=1}h++}break;case 64:0===d+h+b+u+k+o&&(o=1);break;case 42:case 47:if(!(0<b+u+h))switch(d){case 0:switch(2*c+3*a.charCodeAt(m+1)){case 235:d=47;break;case 220:y=m,d=42}break;case 42:47===c&&42===p&&y+2!==m&&(33===a.charCodeAt(y+2)&&(S+=a.substring(y,m+1)),l="",d=0)}}0===d&&(x+=l)}g=p,p=c,m++}if(0<(y=S.length)){if(v=t,0<B&&void 0!==(f=_(2,S,v,r,F,D,y,n,i,n))&&0===(S=f).length)return $+S+O;if(S=v.join(",")+"{"+S+"}",0!=T*L){switch(2!==T||j(S,2)||(L=0),L){case 111:S=S.replace(M,":-moz-$1")+S;break;case 112:S=S.replace(W,"::-webkit-input-$1")+S.replace(W,"::-moz-$1")+S.replace(W,":-ms-input-$1")+S}L=0}}return $+S+O}(q,t,r,0,0);return 0<B&&(void 0!==(a=_(-2,n,t,t,F,D,n.length,0,0,0))&&(n=a)),"",L=0,D=F=1,n}var G=/^\0+/g,N=/[\0\r\f]/g,c=/: */g,o=/zoo|gra/,f=/([,: ])(transform)/g,u=/,\r+?/g,n=/([\t\r\n ])*\f?&/g,I=/@(k\w+)\s*(\S*)\s*/,W=/::(place)/g,M=/:(read-only)/g,d=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,i=/[^]*?(:[rp][el]a[\w-]+)[^]*/,p=/stretch|:\s*\w+\-(?:conte|avail)/,g=/([^-])(image-set\()/,D=1,F=1,L=0,T=1,q=[],k=[],B=0,s=null,H=0;return h.use=function e(r){switch(r){case void 0:case null:B=k.length=0;break;default:if("function"==typeof r)k[B++]=r;else if("object"==typeof r)for(var t=0,a=r.length;t<a;++t)e(r[t]);else H=0|!!r}return e},h.set=r,void 0!==e&&r(e),h}var u="/*|*/";function d(e){e&&h.current.insert(e+"}")}var h={current:null},b=function(e,r,t,a,n,i,s,c,o,l){switch(e){case 1:switch(r.charCodeAt(0)){case 64:return h.current.insert(r+";"),"";case 108:if(98===r.charCodeAt(2))return""}break;case 2:if(0===c)return r+u;break;case 3:switch(c){case 102:case 112:return h.current.insert(t[0]+r),"";default:return r+(0===l?u:"")}case-2:r.split("/*|*/}").forEach(d)}};var t={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 r,a,n=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o=(r=function(e){return e.replace(n,"-$&").toLowerCase()},a={},function(e){return void 0===a[e]&&(a[e]=r(e)),a[e]}),p=function(e,r){if(null==r||"boolean"==typeof r)return"";switch(e){case"animation":case"animationName":"string"==typeof r&&(r=r.replace(i,function(e,r,t){return k={name:r,styles:t,next:k},r}))}return 1!==t[e]&&45!==e.charCodeAt(1)&&"number"==typeof r&&0!==r?r+"px":r};function g(e,r,t,a){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return k={name:t.name,styles:t.styles,next:k},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)k={name:n.name,styles:n.styles,next:k},n=n.next;return t.styles}return function(e,r,t){var a="";if(Array.isArray(t))for(var n=0;n<t.length;n++)a+=g(e,r,t[n],!1);else for(var i in t){var s=t[i];if("object"!=typeof s)void 0!==r[s]?a+=i+"{"+r[s]+"}":a+=o(i)+":"+p(i,s)+";";else if(Array.isArray(s)&&"string"==typeof s[0]&&void 0===r[s[0]])for(var c=0;c<s.length;c++)a+=o(i)+":"+p(i,s[c])+";";else a+=i+"{"+g(e,r,s,!1)+"}"}return a}(e,r,t);case"function":if(void 0!==e){var i=k,s=t(e);return k=i,g(e,r,s,a)}default:var c=r[t];return void 0===c||a?t:c}}var k,m=/label:\s*([^\s;\n{]+)\s*;/g,s=function(e,r,t){if(1===r.length&&"object"==typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var a=!0,n="";k=void 0;var i=r[0];null==i||void 0===i.raw?n+=g(t,e,i,a=!1):n+=i[0];for(var s=1;s<r.length;s++)n+=g(t,e,r[s],46===n.charCodeAt(n.length-1)),a&&(n+=i[s]);m.lastIndex=0;for(var c,o="";null!==(c=m.exec(n));)o+="-"+c[1];return{name:function(e){for(var r,t=e.length,a=t^t,n=0;4<=t;)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+((1540483477*(r>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),t-=4,++n;switch(t){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:k}};function c(r,t,e){var a="";return e.split(" ").forEach(function(e){void 0!==r[e]?t.push(r[e]):a+=e+" "}),a}function v(e,r){if(void 0===e.inserted[r.name])return e.insert("",r,e.sheet,!0)}function w(e,r,t){var a=[],n=c(e,a,t);return a.length<2?t:n+r(a)}var y=function e(r){for(var t="",a=0;a<r.length;a++){var n=r[a];if(null!=n){var i=void 0;switch(typeof n){case"boolean":break;case"object":if(Array.isArray(n))i=e(n);else for(var s in i="",n)n[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=n}i&&(t&&(t+=" "),t+=i)}}return t};return function(e){var i=function(e){void 0===e&&(e={});var r,t=e.key||"css";void 0!==e.prefix&&(r={prefix:e.prefix});var a,i=new f(r),n={};a=e.container||document.head;var s,c=document.querySelectorAll("style[data-emotion-"+t+"]");Array.prototype.forEach.call(c,function(e){e.getAttribute("data-emotion-"+t).split(" ").forEach(function(e){n[e]=!0}),e.parentNode!==a&&a.appendChild(e)}),i.use(e.stylisPlugins)(b),s=function(e,r,t,a){var n=r.name;h.current=t,i(e,r.styles),a&&(o.inserted[n]=!0)};var o={key:t,sheet:new l({key:t,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:n,registered:{},insert:s};return o}(e);i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0;var a=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r,void 0!==this?this.mergedProps:void 0);return function(e,r,t){var a=e.key+"-"+r.name;if(!1===t&&void 0===e.registered[a]&&(e.registered[a]=r.styles),void 0===e.inserted[r.name])for(var n=r;e.insert("."+a,n,e.sheet,!0),void 0!==(n=n.next););}(i,a,!1),i.key+"-"+a.name};return{css:a,cx:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return w(i.registered,a,y(r))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r);v(i,a)},keyframes:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=s(i.registered,r),n="animation-"+a.name;return v(i,{name:a.name,styles:"@keyframes "+n+"{"+a.styles+"}"}),n},hydrate:function(e){e.forEach(function(e){i.inserted[e]=!0})},flush:function(){i.registered={},i.inserted={},i.sheet.flush()},sheet:i.sheet,cache:i,getRegisteredStyles:c.bind(null,i.registered),merge:w.bind(null,i.registered,a)}}});
//# sourceMappingURL=emotion.umd.min.js.map
{
"name": "create-emotion",
"version": "10.0.0-beta.11",
"version": "10.0.0-beta.12",
"description": "The Next Generation of CSS-in-JS.",

@@ -17,4 +17,4 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@emotion/cache": "10.0.0-beta.11",
"@emotion/serialize": "^0.10.5",
"@emotion/cache": "10.0.0-beta.12",
"@emotion/serialize": "0.10.6",
"@emotion/sheet": "^0.9.1",

@@ -25,3 +25,3 @@ "@emotion/utils": "^0.11.0"

"babel-plugin-transform-define": "^1.3.0",
"create-emotion-server": "10.0.0-beta.11",
"create-emotion-server": "10.0.0-beta.12",
"dtslint": "^0.3.0"

@@ -28,0 +28,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc