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

emotion

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emotion - npm Package Compare versions

Comparing version 8.0.2-3 to 8.0.2-4

2

dist/DO-NOT-USE.min.js

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

!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.emotion=e.emotion||{})}(this,function(e){"use strict";function a(e){return t(e,e.length).toString(36)}function t(e,a){for(var t=1540483477,i=a^e.length,n=e.length,o=0;n>=4;){var f=r(e,o);f=s(f,t),f=s(f^=f>>>24,t),i=s(i,t),i^=f,o+=4,n-=4}switch(n){case 3:i^=c(e,o),i=s(i^=e.charCodeAt(o+2)<<16,t);break;case 2:i=s(i^=c(e,o),t);break;case 1:i=s(i^=e.charCodeAt(o),t)}return i^=i>>>13,i=s(i,t),(i^=i>>>15)>>>0}function r(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)+(e.charCodeAt(a++)<<16)+(e.charCodeAt(a)<<24)}function c(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)}function s(e,a){return(65535&(e|=0))*(a|=0)+(((e>>>16)*a&65535)<<16)|0}function i(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(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 o(){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){var a=[];return e.forEach(function(e){a=Array.isArray(e)?a.concat(f(e)):a.concat(e)}),a}function h(a,t){return void 0===a||null===a||!1===a?"":"object"==typeof a?d(a):!1===t&&void 0!==e.registered[a]?e.registered[a]:a}function d(a){var t="";return Array.isArray(a)?f(a).forEach(function(e){t+=h(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+=S(r)+":"+E(r,a[r])+";":t+=r+"{"+d(a[r])+"}"}),t}function l(e){return 46===e.charCodeAt(e.length-1)}function u(e){var a=!0,t="";void 0!==e&&void 0===e.raw||void 0===e?(a=!1,t=h(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+=h(r,l(t)),!0===a&&void 0!==e[c+1]&&(t+=e[c+1])}),t}function b(){var t=u.apply(void 0,arguments),r=a(t),c="css-"+r;return void 0===e.registered[c]&&(e.registered[c]=t),void 0===e.inserted[r]&&(C("."+c,t),e.inserted[r]=!0),c}function k(a,t){var r="";return t.split(" ").forEach(function(t){void 0!==e.registered[t]?a.push(t):r+=t+" "}),r}var p=function e(a){function t(e,a,c,o){for(var f,h,u,b,k,p=0,g=0,m=0,v=0,C=0,A=0,O=0,$=0,S=0,E=0,z=f=0,N=h=0,I=0,G=c.length,B=G-1,q="",Y="",ee="",ae="";z<G;){if(u=c.charCodeAt(z),0===g+v+m+p){if(z===B&&(0<h&&(q=q.replace(l,"")),0<q.trim().length)){switch(u){case 32:case 9:case 59:case 13:case 10:break;default:q+=c.charAt(z)}u=59}if(1===N)switch(u){case 123:case 44:N=0;break;case 9:case 13:case 10:case 32:break;default:z--,u=59}switch(u){case 123:for(f=(q=q.trim()).charCodeAt(0),$=1,S=++z;z<G;){switch(u=c.charCodeAt(z)){case 123:$++;break;case 125:$--}if(0===$)break;z++}switch(E=c.substring(S,z),0===f&&(f=(q=q.replace(d,"").trim()).charCodeAt(0)),f){case 64:switch(0<h&&(q=q.replace(l,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:u=a;break;default:u=Z}if(E=t(a,u,E,h),S=E.length,0<L&&0===S&&(S=q.length),0<J&&(u=r(Z,q,I),k=n(3,E,u,a,W,T,S,h),q=u.join(""),void 0!==k&&0===(S=(E=k.trim()).length)&&(h=0,E="")),0<S)switch(h){case 115:q=q.replace(F,i);case 100:case 109:E=q+"{"+E+"}";break;case 107:E=(q=q.replace(y,"$1 $2"+(0<Q?U:"")))+"{"+E+"}",E="@"+(0<P?"-webkit-"+E+"@"+E:E);break;default:E=q+E}else E="";break;default:E=t(a,r(a,q,I),E,o)}ee+=E,E=I=h=f=N=S=0,q="",u=c.charCodeAt(++z);break;case 125:case 59:if(q=(0<h?q.replace(l,""):q).trim(),1<(S=q.length))switch(0===f&&(45===(f=q.charCodeAt(0))||96<f&&123>f)&&(S=(q=q.replace(" ",":")).length),0<J&&void 0!==(k=n(1,q,a,e,W,T,Y.length,o))&&0===(S=(q=k.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),h=q.charCodeAt(1),f+h){case 0:break;case 169:case 163:ae+=q+c.charAt(z);break;default:58!==q.charCodeAt(S-1)&&(Y+=s(q,f,h,q.charCodeAt(2)))}I=h=f=N=S=0,q="",u=c.charCodeAt(++z)}}switch(u){case 13:case 10:if(0===g+v+m+p+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<f&&(N=1)}47===g&&(g=0),0<J*K&&n(0,q,a,e,W,T,Y.length,o),T=1,W++;break;case 59:case 125:if(0===g+v+m+p){T++;break}default:switch(T++,b=c.charAt(z),u){case 9:case 32:if(0===v+p)switch(C){case 44:case 58:case 9:case 32:b="";break;default:32!==u&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===v+g+p&&0<M&&(h=I=1,b="\f"+b);break;case 108:if(0===v+g+p+D&&0<f)switch(z-f){case 2:112===C&&58===c.charCodeAt(z-3)&&(D=C);case 8:111===A&&(D=A)}break;case 58:0===v+g+p&&(f=z);break;case 44:0===g+m+v+p&&(h=1,b+="\r");break;case 34:case 39:0===g&&(v=v===u?0:0===v?u:v,z===B&&(B++,G++));break;case 91:0===v+g+m&&p++;break;case 93:0===v+g+m&&p--;break;case 41:0===v+g+p&&(z===B&&(B++,G++),m--);break;case 40:if(0===v+g+p){if(0===S)switch(2*C+3*A){case 533:break;default:$=0,S=1}m++}break;case 64:0===g+m+v+p+f+E&&(E=1);break;case 42:case 47:if(!(0<v+p+m))switch(g){case 0:switch(2*u+3*c.charCodeAt(z+1)){case 235:g=47;break;case 220:g=42}break;case 42:47===u&&42===C&&(b="",g=0)}}if(0===g){if(0===M+v+p+E&&107!==o&&59!==u)switch(u){case 44:case 126:case 62:case 43:case 41:case 40:if(0===S){switch(C){case 9:case 32:case 10:case 13:b+="\0";break;default:b="\0"+b+(44===u?"":"\0")}h=1}else switch(u){case 40:S=++$;break;case 41:0==(S=--$)&&(h=1,b+="\0")}break;case 32:switch(C){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===S&&(h=1,b+="\0")}}q+=b,32!==u&&(O=u)}}A=C,C=u,z++}if(S=Y.length,0<L&&0===S&&0===ee.length&&0===a[0].length==!1&&(109!==o||1===a.length&&(0<M?V:X)===a[0])&&(S=a.join(",").length+2),0<S){if(0===M&&107!==o){for(c=0,p=a.length,g=Array(p);c<p;++c){for(A="",O=0,G=(C=a[c].split(w)).length;O<G;++O)if(!(0===($=(v=C[O]).length)&&1<G)){if(z=A.charCodeAt(A.length-1),I=v.charCodeAt(0),m="",0!==O)switch(z){case 42:case 126:case 62:case 43:case 32:case 40:break;default:m=" "}switch(I){case 38:v=m+V;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:v=m+v+V;break;case 58:switch(2*v.charCodeAt(1)+3*v.charCodeAt(2)){case 530:if(0<_){v=m+v.substring(8,$-1);break}default:(1>O||1>C[O-1].length)&&(v=m+V+v)}break;case 44:m="";default:v=1<$&&0<v.indexOf(":")?m+v.replace(R,"$1"+V+"$2"):m+v+V}A+=v}g[c]=A.replace(l,"").trim()}a=g}if(u=a,0<J&&void 0!==(k=n(2,Y,u,e,W,T,S,o))&&0===(Y=k).length)return ae+Y+ee;if(Y=u.join(",")+"{"+Y+"}",0<P*D){switch(D){case 111:Y=Y.replace(j,":-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}D=0}}return ae+Y+ee}function r(e,a,t){var r=a.trim().split(m);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 f=0;f<i;++f)a[o++]=c(e[f]+" ",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(M+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<_&&0<M)return a.replace(C,"$1").replace(v,"$1"+X);break;default:return e.trim()+a}default:if(0<t*M&&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=e+";";if(944==(a=2*a+3*t+4*r)){if(a=c,t=a.length,r=a.indexOf(":",9)+1,c=a.substring(0,r).trim(),t=a.substring(r,t-1).trim(),e="",45!==a.charCodeAt(9)){var s=0;for(r=0,t=(a=t.split(p)).length;s<t;r=0,++s){for(var i=a[s],n=i.split(g);i=n[r];){var o=i.charCodeAt(0);if(1===Q&&(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+=U}}n[r++]=i}e+=(0===s?"":",")+n.join(" ")}}else e+=110===a.charCodeAt(10)?t+(1===Q?U:""):t;e=c+e+";",c=0<P?"-webkit-"+e+e:e}else if(0<P)switch(a){case 969:c="-webkit-"+c.replace(N,"-webkit-$1")+c;break;case 951:c="-webkit-"+c+c;break;case 963:110===c.charCodeAt(5)&&(c="-webkit-"+c+c);break;case 978:c="-webkit-"+c+"-moz-"+c+c;break;case 1019:case 983:c="-webkit-"+c+"-moz-"+c+"-ms-"+c+c;break;case 883:45===c.charCodeAt(8)&&(c="-webkit-"+c+c);break;case 932:c="-webkit-"+c+"-ms-"+c+c;break;case 964:c="-webkit-"+c+"-ms-flex-"+c+c;break;case 1023:c="-webkit-box-pack"+(e=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+e+c;break;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,e=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim(),a=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:c=c.replace(e,"-webkit-"+e)+";"+c;break;case 207:case 102:c=c.replace(e,"-webkit-"+(102<a?"inline-":"")+"box")+";"+c.replace(e,"-webkit-"+e)+";"+c.replace(e,"-ms-"+e+"box")+";"+c}c+=";";break;case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:c="-webkit-"+c+"-webkit-box-"+(e=c.replace("-items",""))+"-ms-flex-"+e+c;break;case 115:c="-webkit-"+c+"-ms-flex-item-"+c.replace(G,"")+c;break;default:c="-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","")+c}break;case 1005:b.test(c)&&(c=c.replace(u,":-webkit-")+c.replace(u,":-moz-")+c);break;case 953:0<(t=c.indexOf("-content",9))&&(e=c.substring(t-3),c="width:-webkit-"+e+"width:-moz-"+e+"width:"+e);break;case 1015:if(45!==e.charCodeAt(9))break;case 962:c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===t+r&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10)&&(c=c.substring(0,c.indexOf(";",27)+1).replace(k,"$1-webkit-$2")+c);break;case 1e3:switch(e=c.substring(13).trim(),t=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(t)){case 226:e=c.replace(z,"tb");break;case 232:e=c.replace(z,"tb-rl");break;case 220:e=c.replace(z,"lr");break;default:return c}c="-webkit-"+c+"-ms-"+e+c}return c}function i(e,a){var t=s(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return t!==a+";"?t.replace(I,"or($1)").substring(2):"("+a+")"}function n(e,a,t,r,c,s,i,n){for(var o,f=0,d=a;f<J;++f)switch(o=q[f].call(h,e,d,t,r,c,s,i,n)){case void 0:case!1:case!0:case null:break;default:d=o}switch(d){case void 0:case!1:case!0:case null:case a:break;default:return d}}function o(e){switch(e){case void 0:case null:J=q.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:q[J++]=e;break;case Boolean:K=0|!!e}}return o}function f(e){for(var a in e){var t=e[a];switch(a){case"keyframe":Q=0|t;break;case"global":_=0|t;break;case"cascade":M=0|t;break;case"compress":B=0|t;break;case"prefix":P=0|t;break;case"semicolon":H=0|t;break;case"preserve":L=0|t}}return f}function h(a,r){if(void 0!==this&&this.constructor===h)return e(a);var c=a,s=c.charCodeAt(0);if(33>s&&(s=(c=c.trim()).charCodeAt(0)),0<Q&&(U=c.replace(A,91===s?"":"-")),s=1,1===M?X=c:V=c,c=[X],0<J){var i=n(-1,r,c,c,W,T,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(Z,c,r,0);return 0<J&&void 0!==(i=n(-2,o,c,c,W,T,o.length,0))&&"string"!=typeof(o=i)&&(s=0),V=X=U="",D=0,T=W=1,0==B*s?o:o.replace(l,"").replace(O,"").replace($,"$1").replace(S,"$1").replace(E," ")}var d=/^\0+/g,l=/[\0\r\f]/g,u=/: */g,b=/zoo|gra/,k=/([,: ])(transform)/g,p=/,+\s*(?![^(]*[)])/g,g=/ +\s*(?![^(]*[)])/g,w=/ *[\0] */g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,C=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,y=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,j=/:(read-only)/g,O=/\s+(?=[{\];=:>])/g,$=/([[}=:>])\s+/g,S=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,R=/([^\(])(:+) */g,z=/[svh]\w+-[tblr]{2}/,N=/([\w-]+t\()/g,F=/\(\s*([^]*?)\s*\)/g,I=/([^]*?);/g,G=/-self|flex-/g,T=1,W=1,D=0,M=1,P=1,_=1,B=0,H=0,L=0,Z=[],q=[],J=0,K=0,Q=1,U="",V="",X="";return h.use=o,h.set=f,void 0!==a&&f(a),h},g={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},w="undefined"!=typeof window,m=new(function(){function e(){i(this,e),this.isSpeedy=!0,this.tags=[],this.ctr=0}return e.prototype.inject=function(){if(this.injected)throw new Error("already injected!");w?this.tags[0]=o():this.sheet={cssRules:[]},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){if(w){var a=this.tags[this.tags.length-1],t=n(a);if(this.isSpeedy&&t.insertRule)try{t.insertRule(e,t.cssRules.length)}catch(e){}else a.appendChild(document.createTextNode(e))}else this.sheet.cssRules.push({cssText:e});return this.ctr++,w&&this.ctr%65e3==0&&this.tags.push(o()),this.ctr-1},e.prototype.flush=function(){w?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0):this.sheet.cssRules=[],this.injected=!1},e}());m.inject();var v={keyframe:!1},C=new p(v),A=new p(v);e.registered={},e.inserted={};var y="",x=!1,j=[],O=m.insert.bind(m);C.use(function(e,a,t,r){switch(e){case-2:""!==y&&(!0===x?j.push(y):j.unshift(y),y=""),j.forEach(O),j=[];break;case 2:""!==y&&(!0===x?j.push(y):j.unshift(y));var c=t.join(",");x=r.join(",")===c||""===r[0],y=c+"{"+a+"}";break;case 3:j.push(t.join(",")+"{"+a+"}"),y=""}}),A.use(function(e,a,t){3===e&&(m.insert(t[0].replace("keyframes","-webkit-keyframes")+"{"+a+"}"),m.insert(t[0]+"{"+a+"}"))});var $=/[A-Z]|^ms/g,S=function(e){var a={};return function(t){return void 0===a[t]&&(a[t]=e(t)),a[t]}}(function(e){return e.replace($,"-$&").toLowerCase()}),E=function(e,a){return void 0===a||null===a||"boolean"==typeof a?"":1===g[e]||isNaN(a)||0===a?a:a+"px"};e.sheet=m,e.flush=function(){m.flush(),e.inserted={},e.registered={},m.inject()},e.css=b,e.injectGlobal=function(){var t=u.apply(void 0,arguments),r=a(t);void 0===e.inserted[r]&&(C("",t),e.inserted[r]=!0)},e.hydrate=function(a){a.forEach(function(a){e.inserted[a]=!0})},e.keyframes=function(){var t=u.apply(void 0,arguments),r=a(t),c="animation-"+r;return void 0===e.inserted[r]&&(A("","@keyframes "+c+"{"+t+"}"),e.inserted[r]=!0),c},e.fontFace=function(){var t=u.apply(void 0,arguments),r=a(t);void 0===e.inserted[r]&&(m.insert("@font-face{"+t+"}"),e.inserted[r]=!0)},e.getRegisteredStyles=k,e.merge=function(e){var a=[],t=k(a,e);return a.length<2?e:t+b.apply(void 0,a)},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e.emotion=e.emotion||{})}(this,function(e){"use strict";function a(e){return t(e,e.length).toString(36)}function t(e,a){for(var t=1540483477,i=a^e.length,n=e.length,o=0;n>=4;){var f=r(e,o);f=s(f,t),f=s(f^=f>>>24,t),i=s(i,t),i^=f,o+=4,n-=4}switch(n){case 3:i^=c(e,o),i=s(i^=e.charCodeAt(o+2)<<16,t);break;case 2:i=s(i^=c(e,o),t);break;case 1:i=s(i^=e.charCodeAt(o),t)}return i^=i>>>13,i=s(i,t),(i^=i>>>15)>>>0}function r(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)+(e.charCodeAt(a++)<<16)+(e.charCodeAt(a)<<24)}function c(e,a){return e.charCodeAt(a++)+(e.charCodeAt(a++)<<8)}function s(e,a){return(65535&(e|=0))*(a|=0)+(((e>>>16)*a&65535)<<16)|0}function i(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(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 o(){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){var a=[];return e.forEach(function(e){a=Array.isArray(e)?a.concat(f(e)):a.concat(e)}),a}function d(a,t){return void 0===a||null===a||!1===a?"":"object"==typeof a?l(a):!1===t&&void 0!==e.registered[a]?e.registered[a]:a}function l(a){var t="";return Array.isArray(a)?f(a).forEach(function(e){t+=d(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+=O(r)+":"+$(r,a[r])+";":t+=r+"{"+l(a[r])+"}"}),t}function h(e){return 46===e.charCodeAt(e.length-1)}function u(e){var a=!0,t="";void 0!==e&&void 0===e.raw||void 0===e?(a=!1,t=d(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+=d(r,h(t)),!0===a&&void 0!==e[c+1]&&(t+=e[c+1])}),t}function b(){var t=u.apply(void 0,arguments),r=a(t),c="css-"+r;return void 0===e.registered[c]&&(e.registered[c]=t),void 0===e.inserted[r]&&(C("."+c,t),e.inserted[r]=!0),c}function k(a,t){var r="";return t.split(" ").forEach(function(t){void 0!==e.registered[t]?a.push(t):r+=t+" "}),r}var p=function e(a){function t(e,a,c,o){for(var f,d,u,b,k,p=0,g=0,m=0,v=0,C=0,A=0,O=0,$=0,S=0,E=0,z=f=0,N=d=0,I=0,G=c.length,B=G-1,q="",Y="",ee="",ae="";z<G;){if(u=c.charCodeAt(z),0===g+v+m+p){if(z===B&&(0<d&&(q=q.replace(h,"")),0<q.trim().length)){switch(u){case 32:case 9:case 59:case 13:case 10:break;default:q+=c.charAt(z)}u=59}if(1===N)switch(u){case 123:case 44:N=0;break;case 9:case 13:case 10:case 32:break;default:z--,u=59}switch(u){case 123:for(f=(q=q.trim()).charCodeAt(0),$=1,S=++z;z<G;){switch(u=c.charCodeAt(z)){case 123:$++;break;case 125:$--}if(0===$)break;z++}switch(E=c.substring(S,z),0===f&&(f=(q=q.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<d&&(q=q.replace(h,"")),d=q.charCodeAt(1)){case 100:case 109:case 115:u=a;break;default:u=Z}if(E=t(a,u,E,d),S=E.length,0<L&&0===S&&(S=q.length),0<J&&(u=r(Z,q,I),k=n(3,E,u,a,W,T,S,d),q=u.join(""),void 0!==k&&0===(S=(E=k.trim()).length)&&(d=0,E="")),0<S)switch(d){case 115:q=q.replace(F,i);case 100:case 109:E=q+"{"+E+"}";break;case 107:E=(q=q.replace(y,"$1 $2"+(0<Q?U:"")))+"{"+E+"}",E="@"+(0<P?"-webkit-"+E+"@"+E:E);break;default:E=q+E}else E="";break;default:E=t(a,r(a,q,I),E,o)}ee+=E,E=I=d=f=N=S=0,q="",u=c.charCodeAt(++z);break;case 125:case 59:if(q=(0<d?q.replace(h,""):q).trim(),1<(S=q.length))switch(0===f&&(45===(f=q.charCodeAt(0))||96<f&&123>f)&&(S=(q=q.replace(" ",":")).length),0<J&&void 0!==(k=n(1,q,a,e,W,T,Y.length,o))&&0===(S=(q=k.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),d=q.charCodeAt(1),f+d){case 0:break;case 169:case 163:ae+=q+c.charAt(z);break;default:58!==q.charCodeAt(S-1)&&(Y+=s(q,f,d,q.charCodeAt(2)))}I=d=f=N=S=0,q="",u=c.charCodeAt(++z)}}switch(u){case 13:case 10:if(0===g+v+m+p+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<f&&(N=1)}47===g&&(g=0),0<J*K&&n(0,q,a,e,W,T,Y.length,o),T=1,W++;break;case 59:case 125:if(0===g+v+m+p){T++;break}default:switch(T++,b=c.charAt(z),u){case 9:case 32:if(0===v+p)switch(C){case 44:case 58:case 9:case 32:b="";break;default:32!==u&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===v+g+p&&0<M&&(d=I=1,b="\f"+b);break;case 108:if(0===v+g+p+D&&0<f)switch(z-f){case 2:112===C&&58===c.charCodeAt(z-3)&&(D=C);case 8:111===A&&(D=A)}break;case 58:0===v+g+p&&(f=z);break;case 44:0===g+m+v+p&&(d=1,b+="\r");break;case 34:case 39:0===g&&(v=v===u?0:0===v?u:v,z===B&&(B++,G++));break;case 91:0===v+g+m&&p++;break;case 93:0===v+g+m&&p--;break;case 41:0===v+g+p&&(z===B&&(B++,G++),m--);break;case 40:if(0===v+g+p){if(0===S)switch(2*C+3*A){case 533:break;default:$=0,S=1}m++}break;case 64:0===g+m+v+p+f+E&&(E=1);break;case 42:case 47:if(!(0<v+p+m))switch(g){case 0:switch(2*u+3*c.charCodeAt(z+1)){case 235:g=47;break;case 220:g=42}break;case 42:47===u&&42===C&&(b="",g=0)}}if(0===g){if(0===M+v+p+E&&107!==o&&59!==u)switch(u){case 44:case 126:case 62:case 43:case 41:case 40:if(0===S){switch(C){case 9:case 32:case 10:case 13:b+="\0";break;default:b="\0"+b+(44===u?"":"\0")}d=1}else switch(u){case 40:S=++$;break;case 41:0==(S=--$)&&(d=1,b+="\0")}break;case 32:switch(C){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===S&&(d=1,b+="\0")}}q+=b,32!==u&&(O=u)}}A=C,C=u,z++}if(S=Y.length,0<L&&0===S&&0===ee.length&&0===a[0].length==!1&&(109!==o||1===a.length&&(0<M?V:X)===a[0])&&(S=a.join(",").length+2),0<S){if(0===M&&107!==o){for(c=0,p=a.length,g=Array(p);c<p;++c){for(A="",O=0,G=(C=a[c].split(w)).length;O<G;++O)if(!(0===($=(v=C[O]).length)&&1<G)){if(z=A.charCodeAt(A.length-1),I=v.charCodeAt(0),m="",0!==O)switch(z){case 42:case 126:case 62:case 43:case 32:case 40:break;default:m=" "}switch(I){case 38:v=m+V;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:v=m+v+V;break;case 58:switch(2*v.charCodeAt(1)+3*v.charCodeAt(2)){case 530:if(0<_){v=m+v.substring(8,$-1);break}default:(1>O||1>C[O-1].length)&&(v=m+V+v)}break;case 44:m="";default:v=1<$&&0<v.indexOf(":")?m+v.replace(R,"$1"+V+"$2"):m+v+V}A+=v}g[c]=A.replace(h,"").trim()}a=g}if(u=a,0<J&&void 0!==(k=n(2,Y,u,e,W,T,S,o))&&0===(Y=k).length)return ae+Y+ee;if(Y=u.join(",")+"{"+Y+"}",0<P*D){switch(D){case 111:Y=Y.replace(j,":-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}D=0}}return ae+Y+ee}function r(e,a,t){var r=a.trim().split(m);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 f=0;f<i;++f)a[o++]=c(e[f]+" ",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(M+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<_&&0<M)return a.replace(C,"$1").replace(v,"$1"+X);break;default:return e.trim()+a}default:if(0<t*M&&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=e+";";if(944==(a=2*a+3*t+4*r)){if(a=c,t=a.length,r=a.indexOf(":",9)+1,c=a.substring(0,r).trim(),t=a.substring(r,t-1).trim(),e="",45!==a.charCodeAt(9)){var s=0;for(r=0,t=(a=t.split(p)).length;s<t;r=0,++s){for(var i=a[s],n=i.split(g);i=n[r];){var o=i.charCodeAt(0);if(1===Q&&(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+=U}}n[r++]=i}e+=(0===s?"":",")+n.join(" ")}}else e+=110===a.charCodeAt(10)?t+(1===Q?U:""):t;e=c+e+";",c=0<P?"-webkit-"+e+e:e}else if(0<P)switch(a){case 969:c="-webkit-"+c.replace(N,"-webkit-$1")+c;break;case 951:c="-webkit-"+c+c;break;case 963:110===c.charCodeAt(5)&&(c="-webkit-"+c+c);break;case 978:c="-webkit-"+c+"-moz-"+c+c;break;case 1019:case 983:c="-webkit-"+c+"-moz-"+c+"-ms-"+c+c;break;case 883:45===c.charCodeAt(8)&&(c="-webkit-"+c+c);break;case 932:c="-webkit-"+c+"-ms-"+c+c;break;case 964:c="-webkit-"+c+"-ms-flex-"+c+c;break;case 1023:c="-webkit-box-pack"+(e=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+e+c;break;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,e=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim(),a=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:c=c.replace(e,"-webkit-"+e)+";"+c;break;case 207:case 102:c=c.replace(e,"-webkit-"+(102<a?"inline-":"")+"box")+";"+c.replace(e,"-webkit-"+e)+";"+c.replace(e,"-ms-"+e+"box")+";"+c}c+=";";break;case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:c="-webkit-"+c+"-webkit-box-"+(e=c.replace("-items",""))+"-ms-flex-"+e+c;break;case 115:c="-webkit-"+c+"-ms-flex-item-"+c.replace(G,"")+c;break;default:c="-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","")+c}break;case 1005:b.test(c)&&(c=c.replace(u,":-webkit-")+c.replace(u,":-moz-")+c);break;case 953:0<(t=c.indexOf("-content",9))&&(e=c.substring(t-3),c="width:-webkit-"+e+"width:-moz-"+e+"width:"+e);break;case 1015:if(45!==e.charCodeAt(9))break;case 962:c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===t+r&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10)&&(c=c.substring(0,c.indexOf(";",27)+1).replace(k,"$1-webkit-$2")+c);break;case 1e3:switch(e=c.substring(13).trim(),t=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(t)){case 226:e=c.replace(z,"tb");break;case 232:e=c.replace(z,"tb-rl");break;case 220:e=c.replace(z,"lr");break;default:return c}c="-webkit-"+c+"-ms-"+e+c}return c}function i(e,a){var t=s(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return t!==a+";"?t.replace(I,"or($1)").substring(2):"("+a+")"}function n(e,a,t,r,c,s,i,n){for(var o,f=0,l=a;f<J;++f)switch(o=q[f].call(d,e,l,t,r,c,s,i,n)){case void 0:case!1:case!0:case null:break;default:l=o}switch(l){case void 0:case!1:case!0:case null:case a:break;default:return l}}function o(e){switch(e){case void 0:case null:J=q.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:q[J++]=e;break;case Boolean:K=0|!!e}}return o}function f(e){for(var a in e){var t=e[a];switch(a){case"keyframe":Q=0|t;break;case"global":_=0|t;break;case"cascade":M=0|t;break;case"compress":B=0|t;break;case"prefix":P=0|t;break;case"semicolon":H=0|t;break;case"preserve":L=0|t}}return f}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<Q&&(U=c.replace(A,91===s?"":"-")),s=1,1===M?X=c:V=c,c=[X],0<J){var i=n(-1,r,c,c,W,T,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(Z,c,r,0);return 0<J&&void 0!==(i=n(-2,o,c,c,W,T,o.length,0))&&"string"!=typeof(o=i)&&(s=0),V=X=U="",D=0,T=W=1,0==B*s?o:o.replace(h,"").replace(O,"").replace($,"$1").replace(S,"$1").replace(E," ")}var l=/^\0+/g,h=/[\0\r\f]/g,u=/: */g,b=/zoo|gra/,k=/([,: ])(transform)/g,p=/,+\s*(?![^(]*[)])/g,g=/ +\s*(?![^(]*[)])/g,w=/ *[\0] */g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,C=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,y=/@(k\w+)\s*(\S*)\s*/,x=/::(place)/g,j=/:(read-only)/g,O=/\s+(?=[{\];=:>])/g,$=/([[}=:>])\s+/g,S=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,R=/([^\(])(:+) */g,z=/[svh]\w+-[tblr]{2}/,N=/([\w-]+t\()/g,F=/\(\s*([^]*?)\s*\)/g,I=/([^]*?);/g,G=/-self|flex-/g,T=1,W=1,D=0,M=1,P=1,_=1,B=0,H=0,L=0,Z=[],q=[],J=0,K=0,Q=1,U="",V="",X="";return d.use=o,d.set=f,void 0!==a&&f(a),d},g={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},w="undefined"!=typeof window,m=new(function(){function e(){i(this,e),this.isSpeedy=!0,this.tags=[],this.ctr=0}return e.prototype.inject=function(){if(this.injected)throw new Error("already injected!");w?this.tags[0]=o():this.sheet={cssRules:[]},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){if(w){var a=this.tags[this.tags.length-1],t=n(a);if(this.isSpeedy&&t.insertRule)try{t.insertRule(e,t.cssRules.length)}catch(e){}else a.appendChild(document.createTextNode(e))}else this.sheet.cssRules.push({cssText:e});return this.ctr++,w&&this.ctr%65e3==0&&this.tags.push(o()),this.ctr-1},e.prototype.flush=function(){w?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0):this.sheet.cssRules=[],this.injected=!1},e}());m.inject();var v={keyframe:!1},C=new p(v),A=new p(v);e.registered={},e.inserted={};var y=[],x=m.insert.bind(m);C.use(function(e,a,t,r,c,s,i,n){switch(e){case-2:y.forEach(x),y=[];break;case 2:if(0===n){var o=t.join(","),f=o+"{"+a+"}";r.join(",")===o||""===r[0]?y.push(f):y.unshift(f)}break;case 3:y.push(t.join(",")+"{"+a+"}")}}),A.use(function(e,a,t){3===e&&(m.insert(t[0].replace("keyframes","-webkit-keyframes")+"{"+a+"}"),m.insert(t[0]+"{"+a+"}"))});var j=/[A-Z]|^ms/g,O=function(e){var a={};return function(t){return void 0===a[t]&&(a[t]=e(t)),a[t]}}(function(e){return e.replace(j,"-$&").toLowerCase()}),$=function(e,a){return void 0===a||null===a||"boolean"==typeof a?"":1===g[e]||isNaN(a)||0===a?a:a+"px"};e.sheet=m,e.flush=function(){m.flush(),e.inserted={},e.registered={},m.inject()},e.css=b,e.injectGlobal=function(){var t=u.apply(void 0,arguments),r=a(t);void 0===e.inserted[r]&&(C("",t),e.inserted[r]=!0)},e.hydrate=function(a){a.forEach(function(a){e.inserted[a]=!0})},e.keyframes=function(){var t=u.apply(void 0,arguments),r=a(t),c="animation-"+r;return void 0===e.inserted[r]&&(A("","@keyframes "+c+"{"+t+"}"),e.inserted[r]=!0),c},e.fontFace=function(){var t=u.apply(void 0,arguments),r=a(t);void 0===e.inserted[r]&&(m.insert("@font-face{"+t+"}"),e.inserted[r]=!0)},e.getRegisteredStyles=k,e.merge=function(e){var a=[],t=k(a,e);return a.length<2?e:t+b.apply(void 0,a)},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=DO-NOT-USE.min.js.map

@@ -162,4 +162,2 @@ 'use strict';

var rule = '';
var isRootSelector = false;
var queue = [];

@@ -169,15 +167,6 @@

function insertionPlugin(context, content, selectors, parent) {
function insertionPlugin(context, content, selectors, parent, line, column, length, id) {
switch (context) {
case -2:
{
if (rule !== '') {
if (isRootSelector === true) {
queue.push(rule);
} else {
queue.unshift(rule);
}
rule = '';
}
queue.forEach(insertRule);

@@ -190,4 +179,6 @@ queue = [];

{
if (rule !== '') {
if (isRootSelector === true) {
if (id === 0) {
var joinedSelectors = selectors.join(',');
var rule = joinedSelectors + '{' + content + '}';
if (parent.join(',') === joinedSelectors || parent[0] === '') {
queue.push(rule);

@@ -198,7 +189,2 @@ } else {

}
var joinedSelectors = selectors.join(',');
isRootSelector = parent.join(',') === joinedSelectors || parent[0] === '';
rule = joinedSelectors + '{' + content + '}';
break;

@@ -208,5 +194,3 @@ }

case 3:
// eslint-disable-line no-fallthrough
queue.push(selectors.join(',') + '{' + content + '}');
rule = '';
}

@@ -213,0 +197,0 @@ }

@@ -158,4 +158,2 @@ import { Stylis, hashString, memoize, unitless } from 'emotion-utils';

var rule = '';
var isRootSelector = false;
var queue = [];

@@ -165,15 +163,6 @@

function insertionPlugin(context, content, selectors, parent) {
function insertionPlugin(context, content, selectors, parent, line, column, length, id) {
switch (context) {
case -2:
{
if (rule !== '') {
if (isRootSelector === true) {
queue.push(rule);
} else {
queue.unshift(rule);
}
rule = '';
}
queue.forEach(insertRule);

@@ -186,4 +175,6 @@ queue = [];

{
if (rule !== '') {
if (isRootSelector === true) {
if (id === 0) {
var joinedSelectors = selectors.join(',');
var rule = joinedSelectors + '{' + content + '}';
if (parent.join(',') === joinedSelectors || parent[0] === '') {
queue.push(rule);

@@ -194,7 +185,2 @@ } else {

}
var joinedSelectors = selectors.join(',');
isRootSelector = parent.join(',') === joinedSelectors || parent[0] === '';
rule = joinedSelectors + '{' + content + '}';
break;

@@ -204,5 +190,3 @@ }

case 3:
// eslint-disable-line no-fallthrough
queue.push(selectors.join(',') + '{' + content + '}');
rule = '';
}

@@ -209,0 +193,0 @@ }

{
"name": "emotion",
"version": "8.0.2-3",
"version": "8.0.2-4",
"description": "The Next Generation of CSS-in-JS.",

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

@@ -23,4 +23,2 @@ import { hashString, Stylis, memoize, unitless } from 'emotion-utils'

let rule = ''
let isRootSelector = false
let queue = []

@@ -30,14 +28,14 @@

function insertionPlugin(context, content, selectors, parent) {
function insertionPlugin(
context,
content,
selectors,
parent,
line,
column,
length,
id
) {
switch (context) {
case -2: {
if (rule !== '') {
if (isRootSelector === true) {
queue.push(rule)
} else {
queue.unshift(rule)
}
rule = ''
}
queue.forEach(insertRule)

@@ -49,4 +47,6 @@ queue = []

case 2: {
if (rule !== '') {
if (isRootSelector === true) {
if (id === 0) {
const joinedSelectors = selectors.join(',')
const rule = `${joinedSelectors}{${content}}`
if (parent.join(',') === joinedSelectors || parent[0] === '') {
queue.push(rule)

@@ -57,13 +57,7 @@ } else {

}
const joinedSelectors = selectors.join(',')
isRootSelector = parent.join(',') === joinedSelectors || parent[0] === ''
rule = `${joinedSelectors}{${content}}`
break
}
// after an at rule block
case 3: // eslint-disable-line no-fallthrough
case 3:
queue.push(`${selectors.join(',')}{${content}}`)
rule = ''
}

@@ -70,0 +64,0 @@ }

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