UNPKG

@codesandbox/sandpack-client

Version:

<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />

1 lines 37.9 kB
(this.csbJsonP=this.csbJsonP||[]).push([["vendors~vue-style-compiler"],{"../../node_modules/flatten/index.js":function(e,t){e.exports=function(e,t){return(t="number"==typeof t?t:1/0)?function e(s,r){return s.reduce((function(s,o){return Array.isArray(o)&&r<t?s.concat(e(o,r+1)):s.concat(o)}),[])}(e,1):Array.isArray(e)?e.map((function(e){return e})):e}},"../../node_modules/indexes-of/index.js":function(e,t){e.exports=function(e,t){for(var s=-1,r=[];-1!==(s=e.indexOf(t,s+1));)r.push(s);return r}},"../../node_modules/uniq/uniq.js":function(e,t,s){"use strict";e.exports=function(e,t,s){return 0===e.length?e:t?(s||e.sort(t),function(e,t){for(var s=1,r=e.length,o=e[0],n=e[0],i=1;i<r;++i)if(n=o,t(o=e[i],n)){if(i===s){s++;continue}e[s++]=o}return e.length=s,e}(e,t)):(s||e.sort(),function(e){for(var t=1,s=e.length,r=e[0],o=e[0],n=1;n<s;++n,o=r)if(o=r,(r=e[n])!==o){if(n===t){t++;continue}e[t++]=r}return e.length=t,e}(e))}},"./node_modules/postcss-selector-parser/dist/index.js":function(e,t,s){"use strict";t.__esModule=!0;var r=m(s("./node_modules/postcss-selector-parser/dist/processor.js")),o=m(s("./node_modules/postcss-selector-parser/dist/selectors/attribute.js")),n=m(s("./node_modules/postcss-selector-parser/dist/selectors/className.js")),i=m(s("./node_modules/postcss-selector-parser/dist/selectors/combinator.js")),c=m(s("./node_modules/postcss-selector-parser/dist/selectors/comment.js")),u=m(s("./node_modules/postcss-selector-parser/dist/selectors/id.js")),a=m(s("./node_modules/postcss-selector-parser/dist/selectors/nesting.js")),l=m(s("./node_modules/postcss-selector-parser/dist/selectors/pseudo.js")),p=m(s("./node_modules/postcss-selector-parser/dist/selectors/root.js")),f=m(s("./node_modules/postcss-selector-parser/dist/selectors/selector.js")),d=m(s("./node_modules/postcss-selector-parser/dist/selectors/string.js")),h=m(s("./node_modules/postcss-selector-parser/dist/selectors/tag.js")),y=m(s("./node_modules/postcss-selector-parser/dist/selectors/universal.js")),b=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t.default=e,t}(s("./node_modules/postcss-selector-parser/dist/selectors/types.js"));function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){return new r.default(e)};v.attribute=function(e){return new o.default(e)},v.className=function(e){return new n.default(e)},v.combinator=function(e){return new i.default(e)},v.comment=function(e){return new c.default(e)},v.id=function(e){return new u.default(e)},v.nesting=function(e){return new a.default(e)},v.pseudo=function(e){return new l.default(e)},v.root=function(e){return new p.default(e)},v.selector=function(e){return new f.default(e)},v.string=function(e){return new d.default(e)},v.tag=function(e){return new h.default(e)},v.universal=function(e){return new y.default(e)},Object.keys(b).forEach((function(e){"__esModule"!==e&&(v[e]=b[e])})),t.default=v,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/parser.js":function(e,t,s){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),o=T(s("../../node_modules/flatten/index.js")),n=T(s("../../node_modules/indexes-of/index.js")),i=T(s("../../node_modules/uniq/uniq.js")),c=T(s("./node_modules/postcss-selector-parser/dist/selectors/root.js")),u=T(s("./node_modules/postcss-selector-parser/dist/selectors/selector.js")),a=T(s("./node_modules/postcss-selector-parser/dist/selectors/className.js")),l=T(s("./node_modules/postcss-selector-parser/dist/selectors/comment.js")),p=T(s("./node_modules/postcss-selector-parser/dist/selectors/id.js")),f=T(s("./node_modules/postcss-selector-parser/dist/selectors/tag.js")),d=T(s("./node_modules/postcss-selector-parser/dist/selectors/string.js")),h=T(s("./node_modules/postcss-selector-parser/dist/selectors/pseudo.js")),y=T(s("./node_modules/postcss-selector-parser/dist/selectors/attribute.js")),b=T(s("./node_modules/postcss-selector-parser/dist/selectors/universal.js")),m=T(s("./node_modules/postcss-selector-parser/dist/selectors/combinator.js")),v=T(s("./node_modules/postcss-selector-parser/dist/selectors/nesting.js")),_=T(s("./node_modules/postcss-selector-parser/dist/sortAscending.js")),w=T(s("./node_modules/postcss-selector-parser/dist/tokenize.js")),k=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t.default=e,t}(s("./node_modules/postcss-selector-parser/dist/selectors/types.js"));function T(e){return e&&e.__esModule?e:{default:e}}var j=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.lossy=!1===t.options.lossless,this.position=0,this.root=new c.default;var s=new u.default;return this.root.append(s),this.current=s,this.lossy?this.tokens=(0,w.default)({safe:t.safe,css:t.css.trim()}):this.tokens=(0,w.default)(t),this.loop()}return e.prototype.attribute=function(){var e="",t=void 0,s=this.currToken;for(this.position++;this.position<this.tokens.length&&"]"!==this.currToken[0];)e+=this.tokens[this.position][1],this.position++;this.position!==this.tokens.length||~e.indexOf("]")||this.error("Expected a closing square bracket.");var r=e.split(/((?:[*~^$|]?=))([^]*)/),o=r[0].split(/(\|)/g),n={operator:r[1],value:r[2],source:{start:{line:s[2],column:s[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:s[4]};if(o.length>1?(""===o[0]&&(o[0]=!0),n.attribute=this.parseValue(o[2]),n.namespace=this.parseNamespace(o[0])):n.attribute=this.parseValue(r[0]),t=new y.default(n),r[2]){var i=r[2].split(/(\s+i\s*?)$/),c=i[0].trim();t.value=this.lossy?c:i[0],i[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=i[1])),t.quoted="'"===c[0]||'"'===c[0],t.raws.unquoted=t.quoted?c.slice(1,-1):c}this.newNode(t),this.position++},e.prototype.combinator=function(){if("|"===this.currToken[1])return this.namespace();for(var e=new m.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&("space"===this.currToken[0]||"combinator"===this.currToken[0]);)this.nextToken&&"combinator"===this.nextToken[0]?(e.spaces.before=this.parseSpace(this.currToken[1]),e.source.start.line=this.nextToken[2],e.source.start.column=this.nextToken[3],e.source.end.column=this.nextToken[3],e.source.end.line=this.nextToken[2],e.sourceIndex=this.nextToken[4]):this.prevToken&&"combinator"===this.prevToken[0]?e.spaces.after=this.parseSpace(this.currToken[1]):"combinator"===this.currToken[0]?e.value=this.currToken[1]:"space"===this.currToken[0]&&(e.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;var e=new u.default;this.current.parent.append(e),this.current=e,this.position++},e.prototype.comment=function(){var e=new l.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(e),this.position++},e.prototype.error=function(e){throw new this.input.error(e)},e.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},e.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},e.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},e.prototype.namespace=function(){var e=this.prevToken&&this.prevToken[1]||!0;return"word"===this.nextToken[0]?(this.position++,this.word(e)):"*"===this.nextToken[0]?(this.position++,this.universal(e)):void 0},e.prototype.nesting=function(){this.newNode(new v.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},e.prototype.parentheses=function(){var e=this.current.last;if(e&&e.type===k.PSEUDO){var t=new u.default,s=this.current;e.append(t),this.current=t;var r=1;for(this.position++;this.position<this.tokens.length&&r;)"("===this.currToken[0]&&r++,")"===this.currToken[0]&&r--,r?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);r&&this.error("Expected closing parenthesis."),this.current=s}else{var o=1;for(this.position++,e.value+="(";this.position<this.tokens.length&&o;)"("===this.currToken[0]&&o++,")"===this.currToken[0]&&o--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;o&&this.error("Expected closing parenthesis.")}},e.prototype.pseudo=function(){for(var e=this,t="",s=this.currToken;this.currToken&&":"===this.currToken[0];)t+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if("word"===this.currToken[0]){var r=void 0;this.splitWord(!1,(function(o,n){t+=o,r=new h.default({value:t,source:{start:{line:s[2],column:s[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:s[4]}),e.newNode(r),n>1&&e.nextToken&&"("===e.nextToken[0]&&e.error("Misplaced parenthesis.")}))}else this.error('Unexpected "'+this.currToken[0]+'" found.')},e.prototype.space=function(){var e=this.currToken;0===this.position||","===this.prevToken[0]||"("===this.prevToken[0]?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||","===this.nextToken[0]||")"===this.nextToken[0]?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new d.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&"|"===t[1])return this.position++,this.namespace();this.newNode(new b.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var s=this,r=this.nextToken,c=this.currToken[1];r&&"word"===r[0];){this.position++;var u=this.currToken[1];if(c+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&"space"===l[0]&&(c+=this.parseSpace(l[1]," "),this.position++)}r=this.nextToken}var d=(0,n.default)(c,"."),h=(0,n.default)(c,"#"),y=(0,n.default)(c,"#{");y.length&&(h=h.filter((function(e){return!~y.indexOf(e)})));var b=(0,_.default)((0,i.default)((0,o.default)([[0],d,h])));b.forEach((function(r,o){var n=b[o+1]||c.length,i=c.slice(r,n);if(0===o&&t)return t.call(s,i,b.length);var u=void 0;u=~d.indexOf(r)?new a.default({value:i.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+r},end:{line:s.currToken[4],column:s.currToken[3]+(n-1)}},sourceIndex:s.currToken[6]+b[o]}):~h.indexOf(r)?new p.default({value:i.slice(1),source:{start:{line:s.currToken[2],column:s.currToken[3]+r},end:{line:s.currToken[4],column:s.currToken[3]+(n-1)}},sourceIndex:s.currToken[6]+b[o]}):new f.default({value:i,source:{start:{line:s.currToken[2],column:s.currToken[3]+r},end:{line:s.currToken[4],column:s.currToken[3]+(n-1)}},sourceIndex:s.currToken[6]+b[o]}),s.newNode(u,e)})),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&"|"===t[1]?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},e.prototype.parse=function(e){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":e&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string()}},e.prototype.parseNamespace=function(e){if(this.lossy&&"string"==typeof e){var t=e.trim();return!t.length||t}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||"":e},e.prototype.parseValue=function(e){return this.lossy&&e&&"string"==typeof e?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?"space"===e[0]?this.parseSpace(e[1]," "):this.parseValue(e[1]):e[1]},e.prototype.newNode=function(e,t){return t&&(e.namespace=this.parseNamespace(t)),this.spaces&&(e.spaces.before=this.spaces,this.spaces=""),this.current.append(e)},r(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();t.default=j,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/processor.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),n=s("./node_modules/postcss-selector-parser/dist/parser.js"),i=(r=n)&&r.__esModule?r:{default:r};var c=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=new i.default({css:e,error:function(e){throw new Error(e)},options:t});return this.res=s,this.func(s),this},o(e,[{key:"result",get:function(){return String(this.res)}}]),e}();t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/attribute.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/namespace.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.ATTRIBUTE,r.raws={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(" i"),e.push("]"),e.concat(this.spaces.after).join("")},t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/className.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/namespace.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.CLASS,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/combinator.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/node.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.COMBINATOR,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/comment.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/node.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.COMMENT,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/container.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),n=s("./node_modules/postcss-selector-parser/dist/selectors/node.js"),i=(r=n)&&r.__esModule?r:{default:r},c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t.default=e,t}(s("./node_modules/postcss-selector-parser/dist/selectors/types.js"));var u=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},t.prototype.at=function(e){return this.nodes[e]},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var s in this.indexes)(t=this.indexes[s])>=e&&(this.indexes[s]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),s=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(s>=e.length)break;r=e[s++]}else{if((s=e.next()).done)break;r=s.value}r.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var s=this.index(e);this.nodes.splice(s+1,0,t);var r=void 0;for(var o in this.indexes)s<=(r=this.indexes[o])&&(this.indexes[o]=r+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var s=this.index(e);this.nodes.splice(s,0,t);var r=void 0;for(var o in this.indexes)s<=(r=this.indexes[o])&&(this.indexes[o]=r+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var s=void 0,r=void 0;this.indexes[t]<this.length&&(s=this.indexes[t],!1!==(r=e(this.at(s),s)));)this.indexes[t]+=1;return delete this.indexes[t],!1!==r&&void 0}},t.prototype.walk=function(e){return this.each((function(t,s){var r=e(t,s);if(!1!==r&&t.length&&(r=t.walk(e)),!1===r)return!1}))},t.prototype.walkAttributes=function(e){var t=this;return this.walk((function(s){if(s.type===c.ATTRIBUTE)return e.call(t,s)}))},t.prototype.walkClasses=function(e){var t=this;return this.walk((function(s){if(s.type===c.CLASS)return e.call(t,s)}))},t.prototype.walkCombinators=function(e){var t=this;return this.walk((function(s){if(s.type===c.COMBINATOR)return e.call(t,s)}))},t.prototype.walkComments=function(e){var t=this;return this.walk((function(s){if(s.type===c.COMMENT)return e.call(t,s)}))},t.prototype.walkIds=function(e){var t=this;return this.walk((function(s){if(s.type===c.ID)return e.call(t,s)}))},t.prototype.walkNesting=function(e){var t=this;return this.walk((function(s){if(s.type===c.NESTING)return e.call(t,s)}))},t.prototype.walkPseudos=function(e){var t=this;return this.walk((function(s){if(s.type===c.PSEUDO)return e.call(t,s)}))},t.prototype.walkTags=function(e){var t=this;return this.walk((function(s){if(s.type===c.TAG)return e.call(t,s)}))},t.prototype.walkUniversals=function(e){var t=this;return this.walk((function(s){if(s.type===c.UNIVERSAL)return e.call(t,s)}))},t.prototype.split=function(e){var t=this,s=[];return this.reduce((function(r,o,n){var i=e.call(t,o);return s.push(o),i?(r.push(s),s=[]):n===t.length-1&&r.push(s),r}),[])},t.prototype.map=function(e){return this.nodes.map(e)},t.prototype.reduce=function(e,t){return this.nodes.reduce(e,t)},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.filter=function(e){return this.nodes.filter(e)},t.prototype.sort=function(e){return this.nodes.sort(e)},t.prototype.toString=function(){return this.map(String).join("")},o(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(i.default);t.default=u,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/id.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/namespace.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.ID,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,String("#"+this.value),this.spaces.after].join("")},t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/namespace.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),n=s("./node_modules/postcss-selector-parser/dist/selectors/node.js");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return i(this,t),c(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},o(t,[{key:"ns",get:function(){var e=this.namespace;return e?("string"==typeof e?e:"")+"|":""}}]),t}(((r=n)&&r.__esModule?r:{default:r}).default);t.default=u,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/nesting.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/node.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.NESTING,r.value="&",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/node.js":function(e,t,s){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function e(t,s){if("object"!==(void 0===t?"undefined":r(t)))return t;var o=new t.constructor;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],c=void 0===i?"undefined":r(i);"parent"===n&&"object"===c?s&&(o[n]=s):o[n]=i instanceof Array?i.map((function(t){return e(t,o)})):e(i,o)}return o},i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var s in o(this,e),t)this[s]=t[s];var r=t.spaces,n=(r=void 0===r?{}:r).before,i=void 0===n?"":n,c=r.after,u=void 0===c?"":c;this.spaces={before:i,after:u}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(this);for(var s in e)t[s]=e[s];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},e}();t.default=i,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/pseudo.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/container.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.PSEUDO,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),e,this.spaces.after].join("")},t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/root.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/container.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.ROOT,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.reduce((function(e,t){var s=String(t);return s?e+s+",":""}),"").slice(0,-1);return this.trailingComma?e+",":e},t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/selector.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/container.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.SELECTOR,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/string.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/node.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.STRING,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/tag.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/namespace.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.TAG,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/selectors/types.js":function(e,t,s){"use strict";t.__esModule=!0;t.TAG="tag",t.STRING="string",t.SELECTOR="selector",t.ROOT="root",t.PSEUDO="pseudo",t.NESTING="nesting",t.ID="id",t.COMMENT="comment",t.COMBINATOR="combinator",t.CLASS="class",t.ATTRIBUTE="attribute",t.UNIVERSAL="universal"},"./node_modules/postcss-selector-parser/dist/selectors/universal.js":function(e,t,s){"use strict";t.__esModule=!0;var r,o=s("./node_modules/postcss-selector-parser/dist/selectors/namespace.js"),n=(r=o)&&r.__esModule?r:{default:r},i=s("./node_modules/postcss-selector-parser/dist/selectors/types.js");var c=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.type=i.UNIVERSAL,r.value="*",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default);t.default=c,e.exports=t.default},"./node_modules/postcss-selector-parser/dist/sortAscending.js":function(e,t,s){"use strict";t.__esModule=!0,t.default=function(e){return e.sort((function(e,t){return e-t}))},e.exports=t.default},"./node_modules/postcss-selector-parser/dist/tokenize.js":function(e,t,s){"use strict";t.__esModule=!0,t.default=function(e){var t=[],s=e.css.valueOf(),n=void 0,i=void 0,c=void 0,u=void 0,a=void 0,l=void 0,p=void 0,f=void 0,d=void 0,h=void 0,y=void 0,b=s.length,m=-1,v=1,_=0,w=function(t,r){if(!e.safe)throw e.error("Unclosed "+t,v,_-m,_);i=(s+=r).length-1};for(;_<b;){switch(10===(n=s.charCodeAt(_))&&(m=_,v+=1),n){case 10:case 32:case 9:case 13:case 12:i=_;do{i+=1,10===(n=s.charCodeAt(i))&&(m=i,v+=1)}while(32===n||10===n||9===n||13===n||12===n);t.push(["space",s.slice(_,i),v,_-m,_]),_=i-1;break;case 43:case 62:case 126:case 124:i=_;do{i+=1,n=s.charCodeAt(i)}while(43===n||62===n||126===n||124===n);t.push(["combinator",s.slice(_,i),v,_-m,_]),_=i-1;break;case 42:t.push(["*","*",v,_-m,_]);break;case 38:t.push(["&","&",v,_-m,_]);break;case 44:t.push([",",",",v,_-m,_]);break;case 91:t.push(["[","[",v,_-m,_]);break;case 93:t.push(["]","]",v,_-m,_]);break;case 58:t.push([":",":",v,_-m,_]);break;case 59:t.push([";",";",v,_-m,_]);break;case 40:t.push(["(","(",v,_-m,_]);break;case 41:t.push([")",")",v,_-m,_]);break;case 39:case 34:c=39===n?"'":'"',i=_;do{for(h=!1,-1===(i=s.indexOf(c,i+1))&&w("quote",c),y=i;92===s.charCodeAt(y-1);)y-=1,h=!h}while(h);t.push(["string",s.slice(_,i+1),v,_-m,v,i-m,_]),_=i;break;case 64:r.lastIndex=_+1,r.test(s),i=0===r.lastIndex?s.length-1:r.lastIndex-2,t.push(["at-word",s.slice(_,i+1),v,_-m,v,i-m,_]),_=i;break;case 92:for(i=_,p=!0;92===s.charCodeAt(i+1);)i+=1,p=!p;n=s.charCodeAt(i+1),p&&47!==n&&32!==n&&10!==n&&9!==n&&13!==n&&12!==n&&(i+=1),t.push(["word",s.slice(_,i+1),v,_-m,v,i-m,_]),_=i;break;default:47===n&&42===s.charCodeAt(_+1)?(0===(i=s.indexOf("*/",_+2)+1)&&w("comment","*/"),l=s.slice(_,i+1),u=l.split("\n"),(a=u.length-1)>0?(f=v+a,d=i-u[a].length):(f=v,d=m),t.push(["comment",l,v,_-m,f,i-d,_]),m=d,v=f,_=i):(o.lastIndex=_+1,o.test(s),i=0===o.lastIndex?s.length-1:o.lastIndex-2,t.push(["word",s.slice(_,i+1),v,_-m,v,i-m,_]),_=i)}_++}return t};var r=/[ \n\t\r\{\(\)'"\\;/]/g,o=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;e.exports=t.default}}]);