UNPKG

styled-components

Version:

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

2 lines • 95.3 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.styled=t(require("React")):e.styled=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.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}}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeProvider=t.injectGlobal=t.keyframes=t.css=void 0;var o=n(1),i=r(o),a=n(2),s=r(a),u=n(11),l=r(u),c=n(41),f=r(c),p=n(53),d=r(p),h=n(54),y=r(h),v=n(56),m=r(v),b=n(49),g=r(b),w=(0,y["default"])(i["default"]),k=(0,d["default"])((0,f["default"])((0,m["default"])(i["default"])));t["default"]=k,t.css=s["default"],t.keyframes=w,t.injectGlobal=l["default"],t.ThemeProvider=g["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=function o(e){var t=n[e%n.length];return e>n.length?""+o(Math.floor(e/n.length))+t:t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=r(o),a=n(4),s=r(a);t["default"]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,s["default"])((0,i["default"])(e,n))},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objToCss=void 0;var i=n(5),a=r(i),s=n(7),u=r(s),l=t.objToCss=function(e){return Object.keys(e).map(function(t){return(0,a["default"])(t)+": "+e[t]+";"}).join(" ")},c=function f(e,t){return e.reduce(function(e,n){return void 0===n||null===n||n===!1||""===n?e:Array.isArray(n)?e.concat.apply(e,o(f(n,t))):"function"==typeof n?t?e.concat.apply(e,o(f([n(t)],t))):e.concat(n):e.concat((0,u["default"])(n)?l(n):n.toString())},[])};t["default"]=c},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(6),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){function r(e){if(!i(e)||p.call(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}var o=n(8),i=n(10),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object),p=u.toString;e.exports=r},function(e,t,n){var r=n(9),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o),a=n(12),s=r(a),u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=new s["default"](i["default"].apply(void 0,[e].concat(n)));o.generateAndInject()};t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}}(),a=n(13),s=r(a),u=n(37),l=r(u),c=n(4),f=r(c),p=n(38),d=r(p),h=function(){function e(t,n){o(this,e),this.rules=t,this.selector=n}return i(e,[{key:"generateAndInject",value:function(){d["default"].injected||d["default"].inject();var e=(0,f["default"])(this.rules).join("");this.selector&&(e=this.selector+" {"+e+"\n}");var t=(0,s["default"])(e);(0,l["default"])(t),d["default"].insert(t.toResult().css)}}]),e}();t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=new a["default"](e,t),r=new u["default"](n);return r.tokenize(),r.loop(),r.root}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(14),a=r(i),s=n(20),u=r(s);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}}(),a=n(15),s=r(a),u=0,l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=path.resolve(n.from)),this.file||(u+=1,this.id="<input css "+u+">"),this.map&&(this.map.file=this.from)}return i(e,[{key:"error",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,i=this.origin(t,n);return o=i?new s["default"](e,i.line,i.column,i.source,i.file,r.plugin):new s["default"](e,t,n,this.css,this.file,r.plugin),o.input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o}},{key:"origin",value:function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:path.resolve(this.map.consumer().sourceRoot||".",e)}},{key:"from",get:function(){return this.file||this.id}}]),e}();t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}}(),a=n(16),s=r(a),u=n(17),l=r(u),c=n(19),f=r(c),p=function(){function e(t,n,r,i,a,s){o(this,e),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),"undefined"!=typeof n&&"undefined"!=typeof r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return i(e,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var n=this.source;"undefined"==typeof e&&(e=s["default"]),e&&(n=(0,l["default"])(n));var r=n.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),a=String(i).length;return r.slice(o,i).map(function(e,n){var r=o+1+n,i=(" "+r).slice(-a),s=" "+i+" | ";if(r===t.line){var u=s.replace(/\d/g," ")+e.slice(0,t.column-1).replace(/[^\t]/g," ");return">"+s+e+"\n "+u+"^"}return" "+s+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}},{key:"generated",get:function(){return(0,f["default"])("CssSyntaxError#generated is depreacted. Use input instead."),this.input}}]),e}();t["default"]=p,e.exports=t["default"]},function(e,t){"use strict";e.exports=!1},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"["+e+"m"}function i(e){var t=(0,s["default"])(new l["default"](e),{ignoreErrors:!0}),n=[],r=!0,i=!1,a=void 0;try{for(var u,f=function(){var e=u.value,t=c[e[0]];t?n.push(e[1].split(/\r?\n/).map(function(e){return o(t[0])+e+o(t[1])}).join("\n")):n.push(e[1])},p=t[Symbol.iterator]();!(r=(u=p.next()).done);r=!0)f()}catch(d){i=!0,a=d}finally{try{!r&&p["return"]&&p["return"]()}finally{if(i)throw a}}return n.join("")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),s=r(a),u=n(14),l=r(u),c={brackets:[36,39],string:[31,39],"at-word":[31,39],comment:[90,39],"{":[32,39],"}":[32,39],":":[1,22],";":[1,22],"(":[1,22],")":[1,22]};t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e){function t(t){throw e.error("Unclosed "+t,H,W-z)}for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},C=[],P=e.css.valueOf(),j=n.ignoreErrors,E=void 0,A=void 0,S=void 0,M=void 0,T=void 0,R=void 0,N=void 0,U=void 0,D=void 0,F=void 0,L=void 0,B=void 0,I=void 0,V=P.length,z=-1,H=1,W=0;W<V;){switch(E=P.charCodeAt(W),(E===s||E===l||E===f&&P.charCodeAt(W+1)!==s)&&(z=W,H+=1),E){case s:case u:case c:case f:case l:A=W;do A+=1,E=P.charCodeAt(A),E===s&&(z=A,H+=1);while(E===u||E===s||E===c||E===f||E===l);C.push(["space",P.slice(W,A)]),W=A-1;break;case p:C.push(["[","[",H,W-z]);break;case d:C.push(["]","]",H,W-z]);break;case v:C.push(["{","{",H,W-z]);break;case m:C.push(["}","}",H,W-z]);break;case w:C.push([":",":",H,W-z]);break;case b:C.push([";",";",H,W-z]);break;case h:if(B=C.length?C[C.length-1][1]:"",I=P.charCodeAt(W+1),"url"===B&&I!==r&&I!==o&&I!==u&&I!==s&&I!==c&&I!==l&&I!==f){A=W;do{if(F=!1,A=P.indexOf(")",A+1),A===-1){if(j){A=W;break}t("bracket")}for(L=A;P.charCodeAt(L-1)===i;)L-=1,F=!F}while(F);C.push(["brackets",P.slice(W,A+1),H,W-z,H,A-z]),W=A}else A=P.indexOf(")",W+1),R=P.slice(W,A+1),A===-1||O.test(R)?C.push(["(","(",H,W-z]):(C.push(["brackets",R,H,W-z,H,A-z]),W=A);break;case y:C.push([")",")",H,W-z]);break;case r:case o:S=E===r?"'":'"',A=W;do{if(F=!1,A=P.indexOf(S,A+1),A===-1){if(j){A=W+1;break}t("quote")}for(L=A;P.charCodeAt(L-1)===i;)L-=1,F=!F}while(F);R=P.slice(W,A+1),M=R.split("\n"),T=M.length-1,T>0?(U=H+T,D=A-M[T].length):(U=H,D=z),C.push(["string",P.slice(W,A+1),H,W-z,U,A-D]),z=D,H=U,W=A;break;case k:x.lastIndex=W+1,x.test(P),A=0===x.lastIndex?P.length-1:x.lastIndex-2,C.push(["at-word",P.slice(W,A+1),H,W-z,H,A-z]),W=A;break;case i:for(A=W,N=!0;P.charCodeAt(A+1)===i;)A+=1,N=!N;E=P.charCodeAt(A+1),N&&E!==a&&E!==u&&E!==s&&E!==c&&E!==f&&E!==l&&(A+=1),C.push(["word",P.slice(W,A+1),H,W-z,H,A-z]),W=A;break;default:E===a&&P.charCodeAt(W+1)===g?(A=P.indexOf("*/",W+2)+1,0===A&&(j?A=P.length:t("comment")),R=P.slice(W,A+1),M=R.split("\n"),T=M.length-1,T>0?(U=H+T,D=A-M[T].length):(U=H,D=z),C.push(["comment",R,H,W-z,U,A-D]),z=D,H=U,W=A):(_.lastIndex=W+1,_.test(P),A=0===_.lastIndex?P.length-1:_.lastIndex-2,C.push(["word",P.slice(W,A+1),H,W-z,H,A-z]),W=A)}W++}return C}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s="\n".charCodeAt(0),u=" ".charCodeAt(0),l="\f".charCodeAt(0),c="\t".charCodeAt(0),f="\r".charCodeAt(0),p="[".charCodeAt(0),d="]".charCodeAt(0),h="(".charCodeAt(0),y=")".charCodeAt(0),v="{".charCodeAt(0),m="}".charCodeAt(0),b=";".charCodeAt(0),g="*".charCodeAt(0),w=":".charCodeAt(0),k="@".charCodeAt(0),x=/[ \n\t\r\f\{\(\)'"\\;\/\[\]#]/g,_=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,O=/.[\\\/\("'\n]/;e.exports=t["default"]},function(e,t){"use strict";function n(e){r[e]||(r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r={};e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),u=n(18),l=r(u),c=n(21),f=r(c),p=n(25),d=r(p),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"tokenize",value:function(){this.tokens=(0,l["default"])(this.input,{ignoreErrors:!0})}},{key:"comment",value:function(e){var t=new f["default"];this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2);if("*/"===n.slice(-2)&&(n=n.slice(0,-2)),/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}},{key:"unclosedBracket",value:function(){}},{key:"unknownWord",value:function(e){var t=this.tokens.slice(e,this.pos+1);this.spaces+=t.map(function(e){return e[1]}).join("")}},{key:"unexpectedClose",value:function(){this.current.raws.after+="}"}},{key:"doubleColon",value:function(){}},{key:"unnamedAtrule",value:function(e){e.name=""}},{key:"precheckMissedSemicolon",value:function(e){var t=this.colon(e);if(t!==!1){var n=void 0;for(n=t-1;n>=0&&"word"!==e[n][0];n--);for(n-=1;n>=0;n--)if("space"!==e[n][0]){n+=1;break}var r=e.splice(n,e.length-n);this.decl(r)}}},{key:"checkMissedSemicolon",value:function(){}},{key:"endFile",value:function(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after=""}}]),t}(d["default"]);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),u=n(19),l=r(u),c=n(22),f=r(c),p=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="comment",n}return a(t,e),s(t,[{key:"left",get:function(){return(0,l["default"])("Comment#left was deprecated. Use Comment#raws.left"),this.raws.left},set:function(e){(0,l["default"])("Comment#left was deprecated. Use Comment#raws.left"),this.raws.left=e}},{key:"right",get:function(){return(0,l["default"])("Comment#right was deprecated. Use Comment#raws.right"),this.raws.right},set:function(e){(0,l["default"])("Comment#right was deprecated. Use Comment#raws.right"),this.raws.right=e}}]),t}(f["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}}(),a="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=n(15),u=r(s),l=n(23),c=r(l),f=n(24),p=r(f),d=n(19),h=r(d),y=function m(e,t){var n=new e.constructor;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i="undefined"==typeof o?"undefined":a(o);"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:o instanceof Array?n[r]=o.map(function(e){return m(e,n)}):"before"!==r&&"after"!==r&&"between"!==r&&"semicolon"!==r&&("object"===i&&null!==o&&(o=m(o)),n[r]=o)}return n},v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.raws={};for(var n in t)this[n]=t[n]}return i(e,[{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new u["default"](e)}},{key:"warn",value:function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p["default"];e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=y(this);for(var n in e)t[n]=e[n];return t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"replaceWith",value:function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;this.parent.insertBefore(this,u)}}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}this.remove()}return this}},{key:"moveTo",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}},{key:"moveBefore",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}},{key:"moveAfter",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}},{key:"next",value:function(){var e=this.parent.index(this);return this.parent.nodes[e+1]}},{key:"prev",value:function(){var e=this.parent.index(this);return this.parent.nodes[e-1]}},{key:"toJSON",value:function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map(function(e){return"object"===("undefined"==typeof e?"undefined":a(e))&&e.toJSON?e.toJSON():e}):"object"===("undefined"==typeof n?"undefined":a(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e}},{key:"raw",value:function(e,t){var n=new c["default"];return n.raw(this,e,t)}},{key:"root",value:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"positionInside",value:function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}}},{key:"positionBy",value:function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}},{key:"removeSelf",value:function(){return(0,h["default"])("Node#removeSelf is deprecated. Use Node#remove."),this.remove()}},{key:"replace",value:function(e){return(0,h["default"])("Node#replace is deprecated. Use Node#replaceWith"),this.replaceWith(e)}},{key:"style",value:function(e,t){return(0,h["default"])("Node#style() is deprecated. Use Node#raw()"),this.raw(e,t)}},{key:"cleanStyles",value:function(e){return(0,h["default"])("Node#cleanStyles() is deprecated. Use Node#cleanRaws()"),this.cleanRaws(e)}},{key:"before",get:function(){return(0,h["default"])("Node#before is deprecated. Use Node#raws.before"),this.raws.before},set:function(e){(0,h["default"])("Node#before is deprecated. Use Node#raws.before"),this.raws.before=e}},{key:"between",get:function(){return(0,h["default"])("Node#between is deprecated. Use Node#raws.between"),this.raws.between},set:function(e){(0,h["default"])("Node#between is deprecated. Use Node#raws.between"),this.raws.between=e}}]),e}();t["default"]=v,e.exports=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")}function r(e){return e[0].toUpperCase()+e.slice(1)}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}}(),i={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "},a=function(){function e(t){n(this,e),this.builder=t}return o(e,[{key:"stringify",value:function(e,t){this[e.type](e,t)}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector"))}},{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if("undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"raw",value:function(e,t,n){var o=void 0;if(n||(n=t),t&&(o=e.raws[t],"undefined"!=typeof o))return o;var a=e.parent;if("before"===n&&(!a||"root"===a.type&&a.first===e))return"";if(!a)return i[n];var s=e.root();if(s.rawCache||(s.rawCache={}),"undefined"!=typeof s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var u="raw"+r(n);return this[u]?o=this[u](s,e):s.walk(function(e){if(o=e.raws[t],"undefined"!=typeof o)return!1}),"undefined"==typeof o&&(o=i[n]),s.rawCache[n]=o,o}},{key:"rawSemicolon",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!=typeof t))return!1}),t}},{key:"rawEmptyBody",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!=typeof t))return!1}),t}},{key:"rawIndent",value:function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&"undefined"!=typeof n.raws.before){var o=n.raws.before.split("\n");return t=o[o.length-1],t=t.replace(/[^\s]/g,""),!1}}),t}},{key:"rawBeforeComment",value:function(e,t){var n=void 0;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return n=e.raws.before,n.indexOf("\n")!==-1&&(n=n.replace(/[^\n]+$/,"")),!1}),"undefined"==typeof n&&(n=this.raw(t,null,"beforeDecl")),n}},{key:"rawBeforeDecl",value:function(e,t){var n=void 0;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return n=e.raws.before,n.indexOf("\n")!==-1&&(n=n.replace(/[^\n]+$/,"")),!1}),"undefined"==typeof n&&(n=this.raw(t,null,"beforeRule")),n}},{key:"rawBeforeRule",value:function(e){var t=void 0;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&"undefined"!=typeof n.raws.before)return t=n.raws.before,t.indexOf("\n")!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t}},{key:"rawBeforeClose",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!=typeof e.raws.after)return t=e.raws.after,t.indexOf("\n")!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t}},{key:"rawBeforeOpen",value:function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!=typeof t))return!1}),t}},{key:"rawColon",value:function(e){var t=void 0;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"beforeAfter",value:function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.indexOf("\n")!==-1){var i=this.raw(e,null,"indent");if(i.length)for(var a=0;a<o;a++)n+=i}return n}},{key:"rawValue",value:function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}]),e}();t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=new a["default"](t);n.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(23),a=r(i);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}}(),a=n(26),s=r(a),u=n(18),l=r(u),c=n(21),f=r(c),p=n(27),d=r(p),h=n(32),y=r(h),v=n(30),m=r(v),b=function(){function e(t){o(this,e),this.input=t,this.pos=0,this.root=new y["default"],this.current=this.root,this.spaces="",this.semicolon=!1,this.root.source={input:t,start:{line:1,column:1}}}return i(e,[{key:"tokenize",value:function(){this.tokens=(0,l["default"])(this.input)}},{key:"loop",value:function(){for(var e=void 0;this.pos<this.tokens.length;){switch(e=this.tokens[this.pos],e[0]){case"space":case";":this.spaces+=e[1];break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other()}this.pos+=1}this.endFile()}},{key:"comment",value:function(e){var t=new f["default"];this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}},{key:"emptyRule",value:function(e){var t=new m["default"];this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t}},{key:"other",value:function(){for(var e=void 0,t=!1,n=null,r=!1,o=null,i=[],a=this.pos;this.pos<this.tokens.length;){if(e=this.tokens[this.pos],n=e[0],"("===n||"["===n)o||(o=e),i.push("("===n?")":"]");else if(0===i.length){if(";"===n){if(r)return void this.decl(this.tokens.slice(a,this.pos+1));break}if("{"===n)return void this.rule(this.tokens.slice(a,this.pos+1));if("}"===n){this.pos-=1,t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));this.pos+=1}if(this.pos===this.tokens.length&&(this.pos-=1,t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;this.pos>a&&(e=this.tokens[this.pos][0],"space"===e||"comment"===e);)this.pos-=1;return void this.decl(this.tokens.slice(a,this.pos+1))}this.unknownWord(a)}},{key:"rule",value:function(e){e.pop();var t=new m["default"];this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"decl",value:function(e){var t=new s["default"];this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var r=e[0][0];if(":"===r||"space"===r||"comment"===r)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(o=e.shift(),":"===o[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesFromStart(e),this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){if(o=e[i],"!important"===o[1]){t.important=!0;var a=this.stringFrom(e,i);a=this.spacesFromEnd(e)+a," !important"!==a&&(t.raws.important=a);break}if("important"===o[1]){for(var u=e.slice(0),l="",c=i;c>0;c--){var f=u[c][0];if(0===l.trim().indexOf("!")&&"space"!==f)break;l=u.pop()[1]+l}0===l.trim().indexOf("!")&&(t.important=!0,t.raws.important=l,e=u)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),t.value.indexOf(":")!==-1&&this.checkMissedSemicolon(e)}},{key:"atrule",value:function(e){var t=new d["default"];t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);var n=!1,r=!1,o=[];for(this.pos+=1;this.pos<this.tokens.length;){if(e=this.tokens[this.pos],";"===e[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){r=!0;break}if("}"===e[0]){this.end(e);break}o.push(e),this.pos+=1}this.pos===this.tokens.length&&(n=!0),t.raws.between=this.spacesFromEnd(o),o.length?(t.raws.afterName=this.spacesFromStart(o),this.raw(t,"params",o),n&&(e=o[o.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),r&&(t.nodes=[],this.current=t)}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}},{key:"init",value:function(e,t,n){this.current.push(e),e.source={start:{ line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"raw",value:function t(e,n,r){for(var o=void 0,i=void 0,a=r.length,s="",u=!0,l=0;l<a;l+=1)o=r[l],i=o[0],"comment"===i||"space"===i&&l===a-1?u=!1:s+=o[1];if(!u){var t=r.reduce(function(e,t){return e+t[1]},"");e.raws[n]={value:s,raw:t}}e[n]=s}},{key:"spacesFromEnd",value:function(e){for(var t=void 0,n="";e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesFromStart",value:function(e){for(var t=void 0,n="";e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"colon",value:function(e){for(var t=0,n=void 0,r=void 0,o=void 0,i=0;i<e.length;i++){if(n=e[i],r=n[0],"("===r)t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(o){if("word"===o[0]&&"progid"===o[1])continue;return i}this.doubleColon(n)}o=n}return!1}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",e[2],e[3])}},{key:"unknownWord",value:function(e){var t=this.tokens[e];throw this.input.error("Unknown word",t[2],t[3])}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",e[2],e[3])}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",e[2],e[3])}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",t[2],t[3])}},{key:"precheckMissedSemicolon",value:function(e){}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r=void 0,o=t-1;o>=0&&(r=e[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon",r[2],r[3])}}}]),e}();t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),u=n(19),l=r(u),c=n(22),f=r(c),p=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="decl",n}return a(t,e),s(t,[{key:"_value",get:function(){return(0,l["default"])("Node#_value was deprecated. Use Node#raws.value"),this.raws.value},set:function(e){(0,l["default"])("Node#_value was deprecated. Use Node#raws.value"),this.raws.value=e}},{key:"_important",get:function(){return(0,l["default"])("Node#_important was deprecated. Use Node#raws.important"),this.raws.important},set:function(e){(0,l["default"])("Node#_important was deprecated. Use Node#raws.important"),this.raws.important=e}}]),t}(f["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),u=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},l=n(28),c=r(l),f=n(19),p=r(f),d=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="atrule",n}return a(t,e),s(t,[{key:"append",value:function(){var e;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"append",this)).call.apply(e,[this].concat(r))}},{key:"prepend",value:function(){var e;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"prepend",this)).call.apply(e,[this].concat(r))}},{key:"afterName",get:function(){return(0,p["default"])("AtRule#afterName was deprecated. Use AtRule#raws.afterName"),this.raws.afterName},set:function(e){(0,p["default"])("AtRule#afterName was deprecated. Use AtRule#raws.afterName"),this.raws.afterName=e}},{key:"_params",get:function(){return(0,p["default"])("AtRule#_params was deprecated. Use AtRule#raws.params"),this.raws.params},set:function(e){(0,p["default"])("AtRule#_params was deprecated. Use AtRule#raws.params"),this.raws.params=e}}]),t}(c["default"]);t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.map(function(e){return e.nodes&&(e.nodes=s(e.nodes)),delete e.source,e})}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}}(),l=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(26),f=r(c),p=n(19),d=r(p),h=n(21),y=r(h),v=n(22),m=r(v),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"push",value:function(e){return e.parent=this,this.nodes.push(e),this}},{key:"each",value:function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],r=e(this.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}}},{key:"walk",value:function(e){return this.each(function(t,n){var r=e(t,n);return r!==!1&&t.walk&&(r=t.walk(e)),r})}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))}},{key:"walkComments",value:function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})}},{key:"append",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,l=this.normalize(u,this.last),c=!0,f=!1,p=void 0;try{for(var d,h=l[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var y=d.value;this.nodes.push(y)}}catch(v){f=!0,p=v}finally{try{!c&&h["return"]&&h["return"]()}finally{if(f)throw p}}}}catch(v){o=!0,i=v}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return this}},{key:"prepend",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();var r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,l=this.normalize(u,this.first,"prepend").reverse(),c=!0,f=!1,p=void 0;try{for(var d,h=l[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var y=d.value;this.nodes.unshift(y)}}catch(v){f=!0,p=v}finally{try{!c&&h["return"]&&h["return"]()}finally{if(f)throw p}}for(var m in this.indexes)this.indexes[m]=this.indexes[m]+l.length}}catch(v){o=!0,i=v}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return this}},{key:"cleanRaws",value:function(e){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"cleanRaws",this).call(this,e),this.nodes){var n=!0,r=!1,o=void 0;try{for(var i,a=this.nodes[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;s.cleanRaws(e)}}catch(u){r=!0,o=u}finally{try{!n&&a["return"]&&a["return"]()}finally{if(r)throw o}}}}},{key:"insertBefore",value:function(e,t){e=this.index(e);var n=0===e&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value;this.nodes.splice(e,0,l)}}catch(c){i=!0,a=c}finally{try{!o&&u["return"]&&u["return"]()}finally{if(i)throw a}}var f=void 0;for(var p in this.indexes)f=this.indexes[p],e<=f&&(this.indexes[p]=f+r.length);return this}},{key:"insertAfter",value:function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;this.nodes.splice(e+1,0,u)}}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}var c=void 0;for(var f in this.indexes)c=this.indexes[f],e<c&&(this.indexes[f]=c+n.length);return this}},{key:"remove",value:function(e){return"undefined"!=typeof e?((0,d["default"])("Container#remove is deprecated. Use Container#removeChild"),this.removeChild(e)):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this}},{key:"removeChild",value:function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this}},{key:"removeAll",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=this.nodes[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;i.parent=void 0}}catch(a){t=!0,n=a}finally{try{!e&&o["return"]&&o["return"]()}finally{if(t)throw n}}return this.nodes=[],this}},{key:"replaceValues",value:function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&t.props.indexOf(r.prop)===-1||t.fast&&r.value.indexOf(t.fast)===-1||(r.value=r.value.replace(e,n))}),this}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"index",value:function(e){return"number"==typeof e?e:this.nodes.indexOf(e)}},{key:"normalize",value:function(e,t){var r=this;if("string"==typeof e){var o=n(29);e=s(o(e).nodes)}else if(!Array.isArray(e))if("root"===e.type)e=e.nodes;else if(e.type)e=[e];else if(e.prop){if("undefined"==typeof e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new f["default"](e)]}else if(e.selector){var i=n(30);e=[new i(e)]}else if(e.name){var a=n(27);e=[new a(e)]}else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new y["default"](e)]}var u=e.map(function(e){return"undefined"==typeof e.raws&&(e=r.rebuild(e)),e.parent&&(e=e.clone()),"undefined"==typeof e.raws.before&&t&&"undefined"!=typeof t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e});return u}},{key:"rebuild",value:function(e,t){var r=this,o=void 0;if("root"===e.type){var i=n(32);o=new i}else if("atrule"===e.type){var a=n(27);o=new a}else if("rule"===e.type){var s=n(30);o=new s}else"decl"===e.type?o=new f["default"]:"comment"===e.type&&(o=new y["default"]);for(var u in e)"nodes"===u?o.nodes=e.nodes.map(function(e){return r.rebuild(e,o)}):"parent"===u&&t?o.parent=t:e.hasOwnProperty(u)&&(o[u]=e[u]);return o}},{key:"eachInside",value:function(e){return(0,d["default"])("Container#eachInside is deprecated. Use Container#walk instead."),this.walk(e)}},{key:"eachDecl",value:function(e,t){return(0,d["default"])("Container#eachDecl is deprecated. Use Container#walkDecls instead."),this.walkDecls(e,t)}},{key:"eachRule",value:function(e,t){return(0,d["default"])("Container#eachRule is deprecated. Use Container#walkRules instead."),this.walkRules(e,t)}},{key:"eachAtRule",value:function(e,t){return(0,d["default"])("Container#eachAtRule is deprecated. Use Container#walkAtRules instead."),this.walkAtRules(e,t)}},{key:"eachComment",value:function(e){return(0,d["default"])("Container#eachComment is deprecated. Use Container#walkComments instead."),this.walkComments(e)}},{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}},{key:"semicolon",get:function(){return(0,d["default"])("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon},set:function(e){(0,d["default"])("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon=e}},{key:"after",get:function(){return(0,d["default"])("Node#after is deprecated. Use Node#raws.after"),this.raws.after},set:function(e){(0,d["default"])("Node#after is deprecated. Use Node#raws.after"),this.raws.after=e}}]),t}(m["default"]);t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new u["default"](e,t),r=new a["default"](n);try{r.tokenize(),r.loop()}catch(o){throw"CssSyntaxError"===o.name&&t&&t.from&&(/\.scss$/i.test(t.from)?o.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.less$/i.test(t.from)&&(o.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),o}return r.root}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(25),a=r(i),s=n(14),u=r(s);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var 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}}(),u=n(28),l=r(u),c=n(19),f=r(c),p=n(31),d=r(p),h=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="rule",n.nodes||(n.nodes=[]),n}return a(t,e),s(t,[{key:"selectors",get:function(){return d["default"].comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}},{key:"_selector",get:function(){return(0,f["default"])("Rule#_selector is deprecated. Use Rule#raws.selector"),this.raws.selector},set:function(e){(0,f["default"])("Rule#_selector is deprecated. Use Rule#raws.selector"),this.raws.selector=e}}]),t}(l["default"]);t["default"]=h,e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={split:function r(e,t,n){for(var o=[],i="",r=!1,a=0,s=!1,u=!1,l=0;l<e.length;l++){var c=e[l];s?u?u=!1:"\\"===c?u=!0:c===s&&(s=!1):'"'===c||"'"===c?s=c:"("===c?a+=1:")"===c?a>0&&(a-=1):0===a&&t.indexOf(c)!==-1&&(r=!0),r?(""!==i&&o.push(i.trim()),i="",r=!1):i+=c}return(n||""!==i)&&o.push(i.trim()),o},space:function(e){var