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

@emotion/cache

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/cache - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

dist/index.esm.js

7

dist/index.cjs.js

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

if (utils.isBrowser) {
// $FlowFixMe
var parent = options.container || document.head;
var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");

@@ -133,8 +135,5 @@ Array.prototype.forEach.call(nodes, function (node) {

inserted[id] = true;
}); // $FlowFixMe
});
var parent = options.container || document.head;
if (node.parentNode !== parent) {
// $FlowFixMe
parent.appendChild(node);

@@ -141,0 +140,0 @@ }

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.emotionCache=t()}(this,function(){"use strict";var i=function(){function e(e){void 0===e&&(e={}),this.isSpeedy=void 0===e.speedy||e.speedy,this.maxLength=e.maxLength||this.isSpeedy?65e3:1,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key||"",this.container=e.container||("undefined"!=typeof document?document.head:null)}var t=e.prototype;return t.insert=function(e){if(this.ctr%this.maxLength==0){var t=document.createElement("style");t.setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),this.container.appendChild(t),this.tags.push(t)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),n=function s(e){function z(e,t,r){var a=t.trim().split(u),c=(t=a).length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";i<c;++i)t[i]=h(e,t[i],r).trim();break;default:var n=i=0;for(t=[];i<c;++i)for(var o=0;o<s;++o)t[n++]=h(e[o]+" ",a[i],r).trim()}return t}function h(e,t,r){var a=t.charCodeAt(0);switch(a<33&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(c,"$1"+e.trim());case 58:switch(t.charCodeAt(1)){case 103:break;default:return e.trim()+t.replace(c,"$1"+e.trim())}default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(c,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function E(e,t,r,a){var c=e+";",s=2*t+3*r+4*a;if(944===s){e=c.indexOf(":",9)+1;var i=c.substring(e,c.length-1).trim();return i=c.substring(0,e).trim()+i+";",1===I||2===I&&N(i,1)?"-webkit-"+i+i:i}if(0===I||2===I&&!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:if(45===c.charCodeAt(8))return"-webkit-"+c+c;if(0<c.indexOf("image-set(",11))return c.replace(p,"$1-webkit-$2")+c;break;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"+(i=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+i+c;case 1005:return o.test(c)?c.replace(n,":-webkit-")+c.replace(n,":-moz-")+c:c;case 1e3:switch(t=(i=c.substring(13).trim()).indexOf("-")+1,i.charCodeAt(0)+i.charCodeAt(t)){case 226:i=c.replace(f,"tb");break;case 232:i=c.replace(f,"tb-rl");break;case 220:i=c.replace(f,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+i+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,s=(i=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|i.charCodeAt(7))){case 203:if(i.charCodeAt(8)<111)break;case 115:c=c.replace(i,"-webkit-"+i)+";"+c;break;case 207:case 102:c=c.replace(i,"-webkit-"+(102<s?"inline-":"")+"box")+";"+c.replace(i,"-webkit-"+i)+";"+c.replace(i,"-ms-"+i+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return i=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+i+"-ms-flex-"+i+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(b,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(b,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(i=e.substring(e.indexOf(":")+1)).charCodeAt(0)?E(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):c.replace(i,"-webkit-"+i)+c.replace(i,"-moz-"+i.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(l,"$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),m(2!==t?a:a.replace(i,"$1"),r,t)}function j(e,t){var r=E(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(a," or ($1)").substring(4):"("+t+")"}function L(e,t,r,a,c,s,i,n,o,h){for(var l,u=0,f=t;u<K;++u)switch(l=w[u].call(d,e,f,r,a,c,s,i,n,o,h)){case void 0:case!1:case!0:case null:break;default:f=l}if(f!==t)return f}function t(e){return void 0!==(e=e.prefix)&&(m=null,e?"function"!=typeof e?I=1:(I=2,m=e):I=0),t}function d(e,t){if(void 0!==this&&this.constructor===d)return s(e);var r=e;if(r.charCodeAt(0)<33&&(r=r.trim()),r=[r],0<K){var a=L(-1,t,r,r,G,D,0,0,0,0);void 0!==a&&"string"==typeof a&&(t=a)}var c=function e(t,r,a,c,s){for(var i,n,o,h,l,u,f=0,d=0,b=0,k=0,p=0,w=0,m=h=i=0,g=0,A=n=0,v=0,C=a.length,x=C-1,y="",$="",O="",S="";g<C;){if(o=a.charCodeAt(g),g===x&&0!==d+k+b+f&&(0!==d&&(o=47===d?10:47),k=b=f=0,C++,x++),0===d+k+b+f){if(g===x&&(0<n&&(y=y.replace(T,"")),0<y.trim().length)){switch(o){case 32:case 9:case 59:case 13:case 10:break;default:y+=a.charAt(g)}o=59}switch(o){case 123:for(i=(y=y.trim()).charCodeAt(0),h=1,v=++g;g<C;){switch(o=a.charCodeAt(g)){case 123:h++;break;case 125:h--}if(0===h)break;g++}switch(o=a.substring(v,g),0===i&&(i=(y=y.replace(R,"").trim()).charCodeAt(0)),i){case 64:switch(0<n&&(y=y.replace(T,"")),n=y.charCodeAt(1)){case 100:case 109:case 115:case 45:h=r;break;default:h=J}if(v=(o=e(r,h,o,n,s+1)).length,0<K&&(u=L(3,o,h=z(J,y,A),r,G,D,v,n,s,c),y=h.join(""),void 0!==u&&0===(v=(o=u.trim()).length)&&(n=0,o="")),0<v)switch(n){case 115:y=y.replace(P,j);case 100:case 109:case 45:o=y+"{"+o+"}";break;case 107:o=(y=y.replace(q,"$1 $2"))+"{"+o+"}",o=1===I||2===I&&N("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=y+o,112===c&&($+=o,o="")}else o="";break;default:o=e(r,z(r,y,A),o,c,s+1)}O+=o,h=A=n=m=i=0,y="",o=a.charCodeAt(++g);break;case 125:case 59:if(1<(v=(y=(0<n?y.replace(T,""):y).trim()).length))switch(0===m&&(i=y.charCodeAt(0),45===i||96<i&&i<123)&&(v=(y=y.replace(" ",":")).length),0<K&&void 0!==(u=L(1,y,r,t,G,D,$.length,c,s,c))&&0===(v=(y=u.trim()).length)&&(y="\0\0"),i=y.charCodeAt(0),n=y.charCodeAt(1),i){case 0:break;case 64:if(105===n||99===n){S+=y+a.charAt(g);break}default:58!==y.charCodeAt(v-1)&&($+=E(y,i,n,y.charCodeAt(2)))}A=n=m=i=0,y="",o=a.charCodeAt(++g)}}switch(o){case 13:case 10:47===d?d=0:0===1+i&&107!==c&&0<y.length&&(n=1,y+="\0"),0<K*M&&L(0,y,r,t,G,D,$.length,c,s,c),D=1,G++;break;case 59:case 125:if(0===d+k+b+f){D++;break}default:switch(D++,l=a.charAt(g),o){case 9:case 32:if(0===k+f+d)switch(p){case 44:case 58:case 9:case 32:l="";break;default:32!==o&&(l=" ")}break;case 0:l="\\0";break;case 12:l="\\f";break;case 11:l="\\v";break;case 38:0===k+d+f&&(n=A=1,l="\f"+l);break;case 108:if(0===k+d+f+H&&0<m)switch(g-m){case 2:112===p&&58===a.charCodeAt(g-3)&&(H=p);case 8:111===w&&(H=w)}break;case 58:0===k+d+f&&(m=g);break;case 44:0===d+b+k+f&&(n=1,l+="\r");break;case 34:case 39:0===d&&(k=k===o?0:0===k?o:k);break;case 91:0===k+d+b&&f++;break;case 93:0===k+d+b&&f--;break;case 41:0===k+d+f&&b--;break;case 40:if(0===k+d+f){if(0===i)switch(2*p+3*w){case 533:break;default:i=1}b++}break;case 64:0===d+b+k+f+m+h&&(h=1);break;case 42:case 47:if(!(0<k+f+b))switch(d){case 0:switch(2*o+3*a.charCodeAt(g+1)){case 235:d=47;break;case 220:v=g,d=42}break;case 42:47===o&&42===p&&(33===a.charCodeAt(v+2)&&($+=a.substring(v,g+1)),l="",d=0)}}0===d&&(y+=l)}w=p,p=o,g++}if(0<(v=$.length)){if(h=r,0<K&&void 0!==(u=L(2,$,h,t,G,D,v,c,s,c))&&0===($=u).length)return S+$+O;if($=h.join(",")+"{"+$+"}",0!=I*H){switch(2!==I||N($,2)||(H=0),H){case 111:$=$.replace(F,":-moz-$1")+$;break;case 112:$=$.replace(B,"::-webkit-input-$1")+$.replace(B,"::-moz-$1")+$.replace(B,":-ms-input-$1")+$}H=0}}return S+$+O}(J,r,t,0,0);return 0<K&&(void 0!==(a=L(-2,c,r,r,G,D,c.length,0,0,0))&&(c=a)),"",H=0,D=G=1,c}var R=/^\0+/g,T=/[\0\r\f]/g,n=/: */g,o=/zoo|gra/,l=/([,: ])(transform)/g,u=/,\r+?/g,c=/([\t\r\n ])*\f?&/g,q=/@(k\w+)\s*(\S*)\s*/,B=/::(place)/g,F=/:(read-only)/g,f=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,i=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,p=/([^-])(image-set\()/,D=1,G=1,H=0,I=1,J=[],w=[],K=0,m=null,M=0;return d.use=function e(t){switch(t){case void 0:case null:K=w.length=0;break;default:switch(t.constructor){case Array:for(var r=0,a=t.length;r<a;++r)e(t[r]);break;case Function:w[K++]=t;break;case Boolean:M=0|!!t}}return e},d.set=t,void 0!==e&&t(e),d},h="/*|*/";function l(e){e&&u.push(e+"}")}var u,o=function(e,t,r,a,c,s,i,n,o){switch(e){case-1:u=[];break;case 2:if(0===n)return t+h;break;case 3:switch(n){case 102:case 112:return u.push(r[0]+t),"";default:return t+h}case-2:return t.split("/*|*/}").forEach(l),u}};return function(r){void 0===r&&(r={});var e,a=r.key||"css";void 0!==r.prefix&&(e={prefix:r.prefix});var t=new n(e);t.use(r.stylisPlugins)(o);var c={},s=document.querySelectorAll("style[data-emotion-"+a+"]");return Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+a).split(" ").forEach(function(e){c[e]=!0});var t=r.container||document.head;e.parentNode!==t&&t.appendChild(e)}),{stylis:t,key:a,sheet:new i({key:a,container:r.container,nonce:r.nonce}),inserted:c,registered:{},theme:{}}}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.emotionCache=t()}(this,function(){"use strict";var n=function(){function e(e){void 0===e&&(e={}),this.isSpeedy=void 0===e.speedy||e.speedy,this.maxLength=e.maxLength||this.isSpeedy?65e3:1,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key||"",this.container=e.container||("undefined"!=typeof document?document.head:null)}var t=e.prototype;return t.insert=function(e){if(this.ctr%this.maxLength==0){var t,r=(a=this,(c=document.createElement("style")).setAttribute("data-emotion",a.key),void 0!==a.nonce&&c.setAttribute("nonce",a.nonce),c.appendChild(document.createTextNode("")),c);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var a,c,s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(s);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else s.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=function s(e){function z(e,t,r){var a=t.trim().split(u),c=(t=a).length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";i<c;++i)t[i]=h(e,t[i],r).trim();break;default:var n=i=0;for(t=[];i<c;++i)for(var o=0;o<s;++o)t[n++]=h(e[o]+" ",a[i],r).trim()}return t}function h(e,t,r){var a=t.charCodeAt(0);switch(a<33&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(c,"$1"+e.trim());case 58:return e.trim()+t.replace(c,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(c,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function E(e,t,r,a){var c=e+";",s=2*t+3*r+4*a;if(944===s){e=c.indexOf(":",9)+1;var i=c.substring(e,c.length-1).trim();return i=c.substring(0,e).trim()+i+";",1===I||2===I&&N(i,1)?"-webkit-"+i+i:i}if(0===I||2===I&&!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:if(45===c.charCodeAt(8))return"-webkit-"+c+c;if(0<c.indexOf("image-set(",11))return c.replace(p,"$1-webkit-$2")+c;break;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"+(i=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+i+c;case 1005:return o.test(c)?c.replace(n,":-webkit-")+c.replace(n,":-moz-")+c:c;case 1e3:switch(t=(i=c.substring(13).trim()).indexOf("-")+1,i.charCodeAt(0)+i.charCodeAt(t)){case 226:i=c.replace(f,"tb");break;case 232:i=c.replace(f,"tb-rl");break;case 220:i=c.replace(f,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+i+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,s=(i=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|i.charCodeAt(7))){case 203:if(i.charCodeAt(8)<111)break;case 115:c=c.replace(i,"-webkit-"+i)+";"+c;break;case 207:case 102:c=c.replace(i,"-webkit-"+(102<s?"inline-":"")+"box")+";"+c.replace(i,"-webkit-"+i)+";"+c.replace(i,"-ms-"+i+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return i=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+i+"-ms-flex-"+i+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(b,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(b,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(i=e.substring(e.indexOf(":")+1)).charCodeAt(0)?E(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):c.replace(i,"-webkit-"+i)+c.replace(i,"-moz-"+i.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(l,"$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),w(2!==t?a:a.replace(i,"$1"),r,t)}function j(e,t){var r=E(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(a," or ($1)").substring(4):"("+t+")"}function L(e,t,r,a,c,s,i,n,o,h){for(var l,u=0,f=t;u<K;++u)switch(l=g[u].call(d,e,f,r,a,c,s,i,n,o,h)){case void 0:case!1:case!0:case null:break;default:f=l}if(f!==t)return f}function t(e){return void 0!==(e=e.prefix)&&(w=null,e?"function"!=typeof e?I=1:(I=2,w=e):I=0),t}function d(e,t){if(void 0!==this&&this.constructor===d)return s(e);var r=e;if(r.charCodeAt(0)<33&&(r=r.trim()),r=[r],0<K){var a=L(-1,t,r,r,G,D,0,0,0,0);void 0!==a&&"string"==typeof a&&(t=a)}var c=function e(t,r,a,c,s){for(var i,n,o,h,l,u=0,f=0,d=0,b=0,k=0,p=0,g=o=i=0,w=0,m=0,A=0,C=0,v=a.length,x=v-1,y="",$="",O="",S="";w<v;){if(n=a.charCodeAt(w),w===x&&0!==f+b+d+u&&(0!==f&&(n=47===f?10:47),b=d=u=0,v++,x++),0===f+b+d+u){if(w===x&&(0<m&&(y=y.replace(R,"")),0<y.trim().length)){switch(n){case 32:case 9:case 59:case 13:case 10:break;default:y+=a.charAt(w)}n=59}switch(n){case 123:for(i=(y=y.trim()).charCodeAt(0),o=1,C=++w;w<v;){switch(n=a.charCodeAt(w)){case 123:o++;break;case 125:o--;break;case 47:switch(n=a.charCodeAt(w+1)){case 42:case 47:e:{for(g=w+1;g<x;++g)switch(a.charCodeAt(g)){case 47:if(42===n&&42===a.charCodeAt(g-1)&&w+2!==g){w=g+1;break e}break;case 10:if(47===n){w=g+1;break e}}w=g}}break;case 91:n++;case 40:n++;case 34:case 39:for(;w++<x&&a.charCodeAt(w)!==n;);}if(0===o)break;w++}switch(o=a.substring(C,w),0===i&&(i=(y=y.replace(B,"").trim()).charCodeAt(0)),i){case 64:switch(0<m&&(y=y.replace(R,"")),n=y.charCodeAt(1)){case 100:case 109:case 115:case 45:m=r;break;default:m=J}if(C=(o=e(r,m,o,n,s+1)).length,0<K&&(l=L(3,o,m=z(J,y,A),r,G,D,C,n,s,c),y=m.join(""),void 0!==l&&0===(C=(o=l.trim()).length)&&(n=0,o="")),0<C)switch(n){case 115:y=y.replace(P,j);case 100:case 109:case 45:o=y+"{"+o+"}";break;case 107:o=(y=y.replace(T,"$1 $2"))+"{"+o+"}",o=1===I||2===I&&N("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=y+o,112===c&&($+=o,o="")}else o="";break;default:o=e(r,z(r,y,A),o,c,s+1)}O+=o,o=A=m=g=i=0,y="",n=a.charCodeAt(++w);break;case 125:case 59:if(1<(C=(y=(0<m?y.replace(R,""):y).trim()).length))switch(0===g&&(i=y.charCodeAt(0),45===i||96<i&&i<123)&&(C=(y=y.replace(" ",":")).length),0<K&&void 0!==(l=L(1,y,r,t,G,D,$.length,c,s,c))&&0===(C=(y=l.trim()).length)&&(y="\0\0"),i=y.charCodeAt(0),n=y.charCodeAt(1),i){case 0:break;case 64:if(105===n||99===n){S+=y+a.charAt(w);break}default:58!==y.charCodeAt(C-1)&&($+=E(y,i,n,y.charCodeAt(2)))}A=m=g=i=0,y="",n=a.charCodeAt(++w)}}switch(n){case 13:case 10:47===f?f=0:0===1+i&&107!==c&&0<y.length&&(m=1,y+="\0"),0<K*M&&L(0,y,r,t,G,D,$.length,c,s,c),D=1,G++;break;case 59:case 125:if(0===f+b+d+u){D++;break}default:switch(D++,h=a.charAt(w),n){case 9:case 32:if(0===b+u+f)switch(k){case 44:case 58:case 9:case 32:h="";break;default:32!==n&&(h=" ")}break;case 0:h="\\0";break;case 12:h="\\f";break;case 11:h="\\v";break;case 38:0===b+f+u&&(m=A=1,h="\f"+h);break;case 108:if(0===b+f+u+H&&0<g)switch(w-g){case 2:112===k&&58===a.charCodeAt(w-3)&&(H=k);case 8:111===p&&(H=p)}break;case 58:0===b+f+u&&(g=w);break;case 44:0===f+d+b+u&&(m=1,h+="\r");break;case 34:case 39:0===f&&(b=b===n?0:0===b?n:b);break;case 91:0===b+f+d&&u++;break;case 93:0===b+f+d&&u--;break;case 41:0===b+f+u&&d--;break;case 40:if(0===b+f+u){if(0===i)switch(2*k+3*p){case 533:break;default:i=1}d++}break;case 64:0===f+d+b+u+g+o&&(o=1);break;case 42:case 47:if(!(0<b+u+d))switch(f){case 0:switch(2*n+3*a.charCodeAt(w+1)){case 235:f=47;break;case 220:C=w,f=42}break;case 42:47===n&&42===k&&C+2!==w&&(33===a.charCodeAt(C+2)&&($+=a.substring(C,w+1)),h="",f=0)}}0===f&&(y+=h)}p=k,k=n,w++}if(0<(C=$.length)){if(m=r,0<K&&void 0!==(l=L(2,$,m,t,G,D,C,c,s,c))&&0===($=l).length)return S+$+O;if($=m.join(",")+"{"+$+"}",0!=I*H){switch(2!==I||N($,2)||(H=0),H){case 111:$=$.replace(F,":-moz-$1")+$;break;case 112:$=$.replace(q,"::-webkit-input-$1")+$.replace(q,"::-moz-$1")+$.replace(q,":-ms-input-$1")+$}H=0}}return S+$+O}(J,r,t,0,0);return 0<K&&(void 0!==(a=L(-2,c,r,r,G,D,c.length,0,0,0))&&(c=a)),"",H=0,D=G=1,c}var B=/^\0+/g,R=/[\0\r\f]/g,n=/: */g,o=/zoo|gra/,l=/([,: ])(transform)/g,u=/,\r+?/g,c=/([\t\r\n ])*\f?&/g,T=/@(k\w+)\s*(\S*)\s*/,q=/::(place)/g,F=/:(read-only)/g,f=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,i=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,p=/([^-])(image-set\()/,D=1,G=1,H=0,I=1,J=[],g=[],K=0,w=null,M=0;return d.use=function e(t){switch(t){case void 0:case null:K=g.length=0;break;default:switch(t.constructor){case Array:for(var r=0,a=t.length;r<a;++r)e(t[r]);break;case Function:g[K++]=t;break;case Boolean:M=0|!!t}}return e},d.set=t,void 0!==e&&t(e),d},h="/*|*/";function l(e){e&&u.push(e+"}")}var u,f=function(e,t,r,a,c,s,i,n,o){switch(e){case-1:u=[];break;case 2:if(0===n)return t+h;break;case 3:switch(n){case 102:case 112:return u.push(r[0]+t),"";default:return t+h}case-2:return t.split("/*|*/}").forEach(l),u}};return function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var a=new o(t);a.use(e.stylisPlugins)(f);var c={},s=e.container||document.head,i=document.querySelectorAll("style[data-emotion-"+r+"]");return Array.prototype.forEach.call(i,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){c[e]=!0}),e.parentNode!==s&&s.appendChild(e)}),{stylis:a,key:r,sheet:new n({key:r,container:e.container,nonce:e.nonce}),inserted:c,registered:{},theme:{}}}});
//# sourceMappingURL=index.min.js.map
{
"name": "@emotion/cache",
"version": "0.8.3",
"version": "0.8.4",
"description": "emotion's cache",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"module": "dist/index.esm.js",
"license": "MIT",
"repository": "https://github.com/emotion-js/next/tree/master/packages/cache",
"repository": "https://github.com/emotion-js/emotion/tree/master/next-packages/cache",
"dependencies": {
"@emotion/sheet": "^0.6.6",
"@emotion/stylis": "^0.6.10",
"@emotion/utils": "^0.7.1"
"@emotion/sheet": "^0.7.0",
"@emotion/stylis": "^0.6.11",
"@emotion/utils": "^0.7.2"
},

@@ -14,0 +14,0 @@ "publishConfig": {

@@ -87,2 +87,5 @@ // @flow

if (isBrowser) {
// $FlowFixMe
let parent: HTMLElement = options.container || document.head
const nodes = document.querySelectorAll(`style[data-emotion-${key}]`)

@@ -96,6 +99,3 @@

})
// $FlowFixMe
let parent = options.container || document.head
if (node.parentNode !== parent) {
// $FlowFixMe
parent.appendChild(node)

@@ -105,2 +105,3 @@ }

}
const context: CSSContextType = {

@@ -107,0 +108,0 @@ stylis,

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