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

aphrodisiac

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aphrodisiac - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

8

changelog.md

@@ -0,1 +1,9 @@

## 1.0.0 / 2016-12-10
- update to jss 6.0
- fix "adding an @media rule throws" cssinjs/jss#363
- use "inline-version" babel plugin
- export es3 ready code
- add lit-staged
## 0.4.0 / 2016-11-17

@@ -2,0 +10,0 @@

6

dist/aphrodisiac.min.js

@@ -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.aphrodisiac=t():e.aphrodisiac=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){function n(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(l),!t.length)return"";var r=t.map(f).join("--");if(!s.getRule(r)){var i=t.reduce(function(e,t){return o({},e,t.style)},{});s.addRule(r,i,{className:r})}return r}function r(t){return Object.keys(t).reduce(function(n,r){return n[r]={className:e.generateClassName(JSON.stringify(t[r]),{name:r}),style:t[r]},n},{})}function i(){s.detach(),e.sheets.remove(s),s=a()}function u(){return s.toString()}var a=function(){return e.createStyleSheet(null,o({meta:"aphrodite-jss"},t)).attach()},s=a();return{StyleSheet:{create:r},css:n,reset:i,toString:u}}Object.defineProperty(t,"__esModule",{value:!0}),t.toString=t.reset=t.StyleSheet=t.css=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var u=n(1),a=n(20),s=r(a),l=function(e){return null!=e},f=function(e){return e.className},c=i((0,u.create)((0,s.default)())),d=c.css,h=c.StyleSheet,p=c.reset,y=c.toString;t.css=d,t.StyleSheet=h,t.reset=p,t.toString=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}/**
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.aphrodisiac=t():e.aphrodisiac=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){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){function r(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t=t.filter(d),!t.length)return"";var n=t.map(p).join("--");if(a.getRule(n))return n;var i=t.reduce(y,{});return a.addRule(n,i,{className:n}),n}function n(e){return Object.keys(e).reduce(function(t,r){return t[r]={className:h(r,JSON.stringify(e[r])),style:e[r]},t},{})}function i(){a.detach(),e.sheets.remove(a),a=u()}var u=function(){return e.createStyleSheet(null,o({meta:c},t)).attach()},a=u();return{StyleSheet:{create:n},toString:function(){return a.toString()},css:r,reset:i,version:"1.0.0"}}Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.toString=t.reset=t.StyleSheet=t.css=void 0;var o=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};t.default=i;var u=r(1),a=r(25),s=n(a),l=r(24),f=n(l),c="aphrodisiac",d=function(e){return null!=e},p=function(e){return e.className},h=function(e,t){return e+"-"+(0,f.default)(e+t+c)},y=function(e,t){return o({},e,t.style)},v=i((0,u.create)((0,s.default)())),b=v.css,g=v.StyleSheet,m=v.reset,x=v.toString,_=v.version;t.css=b,t.StyleSheet=g,t.reset=m,t.toString=x,t.version=_},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.sheets=t.SheetsRegistry=void 0;var i=r(2),o=n(i),u=r(9),a=n(u),s=r(8),l=n(s);t.SheetsRegistry=a.default,/**
* A better abstraction over CSS.

@@ -8,3 +8,3 @@ *

*/
function i(e){return new u.default(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.StyleSheet=t.Jss=void 0,t.create=i;var o=n(2),u=r(o),a=n(3),s=r(a),l=n(11),f=r(l);t.Jss=u.default,t.StyleSheet=s.default,t.Rule=f.default,t.default=i()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(3),l=r(s),f=n(18),c=r(f),d=n(19),h=r(d),p=n(10),y=r(p),v=n(4),m=r(v),g=n(12),b=function(){function e(t){i(this,e),this.sheets=new h.default,this.plugins=new c.default,this.version="",this.setup(t)}return a(e,[{key:"setup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.generateClassName=t.generateClassName||g.generateClassName,t.plugins&&t.plugins.forEach(function(t){e.use(t)}),this}},{key:"createStyleSheet",value:function(e,t){var n=new l.default(e,u({},t,{jss:this}));return this.sheets.add(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),this.sheets.remove(e),this}},{key:"createRule",value:function(e,t,n){"object"==("undefined"==typeof e?"undefined":o(e))&&(n=t,t=e,e=null);var r=(0,y.default)(e,t,u({jss:this,Renderer:(0,m.default)(n)},n));return this.plugins.run(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t.default=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),s=r(a),l=n(9),f=r(l),c=function(){function e(t,n){i(this,e);var r=null==n.named||n.named,u="number"==typeof n.index?n.index:0,a=(0,s.default)(n);this.rules=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.renderer=new a(n),this.renderer.createElement(),this.options=o({},n,{sheet:this,parent:this,classes:this.classes,renderer:this.renderer,named:r,index:u,Renderer:a}),this.rules=new f.default(this.options);for(var l in t)this.rules.createAndRegister(l,t[l]);n.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.create(e,t,n);if(this.attached){if(!this.deployed)return i;if(r)r.push(i);else{var o=this.renderer.insertRule(i);this.options.link&&(i.renderable=o),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=null)}return i}return this.deployed=!1,i}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(e){return this.rules.toString(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();for(var t in e){var n=this.rules.get(t);n&&(n.renderable=e[t])}return this.linked=!0,this}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.Renderer?e.Renderer:e.virtual||!u.default?f.default:s.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),u=r(o),a=n(6),s=r(a),l=n(8),f=r(l)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=t.isBrowser="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType;t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){try{if(null==n)return e.style[t];e.style[t]=n}catch(e){return!1}return!0}function u(e,t){return null==t?e.selectorText:(e.selectorText=t,e.selectorText===t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(7),l=r(s),f=function(){function e(t){i(this,e),this.options=t,this.style=o,this.selector=u}return a(e,[{key:"createElement",value:function(){var e=this.options,t=e.media,n=e.meta,r=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=r||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),n&&this.element.setAttribute("data-meta",n)}},{key:"attach",value:function(){if(!this.element.parentNode){var e=null,t=this.options,n=t.index,r=t.jss,i=r.sheets.registry;if(i.length>1){if("number"==typeof n)for(var o=0;o<i.length;o++){var u=i[o];if(u.attached&&"number"==typeof u.options.index&&!(u.options.index<=n)){e=u.renderer.element;break}}if(!e)for(var a=i.length-1;a>=0;a--){var s=i[a];if(s.attached){e=s.renderer.element.nextElementSibling;break}}}if(!e)for(var l=0;l<this.head.childNodes.length;l++){var f=this.head.childNodes[l];if("jss"===f.nodeValue){e=f;break}}this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length;try{t.insertRule(e.toString(),r)}catch(t){(0,l.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e.toString())}return n[r]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,n=t.cssRules,r=0;r<n.length;r++)if(e===n[r])return t.deleteRule(r),!0;return!1}},{key:"getRules",value:function(){for(var e=this.element.sheet.cssRules,t=Object.create(null),n=0;n<e.length;n++){var r=e[n];t[r.selectorText]=r}return t}}]),e}();t.default=f},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e)}return r(e,[{key:"createElement",value:function(){}},{key:"style",value:function(){}},{key:"selector",value:function(){}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"deleteRule",value:function(){}},{key:"getRules",value:function(){return{}}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(10),s=r(a),l=function(){function e(t){i(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes||{}}return u(e,[{key:"create",value:function(e,t,n){var r=this.createAndRegister(e,t,n);return this.options.jss.plugins.run(r),r}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"get",value:function(e){return this.map[e]}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"register",value:function(e){return e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e),this}},{key:"unregister",value:function(e){return delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name],this}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],i=r.toString(e);i&&(t&&(t+="\n"),t+=i)}return t}},{key:"getIndex",value:function(){return this.index.slice(0)}},{key:"createAndRegister",value:function(e,t,n){n=o({},n,{classes:this.classes,parent:this.options.parent,sheet:this.options.sheet,jss:this.options.jss,Renderer:this.options.Renderer}),n.className||(n.className=this.classes[e]),null==n.named&&(n.named=this.options.named);var r=(0,s.default)(e,t,n);this.register(r);var i=void 0===n.index?this.index.length:n.index;return this.index.splice(i,0,r),r}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=s.default;if(e&&"@"===e[0]){var i=g.exec(e)[0],o=m[i];o?r=o:(0,u.default)(!1,"[JSS] Unknown at-rule %s",i)}return null==n.named&&(n.named=!0),new r(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(7),u=r(o),a=n(11),s=r(a),l=n(14),f=r(l),c=n(15),d=r(c),h=n(16),p=r(h),y=n(17),v=r(y),m={"@charset":f.default,"@import":f.default,"@namespace":f.default,"@keyframes":d.default,"@media":p.default,"@supports":p.default,"@font-face":v.default},g=/^@[^ ]+/},function(e,t,n){"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 i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(12),a=JSON.parse,s=JSON.stringify,l=function(){function e(t,n,i){r(this,e);var o=s(n);this.style=a(o),this.type="regular",this.options=i,this.selectorText=t||"",this.className=i.className||"",this.originalStyle=n,i.named&&(this.name=t,this.className||(this.className=i.jss.generateClassName(o,this)),this.selectorText="."+this.className),this.renderer=i.sheet?i.sheet.renderer:new i.Renderer}return o(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.style(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.style(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.style(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var n=this.style[t];"object"!==("undefined"==typeof n?"undefined":i(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,u.toCssValue)(n))}return e}},{key:"toString",value:function(e){return(0,u.toCss)(this.selector,this.style,e)}},{key:"selector",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,u.findClassNames)(e),!this.renderable)return void(t&&t.rules.register(this));var n=this.renderer.selector(this.renderable,e);return n?void t.rules.register(this):(delete this.renderable,t.rules.register(this),void t.deploy().link())},get:function(){return this.renderable?this.renderer.selector(this.renderable):this.selectorText}}]),e}();t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=(0,s.default)(e);return t.name?t.name+"-"+n:n}function o(e,t){for(var n="",r=0;r<e;r++)n+=" ";return n+t}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.indentationLevel||0,i="",u=t.fallbacks;if(n.selector!==!1&&r++,u)if(Array.isArray(u))for(var a=0;a<u.length;a++){var s=u[a];for(var f in s){var c=s[f];null!=c&&(i+="\n"+o(r,f+": "+l(c)+";"))}}else for(var d in u){var h=u[d];null!=h&&(i+="\n"+o(r,d+": "+l(h)+";"))}for(var p in t){var y=t[p];null!=y&&"fallbacks"!==p&&(i+="\n"+o(r,p+": "+l(y)+";"))}return i?(n.selector!==!1&&(r--,i=o(r,e+" {"+i+"\n")+o(r,"}")),i):i}Object.defineProperty(t,"__esModule",{value:!0}),t.findClassNames=t.toCssValue=void 0,t.generateClassName=i,t.toCss=u;var a=n(13),s=r(a),l=t.toCssValue=function(){function e(e){return e.join(" ")}return function t(n){return Array.isArray(n)?Array.isArray(n[0])?t(n.map(e)):n.join(", "):n}}();t.findClassNames=function(){var e=/[.]/g,t=/[.][^ ,]+/g;return function(n){var r=n.match(t);return r?r.join(" ").replace(e,""):""}}()},function(e,t,n){function r(e,t){var n,r,i,o,u,a,s,l;for(n=3&e.length,r=e.length-n,i=t,u=3432918353,a=461845907,l=0;l<r;)s=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,s=(65535&s)*u+(((s>>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*a+(((s>>>16)*a&65535)<<16)&4294967295,i^=s,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(s=0,n){case 3:s^=(255&e.charCodeAt(l+2))<<16;case 2:s^=(255&e.charCodeAt(l+1))<<8;case 1:s^=255&e.charCodeAt(l),s=(65535&s)*u+(((s>>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*a+(((s>>>16)*a&65535)<<16)&4294967295,i^=s}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r,i){n(this,e),this.type="simple",this.name=t,this.value=r,this.options=i}return r(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t.default=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,i){n(this,e),this.type="keyframe",this.selector=t,this.options=i,this.frames=this.formatFrames(r)}return i(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var i=r({},this.options,{named:!1,parent:this});t[n]=this.options.jss.createRule(n,e[n],i)}return t}},{key:"toString",value:function(){var e=this.selector+" {\n",t={indentationLevel:1};for(var n in this.frames)e+=this.frames[n].toString(t)+"\n";return e+="}"}}]),e}();t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9),s=r(a),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new s.default(o({},r,{parent:this}));for(var u in n)this.createAndRegisterRule(u,n[u]);r.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){return this.rules.create(e,t,this.getChildOptions(n))}},{key:"toString",value:function(){var e=this.rules.toString({indentationLevel:1});return e?this.selector+" {\n"+e+"\n}":""}},{key:"getChildOptions",value:function(e){return o({},this.options,{parent:this},e)}},{key:"createAndRegisterRule",value:function(e,t){return this.rules.createAndRegister(e,t,this.getChildOptions())}}]),e}();t.default=l},function(e,t,n){"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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(12),u=function(){function e(t,n,i){r(this,e),this.type="font-face",this.options=i,this.selector=t,this.style=n}return i(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,o.toCss)(this.selector,this.style[n],e),this.style[n+1]&&(t+="\n");return t}return(0,o.toCss)(this.selector,this.style,e)}}]),e}();t.default=u},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"use",value:function(e){this.registry.push(e)}},{key:"run",value:function(e){return Array.isArray(e)?void e.forEach(this.runOne,this):void this.runOne(e)}},{key:"runOne",value:function(e){for(var t=0;t<this.registry.length;t++)this.registry[t](e)}}]),e}();t.default=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(!t.length||n>=t[t.length-1].options.index)return void t.push(e);for(var r=0;r<t.length;r++){var i=t[r].options;if(i.index>n)return void t.splice(r,0,e)}}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.map(function(t){return t.toString(e)}).join("\n")}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),o=r(i),u=n(22),a=r(u),s=n(23),l=r(s),f=n(24),c=r(f),d=n(26),h=r(d),p=n(32),y=r(p);t.default=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{plugins:[(0,o.default)(e.extend),(0,a.default)(e.nested),(0,l.default)(e.camelCase),(0,c.default)(e.defaultUnit),(0,h.default)(e.vendorPrefixer),(0,y.default)(e.propsSort)]}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e&&"object"===("undefined"==typeof e?"undefined":u(e))&&!Array.isArray(e)}function o(e,t,n){if("string"==typeof n.extend){if(e.options&&e.options.sheet){var r=e.options.sheet.getRule(n.extend);r&&(r===e?(0,s.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",e):o(e,t,r.originalStyle))}}else if(Array.isArray(n.extend))for(var u=0;u<n.extend.length;u++)o(e,t,n.extend[u]);else for(var a in n.extend)"extend"===a?o(e,t,n.extend.extend):i(n.extend[a])?(t[a]||(t[a]={}),o(e,t[a],n.extend[a])):t[a]=n.extend[a];for(var l in n)"extend"!==l&&(i(t[l])&&i(n[l])?o(e,t[l],n[l]):t[l]=n[l]);return t}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(7),s=r(a);t.default=function(){return function(e){e.style&&e.style.extend&&(e.style=o(e,{},e.style))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){function e(e){return function(t,n){var r=e.getRule(n);return r?r.selector:((0,s.default)(!1,"[JSS] Could not find the referenced rule %s. \r\n%s",n,r),n)}}function t(e,t,n){var r=n.getRule(e);if(!r)return void n.addRule(e,i({},t.name,t.style[e]));var o=r.getRule(t.name);return o?void(o.style=u({},o.style,t.style[e])):void r.addRule(t.name,t.style[e])}function n(e,t){for(var n=t.split(l),r=e.split(l),i="",u=0;u<n.length;u++)for(var a=n[u],s=0;s<r.length;s++){var c=r[s];i&&(i+=", "),i+=o(c)?c.replace(f,a):a+" "+c}return i}function r(e,t,n){if(n)return u({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,u({},e.options,{named:!1,nestingLevel:r,index:t.indexOf(e)+1})}var o=function(e){return e.indexOf("&")!==-1};return function(i){if("regular"===i.type){var u=i.options.parent,a=void 0,s=void 0;for(var l in i.style){var f=o(l),d="@"===l[0];if(f||d){if(f){a=r(i,u,a);var h=n(l,i.selector);s||(s=e(u)),h=h.replace(c,s),u.addRule(h,i.style[l],a)}else d&&t(l,i,u);delete i.style[l]}}}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=o;var a=n(7),s=r(a),l=/\s*,\s*/g,f=/&/g,c=/\$([\w-]+)/g},function(e,t){"use strict";function n(e){return"-"+e.toLowerCase()}function r(e){var t={};for(var o in e){var u=e[o];o=o.replace(i,n),t[o]=u}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(r):t.fallbacks=r(e.fallbacks)),t}Object.defineProperty(t,"__esModule",{value:!0});var i=/([A-Z])/g;t.default=function(){return function(e){var t=e.style;if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=r(t[n]);else e.style=r(t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){if(!t)return t;var r=t;switch(t.constructor){case Object:if("fallbacks"===e){for(var u in t)t[u]=i(u,t[u],n);break}for(var a in t)t[a]=i(e+"-"+a,t[a],n);break;case Array:for(var s=0;s<t.length;s++)t[s]=i(e,t[s],n);break;case Number:r=o(e,t,n)}return r}function o(e,t,n){return"number"==typeof t&&0!==t&&(t+=n[e]||s.default[e]||""),t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.style,r=t.type;if(n&&"regular"===r)for(var o in n)n[o]=i(o,n[o],e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var a=n(25),s=r(a)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(){return function(e){if("keyframe"===e.type)return void(e.selector="@"+u.prefix.css+e.selector.substr(1));if("regular"===e.type)for(var t in e.style){var n=e.style[t],r=!1,i=u.supportedProperty(t);i&&i!==t&&(r=!0);var o=!1,a=u.supportedValue(i,n);a&&a!==n&&(o=!0),(r||o)&&(r&&delete e.style[t],e.style[i||t]=a||n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(27),u=r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var i=n(28),o=r(i),u=n(29),a=r(u),s=n(31),l=r(s);t.default={prefix:o.default,supportedProperty:a.default,supportedValue:l.default},/**
t.sheets=l.default;var f=t.create=function(e){return new o.default(e)};t.default=f()},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=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},a=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}}(),s=r(3),l=n(s),f=r(17),c=n(f),d=r(18),p=n(d),h=r(8),y=n(h),v=r(23),b=n(v),g=r(12),m=n(g),x=r(4),_=n(x),j=function(){function e(t){i(this,e),this.version="6.0.1",this.plugins=new c.default,this.use.apply(this,p.default),this.setup(t)}return a(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=u({},e,{generateClassName:e.generateClassName||b.default});var t=this.options.plugins;return t&&this.use.apply(this,t),this}},{key:"createStyleSheet",value:function(e,t){return new l.default(e,u({jss:this,generateClassName:this.options.generateClassName},t))}},{key:"removeStyleSheet",value:function(e){return e.detach(),y.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"==typeof e?"undefined":o(e))&&(r=t,t=e,e=void 0),r.classes||(r.classes={}),r.jss||(r.jss=this),r.Renderer||(r.Renderer=(0,_.default)(r)),r.generateClassName||(r.generateClassName=this.options.generateClassName||b.default);var n=(0,m.default)(e,t,r);return this.plugins.onProcessRule(n),n}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t.default=j},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),a=r(4),s=n(a),l=r(11),f=n(l),c=function(){function e(t,r){i(this,e);var n=(0,s.default)(r),u="number"==typeof r.index?r.index:0;this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.options=o({sheet:this,parent:this,classes:this.classes,index:u,Renderer:n},r),this.renderer=new n(this),this.renderer.createElement(),this.rules=new f.default(this.options);for(var a in t)this.rules.createAndRegister(a,t[a]);if(r.jss){var l=r.jss.plugins;this.rules.getIndex().forEach(l.onProcessRule,l)}}return u(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.create(e,t,r);if(this.attached){if(!this.deployed)return i;if(n)n.push(i);else{var o=this.renderer.insertRule(i);o&&this.options.link&&(i.renderable=o),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=void 0)}return i}return this.deployed=!1,i}},{key:"addRules",value:function(e,t){var r=[];for(var n in e)r.push(this.addRule(n,e[n],t));return r}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(e){return this.rules.toString(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){for(var e=this.renderer.getRules(),t=0;t<e.length;t++){var r=e[t],n=this.rules.get(r.selectorText);n&&(n.renderable=r)}return this.linked=!0,this}}]),e}();t.default=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!u.default;return t?f.default:s.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(5),u=n(o),a=r(6),s=n(a),l=r(10),f=n(l)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=t.isBrowser="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.default=n},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function u(e,t,r){try{e.style.setProperty(t,r)}catch(e){return!1}return!0}function a(e){return e.selectorText}function s(e,t){return e.selectorText=t,e.selectorText===t}function l(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t)return n}return null}function f(e){for(var t=e.length-1;t>=0;t--){var r=e[t];if(r.attached)return r}return null}function c(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];if(8===r.nodeType&&"jss"===r.nodeValue.trim())return r}return null}function d(e,t){var r=b.default.registry;if(r.length>1){var n=l(r,t);if(n)return n.renderer.element;if(n=f(r))return n.renderer.element.nextElementSibling}var i=c(e);return i?i.nextSibling:null}Object.defineProperty(t,"__esModule",{value:!0});var p=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}}(),h=r(7),y=n(h),v=r(8),b=n(v),g=function(){function e(t){i(this,e),this.getStyle=o,this.setStyle=u,this.setSelector=s,this.getSelector=a,this.sheet=t,t&&b.default.add(t)}return p(e,[{key:"createElement",value:function(){var e=this.sheet?this.sheet.options:{},t=e.media,r=e.meta,n=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=n||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),r&&this.element.setAttribute("data-meta",r)}},{key:"attach",value:function(){if(!this.element.parentNode&&this.sheet){var e=d(this.head,this.sheet.options.index);this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,r=t.cssRules,n=r.length,i=e.toString();if(!i)return!1;try{t.insertRule(i,n)}catch(t){return(0,y.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return r[n]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,r=t.cssRules,n=0;n<r.length;n++)if(e===r[n])return t.deleteRule(n),!0;return!1}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),e}();t.default=g},function(e,t,r){"use strict";var n=function(){};e.exports=n},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(9),o=n(i);t.default=new o.default},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=function(){function e(){r(this,e),this.registry=[]}return n(e,[{key:"add",value:function(e){var t=this.registry,r=e.options.index;if(!t.length||r>=t[t.length-1].options.index)return void t.push(e);for(var n=0;n<t.length;n++){var i=t[n].options;if(i.index>r)return void t.splice(n,0,e)}}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}}]),e}();t.default=i},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=function(){function e(){r(this,e)}return n(e,[{key:"createElement",value:function(){}},{key:"setStyle",value:function(){}},{key:"getStyle",value:function(){}},{key:"setSelector",value:function(){}},{key:"getSelector",value:function(){}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"deleteRule",value:function(){}},{key:"getRules",value:function(){}}]),e}();t.default=i},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),a=r(12),s=n(a),l=function(){function e(t){i(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes}return u(e,[{key:"create",value:function(e,t,r){var n=this.createAndRegister(e,t,r);return this.options.jss.plugins.onProcessRule(n),n}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"register",value:function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)}},{key:"unregister",value:function(e){delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name]}},{key:"toString",value:function(e){for(var t="",r=0;r<this.index.length;r++){var n=this.index[r],i=n.toString(e);i&&(t&&(t+="\n"),t+=i)}return t}},{key:"getIndex",value:function(){return this.index.slice(0)}},{key:"createAndRegister",value:function(e,t,r){var n=this.options,i=n.parent,u=n.sheet,a=n.jss,l=n.Renderer,f=n.generateClassName;r=o({classes:this.classes,parent:i,sheet:u,jss:a,Renderer:l,generateClassName:f},r),r.className||(r.className=this.classes[e]);var c=(0,s.default)(e,t,r);this.register(c);var d=void 0===r.index?this.index.length:r.index;return this.index.splice(d,0,c),c}}]),e}();t.default=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],n=r.jss;if(e&&"@"===e[0]&&n){var i=n.plugins.onCreateRule(e,t,r);if(i)return i;(0,u.default)(!1,"[JSS] Unknown rule %s",e)}return new s.default(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(7),u=n(o),a=r(13),s=n(a)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=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}}(),a=r(14),s=n(a),l=r(15),f=n(l),c=r(16),d=n(c),p=JSON.parse,h=JSON.stringify,y=function(){function e(t,r,n){i(this,e),this.type="regular";var o=n.generateClassName,u=n.sheet,a=n.Renderer,s=h(r);this.style=p(s),this.name=t,this.options=n,this.originalStyle=r,this.className="",n.className?this.className=n.className:o&&(this.className=o(s,this)),this.selectorText=n.selector||"."+this.className,u?this.renderer=u.renderer:a&&(this.renderer=new a)}return u(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.setStyle(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.getStyle(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var r in t)this.renderer.setStyle(e,r,t[r]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var r=this.style[t];"object"!==("undefined"==typeof r?"undefined":o(r))?e[t]=r:Array.isArray(r)&&(e[t]=(0,f.default)(r))}return e}},{key:"toString",value:function(e){return(0,s.default)(this.selector,this.style,e)}},{key:"selector",set:function(e){var t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,d.default)(e),!this.renderable)return void(t&&t.rules.register(this));var r=this.renderer.setSelector(this.renderable,e);return r&&t?void t.rules.register(this):(delete this.renderable,void(t&&(t.rules.register(this),t.deploy().link())))},get:function(){if(this.renderable){var e=this.renderer.getSelector(this.renderable);return e}return this.selectorText}}]),e}();t.default=y},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.indent,o=void 0===n?0:n,u=t.fallbacks,s="";if(o++,u)if(Array.isArray(u))for(var l=0;l<u.length;l++){var f=u[l];for(var c in f){var d=f[c];null!=d&&(s+="\n"+i(c+": "+(0,a.default)(d)+";",o))}}else for(var p in u){var h=u[p];null!=h&&(s+="\n"+i(p+": "+(0,a.default)(h)+";",o))}for(var y in t){var v=t[y];null!=v&&"fallbacks"!==y&&(s+="\n"+i(y+": "+(0,a.default)(v)+";",o))}return s?(o--,s=i(e+" {"+s+"\n",o)+i("}",o)):s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=r(15),a=n(u)},function(e,t){"use strict";function r(e){return Array.isArray(e)?Array.isArray(e[0])?r(e.map(n)):e.join(", "):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=function(e){return e.join(" ")}},function(e,t){"use strict";function r(e){var t=e.match(i);return t?t.join(" ").replace(n,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=/[.]/g,i=/[.][^ ,]+/g},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=function(){function e(){r(this,e),this.registry=[]}return n(e,[{key:"onCreateRule",value:function e(t,r,n){for(var i=0;i<this.registry.length;i++){var e=this.registry[i].onCreateRule;if(e){var o=e(t,r,n);if(o)return o}}return null}},{key:"onProcessRule",value:function e(t){for(var r=0;r<this.registry.length;r++){var e=this.registry[r].onProcessRule;e&&e(t)}}},{key:"use",value:function(e){"function"==typeof e&&(e={onProcessRule:e}),this.registry.push(e)}}]),e}();t.default=i},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(19),o=n(i),u=r(20),a=n(u),s=r(21),l=n(s),f=r(22),c=n(f),d={"@charset":o.default,"@import":o.default,"@namespace":o.default,"@keyframes":a.default,"@media":l.default,"@supports":l.default,"@font-face":c.default};t.default=Object.keys(d).map(function(e){var t=new RegExp("^"+e),r=function(r,n,i){return t.test(r)?new d[e](r,n,i):null};return{onCreateRule:r}})},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=function(){function e(t,n,i){r(this,e),this.type="simple",this.name=t,this.value=n,this.options=i}return n(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t.default=i},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),a=r(12),s=n(a),l={indent:1},f=function(){function e(t,r,n){i(this,e),this.type="keyframe",this.selector=t,this.options=n,this.frames=this.formatFrames(r)}return u(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var r in e){var n=o({},this.options,{parent:this,className:r,selector:r}),i=(0,s.default)(r,e[r],n);n.jss.plugins.onProcessRule(i),t[r]=i}return t}},{key:"toString",value:function(){var e=this.selector+" {\n";for(var t in this.frames)e+=this.frames[t].toString(l)+"\n";return e+="}"}}]),e}();t.default=f},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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},u=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}}(),a=r(11),s=n(a),l=function(){function e(t,r,n){i(this,e),this.type="conditional",this.selector=t,this.options=n,this.rules=new s.default(o({},n,{parent:this}));for(var u in r)this.createAndRegisterRule(u,r[u]);if(n.jss){var a=n.jss.plugins;this.rules.getIndex().forEach(a.onProcessRule,a)}}return u(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,r){return this.rules.create(e,t,this.getChildOptions(r))}},{key:"getChildOptions",value:function(e){return o({},this.options,{parent:this},e)}},{key:"createAndRegisterRule",value:function(e,t){return this.rules.createAndRegister(e,t,this.getChildOptions())}},{key:"toString",value:function(){var e=this.rules.toString({indent:1});return e?this.selector+" {\n"+e+"\n}":""}}]),e}();t.default=l},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),u=r(14),a=n(u),s=function(){function e(t,r,n){i(this,e),this.type="font-face",this.selector=t,this.style=r,this.options=n}return o(e,[{key:"toString",value:function(){if(Array.isArray(this.style)){for(var e="",t=0;t<this.style.length;t++)e+=(0,a.default)(this.selector,this.style[t]),this.style[t+1]&&(e+="\n");return e}return(0,a.default)(this.selector,this.style)}}]),e}();t.default=s},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=(0,u.default)(e);return t.name?t.name+"-"+r:r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(24),u=n(o)},function(e,t,r){function n(e,t){var r,n,i,o,u,a,s,l;for(r=3&e.length,n=e.length-r,i=t,u=3432918353,a=461845907,l=0;l<n;)s=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,s=(65535&s)*u+(((s>>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*a+(((s>>>16)*a&65535)<<16)&4294967295,i^=s,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(s=0,r){case 3:s^=(255&e.charCodeAt(l+2))<<16;case 2:s^=(255&e.charCodeAt(l+1))<<8;case 1:s^=255&e.charCodeAt(l),s=(65535&s)*u+(((s>>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*a+(((s>>>16)*a&65535)<<16)&4294967295,i^=s}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}e.exports=n},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(26),o=n(i),u=r(27),a=n(u),s=r(28),l=n(s),f=r(29),c=n(f),d=r(31),p=n(d),h=r(37),y=n(h),v=r(38),b=n(v),g=r(39),m=n(g),x=r(41),_=n(x);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{plugins:[(0,_.default)(e.global),(0,o.default)(e.extend),(0,a.default)(e.nested),(0,b.default)(e.compose),(0,l.default)(e.camelCase),(0,c.default)(e.defaultUnit),(0,m.default)(e.expand),(0,p.default)(e.vendorPrefixer),(0,y.default)(e.propsSort)]}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return e&&"object"===("undefined"==typeof e?"undefined":u(e))&&!Array.isArray(e)}function o(e,t,r){if("string"==typeof r.extend){if(e.options&&e.options.sheet){var n=e.options.sheet.getRule(r.extend);n&&(n===e?(0,s.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",e):o(e,t,n.originalStyle))}}else if(Array.isArray(r.extend))for(var u=0;u<r.extend.length;u++)o(e,t,r.extend[u]);else for(var a in r.extend)"extend"===a?o(e,t,r.extend.extend):i(r.extend[a])?(t[a]||(t[a]={}),o(e,t[a],r.extend[a])):t[a]=r.extend[a];for(var l in r)"extend"!==l&&(i(t[l])&&i(r[l])?o(e,t[l],r[l]):t[l]=r[l]);return t}Object.defineProperty(t,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=r(7),s=n(a);t.default=function(){return function(e){e.style&&e.style.extend&&(e.style=o(e,{},e.style))}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){function e(e){return function(t,r){var n=e.getRule(r);return n?n.selector:((0,s.default)(!1,"[JSS] Could not find the referenced rule %s. \r\n%s",r,n),r)}}function t(e,t,r){var n=r.getRule(e);if(!n)return void r.addRule(e,i({},t.name,t.style[e]));var o=n.getRule(t.name);return o?void(o.style=u({},o.style,t.style[e])):void n.addRule(t.name,t.style[e])}function r(e,t){for(var r=t.split(l),n=e.split(l),i="",u=0;u<r.length;u++)for(var a=r[u],s=0;s<n.length;s++){var c=n[s];i&&(i+=", "),i+=o(c)?c.replace(f,a):a+" "+c}return i}function n(e,t,r){if(r)return u({},r,{index:r.index+1});var n=e.options.nestingLevel;return n=void 0===n?1:n+1,u({},e.options,{nestingLevel:n,index:t.indexOf(e)+1})}var o=function(e){return e.indexOf("&")!==-1};return function(i){if("regular"===i.type){var a=i.options.parent,s=void 0,l=void 0;for(var f in i.style){var d=o(f),p="@"===f[0];if(d||p){if(d){s=n(i,a,s);var h=r(f,i.selector);l||(l=e(a)),h=h.replace(c,l),a.addRule(h,i.style[f],u({},s,{selector:h}))}else p&&t(f,i,a);delete i.style[f]}}}}}Object.defineProperty(t,"__esModule",{value:!0});var u=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};t.default=o;var a=r(7),s=n(a),l=/\s*,\s*/g,f=/&/g,c=/\$([\w-]+)/g},function(e,t){"use strict";function r(e){return"-"+e.toLowerCase()}function n(e){var t={};for(var o in e){var u=e[o];o=o.replace(i,r),t[o]=u}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(n):t.fallbacks=n(e.fallbacks)),t}Object.defineProperty(t,"__esModule",{value:!0});var i=/([A-Z])/g;t.default=function(){return function(e){var t=e.style;if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=n(t[r]);else e.style=n(t)}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}function o(e,t,r){if(!t)return t;var n=t;switch(t.constructor){case Object:if("fallbacks"===e){for(var i in t)t[i]=o(i,t[i],r);break}for(var a in t)t[a]=o(e+"-"+a,t[a],r);break;case Array:for(var s=0;s<t.length;s++)t[s]=o(e,t[s],r);break;case Number:n=u(e,t,r)}return n}function u(e,t,r){return"number"==typeof t&&0!==t&&(t+=r[e]||f[e]||""),t}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=t.style,n=t.type;if(r&&"regular"===n)for(var u in r)r[u]=o(u,r[u],i(e))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=r(30),l=n(s),f=i(l.default)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-line-height":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(){return function(e){if("keyframe"===e.type)return void(e.selector="@"+u.prefix.css+e.selector.substr(1));if("regular"===e.type)for(var t in e.style){var r=e.style[t],n=!1,i=u.supportedProperty(t);i&&i!==t&&(n=!0);var o=!1,a=u.supportedValue(i,r);a&&a!==r&&(o=!0),(n||o)&&(n&&delete e.style[t],e.style[i||t]=a||r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(32),u=n(o)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var i=r(33),o=n(i),u=r(34),a=n(u),s=r(36),l=n(s);t.default={prefix:o.default,supportedProperty:a.default,supportedValue:l.default},/**
* CSS Vendor prefix detection and property feature testing.

@@ -16,3 +16,3 @@ *

*/
t.prefix=o.default,t.supportedProperty=a.default,t.supportedValue=l.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),u="",a="";if(o.default){var s={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},l=document.createElement("p").style,f="Transform";for(var c in s)if(c+f in l){u=c,a=s[c];break}}t.default={js:u,css:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return c?null!=d[e]?d[e]:((0,f.default)(e)in c.style?d[e]=e:s.default.js+(0,f.default)("-"+e)in c.style?d[e]=s.default.css+e:d[e]=!1,d[e]):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),u=r(o),a=n(28),s=r(a),l=n(30),f=r(l),c=void 0,d={};if(u.default){c=document.createElement("p");var h=window.getComputedStyle(document.documentElement,"");for(var p in h)d[h[p]]=h[p]}},function(e,t){"use strict";function n(e){return e.replace(i,r)}function r(e,t){return t?t.toUpperCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=/[-\s]+(.)?/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!f)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=l[n])return l[n];try{f.style[e]=t}catch(e){return l[n]=!1,!1}return f.style[e]===t?l[n]=t:(t=s.default.css+t,"-ms-flex"===t&&(t="-ms-flexbox"),f.style[e]=t,f.style[e]===t&&(l[n]=t)),l[n]||(l[n]=!1),l[n]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(5),u=r(o),a=n(28),s=r(a),l={},f=void 0;u.default&&(f=document.createElement("p"))},function(e,t){"use strict";function n(){function e(e,t){return e.length>t.length}return function(t){var n=t.style,r=t.type;if(n&&"regular"===r){var i={},o=Object.keys(n).sort(e);for(var u in o)i[o[u]]=n[o[u]];t.style=i}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n}])});
t.prefix=o.default,t.supportedProperty=a.default,t.supportedValue=l.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(5),o=n(i),u="",a="";if(o.default){var s={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},l=document.createElement("p").style,f="Transform";for(var c in s)if(c+f in l){u=c,a=s[c];break}}t.default={js:u,css:a}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return c?null!=d[e]?d[e]:((0,f.default)(e)in c.style?d[e]=e:s.default.js+(0,f.default)("-"+e)in c.style?d[e]=s.default.css+e:d[e]=!1,d[e]):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(5),u=n(o),a=r(33),s=n(a),l=r(35),f=n(l),c=void 0,d={};if(u.default){c=document.createElement("p");var p=window.getComputedStyle(document.documentElement,"");for(var h in p)isNaN(h)||(d[p[h]]=p[h])}},function(e,t){"use strict";function r(e){return e.replace(i,n)}function n(e,t){return t?t.toUpperCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=/[-\s]+(.)?/g},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!f)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var r=e+t;if(null!=l[r])return l[r];try{f.style[e]=t}catch(e){return l[r]=!1,!1}return""!==f.style[e]?l[r]=t:(t=s.default.css+t,"-ms-flex"===t&&(t="-ms-flexbox"),f.style[e]=t,""!==f.style[e]&&(l[r]=t)),l[r]||(l[r]=!1),f.style[e]="",l[r]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(5),u=n(o),a=r(33),s=n(a),l={},f=void 0;u.default&&(f=document.createElement("p"))},function(e,t){"use strict";function r(){function e(e,t){return e.length-t.length}return function(t){var r=t.style,n=t.type;if(r&&"regular"===n){var i={},o=Object.keys(r).sort(e);for(var u in o)i[o[u]]=r[o[u]];t.style=i}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if("$"===t[0]){var r=e.options.sheet.getRule(t.substr(1));return r?r===e?((0,a.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(i(e,r.className),!0):((0,a.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}var n=e.options.parent;return e.className+=" "+t,n.classes[e.name]=e.className,!0}function o(){return function(e){var t=e.style;if(t&&t.composes){if(Array.isArray(t.composes))for(var r=0;r<t.composes.length;r++)i(e,t.composes[r]);else i(e,t.composes);delete t.composes}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=r(7),a=n(u)},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t,r){return e.map(function(e){return u(e,t,r)})}function o(e,t,r,n){return e[0].constructor===Object?i(e,t,n):null==r[t]?e.join(","):e[0].constructor===Array?o(e[0],t,r):e.join(" ")}function u(e,t,r){if(!l.propObj[t]&&!l.customPropObj[t])return"";var i=[];if(l.customPropObj[t])for(var u in l.customPropObj[t]){var s=l.customPropObj[t][u];e[u]&&!r.prop(s)&&r.prop(s,a(n({},s,e[u]),r)[s]),delete e[u]}if(0!==Object.keys(e).length)for(var f in l.propObj[t])e[f]?e[f].constructor===Array?i.push(o(e[f],f,l.propArrayInObj)):i.push(e[f]):null!=l.propObj[t][f]&&i.push(l.propObj[t][f]);return i.join(" ")}function a(e,t){for(var r in e){var n=e[r];if(n.constructor!==Object){if(n.constructor===Array&&n[0].constructor!==Array){if("fallbacks"===r){for(var i=0;i<e[r].length;i++)e[r][i]=a(e[r][i]);continue}e[r]=o(n,r,l.propArray)}}else"fallbacks"===r?e[r]=a(e[r]):(e[r]=u(n,r,t),e[r]||delete e[r])}return e}function s(){return function(e){var t=e.style,r=e.type;if(t&&"regular"===r)if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=a(t[n],e);else e.style=a(t,e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=r(40)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.propArray={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},t.propArrayInObj={position:!0},t.propObj={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:null,spread:null,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null},flex:{grow:null,shrink:null,basis:null}},t.customPropObj={border:{radius:"border-radius"},background:{size:"background-size"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"}}},function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){var t=e.options,r=e.style,n=r[s];if(n){for(var i in n){var o=e.selector+" "+i;t.sheet.addRule(i,n[i],u({},t,{className:o,selector:o}))}delete r[s]}}function i(e){var t=e.options,r=e.style;for(var n in r)if(n.substr(0,s.length)===s){var i=n.substr(s.length).trim(),o=e.selector+" "+i;t.sheet.addRule(o,r[n],u({},t,{className:o,selector:o})),delete r[n]}}function o(){function e(e,t,r){return e===s?new f(e,t,r):e.substr(0,l.length)===l?new c(e,t,r):null}function t(e){"regular"===e.type&&e.style&&(n(e),i(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var u=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},a=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}}();t.default=o;var s="@global",l="@global ",f=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i,this.rules=[];for(var o in n){var a=i.jss.createRule(o,n[o],u({},i,{className:o,parent:this,selector:o}));this.rules.push(a)}}return a(e,[{key:"toString",value:function(e){return this.rules.map(function(t){return t.toString(e)}).join("\n")}}]),e}(),c=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i;var o=t.substr(l.length);this.rule=i.jss.createRule(o,n,u({},i,{className:o,parent:this,selector:o}))}return a(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}()}])});
//# sourceMappingURL=aphrodisiac.min.js.map

@@ -6,7 +6,7 @@ 'use strict';

});
exports.toString = exports.reset = exports.StyleSheet = exports.css = undefined;
exports.version = exports.toString = exports.reset = exports.StyleSheet = exports.css = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports.default = aphrodisiac;
exports['default'] = aphrodisiac;

@@ -19,4 +19,9 @@ var _jss = require('jss');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _murmurhash3_gc = require('murmurhash-js/murmurhash3_gc');
var _murmurhash3_gc2 = _interopRequireDefault(_murmurhash3_gc);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var meta = 'aphrodisiac';
var isNotFalsy = function isNotFalsy(val) {

@@ -28,8 +33,12 @@ return val != null;

};
var generateClassName = function generateClassName(name, str) {
return name + '-' + (0, _murmurhash3_gc2['default'])(name + str + meta);
};
var mergeStyles = function mergeStyles(style, rule) {
return _extends({}, style, rule.style);
};
function aphrodisiac(jss, options) {
var renderSheet = function renderSheet() {
return jss.createStyleSheet(null, _extends({
meta: 'aphrodite-jss'
}, options)).attach();
return jss.createStyleSheet(null, _extends({ meta: meta }, options)).attach();
};

@@ -44,4 +53,3 @@

// Filter out falsy values from the input, to allow for
// `css(a, test && c)`
// Filter falsy values to allow `css(a, test && c)`.
rules = rules.filter(isNotFalsy);

@@ -51,12 +59,10 @@

// A compound class name from all rules.
// A joined class name from all rules.
var className = rules.map(getClassName).join('--');
if (!sheet.getRule(className)) {
var style = rules.reduce(function (res, rule) {
return _extends({}, res, rule.style);
}, {});
sheet.addRule(className, style, { className: className });
}
if (sheet.getRule(className)) return className;
var style = rules.reduce(mergeStyles, {});
sheet.addRule(className, style, { className: className });
return className;

@@ -68,3 +74,3 @@ }

map[name] = {
className: jss.generateClassName(JSON.stringify(styles[name]), { name: name }),
className: generateClassName(name, JSON.stringify(styles[name])),
style: styles[name]

@@ -82,15 +88,14 @@ };

function toString() {
return sheet.toString();
}
return {
StyleSheet: { create: register },
toString: function toString() {
return sheet.toString();
},
css: css,
reset: reset,
toString: toString
version: "1.0.0"
};
}
var _aphrodisiac = aphrodisiac((0, _jss.create)((0, _jssPresetDefault2.default)()));
var _aphrodisiac = aphrodisiac((0, _jss.create)((0, _jssPresetDefault2['default'])()));

@@ -100,6 +105,8 @@ var css = _aphrodisiac.css,

reset = _aphrodisiac.reset,
toString = _aphrodisiac.toString;
toString = _aphrodisiac.toString,
version = _aphrodisiac.version;
exports.css = css;
exports.StyleSheet = StyleSheet;
exports.reset = reset;
exports.toString = toString;
exports.toString = toString;
exports.version = version;
{
"name": "aphrodisiac",
"description": "Aphrodite-like API on top of JSS.",
"version": "0.4.0",
"version": "1.0.0",
"scripts": {
"all": "npm run lint && npm run build",
"clean": "rm -fr ./lib/*",
"build": "npm run clean && npm run build:lib && npm run build:max && npm run build:min",
"build:lib": "cross-env babel src --out-dir lib",
"build:max": "cross-env NODE_ENV=development webpack src/index.js dist/aphrodisiac.js",
"build:min": "cross-env NODE_ENV=production webpack src/index.js dist/aphrodisiac.min.js",
"lint": "eslint ./src ./tests ./benchmark ./*.js",
"lint:staged": "lint-staged",
"prepublish": "npm run all"
},
"author": {

@@ -28,5 +39,6 @@ "name": "Oleg Slobodskoi",

"babel-core": "^6.5.1",
"babel-eslint": "^6.1.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.2",
"babel-plugin-transform-inline-environment-variables": "^6.5.0",
"babel-plugin-inline-version": "^1.0.2",
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
"babel-preset-es2015": "^6.5.0",

@@ -37,24 +49,22 @@ "babel-preset-stage-0": "^6.5.0",

"eslint-config-airbnb": "^9.0.1",
"eslint-config-jss": "^1.1.0",
"eslint-plugin-import": "^1.5.0",
"eslint-config-jss": "^3.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^1.0.2",
"eslint-plugin-react": "^5.0.1",
"json-loader": "^0.5.4",
"lint-staged": "^3.2.2",
"pre-commit": "^1.2.0",
"webpack": "^1.12.2"
},
"scripts": {
"all": "npm run lint && npm run build",
"clean": "rm -fr ./lib/*",
"build": "npm run clean && npm run build:lib && npm run build:max && npm run build:min",
"build:lib": "VERSION=`npm run version -s` && VERSION=$VERSION babel src --out-dir lib",
"build:max": "NODE_ENV=development webpack src/index.js dist/aphrodisiac.js",
"build:min": "NODE_ENV=production webpack src/index.js dist/aphrodisiac.min.js",
"lint": "eslint ./src ./tests ./benchmark ./*.js",
"prepublish": "npm run all",
"version": "node -e \"console.log(require('./package.json').version)\""
"dependencies": {
"jss": "^6.0.1",
"jss-preset-default": "^1.1.0",
"murmurhash-js": "^1.0.0"
},
"dependencies": {
"jss": "^5.5.4",
"jss-preset-default": "^0.4.0"
"lint-staged": {
"./src ./tests ./benchmark ./*.js": [
"eslint",
"git add"
]
}
}

@@ -15,3 +15,3 @@ ## Aphrodite-like API on top of JSS.

- Children, siblings and any other kinds of selectors. ([jss-nested](https://github.com/cssinjs/jss-nested))
- Global styles, without auto namespacing. (JSS option `{named: false}`)
- Global styles, without auto namespacing ([jss-global](https://github.com/cssinjs/jss-global)).
- Immediate render upon `css()` call invocation. It gives you an access to computed styles right after render, no need to use `setTimeout()`. It also avoids additional recalcs and repaints, which can cause flickers and general performance overhead.

@@ -18,0 +18,0 @@ - No auto "!important" insertion. You can write a plugin for this though.

const webpack = require('webpack')
const path = require('path')
process.env.VERSION = require('./package.json').version
const plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.VERSION': JSON.stringify(process.env.VERSION),
__DEV__: process.env.NODE_ENV === 'development',

@@ -11,0 +8,0 @@ __TEST__: process.env.NODE_ENV === 'test'

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 too big to display

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