Comparing version 1.2.1 to 1.2.2
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.aphrodite=t():e.aphrodite=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(10)},function(e,t){"use strict";function r(e){return"string"==typeof e&&n.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(31),u=n(a),s=function(e,t){for(var r=Object.keys(e),n={},i=0;i<r.length;i+=1){var a=t([r[i],e[r[i]]]),u=o(a,2),s=u[0],f=u[1];n[s]=f}return n};t.mapObj=s;var f=/([A-Z])/g,l=function(e){return"-"+e.toLowerCase()},c=function(e){var t=e.replace(f,l);return"m"===t[0]&&"s"===t[1]&&"-"===t[2]?"-"+t:t};t.kebabifyStyleName=c;var d={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(d).forEach(function(e){m.forEach(function(t){d[i(t,e)]=d[e]})});var p=function(e,t){return"number"==typeof t?d[e]?""+t:t+"px":""+t};t.stringifyValue=p;var b=function(e,t){return y(p(e,t))};t.stringifyAndImportantifyValue=b;var k=function(e){return(0,u.default)(JSON.stringify(e)).toString(36)};t.hashObject=k;var y=function(e){return"!"===e[e.length-10]&&" !important"===e.slice(-11)?e:e+" !important"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(14),a=n(o),u=r(6),s=n(u),f=r(4),l=n(f),c=r(2),d=(0,a.default)(s.default),m=[function(e,t,r){return":"!==e[0]?null:r(t+e)},function(e,t,r){if("@"!==e[0])return null;var n=r(t);return e+"{"+n+"}"}];t.defaultSelectorHandlers=m;var p=function e(t,r,n,i,o){for(var a=new l.default,u=0;u<r.length;u++)a.addStyleType(r[u]);var s=new l.default,f="";return a.forEach(function(r,a){var u=n.some(function(u){var s=u(a,t,function(t){return e(t,[r],n,i,o)});if(null!=s)return f+=s,!0});u||s.set(a,r)}),y(t,s,i,o,n)+f};t.generateCSS=p;var b=function(e,t,r){if(!t)return e;for(var n=Object.keys(t),i=0;i<n.length;i++){var o=n[i];e.has(o)&&e.set(o,t[o](e.get(o),r))}return e},k=function(e,t,r){return(0,c.kebabifyStyleName)(e)+":"+r(e,t)+";"},y=function(e,t,r,n,o){b(t,r,o);var a=i({},t.elements),u=d(t.elements),s=Object.keys(u);if(s.length!==t.keyOrder.length)for(var f=0;f<s.length;f++)if(!a.hasOwnProperty(s[f])){var l=void 0;if(l="W"===s[f][0]?s[f][6].toLowerCase()+s[f].slice(7):"o"===s[f][1]?s[f][3].toLowerCase()+s[f].slice(4):s[f][2].toLowerCase()+s[f].slice(3),l&&a.hasOwnProperty(l)){var m=t.keyOrder.indexOf(l);t.keyOrder.splice(m,0,s[f])}else t.keyOrder.unshift(s[f])}for(var p=n===!1?c.stringifyValue:c.stringifyAndImportantifyValue,y=[],f=0;f<t.keyOrder.length;f++){var h=t.keyOrder[f],v=u[h];if(Array.isArray(v))for(var g=0;g<v.length;g++)y.push(k(h,v[g],p));else y.push(k(h,v,p))}return y.length?e+"{"+y.join("")+"}":""};t.generateCSSRuleset=y},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i="undefined"!=typeof Map,o=function(){function e(){r(this,e),this.elements={},this.keyOrder=[]}return n(e,[{key:"forEach",value:function(e){for(var t=0;t<this.keyOrder.length;t++)e(this.elements[this.keyOrder[t]],this.keyOrder[t])}},{key:"set",value:function(t,r){var n=this;if(this.elements.hasOwnProperty(t)||this.keyOrder.push(t),null==r)return void(this.elements[t]=r);if(i&&r instanceof Map||r instanceof e){var o=function(){var i=n.elements.hasOwnProperty(t)?n.elements[t]:new e;return r.forEach(function(e,t){i.set(t,e)}),n.elements[t]=i,{v:void 0}}();if("object"==typeof o)return o.v}if(!Array.isArray(r)&&"object"==typeof r){for(var a=this.elements.hasOwnProperty(t)?this.elements[t]:new e,u=Object.keys(r),s=0;s<u.length;s+=1)a.set(u[s],r[u[s]]);return void(this.elements[t]=a)}this.elements[t]=r}},{key:"get",value:function(e){return this.elements[e]}},{key:"has",value:function(e){return this.elements.hasOwnProperty(e)}},{key:"addStyleType",value:function(t){var r=this;if(i&&t instanceof Map||t instanceof e)t.forEach(function(e,t){r.set(t,e)});else for(var n=Object.keys(t),o=0;o<n.length;o++)this.set(n[o],t[n[o]])}}]),e}();t.default=o,e.exports=t.default},function(e,t){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){var n=r(15),i=r(16),o=r(17),a=r(18),u=r(19),s=r(20),f=r(21),l=r(22),c=r(23),d=r(24),m=r(25),p=r(26);e.exports={plugins:[n,i,o,a,u,s,f,l,c,d,m,p],prefixMap:{transform:["Webkit","ms"],transformOrigin:["Webkit","ms"],transformOriginX:["Webkit","ms"],transformOriginY:["Webkit","ms"],backfaceVisibility:["Webkit"],perspective:["Webkit"],perspectiveOrigin:["Webkit"],transformStyle:["Webkit"],transformOriginZ:["Webkit"],animation:["Webkit"],animationDelay:["Webkit"],animationDirection:["Webkit"],animationFillMode:["Webkit"],animationDuration:["Webkit"],animationIterationCount:["Webkit"],animationName:["Webkit"],animationPlayState:["Webkit"],animationTimingFunction:["Webkit"],appearance:["Webkit","Moz"],userSelect:["Webkit","Moz","ms"],fontKerning:["Webkit"],textEmphasisPosition:["Webkit"],textEmphasis:["Webkit"],textEmphasisStyle:["Webkit"],textEmphasisColor:["Webkit"],boxDecorationBreak:["Webkit"],clipPath:["Webkit"],maskImage:["Webkit"],maskMode:["Webkit"],maskRepeat:["Webkit"],maskPosition:["Webkit"],maskClip:["Webkit"],maskOrigin:["Webkit"],maskSize:["Webkit"],maskComposite:["Webkit"],mask:["Webkit"],maskBorderSource:["Webkit"],maskBorderMode:["Webkit"],maskBorderSlice:["Webkit"],maskBorderWidth:["Webkit"],maskBorderOutset:["Webkit"],maskBorderRepeat:["Webkit"],maskBorder:["Webkit"],maskType:["Webkit"],textDecorationStyle:["Webkit","Moz"],textDecorationSkip:["Webkit","Moz"],textDecorationLine:["Webkit","Moz"],textDecorationColor:["Webkit","Moz"],filter:["Webkit"],fontFeatureSettings:["Webkit","Moz"],breakAfter:["Webkit","Moz","ms"],breakBefore:["Webkit","Moz","ms"],breakInside:["Webkit","Moz","ms"],columnCount:["Webkit","Moz"],columnFill:["Webkit","Moz"],columnGap:["Webkit","Moz"],columnRule:["Webkit","Moz"],columnRuleColor:["Webkit","Moz"],columnRuleStyle:["Webkit","Moz"],columnRuleWidth:["Webkit","Moz"],columns:["Webkit","Moz"],columnSpan:["Webkit","Moz"],columnWidth:["Webkit","Moz"],flex:["Webkit","ms"],flexBasis:["Webkit"],flexDirection:["Webkit","ms"],flexGrow:["Webkit"],flexFlow:["Webkit","ms"],flexShrink:["Webkit"],flexWrap:["Webkit","ms"],alignContent:["Webkit"],alignItems:["Webkit"],alignSelf:["Webkit"],justifyContent:["Webkit"],order:["Webkit"],transitionDelay:["Webkit"],transitionDuration:["Webkit"],transitionProperty:["Webkit"],transitionTimingFunction:["Webkit"],backdropFilter:["Webkit"],scrollSnapType:["Webkit","ms"],scrollSnapPointsX:["Webkit","ms"],scrollSnapPointsY:["Webkit","ms"],scrollSnapDestination:["Webkit","ms"],scrollSnapCoordinate:["Webkit","ms"],shapeImageThreshold:["Webkit"],shapeImageMargin:["Webkit"],shapeImageOutside:["Webkit"],hyphens:["Webkit","Moz","ms"],flowInto:["Webkit","ms"],flowFrom:["Webkit","ms"],regionFragment:["Webkit","ms"],boxSizing:["Moz"],textAlignLast:["Moz"],tabSize:["Moz"],wrapFlow:["ms"],wrapThrough:["ms"],wrapMargin:["ms"],touchAction:["ms"],gridTemplateColumns:["ms"],gridTemplateRows:["ms"],gridTemplateAreas:["ms"],gridTemplate:["ms"],gridAutoColumns:["ms"],gridAutoRows:["ms"],gridAutoFlow:["ms"],grid:["ms"],gridRowStart:["ms"],gridColumnStart:["ms"],gridRowEnd:["ms"],gridRow:["ms"],gridColumn:["ms"],gridColumnEnd:["ms"],gridColumnGap:["ms"],gridRowGap:["ms"],gridArea:["ms"],gridGap:["ms"],textSizeAdjust:["Webkit","ms"],borderImage:["Webkit"],borderImageOutset:["Webkit"],borderImageRepeat:["Webkit"],borderImageSlice:["Webkit"],borderImageSource:["Webkit"],borderImageWidth:["Webkit"]}}},function(e,t,r){"use strict";function n(){if(s.length)throw s.shift()}function i(e){var t;t=u.length?u.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=r(8),u=[],s=[],f=a.makeRequestCallFromTimer(n);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(s.push(e),f())}finally{this.task=null,u[u.length]=this}}},function(e,t){(function(t){"use strict";function r(e){u.length||(a(),s=!0),u[u.length]=e}function n(){for(;f<u.length;){var e=f;if(f+=1,u[e].call(),f>l){for(var t=0,r=u.length-f;t<r;t++)u[t]=u[t+f];u.length-=f,f=0}}u.length=0,f=0,s=!1}function i(e){var t=1,r=new d(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}function o(e){return function(){function t(){clearTimeout(r),clearInterval(n),e()}var r=setTimeout(t,0),n=setInterval(t,50)}}e.exports=r;var a,u=[],s=!1,f=0,l=1024,c="undefined"!=typeof t?t:self,d=c.MutationObserver||c.WebKitMutationObserver;a="function"==typeof d?i(n):o(n),r.requestFlush=a,r.makeRequestCallFromTimer=o}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(2),a=r(11),u={create:function(e){return(0,o.mapObj)(e,function(e){var t=n(e,2),r=t[0],i=t[1];return[r,{_name:r+"_"+(0,o.hashObject)(i),_definition:i}]})},rehydrate:function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(0,a.addRenderedClassNames)(e)}},s={renderStatic:function(e){(0,a.reset)(),(0,a.startBuffering)();var t=e(),r=(0,a.flushToString)();return{html:t,css:{content:r,renderedClassNames:(0,a.getRenderedClassNames)()}}}},f={suppressStyleInjection:function(){(0,a.reset)(),(0,a.startBuffering)()},clearBufferAndResumeStyleInjection:function(){(0,a.reset)()}},l=function e(t,r){return{StyleSheet:i({},u,{extend:function(n){var i=n.map(function(e){return e.selectorHandler}).filter(function(e){return e});return e(t,r.concat(i))}}),StyleSheetServer:s,StyleSheetTestUtils:f,css:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return(0,a.injectAndGetClassName)(t,n,r)}}};e.exports=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),o=r(9),a=n(o),u=!0;t.default=(0,a.default)(u,i.defaultSelectorHandlers),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),o=n(i),a=r(4),u=n(a),s=r(3),f=r(2),l=null,c=function(e){if(null==l&&(l=document.querySelector("style[data-aphrodite]"),null==l)){var t=document.head||document.getElementsByTagName("head")[0];l=document.createElement("style"),l.type="text/css",l.setAttribute("data-aphrodite",""),t.appendChild(l)}l.styleSheet?l.styleSheet.cssText+=e:l.appendChild(document.createTextNode(e))},d={fontFamily:function e(t){return Array.isArray(t)?t.map(e).join(","):"object"==typeof t?(y(t.src,"@font-face",[t],!1),'"'+t.fontFamily+'"'):t},animationName:function e(t,r){if(Array.isArray(t))return t.map(function(t){return e(t,r)}).join(",");if("object"==typeof t){var n="keyframe_"+(0,f.hashObject)(t),i="@keyframes "+n+"{";return t instanceof u.default?t.forEach(function(e,t){i+=(0,s.generateCSS)(t,[e],r,d,!1)}):Object.keys(t).forEach(function(e){i+=(0,s.generateCSS)(e,[t[e]],r,d,!1)}),i+="}",k(n,i),n}return t}},m={},p="",b=!1,k=function(e,t){if(!m[e]){if(!b){if("undefined"==typeof document)throw new Error("Cannot automatically buffer without a document");b=!0,(0,o.default)(W)}p+=t,m[e]=!0}},y=function(e,t,r,n){var i=arguments.length<=4||void 0===arguments[4]?[]:arguments[4];if(!m[e]){var o=(0,s.generateCSS)(t,r,i,d,n);k(e,o)}};t.injectStyleOnce=y;var h=function(){p="",m={},b=!1,l=null};t.reset=h;var v=function(){if(b)throw new Error("Cannot buffer while already buffering");b=!0};t.startBuffering=v;var g=function(){b=!1;var e=p;return p="",e};t.flushToString=g;var W=function(){var e=g();e.length>0&&c(e)};t.flushToStyleTag=W;var x=function(){return Object.keys(m)};t.getRenderedClassNames=x;var O=function(e){e.forEach(function(e){m[e]=!0})};t.addRenderedClassNames=O;var _=function e(t,r){for(var n=0;n<t.length;n+=1)t[n]&&(Array.isArray(t[n])?e(t[n],r):(r.classNameBits.push(t[n]._name),r.definitionBits.push(t[n]._definition)))},w=function(e,t,r){var n={classNameBits:[],definitionBits:[]};if(_(t,n),0===n.classNameBits.length)return"";var i=n.classNameBits.join("-o_O-");return y(i,"."+i,n.definitionBits,e,r),i};t.injectAndGetClassName=w},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,a.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(13),a=n(o);e.exports=t.default},function(e,t){"use strict";function r(e){return e in o?o[e]:o[e]=e.replace(n,"-$&").toLowerCase().replace(i,"-ms-")}var n=/[A-Z]/g,i=/^ms-/,o={};e.exports=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){for(var i in e){var o=e[i];if((0,d.default)(o))e[i]=t(o);else if(Array.isArray(o)){for(var u=[],f=0,c=o.length;f<c;++f){var m=(0,s.default)(n,i,o[f],e,r);(0,l.default)(u,m||o[f])}u.length>0&&(e[i]=u)}else{var p=(0,s.default)(n,i,o,e,r);p&&(e[i]=p),(0,a.default)(r,i,e)}}return e}var r=e.prefixMap,n=e.plugins;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(29),a=n(o),u=r(30),s=n(u),f=r(27),l=n(f),c=r(28),d=n(c);e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("calc(")>-1)return u.map(function(e){return t.replace(/calc\(/g,e+"calc(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-","-moz-",""];e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("cross-fade(")>-1)return u.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("cursor"===e&&i.hasOwnProperty(t))return n.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=["-webkit-","-moz-",""],i={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("filter(")>-1)return u.map(function(e){return t.replace(/filter\(/g,e+"filter(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("display"===e&&n.hasOwnProperty(t))return["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={flex:!0,"inline-flex":!0};e.exports=t.default},function(e,t){"use strict";function r(e,t,r){i.hasOwnProperty(e)&&(r[i[e]]=n[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t.default},function(e,t){"use strict";function r(e,t,r){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?r.WebkitBoxOrient="vertical":r.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?r.WebkitBoxDirection="reverse":r.WebkitBoxDirection="normal"),i.hasOwnProperty(e)&&(r[i[e]]=n[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},i={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&s.test(t))return u.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-","-moz-",""],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("image-set(")>-1)return u.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t){"use strict";function r(e,t){if(i.hasOwnProperty(e)&&o.hasOwnProperty(t))return n.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=["-webkit-","-moz-",""],i={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if((0,f.default)(e))return e;for(var r=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),n=0,i=r.length;n<i;++n){var o=r[n],a=[o];for(var s in t){var l=(0,u.default)(s);if(o.indexOf(l)>-1&&"order"!==l)for(var c=t[s],d=0,p=c.length;d<p;++d)a.unshift(o.replace(l,m[c[d]]+l))}r[n]=a.join(",")}return r.join(",")}function o(e,t,r,n){if("string"==typeof t&&d.hasOwnProperty(e)){var o=i(t,n),a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return a;var u=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?u:(r["Webkit"+(0,c.default)(e)]=a,r["Moz"+(0,c.default)(e)]=u,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=r(12),u=n(a),s=r(1),f=n(s),l=r(5),c=n(l),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},m={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default},function(e,t){"use strict";function r(e,t){e.indexOf(t)===-1&&e.push(t)}function n(e,t){if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)r(e,t[n]);else r(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";function r(e){return e instanceof Object&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r){if(e.hasOwnProperty(t))for(var n=e[t],i=0,o=n.length;i<o;++i)r[n[i]+(0,a.default)(t)]=r[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(5),a=n(o);e.exports=t.default},function(e,t){"use strict";function r(e,t,r,n,i){for(var o=0,a=e.length;o<a;++o){var u=e[o](t,r,n,i);if(u)return u}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t){"use strict";function r(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0}e.exports=r}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.aphrodite=t():e.aphrodite=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(10)},function(e,t){"use strict";function r(e){return"string"==typeof e&&n.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=r(32),u=n(a),s=function(e,t){for(var r=Object.keys(e),n={},i=0;i<r.length;i+=1){var a=t([r[i],e[r[i]]]),u=o(a,2),s=u[0],f=u[1];n[s]=f}return n};t.mapObj=s;var f=/([A-Z])/g,l=function(e){return"-"+e.toLowerCase()},c=function(e){var t=e.replace(f,l);return"m"===t[0]&&"s"===t[1]&&"-"===t[2]?"-"+t:t};t.kebabifyStyleName=c;var d={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(d).forEach(function(e){m.forEach(function(t){d[i(t,e)]=d[e]})});var p=function(e,t){return"number"==typeof t?d[e]?""+t:t+"px":""+t};t.stringifyValue=p;var b=function(e,t){return y(p(e,t))};t.stringifyAndImportantifyValue=b;var h=function(e){return(0,u.default)(JSON.stringify(e)).toString(36)};t.hashObject=h;var y=function(e){return"!"===e[e.length-10]&&" !important"===e.slice(-11)?e:e+" !important"}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(14),a=n(o),u=r(6),s=n(u),f=r(4),l=n(f),c=r(2),d=(0,a.default)(s.default),m=[function(e,t,r){return":"!==e[0]?null:r(t+e)},function(e,t,r){if("@"!==e[0])return null;var n=r(t);return e+"{"+n+"}"}];t.defaultSelectorHandlers=m;var p=function e(t,r,n,i,o){for(var a=new l.default,u=0;u<r.length;u++)a.addStyleType(r[u]);var s=new l.default,f="";return a.forEach(function(r,a){var u=n.some(function(u){var s=u(a,t,function(t){return e(t,[r],n,i,o)});if(null!=s)return f+=s,!0});u||s.set(a,r)}),y(t,s,i,o,n)+f};t.generateCSS=p;var b=function(e,t,r,n){if(!t)return e;for(var i=Object.keys(t),o=0;o<i.length;o++){var a=i[o];e.has(a)&&e.set(a,t[a](e.get(a),r,n))}return e},h=function(e,t,r){return(0,c.kebabifyStyleName)(e)+":"+r(e,t)+";"},y=function(e,t,r,n,o){b(t,r,o,n);var a=i({},t.elements),u=d(t.elements),s=Object.keys(u);if(s.length!==t.keyOrder.length)for(var f=0;f<s.length;f++)if(!a.hasOwnProperty(s[f])){var l=void 0;if(l="W"===s[f][0]?s[f][6].toLowerCase()+s[f].slice(7):"o"===s[f][1]?s[f][3].toLowerCase()+s[f].slice(4):s[f][2].toLowerCase()+s[f].slice(3),l&&a.hasOwnProperty(l)){var m=t.keyOrder.indexOf(l);t.keyOrder.splice(m,0,s[f])}else t.keyOrder.unshift(s[f])}for(var p=n===!1?c.stringifyValue:c.stringifyAndImportantifyValue,y=[],f=0;f<t.keyOrder.length;f++){var k=t.keyOrder[f],v=u[k];if(Array.isArray(v))for(var g=0;g<v.length;g++)y.push(h(k,v[g],p));else y.push(h(k,v,p))}return y.length?e+"{"+y.join("")+"}":""};t.generateCSSRuleset=y},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i="undefined"!=typeof Map,o=function(){function e(){r(this,e),this.elements={},this.keyOrder=[]}return n(e,[{key:"forEach",value:function(e){for(var t=0;t<this.keyOrder.length;t++)e(this.elements[this.keyOrder[t]],this.keyOrder[t])}},{key:"set",value:function(t,r){var n=this;if(this.elements.hasOwnProperty(t)||this.keyOrder.push(t),null==r)return void(this.elements[t]=r);if(i&&r instanceof Map||r instanceof e){var o=function(){var i=n.elements.hasOwnProperty(t)?n.elements[t]:new e;return r.forEach(function(e,t){i.set(t,e)}),n.elements[t]=i,{v:void 0}}();if("object"==typeof o)return o.v}if(!Array.isArray(r)&&"object"==typeof r){for(var a=this.elements.hasOwnProperty(t)?this.elements[t]:new e,u=Object.keys(r),s=0;s<u.length;s+=1)a.set(u[s],r[u[s]]);return void(this.elements[t]=a)}this.elements[t]=r}},{key:"get",value:function(e){return this.elements[e]}},{key:"has",value:function(e){return this.elements.hasOwnProperty(e)}},{key:"addStyleType",value:function(t){var r=this;if(i&&t instanceof Map||t instanceof e)t.forEach(function(e,t){r.set(t,e)});else for(var n=Object.keys(t),o=0;o<n.length;o++)this.set(n[o],t[n[o]])}}]),e}();t.default=o,e.exports=t.default},function(e,t){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){var n=r(15),i=r(16),o=r(17),a=r(18),u=r(19),s=r(20),f=r(21),l=r(22),c=r(23),d=r(24),m=r(25),p=r(26);e.exports={plugins:[n,i,o,a,u,s,f,l,c,d,m,p],prefixMap:{transform:["Webkit","ms"],transformOrigin:["Webkit","ms"],transformOriginX:["Webkit","ms"],transformOriginY:["Webkit","ms"],backfaceVisibility:["Webkit"],perspective:["Webkit"],perspectiveOrigin:["Webkit"],transformStyle:["Webkit"],transformOriginZ:["Webkit"],animation:["Webkit"],animationDelay:["Webkit"],animationDirection:["Webkit"],animationFillMode:["Webkit"],animationDuration:["Webkit"],animationIterationCount:["Webkit"],animationName:["Webkit"],animationPlayState:["Webkit"],animationTimingFunction:["Webkit"],appearance:["Webkit","Moz"],userSelect:["Webkit","Moz","ms"],fontKerning:["Webkit"],textEmphasisPosition:["Webkit"],textEmphasis:["Webkit"],textEmphasisStyle:["Webkit"],textEmphasisColor:["Webkit"],boxDecorationBreak:["Webkit"],clipPath:["Webkit"],maskImage:["Webkit"],maskMode:["Webkit"],maskRepeat:["Webkit"],maskPosition:["Webkit"],maskClip:["Webkit"],maskOrigin:["Webkit"],maskSize:["Webkit"],maskComposite:["Webkit"],mask:["Webkit"],maskBorderSource:["Webkit"],maskBorderMode:["Webkit"],maskBorderSlice:["Webkit"],maskBorderWidth:["Webkit"],maskBorderOutset:["Webkit"],maskBorderRepeat:["Webkit"],maskBorder:["Webkit"],maskType:["Webkit"],textDecorationStyle:["Webkit","Moz"],textDecorationSkip:["Webkit","Moz"],textDecorationLine:["Webkit","Moz"],textDecorationColor:["Webkit","Moz"],filter:["Webkit"],fontFeatureSettings:["Webkit","Moz"],breakAfter:["Webkit","Moz","ms"],breakBefore:["Webkit","Moz","ms"],breakInside:["Webkit","Moz","ms"],columnCount:["Webkit","Moz"],columnFill:["Webkit","Moz"],columnGap:["Webkit","Moz"],columnRule:["Webkit","Moz"],columnRuleColor:["Webkit","Moz"],columnRuleStyle:["Webkit","Moz"],columnRuleWidth:["Webkit","Moz"],columns:["Webkit","Moz"],columnSpan:["Webkit","Moz"],columnWidth:["Webkit","Moz"],flex:["Webkit","ms"],flexBasis:["Webkit"],flexDirection:["Webkit","ms"],flexGrow:["Webkit"],flexFlow:["Webkit","ms"],flexShrink:["Webkit"],flexWrap:["Webkit","ms"],alignContent:["Webkit"],alignItems:["Webkit"],alignSelf:["Webkit"],justifyContent:["Webkit"],order:["Webkit"],transitionDelay:["Webkit"],transitionDuration:["Webkit"],transitionProperty:["Webkit"],transitionTimingFunction:["Webkit"],backdropFilter:["Webkit"],scrollSnapType:["Webkit","ms"],scrollSnapPointsX:["Webkit","ms"],scrollSnapPointsY:["Webkit","ms"],scrollSnapDestination:["Webkit","ms"],scrollSnapCoordinate:["Webkit","ms"],shapeImageThreshold:["Webkit"],shapeImageMargin:["Webkit"],shapeImageOutside:["Webkit"],hyphens:["Webkit","Moz","ms"],flowInto:["Webkit","ms"],flowFrom:["Webkit","ms"],regionFragment:["Webkit","ms"],boxSizing:["Moz"],textAlignLast:["Moz"],tabSize:["Moz"],wrapFlow:["ms"],wrapThrough:["ms"],wrapMargin:["ms"],touchAction:["ms"],gridTemplateColumns:["ms"],gridTemplateRows:["ms"],gridTemplateAreas:["ms"],gridTemplate:["ms"],gridAutoColumns:["ms"],gridAutoRows:["ms"],gridAutoFlow:["ms"],grid:["ms"],gridRowStart:["ms"],gridColumnStart:["ms"],gridRowEnd:["ms"],gridRow:["ms"],gridColumn:["ms"],gridColumnEnd:["ms"],gridColumnGap:["ms"],gridRowGap:["ms"],gridArea:["ms"],gridGap:["ms"],textSizeAdjust:["Webkit","ms"],borderImage:["Webkit"],borderImageOutset:["Webkit"],borderImageRepeat:["Webkit"],borderImageSlice:["Webkit"],borderImageSource:["Webkit"],borderImageWidth:["Webkit"]}}},function(e,t,r){"use strict";function n(){if(s.length)throw s.shift()}function i(e){var t;t=u.length?u.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=r(8),u=[],s=[],f=a.makeRequestCallFromTimer(n);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(s.push(e),f())}finally{this.task=null,u[u.length]=this}}},function(e,t){(function(t){"use strict";function r(e){u.length||(a(),s=!0),u[u.length]=e}function n(){for(;f<u.length;){var e=f;if(f+=1,u[e].call(),f>l){for(var t=0,r=u.length-f;t<r;t++)u[t]=u[t+f];u.length-=f,f=0}}u.length=0,f=0,s=!1}function i(e){var t=1,r=new d(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}function o(e){return function(){function t(){clearTimeout(r),clearInterval(n),e()}var r=setTimeout(t,0),n=setInterval(t,50)}}e.exports=r;var a,u=[],s=!1,f=0,l=1024,c="undefined"!=typeof t?t:self,d=c.MutationObserver||c.WebKitMutationObserver;a="function"==typeof d?i(n):o(n),r.requestFlush=a,r.makeRequestCallFromTimer=o}).call(t,function(){return this}())},function(e,t,r){(function(t){"use strict";var n=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(2),a=r(11),u={create:function(e){return(0,o.mapObj)(e,function(e){var r=n(e,2),i=r[0],a=r[1];return[i,{_name:"production"===t.env.NODE_ENV?"_"+(0,o.hashObject)(a):i+"_"+(0,o.hashObject)(a),_definition:a}]})},rehydrate:function(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(0,a.addRenderedClassNames)(e)}},s={renderStatic:function(e){(0,a.reset)(),(0,a.startBuffering)();var t=e(),r=(0,a.flushToString)();return{html:t,css:{content:r,renderedClassNames:(0,a.getRenderedClassNames)()}}}},f={suppressStyleInjection:function(){(0,a.reset)(),(0,a.startBuffering)()},clearBufferAndResumeStyleInjection:function(){(0,a.reset)()}},l=function e(t,r){return{StyleSheet:i({},u,{extend:function(n){var i=n.map(function(e){return e.selectorHandler}).filter(function(e){return e});return e(t,r.concat(i))}}),StyleSheetServer:s,StyleSheetTestUtils:f,css:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return(0,a.injectAndGetClassName)(t,n,r)}}};e.exports=l}).call(t,r(31))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),o=r(9),a=n(o),u=!0;t.default=(0,a.default)(u,i.defaultSelectorHandlers),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),o=n(i),a=r(4),u=n(a),s=r(3),f=r(2),l=null,c=function(e){if(null==l&&(l=document.querySelector("style[data-aphrodite]"),null==l)){var t=document.head||document.getElementsByTagName("head")[0];l=document.createElement("style"),l.type="text/css",l.setAttribute("data-aphrodite",""),t.appendChild(l)}l.styleSheet?l.styleSheet.cssText+=e:l.appendChild(document.createTextNode(e))},d={fontFamily:function e(t,r,n){return Array.isArray(t)?t.map(function(t){return e(t,r,n)}).join(","):"object"==typeof t?(y(t.src,"@font-face",[t],n),'"'+t.fontFamily+'"'):t},animationName:function e(t,r,n){if(Array.isArray(t))return t.map(function(t){return e(t,r)}).join(",");if("object"==typeof t){var i="keyframe_"+(0,f.hashObject)(t),o="@keyframes "+i+"{";return t instanceof u.default?t.forEach(function(e,t){o+=(0,s.generateCSS)(t,[e],r,d,n)}):Object.keys(t).forEach(function(e){o+=(0,s.generateCSS)(e,[t[e]],r,d,n)}),o+="}",h(i,o),i}return t}},m={},p="",b=!1,h=function(e,t){if(!m[e]){if(!b){if("undefined"==typeof document)throw new Error("Cannot automatically buffer without a document");b=!0,(0,o.default)(W)}p+=t,m[e]=!0}},y=function(e,t,r,n){var i=arguments.length<=4||void 0===arguments[4]?[]:arguments[4];if(!m[e]){var o=(0,s.generateCSS)(t,r,i,d,n);h(e,o)}};t.injectStyleOnce=y;var k=function(){p="",m={},b=!1,l=null};t.reset=k;var v=function(){if(b)throw new Error("Cannot buffer while already buffering");b=!0};t.startBuffering=v;var g=function(){b=!1;var e=p;return p="",e};t.flushToString=g;var W=function(){var e=g();e.length>0&&c(e)};t.flushToStyleTag=W;var x=function(){return Object.keys(m)};t.getRenderedClassNames=x;var O=function(e){e.forEach(function(e){m[e]=!0})};t.addRenderedClassNames=O;var w=function e(t,r){for(var n=0;n<t.length;n+=1)t[n]&&(Array.isArray(t[n])?e(t[n],r):(r.classNameBits.push(t[n]._name),r.definitionBits.push(t[n]._definition)))},_=function(e,t,r){var n={classNameBits:[],definitionBits:[]};if(w(t,n),0===n.classNameBits.length)return"";var i=n.classNameBits.join("-o_O-");return y(i,"."+i,n.definitionBits,e,r),i};t.injectAndGetClassName=_},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return(0,a.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(13),a=n(o);e.exports=t.default},function(e,t){"use strict";function r(e){return e in o?o[e]:o[e]=e.replace(n,"-$&").toLowerCase().replace(i,"-ms-")}var n=/[A-Z]/g,i=/^ms-/,o={};e.exports=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){for(var i in e){var o=e[i];if((0,d.default)(o))e[i]=t(o);else if(Array.isArray(o)){for(var u=[],f=0,c=o.length;f<c;++f){var m=(0,s.default)(n,i,o[f],e,r);(0,l.default)(u,m||o[f])}u.length>0&&(e[i]=u)}else{var p=(0,s.default)(n,i,o,e,r);p&&(e[i]=p),e=(0,a.default)(r,i,e)}}return e}var r=e.prefixMap,n=e.plugins;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(29),a=n(o),u=r(30),s=n(u),f=r(27),l=n(f),c=r(28),d=n(c);e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("calc(")>-1)return u.map(function(e){return t.replace(/calc\(/g,e+"calc(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-","-moz-",""];e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("cross-fade(")>-1)return u.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("cursor"===e&&i.hasOwnProperty(t))return n.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=["-webkit-","-moz-",""],i={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("filter(")>-1)return u.map(function(e){return t.replace(/filter\(/g,e+"filter(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("display"===e&&n.hasOwnProperty(t))return["-webkit-box","-moz-box","-ms-"+t+"box","-webkit-"+t,t]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={flex:!0,"inline-flex":!0};e.exports=t.default},function(e,t){"use strict";function r(e,t,r){i.hasOwnProperty(e)&&(r[i[e]]=n[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},i={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msPreferredSize"};e.exports=t.default},function(e,t){"use strict";function r(e,t,r){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?r.WebkitBoxOrient="vertical":r.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?r.WebkitBoxDirection="reverse":r.WebkitBoxDirection="normal"),i.hasOwnProperty(e)&&(r[i[e]]=n[t]||t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},i={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&s.test(t))return u.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-","-moz-",""],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("string"==typeof t&&!(0,a.default)(t)&&t.indexOf("image-set(")>-1)return u.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(1),a=n(o),u=["-webkit-",""];e.exports=t.default},function(e,t){"use strict";function r(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t){"use strict";function r(e,t){if(i.hasOwnProperty(e)&&o.hasOwnProperty(t))return n.map(function(e){return e+t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=["-webkit-","-moz-",""],i={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if((0,f.default)(e))return e;for(var r=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),n=0,i=r.length;n<i;++n){var o=r[n],a=[o];for(var s in t){var l=(0,u.default)(s);if(o.indexOf(l)>-1&&"order"!==l)for(var c=t[s],d=0,p=c.length;d<p;++d)a.unshift(o.replace(l,m[c[d]]+l))}r[n]=a.join(",")}return r.join(",")}function o(e,t,r,n){if("string"==typeof t&&d.hasOwnProperty(e)){var o=i(t,n),a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return a;var u=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?u:(r["Webkit"+(0,c.default)(e)]=a,r["Moz"+(0,c.default)(e)]=u,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=r(12),u=n(a),s=r(1),f=n(s),l=r(5),c=n(l),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},m={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default},function(e,t){"use strict";function r(e,t){e.indexOf(t)===-1&&e.push(t)}function n(e,t){if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)r(e,t[n]);else r(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";function r(e){return e instanceof Object&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r){if(!e.hasOwnProperty(t))return r;var n={};return Object.keys(r).forEach(function(i){if(i===t)for(var o=e[t],u=0,s=o.length;u<s;++u)n[o[u]+(0,a.default)(t)]=r[t];n[i]=r[i]}),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(5),a=n(o);e.exports=t.default},function(e,t){"use strict";function r(e,t,r,n,i){for(var o=0,a=e.length;o<a;++o){var u=e[o](t,r,n,i);if(u)return u}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function a(){b&&m&&(b=!1,m.length?p=m.concat(p):h=-1,p.length&&u())}function u(){if(!b){var e=i(a);b=!0;for(var t=p.length;t;){for(m=p,p=[];++h<t;)m&&m[h].run();h=-1,t=p.length}m=null,b=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function f(){}var l,c,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(e){c=n}}();var m,p=[],b=!1,h=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new s(e,t)),1!==p.length||b||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.prependListener=f,d.prependOnceListener=f,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){"use strict";function r(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0}e.exports=r}])}); | ||
//# sourceMappingURL=aphrodite.umd.min.js.map |
# Examples of using aphrodite | ||
Run: `npm install && npm run examples`, then open `http://localhost:4114` and `http://localhost:4114/ssr`. | ||
## Usage | ||
First, build aphrodite by running `npm install && npm run build` in the root aphrodite directory. | ||
Then in this directory, run: `npm install && npm run examples`, then open http://localhost:4114 (for client-side rendered examples) and http://localhost:4114/ssr (for server-side rendered examples). |
@@ -31,5 +31,4 @@ 'use strict'; | ||
return [key, { | ||
// TODO(emily): Make a 'production' mode which doesn't prepend | ||
// the class name here, to make the generated CSS smaller. | ||
_name: key + '_' + (0, _util.hashObject)(val), | ||
// TODO(gil): Further minify the -O_o--combined hashes | ||
_name: process.env.NODE_ENV === 'production' ? '_' + (0, _util.hashObject)(val) : key + '_' + (0, _util.hashObject)(val), | ||
_definition: val | ||
@@ -36,0 +35,0 @@ }]; |
@@ -204,3 +204,4 @@ 'use strict'; | ||
stringHandlers, /* : StringHandlers */ | ||
selectorHandlers /* : SelectorHandler[] */ | ||
selectorHandlers, /* : SelectorHandler[] */ | ||
useImportant /* : boolean */ | ||
) /* : OrderedElements */{ | ||
@@ -224,3 +225,3 @@ if (!stringHandlers) { | ||
// handlers are very specialized and do complex things. | ||
declarations.set(key, stringHandlers[key](declarations.get(key), selectorHandlers)); | ||
declarations.set(key, stringHandlers[key](declarations.get(key), selectorHandlers, useImportant)); | ||
} | ||
@@ -278,3 +279,3 @@ } | ||
// Mutates declarations | ||
runStringHandlers(declarations, stringHandlers, selectorHandlers); | ||
runStringHandlers(declarations, stringHandlers, selectorHandlers, useImportant); | ||
@@ -281,0 +282,0 @@ var originalElements = _extends({}, declarations.elements); |
@@ -75,7 +75,9 @@ 'use strict'; | ||
// an array of objects and strings. | ||
fontFamily: function fontFamily(val) { | ||
fontFamily: function fontFamily(val, selectorHandlers, useImportant) { | ||
if (Array.isArray(val)) { | ||
return val.map(fontFamily).join(","); | ||
return val.map(function (val) { | ||
return fontFamily(val, selectorHandlers, useImportant); | ||
}).join(","); | ||
} else if (typeof val === "object") { | ||
injectStyleOnce(val.src, "@font-face", [val], false); | ||
injectStyleOnce(val.src, "@font-face", [val], useImportant); | ||
return '"' + val.fontFamily + '"'; | ||
@@ -107,3 +109,3 @@ } else { | ||
// `animation` instead of `animationName`. | ||
animationName: function animationName(val, selectorHandlers) { | ||
animationName: function animationName(val, selectorHandlers, useImportant) { | ||
if (Array.isArray(val)) { | ||
@@ -131,7 +133,7 @@ return val.map(function (v) { | ||
val.forEach(function (valVal, valKey) { | ||
finalVal += (0, _generate.generateCSS)(valKey, [valVal], selectorHandlers, stringHandlers, false); | ||
finalVal += (0, _generate.generateCSS)(valKey, [valVal], selectorHandlers, stringHandlers, useImportant); | ||
}); | ||
} else { | ||
Object.keys(val).forEach(function (key) { | ||
finalVal += (0, _generate.generateCSS)(key, [val[key]], selectorHandlers, stringHandlers, false); | ||
finalVal += (0, _generate.generateCSS)(key, [val[key]], selectorHandlers, stringHandlers, useImportant); | ||
}); | ||
@@ -138,0 +140,0 @@ } |
{ | ||
"name": "aphrodite", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Inline styles in JS that just work (TM)", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"babel-loader": "^5.3.2", | ||
"caniuse-api": "^1.5.3", | ||
"caniuse-api": "^2.0.0", | ||
"chai": "^3.3.0", | ||
@@ -52,0 +52,0 @@ "coveralls": "^2.12.0", |
@@ -130,3 +130,3 @@ # Aphrodite: Inline Styles that work | ||
} | ||
}; | ||
}); | ||
``` | ||
@@ -598,2 +598,7 @@ | ||
## Minify class names | ||
Minify class names by setting the environment variable `process.env.NODE_ENV` | ||
to the string value `production`. | ||
# Tools | ||
@@ -600,0 +605,0 @@ |
@@ -24,5 +24,5 @@ /* @flow */ | ||
return [key, { | ||
// TODO(emily): Make a 'production' mode which doesn't prepend | ||
// the class name here, to make the generated CSS smaller. | ||
_name: `${key}_${hashObject(val)}`, | ||
// TODO(gil): Further minify the -O_o--combined hashes | ||
_name: process.env.NODE_ENV === 'production' ? | ||
`_${hashObject(val)}` : `${key}_${hashObject(val)}`, | ||
_definition: val | ||
@@ -29,0 +29,0 @@ }]; |
@@ -201,3 +201,4 @@ /* @flow */ | ||
stringHandlers /* : StringHandlers */, | ||
selectorHandlers /* : SelectorHandler[] */ | ||
selectorHandlers /* : SelectorHandler[] */, | ||
useImportant /* : boolean */ | ||
) /* : OrderedElements */ => { | ||
@@ -223,3 +224,7 @@ if (!stringHandlers) { | ||
key, | ||
stringHandlers[key](declarations.get(key), selectorHandlers) | ||
stringHandlers[key]( | ||
declarations.get(key), | ||
selectorHandlers, | ||
useImportant | ||
) | ||
); | ||
@@ -281,3 +286,4 @@ } | ||
// Mutates declarations | ||
runStringHandlers(declarations, stringHandlers, selectorHandlers); | ||
runStringHandlers(declarations, stringHandlers, selectorHandlers, | ||
useImportant); | ||
@@ -284,0 +290,0 @@ const originalElements = {...declarations.elements}; |
@@ -63,7 +63,8 @@ /* @flow */ | ||
// an array of objects and strings. | ||
fontFamily: function fontFamily(val) { | ||
fontFamily: function fontFamily(val, selectorHandlers, useImportant) { | ||
if (Array.isArray(val)) { | ||
return val.map(fontFamily).join(","); | ||
return val.map((val) => | ||
fontFamily(val, selectorHandlers, useImportant)).join(","); | ||
} else if (typeof val === "object") { | ||
injectStyleOnce(val.src, "@font-face", [val], false); | ||
injectStyleOnce(val.src, "@font-face", [val], useImportant); | ||
return `"${val.fontFamily}"`; | ||
@@ -95,3 +96,4 @@ } else { | ||
// `animation` instead of `animationName`. | ||
animationName: function animationName(val, selectorHandlers) { | ||
animationName: function animationName(val, selectorHandlers, | ||
useImportant) { | ||
if (Array.isArray(val)) { | ||
@@ -118,3 +120,4 @@ return val.map(v => animationName(v, selectorHandlers)).join(","); | ||
finalVal += generateCSS( | ||
valKey, [valVal], selectorHandlers, stringHandlers, false); | ||
valKey, [valVal], selectorHandlers, stringHandlers, | ||
useImportant); | ||
}); | ||
@@ -124,3 +127,4 @@ } else { | ||
finalVal += generateCSS( | ||
key, [val[key]], selectorHandlers, stringHandlers, false); | ||
key, [val[key]], selectorHandlers, stringHandlers, | ||
useImportant); | ||
}); | ||
@@ -127,0 +131,0 @@ } |
@@ -232,2 +232,28 @@ import asap from 'asap'; | ||
}); | ||
describe('process.env.NODE_ENV === \'production\'', () => { | ||
beforeEach(() => { | ||
process.env.NODE_ENV = 'production'; | ||
}); | ||
afterEach(() => { | ||
delete process.env.NODE_ENV; | ||
}); | ||
it('hashes style names correctly', () => { | ||
const sheet = StyleSheet.create({ | ||
test: { | ||
color: 'red', | ||
height: 20, | ||
':hover': { | ||
color: 'blue', | ||
width: 40, | ||
}, | ||
}, | ||
}); | ||
assert.equal(sheet.test._name, '_j5rvvh'); | ||
}); | ||
}) | ||
}); | ||
@@ -234,0 +260,0 @@ |
@@ -331,4 +331,4 @@ import asap from 'asap'; | ||
assertStylesInclude('font-family:"CoolFont",sans-serif !important'); | ||
assertStylesInclude('font-family:CoolFont;'); | ||
assertStylesInclude("src:url('coolfont.ttf');"); | ||
assertStylesInclude('font-family:CoolFont !important;'); | ||
assertStylesInclude("src:url('coolfont.ttf') !important;"); | ||
}); | ||
@@ -374,5 +374,5 @@ }); | ||
assertStylesInclude('@keyframes keyframe_tmjr6'); | ||
assertStylesInclude('from{left:10px;}'); | ||
assertStylesInclude('50%{left:20px;}'); | ||
assertStylesInclude('to{left:40px;}'); | ||
assertStylesInclude('from{left:10px !important;}'); | ||
assertStylesInclude('50%{left:20px !important;}'); | ||
assertStylesInclude('to{left:40px !important;}'); | ||
assertStylesInclude('animation-name:keyframe_tmjr6'); | ||
@@ -379,0 +379,0 @@ }); |
@@ -9,3 +9,3 @@ import asap from 'asap'; | ||
} from '../src/no-important.js'; | ||
import { reset } from '../src/inject.js'; | ||
import { reset, startBuffering, flushToStyleTag } from '../src/inject.js'; | ||
@@ -43,1 +43,115 @@ describe('css', () => { | ||
}); | ||
describe('String handlers with no !important', () => { | ||
beforeEach(() => { | ||
global.document = jsdom.jsdom(); | ||
reset(); | ||
}); | ||
afterEach(() => { | ||
global.document.close(); | ||
global.document = undefined; | ||
}); | ||
function assertStylesInclude(str) { | ||
const styleTags = global.document.getElementsByTagName("style"); | ||
const styles = styleTags[0].textContent; | ||
assert.include(styles, str); | ||
} | ||
describe('fontFamily', () => { | ||
it('leaves plain strings alone', () => { | ||
const sheet = StyleSheet.create({ | ||
base: { | ||
fontFamily: "Helvetica", | ||
}, | ||
}); | ||
startBuffering(); | ||
css(sheet.base); | ||
flushToStyleTag(); | ||
assertStylesInclude('font-family:Helvetica'); | ||
}); | ||
it('concatenates arrays', () => { | ||
const sheet = StyleSheet.create({ | ||
base: { | ||
fontFamily: ["Helvetica", "sans-serif"], | ||
}, | ||
}); | ||
startBuffering(); | ||
css(sheet.base); | ||
flushToStyleTag(); | ||
assertStylesInclude('font-family:Helvetica,sans-serif'); | ||
}); | ||
it('adds @font-face rules for objects', () => { | ||
const fontface = { | ||
fontFamily: "CoolFont", | ||
src: "url('coolfont.ttf')", | ||
}; | ||
const sheet = StyleSheet.create({ | ||
base: { | ||
fontFamily: [fontface, "sans-serif"], | ||
}, | ||
}); | ||
startBuffering(); | ||
css(sheet.base); | ||
flushToStyleTag(); | ||
assertStylesInclude('font-family:"CoolFont",sans-serif'); | ||
assertStylesInclude('font-family:CoolFont;'); | ||
assertStylesInclude("src:url('coolfont.ttf');"); | ||
}); | ||
}); | ||
describe('animationName', () => { | ||
it('leaves plain strings alone', () => { | ||
const sheet = StyleSheet.create({ | ||
animate: { | ||
animationName: "boo", | ||
}, | ||
}); | ||
startBuffering(); | ||
css(sheet.animate); | ||
flushToStyleTag(); | ||
assertStylesInclude('animation-name:boo;'); | ||
}); | ||
it('generates css for keyframes', () => { | ||
const sheet = StyleSheet.create({ | ||
animate: { | ||
animationName: { | ||
'from': { | ||
left: 10, | ||
}, | ||
'50%': { | ||
left: 20, | ||
}, | ||
'to': { | ||
left: 40, | ||
}, | ||
}, | ||
}, | ||
}); | ||
startBuffering(); | ||
css(sheet.animate); | ||
flushToStyleTag(); | ||
assertStylesInclude('@keyframes keyframe_tmjr6'); | ||
assertStylesInclude('from{left:10px;}'); | ||
assertStylesInclude('50%{left:20px;}'); | ||
assertStylesInclude('to{left:40px;}'); | ||
assertStylesInclude('animation-name:keyframe_tmjr6'); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7769
633
707450
54
5