@modern-js/module-tools 2.33.1 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/modern.js +1 -1
- package/compiled/postcss-custom-properties/index.js +1 -1
- package/compiled/postcss-flexbugs-fixes/index.js +1 -1
- package/compiled/postcss-font-variant/index.js +1 -1
- package/compiled/postcss-initial/index.js +1 -1
- package/compiled/postcss-media-minmax/index.js +1 -1
- package/compiled/postcss-nesting/index.js +1 -1
- package/compiled/postcss-page-break/index.js +1 -1
- package/compiled/rollup-plugin-dts/index.js +1 -1
- package/dist/builder/build.js +1 -1
- package/dist/builder/build.js.map +1 -1
- package/dist/builder/dts/tsc.d.ts +1 -2
- package/dist/builder/dts/tsc.js +5 -21
- package/dist/builder/dts/tsc.js.map +1 -1
- package/dist/plugins.js +2 -0
- package/dist/plugins.js.map +1 -1
- package/dist/types/dts.d.ts +3 -0
- package/dist/utils/dts.d.ts +7 -3
- package/dist/utils/dts.js +37 -12
- package/dist/utils/dts.js.map +1 -1
- package/dist/utils/tspathsTransform.js.map +1 -1
- package/package.json +22 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(()=>{var t={811:t=>{"use strict";
|
|
2
|
-
/*! https://mths.be/cssesc v3.0.0 by @mathias */var s={};var p=s.hasOwnProperty;var v=function merge(t,s){if(!t){return s}var v={};for(var _ in s){v[_]=p.call(t,_)?t[_]:s[_]}return v};var _=/[ -,\.\/:-@\[-\^`\{-~]/;var T=/[ -,\.\/:-@\[\]\^`\{-~]/;var O=/['"\\]/;var P=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var k=function cssesc(t,s){s=v(s,cssesc.options);if(s.quotes!="single"&&s.quotes!="double"){s.quotes="single"}var p=s.quotes=="double"?'"':"'";var O=s.isIdentifier;var k=t.charAt(0);var E="";var D=0;var I=t.length;while(D<I){var q=t.charAt(D++);var L=q.charCodeAt();var R=void 0;if(L<32||L>126){if(L>=55296&&L<=56319&&D<I){var A=t.charCodeAt(D++);if((A&64512)==56320){L=((L&1023)<<10)+(A&1023)+65536}else{D--}}R="\\"+L.toString(16).toUpperCase()+" "}else{if(s.escapeEverything){if(_.test(q)){R="\\"+q}else{R="\\"+L.toString(16).toUpperCase()+" "}}else if(/[\t\n\f\r\x0B]/.test(q)){R="\\"+L.toString(16).toUpperCase()+" "}else if(q=="\\"||!O&&(q=='"'&&p==q||q=="'"&&p==q)||O&&T.test(q)){R="\\"+q}else{R=q}}E+=R}if(O){if(/^-[-\d]/.test(E)){E="\\-"+E.slice(1)}else if(/\d/.test(k)){E="\\3"+k+" "+E.slice(1)}}E=E.replace(P,(function(t,s,p){if(s&&s.length%2){return t}return(s||"")+p}));if(!O&&s.wrap){return p+E+p}return E};k.options={escapeEverything:false,isIdentifier:false,quotes:"single",wrap:false};k.version="3.0.0";t.exports=k},789:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(886));var _=_interopRequireWildcard(p(156));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var T=function parser(t){return new v["default"](t)};Object.assign(T,_);delete T.__esModule;var O=T;s["default"]=O;t.exports=s.default},76:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(461));var _=_interopRequireDefault(p(668));var T=_interopRequireDefault(p(940));var O=_interopRequireDefault(p(752));var P=_interopRequireDefault(p(216));var k=_interopRequireDefault(p(163));var E=_interopRequireDefault(p(97));var D=_interopRequireDefault(p(18));var I=_interopRequireWildcard(p(928));var q=_interopRequireDefault(p(246));var L=_interopRequireDefault(p(119));var R=_interopRequireDefault(p(462));var A=_interopRequireDefault(p(241));var x=_interopRequireWildcard(p(795));var C=_interopRequireWildcard(p(874));var N=_interopRequireWildcard(p(300));var M=p(123);var j,F;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}var U=(j={},j[C.space]=true,j[C.cr]=true,j[C.feed]=true,j[C.newline]=true,j[C.tab]=true,j);var Y=Object.assign({},U,(F={},F[C.comment]=true,F));function tokenStart(t){return{line:t[x.FIELDS.START_LINE],column:t[x.FIELDS.START_COL]}}function tokenEnd(t){return{line:t[x.FIELDS.END_LINE],column:t[x.FIELDS.END_COL]}}function getSource(t,s,p,v){return{start:{line:t,column:s},end:{line:p,column:v}}}function getTokenSource(t){return getSource(t[x.FIELDS.START_LINE],t[x.FIELDS.START_COL],t[x.FIELDS.END_LINE],t[x.FIELDS.END_COL])}function getTokenSourceSpan(t,s){if(!t){return undefined}return getSource(t[x.FIELDS.START_LINE],t[x.FIELDS.START_COL],s[x.FIELDS.END_LINE],s[x.FIELDS.END_COL])}function unescapeProp(t,s){var p=t[s];if(typeof p!=="string"){return}if(p.indexOf("\\")!==-1){(0,M.ensureObject)(t,"raws");t[s]=(0,M.unesc)(p);if(t.raws[s]===undefined){t.raws[s]=p}}return t}function indexesOf(t,s){var p=-1;var v=[];while((p=t.indexOf(s,p+1))!==-1){v.push(p)}return v}function uniqs(){var t=Array.prototype.concat.apply([],arguments);return t.filter((function(s,p){return p===t.indexOf(s)}))}var B=function(){function Parser(t,s){if(s===void 0){s={}}this.rule=t;this.options=Object.assign({lossy:false,safe:false},s);this.position=0;this.css=typeof this.rule==="string"?this.rule:this.rule.selector;this.tokens=(0,x["default"])({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var p=getTokenSourceSpan(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new v["default"]({source:p});this.root.errorGenerator=this._errorGenerator();var T=new _["default"]({source:{start:{line:1,column:1}}});this.root.append(T);this.current=T;this.loop()}var t=Parser.prototype;t._errorGenerator=function _errorGenerator(){var t=this;return function(s,p){if(typeof t.rule==="string"){return new Error(s)}return t.rule.error(s,p)}};t.attribute=function attribute(){var t=[];var s=this.currToken;this.position++;while(this.position<this.tokens.length&&this.currToken[x.FIELDS.TYPE]!==C.closeSquare){t.push(this.currToken);this.position++}if(this.currToken[x.FIELDS.TYPE]!==C.closeSquare){return this.expected("closing square bracket",this.currToken[x.FIELDS.START_POS])}var p=t.length;var v={source:getSource(s[1],s[2],this.currToken[3],this.currToken[4]),sourceIndex:s[x.FIELDS.START_POS]};if(p===1&&!~[C.word].indexOf(t[0][x.FIELDS.TYPE])){return this.expected("attribute",t[0][x.FIELDS.START_POS])}var _=0;var T="";var O="";var P=null;var k=false;while(_<p){var E=t[_];var D=this.content(E);var q=t[_+1];switch(E[x.FIELDS.TYPE]){case C.space:k=true;if(this.options.lossy){break}if(P){(0,M.ensureObject)(v,"spaces",P);var L=v.spaces[P].after||"";v.spaces[P].after=L+D;var R=(0,M.getProp)(v,"raws","spaces",P,"after")||null;if(R){v.raws.spaces[P].after=R+D}}else{T=T+D;O=O+D}break;case C.asterisk:if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}else if((!v.namespace||P==="namespace"&&!k)&&q){if(T){(0,M.ensureObject)(v,"spaces","attribute");v.spaces.attribute.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","attribute");v.raws.spaces.attribute.before=T;O=""}v.namespace=(v.namespace||"")+D;var A=(0,M.getProp)(v,"raws","namespace")||null;if(A){v.raws.namespace+=D}P="namespace"}k=false;break;case C.dollar:if(P==="value"){var N=(0,M.getProp)(v,"raws","value");v.value+="$";if(N){v.raws.value=N+"$"}break}case C.caret:if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}k=false;break;case C.combinator:if(D==="~"&&q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}if(D!=="|"){k=false;break}if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}else if(!v.namespace&&!v.attribute){v.namespace=true}k=false;break;case C.word:if(q&&this.content(q)==="|"&&t[_+2]&&t[_+2][x.FIELDS.TYPE]!==C.equals&&!v.operator&&!v.namespace){v.namespace=D;P="namespace"}else if(!v.attribute||P==="attribute"&&!k){if(T){(0,M.ensureObject)(v,"spaces","attribute");v.spaces.attribute.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","attribute");v.raws.spaces.attribute.before=O;O=""}v.attribute=(v.attribute||"")+D;var j=(0,M.getProp)(v,"raws","attribute")||null;if(j){v.raws.attribute+=D}P="attribute"}else if(!v.value&&v.value!==""||P==="value"&&!k){var F=(0,M.unesc)(D);var U=(0,M.getProp)(v,"raws","value")||"";var Y=v.value||"";v.value=Y+F;v.quoteMark=null;if(F!==D||U){(0,M.ensureObject)(v,"raws");v.raws.value=(U||Y)+D}P="value"}else{var B=D==="i"||D==="I";if((v.value||v.value==="")&&(v.quoteMark||k)){v.insensitive=B;if(!B||D==="I"){(0,M.ensureObject)(v,"raws");v.raws.insensitiveFlag=D}P="insensitive";if(T){(0,M.ensureObject)(v,"spaces","insensitive");v.spaces.insensitive.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","insensitive");v.raws.spaces.insensitive.before=O;O=""}}else if(v.value||v.value===""){P="value";v.value+=D;if(v.raws.value){v.raws.value+=D}}}k=false;break;case C.str:if(!v.attribute||!v.operator){return this.error("Expected an attribute followed by an operator preceding the string.",{index:E[x.FIELDS.START_POS]})}var Q=(0,I.unescapeValue)(D),G=Q.unescaped,V=Q.quoteMark;v.value=G;v.quoteMark=V;P="value";(0,M.ensureObject)(v,"raws");v.raws.value=D;k=false;break;case C.equals:if(!v.attribute){return this.expected("attribute",E[x.FIELDS.START_POS],D)}if(v.value){return this.error('Unexpected "=" found; an operator was already defined.',{index:E[x.FIELDS.START_POS]})}v.operator=v.operator?v.operator+D:D;P="operator";k=false;break;case C.comment:if(P){if(k||q&&q[x.FIELDS.TYPE]===C.space||P==="insensitive"){var $=(0,M.getProp)(v,"spaces",P,"after")||"";var H=(0,M.getProp)(v,"raws","spaces",P,"after")||$;(0,M.ensureObject)(v,"raws","spaces",P);v.raws.spaces[P].after=H+D}else{var z=v[P]||"";var J=(0,M.getProp)(v,"raws",P)||z;(0,M.ensureObject)(v,"raws");v.raws[P]=J+D}}else{O=O+D}break;default:return this.error('Unexpected "'+D+'" found.',{index:E[x.FIELDS.START_POS]})}_++}unescapeProp(v,"attribute");unescapeProp(v,"namespace");this.newNode(new I["default"](v));this.position++};t.parseWhitespaceEquivalentTokens=function parseWhitespaceEquivalentTokens(t){if(t<0){t=this.tokens.length}var s=this.position;var p=[];var v="";var _=undefined;do{if(U[this.currToken[x.FIELDS.TYPE]]){if(!this.options.lossy){v+=this.content()}}else if(this.currToken[x.FIELDS.TYPE]===C.comment){var T={};if(v){T.before=v;v=""}_=new O["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS],spaces:T});p.push(_)}}while(++this.position<t);if(v){if(_){_.spaces.after=v}else if(!this.options.lossy){var P=this.tokens[s];var k=this.tokens[this.position-1];p.push(new E["default"]({value:"",source:getSource(P[x.FIELDS.START_LINE],P[x.FIELDS.START_COL],k[x.FIELDS.END_LINE],k[x.FIELDS.END_COL]),sourceIndex:P[x.FIELDS.START_POS],spaces:{before:v,after:""}}))}}return p};t.convertWhitespaceNodesToSpace=function convertWhitespaceNodesToSpace(t,s){var p=this;if(s===void 0){s=false}var v="";var _="";t.forEach((function(t){var T=p.lossySpace(t.spaces.before,s);var O=p.lossySpace(t.rawSpaceBefore,s);v+=T+p.lossySpace(t.spaces.after,s&&T.length===0);_+=T+t.value+p.lossySpace(t.rawSpaceAfter,s&&O.length===0)}));if(_===v){_=undefined}var T={space:v,rawSpace:_};return T};t.isNamedCombinator=function isNamedCombinator(t){if(t===void 0){t=this.position}return this.tokens[t+0]&&this.tokens[t+0][x.FIELDS.TYPE]===C.slash&&this.tokens[t+1]&&this.tokens[t+1][x.FIELDS.TYPE]===C.word&&this.tokens[t+2]&&this.tokens[t+2][x.FIELDS.TYPE]===C.slash};t.namedCombinator=function namedCombinator(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]);var s=(0,M.unesc)(t).toLowerCase();var p={};if(s!==t){p.value="/"+t+"/"}var v=new L["default"]({value:"/"+s+"/",source:getSource(this.currToken[x.FIELDS.START_LINE],this.currToken[x.FIELDS.START_COL],this.tokens[this.position+2][x.FIELDS.END_LINE],this.tokens[this.position+2][x.FIELDS.END_COL]),sourceIndex:this.currToken[x.FIELDS.START_POS],raws:p});this.position=this.position+3;return v}else{this.unexpected()}};t.combinator=function combinator(){var t=this;if(this.content()==="|"){return this.namespace()}var s=this.locateNextMeaningfulToken(this.position);if(s<0||this.tokens[s][x.FIELDS.TYPE]===C.comma){var p=this.parseWhitespaceEquivalentTokens(s);if(p.length>0){var v=this.current.last;if(v){var _=this.convertWhitespaceNodesToSpace(p),T=_.space,O=_.rawSpace;if(O!==undefined){v.rawSpaceAfter+=O}v.spaces.after+=T}else{p.forEach((function(s){return t.newNode(s)}))}}return}var P=this.currToken;var k=undefined;if(s>this.position){k=this.parseWhitespaceEquivalentTokens(s)}var E;if(this.isNamedCombinator()){E=this.namedCombinator()}else if(this.currToken[x.FIELDS.TYPE]===C.combinator){E=new L["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS]});this.position++}else if(U[this.currToken[x.FIELDS.TYPE]]){}else if(!k){this.unexpected()}if(E){if(k){var D=this.convertWhitespaceNodesToSpace(k),I=D.space,q=D.rawSpace;E.spaces.before=I;E.rawSpaceBefore=q}}else{var R=this.convertWhitespaceNodesToSpace(k,true),A=R.space,N=R.rawSpace;if(!N){N=A}var M={};var j={spaces:{}};if(A.endsWith(" ")&&N.endsWith(" ")){M.before=A.slice(0,A.length-1);j.spaces.before=N.slice(0,N.length-1)}else if(A.startsWith(" ")&&N.startsWith(" ")){M.after=A.slice(1);j.spaces.after=N.slice(1)}else{j.value=N}E=new L["default"]({value:" ",source:getTokenSourceSpan(P,this.tokens[this.position-1]),sourceIndex:P[x.FIELDS.START_POS],spaces:M,raws:j})}if(this.currToken&&this.currToken[x.FIELDS.TYPE]===C.space){E.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(E)};t.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var t=new _["default"]({source:{start:tokenStart(this.tokens[this.position+1])}});this.current.parent.append(t);this.current=t;this.position++};t.comment=function comment(){var t=this.currToken;this.newNode(new O["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[x.FIELDS.START_POS]}));this.position++};t.error=function error(t,s){throw this.root.error(t,s)};t.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[x.FIELDS.START_POS]})};t.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[x.FIELDS.START_POS])};t.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[x.FIELDS.START_POS])};t.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[x.FIELDS.START_POS])};t.namespace=function namespace(){var t=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[x.FIELDS.TYPE]===C.word){this.position++;return this.word(t)}else if(this.nextToken[x.FIELDS.TYPE]===C.asterisk){this.position++;return this.universal(t)}};t.nesting=function nesting(){if(this.nextToken){var t=this.content(this.nextToken);if(t==="|"){this.position++;return}}var s=this.currToken;this.newNode(new R["default"]({value:this.content(),source:getTokenSource(s),sourceIndex:s[x.FIELDS.START_POS]}));this.position++};t.parentheses=function parentheses(){var t=this.current.last;var s=1;this.position++;if(t&&t.type===N.PSEUDO){var p=new _["default"]({source:{start:tokenStart(this.tokens[this.position-1])}});var v=this.current;t.append(p);this.current=p;while(this.position<this.tokens.length&&s){if(this.currToken[x.FIELDS.TYPE]===C.openParenthesis){s++}if(this.currToken[x.FIELDS.TYPE]===C.closeParenthesis){s--}if(s){this.parse()}else{this.current.source.end=tokenEnd(this.currToken);this.current.parent.source.end=tokenEnd(this.currToken);this.position++}}this.current=v}else{var T=this.currToken;var O="(";var P;while(this.position<this.tokens.length&&s){if(this.currToken[x.FIELDS.TYPE]===C.openParenthesis){s++}if(this.currToken[x.FIELDS.TYPE]===C.closeParenthesis){s--}P=this.currToken;O+=this.parseParenthesisToken(this.currToken);this.position++}if(t){t.appendToPropertyAndEscape("value",O,O)}else{this.newNode(new E["default"]({value:O,source:getSource(T[x.FIELDS.START_LINE],T[x.FIELDS.START_COL],P[x.FIELDS.END_LINE],P[x.FIELDS.END_COL]),sourceIndex:T[x.FIELDS.START_POS]}))}}if(s){return this.expected("closing parenthesis",this.currToken[x.FIELDS.START_POS])}};t.pseudo=function pseudo(){var t=this;var s="";var p=this.currToken;while(this.currToken&&this.currToken[x.FIELDS.TYPE]===C.colon){s+=this.content();this.position++}if(!this.currToken){return this.expected(["pseudo-class","pseudo-element"],this.position-1)}if(this.currToken[x.FIELDS.TYPE]===C.word){this.splitWord(false,(function(v,_){s+=v;t.newNode(new D["default"]({value:s,source:getTokenSourceSpan(p,t.currToken),sourceIndex:p[x.FIELDS.START_POS]}));if(_>1&&t.nextToken&&t.nextToken[x.FIELDS.TYPE]===C.openParenthesis){t.error("Misplaced parenthesis.",{index:t.nextToken[x.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[x.FIELDS.START_POS])}};t.space=function space(){var t=this.content();if(this.position===0||this.prevToken[x.FIELDS.TYPE]===C.comma||this.prevToken[x.FIELDS.TYPE]===C.openParenthesis||this.current.nodes.every((function(t){return t.type==="comment"}))){this.spaces=this.optionalSpace(t);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[x.FIELDS.TYPE]===C.comma||this.nextToken[x.FIELDS.TYPE]===C.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(t);this.position++}else{this.combinator()}};t.string=function string(){var t=this.currToken;this.newNode(new E["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[x.FIELDS.START_POS]}));this.position++};t.universal=function universal(t){var s=this.nextToken;if(s&&this.content(s)==="|"){this.position++;return this.namespace()}var p=this.currToken;this.newNode(new q["default"]({value:this.content(),source:getTokenSource(p),sourceIndex:p[x.FIELDS.START_POS]}),t);this.position++};t.splitWord=function splitWord(t,s){var p=this;var v=this.nextToken;var _=this.content();while(v&&~[C.dollar,C.caret,C.equals,C.word].indexOf(v[x.FIELDS.TYPE])){this.position++;var O=this.content();_+=O;if(O.lastIndexOf("\\")===O.length-1){var E=this.nextToken;if(E&&E[x.FIELDS.TYPE]===C.space){_+=this.requiredSpace(this.content(E));this.position++}}v=this.nextToken}var D=indexesOf(_,".").filter((function(t){var s=_[t-1]==="\\";var p=/^\d+\.\d+%$/.test(_);return!s&&!p}));var I=indexesOf(_,"#").filter((function(t){return _[t-1]!=="\\"}));var q=indexesOf(_,"#{");if(q.length){I=I.filter((function(t){return!~q.indexOf(t)}))}var L=(0,A["default"])(uniqs([0].concat(D,I)));L.forEach((function(v,O){var E=L[O+1]||_.length;var q=_.slice(v,E);if(O===0&&s){return s.call(p,q,L.length)}var R;var A=p.currToken;var C=A[x.FIELDS.START_POS]+L[O];var N=getSource(A[1],A[2]+v,A[3],A[2]+(E-1));if(~D.indexOf(v)){var M={value:q.slice(1),source:N,sourceIndex:C};R=new T["default"](unescapeProp(M,"value"))}else if(~I.indexOf(v)){var j={value:q.slice(1),source:N,sourceIndex:C};R=new P["default"](unescapeProp(j,"value"))}else{var F={value:q,source:N,sourceIndex:C};unescapeProp(F,"value");R=new k["default"](F)}p.newNode(R,t);t=null}));this.position++};t.word=function word(t){var s=this.nextToken;if(s&&this.content(s)==="|"){this.position++;return this.namespace()}return this.splitWord(t)};t.loop=function loop(){while(this.position<this.tokens.length){this.parse(true)}this.current._inferEndPosition();return this.root};t.parse=function parse(t){switch(this.currToken[x.FIELDS.TYPE]){case C.space:this.space();break;case C.comment:this.comment();break;case C.openParenthesis:this.parentheses();break;case C.closeParenthesis:if(t){this.missingParenthesis()}break;case C.openSquare:this.attribute();break;case C.dollar:case C.caret:case C.equals:case C.word:this.word();break;case C.colon:this.pseudo();break;case C.comma:this.comma();break;case C.asterisk:this.universal();break;case C.ampersand:this.nesting();break;case C.slash:case C.combinator:this.combinator();break;case C.str:this.string();break;case C.closeSquare:this.missingSquareBracket();case C.semicolon:this.missingBackslash();default:this.unexpected()}};t.expected=function expected(t,s,p){if(Array.isArray(t)){var v=t.pop();t=t.join(", ")+" or "+v}var _=/^[aeiou]/.test(t[0])?"an":"a";if(!p){return this.error("Expected "+_+" "+t+".",{index:s})}return this.error("Expected "+_+" "+t+', found "'+p+'" instead.',{index:s})};t.requiredSpace=function requiredSpace(t){return this.options.lossy?" ":t};t.optionalSpace=function optionalSpace(t){return this.options.lossy?"":t};t.lossySpace=function lossySpace(t,s){if(this.options.lossy){return s?" ":""}else{return t}};t.parseParenthesisToken=function parseParenthesisToken(t){var s=this.content(t);if(t[x.FIELDS.TYPE]===C.space){return this.requiredSpace(s)}else{return s}};t.newNode=function newNode(t,s){if(s){if(/^ +$/.test(s)){if(!this.options.lossy){this.spaces=(this.spaces||"")+s}s=true}t.namespace=s;unescapeProp(t,"namespace")}if(this.spaces){t.spaces.before=this.spaces;this.spaces=""}return this.current.append(t)};t.content=function content(t){if(t===void 0){t=this.currToken}return this.css.slice(t[x.FIELDS.START_POS],t[x.FIELDS.END_POS])};t.locateNextMeaningfulToken=function locateNextMeaningfulToken(t){if(t===void 0){t=this.position+1}var s=t;while(s<this.tokens.length){if(Y[this.tokens[s][x.FIELDS.TYPE]]){s++;continue}else{return s}}return-1};_createClass(Parser,[{key:"currToken",get:function get(){return this.tokens[this.position]}},{key:"nextToken",get:function get(){return this.tokens[this.position+1]}},{key:"prevToken",get:function get(){return this.tokens[this.position-1]}}]);return Parser}();s["default"]=B;t.exports=s.default},886:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(76));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var _=function(){function Processor(t,s){this.func=t||function noop(){};this.funcRes=null;this.options=s}var t=Processor.prototype;t._shouldUpdateSelector=function _shouldUpdateSelector(t,s){if(s===void 0){s={}}var p=Object.assign({},this.options,s);if(p.updateSelector===false){return false}else{return typeof t!=="string"}};t._isLossy=function _isLossy(t){if(t===void 0){t={}}var s=Object.assign({},this.options,t);if(s.lossless===false){return true}else{return false}};t._root=function _root(t,s){if(s===void 0){s={}}var p=new v["default"](t,this._parseOptions(s));return p.root};t._parseOptions=function _parseOptions(t){return{lossy:this._isLossy(t)}};t._run=function _run(t,s){var p=this;if(s===void 0){s={}}return new Promise((function(v,_){try{var T=p._root(t,s);Promise.resolve(p.func(T)).then((function(v){var _=undefined;if(p._shouldUpdateSelector(t,s)){_=T.toString();t.selector=_}return{transform:v,root:T,string:_}})).then(v,_)}catch(t){_(t);return}}))};t._runSync=function _runSync(t,s){if(s===void 0){s={}}var p=this._root(t,s);var v=this.func(p);if(v&&typeof v.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var _=undefined;if(s.updateSelector&&typeof t!=="string"){_=p.toString();t.selector=_}return{transform:v,root:p,string:_}};t.ast=function ast(t,s){return this._run(t,s).then((function(t){return t.root}))};t.astSync=function astSync(t,s){return this._runSync(t,s).root};t.transform=function transform(t,s){return this._run(t,s).then((function(t){return t.transform}))};t.transformSync=function transformSync(t,s){return this._runSync(t,s).transform};t.process=function process(t,s){return this._run(t,s).then((function(t){return t.string||t.root.toString()}))};t.processSync=function processSync(t,s){var p=this._runSync(t,s);return p.string||p.root.toString()};return Processor}();s["default"]=_;t.exports=s.default},928:(t,s,p)=>{"use strict";s.__esModule=true;s.unescapeValue=unescapeValue;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=_interopRequireDefault(p(624));var T=_interopRequireDefault(p(427));var O=p(300);var P;function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var k=p(125);var E=/^('|")([^]*)\1$/;var D=k((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. "+"Call attribute.setValue() instead.");var I=k((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");var q=k((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function unescapeValue(t){var s=false;var p=null;var v=t;var T=v.match(E);if(T){p=T[1];v=T[2]}v=(0,_["default"])(v);if(v!==t){s=true}return{deprecatedUsage:s,unescaped:v,quoteMark:p}}function handleDeprecatedContructorOpts(t){if(t.quoteMark!==undefined){return t}if(t.value===undefined){return t}q();var s=unescapeValue(t.value),p=s.quoteMark,v=s.unescaped;if(!t.raws){t.raws={}}if(t.raws.value===undefined){t.raws.value=t.value}t.value=v;t.quoteMark=p;return t}var L=function(t){_inheritsLoose(Attribute,t);function Attribute(s){var p;if(s===void 0){s={}}p=t.call(this,handleDeprecatedContructorOpts(s))||this;p.type=O.ATTRIBUTE;p.raws=p.raws||{};Object.defineProperty(p.raws,"unquoted",{get:k((function(){return p.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:k((function(){return p.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")});p._constructed=true;return p}var s=Attribute.prototype;s.getQuotedValue=function getQuotedValue(t){if(t===void 0){t={}}var s=this._determineQuoteMark(t);var p=R[s];var _=(0,v["default"])(this._value,p);return _};s._determineQuoteMark=function _determineQuoteMark(t){return t.smart?this.smartQuoteMark(t):this.preferredQuoteMark(t)};s.setValue=function setValue(t,s){if(s===void 0){s={}}this._value=t;this._quoteMark=this._determineQuoteMark(s);this._syncRawValue()};s.smartQuoteMark=function smartQuoteMark(t){var s=this.value;var p=s.replace(/[^']/g,"").length;var _=s.replace(/[^"]/g,"").length;if(p+_===0){var T=(0,v["default"])(s,{isIdentifier:true});if(T===s){return Attribute.NO_QUOTE}else{var O=this.preferredQuoteMark(t);if(O===Attribute.NO_QUOTE){var P=this.quoteMark||t.quoteMark||Attribute.DOUBLE_QUOTE;var k=R[P];var E=(0,v["default"])(s,k);if(E.length<T.length){return P}}return O}}else if(_===p){return this.preferredQuoteMark(t)}else if(_<p){return Attribute.DOUBLE_QUOTE}else{return Attribute.SINGLE_QUOTE}};s.preferredQuoteMark=function preferredQuoteMark(t){var s=t.preferCurrentQuoteMark?this.quoteMark:t.quoteMark;if(s===undefined){s=t.preferCurrentQuoteMark?t.quoteMark:this.quoteMark}if(s===undefined){s=Attribute.DOUBLE_QUOTE}return s};s._syncRawValue=function _syncRawValue(){var t=(0,v["default"])(this._value,R[this.quoteMark]);if(t===this._value){if(this.raws){delete this.raws.value}}else{this.raws.value=t}};s._handleEscapes=function _handleEscapes(t,s){if(this._constructed){var p=(0,v["default"])(s,{isIdentifier:true});if(p!==s){this.raws[t]=p}else{delete this.raws[t]}}};s._spacesFor=function _spacesFor(t){var s={before:"",after:""};var p=this.spaces[t]||{};var v=this.raws.spaces&&this.raws.spaces[t]||{};return Object.assign(s,p,v)};s._stringFor=function _stringFor(t,s,p){if(s===void 0){s=t}if(p===void 0){p=defaultAttrConcat}var v=this._spacesFor(s);return p(this.stringifyProperty(t),v)};s.offsetOf=function offsetOf(t){var s=1;var p=this._spacesFor("attribute");s+=p.before.length;if(t==="namespace"||t==="ns"){return this.namespace?s:-1}if(t==="attributeNS"){return s}s+=this.namespaceString.length;if(this.namespace){s+=1}if(t==="attribute"){return s}s+=this.stringifyProperty("attribute").length;s+=p.after.length;var v=this._spacesFor("operator");s+=v.before.length;var _=this.stringifyProperty("operator");if(t==="operator"){return _?s:-1}s+=_.length;s+=v.after.length;var T=this._spacesFor("value");s+=T.before.length;var O=this.stringifyProperty("value");if(t==="value"){return O?s:-1}s+=O.length;s+=T.after.length;var P=this._spacesFor("insensitive");s+=P.before.length;if(t==="insensitive"){return this.insensitive?s:-1}return-1};s.toString=function toString(){var t=this;var s=[this.rawSpaceBefore,"["];s.push(this._stringFor("qualifiedAttribute","attribute"));if(this.operator&&(this.value||this.value==="")){s.push(this._stringFor("operator"));s.push(this._stringFor("value"));s.push(this._stringFor("insensitiveFlag","insensitive",(function(s,p){if(s.length>0&&!t.quoted&&p.before.length===0&&!(t.spaces.value&&t.spaces.value.after)){p.before=" "}return defaultAttrConcat(s,p)})))}s.push("]");s.push(this.rawSpaceAfter);return s.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var t=this.quoteMark;return t==="'"||t==='"'},set:function set(t){I()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(t){if(!this._constructed){this._quoteMark=t;return}if(this._quoteMark!==t){this._quoteMark=t;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(t){if(this._constructed){var s=unescapeValue(t),p=s.deprecatedUsage,v=s.unescaped,_=s.quoteMark;if(p){D()}if(v===this._value&&_===this._quoteMark){return}this._value=v;this._quoteMark=_;this._syncRawValue()}else{this._value=t}}},{key:"attribute",get:function get(){return this._attribute},set:function set(t){this._handleEscapes("attribute",t);this._attribute=t}}]);return Attribute}(T["default"]);s["default"]=L;L.NO_QUOTE=null;L.SINGLE_QUOTE="'";L.DOUBLE_QUOTE='"';var R=(P={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},P[null]={isIdentifier:true},P);function defaultAttrConcat(t,s){return""+s.before+t+s.after}},940:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=p(123);var T=_interopRequireDefault(p(554));var O=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var P=function(t){_inheritsLoose(ClassName,t);function ClassName(s){var p;p=t.call(this,s)||this;p.type=O.CLASS;p._constructed=true;return p}var s=ClassName.prototype;s.valueToString=function valueToString(){return"."+t.prototype.valueToString.call(this)};_createClass(ClassName,[{key:"value",get:function get(){return this._value},set:function set(t){if(this._constructed){var s=(0,v["default"])(t,{isIdentifier:true});if(s!==t){(0,_.ensureObject)(this,"raws");this.raws.value=s}else if(this.raws){delete this.raws.value}}this._value=t}}]);return ClassName}(T["default"]);s["default"]=P;t.exports=s.default},119:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Combinator,t);function Combinator(s){var p;p=t.call(this,s)||this;p.type=_.COMBINATOR;return p}return Combinator}(v["default"]);s["default"]=T;t.exports=s.default},752:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Comment,t);function Comment(s){var p;p=t.call(this,s)||this;p.type=_.COMMENT;return p}return Comment}(v["default"]);s["default"]=T;t.exports=s.default},701:(t,s,p)=>{"use strict";s.__esModule=true;s.universal=s.tag=s.string=s.selector=s.root=s.pseudo=s.nesting=s.id=s.comment=s.combinator=s.className=s.attribute=void 0;var v=_interopRequireDefault(p(928));var _=_interopRequireDefault(p(940));var T=_interopRequireDefault(p(119));var O=_interopRequireDefault(p(752));var P=_interopRequireDefault(p(216));var k=_interopRequireDefault(p(462));var E=_interopRequireDefault(p(18));var D=_interopRequireDefault(p(461));var I=_interopRequireDefault(p(668));var q=_interopRequireDefault(p(97));var L=_interopRequireDefault(p(163));var R=_interopRequireDefault(p(246));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var A=function attribute(t){return new v["default"](t)};s.attribute=A;var x=function className(t){return new _["default"](t)};s.className=x;var C=function combinator(t){return new T["default"](t)};s.combinator=C;var N=function comment(t){return new O["default"](t)};s.comment=N;var M=function id(t){return new P["default"](t)};s.id=M;var j=function nesting(t){return new k["default"](t)};s.nesting=j;var F=function pseudo(t){return new E["default"](t)};s.pseudo=F;var U=function root(t){return new D["default"](t)};s.root=U;var Y=function selector(t){return new I["default"](t)};s.selector=Y;var B=function string(t){return new q["default"](t)};s.string=B;var Q=function tag(t){return new L["default"](t)};s.tag=Q;var G=function universal(t){return new R["default"](t)};s.universal=G},50:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=_interopRequireWildcard(p(300));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _createForOfIteratorHelperLoose(t,s){var p;if(typeof Symbol==="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(p=_unsupportedIterableToArray(t))||s&&t&&typeof t.length==="number"){if(p)t=p;var v=0;return function(){if(v>=t.length)return{done:true};return{done:false,value:t[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}p=t[Symbol.iterator]();return p.next.bind(p)}function _unsupportedIterableToArray(t,s){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,s);var p=Object.prototype.toString.call(t).slice(8,-1);if(p==="Object"&&t.constructor)p=t.constructor.name;if(p==="Map"||p==="Set")return Array.from(t);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return _arrayLikeToArray(t,s)}function _arrayLikeToArray(t,s){if(s==null||s>t.length)s=t.length;for(var p=0,v=new Array(s);p<s;p++){v[p]=t[p]}return v}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Container,t);function Container(s){var p;p=t.call(this,s)||this;if(!p.nodes){p.nodes=[]}return p}var s=Container.prototype;s.append=function append(t){t.parent=this;this.nodes.push(t);return this};s.prepend=function prepend(t){t.parent=this;this.nodes.unshift(t);return this};s.at=function at(t){return this.nodes[t]};s.index=function index(t){if(typeof t==="number"){return t}return this.nodes.indexOf(t)};s.removeChild=function removeChild(t){t=this.index(t);this.at(t).parent=undefined;this.nodes.splice(t,1);var s;for(var p in this.indexes){s=this.indexes[p];if(s>=t){this.indexes[p]=s-1}}return this};s.removeAll=function removeAll(){for(var t=_createForOfIteratorHelperLoose(this.nodes),s;!(s=t()).done;){var p=s.value;p.parent=undefined}this.nodes=[];return this};s.empty=function empty(){return this.removeAll()};s.insertAfter=function insertAfter(t,s){s.parent=this;var p=this.index(t);this.nodes.splice(p+1,0,s);s.parent=this;var v;for(var _ in this.indexes){v=this.indexes[_];if(p<=v){this.indexes[_]=v+1}}return this};s.insertBefore=function insertBefore(t,s){s.parent=this;var p=this.index(t);this.nodes.splice(p,0,s);s.parent=this;var v;for(var _ in this.indexes){v=this.indexes[_];if(v<=p){this.indexes[_]=v+1}}return this};s._findChildAtPosition=function _findChildAtPosition(t,s){var p=undefined;this.each((function(v){if(v.atPosition){var _=v.atPosition(t,s);if(_){p=_;return false}}else if(v.isAtPosition(t,s)){p=v;return false}}));return p};s.atPosition=function atPosition(t,s){if(this.isAtPosition(t,s)){return this._findChildAtPosition(t,s)||this}else{return undefined}};s._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};s.each=function each(t){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var s=this.lastEach;this.indexes[s]=0;if(!this.length){return undefined}var p,v;while(this.indexes[s]<this.length){p=this.indexes[s];v=t(this.at(p),p);if(v===false){break}this.indexes[s]+=1}delete this.indexes[s];if(v===false){return false}};s.walk=function walk(t){return this.each((function(s,p){var v=t(s,p);if(v!==false&&s.length){v=s.walk(t)}if(v===false){return false}}))};s.walkAttributes=function walkAttributes(t){var s=this;return this.walk((function(p){if(p.type===_.ATTRIBUTE){return t.call(s,p)}}))};s.walkClasses=function walkClasses(t){var s=this;return this.walk((function(p){if(p.type===_.CLASS){return t.call(s,p)}}))};s.walkCombinators=function walkCombinators(t){var s=this;return this.walk((function(p){if(p.type===_.COMBINATOR){return t.call(s,p)}}))};s.walkComments=function walkComments(t){var s=this;return this.walk((function(p){if(p.type===_.COMMENT){return t.call(s,p)}}))};s.walkIds=function walkIds(t){var s=this;return this.walk((function(p){if(p.type===_.ID){return t.call(s,p)}}))};s.walkNesting=function walkNesting(t){var s=this;return this.walk((function(p){if(p.type===_.NESTING){return t.call(s,p)}}))};s.walkPseudos=function walkPseudos(t){var s=this;return this.walk((function(p){if(p.type===_.PSEUDO){return t.call(s,p)}}))};s.walkTags=function walkTags(t){var s=this;return this.walk((function(p){if(p.type===_.TAG){return t.call(s,p)}}))};s.walkUniversals=function walkUniversals(t){var s=this;return this.walk((function(p){if(p.type===_.UNIVERSAL){return t.call(s,p)}}))};s.split=function split(t){var s=this;var p=[];return this.reduce((function(v,_,T){var O=t.call(s,_);p.push(_);if(O){v.push(p);p=[]}else if(T===s.length-1){v.push(p)}return v}),[])};s.map=function map(t){return this.nodes.map(t)};s.reduce=function reduce(t,s){return this.nodes.reduce(t,s)};s.every=function every(t){return this.nodes.every(t)};s.some=function some(t){return this.nodes.some(t)};s.filter=function filter(t){return this.nodes.filter(t)};s.sort=function sort(t){return this.nodes.sort(t)};s.toString=function toString(){return this.map(String).join("")};_createClass(Container,[{key:"first",get:function get(){return this.at(0)}},{key:"last",get:function get(){return this.at(this.length-1)}},{key:"length",get:function get(){return this.nodes.length}}]);return Container}(v["default"]);s["default"]=T;t.exports=s.default},736:(t,s,p)=>{"use strict";s.__esModule=true;s.isNode=isNode;s.isPseudoElement=isPseudoElement;s.isPseudoClass=isPseudoClass;s.isContainer=isContainer;s.isNamespace=isNamespace;s.isUniversal=s.isTag=s.isString=s.isSelector=s.isRoot=s.isPseudo=s.isNesting=s.isIdentifier=s.isComment=s.isCombinator=s.isClassName=s.isAttribute=void 0;var v=p(300);var _;var T=(_={},_[v.ATTRIBUTE]=true,_[v.CLASS]=true,_[v.COMBINATOR]=true,_[v.COMMENT]=true,_[v.ID]=true,_[v.NESTING]=true,_[v.PSEUDO]=true,_[v.ROOT]=true,_[v.SELECTOR]=true,_[v.STRING]=true,_[v.TAG]=true,_[v.UNIVERSAL]=true,_);function isNode(t){return typeof t==="object"&&T[t.type]}function isNodeType(t,s){return isNode(s)&&s.type===t}var O=isNodeType.bind(null,v.ATTRIBUTE);s.isAttribute=O;var P=isNodeType.bind(null,v.CLASS);s.isClassName=P;var k=isNodeType.bind(null,v.COMBINATOR);s.isCombinator=k;var E=isNodeType.bind(null,v.COMMENT);s.isComment=E;var D=isNodeType.bind(null,v.ID);s.isIdentifier=D;var I=isNodeType.bind(null,v.NESTING);s.isNesting=I;var q=isNodeType.bind(null,v.PSEUDO);s.isPseudo=q;var L=isNodeType.bind(null,v.ROOT);s.isRoot=L;var R=isNodeType.bind(null,v.SELECTOR);s.isSelector=R;var A=isNodeType.bind(null,v.STRING);s.isString=A;var x=isNodeType.bind(null,v.TAG);s.isTag=x;var C=isNodeType.bind(null,v.UNIVERSAL);s.isUniversal=C;function isPseudoElement(t){return q(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function isPseudoClass(t){return q(t)&&!isPseudoElement(t)}function isContainer(t){return!!(isNode(t)&&t.walk)}function isNamespace(t){return O(t)||x(t)}},216:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(ID,t);function ID(s){var p;p=t.call(this,s)||this;p.type=_.ID;return p}var s=ID.prototype;s.valueToString=function valueToString(){return"#"+t.prototype.valueToString.call(this)};return ID}(v["default"]);s["default"]=T;t.exports=s.default},156:(t,s,p)=>{"use strict";s.__esModule=true;var v=p(300);Object.keys(v).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===v[t])return;s[t]=v[t]}));var _=p(701);Object.keys(_).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===_[t])return;s[t]=_[t]}));var T=p(736);Object.keys(T).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===T[t])return;s[t]=T[t]}))},427:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=p(123);var T=_interopRequireDefault(p(554));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var O=function(t){_inheritsLoose(Namespace,t);function Namespace(){return t.apply(this,arguments)||this}var s=Namespace.prototype;s.qualifiedName=function qualifiedName(t){if(this.namespace){return this.namespaceString+"|"+t}else{return t}};s.valueToString=function valueToString(){return this.qualifiedName(t.prototype.valueToString.call(this))};_createClass(Namespace,[{key:"namespace",get:function get(){return this._namespace},set:function set(t){if(t===true||t==="*"||t==="&"){this._namespace=t;if(this.raws){delete this.raws.namespace}return}var s=(0,v["default"])(t,{isIdentifier:true});this._namespace=t;if(s!==t){(0,_.ensureObject)(this,"raws");this.raws.namespace=s}else if(this.raws){delete this.raws.namespace}}},{key:"ns",get:function get(){return this._namespace},set:function set(t){this.namespace=t}},{key:"namespaceString",get:function get(){if(this.namespace){var t=this.stringifyProperty("namespace");if(t===true){return""}else{return t}}else{return""}}}]);return Namespace}(T["default"]);s["default"]=O;t.exports=s.default},462:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Nesting,t);function Nesting(s){var p;p=t.call(this,s)||this;p.type=_.NESTING;p.value="&";return p}return Nesting}(v["default"]);s["default"]=T;t.exports=s.default},554:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=p(123);function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}var _=function cloneNode(t,s){if(typeof t!=="object"||t===null){return t}var p=new t.constructor;for(var v in t){if(!t.hasOwnProperty(v)){continue}var _=t[v];var T=typeof _;if(v==="parent"&&T==="object"){if(s){p[v]=s}}else if(_ instanceof Array){p[v]=_.map((function(t){return cloneNode(t,p)}))}else{p[v]=cloneNode(_,p)}}return p};var T=function(){function Node(t){if(t===void 0){t={}}Object.assign(this,t);this.spaces=this.spaces||{};this.spaces.before=this.spaces.before||"";this.spaces.after=this.spaces.after||""}var t=Node.prototype;t.remove=function remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this};t.replaceWith=function replaceWith(){if(this.parent){for(var t in arguments){this.parent.insertBefore(this,arguments[t])}this.remove()}return this};t.next=function next(){return this.parent.at(this.parent.index(this)+1)};t.prev=function prev(){return this.parent.at(this.parent.index(this)-1)};t.clone=function clone(t){if(t===void 0){t={}}var s=_(this);for(var p in t){s[p]=t[p]}return s};t.appendToPropertyAndEscape=function appendToPropertyAndEscape(t,s,p){if(!this.raws){this.raws={}}var v=this[t];var _=this.raws[t];this[t]=v+s;if(_||p!==s){this.raws[t]=(_||v)+p}else{delete this.raws[t]}};t.setPropertyAndEscape=function setPropertyAndEscape(t,s,p){if(!this.raws){this.raws={}}this[t]=s;this.raws[t]=p};t.setPropertyWithoutEscape=function setPropertyWithoutEscape(t,s){this[t]=s;if(this.raws){delete this.raws[t]}};t.isAtPosition=function isAtPosition(t,s){if(this.source&&this.source.start&&this.source.end){if(this.source.start.line>t){return false}if(this.source.end.line<t){return false}if(this.source.start.line===t&&this.source.start.column>s){return false}if(this.source.end.line===t&&this.source.end.column<s){return false}return true}return undefined};t.stringifyProperty=function stringifyProperty(t){return this.raws&&this.raws[t]||this[t]};t.valueToString=function valueToString(){return String(this.stringifyProperty("value"))};t.toString=function toString(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")};_createClass(Node,[{key:"rawSpaceBefore",get:function get(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;if(t===undefined){t=this.spaces&&this.spaces.before}return t||""},set:function set(t){(0,v.ensureObject)(this,"raws","spaces");this.raws.spaces.before=t}},{key:"rawSpaceAfter",get:function get(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;if(t===undefined){t=this.spaces.after}return t||""},set:function set(t){(0,v.ensureObject)(this,"raws","spaces");this.raws.spaces.after=t}}]);return Node}();s["default"]=T;t.exports=s.default},18:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(50));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Pseudo,t);function Pseudo(s){var p;p=t.call(this,s)||this;p.type=_.PSEUDO;return p}var s=Pseudo.prototype;s.toString=function toString(){var t=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),t,this.rawSpaceAfter].join("")};return Pseudo}(v["default"]);s["default"]=T;t.exports=s.default},461:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(50));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Root,t);function Root(s){var p;p=t.call(this,s)||this;p.type=_.ROOT;return p}var s=Root.prototype;s.toString=function toString(){var t=this.reduce((function(t,s){t.push(String(s));return t}),[]).join(",");return this.trailingComma?t+",":t};s.error=function error(t,s){if(this._error){return this._error(t,s)}else{return new Error(t)}};_createClass(Root,[{key:"errorGenerator",set:function set(t){this._error=t}}]);return Root}(v["default"]);s["default"]=T;t.exports=s.default},668:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(50));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Selector,t);function Selector(s){var p;p=t.call(this,s)||this;p.type=_.SELECTOR;return p}return Selector}(v["default"]);s["default"]=T;t.exports=s.default},97:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(554));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(String,t);function String(s){var p;p=t.call(this,s)||this;p.type=_.STRING;return p}return String}(v["default"]);s["default"]=T;t.exports=s.default},163:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(427));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Tag,t);function Tag(s){var p;p=t.call(this,s)||this;p.type=_.TAG;return p}return Tag}(v["default"]);s["default"]=T;t.exports=s.default},300:(t,s)=>{"use strict";s.__esModule=true;s.UNIVERSAL=s.ATTRIBUTE=s.CLASS=s.COMBINATOR=s.COMMENT=s.ID=s.NESTING=s.PSEUDO=s.ROOT=s.SELECTOR=s.STRING=s.TAG=void 0;var p="tag";s.TAG=p;var v="string";s.STRING=v;var _="selector";s.SELECTOR=_;var T="root";s.ROOT=T;var O="pseudo";s.PSEUDO=O;var P="nesting";s.NESTING=P;var k="id";s.ID=k;var E="comment";s.COMMENT=E;var D="combinator";s.COMBINATOR=D;var I="class";s.CLASS=I;var q="attribute";s.ATTRIBUTE=q;var L="universal";s.UNIVERSAL=L},246:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(427));var _=p(300);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Universal,t);function Universal(s){var p;p=t.call(this,s)||this;p.type=_.UNIVERSAL;p.value="*";return p}return Universal}(v["default"]);s["default"]=T;t.exports=s.default},241:(t,s)=>{"use strict";s.__esModule=true;s["default"]=sortAscending;function sortAscending(t){return t.sort((function(t,s){return t-s}))}t.exports=s.default},874:(t,s)=>{"use strict";s.__esModule=true;s.combinator=s.word=s.comment=s.str=s.tab=s.newline=s.feed=s.cr=s.backslash=s.bang=s.slash=s.doubleQuote=s.singleQuote=s.space=s.greaterThan=s.pipe=s.equals=s.plus=s.caret=s.tilde=s.dollar=s.closeSquare=s.openSquare=s.closeParenthesis=s.openParenthesis=s.semicolon=s.colon=s.comma=s.at=s.asterisk=s.ampersand=void 0;var p=38;s.ampersand=p;var v=42;s.asterisk=v;var _=64;s.at=_;var T=44;s.comma=T;var O=58;s.colon=O;var P=59;s.semicolon=P;var k=40;s.openParenthesis=k;var E=41;s.closeParenthesis=E;var D=91;s.openSquare=D;var I=93;s.closeSquare=I;var q=36;s.dollar=q;var L=126;s.tilde=L;var R=94;s.caret=R;var A=43;s.plus=A;var x=61;s.equals=x;var C=124;s.pipe=C;var N=62;s.greaterThan=N;var M=32;s.space=M;var j=39;s.singleQuote=j;var F=34;s.doubleQuote=F;var U=47;s.slash=U;var Y=33;s.bang=Y;var B=92;s.backslash=B;var Q=13;s.cr=Q;var G=12;s.feed=G;var V=10;s.newline=V;var $=9;s.tab=$;var H=j;s.str=H;var z=-1;s.comment=z;var J=-2;s.word=J;var K=-3;s.combinator=K},795:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=tokenize;s.FIELDS=void 0;var v=_interopRequireWildcard(p(874));var _,T;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}var O=(_={},_[v.tab]=true,_[v.newline]=true,_[v.cr]=true,_[v.feed]=true,_);var P=(T={},T[v.space]=true,T[v.tab]=true,T[v.newline]=true,T[v.cr]=true,T[v.feed]=true,T[v.ampersand]=true,T[v.asterisk]=true,T[v.bang]=true,T[v.comma]=true,T[v.colon]=true,T[v.semicolon]=true,T[v.openParenthesis]=true,T[v.closeParenthesis]=true,T[v.openSquare]=true,T[v.closeSquare]=true,T[v.singleQuote]=true,T[v.doubleQuote]=true,T[v.plus]=true,T[v.pipe]=true,T[v.tilde]=true,T[v.greaterThan]=true,T[v.equals]=true,T[v.dollar]=true,T[v.caret]=true,T[v.slash]=true,T);var k={};var E="0123456789abcdefABCDEF";for(var D=0;D<E.length;D++){k[E.charCodeAt(D)]=true}function consumeWord(t,s){var p=s;var _;do{_=t.charCodeAt(p);if(P[_]){return p-1}else if(_===v.backslash){p=consumeEscape(t,p)+1}else{p++}}while(p<t.length);return p-1}function consumeEscape(t,s){var p=s;var _=t.charCodeAt(p+1);if(O[_]){}else if(k[_]){var T=0;do{p++;T++;_=t.charCodeAt(p+1)}while(k[_]&&T<6);if(T<6&&_===v.space){p++}}else{p++}return p}var I={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};s.FIELDS=I;function tokenize(t){var s=[];var p=t.css.valueOf();var _=p,T=_.length;var O=-1;var P=1;var k=0;var E=0;var D,I,q,L,R,A,x,C,N,M,j,F,U;function unclosed(s,v){if(t.safe){p+=v;N=p.length-1}else{throw t.error("Unclosed "+s,P,k-O,k)}}while(k<T){D=p.charCodeAt(k);if(D===v.newline){O=k;P+=1}switch(D){case v.space:case v.tab:case v.newline:case v.cr:case v.feed:N=k;do{N+=1;D=p.charCodeAt(N);if(D===v.newline){O=N;P+=1}}while(D===v.space||D===v.newline||D===v.tab||D===v.cr||D===v.feed);U=v.space;L=P;q=N-O-1;E=N;break;case v.plus:case v.greaterThan:case v.tilde:case v.pipe:N=k;do{N+=1;D=p.charCodeAt(N)}while(D===v.plus||D===v.greaterThan||D===v.tilde||D===v.pipe);U=v.combinator;L=P;q=k-O;E=N;break;case v.asterisk:case v.ampersand:case v.bang:case v.comma:case v.equals:case v.dollar:case v.caret:case v.openSquare:case v.closeSquare:case v.colon:case v.semicolon:case v.openParenthesis:case v.closeParenthesis:N=k;U=D;L=P;q=k-O;E=N+1;break;case v.singleQuote:case v.doubleQuote:F=D===v.singleQuote?"'":'"';N=k;do{R=false;N=p.indexOf(F,N+1);if(N===-1){unclosed("quote",F)}A=N;while(p.charCodeAt(A-1)===v.backslash){A-=1;R=!R}}while(R);U=v.str;L=P;q=k-O;E=N+1;break;default:if(D===v.slash&&p.charCodeAt(k+1)===v.asterisk){N=p.indexOf("*/",k+2)+1;if(N===0){unclosed("comment","*/")}I=p.slice(k,N+1);C=I.split("\n");x=C.length-1;if(x>0){M=P+x;j=N-C[x].length}else{M=P;j=O}U=v.comment;P=M;L=M;q=N-j}else if(D===v.slash){N=k;U=D;L=P;q=k-O;E=N+1}else{N=consumeWord(p,k);U=v.word;L=P;q=N-O}E=N+1;break}s.push([U,P,k-O,L,q,k,E]);if(j){O=j;j=null}k=E}return s}},266:(t,s)=>{"use strict";s.__esModule=true;s["default"]=ensureObject;function ensureObject(t){for(var s=arguments.length,p=new Array(s>1?s-1:0),v=1;v<s;v++){p[v-1]=arguments[v]}while(p.length>0){var _=p.shift();if(!t[_]){t[_]={}}t=t[_]}}t.exports=s.default},321:(t,s)=>{"use strict";s.__esModule=true;s["default"]=getProp;function getProp(t){for(var s=arguments.length,p=new Array(s>1?s-1:0),v=1;v<s;v++){p[v-1]=arguments[v]}while(p.length>0){var _=p.shift();if(!t[_]){return undefined}t=t[_]}return t}t.exports=s.default},123:(t,s,p)=>{"use strict";s.__esModule=true;s.stripComments=s.ensureObject=s.getProp=s.unesc=void 0;var v=_interopRequireDefault(p(624));s.unesc=v["default"];var _=_interopRequireDefault(p(321));s.getProp=_["default"];var T=_interopRequireDefault(p(266));s.ensureObject=T["default"];var O=_interopRequireDefault(p(438));s.stripComments=O["default"];function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}},438:(t,s)=>{"use strict";s.__esModule=true;s["default"]=stripComments;function stripComments(t){var s="";var p=t.indexOf("/*");var v=0;while(p>=0){s=s+t.slice(v,p);var _=t.indexOf("*/",p+2);if(_<0){return s}v=_+2;p=t.indexOf("/*",v)}s=s+t.slice(v);return s}t.exports=s.default},624:(t,s)=>{"use strict";s.__esModule=true;s["default"]=unesc;function gobbleHex(t){var s=t.toLowerCase();var p="";var v=false;for(var _=0;_<6&&s[_]!==undefined;_++){var T=s.charCodeAt(_);var O=T>=97&&T<=102||T>=48&&T<=57;v=T===32;if(!O){break}p+=s[_]}if(p.length===0){return undefined}var P=parseInt(p,16);var k=P>=55296&&P<=57343;if(k||P===0||P>1114111){return["�",p.length+(v?1:0)]}return[String.fromCodePoint(P),p.length+(v?1:0)]}var p=/\\/;function unesc(t){var s=p.test(t);if(!s){return t}var v="";for(var _=0;_<t.length;_++){if(t[_]==="\\"){var T=gobbleHex(t.slice(_+1,_+7));if(T!==undefined){v+=T[0];_+=T[1];continue}if(t[_+1]==="\\"){v+="\\";_++;continue}if(t.length===_+1){v+=t[_]}continue}v+=t[_]}return v}t.exports=s.default},125:(t,s,p)=>{t.exports=p(837).deprecate},837:t=>{"use strict";t.exports=require("util")},254:(t,s,p)=>{"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var v=e(p(789));function n(t){if(!t.nodes.length)return void t.remove();const s=t.nodes.filter((t=>"comment"===t.type));s.length===t.nodes.length&&t.replaceWith(...s)}function o(t){const s=t.parent,p=s.index(t);if(p){n(s.cloneBefore().removeAll().append(s.nodes.slice(0,p)))}return s.before(t),s}function r(t,s){if(s<2)throw new Error("n must be greater than 1");if(t.length<2)throw new Error("s must be greater than 1");if(Math.pow(t.length,s)>1e4)throw new Error("Too many combinations when trying to resolve a nested selector with lists, reduce the complexity of your selectors");const p=[];for(let t=0;t<s;t++)p[t]=0;const v=[];for(;;){const _=[];for(let T=s-1;T>=0;T--){let s=p[T];if(s>=t.length){if(s=0,p[T]=0,0===T)return v;p[T-1]+=1}_[T]=t[s]}v.push(_),p[p.length-1]++}}const _=v.default.pseudo({value:":is"});function a(t){const s=t.nodes.filter((t=>"tag"===t.type));s.length>1&&s.slice(1).forEach((t=>{const s=_.clone();t.replaceWith(s),s.append(t)}))}function l(t,s){let p=[],_=!1;const T=[...t.nodes];for(let t=0;t<T.length+1;t++){const O=T[t];if(O&&"combinator"!==O.type)"nesting"===O.type&&(_=!0),p.push(O);else{if(_){p=[];continue}if(p.length>1){const t=v.default.selector();p[0].replaceWith(t),p.slice(1).forEach((t=>{t.remove()})),p.forEach((s=>{t.append(s)})),c(t),s&&a(t),t.replaceWith(...t.nodes)}p=[]}}}function c(t){t.nodes.sort(((t,s)=>i(t.value,t.type)-i(s.value,s.type)))}function i(t,s){return"pseudo"===s&&t&&0===t.indexOf("::")?T.pseudoElement:T[s]}const T={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10,nesting:9999};function u(t){const s=t.map((t=>v.default().astSync(t))).map((t=>d(t))),p=s[0];for(let t=1;t<s.length;t++)if(p.a!==s[t].a||p.b!==s[t].b||p.c!==s[t].c)return!1;return!0}function d(t){let s=0,p=0,_=0;if("universal"==t.type)return{a:0,b:0,c:0};if("id"===t.type)s+=1;else if("tag"===t.type)_+=1;else if("class"===t.type)p+=1;else if("attribute"===t.type)p+=1;else if("pseudo"===t.type&&0===t.value.indexOf("::"))_+=1;else if("pseudo"===t.type)switch(t.value){case":after":case":before":_+=1;break;case":is":case":has":case":not":if(t.nodes&&t.nodes.length>0){let v={a:0,b:0,c:0};t.nodes.forEach((t=>{const s=d(t);s.a>v.a?v=s:s.a<v.a||(s.b>v.b?v=s:s.b<v.b||s.c>v.c&&(v=s))})),s+=v.a,p+=v.b,_+=v.c}break;case"where":break;case":nth-child":case":nth-last-child":{const T=t.nodes.findIndex((t=>{t.value}));if(T>-1){const O=d(v.default.selector({nodes:t.nodes.slice(T+1),value:""}));s+=O.a,p+=O.b,_+=O.c}else s+=s,p+=p,_+=_}break;default:p+=1}else t.nodes&&t.nodes.length>0&&t.nodes.forEach((t=>{const v=d(t);s+=v.a,p+=v.b,_+=v.c}));return{a:s,b:p,c:_}}function f(t,s,p){let _=[];_=u(t)||p.noIsPseudoSelector?t.map((t=>v.default().astSync(t))):[v.default().astSync(`:is(${t.join(",")})`)];let T=[];for(let t=0;t<s.length;t++){const O=s[t];let P=1,k=[],E=0;if(v.default().astSync(O).walkNesting((()=>{E++})),E>1&&_.length>1)k=r(_,E),P=k.length;else{P=_.length;for(let t=0;t<_.length;t++){k.push([]);for(let s=0;s<E;s++)k[t].push(_[t])}}for(let t=0;t<P;t++){let s=0;const _=v.default().astSync(O);_.walk((_=>{if("nesting"!==_.type)return;let T=k[t][s];s++,"root"===T.type&&1===T.nodes.length&&(T=T.nodes[0]);const O=v.default().astSync(`:is(${T.toString()})`),P=h(T.nodes[0]),E=y(T.nodes[0]),D=h(_),I=y(_);if(P&&D)return void _.replaceWith(T.clone());if((P||E)&&(D||I)){const t=_.parent;return P&&"selector"===T.type?_.replaceWith(T.clone().nodes[0]):_.replaceWith(...T.clone().nodes),void(t&&t.nodes.length>1&&(c(t),p.noIsPseudoSelector||a(t)))}if(P){const t=_.parent;return _.replaceWith(T.clone().nodes[0]),void(t&&l(t,!p.noIsPseudoSelector))}if(E){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}if(m(_)){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}if(g(_)){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}const q=_.parent;p.noIsPseudoSelector?_.replaceWith(...T.clone().nodes):_.replaceWith(...O.clone().nodes),q&&l(q,!p.noIsPseudoSelector)})),T.push(_.toString())}}return T}function h(t){return"combinator"!==t.type&&!(t.parent&&t.parent.nodes.length>1)}function y(t,s=null){if(h(t))return!1;if(!t.parent)return!1;if(!!t.parent.nodes.find((t=>"combinator"===t.type||"comment"===t.type)))return!1;return!(!!t.parent.nodes.find((t=>"nesting"===t.type))&&s&&!y(s))}function m(t){if(!t.parent)return!1;if(0!==t.parent.nodes.indexOf(t))return!1;for(let s=1;s<t.parent.nodes.length;s++)if("combinator"===t.parent.nodes[s].type&&" "!==t.parent.nodes[s].value&&">"!==t.parent.nodes[s].value)return!1;return!0}function g(t){if(h(t))return!0;if(!t.parent)return!1;for(let s=0;s<t.parent.nodes.length;s++)if("nesting"!==!t.parent.nodes[s].type&&(t.parent.nodes[s].prev()||t.parent.nodes[s].next())){if(t.parent.nodes[s].prev()&&"combinator"!==t.parent.nodes[s].prev().type)return!1;if(t.parent.nodes[s].next()&&"combinator"!==t.parent.nodes[s].next().type)return!1}return!0}const b=t=>{let s=[],p="",v=!1,_=0,T=!1,O=!1;for(let P of t)O?O=!1:"\\"===P?O=!0:T?P===T&&(T=!1):'"'===P||"'"===P?T=P:"("===P?_+=1:")"===P?_>0&&(_-=1):0===_&&","===P&&(v=!0),v?(""!==p&&s.push(p.trim()),p="",v=!1):p+=P;return s.push(p.trim()),s};var O=["container","document","media","supports"];function S(t){const s=o(t);var p,v;t.params=(p=s.params,v=t.params,b(p).map((t=>b(v).map((s=>`${t} and ${s}`)).join(", "))).join(", ")),n(s)}function W(t,s){t.each((t=>{(t=>"rule"===t.type&&"rule"===Object(t.parent).type&&t.selectors.every((t=>0===t.trim().indexOf("&")&&-1===t.indexOf("|"))))(t)?function(t,s){const p=o(t);t.selectors=f(p.selectors,t.selectors,s),("rule"===t.type&&"rule"===p.type&&t.selector===p.selector||"atrule"===t.type&&"atrule"===p.type&&t.params===p.params)&&t.append(...p.nodes),n(p)}(t,s):(t=>"atrule"===t.type&&"nest"===t.name&&"rule"===Object(t.parent).type&&b(t.params).every((t=>t.split("&").length>=2&&-1===t.indexOf("|"))))(t)?function(t,s,p){const v=o(t),_=v.clone().removeAll().append(t.nodes);t.replaceWith(_),_.selectors=f(v.selectors,b(t.params),p),n(v),s(_,p)}(t,W,s):(t=>"atrule"===t.type&&O.includes(t.name)&&"rule"===Object(t.parent).type)(t)?function(t,s,p){const v=o(t),_=v.clone().removeAll().append(t.nodes);t.append(_),n(v),s(_,p)}(t,W,s):(t=>"atrule"===t.type&&O.includes(t.name)&&"atrule"===Object(t.parent).type&&t.name===t.parent.name)(t)&&S(t),Object(t.nodes).length&&W(t,s)}))}function w(t){const s=Object(t).noIsPseudoSelector||!1;return{postcssPlugin:"postcss-nesting",Rule(t){W(t,{noIsPseudoSelector:s})}}}w.postcss=!0,t.exports=w}};var s={};function __nccwpck_require__(p){var v=s[p];if(v!==undefined){return v.exports}var _=s[p]={exports:{}};var T=true;try{t[p](_,_.exports,__nccwpck_require__);T=false}finally{if(T)delete s[p]}return _.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var p=__nccwpck_require__(254);module.exports=p})();
|
|
2
|
+
/*! https://mths.be/cssesc v3.0.0 by @mathias */var s={};var p=s.hasOwnProperty;var v=function merge(t,s){if(!t){return s}var v={};for(var _ in s){v[_]=p.call(t,_)?t[_]:s[_]}return v};var _=/[ -,\.\/:-@\[-\^`\{-~]/;var T=/[ -,\.\/:-@\[\]\^`\{-~]/;var O=/['"\\]/;var P=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;var k=function cssesc(t,s){s=v(s,cssesc.options);if(s.quotes!="single"&&s.quotes!="double"){s.quotes="single"}var p=s.quotes=="double"?'"':"'";var O=s.isIdentifier;var k=t.charAt(0);var E="";var D=0;var I=t.length;while(D<I){var q=t.charAt(D++);var L=q.charCodeAt();var R=void 0;if(L<32||L>126){if(L>=55296&&L<=56319&&D<I){var A=t.charCodeAt(D++);if((A&64512)==56320){L=((L&1023)<<10)+(A&1023)+65536}else{D--}}R="\\"+L.toString(16).toUpperCase()+" "}else{if(s.escapeEverything){if(_.test(q)){R="\\"+q}else{R="\\"+L.toString(16).toUpperCase()+" "}}else if(/[\t\n\f\r\x0B]/.test(q)){R="\\"+L.toString(16).toUpperCase()+" "}else if(q=="\\"||!O&&(q=='"'&&p==q||q=="'"&&p==q)||O&&T.test(q)){R="\\"+q}else{R=q}}E+=R}if(O){if(/^-[-\d]/.test(E)){E="\\-"+E.slice(1)}else if(/\d/.test(k)){E="\\3"+k+" "+E.slice(1)}}E=E.replace(P,(function(t,s,p){if(s&&s.length%2){return t}return(s||"")+p}));if(!O&&s.wrap){return p+E+p}return E};k.options={escapeEverything:false,isIdentifier:false,quotes:"single",wrap:false};k.version="3.0.0";t.exports=k},98:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(82));var _=_interopRequireWildcard(p(877));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var T=function parser(t){return new v["default"](t)};Object.assign(T,_);delete T.__esModule;var O=T;s["default"]=O;t.exports=s.default},514:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(255));var _=_interopRequireDefault(p(823));var T=_interopRequireDefault(p(404));var O=_interopRequireDefault(p(334));var P=_interopRequireDefault(p(419));var k=_interopRequireDefault(p(155));var E=_interopRequireDefault(p(23));var D=_interopRequireDefault(p(638));var I=_interopRequireWildcard(p(888));var q=_interopRequireDefault(p(302));var L=_interopRequireDefault(p(764));var R=_interopRequireDefault(p(654));var A=_interopRequireDefault(p(886));var x=_interopRequireWildcard(p(135));var C=_interopRequireWildcard(p(830));var N=_interopRequireWildcard(p(229));var M=p(349);var j,F;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}var U=(j={},j[C.space]=true,j[C.cr]=true,j[C.feed]=true,j[C.newline]=true,j[C.tab]=true,j);var Y=Object.assign({},U,(F={},F[C.comment]=true,F));function tokenStart(t){return{line:t[x.FIELDS.START_LINE],column:t[x.FIELDS.START_COL]}}function tokenEnd(t){return{line:t[x.FIELDS.END_LINE],column:t[x.FIELDS.END_COL]}}function getSource(t,s,p,v){return{start:{line:t,column:s},end:{line:p,column:v}}}function getTokenSource(t){return getSource(t[x.FIELDS.START_LINE],t[x.FIELDS.START_COL],t[x.FIELDS.END_LINE],t[x.FIELDS.END_COL])}function getTokenSourceSpan(t,s){if(!t){return undefined}return getSource(t[x.FIELDS.START_LINE],t[x.FIELDS.START_COL],s[x.FIELDS.END_LINE],s[x.FIELDS.END_COL])}function unescapeProp(t,s){var p=t[s];if(typeof p!=="string"){return}if(p.indexOf("\\")!==-1){(0,M.ensureObject)(t,"raws");t[s]=(0,M.unesc)(p);if(t.raws[s]===undefined){t.raws[s]=p}}return t}function indexesOf(t,s){var p=-1;var v=[];while((p=t.indexOf(s,p+1))!==-1){v.push(p)}return v}function uniqs(){var t=Array.prototype.concat.apply([],arguments);return t.filter((function(s,p){return p===t.indexOf(s)}))}var B=function(){function Parser(t,s){if(s===void 0){s={}}this.rule=t;this.options=Object.assign({lossy:false,safe:false},s);this.position=0;this.css=typeof this.rule==="string"?this.rule:this.rule.selector;this.tokens=(0,x["default"])({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var p=getTokenSourceSpan(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new v["default"]({source:p});this.root.errorGenerator=this._errorGenerator();var T=new _["default"]({source:{start:{line:1,column:1}}});this.root.append(T);this.current=T;this.loop()}var t=Parser.prototype;t._errorGenerator=function _errorGenerator(){var t=this;return function(s,p){if(typeof t.rule==="string"){return new Error(s)}return t.rule.error(s,p)}};t.attribute=function attribute(){var t=[];var s=this.currToken;this.position++;while(this.position<this.tokens.length&&this.currToken[x.FIELDS.TYPE]!==C.closeSquare){t.push(this.currToken);this.position++}if(this.currToken[x.FIELDS.TYPE]!==C.closeSquare){return this.expected("closing square bracket",this.currToken[x.FIELDS.START_POS])}var p=t.length;var v={source:getSource(s[1],s[2],this.currToken[3],this.currToken[4]),sourceIndex:s[x.FIELDS.START_POS]};if(p===1&&!~[C.word].indexOf(t[0][x.FIELDS.TYPE])){return this.expected("attribute",t[0][x.FIELDS.START_POS])}var _=0;var T="";var O="";var P=null;var k=false;while(_<p){var E=t[_];var D=this.content(E);var q=t[_+1];switch(E[x.FIELDS.TYPE]){case C.space:k=true;if(this.options.lossy){break}if(P){(0,M.ensureObject)(v,"spaces",P);var L=v.spaces[P].after||"";v.spaces[P].after=L+D;var R=(0,M.getProp)(v,"raws","spaces",P,"after")||null;if(R){v.raws.spaces[P].after=R+D}}else{T=T+D;O=O+D}break;case C.asterisk:if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}else if((!v.namespace||P==="namespace"&&!k)&&q){if(T){(0,M.ensureObject)(v,"spaces","attribute");v.spaces.attribute.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","attribute");v.raws.spaces.attribute.before=T;O=""}v.namespace=(v.namespace||"")+D;var A=(0,M.getProp)(v,"raws","namespace")||null;if(A){v.raws.namespace+=D}P="namespace"}k=false;break;case C.dollar:if(P==="value"){var N=(0,M.getProp)(v,"raws","value");v.value+="$";if(N){v.raws.value=N+"$"}break}case C.caret:if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}k=false;break;case C.combinator:if(D==="~"&&q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}if(D!=="|"){k=false;break}if(q[x.FIELDS.TYPE]===C.equals){v.operator=D;P="operator"}else if(!v.namespace&&!v.attribute){v.namespace=true}k=false;break;case C.word:if(q&&this.content(q)==="|"&&t[_+2]&&t[_+2][x.FIELDS.TYPE]!==C.equals&&!v.operator&&!v.namespace){v.namespace=D;P="namespace"}else if(!v.attribute||P==="attribute"&&!k){if(T){(0,M.ensureObject)(v,"spaces","attribute");v.spaces.attribute.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","attribute");v.raws.spaces.attribute.before=O;O=""}v.attribute=(v.attribute||"")+D;var j=(0,M.getProp)(v,"raws","attribute")||null;if(j){v.raws.attribute+=D}P="attribute"}else if(!v.value&&v.value!==""||P==="value"&&!(k||v.quoteMark)){var F=(0,M.unesc)(D);var U=(0,M.getProp)(v,"raws","value")||"";var Y=v.value||"";v.value=Y+F;v.quoteMark=null;if(F!==D||U){(0,M.ensureObject)(v,"raws");v.raws.value=(U||Y)+D}P="value"}else{var B=D==="i"||D==="I";if((v.value||v.value==="")&&(v.quoteMark||k)){v.insensitive=B;if(!B||D==="I"){(0,M.ensureObject)(v,"raws");v.raws.insensitiveFlag=D}P="insensitive";if(T){(0,M.ensureObject)(v,"spaces","insensitive");v.spaces.insensitive.before=T;T=""}if(O){(0,M.ensureObject)(v,"raws","spaces","insensitive");v.raws.spaces.insensitive.before=O;O=""}}else if(v.value||v.value===""){P="value";v.value+=D;if(v.raws.value){v.raws.value+=D}}}k=false;break;case C.str:if(!v.attribute||!v.operator){return this.error("Expected an attribute followed by an operator preceding the string.",{index:E[x.FIELDS.START_POS]})}var Q=(0,I.unescapeValue)(D),G=Q.unescaped,V=Q.quoteMark;v.value=G;v.quoteMark=V;P="value";(0,M.ensureObject)(v,"raws");v.raws.value=D;k=false;break;case C.equals:if(!v.attribute){return this.expected("attribute",E[x.FIELDS.START_POS],D)}if(v.value){return this.error('Unexpected "=" found; an operator was already defined.',{index:E[x.FIELDS.START_POS]})}v.operator=v.operator?v.operator+D:D;P="operator";k=false;break;case C.comment:if(P){if(k||q&&q[x.FIELDS.TYPE]===C.space||P==="insensitive"){var $=(0,M.getProp)(v,"spaces",P,"after")||"";var H=(0,M.getProp)(v,"raws","spaces",P,"after")||$;(0,M.ensureObject)(v,"raws","spaces",P);v.raws.spaces[P].after=H+D}else{var z=v[P]||"";var J=(0,M.getProp)(v,"raws",P)||z;(0,M.ensureObject)(v,"raws");v.raws[P]=J+D}}else{O=O+D}break;default:return this.error('Unexpected "'+D+'" found.',{index:E[x.FIELDS.START_POS]})}_++}unescapeProp(v,"attribute");unescapeProp(v,"namespace");this.newNode(new I["default"](v));this.position++};t.parseWhitespaceEquivalentTokens=function parseWhitespaceEquivalentTokens(t){if(t<0){t=this.tokens.length}var s=this.position;var p=[];var v="";var _=undefined;do{if(U[this.currToken[x.FIELDS.TYPE]]){if(!this.options.lossy){v+=this.content()}}else if(this.currToken[x.FIELDS.TYPE]===C.comment){var T={};if(v){T.before=v;v=""}_=new O["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS],spaces:T});p.push(_)}}while(++this.position<t);if(v){if(_){_.spaces.after=v}else if(!this.options.lossy){var P=this.tokens[s];var k=this.tokens[this.position-1];p.push(new E["default"]({value:"",source:getSource(P[x.FIELDS.START_LINE],P[x.FIELDS.START_COL],k[x.FIELDS.END_LINE],k[x.FIELDS.END_COL]),sourceIndex:P[x.FIELDS.START_POS],spaces:{before:v,after:""}}))}}return p};t.convertWhitespaceNodesToSpace=function convertWhitespaceNodesToSpace(t,s){var p=this;if(s===void 0){s=false}var v="";var _="";t.forEach((function(t){var T=p.lossySpace(t.spaces.before,s);var O=p.lossySpace(t.rawSpaceBefore,s);v+=T+p.lossySpace(t.spaces.after,s&&T.length===0);_+=T+t.value+p.lossySpace(t.rawSpaceAfter,s&&O.length===0)}));if(_===v){_=undefined}var T={space:v,rawSpace:_};return T};t.isNamedCombinator=function isNamedCombinator(t){if(t===void 0){t=this.position}return this.tokens[t+0]&&this.tokens[t+0][x.FIELDS.TYPE]===C.slash&&this.tokens[t+1]&&this.tokens[t+1][x.FIELDS.TYPE]===C.word&&this.tokens[t+2]&&this.tokens[t+2][x.FIELDS.TYPE]===C.slash};t.namedCombinator=function namedCombinator(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]);var s=(0,M.unesc)(t).toLowerCase();var p={};if(s!==t){p.value="/"+t+"/"}var v=new L["default"]({value:"/"+s+"/",source:getSource(this.currToken[x.FIELDS.START_LINE],this.currToken[x.FIELDS.START_COL],this.tokens[this.position+2][x.FIELDS.END_LINE],this.tokens[this.position+2][x.FIELDS.END_COL]),sourceIndex:this.currToken[x.FIELDS.START_POS],raws:p});this.position=this.position+3;return v}else{this.unexpected()}};t.combinator=function combinator(){var t=this;if(this.content()==="|"){return this.namespace()}var s=this.locateNextMeaningfulToken(this.position);if(s<0||this.tokens[s][x.FIELDS.TYPE]===C.comma){var p=this.parseWhitespaceEquivalentTokens(s);if(p.length>0){var v=this.current.last;if(v){var _=this.convertWhitespaceNodesToSpace(p),T=_.space,O=_.rawSpace;if(O!==undefined){v.rawSpaceAfter+=O}v.spaces.after+=T}else{p.forEach((function(s){return t.newNode(s)}))}}return}var P=this.currToken;var k=undefined;if(s>this.position){k=this.parseWhitespaceEquivalentTokens(s)}var E;if(this.isNamedCombinator()){E=this.namedCombinator()}else if(this.currToken[x.FIELDS.TYPE]===C.combinator){E=new L["default"]({value:this.content(),source:getTokenSource(this.currToken),sourceIndex:this.currToken[x.FIELDS.START_POS]});this.position++}else if(U[this.currToken[x.FIELDS.TYPE]]){}else if(!k){this.unexpected()}if(E){if(k){var D=this.convertWhitespaceNodesToSpace(k),I=D.space,q=D.rawSpace;E.spaces.before=I;E.rawSpaceBefore=q}}else{var R=this.convertWhitespaceNodesToSpace(k,true),A=R.space,N=R.rawSpace;if(!N){N=A}var M={};var j={spaces:{}};if(A.endsWith(" ")&&N.endsWith(" ")){M.before=A.slice(0,A.length-1);j.spaces.before=N.slice(0,N.length-1)}else if(A.startsWith(" ")&&N.startsWith(" ")){M.after=A.slice(1);j.spaces.after=N.slice(1)}else{j.value=N}E=new L["default"]({value:" ",source:getTokenSourceSpan(P,this.tokens[this.position-1]),sourceIndex:P[x.FIELDS.START_POS],spaces:M,raws:j})}if(this.currToken&&this.currToken[x.FIELDS.TYPE]===C.space){E.spaces.after=this.optionalSpace(this.content());this.position++}return this.newNode(E)};t.comma=function comma(){if(this.position===this.tokens.length-1){this.root.trailingComma=true;this.position++;return}this.current._inferEndPosition();var t=new _["default"]({source:{start:tokenStart(this.tokens[this.position+1])}});this.current.parent.append(t);this.current=t;this.position++};t.comment=function comment(){var t=this.currToken;this.newNode(new O["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[x.FIELDS.START_POS]}));this.position++};t.error=function error(t,s){throw this.root.error(t,s)};t.missingBackslash=function missingBackslash(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[x.FIELDS.START_POS]})};t.missingParenthesis=function missingParenthesis(){return this.expected("opening parenthesis",this.currToken[x.FIELDS.START_POS])};t.missingSquareBracket=function missingSquareBracket(){return this.expected("opening square bracket",this.currToken[x.FIELDS.START_POS])};t.unexpected=function unexpected(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[x.FIELDS.START_POS])};t.namespace=function namespace(){var t=this.prevToken&&this.content(this.prevToken)||true;if(this.nextToken[x.FIELDS.TYPE]===C.word){this.position++;return this.word(t)}else if(this.nextToken[x.FIELDS.TYPE]===C.asterisk){this.position++;return this.universal(t)}};t.nesting=function nesting(){if(this.nextToken){var t=this.content(this.nextToken);if(t==="|"){this.position++;return}}var s=this.currToken;this.newNode(new R["default"]({value:this.content(),source:getTokenSource(s),sourceIndex:s[x.FIELDS.START_POS]}));this.position++};t.parentheses=function parentheses(){var t=this.current.last;var s=1;this.position++;if(t&&t.type===N.PSEUDO){var p=new _["default"]({source:{start:tokenStart(this.tokens[this.position-1])}});var v=this.current;t.append(p);this.current=p;while(this.position<this.tokens.length&&s){if(this.currToken[x.FIELDS.TYPE]===C.openParenthesis){s++}if(this.currToken[x.FIELDS.TYPE]===C.closeParenthesis){s--}if(s){this.parse()}else{this.current.source.end=tokenEnd(this.currToken);this.current.parent.source.end=tokenEnd(this.currToken);this.position++}}this.current=v}else{var T=this.currToken;var O="(";var P;while(this.position<this.tokens.length&&s){if(this.currToken[x.FIELDS.TYPE]===C.openParenthesis){s++}if(this.currToken[x.FIELDS.TYPE]===C.closeParenthesis){s--}P=this.currToken;O+=this.parseParenthesisToken(this.currToken);this.position++}if(t){t.appendToPropertyAndEscape("value",O,O)}else{this.newNode(new E["default"]({value:O,source:getSource(T[x.FIELDS.START_LINE],T[x.FIELDS.START_COL],P[x.FIELDS.END_LINE],P[x.FIELDS.END_COL]),sourceIndex:T[x.FIELDS.START_POS]}))}}if(s){return this.expected("closing parenthesis",this.currToken[x.FIELDS.START_POS])}};t.pseudo=function pseudo(){var t=this;var s="";var p=this.currToken;while(this.currToken&&this.currToken[x.FIELDS.TYPE]===C.colon){s+=this.content();this.position++}if(!this.currToken){return this.expected(["pseudo-class","pseudo-element"],this.position-1)}if(this.currToken[x.FIELDS.TYPE]===C.word){this.splitWord(false,(function(v,_){s+=v;t.newNode(new D["default"]({value:s,source:getTokenSourceSpan(p,t.currToken),sourceIndex:p[x.FIELDS.START_POS]}));if(_>1&&t.nextToken&&t.nextToken[x.FIELDS.TYPE]===C.openParenthesis){t.error("Misplaced parenthesis.",{index:t.nextToken[x.FIELDS.START_POS]})}}))}else{return this.expected(["pseudo-class","pseudo-element"],this.currToken[x.FIELDS.START_POS])}};t.space=function space(){var t=this.content();if(this.position===0||this.prevToken[x.FIELDS.TYPE]===C.comma||this.prevToken[x.FIELDS.TYPE]===C.openParenthesis||this.current.nodes.every((function(t){return t.type==="comment"}))){this.spaces=this.optionalSpace(t);this.position++}else if(this.position===this.tokens.length-1||this.nextToken[x.FIELDS.TYPE]===C.comma||this.nextToken[x.FIELDS.TYPE]===C.closeParenthesis){this.current.last.spaces.after=this.optionalSpace(t);this.position++}else{this.combinator()}};t.string=function string(){var t=this.currToken;this.newNode(new E["default"]({value:this.content(),source:getTokenSource(t),sourceIndex:t[x.FIELDS.START_POS]}));this.position++};t.universal=function universal(t){var s=this.nextToken;if(s&&this.content(s)==="|"){this.position++;return this.namespace()}var p=this.currToken;this.newNode(new q["default"]({value:this.content(),source:getTokenSource(p),sourceIndex:p[x.FIELDS.START_POS]}),t);this.position++};t.splitWord=function splitWord(t,s){var p=this;var v=this.nextToken;var _=this.content();while(v&&~[C.dollar,C.caret,C.equals,C.word].indexOf(v[x.FIELDS.TYPE])){this.position++;var O=this.content();_+=O;if(O.lastIndexOf("\\")===O.length-1){var E=this.nextToken;if(E&&E[x.FIELDS.TYPE]===C.space){_+=this.requiredSpace(this.content(E));this.position++}}v=this.nextToken}var D=indexesOf(_,".").filter((function(t){var s=_[t-1]==="\\";var p=/^\d+\.\d+%$/.test(_);return!s&&!p}));var I=indexesOf(_,"#").filter((function(t){return _[t-1]!=="\\"}));var q=indexesOf(_,"#{");if(q.length){I=I.filter((function(t){return!~q.indexOf(t)}))}var L=(0,A["default"])(uniqs([0].concat(D,I)));L.forEach((function(v,O){var E=L[O+1]||_.length;var q=_.slice(v,E);if(O===0&&s){return s.call(p,q,L.length)}var R;var A=p.currToken;var C=A[x.FIELDS.START_POS]+L[O];var N=getSource(A[1],A[2]+v,A[3],A[2]+(E-1));if(~D.indexOf(v)){var M={value:q.slice(1),source:N,sourceIndex:C};R=new T["default"](unescapeProp(M,"value"))}else if(~I.indexOf(v)){var j={value:q.slice(1),source:N,sourceIndex:C};R=new P["default"](unescapeProp(j,"value"))}else{var F={value:q,source:N,sourceIndex:C};unescapeProp(F,"value");R=new k["default"](F)}p.newNode(R,t);t=null}));this.position++};t.word=function word(t){var s=this.nextToken;if(s&&this.content(s)==="|"){this.position++;return this.namespace()}return this.splitWord(t)};t.loop=function loop(){while(this.position<this.tokens.length){this.parse(true)}this.current._inferEndPosition();return this.root};t.parse=function parse(t){switch(this.currToken[x.FIELDS.TYPE]){case C.space:this.space();break;case C.comment:this.comment();break;case C.openParenthesis:this.parentheses();break;case C.closeParenthesis:if(t){this.missingParenthesis()}break;case C.openSquare:this.attribute();break;case C.dollar:case C.caret:case C.equals:case C.word:this.word();break;case C.colon:this.pseudo();break;case C.comma:this.comma();break;case C.asterisk:this.universal();break;case C.ampersand:this.nesting();break;case C.slash:case C.combinator:this.combinator();break;case C.str:this.string();break;case C.closeSquare:this.missingSquareBracket();case C.semicolon:this.missingBackslash();default:this.unexpected()}};t.expected=function expected(t,s,p){if(Array.isArray(t)){var v=t.pop();t=t.join(", ")+" or "+v}var _=/^[aeiou]/.test(t[0])?"an":"a";if(!p){return this.error("Expected "+_+" "+t+".",{index:s})}return this.error("Expected "+_+" "+t+', found "'+p+'" instead.',{index:s})};t.requiredSpace=function requiredSpace(t){return this.options.lossy?" ":t};t.optionalSpace=function optionalSpace(t){return this.options.lossy?"":t};t.lossySpace=function lossySpace(t,s){if(this.options.lossy){return s?" ":""}else{return t}};t.parseParenthesisToken=function parseParenthesisToken(t){var s=this.content(t);if(t[x.FIELDS.TYPE]===C.space){return this.requiredSpace(s)}else{return s}};t.newNode=function newNode(t,s){if(s){if(/^ +$/.test(s)){if(!this.options.lossy){this.spaces=(this.spaces||"")+s}s=true}t.namespace=s;unescapeProp(t,"namespace")}if(this.spaces){t.spaces.before=this.spaces;this.spaces=""}return this.current.append(t)};t.content=function content(t){if(t===void 0){t=this.currToken}return this.css.slice(t[x.FIELDS.START_POS],t[x.FIELDS.END_POS])};t.locateNextMeaningfulToken=function locateNextMeaningfulToken(t){if(t===void 0){t=this.position+1}var s=t;while(s<this.tokens.length){if(Y[this.tokens[s][x.FIELDS.TYPE]]){s++;continue}else{return s}}return-1};_createClass(Parser,[{key:"currToken",get:function get(){return this.tokens[this.position]}},{key:"nextToken",get:function get(){return this.tokens[this.position+1]}},{key:"prevToken",get:function get(){return this.tokens[this.position-1]}}]);return Parser}();s["default"]=B;t.exports=s.default},82:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(514));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var _=function(){function Processor(t,s){this.func=t||function noop(){};this.funcRes=null;this.options=s}var t=Processor.prototype;t._shouldUpdateSelector=function _shouldUpdateSelector(t,s){if(s===void 0){s={}}var p=Object.assign({},this.options,s);if(p.updateSelector===false){return false}else{return typeof t!=="string"}};t._isLossy=function _isLossy(t){if(t===void 0){t={}}var s=Object.assign({},this.options,t);if(s.lossless===false){return true}else{return false}};t._root=function _root(t,s){if(s===void 0){s={}}var p=new v["default"](t,this._parseOptions(s));return p.root};t._parseOptions=function _parseOptions(t){return{lossy:this._isLossy(t)}};t._run=function _run(t,s){var p=this;if(s===void 0){s={}}return new Promise((function(v,_){try{var T=p._root(t,s);Promise.resolve(p.func(T)).then((function(v){var _=undefined;if(p._shouldUpdateSelector(t,s)){_=T.toString();t.selector=_}return{transform:v,root:T,string:_}})).then(v,_)}catch(t){_(t);return}}))};t._runSync=function _runSync(t,s){if(s===void 0){s={}}var p=this._root(t,s);var v=this.func(p);if(v&&typeof v.then==="function"){throw new Error("Selector processor returned a promise to a synchronous call.")}var _=undefined;if(s.updateSelector&&typeof t!=="string"){_=p.toString();t.selector=_}return{transform:v,root:p,string:_}};t.ast=function ast(t,s){return this._run(t,s).then((function(t){return t.root}))};t.astSync=function astSync(t,s){return this._runSync(t,s).root};t.transform=function transform(t,s){return this._run(t,s).then((function(t){return t.transform}))};t.transformSync=function transformSync(t,s){return this._runSync(t,s).transform};t.process=function process(t,s){return this._run(t,s).then((function(t){return t.string||t.root.toString()}))};t.processSync=function processSync(t,s){var p=this._runSync(t,s);return p.string||p.root.toString()};return Processor}();s["default"]=_;t.exports=s.default},888:(t,s,p)=>{"use strict";s.__esModule=true;s.unescapeValue=unescapeValue;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=_interopRequireDefault(p(923));var T=_interopRequireDefault(p(594));var O=p(229);var P;function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var k=p(125);var E=/^('|")([^]*)\1$/;var D=k((function(){}),"Assigning an attribute a value containing characters that might need to be escaped is deprecated. "+"Call attribute.setValue() instead.");var I=k((function(){}),"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");var q=k((function(){}),"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function unescapeValue(t){var s=false;var p=null;var v=t;var T=v.match(E);if(T){p=T[1];v=T[2]}v=(0,_["default"])(v);if(v!==t){s=true}return{deprecatedUsage:s,unescaped:v,quoteMark:p}}function handleDeprecatedContructorOpts(t){if(t.quoteMark!==undefined){return t}if(t.value===undefined){return t}q();var s=unescapeValue(t.value),p=s.quoteMark,v=s.unescaped;if(!t.raws){t.raws={}}if(t.raws.value===undefined){t.raws.value=t.value}t.value=v;t.quoteMark=p;return t}var L=function(t){_inheritsLoose(Attribute,t);function Attribute(s){var p;if(s===void 0){s={}}p=t.call(this,handleDeprecatedContructorOpts(s))||this;p.type=O.ATTRIBUTE;p.raws=p.raws||{};Object.defineProperty(p.raws,"unquoted",{get:k((function(){return p.value}),"attr.raws.unquoted is deprecated. Call attr.value instead."),set:k((function(){return p.value}),"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")});p._constructed=true;return p}var s=Attribute.prototype;s.getQuotedValue=function getQuotedValue(t){if(t===void 0){t={}}var s=this._determineQuoteMark(t);var p=R[s];var _=(0,v["default"])(this._value,p);return _};s._determineQuoteMark=function _determineQuoteMark(t){return t.smart?this.smartQuoteMark(t):this.preferredQuoteMark(t)};s.setValue=function setValue(t,s){if(s===void 0){s={}}this._value=t;this._quoteMark=this._determineQuoteMark(s);this._syncRawValue()};s.smartQuoteMark=function smartQuoteMark(t){var s=this.value;var p=s.replace(/[^']/g,"").length;var _=s.replace(/[^"]/g,"").length;if(p+_===0){var T=(0,v["default"])(s,{isIdentifier:true});if(T===s){return Attribute.NO_QUOTE}else{var O=this.preferredQuoteMark(t);if(O===Attribute.NO_QUOTE){var P=this.quoteMark||t.quoteMark||Attribute.DOUBLE_QUOTE;var k=R[P];var E=(0,v["default"])(s,k);if(E.length<T.length){return P}}return O}}else if(_===p){return this.preferredQuoteMark(t)}else if(_<p){return Attribute.DOUBLE_QUOTE}else{return Attribute.SINGLE_QUOTE}};s.preferredQuoteMark=function preferredQuoteMark(t){var s=t.preferCurrentQuoteMark?this.quoteMark:t.quoteMark;if(s===undefined){s=t.preferCurrentQuoteMark?t.quoteMark:this.quoteMark}if(s===undefined){s=Attribute.DOUBLE_QUOTE}return s};s._syncRawValue=function _syncRawValue(){var t=(0,v["default"])(this._value,R[this.quoteMark]);if(t===this._value){if(this.raws){delete this.raws.value}}else{this.raws.value=t}};s._handleEscapes=function _handleEscapes(t,s){if(this._constructed){var p=(0,v["default"])(s,{isIdentifier:true});if(p!==s){this.raws[t]=p}else{delete this.raws[t]}}};s._spacesFor=function _spacesFor(t){var s={before:"",after:""};var p=this.spaces[t]||{};var v=this.raws.spaces&&this.raws.spaces[t]||{};return Object.assign(s,p,v)};s._stringFor=function _stringFor(t,s,p){if(s===void 0){s=t}if(p===void 0){p=defaultAttrConcat}var v=this._spacesFor(s);return p(this.stringifyProperty(t),v)};s.offsetOf=function offsetOf(t){var s=1;var p=this._spacesFor("attribute");s+=p.before.length;if(t==="namespace"||t==="ns"){return this.namespace?s:-1}if(t==="attributeNS"){return s}s+=this.namespaceString.length;if(this.namespace){s+=1}if(t==="attribute"){return s}s+=this.stringifyProperty("attribute").length;s+=p.after.length;var v=this._spacesFor("operator");s+=v.before.length;var _=this.stringifyProperty("operator");if(t==="operator"){return _?s:-1}s+=_.length;s+=v.after.length;var T=this._spacesFor("value");s+=T.before.length;var O=this.stringifyProperty("value");if(t==="value"){return O?s:-1}s+=O.length;s+=T.after.length;var P=this._spacesFor("insensitive");s+=P.before.length;if(t==="insensitive"){return this.insensitive?s:-1}return-1};s.toString=function toString(){var t=this;var s=[this.rawSpaceBefore,"["];s.push(this._stringFor("qualifiedAttribute","attribute"));if(this.operator&&(this.value||this.value==="")){s.push(this._stringFor("operator"));s.push(this._stringFor("value"));s.push(this._stringFor("insensitiveFlag","insensitive",(function(s,p){if(s.length>0&&!t.quoted&&p.before.length===0&&!(t.spaces.value&&t.spaces.value.after)){p.before=" "}return defaultAttrConcat(s,p)})))}s.push("]");s.push(this.rawSpaceAfter);return s.join("")};_createClass(Attribute,[{key:"quoted",get:function get(){var t=this.quoteMark;return t==="'"||t==='"'},set:function set(t){I()}},{key:"quoteMark",get:function get(){return this._quoteMark},set:function set(t){if(!this._constructed){this._quoteMark=t;return}if(this._quoteMark!==t){this._quoteMark=t;this._syncRawValue()}}},{key:"qualifiedAttribute",get:function get(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function get(){return this.insensitive?"i":""}},{key:"value",get:function get(){return this._value},set:function set(t){if(this._constructed){var s=unescapeValue(t),p=s.deprecatedUsage,v=s.unescaped,_=s.quoteMark;if(p){D()}if(v===this._value&&_===this._quoteMark){return}this._value=v;this._quoteMark=_;this._syncRawValue()}else{this._value=t}}},{key:"insensitive",get:function get(){return this._insensitive},set:function set(t){if(!t){this._insensitive=false;if(this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")){this.raws.insensitiveFlag=undefined}}this._insensitive=t}},{key:"attribute",get:function get(){return this._attribute},set:function set(t){this._handleEscapes("attribute",t);this._attribute=t}}]);return Attribute}(T["default"]);s["default"]=L;L.NO_QUOTE=null;L.SINGLE_QUOTE="'";L.DOUBLE_QUOTE='"';var R=(P={"'":{quotes:"single",wrap:true},'"':{quotes:"double",wrap:true}},P[null]={isIdentifier:true},P);function defaultAttrConcat(t,s){return""+s.before+t+s.after}},404:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=p(349);var T=_interopRequireDefault(p(519));var O=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var P=function(t){_inheritsLoose(ClassName,t);function ClassName(s){var p;p=t.call(this,s)||this;p.type=O.CLASS;p._constructed=true;return p}var s=ClassName.prototype;s.valueToString=function valueToString(){return"."+t.prototype.valueToString.call(this)};_createClass(ClassName,[{key:"value",get:function get(){return this._value},set:function set(t){if(this._constructed){var s=(0,v["default"])(t,{isIdentifier:true});if(s!==t){(0,_.ensureObject)(this,"raws");this.raws.value=s}else if(this.raws){delete this.raws.value}}this._value=t}}]);return ClassName}(T["default"]);s["default"]=P;t.exports=s.default},764:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Combinator,t);function Combinator(s){var p;p=t.call(this,s)||this;p.type=_.COMBINATOR;return p}return Combinator}(v["default"]);s["default"]=T;t.exports=s.default},334:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Comment,t);function Comment(s){var p;p=t.call(this,s)||this;p.type=_.COMMENT;return p}return Comment}(v["default"]);s["default"]=T;t.exports=s.default},590:(t,s,p)=>{"use strict";s.__esModule=true;s.universal=s.tag=s.string=s.selector=s.root=s.pseudo=s.nesting=s.id=s.comment=s.combinator=s.className=s.attribute=void 0;var v=_interopRequireDefault(p(888));var _=_interopRequireDefault(p(404));var T=_interopRequireDefault(p(764));var O=_interopRequireDefault(p(334));var P=_interopRequireDefault(p(419));var k=_interopRequireDefault(p(654));var E=_interopRequireDefault(p(638));var D=_interopRequireDefault(p(255));var I=_interopRequireDefault(p(823));var q=_interopRequireDefault(p(23));var L=_interopRequireDefault(p(155));var R=_interopRequireDefault(p(302));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var A=function attribute(t){return new v["default"](t)};s.attribute=A;var x=function className(t){return new _["default"](t)};s.className=x;var C=function combinator(t){return new T["default"](t)};s.combinator=C;var N=function comment(t){return new O["default"](t)};s.comment=N;var M=function id(t){return new P["default"](t)};s.id=M;var j=function nesting(t){return new k["default"](t)};s.nesting=j;var F=function pseudo(t){return new E["default"](t)};s.pseudo=F;var U=function root(t){return new D["default"](t)};s.root=U;var Y=function selector(t){return new I["default"](t)};s.selector=Y;var B=function string(t){return new q["default"](t)};s.string=B;var Q=function tag(t){return new L["default"](t)};s.tag=Q;var G=function universal(t){return new R["default"](t)};s.universal=G},118:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=_interopRequireWildcard(p(229));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _createForOfIteratorHelperLoose(t,s){var p;if(typeof Symbol==="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(p=_unsupportedIterableToArray(t))||s&&t&&typeof t.length==="number"){if(p)t=p;var v=0;return function(){if(v>=t.length)return{done:true};return{done:false,value:t[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}p=t[Symbol.iterator]();return p.next.bind(p)}function _unsupportedIterableToArray(t,s){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,s);var p=Object.prototype.toString.call(t).slice(8,-1);if(p==="Object"&&t.constructor)p=t.constructor.name;if(p==="Map"||p==="Set")return Array.from(t);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return _arrayLikeToArray(t,s)}function _arrayLikeToArray(t,s){if(s==null||s>t.length)s=t.length;for(var p=0,v=new Array(s);p<s;p++){v[p]=t[p]}return v}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Container,t);function Container(s){var p;p=t.call(this,s)||this;if(!p.nodes){p.nodes=[]}return p}var s=Container.prototype;s.append=function append(t){t.parent=this;this.nodes.push(t);return this};s.prepend=function prepend(t){t.parent=this;this.nodes.unshift(t);return this};s.at=function at(t){return this.nodes[t]};s.index=function index(t){if(typeof t==="number"){return t}return this.nodes.indexOf(t)};s.removeChild=function removeChild(t){t=this.index(t);this.at(t).parent=undefined;this.nodes.splice(t,1);var s;for(var p in this.indexes){s=this.indexes[p];if(s>=t){this.indexes[p]=s-1}}return this};s.removeAll=function removeAll(){for(var t=_createForOfIteratorHelperLoose(this.nodes),s;!(s=t()).done;){var p=s.value;p.parent=undefined}this.nodes=[];return this};s.empty=function empty(){return this.removeAll()};s.insertAfter=function insertAfter(t,s){s.parent=this;var p=this.index(t);this.nodes.splice(p+1,0,s);s.parent=this;var v;for(var _ in this.indexes){v=this.indexes[_];if(p<=v){this.indexes[_]=v+1}}return this};s.insertBefore=function insertBefore(t,s){s.parent=this;var p=this.index(t);this.nodes.splice(p,0,s);s.parent=this;var v;for(var _ in this.indexes){v=this.indexes[_];if(v<=p){this.indexes[_]=v+1}}return this};s._findChildAtPosition=function _findChildAtPosition(t,s){var p=undefined;this.each((function(v){if(v.atPosition){var _=v.atPosition(t,s);if(_){p=_;return false}}else if(v.isAtPosition(t,s)){p=v;return false}}));return p};s.atPosition=function atPosition(t,s){if(this.isAtPosition(t,s)){return this._findChildAtPosition(t,s)||this}else{return undefined}};s._inferEndPosition=function _inferEndPosition(){if(this.last&&this.last.source&&this.last.source.end){this.source=this.source||{};this.source.end=this.source.end||{};Object.assign(this.source.end,this.last.source.end)}};s.each=function each(t){if(!this.lastEach){this.lastEach=0}if(!this.indexes){this.indexes={}}this.lastEach++;var s=this.lastEach;this.indexes[s]=0;if(!this.length){return undefined}var p,v;while(this.indexes[s]<this.length){p=this.indexes[s];v=t(this.at(p),p);if(v===false){break}this.indexes[s]+=1}delete this.indexes[s];if(v===false){return false}};s.walk=function walk(t){return this.each((function(s,p){var v=t(s,p);if(v!==false&&s.length){v=s.walk(t)}if(v===false){return false}}))};s.walkAttributes=function walkAttributes(t){var s=this;return this.walk((function(p){if(p.type===_.ATTRIBUTE){return t.call(s,p)}}))};s.walkClasses=function walkClasses(t){var s=this;return this.walk((function(p){if(p.type===_.CLASS){return t.call(s,p)}}))};s.walkCombinators=function walkCombinators(t){var s=this;return this.walk((function(p){if(p.type===_.COMBINATOR){return t.call(s,p)}}))};s.walkComments=function walkComments(t){var s=this;return this.walk((function(p){if(p.type===_.COMMENT){return t.call(s,p)}}))};s.walkIds=function walkIds(t){var s=this;return this.walk((function(p){if(p.type===_.ID){return t.call(s,p)}}))};s.walkNesting=function walkNesting(t){var s=this;return this.walk((function(p){if(p.type===_.NESTING){return t.call(s,p)}}))};s.walkPseudos=function walkPseudos(t){var s=this;return this.walk((function(p){if(p.type===_.PSEUDO){return t.call(s,p)}}))};s.walkTags=function walkTags(t){var s=this;return this.walk((function(p){if(p.type===_.TAG){return t.call(s,p)}}))};s.walkUniversals=function walkUniversals(t){var s=this;return this.walk((function(p){if(p.type===_.UNIVERSAL){return t.call(s,p)}}))};s.split=function split(t){var s=this;var p=[];return this.reduce((function(v,_,T){var O=t.call(s,_);p.push(_);if(O){v.push(p);p=[]}else if(T===s.length-1){v.push(p)}return v}),[])};s.map=function map(t){return this.nodes.map(t)};s.reduce=function reduce(t,s){return this.nodes.reduce(t,s)};s.every=function every(t){return this.nodes.every(t)};s.some=function some(t){return this.nodes.some(t)};s.filter=function filter(t){return this.nodes.filter(t)};s.sort=function sort(t){return this.nodes.sort(t)};s.toString=function toString(){return this.map(String).join("")};_createClass(Container,[{key:"first",get:function get(){return this.at(0)}},{key:"last",get:function get(){return this.at(this.length-1)}},{key:"length",get:function get(){return this.nodes.length}}]);return Container}(v["default"]);s["default"]=T;t.exports=s.default},68:(t,s,p)=>{"use strict";s.__esModule=true;s.isNode=isNode;s.isPseudoElement=isPseudoElement;s.isPseudoClass=isPseudoClass;s.isContainer=isContainer;s.isNamespace=isNamespace;s.isUniversal=s.isTag=s.isString=s.isSelector=s.isRoot=s.isPseudo=s.isNesting=s.isIdentifier=s.isComment=s.isCombinator=s.isClassName=s.isAttribute=void 0;var v=p(229);var _;var T=(_={},_[v.ATTRIBUTE]=true,_[v.CLASS]=true,_[v.COMBINATOR]=true,_[v.COMMENT]=true,_[v.ID]=true,_[v.NESTING]=true,_[v.PSEUDO]=true,_[v.ROOT]=true,_[v.SELECTOR]=true,_[v.STRING]=true,_[v.TAG]=true,_[v.UNIVERSAL]=true,_);function isNode(t){return typeof t==="object"&&T[t.type]}function isNodeType(t,s){return isNode(s)&&s.type===t}var O=isNodeType.bind(null,v.ATTRIBUTE);s.isAttribute=O;var P=isNodeType.bind(null,v.CLASS);s.isClassName=P;var k=isNodeType.bind(null,v.COMBINATOR);s.isCombinator=k;var E=isNodeType.bind(null,v.COMMENT);s.isComment=E;var D=isNodeType.bind(null,v.ID);s.isIdentifier=D;var I=isNodeType.bind(null,v.NESTING);s.isNesting=I;var q=isNodeType.bind(null,v.PSEUDO);s.isPseudo=q;var L=isNodeType.bind(null,v.ROOT);s.isRoot=L;var R=isNodeType.bind(null,v.SELECTOR);s.isSelector=R;var A=isNodeType.bind(null,v.STRING);s.isString=A;var x=isNodeType.bind(null,v.TAG);s.isTag=x;var C=isNodeType.bind(null,v.UNIVERSAL);s.isUniversal=C;function isPseudoElement(t){return q(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function isPseudoClass(t){return q(t)&&!isPseudoElement(t)}function isContainer(t){return!!(isNode(t)&&t.walk)}function isNamespace(t){return O(t)||x(t)}},419:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(ID,t);function ID(s){var p;p=t.call(this,s)||this;p.type=_.ID;return p}var s=ID.prototype;s.valueToString=function valueToString(){return"#"+t.prototype.valueToString.call(this)};return ID}(v["default"]);s["default"]=T;t.exports=s.default},877:(t,s,p)=>{"use strict";s.__esModule=true;var v=p(229);Object.keys(v).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===v[t])return;s[t]=v[t]}));var _=p(590);Object.keys(_).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===_[t])return;s[t]=_[t]}));var T=p(68);Object.keys(T).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in s&&s[t]===T[t])return;s[t]=T[t]}))},594:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(811));var _=p(349);var T=_interopRequireDefault(p(519));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var O=function(t){_inheritsLoose(Namespace,t);function Namespace(){return t.apply(this,arguments)||this}var s=Namespace.prototype;s.qualifiedName=function qualifiedName(t){if(this.namespace){return this.namespaceString+"|"+t}else{return t}};s.valueToString=function valueToString(){return this.qualifiedName(t.prototype.valueToString.call(this))};_createClass(Namespace,[{key:"namespace",get:function get(){return this._namespace},set:function set(t){if(t===true||t==="*"||t==="&"){this._namespace=t;if(this.raws){delete this.raws.namespace}return}var s=(0,v["default"])(t,{isIdentifier:true});this._namespace=t;if(s!==t){(0,_.ensureObject)(this,"raws");this.raws.namespace=s}else if(this.raws){delete this.raws.namespace}}},{key:"ns",get:function get(){return this._namespace},set:function set(t){this.namespace=t}},{key:"namespaceString",get:function get(){if(this.namespace){var t=this.stringifyProperty("namespace");if(t===true){return""}else{return t}}else{return""}}}]);return Namespace}(T["default"]);s["default"]=O;t.exports=s.default},654:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Nesting,t);function Nesting(s){var p;p=t.call(this,s)||this;p.type=_.NESTING;p.value="&";return p}return Nesting}(v["default"]);s["default"]=T;t.exports=s.default},519:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=p(349);function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}var _=function cloneNode(t,s){if(typeof t!=="object"||t===null){return t}var p=new t.constructor;for(var v in t){if(!t.hasOwnProperty(v)){continue}var _=t[v];var T=typeof _;if(v==="parent"&&T==="object"){if(s){p[v]=s}}else if(_ instanceof Array){p[v]=_.map((function(t){return cloneNode(t,p)}))}else{p[v]=cloneNode(_,p)}}return p};var T=function(){function Node(t){if(t===void 0){t={}}Object.assign(this,t);this.spaces=this.spaces||{};this.spaces.before=this.spaces.before||"";this.spaces.after=this.spaces.after||""}var t=Node.prototype;t.remove=function remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this};t.replaceWith=function replaceWith(){if(this.parent){for(var t in arguments){this.parent.insertBefore(this,arguments[t])}this.remove()}return this};t.next=function next(){return this.parent.at(this.parent.index(this)+1)};t.prev=function prev(){return this.parent.at(this.parent.index(this)-1)};t.clone=function clone(t){if(t===void 0){t={}}var s=_(this);for(var p in t){s[p]=t[p]}return s};t.appendToPropertyAndEscape=function appendToPropertyAndEscape(t,s,p){if(!this.raws){this.raws={}}var v=this[t];var _=this.raws[t];this[t]=v+s;if(_||p!==s){this.raws[t]=(_||v)+p}else{delete this.raws[t]}};t.setPropertyAndEscape=function setPropertyAndEscape(t,s,p){if(!this.raws){this.raws={}}this[t]=s;this.raws[t]=p};t.setPropertyWithoutEscape=function setPropertyWithoutEscape(t,s){this[t]=s;if(this.raws){delete this.raws[t]}};t.isAtPosition=function isAtPosition(t,s){if(this.source&&this.source.start&&this.source.end){if(this.source.start.line>t){return false}if(this.source.end.line<t){return false}if(this.source.start.line===t&&this.source.start.column>s){return false}if(this.source.end.line===t&&this.source.end.column<s){return false}return true}return undefined};t.stringifyProperty=function stringifyProperty(t){return this.raws&&this.raws[t]||this[t]};t.valueToString=function valueToString(){return String(this.stringifyProperty("value"))};t.toString=function toString(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")};_createClass(Node,[{key:"rawSpaceBefore",get:function get(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;if(t===undefined){t=this.spaces&&this.spaces.before}return t||""},set:function set(t){(0,v.ensureObject)(this,"raws","spaces");this.raws.spaces.before=t}},{key:"rawSpaceAfter",get:function get(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;if(t===undefined){t=this.spaces.after}return t||""},set:function set(t){(0,v.ensureObject)(this,"raws","spaces");this.raws.spaces.after=t}}]);return Node}();s["default"]=T;t.exports=s.default},638:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(118));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Pseudo,t);function Pseudo(s){var p;p=t.call(this,s)||this;p.type=_.PSEUDO;return p}var s=Pseudo.prototype;s.toString=function toString(){var t=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),t,this.rawSpaceAfter].join("")};return Pseudo}(v["default"]);s["default"]=T;t.exports=s.default},255:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(118));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperties(t,s){for(var p=0;p<s.length;p++){var v=s[p];v.enumerable=v.enumerable||false;v.configurable=true;if("value"in v)v.writable=true;Object.defineProperty(t,v.key,v)}}function _createClass(t,s,p){if(s)_defineProperties(t.prototype,s);if(p)_defineProperties(t,p);return t}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Root,t);function Root(s){var p;p=t.call(this,s)||this;p.type=_.ROOT;return p}var s=Root.prototype;s.toString=function toString(){var t=this.reduce((function(t,s){t.push(String(s));return t}),[]).join(",");return this.trailingComma?t+",":t};s.error=function error(t,s){if(this._error){return this._error(t,s)}else{return new Error(t)}};_createClass(Root,[{key:"errorGenerator",set:function set(t){this._error=t}}]);return Root}(v["default"]);s["default"]=T;t.exports=s.default},823:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(118));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Selector,t);function Selector(s){var p;p=t.call(this,s)||this;p.type=_.SELECTOR;return p}return Selector}(v["default"]);s["default"]=T;t.exports=s.default},23:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(519));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(String,t);function String(s){var p;p=t.call(this,s)||this;p.type=_.STRING;return p}return String}(v["default"]);s["default"]=T;t.exports=s.default},155:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(594));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Tag,t);function Tag(s){var p;p=t.call(this,s)||this;p.type=_.TAG;return p}return Tag}(v["default"]);s["default"]=T;t.exports=s.default},229:(t,s)=>{"use strict";s.__esModule=true;s.UNIVERSAL=s.ATTRIBUTE=s.CLASS=s.COMBINATOR=s.COMMENT=s.ID=s.NESTING=s.PSEUDO=s.ROOT=s.SELECTOR=s.STRING=s.TAG=void 0;var p="tag";s.TAG=p;var v="string";s.STRING=v;var _="selector";s.SELECTOR=_;var T="root";s.ROOT=T;var O="pseudo";s.PSEUDO=O;var P="nesting";s.NESTING=P;var k="id";s.ID=k;var E="comment";s.COMMENT=E;var D="combinator";s.COMBINATOR=D;var I="class";s.CLASS=I;var q="attribute";s.ATTRIBUTE=q;var L="universal";s.UNIVERSAL=L},302:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=void 0;var v=_interopRequireDefault(p(594));var _=p(229);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _inheritsLoose(t,s){t.prototype=Object.create(s.prototype);t.prototype.constructor=t;_setPrototypeOf(t,s)}function _setPrototypeOf(t,s){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,s){t.__proto__=s;return t};return _setPrototypeOf(t,s)}var T=function(t){_inheritsLoose(Universal,t);function Universal(s){var p;p=t.call(this,s)||this;p.type=_.UNIVERSAL;p.value="*";return p}return Universal}(v["default"]);s["default"]=T;t.exports=s.default},886:(t,s)=>{"use strict";s.__esModule=true;s["default"]=sortAscending;function sortAscending(t){return t.sort((function(t,s){return t-s}))}t.exports=s.default},830:(t,s)=>{"use strict";s.__esModule=true;s.combinator=s.word=s.comment=s.str=s.tab=s.newline=s.feed=s.cr=s.backslash=s.bang=s.slash=s.doubleQuote=s.singleQuote=s.space=s.greaterThan=s.pipe=s.equals=s.plus=s.caret=s.tilde=s.dollar=s.closeSquare=s.openSquare=s.closeParenthesis=s.openParenthesis=s.semicolon=s.colon=s.comma=s.at=s.asterisk=s.ampersand=void 0;var p=38;s.ampersand=p;var v=42;s.asterisk=v;var _=64;s.at=_;var T=44;s.comma=T;var O=58;s.colon=O;var P=59;s.semicolon=P;var k=40;s.openParenthesis=k;var E=41;s.closeParenthesis=E;var D=91;s.openSquare=D;var I=93;s.closeSquare=I;var q=36;s.dollar=q;var L=126;s.tilde=L;var R=94;s.caret=R;var A=43;s.plus=A;var x=61;s.equals=x;var C=124;s.pipe=C;var N=62;s.greaterThan=N;var M=32;s.space=M;var j=39;s.singleQuote=j;var F=34;s.doubleQuote=F;var U=47;s.slash=U;var Y=33;s.bang=Y;var B=92;s.backslash=B;var Q=13;s.cr=Q;var G=12;s.feed=G;var V=10;s.newline=V;var $=9;s.tab=$;var H=j;s.str=H;var z=-1;s.comment=z;var J=-2;s.word=J;var K=-3;s.combinator=K},135:(t,s,p)=>{"use strict";s.__esModule=true;s["default"]=tokenize;s.FIELDS=void 0;var v=_interopRequireWildcard(p(830));var _,T;function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var s=_getRequireWildcardCache();if(s&&s.has(t)){return s.get(t)}var p={};var v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in t){if(Object.prototype.hasOwnProperty.call(t,_)){var T=v?Object.getOwnPropertyDescriptor(t,_):null;if(T&&(T.get||T.set)){Object.defineProperty(p,_,T)}else{p[_]=t[_]}}}p["default"]=t;if(s){s.set(t,p)}return p}var O=(_={},_[v.tab]=true,_[v.newline]=true,_[v.cr]=true,_[v.feed]=true,_);var P=(T={},T[v.space]=true,T[v.tab]=true,T[v.newline]=true,T[v.cr]=true,T[v.feed]=true,T[v.ampersand]=true,T[v.asterisk]=true,T[v.bang]=true,T[v.comma]=true,T[v.colon]=true,T[v.semicolon]=true,T[v.openParenthesis]=true,T[v.closeParenthesis]=true,T[v.openSquare]=true,T[v.closeSquare]=true,T[v.singleQuote]=true,T[v.doubleQuote]=true,T[v.plus]=true,T[v.pipe]=true,T[v.tilde]=true,T[v.greaterThan]=true,T[v.equals]=true,T[v.dollar]=true,T[v.caret]=true,T[v.slash]=true,T);var k={};var E="0123456789abcdefABCDEF";for(var D=0;D<E.length;D++){k[E.charCodeAt(D)]=true}function consumeWord(t,s){var p=s;var _;do{_=t.charCodeAt(p);if(P[_]){return p-1}else if(_===v.backslash){p=consumeEscape(t,p)+1}else{p++}}while(p<t.length);return p-1}function consumeEscape(t,s){var p=s;var _=t.charCodeAt(p+1);if(O[_]){}else if(k[_]){var T=0;do{p++;T++;_=t.charCodeAt(p+1)}while(k[_]&&T<6);if(T<6&&_===v.space){p++}}else{p++}return p}var I={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};s.FIELDS=I;function tokenize(t){var s=[];var p=t.css.valueOf();var _=p,T=_.length;var O=-1;var P=1;var k=0;var E=0;var D,I,q,L,R,A,x,C,N,M,j,F,U;function unclosed(s,v){if(t.safe){p+=v;N=p.length-1}else{throw t.error("Unclosed "+s,P,k-O,k)}}while(k<T){D=p.charCodeAt(k);if(D===v.newline){O=k;P+=1}switch(D){case v.space:case v.tab:case v.newline:case v.cr:case v.feed:N=k;do{N+=1;D=p.charCodeAt(N);if(D===v.newline){O=N;P+=1}}while(D===v.space||D===v.newline||D===v.tab||D===v.cr||D===v.feed);U=v.space;L=P;q=N-O-1;E=N;break;case v.plus:case v.greaterThan:case v.tilde:case v.pipe:N=k;do{N+=1;D=p.charCodeAt(N)}while(D===v.plus||D===v.greaterThan||D===v.tilde||D===v.pipe);U=v.combinator;L=P;q=k-O;E=N;break;case v.asterisk:case v.ampersand:case v.bang:case v.comma:case v.equals:case v.dollar:case v.caret:case v.openSquare:case v.closeSquare:case v.colon:case v.semicolon:case v.openParenthesis:case v.closeParenthesis:N=k;U=D;L=P;q=k-O;E=N+1;break;case v.singleQuote:case v.doubleQuote:F=D===v.singleQuote?"'":'"';N=k;do{R=false;N=p.indexOf(F,N+1);if(N===-1){unclosed("quote",F)}A=N;while(p.charCodeAt(A-1)===v.backslash){A-=1;R=!R}}while(R);U=v.str;L=P;q=k-O;E=N+1;break;default:if(D===v.slash&&p.charCodeAt(k+1)===v.asterisk){N=p.indexOf("*/",k+2)+1;if(N===0){unclosed("comment","*/")}I=p.slice(k,N+1);C=I.split("\n");x=C.length-1;if(x>0){M=P+x;j=N-C[x].length}else{M=P;j=O}U=v.comment;P=M;L=M;q=N-j}else if(D===v.slash){N=k;U=D;L=P;q=k-O;E=N+1}else{N=consumeWord(p,k);U=v.word;L=P;q=N-O}E=N+1;break}s.push([U,P,k-O,L,q,k,E]);if(j){O=j;j=null}k=E}return s}},385:(t,s)=>{"use strict";s.__esModule=true;s["default"]=ensureObject;function ensureObject(t){for(var s=arguments.length,p=new Array(s>1?s-1:0),v=1;v<s;v++){p[v-1]=arguments[v]}while(p.length>0){var _=p.shift();if(!t[_]){t[_]={}}t=t[_]}}t.exports=s.default},852:(t,s)=>{"use strict";s.__esModule=true;s["default"]=getProp;function getProp(t){for(var s=arguments.length,p=new Array(s>1?s-1:0),v=1;v<s;v++){p[v-1]=arguments[v]}while(p.length>0){var _=p.shift();if(!t[_]){return undefined}t=t[_]}return t}t.exports=s.default},349:(t,s,p)=>{"use strict";s.__esModule=true;s.stripComments=s.ensureObject=s.getProp=s.unesc=void 0;var v=_interopRequireDefault(p(923));s.unesc=v["default"];var _=_interopRequireDefault(p(852));s.getProp=_["default"];var T=_interopRequireDefault(p(385));s.ensureObject=T["default"];var O=_interopRequireDefault(p(768));s.stripComments=O["default"];function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}},768:(t,s)=>{"use strict";s.__esModule=true;s["default"]=stripComments;function stripComments(t){var s="";var p=t.indexOf("/*");var v=0;while(p>=0){s=s+t.slice(v,p);var _=t.indexOf("*/",p+2);if(_<0){return s}v=_+2;p=t.indexOf("/*",v)}s=s+t.slice(v);return s}t.exports=s.default},923:(t,s)=>{"use strict";s.__esModule=true;s["default"]=unesc;function gobbleHex(t){var s=t.toLowerCase();var p="";var v=false;for(var _=0;_<6&&s[_]!==undefined;_++){var T=s.charCodeAt(_);var O=T>=97&&T<=102||T>=48&&T<=57;v=T===32;if(!O){break}p+=s[_]}if(p.length===0){return undefined}var P=parseInt(p,16);var k=P>=55296&&P<=57343;if(k||P===0||P>1114111){return["�",p.length+(v?1:0)]}return[String.fromCodePoint(P),p.length+(v?1:0)]}var p=/\\/;function unesc(t){var s=p.test(t);if(!s){return t}var v="";for(var _=0;_<t.length;_++){if(t[_]==="\\"){var T=gobbleHex(t.slice(_+1,_+7));if(T!==undefined){v+=T[0];_+=T[1];continue}if(t[_+1]==="\\"){v+="\\";_++;continue}if(t.length===_+1){v+=t[_]}continue}v+=t[_]}return v}t.exports=s.default},125:(t,s,p)=>{t.exports=p(837).deprecate},837:t=>{"use strict";t.exports=require("util")},275:(t,s,p)=>{"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var v=e(p(98));function n(t){if(!t.nodes.length)return void t.remove();const s=t.nodes.filter((t=>"comment"===t.type));s.length===t.nodes.length&&t.replaceWith(...s)}function o(t){const s=t.parent,p=s.index(t);if(p){n(s.cloneBefore().removeAll().append(s.nodes.slice(0,p)))}return s.before(t),s}function r(t,s){if(s<2)throw new Error("n must be greater than 1");if(t.length<2)throw new Error("s must be greater than 1");if(Math.pow(t.length,s)>1e4)throw new Error("Too many combinations when trying to resolve a nested selector with lists, reduce the complexity of your selectors");const p=[];for(let t=0;t<s;t++)p[t]=0;const v=[];for(;;){const _=[];for(let T=s-1;T>=0;T--){let s=p[T];if(s>=t.length){if(s=0,p[T]=0,0===T)return v;p[T-1]+=1}_[T]=t[s]}v.push(_),p[p.length-1]++}}const _=v.default.pseudo({value:":is"});function a(t){const s=t.nodes.filter((t=>"tag"===t.type));s.length>1&&s.slice(1).forEach((t=>{const s=_.clone();t.replaceWith(s),s.append(t)}))}function l(t,s){let p=[],_=!1;const T=[...t.nodes];for(let t=0;t<T.length+1;t++){const O=T[t];if(O&&"combinator"!==O.type)"nesting"===O.type&&(_=!0),p.push(O);else{if(_){p=[];continue}if(p.length>1){const t=v.default.selector();p[0].replaceWith(t),p.slice(1).forEach((t=>{t.remove()})),p.forEach((s=>{t.append(s)})),c(t),s&&a(t),t.replaceWith(...t.nodes)}p=[]}}}function c(t){t.nodes.sort(((t,s)=>i(t.value,t.type)-i(s.value,s.type)))}function i(t,s){return"pseudo"===s&&t&&0===t.indexOf("::")?T.pseudoElement:T[s]}const T={universal:0,tag:1,id:2,class:3,attribute:4,selector:5,pseudo:6,pseudoElement:7,string:8,root:9,comment:10,nesting:9999};function u(t){const s=t.map((t=>v.default().astSync(t))).map((t=>d(t))),p=s[0];for(let t=1;t<s.length;t++)if(p.a!==s[t].a||p.b!==s[t].b||p.c!==s[t].c)return!1;return!0}function d(t){let s=0,p=0,_=0;if("universal"==t.type)return{a:0,b:0,c:0};if("id"===t.type)s+=1;else if("tag"===t.type)_+=1;else if("class"===t.type)p+=1;else if("attribute"===t.type)p+=1;else if("pseudo"===t.type&&0===t.value.indexOf("::"))_+=1;else if("pseudo"===t.type)switch(t.value){case":after":case":before":_+=1;break;case":is":case":has":case":not":if(t.nodes&&t.nodes.length>0){let v={a:0,b:0,c:0};t.nodes.forEach((t=>{const s=d(t);s.a>v.a?v=s:s.a<v.a||(s.b>v.b?v=s:s.b<v.b||s.c>v.c&&(v=s))})),s+=v.a,p+=v.b,_+=v.c}break;case"where":break;case":nth-child":case":nth-last-child":{const T=t.nodes.findIndex((t=>{t.value}));if(T>-1){const O=d(v.default.selector({nodes:t.nodes.slice(T+1),value:""}));s+=O.a,p+=O.b,_+=O.c}else s+=s,p+=p,_+=_}break;default:p+=1}else t.nodes&&t.nodes.length>0&&t.nodes.forEach((t=>{const v=d(t);s+=v.a,p+=v.b,_+=v.c}));return{a:s,b:p,c:_}}function f(t,s,p){let _=[];_=u(t)||p.noIsPseudoSelector?t.map((t=>v.default().astSync(t))):[v.default().astSync(`:is(${t.join(",")})`)];let T=[];for(let t=0;t<s.length;t++){const O=s[t];let P=1,k=[],E=0;if(v.default().astSync(O).walkNesting((()=>{E++})),E>1&&_.length>1)k=r(_,E),P=k.length;else{P=_.length;for(let t=0;t<_.length;t++){k.push([]);for(let s=0;s<E;s++)k[t].push(_[t])}}for(let t=0;t<P;t++){let s=0;const _=v.default().astSync(O);_.walk((_=>{if("nesting"!==_.type)return;let T=k[t][s];s++,"root"===T.type&&1===T.nodes.length&&(T=T.nodes[0]);const O=v.default().astSync(`:is(${T.toString()})`),P=h(T.nodes[0]),E=y(T.nodes[0]),D=h(_),I=y(_);if(P&&D)return void _.replaceWith(T.clone());if((P||E)&&(D||I)){const t=_.parent;return P&&"selector"===T.type?_.replaceWith(T.clone().nodes[0]):_.replaceWith(...T.clone().nodes),void(t&&t.nodes.length>1&&(c(t),p.noIsPseudoSelector||a(t)))}if(P){const t=_.parent;return _.replaceWith(T.clone().nodes[0]),void(t&&l(t,!p.noIsPseudoSelector))}if(E){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}if(m(_)){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}if(g(_)){const t=_.parent;return _.replaceWith(...T.clone().nodes),void(t&&l(t,!p.noIsPseudoSelector))}const q=_.parent;p.noIsPseudoSelector?_.replaceWith(...T.clone().nodes):_.replaceWith(...O.clone().nodes),q&&l(q,!p.noIsPseudoSelector)})),T.push(_.toString())}}return T}function h(t){return"combinator"!==t.type&&!(t.parent&&t.parent.nodes.length>1)}function y(t,s=null){if(h(t))return!1;if(!t.parent)return!1;if(!!t.parent.nodes.find((t=>"combinator"===t.type||"comment"===t.type)))return!1;return!(!!t.parent.nodes.find((t=>"nesting"===t.type))&&s&&!y(s))}function m(t){if(!t.parent)return!1;if(0!==t.parent.nodes.indexOf(t))return!1;for(let s=1;s<t.parent.nodes.length;s++)if("combinator"===t.parent.nodes[s].type&&" "!==t.parent.nodes[s].value&&">"!==t.parent.nodes[s].value)return!1;return!0}function g(t){if(h(t))return!0;if(!t.parent)return!1;for(let s=0;s<t.parent.nodes.length;s++)if("nesting"!==!t.parent.nodes[s].type&&(t.parent.nodes[s].prev()||t.parent.nodes[s].next())){if(t.parent.nodes[s].prev()&&"combinator"!==t.parent.nodes[s].prev().type)return!1;if(t.parent.nodes[s].next()&&"combinator"!==t.parent.nodes[s].next().type)return!1}return!0}const b=t=>{let s=[],p="",v=!1,_=0,T=!1,O=!1;for(let P of t)O?O=!1:"\\"===P?O=!0:T?P===T&&(T=!1):'"'===P||"'"===P?T=P:"("===P?_+=1:")"===P?_>0&&(_-=1):0===_&&","===P&&(v=!0),v?(""!==p&&s.push(p.trim()),p="",v=!1):p+=P;return s.push(p.trim()),s};var O=["container","document","media","supports"];function S(t){const s=o(t);var p,v;t.params=(p=s.params,v=t.params,b(p).map((t=>b(v).map((s=>`${t} and ${s}`)).join(", "))).join(", ")),n(s)}function W(t,s){t.each((t=>{(t=>"rule"===t.type&&"rule"===Object(t.parent).type&&t.selectors.every((t=>0===t.trim().indexOf("&")&&-1===t.indexOf("|"))))(t)?function(t,s){const p=o(t);t.selectors=f(p.selectors,t.selectors,s),("rule"===t.type&&"rule"===p.type&&t.selector===p.selector||"atrule"===t.type&&"atrule"===p.type&&t.params===p.params)&&t.append(...p.nodes),n(p)}(t,s):(t=>"atrule"===t.type&&"nest"===t.name&&"rule"===Object(t.parent).type&&b(t.params).every((t=>t.split("&").length>=2&&-1===t.indexOf("|"))))(t)?function(t,s,p){const v=o(t),_=v.clone().removeAll().append(t.nodes);t.replaceWith(_),_.selectors=f(v.selectors,b(t.params),p),n(v),s(_,p)}(t,W,s):(t=>"atrule"===t.type&&O.includes(t.name)&&"rule"===Object(t.parent).type)(t)?function(t,s,p){const v=o(t),_=v.clone().removeAll().append(t.nodes);t.append(_),n(v),s(_,p)}(t,W,s):(t=>"atrule"===t.type&&O.includes(t.name)&&"atrule"===Object(t.parent).type&&t.name===t.parent.name)(t)&&S(t),Object(t.nodes).length&&W(t,s)}))}function w(t){const s=Object(t).noIsPseudoSelector||!1;return{postcssPlugin:"postcss-nesting",Rule(t){W(t,{noIsPseudoSelector:s})}}}w.postcss=!0,t.exports=w}};var s={};function __nccwpck_require__(p){var v=s[p];if(v!==undefined){return v.exports}var _=s[p]={exports:{}};var T=true;try{t[p](_,_.exports,__nccwpck_require__);T=false}finally{if(T)delete s[p]}return _.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var p=__nccwpck_require__(275);module.exports=p})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={
|
|
1
|
+
(()=>{var e={772:e=>{e.exports=function(e){return{postcssPlugin:"postcss-page-break",Declaration(e){if(e.prop.startsWith("break-")&&/^break-(inside|before|after)/.test(e.prop)){if(e.value.search(/column|region/)>=0){return}let r;switch(e.value){case"page":r="always";break;case"avoid-page":r="avoid";break;default:r=e.value}const a="page-"+e.prop;if(e.parent.every((e=>e.prop!==a))){e.cloneBefore({prop:a,value:r})}}}}};e.exports.postcss=true}};var r={};function __nccwpck_require__(a){var t=r[a];if(t!==undefined){return t.exports}var p=r[a]={exports:{}};var o=true;try{e[a](p,p.exports,__nccwpck_require__);o=false}finally{if(o)delete r[a]}return p.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var a=__nccwpck_require__(772);module.exports=a})();
|