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 9.1.2 to 9.1.3

2

dist/emotion.umd.min.js

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

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

@@ -27,2 +27,19 @@ 'use strict';

};
if (process.env.NODE_ENV !== 'production') {
var contentValuePattern = /(attr|calc|counters?|url)\(/;
var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
var oldProcessStyleValue = processStyleValue;
processStyleValue = function processStyleValue(key, value) {
if (key === 'content') {
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
}
}
return oldProcessStyleValue(key, value);
};
}
var classnames = function classnames(args) {

@@ -307,3 +324,7 @@ var len = args.length;

function _ref2(key) {
function _ref3(key) {
function _ref2(value) {
string += processStyleName(key) + ":" + processStyleValue(key, value) + ";";
}
if (typeof obj[key] !== 'object') {

@@ -320,3 +341,7 @@ if (caches.registered[obj[key]] !== undefined) {

string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {
obj[key].forEach(_ref2);
} else {
string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
}
}

@@ -328,3 +353,3 @@ }

} else {
Object.keys(obj).forEach(_ref2, this);
Object.keys(obj).forEach(_ref3, this);
}

@@ -466,3 +491,3 @@

function _ref3(node) {
function _ref4(node) {
// $FlowFixMe

@@ -476,3 +501,3 @@ sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe

var chunks = document.querySelectorAll("[data-emotion-" + key + "]");
Array.prototype.forEach.call(chunks, _ref3);
Array.prototype.forEach.call(chunks, _ref4);
}

@@ -479,0 +504,0 @@

@@ -23,2 +23,19 @@ import hashString from '@emotion/hash';

};
if (process.env.NODE_ENV !== 'production') {
var contentValuePattern = /(attr|calc|counters?|url)\(/;
var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
var oldProcessStyleValue = processStyleValue;
processStyleValue = function processStyleValue(key, value) {
if (key === 'content') {
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
}
}
return oldProcessStyleValue(key, value);
};
}
var classnames = function classnames(args) {

@@ -303,3 +320,7 @@ var len = args.length;

function _ref2(key) {
function _ref3(key) {
function _ref2(value) {
string += processStyleName(key) + ":" + processStyleValue(key, value) + ";";
}
if (typeof obj[key] !== 'object') {

@@ -316,3 +337,7 @@ if (caches.registered[obj[key]] !== undefined) {

string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {
obj[key].forEach(_ref2);
} else {
string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
}
}

@@ -324,3 +349,3 @@ }

} else {
Object.keys(obj).forEach(_ref2, this);
Object.keys(obj).forEach(_ref3, this);
}

@@ -462,3 +487,3 @@

function _ref3(node) {
function _ref4(node) {
// $FlowFixMe

@@ -472,3 +497,3 @@ sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe

var chunks = document.querySelectorAll("[data-emotion-" + key + "]");
Array.prototype.forEach.call(chunks, _ref3);
Array.prototype.forEach.call(chunks, _ref4);
}

@@ -475,0 +500,0 @@

{
"name": "create-emotion",
"version": "9.1.2",
"version": "9.1.3",
"description": "The Next Generation of CSS-in-JS.",

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

@@ -192,4 +192,20 @@ // @flow

}
string += `${key}{${handleInterpolation.call(this, obj[key], false)}}`
if (
Array.isArray(obj[key]) &&
(typeof obj[key][0] === 'string' &&
caches.registered[obj[key][0]] === undefined)
) {
obj[key].forEach(value => {
string += `${processStyleName(key)}:${processStyleValue(
key,
value
)};`
})
} else {
string += `${key}{${handleInterpolation.call(
this,
obj[key],
false
)}}`
}
}

@@ -196,0 +212,0 @@ }, this)

@@ -11,3 +11,3 @@ // @flow

export const processStyleValue = (key: string, value: string): string => {
export let processStyleValue = (key: string, value: string): string => {
if (value == null || typeof value === 'boolean') {

@@ -28,2 +28,35 @@ return ''

if (process.env.NODE_ENV !== 'production') {
let contentValuePattern = /(attr|calc|counters?|url)\(/
let contentValues = [
'normal',
'none',
'counter',
'open-quote',
'close-quote',
'no-open-quote',
'no-close-quote',
'initial',
'inherit',
'unset'
]
let oldProcessStyleValue = processStyleValue
processStyleValue = (key: string, value: string) => {
if (key === 'content') {
if (
typeof value !== 'string' ||
(contentValues.indexOf(value) === -1 &&
!contentValuePattern.test(value) &&
(value.charAt(0) !== value.charAt(value.length - 1) ||
(value.charAt(0) !== '"' && value.charAt(0) !== "'")))
) {
console.error(
`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${value}"'\``
)
}
}
return oldProcessStyleValue(key, value)
}
}
export type ClassNameArg =

@@ -30,0 +63,0 @@ | string

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

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