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

jss-global

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-global - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

changelog.md

@@ -0,1 +1,5 @@

## 3.0.0 / 2017-09-30
- Support JSS 9
## 2.0.0 / 2017-06-20

@@ -2,0 +6,0 @@

10

dist/jss-global.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssGlobal=t():e.jssGlobal=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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=e.split(v),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function o(e){var t=e.options,n=e.style,r=n[c];if(r){for(var o in r)t.sheet.addRule(o,r[o],a({},t,{selector:i(o,e.selector)}));delete n[c]}}function u(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,c.length)===c){var o=i(r.substr(c.length),e.selector);t.sheet.addRule(o,n[r],a({},t,{selector:o})),delete n[r]}}function s(){function e(e,t,n){if(e===c)return new d(e,t,n);if("@"===e[0]&&e.substr(0,h.length)===h)return new y(e,t,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=e),null}function t(e){"style"===e.type&&(o(e),u(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=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},l=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}}();t.default=s;var f=n(1),c="@global",h="@global ",d=function(){function e(t,n,i){r(this,e),this.type="global",this.key=t,this.options=i,this.rules=new f.RuleList(a({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o],{selector:o});this.rules.process()}return l(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(){return this.rules.toString()}}]),e}(),y=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i;var o=t.substr(h.length);this.rule=i.jss.createRule(o,n,a({},i,{parent:this,selector:o}))}return l(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}(),v=/\s*,\s*/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.sheets=t.RuleList=t.SheetsRegistry=t.getDynamicStyles=void 0;var i=n(2),o=r(i),u=n(21),s=r(u),a=n(5),l=r(a),f=n(20),c=r(f),h=n(27),d=r(h);t.getDynamicStyles=d.default,/**
* A better abstraction over CSS.
*
* @copyright Oleg Slobodskoi 2014-present
* @website https://github.com/cssinjs/jss
* @license MIT
*/
t.SheetsRegistry=s.default,t.RuleList=l.default,t.sheets=c.default;var y=t.create=function(e){return new o.default(e)};t.default=y()},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},s=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(3),l=r(a),f=n(13),c=r(f),h=n(14),d=r(h),y=n(20),v=r(y),p=n(22),b=r(p),g=n(6),m=r(g),k=n(23),S=r(k),_=function(){function e(t){i(this,e),this.version="7.1.7",this.plugins=new c.default,this.use.apply(this,d.default),this.setup(t)}return s(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createGenerateClassName||b.default;return this.generateClassName=t(),this.options=u({},e,{createGenerateClassName:t,Renderer:(0,S.default)(e)}),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!=typeof n&&(n=0===v.default.index?0:v.default.index+1);var r=new l.default(e,u({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(e){return e.detach(),v.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"==typeof e?"undefined":o(e))&&(n=t,t=e,e=void 0);var r=n;r.jss=this,r.Renderer=this.options.Renderer,r.generateClassName||(r.generateClassName=this.generateClassName),r.classes||(r.classes={});var i=(0,m.default)(e||"unnamed",t,r);return this.plugins.onProcessRule(i),i}},{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=_},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}}(),s=n(4),a=r(s),l=n(5),f=r(l),c=function(){function e(t,n){i(this,e),this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=o({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new f.default(this.options);for(var r in t)this.rules.add(r,t[r]);this.rules.process()}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.add(e,t,n);return this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)}},{key:"insertRule",value:function(e){var t=this.renderer.insertRule(e);t&&this.options.link&&(0,a.default)(e,t)}},{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||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();return e&&this.rules.link(e),this.linked=!0,this}},{key:"update",value:function(e,t){return this.rules.update(e,t),this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},function(e,t){"use strict";function n(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},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}}(),s=n(6),a=r(s),l=n(12),f=r(l),c=n(4),h=r(c),d=n(8),y=r(d),v=function(){function e(t){i(this,e),this.map={},this.raw={},this.index=[],this.options=t,this.classes=t.classes}return u(e,[{key:"add",value:function(e,t,n){var r=this.options,i=r.parent,u=r.sheet,s=r.jss,l=r.Renderer,f=r.generateClassName;n=o({classes:this.classes,parent:i,sheet:u,jss:s,Renderer:l,generateClassName:f},n),!n.selector&&this.classes[e]&&(n.selector="."+this.classes[e]),this.raw[e]=t;var c=(0,a.default)(e,t,n);this.register(c);var h=void 0===n.index?this.index.length:n.index;return this.index.splice(h,0,c),c}},{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:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e){this.map[e.key]=e,e instanceof y.default&&(this.map[e.selector]=e,this.classes[e.key]=e.selector.substr(1))}},{key:"unregister",value:function(e){delete this.map[e.key],delete this.classes[e.key],e instanceof y.default&&delete this.map[e.selector]}},{key:"update",value:function(t,n){if("string"==typeof t)return void(0,f.default)(this.get(t),n,e);for(var r=0;r<this.index.length;r++)(0,f.default)(this.index[r],t,e)}},{key:"link",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.get(this.options.sheet.renderer.getSelector(n));r&&(0,h.default)(r,n)}}},{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}}]),e}();t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var r=n.jss,i=(0,f.default)(t),o=r.plugins.onCreateRule(e,i,n);return o?o:(e&&"@"===e[0]&&(0,u.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,i,n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(7),u=r(o),s=n(8),a=r(s),l=n(11),f=r(l)},function(e,t,n){"use strict";var r=function(){};e.exports=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")}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 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(9),a=r(s),l=n(10),f=r(l),c=function(){function e(t,n,r){i(this,e),this.type="style",this.isProcessed=!1;var o=r.generateClassName,u=r.sheet,s=r.Renderer,a=r.selector;this.key=t,this.options=r,this.style=n,this.selectorText=a||"."+o(this,u),this.renderer=u?u.renderer:new s}return u(e,[{key:"prop",value:function(e,t){var n="function"==typeof this.style[e]?"$"+e:e,r=this.style[n];if(null!=t){if(r!==t){var i=this.options.jss,o=i?i.plugins.onChangeValue(t,e,this):t;Object.defineProperty(this.style,n,{value:o,writable:!0}),this.renderable&&this.renderer.setStyle(this.renderable,e,o)}return this}return this.renderable&&null==r&&(r=this.renderer.getStyle(this.renderable,e),this.prop(e,r)),this.style[n]}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setStyle(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e={};for(var t in this.style){var n=this.style[t],r="undefined"==typeof n?"undefined":o(n);"function"===r?e[t]=this.style["$"+t]:"object"!==r?e[t]=n:Array.isArray(n)&&(e[t]=(0,f.default)(n))}return e}},{key:"toString",value:function(e){return(0,a.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.renderable)return void(t&&t.rules.register(this));var n=this.renderer.setSelector(this.renderable,e);return n&&t?void t.rules.register(this):(delete this.renderable,void(t&&(t.rules.register(this),t.deploy().link())))},get:function(){return this.renderable?this.renderer.getSelector(this.renderable):this.selectorText}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!t)return r;var o=n.indent,u=void 0===o?0:o,a=t.fallbacks;if(u++,a)if(Array.isArray(a))for(var l=0;l<a.length;l++){var f=a[l];for(var c in f){var h=f[c];null!=h&&(r+="\n"+i(c+": "+(0,s.default)(h)+";",u))}}else for(var d in a){var y=a[d];null!=y&&(r+="\n"+i(d+": "+(0,s.default)(y)+";",u))}var v=!1;for(var p in t){var b=t[p];"function"==typeof b&&(b=t["$"+p],v=!0),null!=b&&"fallbacks"!==p&&(r+="\n"+i(p+": "+(0,s.default)(b)+";",u))}return r||v?(u--,r=i(e+" {"+r+"\n",u)+i("}",u)):r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=n(10),s=r(u)},function(e,t){"use strict";function n(e){return Array.isArray(e)?Array.isArray(e[0])?n(e.map(r)):e.join(", "):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return e.join(" ")}},function(e,t){"use strict";function n(e){if(null==e)return e;var t="undefined"==typeof e?"undefined":r(e);if("string"===t||"number"===t)return e;if(i(e))return e.map(n);var o={};for(var u in e){var s=e[u];"object"!==("undefined"==typeof s?"undefined":r(s))?o[u]=s:o[u]=n(s)}return o}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};t.default=n;var i=Array.isArray},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("style"===e.type)for(var r in e.style){var i=e.style[r];"function"==typeof i&&e.prop(r,i(t))}else e.rules instanceof n&&e.rules.update(t)}},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(){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(7),s=r(u),a=function(){function e(){i(this,e),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}}return o(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var i=this.hooks.onCreateRule[r](e,t,n);if(i)return i}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}}},{key:"onProcessStyle",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onProcessStyle.length;i++)r=this.hooks.onProcessStyle[i](r,t,n),t.style=r}},{key:"onProcessSheet",value:function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)}},{key:"onChangeValue",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onChangeValue.length;i++)r=this.hooks.onChangeValue[i](r,t,n);return r}},{key:"use",value:function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):(0,s.default)(!1,'[JSS] Unknown hook "%s".',t)}}]),e}();t.default=a},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(15),o=r(i),u=n(16),s=r(u),a=n(17),l=r(a),f=n(18),c=r(f),h=n(19),d=r(h),y={"@charset":o.default,"@import":o.default,"@namespace":o.default,"@keyframes":s.default,"@media":l.default,"@supports":l.default,"@font-face":c.default,"@viewport":d.default,"@-ms-viewport":d.default};t.default=Object.keys(y).map(function(e){var t=new RegExp("^"+e),n=function(n,r,i){return t.test(n)?new y[e](n,r,i):null};return{onCreateRule:n}})},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.isProcessed=!1,this.key=t,this.value=r,this.options=i}return r(e,[{key:"toString",value:function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"}}]),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}}(),s=n(5),a=r(s),l=function(){function e(t,n,r){i(this,e),this.type="keyframes",this.isProcessed=!1,this.key=t,this.options=r,this.rules=new a.default(o({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u],o({},this.options,{parent:this,selector:u}));this.rules.process()}return u(e,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=l},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}}(),s=n(5),a=r(s),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.isProcessed=!1,this.key=t,this.options=r,this.rules=new a.default(o({},r,{parent:this}));for(var u in n)this.rules.add(u,n[u]);this.rules.process()}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){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),e}();t.default=l},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(){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(9),s=r(u),a=function(){function e(t,n,r){i(this,e),this.type="font-face",this.isProcessed=!1,this.key=t,this.style=n,this.options=r}return o(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,s.default)(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return(0,s.default)(this.key,this.style,e)}}]),e}();t.default=a},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(){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(9),s=r(u),a=function(){function e(t,n,r){i(this,e),this.type="viewport",this.isProcessed=!1,this.key=t,this.style=n,this.options=r}return o(e,[{key:"toString",value:function(e){return(0,s.default)(this.key,this.style,e)}}]),e}();t.default=a},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);t.default=new o.default},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.indexOf(e)===-1){if(0===t.length||n>=this.index)return void t.push(e);for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=i},function(e,t){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof window?e:window,r="__JSS_VERSION_COUNTER__";null==n[r]&&(n[r]=0);var i=n[r]++;t.default=function(){var e=0;return function(t){return t.key+"-"+i+"-"+e++}}}).call(t,function(){return this}())},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]:{};if(e.Renderer)return e.Renderer;var t=e.virtual||!u.default;return t?f.default:a.default}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=n(24),u=r(o),s=n(25),a=r(s),l=n(26),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){try{return e.style.getPropertyValue(t)}catch(e){return""}}function u(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)}function a(e){if(e.type===k.STYLE_RULE)return e.selectorText;if(e.type===k.KEYFRAMES_RULE){var t=e.name;if(t)return"@keyframes "+t;var n=e.cssText;return"@"+s(n,n.indexOf("keyframes"))}return s(e.cssText)}function l(e,t){return e.selectorText=t,e.selectorText===t}function f(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function c(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function h(e){for(var t=S(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}function d(e){var t=m.default.registry;if(t.length>0){var n=f(t,e);if(n)return n.renderer.element;if(n=c(t,e))return n.renderer.element.nextElementSibling}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=h(r);if(i)return i.nextSibling;(0,b.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}function y(e,t){var n=t.insertionPoint,r=d(t);if(r){var i=r.parentNode;return void(i&&i.insertBefore(e,r))}if(n&&"number"==typeof n.nodeType){var o=n,u=o.parentNode;return void(u?u.insertBefore(e,o.nextSibling):(0,b.default)(!1,"[JSS] Insertion point is not in the DOM."))}S().insertBefore(e,r)}Object.defineProperty(t,"__esModule",{value:!0});var v=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}}(),p=n(7),b=r(p),g=n(20),m=r(g),k={STYLE_RULE:1,KEYFRAMES_RULE:7},S=function(){var e=void 0;return function(){return e||(e=document.head||document.getElementsByTagName("head")[0]),e}}(),_=function(){function e(t){i(this,e),this.getStyle=o,this.setStyle=u,this.setSelector=l,this.getSelector=a,this.hasInsertedRules=!1,t&&m.default.add(t),this.sheet=t;var n=this.sheet?this.sheet.options:{},r=n.media,s=n.meta,f=n.element;this.element=f||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),s&&this.element.setAttribute("data-meta",s)}return v(e,[{key:"attach",value:function(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),y(this.element,this.sheet.options))}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length,i=e.toString();if(!i)return!1;try{t.insertRule(i,r)}catch(t){return(0,b.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),!1}return this.hasInsertedRules=!0,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(){return this.element.sheet.cssRules}}]),e}();t.default=_},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:"setStyle",value:function(){return!0}},{key:"getStyle",value:function(){return""}},{key:"setSelector",value:function(){return!0}},{key:"getSelector",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!1}},{key:"deleteRule",value:function(){return!0}},{key:"getRules",value:function(){}}]),e}();t.default=i},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};t.default=function(e){function t(e){var r=null;for(var i in e){var o=e[i],u="undefined"==typeof o?"undefined":n(o);if("function"===u)r||(r={}),r[i]=o;else if("object"===u&&null!==o&&!Array.isArray(o)){var s=t(o);s&&(r||(r={}),r[i]=s)}}return r}return t(e)}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jssGlobal=t():e.jssGlobal=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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=e.split(v),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function u(e){var t=e.options,n=e.style,r=n[c];if(r){for(var u in r)t.sheet.addRule(u,r[u],a({},t,{selector:i(u,e.selector)}));delete n[c]}}function s(e){var t=e.options,n=e.style;for(var r in n)if(r.substr(0,c.length)===c){var u=i(r.substr(c.length),e.selector);t.sheet.addRule(u,n[r],a({},t,{selector:u})),delete n[r]}}function o(){function e(e,t,n){if(e===c)return new d(e,t,n);if("@"===e[0]&&e.substr(0,h.length)===h)return new y(e,t,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=e),null}function t(e){"style"===e.type&&(u(e),s(e))}return{onCreateRule:e,onProcessRule:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=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},l=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}}();t.default=o;var f=n(1),c="@global",h="@global ",d=function(){function e(t,n,i){r(this,e),this.type="global",this.key=t,this.options=i,this.rules=new f.RuleList(a({},i,{parent:this}));for(var u in n)this.rules.add(u,n[u],{selector:u});this.rules.process()}return l(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"addRule",value:function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(){return this.rules.toString()}}]),e}(),y=function(){function e(t,n,i){r(this,e),this.name=t,this.options=i;var u=t.substr(h.length);this.rule=i.jss.createRule(u,n,a({},i,{parent:this,selector:u}))}return l(e,[{key:"toString",value:function(e){return this.rule.toString(e)}}]),e}(),v=/\s*,\s*/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.getDynamicStyles=void 0;var i=n(2);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return r(i).default}});var u=n(3);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return r(u).default}});var s=n(4);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return r(s).default}});var o=n(6);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return r(o).default}});var a=n(18);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return r(a).default}});var l=n(19);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return r(l).default}});var f=n(21),c=r(f),h=t.create=function(e){return new c.default(e)};t.default=h()},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};t.default=function(e){function t(e){var r=null;for(var i in e){var u=e[i],s="undefined"==typeof u?"undefined":n(u);if("function"===s)r||(r={}),r[i]=u;else if("object"===s&&null!==u&&!Array.isArray(u)){var o=t(u);o&&(r||(r={}),r[i]=o)}}return r}return t(e)}},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.indexOf(e)===-1){if(0===t.length||n>=this.index)return void t.push(e);for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),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 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}}(),s=n(5),o=r(s),a=function(){function e(){i(this,e),this.sheets=[],this.refs=[],this.keys=[]}return u(e,[{key:"get",value:function(e){var t=this.keys.indexOf(e);return this.sheets[t]}},{key:"add",value:function(e,t){var n=this.sheets,r=this.refs,i=this.keys,u=n.indexOf(t);return u!==-1?u:(n.push(t),r.push(0),i.push(e),n.length-1)}},{key:"manage",value:function(e){var t=this.keys.indexOf(e),n=this.sheets[t];return 0===this.refs[t]&&n.attach(),this.refs[t]++,this.keys[t]||this.keys.splice(t,0,e),n}},{key:"unmanage",value:function(e){var t=this.keys.indexOf(e);return t===-1?void(0,o.default)(!1,"SheetsManager: can't find sheet to unmanage"):void(this.refs[t]>0&&(this.refs[t]--,0===this.refs[t]&&this.sheets[t].detach()))}},{key:"size",get:function(){return this.keys.length}}]),e}();t.default=a},function(e,t,n){"use strict";var r=function(){};e.exports=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")}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},s=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(7),a=r(o),l=n(16),f=r(l),c=n(17),h=r(c),d=n(8),y=r(d),v=function(){function e(t){i(this,e),this.map={},this.raw={},this.index=[],this.options=t,this.classes=t.classes}return s(e,[{key:"add",value:function(e,t,n){var r=this.options,i=r.parent,s=r.sheet,o=r.jss,l=r.Renderer,f=r.generateClassName;n=u({classes:this.classes,parent:i,sheet:s,jss:o,Renderer:l,generateClassName:f},n),!n.selector&&this.classes[e]&&(n.selector="."+this.classes[e]),this.raw[e]=t;var c=(0,a.default)(e,t,n),h=void 0;!n.selector&&c instanceof y.default&&(h=f(c,s),c.selector="."+h),this.register(c,h);var d=void 0===n.index?this.index.length:n.index;return this.index.splice(d,0,c),c}},{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:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e,t){this.map[e.key]=e,e instanceof y.default&&(this.map[e.selector]=e,t&&(this.classes[e.key]=t))}},{key:"unregister",value:function(e){delete this.map[e.key],e instanceof y.default&&(delete this.map[e.selector],delete this.classes[e.key])}},{key:"update",value:function(t,n){if("string"==typeof t)return void(0,f.default)(this.get(t),n,e);for(var r=0;r<this.index.length;r++)(0,f.default)(this.index[r],t,e)}},{key:"link",value:function(e){for(var t=this.options.sheet.renderer.getUnescapedKeysMap(this.index),n=0;n<e.length;n++){var r=e[n],i=this.options.sheet.renderer.getKey(r);t[i]&&(i=t[i]);var u=this.map[i];u&&(0,h.default)(u,r)}}},{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}}]),e}();t.default=v},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]:"unnamed",t=arguments[1],n=arguments[2],r=n.jss,i=(0,f.default)(t),u=r.plugins.onCreateRule(e,i,n);return u?u:("@"===e[0]&&(0,s.default)(!1,"[JSS] Unknown at-rule %s",e),new a.default(e,i,n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var u=n(5),s=r(u),o=n(8),a=r(o),l=n(15),f=r(l)},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 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},s=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(5),a=r(o),l=n(9),f=r(l),c=n(10),h=r(c),d=n(11),y=r(d),v=function(){function e(t,n,r){i(this,e),this.type="style",this.isProcessed=!1;var u=r.sheet,s=r.Renderer,o=r.selector;this.key=t,this.options=r,this.style=n,o&&(this.selectorText=o),this.renderer=u?u.renderer:new s}return s(e,[{key:"prop",value:function(e,t){var n=(0,y.default)(this.style[e])?"$"+e:e;if(null!=t){if(this.style[n]!==t)if(t=this.options.jss.plugins.onChangeValue(t,e,this),Object.defineProperty(this.style,n,{value:t,writable:!0}),this.renderable)this.renderer.setStyle(this.renderable,e,t);else{var r=this.options.sheet;r&&r.attached&&(0,a.default)(!1,'Rule is not linked. Missing sheet option "link: true".')}return this}return this.style[n]}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setStyle(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e={};for(var t in this.style){var n=this.style[t];(0,y.default)(n)?e[t]=this.style["$"+t]:"object"!==("undefined"==typeof n?"undefined":u(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,h.default)(n))}return e}},{key:"toString",value:function(e){return(0,f.default)(this.selector,this.style,e)}},{key:"selector",set:function(e){if(e!==this.selectorText&&(this.selectorText=e,this.renderable)){var t=this.renderer.setSelector(this.renderable,e);if(!t&&this.renderable){var n=this.renderer.replaceRule(this.renderable,this);n&&(this.renderable=n)}}},get:function(){return this.selectorText}}]),e}();t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!t)return r;var u=n.indent,s=void 0===u?0:u,a=t.fallbacks;if(s++,a)if(Array.isArray(a))for(var f=0;f<a.length;f++){var c=a[f];for(var h in c){var d=c[h];null!=d&&(r+="\n"+i(h+": "+(0,o.default)(d)+";",s))}}else for(var y in a){var v=a[y];null!=v&&(r+="\n"+i(y+": "+(0,o.default)(v)+";",s))}var p=!1;for(var b in t){var g=t[b];(0,l.default)(g)&&(g=t["$"+b],p=!0),null!=g&&"fallbacks"!==b&&(r+="\n"+i(b+": "+(0,o.default)(g)+";",s))}return r||p?(s--,r=i(e+" {"+r+"\n",s)+i("}",s)):r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var s=n(10),o=r(s),a=n(11),l=r(a)},function(e,t){"use strict";function n(e){return Array.isArray(e)?Array.isArray(e[0])?n(e.map(r)):e.join(", "):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return e.join(" ")}},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(12),u=r(i);t.default=function(e){return"function"==typeof e||(0,u.default)(e)}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e){return Boolean(e&&e[r])}},function(e,t,n){(function(t){"use strict";e.exports=n(14)(t||window||this)}).call(t,function(){return this}())},function(e,t){"use strict";e.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(null==e)return e;var t="undefined"==typeof e?"undefined":u(e);if("string"===t||"number"===t)return e;if(a(e))return e.map(i);var n={};for(var r in e){var s=e[r];"object"!==("undefined"==typeof s?"undefined":u(s))||(0,o.default)(s)?n[r]=s:n[r]=i(s)}return n}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};t.default=i;var s=n(12),o=r(s),a=Array.isArray},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("style"===e.type)for(var r in e.style){var i=e.style[r];"function"==typeof i&&e.prop(r,i(t))}else e.rules instanceof n&&e.rules.update(t)}},function(e,t){"use strict";function n(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},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(3),u=r(i);t.default=new u.default},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),u=r(i),s=n(20),o=(r(s),"undefined"==typeof window?e:window),a="2f1acc6c3a606b082e5eef5e54414ffb";null==o[a]&&(o[a]=0);var l=o[a]++,f=1e10,c="production";t.default=function(){var e=0;return function(t,n){if(e+=1,e>f&&(0,u.default)(!1,"You might have a memory leak. Rule counter is at %s.",e),"production"===c)return"c"+l+e;var r=n?n.options.classNamePrefix||"":"";return""+r+t.key+"-"+l+"-"+e}}}).call(t,function(){return this}())},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 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},s=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(17),a=r(o),l=n(6),f=r(l),c=function(){function e(t,n){i(this,e),this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=u({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new f.default(this.options);for(var r in t)this.rules.add(r,t[r]);this.rules.process()}return s(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.add(e,t,n);return this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)}},{key:"insertRule",value:function(e){var t=this.renderer.insertRule(e);t&&this.options.link&&(0,a.default)(e,t)}},{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||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();return e&&this.rules.link(e),this.linked=!0,this}},{key:"update",value:function(e,t){return this.rules.update(e,t),this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},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 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},s=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},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}}(),a=n(22),l=r(a),f=n(20),c=r(f),h=n(23),d=r(h),y=n(24),v=r(y),p=n(30),b=r(p),g=n(18),m=r(g),k=n(8),_=r(k),P=n(19),O=r(P),S=n(7),j=r(S),R=n(31),w=r(R),x=n(32),M=r(x),C=v.default.concat([b.default]),E=function(){function e(t){i(this,e),this.version="9.0.0",this.plugins=new d.default,this.options={createGenerateClassName:O.default,Renderer:l.default?w.default:M.default,plugins:[]},this.generateClassName=(0,O.default)(),this.use.apply(this,C),this.setup(t)}return o(e,[{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.createGenerateClassName&&(this.options.createGenerateClassName=e.createGenerateClassName,this.generateClassName=e.createGenerateClassName()),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),(e.virtual||e.Renderer)&&(this.options.Renderer=e.Renderer||(e.virtual?M.default:w.default)),e.plugins&&this.use.apply(this,e.plugins),this}},{key:"createStyleSheet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index;"number"!=typeof n&&(n=0===m.default.index?0:m.default.index+1);var r=new c.default(e,s({},t,{jss:this,generateClassName:t.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(e){return e.detach(),m.default.remove(e),this}},{key:"createRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===("undefined"==typeof e?"undefined":u(e))&&(n=t,t=e,e=void 0);var r=n;r.jss=this,r.Renderer=this.options.Renderer,r.generateClassName||(r.generateClassName=this.generateClassName),r.classes||(r.classes={});var i=(0,j.default)(e,t,r);return!r.selector&&i instanceof _.default&&(i.selector="."+r.generateClassName(i)),this.plugins.onProcessRule(i),i}},{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){e.options.plugins.indexOf(t)===-1&&(e.options.plugins.push(t),e.plugins.use(t))}),this}}]),e}();t.default=E},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")}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),s=n(5),o=r(s),a=function(){function e(){i(this,e),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}}return u(e,[{key:"onCreateRule",value:function(e,t,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var i=this.hooks.onCreateRule[r](e,t,n);if(i)return i}return null}},{key:"onProcessRule",value:function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}}},{key:"onProcessStyle",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onProcessStyle.length;i++)r=this.hooks.onProcessStyle[i](r,t,n),t.style=r}},{key:"onProcessSheet",value:function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)}},{key:"onChangeValue",value:function(e,t,n){for(var r=e,i=0;i<this.hooks.onChangeValue.length;i++)r=this.hooks.onChangeValue[i](r,t,n);return r}},{key:"use",value:function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):(0,o.default)(!1,'[JSS] Unknown hook "%s".',t)}}]),e}();t.default=a},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(25),u=r(i),s=n(26),o=r(s),a=n(27),l=r(a),f=n(28),c=r(f),h=n(29),d=r(h),y={"@charset":u.default,"@import":u.default,"@namespace":u.default,"@keyframes":o.default,"@media":l.default,"@supports":l.default,"@font-face":c.default,"@viewport":d.default,"@-ms-viewport":d.default};t.default=Object.keys(y).map(function(e){var t=new RegExp("^"+e),n=function(n,r,i){return t.test(n)?new y[e](n,r,i):null};return{onCreateRule:n}})},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.isProcessed=!1,this.key=t,this.value=r,this.options=i}return r(e,[{key:"toString",value:function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"}}]),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 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},s=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(6),a=r(o),l=function(){function e(t,n,r){i(this,e),this.type="keyframes",this.isProcessed=!1,this.key=t,this.options=r,this.rules=new a.default(u({},r,{parent:this}));for(var s in n)this.rules.add(s,n[s],u({},this.options,{parent:this,selector:s}));this.rules.process()}return s(e,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t&&(t+="\n"),this.key+" {\n"+t+"}"}}]),e}();t.default=l},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 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},s=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(6),a=r(o),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.isProcessed=!1,this.key=t,this.options=r,this.rules=new a.default(u({},r,{parent:this}));for(var s in n)this.rules.add(s,n[s]);this.rules.process()}return s(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){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""}}]),e}();t.default=l},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 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}}(),s=n(9),o=r(s),a=function(){function e(t,n,r){i(this,e),this.type="font-face",this.isProcessed=!1,this.key=t,this.style=n,this.options=r}return u(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,o.default)(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return(0,o.default)(this.key,this.style,e)}}]),e}();t.default=a},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 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}}(),s=n(9),o=r(s),a=function(){function e(t,n,r){i(this,e),this.type="viewport",this.isProcessed=!1,this.key=t,this.style=n,this.options=r}return u(e,[{key:"toString",value:function(e){return(0,o.default)(this.key,this.style,e)}}]),e}();t.default=a},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(12),u=r(i),s=n(8),o=r(s);t.default={onProcessRule:function(e){if(e instanceof o.default){var t=e.style,n=function(n){var r=t[n];return(0,u.default)(r)?void r.subscribe({next:function(t){e.prop(n,t)}}):"continue"};for(var r in t){n(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 u(e,t){try{return e.style.getPropertyValue(t)}catch(e){return""}}function s(e,t,n){try{e.style.setProperty(t,n)}catch(e){return!1}return!0}function o(e,t){return e.selectorText=t,e.selectorText===t}function a(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function l(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function f(e){for(var t=P(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}function c(e){var t=b.default.registry;if(t.length>0){var n=a(t,e);if(n)return n.renderer.element;if(n=l(t,e))return n.renderer.element.nextElementSibling}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=f(r);if(i)return i.nextSibling;(0,v.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}function h(e,t){var n=t.insertionPoint,r=c(t);if(r){var i=r.parentNode;return void(i&&i.insertBefore(e,r))}if(n&&"number"==typeof n.nodeType){var u=n,s=u.parentNode;return void(s?s.insertBefore(e,u.nextSibling):(0,v.default)(!1,"[JSS] Insertion point is not in the DOM."))}P().insertBefore(e,r)}Object.defineProperty(t,"__esModule",{value:!0});var d=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}}(),y=n(5),v=r(y),p=n(18),b=r(p),g=n(8),m=r(g),k={STYLE_RULE:1,KEYFRAMES_RULE:7},_=function(){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.substr(t,e.indexOf("{")-1)};return function(t){if(t.type===k.STYLE_RULE)return t.selectorText;if(t.type===k.KEYFRAMES_RULE){var n=t.name;if(n)return"@keyframes "+n;var r=t.cssText;return"@"+e(r,r.indexOf("keyframes"))}return e(t.cssText)}}(),P=function(){var e=void 0;return function(){return e||(e=document.head||document.getElementsByTagName("head")[0]),e}}(),O=function(){var e=void 0,t=!1;return function(n){var r={};e||(e=document.createElement("style"));for(var i=0;i<n.length;i++){var u=n[i];if(u instanceof m.default){var s=u.selector;if(s&&s.indexOf("\\")!==-1){t||(P().appendChild(e),t=!0),e.textContent=s+" {}";var o=e,a=o.sheet;if(a){var l=a.cssRules;l&&(r[l[0].selectorText]=u.key)}}}}return t&&(P().removeChild(e),t=!1),r}}(),S=function(){function e(t){i(this,e),this.getStyle=u,this.setStyle=s,this.setSelector=o,this.getKey=_,this.getUnescapedKeysMap=O,this.hasInsertedRules=!1,t&&b.default.add(t),this.sheet=t;var n=this.sheet?this.sheet.options:{},r=n.media,a=n.meta,l=n.element;this.element=l||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),a&&this.element.setAttribute("data-meta",a)}return d(e,[{key:"attach",value:function(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),h(this.element,this.sheet.options))}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(e,t){var n=this.element.sheet,r=n.cssRules,i=e.toString();if(t||(t=r.length),!i)return!1;try{n.insertRule(i,t)}catch(t){return(0,v.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e),
!1}return this.hasInsertedRules=!0,r[t]}},{key:"deleteRule",value:function(e){var t=this.element.sheet,n=this.indexOf(e);return n!==-1&&(t.deleteRule(n),!0)}},{key:"indexOf",value:function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1}},{key:"replaceRule",value:function(e,t){var n=this.indexOf(e),r=this.insertRule(t,n);return this.element.sheet.deleteRule(n),r}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),e}();t.default=S},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:"setStyle",value:function(){return!0}},{key:"getStyle",value:function(){return""}},{key:"setSelector",value:function(){return!0}},{key:"getKey",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!1}},{key:"deleteRule",value:function(){return!0}},{key:"replaceRule",value:function(){return!1}},{key:"getRules",value:function(){}},{key:"indexOf",value:function(){return-1}}]),e}();t.default=i}])});
//# sourceMappingURL=jss-global.min.js.map
{
"name": "jss-global",
"version": "2.0.0",
"version": "3.0.0",
"description": "Global styles for JSS",

@@ -46,3 +46,3 @@ "main": "lib/index.js",

"peerDependencies": {
"jss": "^8.0.0"
"jss": "^9.0.0"
},

@@ -68,4 +68,4 @@ "devDependencies": {

"expect.js": "^0.3.1",
"jss": "8.0.0",
"jss-nested": "^5.0.0",
"jss": "^9.0.0",
"jss-nested": "^6.0.0",
"karma": "^1.3.0",

@@ -72,0 +72,0 @@ "karma-chrome-launcher": "^2.0.0",

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