(()=>{var e={3086:(e,t,a)=>{var i=a(5305),r=Object.prototype.hasOwnProperty,p="undefined"!=typeof Map;function n(){this._array=[],this._set=p?new Map:Object.create(null)}n.fromArray=function(e,t){for(var a=new n,i=0,r=e.length;i=0)return t}else{var a=i.toSetString(e);if(r.call(this._set,a))return this._set[a]}throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&e{var i=a(3167);t.encode=function(e){var t,a="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),a+=i.encode(t)}while(r>0);return a},t.decode=function(e,t,a){var r,p,n,d,o=e.length,s=0,l=0;do{if(t>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(p=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&p),s+=(p&=31)<>1,1==(1&n)?-d:d),a.rest=t}},3167:(e,t)=>{var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{var i=a(5305);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,a,r,p,n,d;a=e,r=(t=this._last).generatedLine,p=a.generatedLine,n=t.generatedColumn,d=a.generatedColumn,p>r||p==r&&d>=n||i.compareByGeneratedPositionsInflated(t,a)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=r},4508:(e,t,a)=>{var i=a(4520),r=a(5305),p=a(3086).I,n=a(4688).H;function d(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new p,this._names=new p,this._mappings=new n,this._sourcesContents=null}d.prototype._version=3,d.fromSourceMap=function(e){var t=e.sourceRoot,a=new d({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=t&&(i.source=r.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),a.addMapping(i)})),e.sources.forEach((function(i){var p=i;null!==t&&(p=r.relative(t,i)),a._sources.has(p)||a._sources.add(p);var n=e.sourceContentFor(i);null!=n&&a.setSourceContent(i,n)})),a},d.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),a=r.getArg(e,"original",null),i=r.getArg(e,"source",null),p=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,a,i,p),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=p&&(p=String(p),this._names.has(p)||this._names.add(p)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=a&&a.line,originalColumn:null!=a&&a.column,source:i,name:p})},d.prototype.setSourceContent=function(e,t){var a=e;null!=this._sourceRoot&&(a=r.relative(this._sourceRoot,a)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(a)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(a)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},d.prototype.applySourceMap=function(e,t,a){var i=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');i=e.file}var n=this._sourceRoot;null!=n&&(i=r.relative(n,i));var d=new p,o=new p;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var p=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=p.source&&(t.source=p.source,null!=a&&(t.source=r.join(a,t.source)),null!=n&&(t.source=r.relative(n,t.source)),t.originalLine=p.line,t.originalColumn=p.column,null!=p.name&&(t.name=p.name))}var s=t.source;null==s||d.has(s)||d.add(s);var l=t.name;null==l||o.has(l)||o.add(l)}),this),this._sources=d,this._names=o,e.sources.forEach((function(t){var i=e.sourceContentFor(t);null!=i&&(null!=a&&(t=r.join(a,t)),null!=n&&(t=r.relative(n,t)),this.setSourceContent(t,i))}),this)},d.prototype._validateMapping=function(e,t,a,i){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||a||i)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&a))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:a,original:t,name:i}))},d.prototype._serializeMappings=function(){for(var e,t,a,p,n=0,d=1,o=0,s=0,l=0,m=0,u="",c=this._mappings.toArray(),h=0,g=c.length;h0){if(!r.compareByGeneratedPositionsInflated(t,c[h-1]))continue;e+=","}e+=i.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(p=this._sources.indexOf(t.source),e+=i.encode(p-m),m=p,e+=i.encode(t.originalLine-1-s),s=t.originalLine-1,e+=i.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(a=this._names.indexOf(t.name),e+=i.encode(a-l),l=a)),u+=e}return u},d.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var a=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null}),this)},d.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=d},5305:(e,t)=>{t.getArg=function(e,t,a){if(t in e)return e[t];if(3===arguments.length)return a;throw new Error('"'+t+'" is a required argument.')};var a=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function r(e){var t=e.match(a);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function p(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}t.urlParse=r,t.urlGenerate=p;var n,d,o=(n=function(e){var a=e,i=r(e);if(i){if(!i.path)return e;a=i.path}for(var n=t.isAbsolute(a),d=[],o=0,s=0;;){if(o=s,-1===(s=a.indexOf("/",o))){d.push(a.slice(o));break}for(d.push(a.slice(o,s));s=0;s--)"."===(l=d[s])?d.splice(s,1):".."===l?m++:m>0&&(""===l?(d.splice(s+1,m),m=0):(d.splice(s,2),m--));return""===(a=d.join("/"))&&(a=n?"/":"."),i?(i.path=a,p(i)):a},d=[],function(e){for(var t=0;t32&&d.pop(),i});function s(e,t){""===e&&(e="."),""===t&&(t=".");var a=r(t),n=r(e);if(n&&(e=n.path||"/"),a&&!a.scheme)return n&&(a.scheme=n.scheme),p(a);if(a||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,p(n);var d="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=d,p(n)):d}t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||a.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var a=0;0!==t.indexOf(e+"/");){var i=e.lastIndexOf("/");if(i<0)return t;if((e=e.slice(0,i)).match(/^([^\/]+:\/)?\/*$/))return t;++a}return Array(a+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function m(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var a=t-10;a>=0;a--)if(36!==e.charCodeAt(a))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?m:function(e){return u(e)?"$"+e:e},t.fromSetString=l?m:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,a){var i=c(e.source,t.source);return 0!==i||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)||a||0!=(i=e.generatedColumn-t.generatedColumn)||0!=(i=e.generatedLine-t.generatedLine)?i:c(e.name,t.name)},t.compareByOriginalPositionsNoSource=function(e,t,a){var i;return 0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)||a||0!=(i=e.generatedColumn-t.generatedColumn)||0!=(i=e.generatedLine-t.generatedLine)?i:c(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,a){var i=e.generatedLine-t.generatedLine;return 0!==i||0!=(i=e.generatedColumn-t.generatedColumn)||a||0!==(i=c(e.source,t.source))||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)?i:c(e.name,t.name)},t.compareByGeneratedPositionsDeflatedNoLine=function(e,t,a){var i=e.generatedColumn-t.generatedColumn;return 0!==i||a||0!==(i=c(e.source,t.source))||0!=(i=e.originalLine-t.originalLine)||0!=(i=e.originalColumn-t.originalColumn)?i:c(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var a=e.generatedLine-t.generatedLine;return 0!==a||0!=(a=e.generatedColumn-t.generatedColumn)||0!==(a=c(e.source,t.source))||0!=(a=e.originalLine-t.originalLine)||0!=(a=e.originalColumn-t.originalColumn)?a:c(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,a){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),a){var i=r(a);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var n=i.path.lastIndexOf("/");n>=0&&(i.path=i.path.substring(0,n+1))}t=s(p(i),t)}return o(t)}},4742:(e,t,a)=>{"use strict";var i=a(5477),r=a(2020),p={TRANSITIONAL:0,NONTRANSITIONAL:1};function n(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function d(e){for(var t=0,a=r.length-1;t<=a;){var i=Math.floor((t+a)/2),p=r[i];if(p[0][0]<=e&&p[0][1]>=e)return p;p[0][0]>e?a=i-1:t=i+1}return null}var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function s(e){return e.replace(o,"_").length}var l=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function m(e,t){"xn--"===e.substr(0,4)&&(e=i.toUnicode(e));var a=!1;(n(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(l))&&(a=!0);for(var r=s(e),o=0;o253||0===d.length)&&(p.error=!0);for(var o=0;o63||0===n.length){p.error=!0;break}}return p.error?null:n.join(".")},e.exports.toUnicode=function(e,t){var a=u(e,t,p.NONTRANSITIONAL);return{domain:a.string,error:a.error}},e.exports.PROCESSING_OPTIONS=p},8985:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))((function(r,p){function n(e){try{o(i.next(e))}catch(e){p(e)}}function d(e){try{o(i.throw(e))}catch(e){p(e)}}function o(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,d)}o((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectorCompletionItemProvider=void 0;const r=a(7085),p=a(9648),n=a(1017),d=a(9496);t.SelectorCompletionItemProvider=class{constructor(){this.start=new d.Position(0,0),this.cache=new Map,this.files=new Map,this.watchers=new Map,this.isRemote=/^https?:\/\//i,this.canComplete=/(id|class|className)\s*=\s*("|')(?:(?!\2).)*$/is,this.findLinkRel=/rel\s*=\s*("|')((?:(?!\1).)+)\1/is,this.findLinkHref=/href\s*=\s*("|')((?:(?!\1).)+)\1/is,this.findExtended=/(?:{{<|{{>|{%\s*extends|@extends\s*\()\s*("|')?([./A-Za-z_0-9\\\-]+)\1\s*(?:\)|%}|}})/i}dispose(){this.watchers.forEach((e=>e.dispose())),this.watchers.clear(),this.cache.clear(),this.files.clear()}watchFile(e,t){if(this.watchers.has(e))return;const a=d.workspace.createFileSystemWatcher(e);a.onDidCreate(t),a.onDidChange(t),a.onDidDelete(t),this.watchers.set(e,a)}getStyleSheets(e){return d.workspace.getConfiguration("css",e).get("styleSheets",[])}getPath(e,t,a){const i=d.workspace.getWorkspaceFolder(e),r=a?(0,n.join)((0,n.dirname)(t),(0,n.basename)(t,a)+a):t;return i?(0,n.join)((0,n.isAbsolute)(t)?i.uri.fsPath:(0,n.dirname)(e.fsPath),r):(0,n.join)((0,n.dirname)(e.fsPath),r)}parseTextToItems(e,t,a){(0,p.walk)((0,p.parse)(t),(t=>{let i;switch(t.type){case"ClassSelector":i=d.CompletionItemKind.Enum;break;case"IdSelector":i=d.CompletionItemKind.Value;break;default:return}a.push(new d.CompletionItem({label:t.name,description:e},i))}))}fetchLocal(e){return i(this,void 0,void 0,(function*(){if(this.cache.has(e))return;const t=[];try{const a=yield d.workspace.fs.readFile(d.Uri.file(e));this.parseTextToItems((0,n.basename)(e),a.toString(),t)}catch(e){}this.cache.set(e,t),this.watchFile(e,(()=>this.cache.delete(e)))}))}fetchRemote(e){return i(this,void 0,void 0,(function*(){if(this.cache.has(e))return;const t=[];try{const a=yield(0,r.default)(e);if(a.ok){const i=yield a.text();this.parseTextToItems((0,n.basename)(e),i,t)}}catch(e){}this.cache.set(e,t)}))}fetch(e,t){return i(this,void 0,void 0,(function*(){if(this.isRemote.test(t))yield this.fetchRemote(t);else{const a=(0,n.basename)(e.fsPath,(0,n.extname)(e.fsPath));t=this.getPath(e,t.replace(/\${\s*fileBasenameNoExtension\s*}/,a)),yield this.fetchLocal(t)}return t}))}findEmbedded(e,t,a){const i=e.toString(),r=[],p=/]*>([^<]+)<\/style>/gi;let d;for(;null!==(d=p.exec(a));)this.parseTextToItems((0,n.basename)(e.fsPath),d[1],r);this.cache.set(i,r),t.add(i)}findFixed(e,t){return i(this,void 0,void 0,(function*(){for(const a of this.getStyleSheets(e))t.add(yield this.fetch(e,a))}))}findLinks(e,t,a){return i(this,void 0,void 0,(function*(){const i=/]+)>/gi;let r,p,n;for(;null!==(r=i.exec(a));)p=this.findLinkRel.exec(r[1]),p&&"stylesheet"===p[2]&&(n=this.findLinkHref.exec(r[1]),n&&t.add(yield this.fetch(e,n[2])))}))}findInherited(e,t,a,r=0){return i(this,void 0,void 0,(function*(){const i=this.findExtended.exec(a);if(i&&r<3){r++;const a=i[2],p=(0,n.extname)(a)||(0,n.extname)(e.fsPath),o=this.getPath(e,a,p),s=d.Uri.file(o);let l=this.files.get(o);if(!l){try{l=(yield d.workspace.fs.readFile(s)).toString()}catch(e){l="n/a"}this.files.set(o,l),this.watchFile(o,(()=>this.files.delete(o)))}this.findEmbedded(s,t,l),yield this.findLinks(s,t,l),yield this.findInherited(s,t,l,r)}}))}findAll(e){return i(this,void 0,void 0,(function*(){const t=new Set,a=e.uri,i=e.getText();this.findEmbedded(a,t,i),yield this.findFixed(a,t),yield this.findLinks(a,t,i),yield this.findInherited(a,t,i);const r=new Map,p=new Map;return t.forEach((e=>{var t;return null===(t=this.cache.get(e))||void 0===t?void 0:t.forEach((e=>(e.kind===d.CompletionItemKind.Value?r:p).set(e.label.label,e)))})),{ids:r,classes:p}}))}validate(e){return i(this,void 0,void 0,(function*(){const t=yield this.findAll(e),a=e.getText(),i=[],r=/(id|class|className)\s*=\s*("|')(.*?)\2/gis;let p,n,o,s,l,m,u;for(;null!==(p=r.exec(a));)for(n=r.lastIndex-p[3].length+p[3].indexOf(p[2]),o=/([^(\[{}\])\s]+)(?![^(\[{]*[}\])])/gi;null!==(s=o.exec(p[3]));)("id"===p[1]?t.ids:t.classes).has(s[1])||(l=o.lastIndex+n,m=e.positionAt(l),u=e.positionAt(l-s[1].length),i.push(new d.Diagnostic(new d.Range(u,m),`CSS selector '${s[1]}' not found.`,d.DiagnosticSeverity.Information)));return i}))}provideCompletionItems(e,t,a,i){return new Promise(((a,i)=>{const r=new d.Range(this.start,t),p=e.getText(r),n=this.canComplete.exec(p);n?this.findAll(e).then((e=>a([...("id"===n[1]?e.ids:e.classes).values()]))):i()}))}}},112:function(e,t,a){"use strict";var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))((function(r,p){function n(e){try{o(i.next(e))}catch(e){p(e)}}function d(e){try{o(i.throw(e))}catch(e){p(e)}}function o(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,d)}o((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.deactivate=t.activate=void 0;const r=a(8985),p=a(9496);t.activate=function(e){const t=p.workspace.getConfiguration("css").get("enabledLanguages",["html"]),a=p.languages.createDiagnosticCollection(),n=new r.SelectorCompletionItemProvider;e.subscriptions.push(p.commands.registerCommand("vscode-html-css.validate",(()=>i(this,void 0,void 0,(function*(){const e=p.window.activeTextEditor;if(e){const i=e.document;t.includes(i.languageId)&&a.set(i.uri,yield n.validate(i))}})))),p.commands.registerCommand("vscode-html-css.dispose",(()=>n.dispose())),p.workspace.onDidChangeTextDocument((e=>a.delete(e.document.uri))),p.workspace.onDidCloseTextDocument((e=>a.delete(e.uri))),p.languages.registerCompletionItemProvider(t,n),a,n)},t.deactivate=function(){}},993:e=>{"use strict";var t={};function a(e){return e<0?-1:1}function i(e,t){t.unsigned||--e;const i=t.unsigned?0:-Math.pow(2,e),r=Math.pow(2,e)-1,p=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),n=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,d){d||(d={});let o=+e;if(d.enforceRange){if(!Number.isFinite(o))throw new TypeError("Argument is not a finite number");if(o=a(o)*Math.floor(Math.abs(o)),or)throw new TypeError("Argument is not in byte range");return o}if(!isNaN(o)&&d.clamp)return o=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(o),or&&(o=r),o;if(!Number.isFinite(o)||0===o)return 0;if(o=a(o)*Math.floor(Math.abs(o)),o%=p,!t.unsigned&&o>=n)return o-p;if(t.unsigned)if(o<0)o+=p;else if(-0===o)return 0;return o}}e.exports=t,t.void=function(){},t.boolean=function(e){return!!e},t.byte=i(8,{unsigned:!1}),t.octet=i(8,{unsigned:!0}),t.short=i(16,{unsigned:!1}),t["unsigned short"]=i(16,{unsigned:!0}),t.long=i(32,{unsigned:!1}),t["unsigned long"]=i(32,{unsigned:!0}),t["long long"]=i(32,{unsigned:!1,moduloBitLength:64}),t["unsigned long long"]=i(32,{unsigned:!0,moduloBitLength:64}),t.double=function(e){const t=+e;if(!Number.isFinite(t))throw new TypeError("Argument is not a finite floating-point value");return t},t["unrestricted double"]=function(e){const t=+e;if(isNaN(t))throw new TypeError("Argument is NaN");return t},t.float=t.double,t["unrestricted float"]=t["unrestricted double"],t.DOMString=function(e,t){return t||(t={}),t.treatNullAsEmptyString&&null===e?"":String(e)},t.ByteString=function(e,t){const a=String(e);let i;for(let e=0;void 0!==(i=a.codePointAt(e));++e)if(i>255)throw new TypeError("Argument is not a valid bytestring");return a},t.USVString=function(e){const t=String(e),a=t.length,i=[];for(let e=0;e57343)i.push(String.fromCodePoint(r));else if(56320<=r&&r<=57343)i.push(String.fromCodePoint(65533));else if(e===a-1)i.push(String.fromCodePoint(65533));else{const a=t.charCodeAt(e+1);if(56320<=a&&a<=57343){const t=1023&r,p=1023&a;i.push(String.fromCodePoint(65536+1024*t+p)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.Date=function(e,t){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},t.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e}},9718:(e,t,a)=>{"use strict";const i=a(5341);t.implementation=class{constructor(e){const t=e[0],a=e[1];let r=null;if(void 0!==a&&(r=i.basicURLParse(a),"failure"===r))throw new TypeError("Invalid base URL");const p=i.basicURLParse(t,{baseURL:r});if("failure"===p)throw new TypeError("Invalid URL");this._url=p}get href(){return i.serializeURL(this._url)}set href(e){const t=i.basicURLParse(e);if("failure"===t)throw new TypeError("Invalid URL");this._url=t}get origin(){return i.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){i.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?i.serializeHost(e.host):i.serializeHost(e.host)+":"+i.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":i.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":i.serializeInteger(this._url.port)}set port(e){i.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:i.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],i.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(e){const t=this._url;if(""===e)return void(t.query=null);const a="?"===e[0]?e.substring(1):e;t.query="",i.basicURLParse(a,{url:t,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",i.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},4328:(e,t,a)=>{"use strict";const i=a(993),r=a(9581),p=a(9718),n=r.implSymbol;function d(t){if(!this||this[n]||!(this instanceof d))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const a=[];for(let e=0;e!!e&&e[n]instanceof p.implementation,create(e,t){let a=Object.create(d.prototype);return this.setup(a,e,t),a},setup(e,t,a){a||(a={}),a.wrapper=e,e[n]=new p.implementation(t,a),e[n][r.wrapperSymbol]=e},interface:d,expose:{Window:{URL:d},Worker:{URL:d}}}},7347:(e,t,a)=>{"use strict";t.URL=a(4328).interface,a(5341).serializeURL,a(5341).serializeURLOrigin,a(5341).basicURLParse,a(5341).setTheUsername,a(5341).setThePassword,a(5341).serializeHost,a(5341).serializeInteger,a(5341).parseURL},5341:(e,t,a)=>{"use strict";const i=a(5477),r=a(4742),p={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},n=Symbol("failure");function d(e){return i.ucs2.decode(e).length}function o(e,t){const a=e[t];return isNaN(a)?void 0:String.fromCodePoint(a)}function s(e){return e>=48&&e<=57}function l(e){return e>=65&&e<=90||e>=97&&e<=122}function m(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function u(e){return"."===e||"%2e"===e.toLowerCase()}function c(e){return 2===e.length&&l(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function h(e){return void 0!==p[e]}function g(e){return h(e.scheme)}function f(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function v(e){return e<=31||e>126}const y=new Set([32,34,35,60,62,63,96,123,125]);function S(e){return v(e)||y.has(e)}const b=new Set([47,58,59,61,64,91,92,93,94,124]);function w(e){return S(e)||b.has(e)}function x(e,t){const a=String.fromCodePoint(e);return t(e)?function(e){const t=new Buffer(e);let a="";for(let e=0;e=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e?0:(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?n:parseInt(e,t)}function k(e,t){if("["===e[0])return"]"!==e[e.length-1]?n:function(e){const t=[0,0,0,0,0,0,0,0];let a=0,r=null,p=0;if(58===(e=i.ucs2.decode(e))[p]){if(58!==e[p+1])return n;p+=2,++a,r=a}for(;p6)return n;let i=0;for(;void 0!==e[p];){let r=null;if(i>0){if(!(46===e[p]&&i<4))return n;++p}if(!s(e[p]))return n;for(;s(e[p]);){const t=parseInt(o(e,p));if(null===r)r=t;else{if(0===r)return n;r=10*r+t}if(r>255)return n;++p}t[a]=256*t[a]+r,++i,2!==i&&4!==i||++a}if(4!==i)return n;break}if(58===e[p]){if(++p,void 0===e[p])return n}else if(void 0!==e[p])return n;t[a]=i,++a}if(null!==r){let e=a-r;for(a=7;0!==a&&e>0;){const i=t[r+e-1];t[r+e-1]=t[a],t[a]=i,--a,--e}}else if(null===r&&8!==a)return n;return t}(e.substring(1,e.length-1));if(!t)return function(e){if(-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return n;let t="";const a=i.ucs2.decode(e);for(let e=0;e1&&t.pop(),t.length>4)return e;const a=[];for(const i of t){if(""===i)return e;const t=C(i);if(t===n)return e;a.push(t)}for(let e=0;e255)return n;if(a[a.length-1]>=Math.pow(256,5-a.length))return n;let i=a.pop(),r=0;for(const e of a)i+=e*Math.pow(256,3-r),++r;return i}(p);return"number"==typeof d||d===n?d:p}function T(e){return"number"==typeof e?function(e){let t="",a=e;for(let e=1;e<=4;++e)t=String(a%256)+t,4!==e&&(t="."+t),a=Math.floor(a/256);return t}(e):e instanceof Array?"["+function(e){let t="";const a=function(e){let t=null,a=1,i=null,r=0;for(let p=0;pa&&(t=i,a=r),i=null,r=0):(null===i&&(i=p),++r);return r>a&&(t=i,a=r),{idx:t,len:a}}(e).idx;let i=!1;for(let r=0;r<=7;++r)i&&0===e[r]||(i&&(i=!1),a!==r?(t+=e[r].toString(16),7!==r&&(t+=":")):(t+=0===r?"::":":",i=!0));return t}(e)+"]":e}function _(e){const t=e.path;var a;0!==t.length&&("file"===e.scheme&&1===t.length&&(a=t[0],/^[A-Za-z]:$/.test(a))||t.pop())}function z(e){return""!==e.username||""!==e.password}function O(e,t,a,r,p){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=a||"utf-8",this.stateOverride=p,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const d=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(d!==this.input&&(this.parseError=!0),this.input=d,this.state=p||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=i.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,t);if(!a)break;if(a===n){this.failure=!0;break}}}O.prototype["parse scheme start"]=function(e,t){if(l(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,n;this.state="no scheme",--this.pointer}return!0},O.prototype["parse scheme"]=function(e,t){if(function(e){return l(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(g(this.url)&&!h(this.buffer))return!1;if(!g(this.url)&&h(this.buffer))return!1;if((z(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):g(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":g(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,n;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},O.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?n:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},O.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},O.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},O.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):g(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},O.prototype["parse relative slash"]=function(e){return!g(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},O.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},O.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},O.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=d(this.buffer);for(let t=0;tMath.pow(2,16)-1)return this.parseError=!0,n;this.url.port=e===(a=this.url.scheme,p[a])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var a;return!0};const A=new Set([47,92,63,35]);O.prototype["parse file"]=function(e){var t,a;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(t=e,a=this.input[this.pointer+1],!l(t)||58!==a&&124!==a)||this.input.length-this.pointer-1>=2&&!A.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),_(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},O.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(t=this.base.path[0]).length&&l(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},O.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&c(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=k(this.buffer,g(this.url));if(e===n)return n;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},O.prototype["parse path start"]=function(e){return g(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},O.prototype["parse path"]=function(e){if(isNaN(e)||47===e||g(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(g(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(_(this.url),47===e||g(this.url)&&92===e||this.url.path.push("")):!u(this.buffer)||47===e||g(this.url)&&92===e?u(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&c(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=x(e,S);var t;return!0},O.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+x(e,v))),!0},O.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){g(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const t=new Buffer(this.buffer);for(let e=0;e126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=f(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},O.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||m(this.input[this.pointer+1])&&m(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=x(e,v))),!0},e.exports.serializeURL=function(e,t){let a=e.scheme+":";if(null!==e.host?(a+="//",""===e.username&&""===e.password||(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=T(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(const t of e.path)a+="/"+t;return null!==e.query&&(a+="?"+e.query),t||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let t=e.scheme+"://";return t+=T(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const a=new O(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,t){e.username="";const a=i.ucs2.decode(t);for(let t=0;t{"use strict";e.exports.mixin=function(e,t){const a=Object.getOwnPropertyNames(t);for(let i=0;i{"use strict";e.exports=require("vscode")},1017:e=>{"use strict";e.exports=require("path")},5477:e=>{"use strict";e.exports=require("punycode")},7048:(e,t,a)=>{"use strict";const i=a(2920);t.createConvertor=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&e.children instanceof i.List==0&&(e.children=(new i.List).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof i.List&&(e.children=e.children.toArray())}}),t}}}},3947:(e,t,a)=>{"use strict";const i=a(4900);e.exports=i},1409:(e,t,a)=>{"use strict";const i=a(3947),r=a(4518),p=a(3050),n=a(9262),d=/^\s*\|\s*/;function o(e,t){const a={};for(const t in e)a[t]=e[t].syntax||e[t];for(const i in t)i in e?t[i].syntax?a[i]=d.test(t[i].syntax)?a[i]+" "+t[i].syntax.trim():t[i].syntax:delete a[i]:t[i].syntax&&(a[i]=t[i].syntax.replace(d,""));return a}const s={types:o(n,i.syntaxes),atrules:function(e,t){const a={};for(const i in e){const r=t[i]&&t[i].descriptors||null;a[i]={prelude:i in t&&"prelude"in t[i]?t[i].prelude:e[i].prelude||null,descriptors:o(e[i].descriptors||{},r||{})}}for(const i in t)hasOwnProperty.call(e,i)||(a[i]={prelude:t[i].prelude||null,descriptors:t[i].descriptors&&o({},t[i].descriptors)});return a}(function(e){const t=Object.create(null);for(const a in e){const i=e[a];let r=null;if(i.descriptors){r=Object.create(null);for(const e in i.descriptors)r[e]=i.descriptors[e].syntax}t[a.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:r}}return t}(r),i.atrules),properties:o(p,i.properties)};e.exports=s},210:(e,t,a)=>{"use strict";const i=a(4094);t.SyntaxError=function(e,t,a){return Object.assign(i.createCustomError("SyntaxError",e),{input:t,offset:a,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((a||t.length)+1).join("-")+"^"})}},4631:(e,t)=>{"use strict";function a(e){return e}function i(e,t,a,r){let p;switch(e.type){case"Group":p=function(e,t,a,r){const p=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",n=e.terms.map((e=>i(e,t,a,r))).join(p);return e.explicit||a?(r||","===n[0]?"[":"[ ")+n+(r?"]":" ]"):n}(e,t,a,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return i(e.term,t,a,r)+t(function(e){const{min:t,max:a,comma:i}=e;return 0===t&&0===a?"*":0===t&&1===a?"?":1===t&&0===a?i?"#":"+":1===t&&1===a?"":(i?"#":"")+(t===a?"{"+t+"}":"{"+t+","+(0!==a?a:"")+"}")}(e),e);case"Type":p="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":p="<'"+e.name+"'>";break;case"Keyword":p=e.name;break;case"AtKeyword":p="@"+e.name;break;case"Function":p=e.name+"(";break;case"String":case"Token":p=e.value;break;case"Comma":p=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(p,e)}t.generate=function(e,t){let r=a,p=!1,n=!1;return"function"==typeof t?r=t:t&&(p=Boolean(t.forceBraces),n=Boolean(t.compact),"function"==typeof t.decorate&&(r=t.decorate)),i(e,r,p,n)}},5191:(e,t,a)=>{"use strict";const i=a(210),r=a(4631),p=a(5583),n=a(6633);t.SyntaxError=i.SyntaxError,t.generate=r.generate,t.parse=p.parse,t.walk=n.walk},5583:(e,t,a)=>{"use strict";const i=a(1898),r=123,p=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),n={" ":1,"&&":2,"||":3,"|":4};function d(e){return e.substringToPos(e.findWsEnd(e.pos))}function o(e){let t=e.pos;for(;t=128||0===p[a])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function s(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function l(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function m(e){let t=null,a=null;return e.eat(r),t=s(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(a=s(e))):a=t,e.eat(125),{min:Number(t),max:a?Number(a):0}}function u(e,t){const a=function(e){let t=null,a=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,a=!0,t=e.charCode()===r?m(e):{min:1,max:0};break;case r:t=m(e);break;default:return null}return{type:"Multiplier",comma:a,min:t.min,max:t.max,term:null}}(e);return null!==a?(a.term=t,a):t}function c(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function h(e,t){function a(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let i;for(t=Object.keys(t).sort(((e,t)=>n[e]-n[t]));t.length>0;){i=t.shift();let r=0,p=0;for(;r1&&(e.splice(p,r-p,a(e.slice(p,r),i)),r=p+1),p=-1))}-1!==p&&t.length&&e.splice(p,r-p,a(e.slice(p,r),i))}return i}function g(e){const t=[],a={};let i,r=null,p=e.pos;for(;i=f(e);)"Spaces"!==i.type&&("Combinator"===i.type?(null!==r&&"Combinator"!==r.type||(e.pos=p,e.error("Unexpected combinator")),a[i.value]=!0):null!==r&&"Combinator"!==r.type&&(a[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(i),r=i,p=e.pos);return null!==r&&"Combinator"===r.type&&(e.pos-=p,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:h(t,a)||" ",disallowEmpty:!1,explicit:!1}}function f(e){let t=e.charCode();if(t<128&&1===p[t])return function(e){const t=o(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):u(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return u(e,function(e){let t;return e.eat(91),t=g(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=o(e),e.eat(39),e.eat(62),u(e,{type:"Property",name:t})}(e):function(e){let t,a=null;return e.eat(60),t=o(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(d(e),a=function(e){let t=null,a=null,i=1;return e.eat(91),45===e.charCode()&&(e.peek(),i=-1),-1==i&&8734===e.charCode()?e.peek():t=i*Number(s(e)),d(e),e.eat(44),d(e),8734===e.charCode()?e.peek():(i=1,45===e.charCode()&&(e.peek(),i=-1),a=i*Number(s(e))),e.eat(93),null===t&&null===a?null:{type:"Range",min:t,max:a}}(e)),e.eat(62),u(e,{type:"Type",name:t,opts:a})}(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return u(e,{type:"String",value:l(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:d(e)};case 64:return t=e.nextCharCode(),t<128&&1===p[t]?(e.pos++,{type:"AtKeyword",name:o(e)}):c(e);case 42:case 43:case 63:case 35:case 33:break;case r:if(t=e.nextCharCode(),t<48||t>57)return c(e);break;default:return c(e)}}t.parse=function(e){const t=new i.Tokenizer(e),a=g(t);return t.pos!==e.length&&t.error("Unexpected input"),1===a.terms.length&&"Group"===a.terms[0].type?a.terms[0]:a}},1898:(e,t,a)=>{"use strict";const i=a(210);t.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e{"use strict";const a=function(){};function i(e){return"function"==typeof e?e:a}t.walk=function(e,t,r){let p=a,n=a;if("function"==typeof t?p=t:t&&(p=i(t.enter),n=i(t.leave)),p===a&&n===a)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(p.call(r,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}n.call(r,t)}(e)}},8945:(e,t,a)=>{"use strict";const i=a(6075),r=a(3877),p=a(4545),n=a(3040);function d(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let a=null;e.children.forEach((e=>{null!==a&&t.call(this,a),this.node(e),a=e}))}}function o(e){i.tokenize(e,((t,a,i)=>{this.token(t,e.slice(a,i))}))}t.createGenerator=function(e){const t=new Map;for(let a in e.node)t.set(a,e.node[a].generate);return function(e,a){let i="",s=0,l={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(m,e)},tokenBefore:p.safe,token(e,t){s=this.tokenBefore(s,e,t),this.emit(t,e,!1),e===n.Delim&&92===t.charCodeAt(0)&&this.emit("\n",n.WhiteSpace,!0)},emit(e){i+=e},result:()=>i};a&&("function"==typeof a.decorator&&(l=a.decorator(l)),a.sourceMap&&(l=r.generateSourceMap(l)),a.mode in p&&(l.tokenBefore=p[a.mode]));const m={node:e=>l.node(e),children:d,token:(e,t)=>l.token(e,t),tokenize:o};return l.node(e),l.result()}}},3877:(e,t,a)=>{"use strict";const i=a(4508),r=new Set(["Atrule","Selector","Declaration"]);t.generateSourceMap=function(e){const t=new i.SourceMapGenerator,a={line:1,column:0},p={line:0,column:0},n={line:1,column:0},d={generated:n};let o=1,s=0,l=!1;const m=e.node;e.node=function(e){if(e.loc&&e.loc.start&&r.has(e.type)){const i=e.loc.start.line,r=e.loc.start.column-1;p.line===i&&p.column===r||(p.line=i,p.column=r,a.line=o,a.column=s,l&&(l=!1,a.line===n.line&&a.column===n.column||t.addMapping(d)),l=!0,t.addMapping({source:e.loc.source,original:p,generated:a}))}m.call(this,e),l&&r.has(e.type)&&(n.line=o,n.column=s)};const u=e.emit;e.emit=function(e,t,a){for(let t=0;t{"use strict";const i=a(3040);a(4897);const r=(e,t)=>{if(e===i.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},p=[[i.Ident,i.Ident],[i.Ident,i.Function],[i.Ident,i.Url],[i.Ident,i.BadUrl],[i.Ident,"-"],[i.Ident,i.Number],[i.Ident,i.Percentage],[i.Ident,i.Dimension],[i.Ident,i.CDC],[i.Ident,i.LeftParenthesis],[i.AtKeyword,i.Ident],[i.AtKeyword,i.Function],[i.AtKeyword,i.Url],[i.AtKeyword,i.BadUrl],[i.AtKeyword,"-"],[i.AtKeyword,i.Number],[i.AtKeyword,i.Percentage],[i.AtKeyword,i.Dimension],[i.AtKeyword,i.CDC],[i.Hash,i.Ident],[i.Hash,i.Function],[i.Hash,i.Url],[i.Hash,i.BadUrl],[i.Hash,"-"],[i.Hash,i.Number],[i.Hash,i.Percentage],[i.Hash,i.Dimension],[i.Hash,i.CDC],[i.Dimension,i.Ident],[i.Dimension,i.Function],[i.Dimension,i.Url],[i.Dimension,i.BadUrl],[i.Dimension,"-"],[i.Dimension,i.Number],[i.Dimension,i.Percentage],[i.Dimension,i.Dimension],[i.Dimension,i.CDC],["#",i.Ident],["#",i.Function],["#",i.Url],["#",i.BadUrl],["#","-"],["#",i.Number],["#",i.Percentage],["#",i.Dimension],["#",i.CDC],["-",i.Ident],["-",i.Function],["-",i.Url],["-",i.BadUrl],["-","-"],["-",i.Number],["-",i.Percentage],["-",i.Dimension],["-",i.CDC],[i.Number,i.Ident],[i.Number,i.Function],[i.Number,i.Url],[i.Number,i.BadUrl],[i.Number,i.Number],[i.Number,i.Percentage],[i.Number,i.Dimension],[i.Number,"%"],[i.Number,i.CDC],["@",i.Ident],["@",i.Function],["@",i.Url],["@",i.BadUrl],["@","-"],["@",i.CDC],[".",i.Number],[".",i.Percentage],[".",i.Dimension],["+",i.Number],["+",i.Percentage],["+",i.Dimension],["/","*"]],n=p.concat([[i.Ident,i.Hash],[i.Dimension,i.Hash],[i.Hash,i.Hash],[i.AtKeyword,i.LeftParenthesis],[i.AtKeyword,i.String],[i.AtKeyword,i.Colon],[i.Percentage,i.Percentage],[i.Percentage,i.Dimension],[i.Percentage,i.Function],[i.Percentage,"-"],[i.RightParenthesis,i.Ident],[i.RightParenthesis,i.Function],[i.RightParenthesis,i.Percentage],[i.RightParenthesis,i.Dimension],[i.RightParenthesis,i.Hash],[i.RightParenthesis,"-"]]);function d(e){const t=new Set(e.map((([e,t])=>r(e)<<16|r(t))));return function(e,a,p){const n=r(a,p),d=p.charCodeAt(0);return(45===d&&a!==i.Ident&&a!==i.Function&&a!==i.CDC||43===d?t.has(e<<16|d<<8):t.has(e<<16|n))&&this.emit(" ",i.WhiteSpace,!0),n}}const o=d(p),s=d(n);t.safe=s,t.spec=o},9648:(e,t,a)=>{"use strict";const i=a(3521),r=a(9358),p=a(8639),n=a(2920),d=a(7216),o=a(3040);a(4897);const s=a(6232),l=a(9911),m=a(5191),u=a(7646),c=a(9829),h=a(8798),g=a(2180),f=a(6802),{tokenize:v,parse:y,generate:S,lexer:b,createLexer:w,walk:x,find:C,findLast:k,findAll:T,toPlainObject:_,fromPlainObject:z,fork:O}=i;t.version=r.version,t.createSyntax=p,t.List=n.List,t.Lexer=d.Lexer,t.tokenTypes=o,t.tokenNames=s,t.TokenStream=l.TokenStream,t.definitionSyntax=m,t.clone=u.clone,t.isCustomProperty=c.isCustomProperty,t.keyword=c.keyword,t.property=c.property,t.vendorPrefix=c.vendorPrefix,t.ident=h,t.string=g,t.url=f,t.createLexer=w,t.find=C,t.findAll=T,t.findLast=k,t.fork=O,t.fromPlainObject=z,t.generate=S,t.lexer=b,t.parse=y,t.toPlainObject=_,t.tokenize=v,t.walk=x},7216:(e,t,a)=>{"use strict";const i=a(8808),r=a(9829),p=a(7510),n=a(4631),d=a(5583),o=a(6633),s=a(4889),l=a(8270),m=a(5922),u=a(1345),c=a(8415),h=a(8490),g=l.buildMatchGraph("inherit | initial | unset"),f=l.buildMatchGraph("inherit | initial | unset | <-ms-legacy-expression>");function v(e,t,a){const i={};for(const r in e)e[r].syntax&&(i[r]=a?e[r].syntax:n.generate(e[r].syntax,{compact:t}));return i}function y(e,t,a){const i={};for(const[r,p]of Object.entries(e))i[r]={prelude:p.prelude&&(a?p.prelude.syntax:n.generate(p.prelude.syntax,{compact:t})),descriptors:p.descriptors&&v(p.descriptors,t,a)};return i}function S(e,t,a){return{matched:e,iterations:a,error:t,...u}}function b(e,t,a,r){const p=s(a,e.syntax);let n;return function(e){for(let t=0;t(Object.defineProperty(p,"syntax",{value:d.parse(e)}),p.syntax)}):p.syntax=e,Object.defineProperty(p,"match",{get:()=>(Object.defineProperty(p,"match",{value:l.buildMatchGraph(p.syntax,r)}),p.match)})),p}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((a,i)=>(a[i]=this.createDescriptor(t.descriptors[i],"AtruleDescriptor",i,e),a)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e),t===p["-ms-legacy-expression"]&&(this.valueCommonSyntax=f))}checkAtruleName(e){if(!this.getAtrule(e))return new i.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const a=this.checkAtruleName(e);if(a)return a;const i=this.getAtrule(e);return!i.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):i.prelude&&!t?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0}checkAtruleDescriptorName(e,t){const a=this.checkAtruleName(e);if(a)return a;const p=this.getAtrule(e),n=r.keyword(t);return p.descriptors?p.descriptors[n.name]||p.descriptors[n.basename]?void 0:new i.SyntaxReferenceError("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new i.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,t){const a=this.checkAtrulePrelude(e,t);return a?S(null,a):t?b(this,this.getAtrule(e).prelude,t,!1):S(null,null)}matchAtruleDescriptor(e,t,a){const i=this.checkAtruleDescriptorName(e,t);if(i)return S(null,i);const p=this.getAtrule(e),n=r.keyword(t);return b(this,p.descriptors[n.name]||p.descriptors[n.basename],a,!1)}matchDeclaration(e){return"Declaration"!==e.type?S(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(r.property(e).custom)return S(null,new Error("Lexer matching doesn't applicable for custom properties"));const a=this.checkPropertyName(e);return a?S(null,a):b(this,this.getProperty(e),t,!0)}matchType(e,t){const a=this.getType(e);return a?b(this,a,t,!1):S(null,new i.SyntaxReferenceError("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),b(this,e,t,!1)):S(null,new i.SyntaxReferenceError("Bad syntax"))}findValueFragments(e,t,a,i){return c.matchFragments(this,t,this.matchProperty(e,t),a,i)}findDeclarationValueFragments(e,t,a){return c.matchFragments(this,e.value,this.matchDeclaration(e),t,a)}findAllFragments(e,t,a){const i=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{i.push.apply(i,this.findDeclarationValueFragments(e,t,a))}}),i}getAtrule(e,t=!0){const a=r.keyword(e);return(a.vendor&&t?this.atrules[a.name]||this.atrules[a.basename]:this.atrules[a.name])||null}getAtrulePrelude(e,t=!0){const a=this.getAtrule(e,t);return a&&a.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const a=r.property(e);return(a.vendor&&t?this.properties[a.name]||this.properties[a.basename]:this.properties[a.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(i,r,p,n){if(p.has(r))return p.get(r);p.set(r,!1),null!==n.syntax&&o.walk(n.syntax,(function(n){if("Type"!==n.type&&"Property"!==n.type)return;const d="Type"===n.type?i.types:i.properties,o="Type"===n.type?t:a;hasOwnProperty.call(d,n.name)&&!e(i,n.name,o,d[n.name])||p.set(r,!0)}),this)}let t=new Map,a=new Map;for(const a in this.types)e(this,a,t,this.types[a]);for(const t in this.properties)e(this,t,a,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),a=[...a.keys()].filter((e=>a.get(e))),t.length||a.length?{types:t,properties:a}:null}dump(e,t){return{generic:this.generic,types:v(this.types,!t,e),properties:v(this.properties,!t,e),atrules:y(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}},8808:(e,t,a)=>{"use strict";const i=a(4094),r=a(4631),p={offset:0,line:1,column:1};function n(e,t){const a=e&&e.loc&&e.loc[t];return a?"line"in a?d(a):a:null}function d({offset:e,line:t,column:a},i){const r={offset:e,line:t,column:a};if(i){const e=i.split(/\n|\r\n?|\f/);r.offset+=i.length,r.line+=e.length-1,r.column=1===e.length?r.column+i.length:e.pop().length+1}return r}t.SyntaxMatchError=function(e,t,a,o){const s=i.createCustomError("SyntaxMatchError",e),{css:l,mismatchOffset:m,mismatchLength:u,start:c,end:h}=function(e,t){const a=e.tokens,i=e.longestMatch,r=i1?(s=n(o||t,"end")||d(p,h),l=d(s)):(s=n(o,"start")||d(n(t,"start")||p,h.slice(0,m)),l=n(o,"end")||d(s,h.substr(m,u))),{css:h,mismatchOffset:m,mismatchLength:u,start:s,end:l}}(o,a);return s.rawMessage=e,s.syntax=t?r.generate(t):"",s.css=l,s.mismatchOffset=m,s.mismatchLength=u,s.message=e+"\n syntax: "+s.syntax+"\n value: "+(l||"")+"\n --------"+new Array(s.mismatchOffset+1).join("-")+"^",Object.assign(s,c),s.loc={source:a&&a.loc&&a.loc.source||"",start:c,end:h},s},t.SyntaxReferenceError=function(e,t){const a=i.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return a.reference=t,a}},8364:(e,t,a)=>{"use strict";const i=a(3040),r=a(4897),p=a(8022),n=45,d=!0;function o(e,t){return null!==e&&e.type===i.Delim&&e.value.charCodeAt(0)===t}function s(e,t,a){for(;null!==e&&(e.type===i.WhiteSpace||e.type===i.Comment);)e=a(++t);return t}function l(e,t,a,i){if(!e)return 0;const p=e.value.charCodeAt(t);if(43===p||p===n){if(a)return 0;t++}for(;t{"use strict";const i=a(3040),r=a(4897),p=a(8022);function n(e,t){return null!==e&&e.type===i.Delim&&e.value.charCodeAt(0)===t}function d(e,t,a){let i=0;for(let p=t;p6)return 0}return i}function o(e,t,a){if(!e)return 0;for(;n(a(t),63);){if(++e>6)return 0;t++}return t}e.exports=function(e,t){let a=0;if(null===e||e.type!==i.Ident||!p.cmpChar(e.value,0,117))return 0;if(null===(e=t(++a)))return 0;if(n(e,43))return null===(e=t(++a))?0:e.type===i.Ident?o(d(e,0,!0),++a,t):n(e,63)?o(1,++a,t):0;if(e.type===i.Number){const r=d(e,1,!0);return 0===r?0:null===(e=t(++a))?a:e.type===i.Dimension||e.type===i.Number?function(e,t){return 45===e.value.charCodeAt(0)}(e)&&d(e,1,!1)?a+1:0:o(r,a,t)}return e.type===i.Dimension?o(d(e,1,!0),++a,t):0}},7510:(e,t,a)=>{"use strict";const i=a(8364),r=a(1344),p=a(3040),n=a(4897),d=a(8022),o=["unset","initial","inherit"],s=["calc(","-moz-calc(","-webkit-calc("],l=new Map([[p.Function,p.RightParenthesis],[p.LeftParenthesis,p.RightParenthesis],[p.LeftSquareBracket,p.RightSquareBracket],[p.LeftCurlyBracket,p.RightCurlyBracket]]);function m(e,t){return te.max)return!0}return!1}function f(e,t){let a=0,i=[],r=0;e:do{switch(e.type){case p.RightCurlyBracket:case p.RightParenthesis:case p.RightSquareBracket:if(e.type!==a)break e;if(a=i.pop(),0===i.length){r++;break e}break;case p.Function:case p.LeftParenthesis:case p.LeftSquareBracket:case p.LeftCurlyBracket:i.push(a),a=l.get(e.type)}r++}while(e=t(r));return r}function v(e){return function(t,a,i){return null===t?0:t.type===p.Function&&c(t.value,s)?f(t,a):e(t,a,i)}}function y(e){return function(t){return null===t||t.type!==e?0:1}}function S(e){return e&&(e=new Set(e)),function(t,a,i){if(null===t||t.type!==p.Dimension)return 0;const r=d.consumeNumber(t.value,0);if(null!==e){const a=t.value.indexOf("\\",r),i=-1!==a&&h(t.value,a)?t.value.substring(r,a):t.value.substr(r);if(!1===e.has(i.toLowerCase()))return 0}return g(i,t.value,r)?0:1}}function b(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,a,i){return null!==t&&t.type===p.Number&&0===Number(t.value)?1:e(t,a,i)}}const w={"ident-token":y(p.Ident),"function-token":y(p.Function),"at-keyword-token":y(p.AtKeyword),"hash-token":y(p.Hash),"string-token":y(p.String),"bad-string-token":y(p.BadString),"url-token":y(p.Url),"bad-url-token":y(p.BadUrl),"delim-token":y(p.Delim),"number-token":y(p.Number),"percentage-token":y(p.Percentage),"dimension-token":y(p.Dimension),"whitespace-token":y(p.WhiteSpace),"CDO-token":y(p.CDO),"CDC-token":y(p.CDC),"colon-token":y(p.Colon),"semicolon-token":y(p.Semicolon),"comma-token":y(p.Comma),"[-token":y(p.LeftSquareBracket),"]-token":y(p.RightSquareBracket),"(-token":y(p.LeftParenthesis),")-token":y(p.RightParenthesis),"{-token":y(p.LeftCurlyBracket),"}-token":y(p.RightCurlyBracket),string:y(p.String),ident:y(p.Ident),"custom-ident":function(e){if(null===e||e.type!==p.Ident)return 0;const t=e.value.toLowerCase();return c(t,o)||u(t,"default")?0:1},"custom-property-name":function(e){return null===e||e.type!==p.Ident||45!==m(e.value,0)||45!==m(e.value,1)?0:1},"hex-color":function(e){if(null===e||e.type!==p.Hash)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let a=1;a{"use strict";const i=a(5583),r={type:"Match"},p={type:"Mismatch"},n={type:"DisallowEmpty"};function d(e,t,a){return t===r&&a===p||e===r&&t===r&&a===r?e:("If"===e.type&&e.else===p&&t===r&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:a})}function o(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function s(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&o(e.name)}function l(e,t,a){switch(e){case" ":{let e=r;for(let a=t.length-1;a>=0;a--)e=d(t[a],e,p);return e}case"|":{let e=p,a=null;for(let i=t.length-1;i>=0;i--){let p=t[i];if(s(p)&&(null===a&&i>0&&s(t[i-1])&&(a=Object.create(null),e=d({type:"Enum",map:a},r,e)),null!==a)){const e=(o(p.name)?p.name.slice(0,-1):p.name).toLowerCase();if(e in a==0){a[e]=p;continue}}a=null,e=d(p,r,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let a=p;for(let i=t.length-1;i>=0;i--){const p=t[i];let n;n=t.length>1?l(e,t.filter((function(e){return e!==p})),!1):r,a=d(p,n,a)}return a}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let i=a?r:p;for(let a=t.length-1;a>=0;a--){const p=t[a];let n;n=t.length>1?l(e,t.filter((function(e){return e!==p})),!0):r,i=d(p,n,i)}return i}}}function m(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=l(e.combinator,e.terms.map(m),!1);return e.disallowEmpty&&(t=d(t,n,p)),t}case"Multiplier":return function(e){let t=r,a=m(e.term);if(0===e.max)a=d(a,n,p),t=d(a,null,p),t.then=d(r,r,t),e.comma&&(t.then.else=d({type:"Comma",syntax:e},t,p));else for(let i=e.min||1;i<=e.max;i++)e.comma&&t!==r&&(t=d({type:"Comma",syntax:e},t,p)),t=d(a,d(r,r,t),p);if(0===e.min)t=d(r,r,t);else for(let i=0;i{"use strict";const i=a(8270),r=a(3040),{hasOwnProperty:p}=Object.prototype,n="Match";function d(e){let t=null,a=null,i=e;for(;null!==i;)a=i.prev,i.prev=t,t=i,i=a;return t}function o(e,t){if(e.length!==t.length)return!1;for(let a=0;a=65&&r<=90&&(r|=32),r!==i)return!1}return!0}function s(e){return null===e||e.type===r.Comma||e.type===r.Function||e.type===r.LeftParenthesis||e.type===r.LeftSquareBracket||e.type===r.LeftCurlyBracket||function(e){return e.type===r.Delim&&"?"!==e.value}(e)}function l(e){return null===e||e.type===r.RightParenthesis||e.type===r.RightSquareBracket||e.type===r.RightCurlyBracket||e.type===r.Delim}function m(e,t,a){function d(){do{k++,C=kT&&(T=k)}function f(){_=2===_.type?_.prev:{type:3,syntax:v.syntax,token:_.token,prev:_},v=v.prev}let v=null,y=null,S=null,b=null,w=0,x=null,C=null,k=-1,T=0,_={type:0,syntax:null,token:null,prev:null};for(d();null===x&&++w<15e3;)switch(t.type){case"Match":if(null===y){if(null!==C&&(k!==e.length-1||"\\0"!==C.value&&"\\9"!==C.value)){t=i.MISMATCH;break}x=n;break}if((t=y.nextState)===i.DISALLOW_EMPTY){if(y.matchStack===_){t=i.MISMATCH;break}t=i.MATCH}for(;y.syntaxStack!==v;)f();y=y.prev;break;case"Mismatch":if(null!==b&&!1!==b)(null===S||k>S.tokenIndex)&&(S=b,b=!1);else if(null===S){x="Mismatch";break}t=S.nextState,y=S.thenStack,v=S.syntaxStack,_=S.matchStack,k=S.tokenIndex,C=kk){for(;k":"<'"+t.name+"'>"));if(!1!==b&&null!==C&&"Type"===t.type&&("custom-ident"===t.name&&C.type===r.Ident||"length"===t.name&&"0"===C.value)){null===b&&(b=u(t,S)),t=i.MISMATCH;break}v={syntax:t.syntax,opts:t.syntax.opts||null!==v&&v.opts||null,prev:v},_={type:2,syntax:t.syntax,token:_.token,prev:_},t=n.match;break}case"Keyword":{const e=t.name;if(null!==C){let a=C.value;if(-1!==a.indexOf("\\")&&(a=a.replace(/\\[09].*$/,"")),o(a,e)){g(),t=i.MATCH;break}}t=i.MISMATCH;break}case"AtKeyword":case"Function":if(null!==C&&o(C.value,t.name)){g(),t=i.MATCH;break}t=i.MISMATCH;break;case"Token":if(null!==C&&C.value===t.value){g(),t=i.MATCH;break}t=i.MISMATCH;break;case"Comma":null!==C&&C.type===r.Comma?s(_.token)?t=i.MISMATCH:(g(),t=l(C)?i.MISMATCH:i.MATCH):t=s(_.token)||l(C)?i.MATCH:i.MISMATCH;break;case"String":let d="",w=k;for(;w{"use strict";const i=a(6075),r={decorator:function(e){const t=[];let a=null;return{...e,node(t){const i=a;a=t,e.node.call(this,t),a=i},emit(e,i,r){t.push({type:i,value:e,node:r?null:a})},result:()=>t}}};e.exports=function(e,t){return"string"==typeof e?function(e){const t=[];return i.tokenize(e,((a,i,r)=>t.push({type:a,value:e.slice(i,r),node:null}))),t}(e):t.generate(e,r)}},8415:(e,t,a)=>{"use strict";const i=a(2920);function r(e){return"node"in e?e.node:r(e.match[0])}function p(e){return"node"in e?e.node:p(e.match[e.match.length-1])}t.matchFragments=function(e,t,a,n,d){const o=[];return null!==a.matched&&function a(s){if(null!==s.syntax&&s.syntax.type===n&&s.syntax.name===d){const a=r(s),n=p(s);e.syntax.walk(t,(function(e,t,r){if(e===a){const e=new i.List;do{if(e.appendData(t.data),t.data===n)break;t=t.next}while(null!==t);o.push({parent:r,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(a)}(a.matched),o}},8490:(e,t,a)=>{"use strict";const i=a(2920),{hasOwnProperty:r}=Object.prototype;function p(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function n(e){return Boolean(e)&&p(e.offset)&&p(e.line)&&p(e.column)}function d(e,t){return function(a,p){if(!a||a.constructor!==Object)return p(a,"Type of node should be an Object");for(let d in a){let o=!0;if(!1!==r.call(a,d)){if("type"===d)a.type!==e&&p(a,"Wrong node type `"+a.type+"`, expected `"+e+"`");else if("loc"===d){if(null===a.loc)continue;if(a.loc&&a.loc.constructor===Object)if("string"!=typeof a.loc.source)d+=".source";else if(n(a.loc.start)){if(n(a.loc.end))continue;d+=".end"}else d+=".start";o=!1}else if(t.hasOwnProperty(d)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(i))throw new Error("Wrong value `"+i+"` in `"+e+"."+t+"` structure definition");n.push("List")}}p[t]=n.join(" | ")}return{docs:p,check:d(e,i)}}t.getStructureFromConfig=function(e){const t={};if(e.node)for(const a in e.node)if(r.call(e.node,a)){const i=e.node[a];if(!i.structure)throw new Error("Missed `structure` field in `"+a+"` node type definition");t[a]=o(a,i)}return t}},1345:(e,t)=>{"use strict";function a(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let a=null;return null!==this.matched&&function i(r){if(Array.isArray(r.match)){for(let e=0;e"Keyword"===e.type))},t.isProperty=function(e,t){return i(this,e,(e=>"Property"===e.type&&e.name===t))},t.isType=function(e,t){return i(this,e,(e=>"Type"===e.type&&e.name===t))}},1651:(e,t,a)=>{"use strict";const i=a(4094),r=" ";function p({source:e,line:t,column:a},i){function p(e,t){return n.slice(e,t).map(((t,a)=>String(e+a+1).padStart(s)+" |"+t)).join("\n")}const n=e.split(/\r\n?|\n|\f/),d=Math.max(1,t-i)-1,o=Math.min(t+i,n.length+1),s=Math.max(4,String(o).length)+1;let l=0;(a+=(r.length-1)*(n[t-1].substr(0,a-1).match(/\t/g)||[]).length)>100&&(l=a-60+3,a=58);for(let e=d;e<=o;e++)e>=0&&e0&&n[e].length>l?"…":"")+n[e].substr(l,98)+(n[e].length>l+100-1?"…":""));return[p(d,t),new Array(a+s+2).join("-")+"^",p(t,o)].filter(Boolean).join("\n")}t.SyntaxError=function(e,t,a,r,n){return Object.assign(i.createCustomError("SyntaxError",e),{source:t,offset:a,line:r,column:n,sourceFragment:e=>p({source:t,line:r,column:n},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+p({source:t,line:r,column:n},2)}})}},7620:(e,t,a)=>{"use strict";const i=a(2920),r=a(1651),p=a(6075),n=a(1451),d=a(9911),o=a(8022),s=a(3040),l=a(6232),m=a(1385),u=()=>{};function c(e){return function(){return this[e]()}}function h(e){const t=Object.create(null);for(const a in e){const i=e[a];i.parse&&(t[a]=i.parse)}return t}t.createParser=function(e){let t="",a="",g=!1,f=u,v=!1;const y=new m.OffsetToLocation,S=Object.assign(new d.TokenStream,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:h(e.atrule),pseudo:h(e.pseudo),node:h(e.node)};for(const a in e.parseContext)switch(typeof e.parseContext[a]){case"function":t.context[a]=e.parseContext[a];break;case"string":t.context[a]=c(e.parseContext[a])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:n.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new i.List,createSingleNodeList:e=>(new i.List).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const a=this.tokenIndex;try{return e.call(this)}catch(e){if(v)throw e;const i=t.call(this,a);return v=!0,f(e,i),v=!1,i}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==s.WhiteSpace)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&et.substring(e,a),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,a)=>o.cmpChar(t,e,a),cmpStr:(e,a,i)=>o.cmpStr(t,e,a,i),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(s.Function),e},consumeNumber(e){const a=t.substring(this.tokenStart,o.consumeNumber(t,this.tokenStart));return this.eat(e),a},eat(e){if(this.tokenType!==e){const t=l[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let a=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,i=this.tokenStart;switch(e){case s.Ident:this.tokenType===s.Function||this.tokenType===s.Url?(i=this.tokenEnd-1,a="Identifier is expected but function found"):a="Identifier is expected";break;case s.Hash:this.isDelim(35)&&(this.next(),i++,a="Name is expected");break;case s.Percentage:this.tokenType===s.Number&&(i=this.tokenEnd,a="Percent sign is expected")}this.error(a,i)}this.next()},eatIdent(e){this.tokenType===s.Ident&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>g?y.getLocationRange(e,t,a):null,getLocationFromList(e){if(g){const t=this.getFirstListNode(e),i=this.getLastListNode(e);return y.getLocationRange(null!==t?t.loc.start.offset-y.startOffset:this.tokenStart,null!==i?i.loc.end.offset-y.startOffset:this.tokenStart,a)}return null},error(e,a){const i=void 0!==a&&a",g=Boolean(i.positions),f="function"==typeof i.onParseError?i.onParseError:u,v=!1,S.parseAtrulePrelude=!("parseAtrulePrelude"in i)||Boolean(i.parseAtrulePrelude),S.parseRulePrelude=!("parseRulePrelude"in i)||Boolean(i.parseRulePrelude),S.parseValue=!("parseValue"in i)||Boolean(i.parseValue),S.parseCustomProperty="parseCustomProperty"in i&&Boolean(i.parseCustomProperty);const{context:r="default",onComment:n}=i;if(r in S.context==0)throw new Error("Unknown context `"+r+"`");"function"==typeof n&&S.forEachToken(((e,a,i)=>{if(e===s.Comment){const e=S.getLocation(a,i),r=o.cmpStr(t,i-2,i,"*/")?t.slice(a+2,i-2):t.slice(a+2,i);n(r,e)}}));const d=S.context[r].call(S,i);return S.eof||S.error(),d}),{SyntaxError:r.SyntaxError,config:S.config})}},1451:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.readSequence=function(e){const t=this.createList();let a=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case i.Comment:this.next();continue;case i.WhiteSpace:a=!0,this.next();continue}let p=e.getNode.call(this,r);if(void 0===p)break;a&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,p,t,r),a=!1),t.push(p)}return a&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}},6702:e=>{"use strict";const t={parse:{prelude:null,block(){return this.Block(!0)}}};e.exports=t},9874:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case i.String:e.push(this.String());break;case i.Url:case i.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.lookupNonWSType(0)!==i.Ident&&this.lookupNonWSType(0)!==i.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}};e.exports=r},6915:(e,t,a)=>{"use strict";const i={"font-face":a(6702),import:a(9874),media:a(970),page:a(3487),supports:a(5195)};e.exports=i},970:e=>{"use strict";const t={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}};e.exports=t},3487:e=>{"use strict";const t={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};e.exports=t},5195:(e,t,a)=>{"use strict";const i=a(3040);function r(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function p(){return this.skipSC(),this.tokenType===i.Ident&&this.lookupNonWSType(1)===i.Colon?this.createSingleNodeList(this.Declaration()):n.call(this)}function n(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case i.Comment:case i.WhiteSpace:this.next();continue;case i.Function:t=this.Function(r,this.scope.AtrulePrelude);break;case i.Ident:t=this.Identifier();break;case i.LeftParenthesis:t=this.Parentheses(p,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}a(4897);const d={parse:{prelude(){const e=n.call(this);return null===this.getFirstListNode(e)&&this.error("Condition is expected"),e},block(){return this.Block(!1)}}};e.exports=d},1846:(e,t,a)=>{"use strict";const i={generic:!0,...a(1409),node:a(6603)};e.exports=i},7246:e=>{"use strict";const{hasOwnProperty:t}=Object.prototype,a={generic:!0,types:n,atrules:{prelude:d,descriptors:d},properties:n,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(a,p){for(const n in p)t.call(p,n)&&(i(a[n])?e(a[n],r(p[n])):a[n]=r(p[n]));return a},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function i(e){return e&&e.constructor===Object}function r(e){return i(e)?{...e}:e}function p(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function n(e,a){if("string"==typeof a)return p(e,a);const i={...e};for(let r in a)t.call(a,r)&&(i[r]=p(t.call(e,r)?e[r]:void 0,a[r]));return i}function d(e,t){const a=n(e,t);return!i(a)||Object.keys(a).length?a:null}function o(e,a,p){for(const n in p)if(!1!==t.call(p,n))if(!0===p[n])n in a&&t.call(a,n)&&(e[n]=r(a[n]));else if(p[n])if("function"==typeof p[n]){const t=p[n];e[n]=t({},e[n]),e[n]=t(e[n]||{},a[n])}else if(i(p[n])){const t={};for(let a in e[n])t[a]=o({},e[n][a],p[n]);for(let e in a[n])t[e]=o(t[e]||{},a[n][e],p[n]);e[n]=t}else if(Array.isArray(p[n])){const i={},r=p[n].reduce((function(e,t){return e[t]=!0,e}),{});for(const[t,a]of Object.entries(e[n]||{}))i[t]={},a&&o(i[t],a,r);for(const e in a[n])t.call(a[n],e)&&(i[e]||(i[e]={}),a[n]&&a[n][e]&&o(i[e],a[n][e],r));e[n]=i}return e}e.exports=(e,t)=>o(e,t,a)},6424:(e,t,a)=>{"use strict";const i={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:a(4754),atrule:a(6915),pseudo:a(2921),node:a(6603)};e.exports=i},9707:(e,t,a)=>{"use strict";const i={node:a(6603)};e.exports=i},8639:(e,t,a)=>{"use strict";const i=a(6075),r=a(7620),p=a(8945),n=a(7048),d=a(1306),o=a(7216),s=a(7246);function l(e){const t=r.createParser(e),a=d.createWalker(e),m=p.createGenerator(e),{fromPlainObject:u,toPlainObject:c}=n.createConvertor(a),h={lexer:null,createLexer:e=>new o.Lexer(e,h,h.lexer.structure),tokenize:i.tokenize,parse:t,generate:m,walk:a,find:a.find,findLast:a.findLast,findAll:a.findAll,fromPlainObject:u,toPlainObject:c,fork(t){const a=s({},e);return l("function"==typeof t?t(a,Object.assign):s(a,t))}};return h.lexer=new o.Lexer({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},h),h}e.exports=e=>l(s({},e))},8549:e=>{"use strict";e.exports=function(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}},1899:(e,t,a)=>{"use strict";const i=a(3040);a(4897),e.exports=function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===i.Comma){e.push(this.Operator());const t=this.tokenIndex,a=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===a.type&&a.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===i.WhiteSpace){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(a)}return e}},3521:(e,t,a)=>{"use strict";const i=a(8639)({...a(1846),...a(6424),...a(9707)});e.exports=i},1329:(e,t,a)=>{"use strict";const i=a(3040),r=a(4897),p=43,n=45,d=110,o=!0;function s(e,t){let a=this.tokenStart+e;const i=this.charCodeAt(a);for(i!==p&&i!==n||(t&&this.error("Number sign is not allowed"),a++);a0&&this.skip(e),0===t&&(a=this.charCodeAt(this.tokenStart),a!==p&&a!==n&&this.error("Number sign is expected")),l.call(this,0!==t),t===n?"-"+this.consume(i.Number):this.consume(i.Number)}const c={a:[String,null],b:[String,null]};t.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const a="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+a)}else this.tokenize(t)}else this.tokenize(e.b)},t.name="AnPlusB",t.parse=function(){const e=this.tokenStart;let t=null,a=null;if(this.tokenType===i.Number)l.call(this,!1),a=this.consume(i.Number);else if(this.tokenType===i.Ident&&this.cmpChar(this.tokenStart,n))switch(t="-1",m.call(this,1,d),this.tokenEnd-this.tokenStart){case 2:this.next(),a=u.call(this);break;case 3:m.call(this,2,n),this.next(),this.skipSC(),l.call(this,o),a="-"+this.consume(i.Number);break;default:m.call(this,2,n),s.call(this,3,o),this.next(),a=this.substrToCursor(e+2)}else if(this.tokenType===i.Ident||this.isDelim(p)&&this.lookupType(1)===i.Ident){let r=0;switch(t="1",this.isDelim(p)&&(r=1,this.next()),m.call(this,0,d),this.tokenEnd-this.tokenStart){case 1:this.next(),a=u.call(this);break;case 2:m.call(this,1,n),this.next(),this.skipSC(),l.call(this,o),a="-"+this.consume(i.Number);break;default:m.call(this,1,n),s.call(this,2,o),this.next(),a=this.substrToCursor(e+r+1)}}else if(this.tokenType===i.Dimension){const c=this.charCodeAt(this.tokenStart),h=c===p||c===n;let g=this.tokenStart+h;for(;g{"use strict";const i=a(3040);function r(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function p(){for(let e,t=1;e=this.lookupType(t);t++){if(e===i.RightCurlyBracket)return!0;if(e===i.LeftCurlyBracket||e===i.AtKeyword)return!1}return!1}a(4897);const n={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};t.generate=function(e){this.token(i.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(i.Semicolon,";")},t.name="Atrule",t.parse=function(){const e=this.tokenStart;let t,a,n=null,d=null;switch(this.eat(i.AtKeyword),t=this.substrToCursor(e+1),a=t.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==i.LeftCurlyBracket&&this.tokenType!==i.Semicolon&&(n=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t),r):r.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case i.Semicolon:this.next();break;case i.LeftCurlyBracket:d=hasOwnProperty.call(this.atrule,a)&&"function"==typeof this.atrule[a].block?this.atrule[a].block.call(this):this.Block(p.call(this))}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:t,prelude:n,block:d}},t.structure=n,t.walkContext="atrule"},7212:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.children(e)},t.name="AtrulePrelude",t.parse=function(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==i.LeftCurlyBracket&&this.tokenType!==i.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},t.structure={children:[[]]},t.walkContext="atrulePrelude"},950:(e,t,a)=>{"use strict";const i=a(3040);function r(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(i.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(i.Ident)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function p(){const e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}a(4897);const n={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};t.generate=function(e){this.token(i.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(i.Ident,e.flags),this.token(i.Delim,"]")},t.name="AttributeSelector",t.parse=function(){const e=this.tokenStart;let t,a=null,n=null,d=null;return this.eat(i.LeftSquareBracket),this.skipSC(),t=r.call(this),this.skipSC(),this.tokenType!==i.RightSquareBracket&&(this.tokenType!==i.Ident&&(a=p.call(this),this.skipSC(),n=this.tokenType===i.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===i.Ident&&(d=this.consume(i.Ident),this.skipSC())),this.eat(i.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:a,value:n,flags:d}},t.structure=n},8502:(e,t,a)=>{"use strict";const i=a(3040);function r(e){return this.Raw(e,null,!0)}function p(){return this.parseWithFallback(this.Rule,r)}function n(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function d(){if(this.tokenType===i.Semicolon)return n.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,n);return this.tokenType===i.Semicolon&&this.next(),e}a(4897),t.generate=function(e){this.token(i.LeftCurlyBracket,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(i.Semicolon,";")})),this.token(i.RightCurlyBracket,"}")},t.name="Block",t.parse=function(e){const t=e?d:p,a=this.tokenStart;let n=this.createList();this.eat(i.LeftCurlyBracket);e:for(;!this.eof;)switch(this.tokenType){case i.RightCurlyBracket:break e;case i.WhiteSpace:case i.Comment:this.next();break;case i.AtKeyword:n.push(this.parseWithFallback(this.Atrule,r));break;default:n.push(t.call(this))}return this.eof||this.eat(i.RightCurlyBracket),{type:"Block",loc:this.getLocation(a,this.tokenStart),children:n}},t.structure={children:[["Atrule","Rule","Declaration"]]},t.walkContext="block"},7102:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.token(i.Delim,"["),this.children(e),this.token(i.Delim,"]")},t.name="Brackets",t.parse=function(e,t){const a=this.tokenStart;let r=null;return this.eat(i.LeftSquareBracket),r=e.call(this,t),this.eof||this.eat(i.RightSquareBracket),{type:"Brackets",loc:this.getLocation(a,this.tokenStart),children:r}},t.structure={children:[[]]}},4759:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(){this.token(i.CDC,"--\x3e")},t.name="CDC",t.parse=function(){const e=this.tokenStart;return this.eat(i.CDC),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}},t.structure=[]},9252:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(){this.token(i.CDO,"\x3c!--")},t.name="CDO",t.parse=function(){const e=this.tokenStart;return this.eat(i.CDO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}},t.structure=[]},3666:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String};t.generate=function(e){this.token(i.Delim,"."),this.token(i.Ident,e.name)},t.name="ClassSelector",t.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(i.Ident)}},t.structure=r},8081:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String};t.generate=function(e){this.tokenize(e.name)},t.name="Combinator",t.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case i.WhiteSpace:t=" ";break;case i.Delim:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}},t.structure=r},4963:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={value:String};t.generate=function(e){this.token(i.Comment,"/*"+e.value+"*/")},t.name="Comment",t.parse=function(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(i.Comment),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}},t.structure=r},211:(e,t,a)=>{"use strict";const i=a(9829),r=a(3040);function p(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function n(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function d(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==r.Semicolon&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}a(4897);const o={important:[Boolean,String],property:String,value:["Value","Raw"]};function s(){const e=this.tokenStart;if(this.tokenType===r.Delim)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return this.tokenType===r.Hash?this.eat(r.Hash):this.eat(r.Ident),this.substrToCursor(e)}function l(){this.eat(r.Delim),this.skipSC();const e=this.consume(r.Ident);return"important"===e||e}t.generate=function(e){this.token(r.Ident,e.property),this.token(r.Colon,":"),this.node(e.value),e.important&&(this.token(r.Delim,"!"),this.token(r.Ident,!0===e.important?"important":e.important))},t.name="Declaration",t.parse=function(){const e=this.tokenStart,t=this.tokenIndex,a=s.call(this),o=i.isCustomProperty(a),m=o?this.parseCustomProperty:this.parseValue,u=o?n:p;let c,h=!1;this.skipSC(),this.eat(r.Colon);const g=this.tokenIndex;if(o||this.skipSC(),c=m?this.parseWithFallback(d,u):u.call(this,this.tokenIndex),o&&"Value"===c.type&&c.children.isEmpty)for(let e=g-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===r.WhiteSpace){c.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(h=l.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==r.Semicolon&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:h,property:a,value:c}},t.structure=o,t.walkContext="declaration"},4292:(e,t,a)=>{"use strict";const i=a(3040);function r(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}a(4897),t.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(i.Semicolon,";")}))},t.name="DeclarationList",t.parse=function(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case i.WhiteSpace:case i.Comment:case i.Semicolon:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,r))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["Declaration"]]}},3068:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={value:String,unit:String};t.generate=function(e){this.token(i.Dimension,e.value+e.unit)},t.name="Dimension",t.parse=function(){const e=this.tokenStart,t=this.consumeNumber(i.Dimension);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}},t.structure=r},7863:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String,children:[[]]};t.generate=function(e){this.token(i.Function,e.name+"("),this.children(e),this.token(i.RightParenthesis,")")},t.name="Function",t.parse=function(e,t){const a=this.tokenStart,r=this.consumeFunctionName(),p=r.toLowerCase();let n;return n=t.hasOwnProperty(p)?t[p].call(this,t):e.call(this,t),this.eof||this.eat(i.RightParenthesis),{type:"Function",loc:this.getLocation(a,this.tokenStart),name:r,children:n}},t.structure=r,t.walkContext="function"},9292:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={value:String};t.generate=function(e){this.token(i.Hash,"#"+e.value)},t.name="Hash",t.parse=function(){const e=this.tokenStart;return this.eat(i.Hash),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}},t.structure=r,t.xxx="XXX"},841:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String};t.generate=function(e){this.token(i.Delim,"#"+e.name)},t.name="IdSelector",t.parse=function(){const e=this.tokenStart;return this.eat(i.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},t.structure=r},3876:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String};t.generate=function(e){this.token(i.Ident,e.name)},t.name="Identifier",t.parse=function(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(i.Ident)}},t.structure=r},6091:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String,value:["Identifier","Number","Dimension","Ratio",null]};t.generate=function(e){this.token(i.LeftParenthesis,"("),this.token(i.Ident,e.name),null!==e.value&&(this.token(i.Colon,":"),this.node(e.value)),this.token(i.RightParenthesis,")")},t.name="MediaFeature",t.parse=function(){const e=this.tokenStart;let t,a=null;if(this.eat(i.LeftParenthesis),this.skipSC(),t=this.consume(i.Ident),this.skipSC(),this.tokenType!==i.RightParenthesis){switch(this.eat(i.Colon),this.skipSC(),this.tokenType){case i.Number:a=this.lookupNonWSType(1)===i.Delim?this.Ratio():this.Number();break;case i.Dimension:a=this.Dimension();break;case i.Ident:a=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(i.RightParenthesis),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:a}},t.structure=r},8646:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.children(e)},t.name="MediaQuery",t.parse=function(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case i.Comment:case i.WhiteSpace:this.next();continue;case i.Ident:t=this.Identifier();break;case i.LeftParenthesis:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["Identifier","MediaFeature","WhiteSpace"]]}},9535:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.children(e,(()=>this.token(i.Comma,",")))},t.name="MediaQueryList",t.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===i.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["MediaQuery"]]}},9351:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.node(e.nth),null!==e.selector&&(this.token(i.Ident,"of"),this.node(e.selector))},t.name="Nth",t.parse=function(){this.skipSC();const e=this.tokenStart;let t,a=e,i=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),a=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),i=this.SelectorList(),a=this.tokenStart),{type:"Nth",loc:this.getLocation(e,a),nth:t,selector:i}},t.structure={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]}},7885:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={value:String};t.generate=function(e){this.token(i.Number,e.value)},t.name="Number",t.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(i.Number)}},t.structure=r},9608:(e,t)=>{"use strict";const a={value:String};t.generate=function(e){this.tokenize(e.value)},t.name="Operator",t.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},t.structure=a},8099:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.token(i.LeftParenthesis,"("),this.children(e),this.token(i.RightParenthesis,")")},t.name="Parentheses",t.parse=function(e,t){const a=this.tokenStart;let r=null;return this.eat(i.LeftParenthesis),r=e.call(this,t),this.eof||this.eat(i.RightParenthesis),{type:"Parentheses",loc:this.getLocation(a,this.tokenStart),children:r}},t.structure={children:[[]]}},3046:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={value:String};t.generate=function(e){this.token(i.Percentage,e.value+"%")},t.name="Percentage",t.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(i.Percentage)}},t.structure=r},4237:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String,children:[["Raw"],null]};t.generate=function(e){this.token(i.Colon,":"),null===e.children?this.token(i.Ident,e.name):(this.token(i.Function,e.name+"("),this.children(e),this.token(i.RightParenthesis,")"))},t.name="PseudoClassSelector",t.parse=function(){const e=this.tokenStart;let t,a,r=null;return this.eat(i.Colon),this.tokenType===i.Function?(t=this.consumeFunctionName(),a=t.toLowerCase(),hasOwnProperty.call(this.pseudo,a)?(this.skipSC(),r=this.pseudo[a].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(i.RightParenthesis)):t=this.consume(i.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},t.structure=r,t.walkContext="function"},4751:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={name:String,children:[["Raw"],null]};t.generate=function(e){this.token(i.Colon,":"),this.token(i.Colon,":"),null===e.children?this.token(i.Ident,e.name):(this.token(i.Function,e.name+"("),this.children(e),this.token(i.RightParenthesis,")"))},t.name="PseudoElementSelector",t.parse=function(){const e=this.tokenStart;let t,a,r=null;return this.eat(i.Colon),this.eat(i.Colon),this.tokenType===i.Function?(t=this.consumeFunctionName(),a=t.toLowerCase(),hasOwnProperty.call(this.pseudo,a)?(this.skipSC(),r=this.pseudo[a].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(i.RightParenthesis)):t=this.consume(i.Ident),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},t.structure=r,t.walkContext="function"},141:(e,t,a)=>{"use strict";const i=a(3040),r=a(4897);function p(){this.skipSC();const e=this.consume(i.Number);for(let t=0;t{"use strict";const i=a(3040);function r(){return this.tokenIndex>0&&this.lookupType(-1)===i.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}a(4897);const p={value:String};t.generate=function(e){this.tokenize(e.value)},t.name="Raw",t.parse=function(e,t,a){const i=this.getTokenStart(e);let p;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),p=a&&this.tokenStart>i?r.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,p),value:this.substring(i,p)}},t.structure=p},3215:(e,t,a)=>{"use strict";const i=a(3040);function r(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function p(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==i.LeftCurlyBracket&&this.error(),e}a(4897),t.generate=function(e){this.node(e.prelude),this.node(e.block)},t.name="Rule",t.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let a,i;return a=this.parseRulePrelude?this.parseWithFallback(p,r):r.call(this,e),i=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:a,block:i}},t.structure={prelude:["SelectorList","Raw"],block:["Block"]},t.walkContext="rule"},947:(e,t)=>{"use strict";t.generate=function(e){this.children(e)},t.name="Selector",t.parse=function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]}},2065:(e,t,a)=>{"use strict";const i=a(3040);a(4897),t.generate=function(e){this.children(e,(()=>this.token(i.Comma,",")))},t.name="SelectorList",t.parse=function(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===i.Comma);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},t.structure={children:[["Selector","Raw"]]},t.walkContext="selector"},1460:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r=a(2180),p={value:String};t.generate=function(e){this.token(i.String,r.encode(e.value))},t.name="String",t.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:r.decode(this.consume(i.String))}},t.structure=p},8243:(e,t,a)=>{"use strict";const i=a(3040);function r(e){return this.Raw(e,null,!1)}a(4897),t.generate=function(e){this.children(e)},t.name="StyleSheet",t.parse=function(){const e=this.tokenStart,t=this.createList();let a;for(;!this.eof;){switch(this.tokenType){case i.WhiteSpace:this.next();continue;case i.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}a=this.Comment();break;case i.CDO:a=this.CDO();break;case i.CDC:a=this.CDC();break;case i.AtKeyword:a=this.parseWithFallback(this.Atrule,r);break;default:a=this.parseWithFallback(this.Rule,r)}t.push(a)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},t.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},t.walkContext="stylesheet"},2905:(e,t,a)=>{"use strict";const i=a(3040);function r(){this.tokenType!==i.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}a(4897);const p={name:String};t.generate=function(e){this.tokenize(e.name)},t.name="TypeSelector",t.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),r.call(this)):(r.call(this),this.isDelim(124)&&(this.next(),r.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},t.structure=p},4053:(e,t,a)=>{"use strict";const i=a(3040),r=a(4897);function p(e,t){let a=0;for(let i=this.tokenStart+e;i6&&this.error("Too many hex digits",i)}return this.next(),a}function n(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function d(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function o(){let e=0;switch(this.tokenType){case i.Number:if(e=p.call(this,1,!0),this.isDelim(63)){n.call(this,6-e);break}if(this.tokenType===i.Dimension||this.tokenType===i.Number){d.call(this,45),p.call(this,1,!1);break}break;case i.Dimension:e=p.call(this,1,!0),e>0&&n.call(this,6-e);break;default:if(this.eatDelim(43),this.tokenType===i.Ident){e=p.call(this,0,!0),e>0&&n.call(this,6-e);break}if(this.isDelim(63)){this.next(),n.call(this,5);break}this.error("Hex digit or question mark is expected")}}const s={value:String};t.generate=function(e){this.tokenize(e.value)},t.name="UnicodeRange",t.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),o.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},t.structure=s},7907:(e,t,a)=>{"use strict";const i=a(6802),r=a(2180),p=a(3040);a(4897);const n={value:String};t.generate=function(e){this.token(p.Url,i.encode(e.value))},t.name="Url",t.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case p.Url:t=i.decode(this.consume(p.Url));break;case p.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(p.Function),this.skipSC(),t=r.decode(this.consume(p.String)),this.skipSC(),this.eof||this.eat(p.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}},t.structure=n},3457:(e,t)=>{"use strict";t.generate=function(e){this.children(e)},t.name="Value",t.parse=function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},t.structure={children:[[]]}},7307:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),p={value:String};t.generate=function(e){this.token(i.WhiteSpace,e.value)},t.name="WhiteSpace",t.parse=function(){return this.eat(i.WhiteSpace),r},t.structure=p},6603:(e,t,a)=>{"use strict";const i=a(1329),r=a(8043),p=a(7212),n=a(950),d=a(8502),o=a(7102),s=a(4759),l=a(9252),m=a(3666),u=a(8081),c=a(4963),h=a(211),g=a(4292),f=a(3068),v=a(7863),y=a(9292),S=a(3876),b=a(841),w=a(6091),x=a(8646),C=a(9535),k=a(9351),T=a(7885),_=a(9608),z=a(8099),O=a(3046),A=a(4237),E=a(4751),N=a(141),D=a(5518),W=a(3215),B=a(947),V=a(2065),L=a(1460),P=a(8243),q=a(2905),R=a(4053),I=a(7907),M=a(3457),F=a(7307);t.AnPlusB=i,t.Atrule=r,t.AtrulePrelude=p,t.AttributeSelector=n,t.Block=d,t.Brackets=o,t.CDC=s,t.CDO=l,t.ClassSelector=m,t.Combinator=u,t.Comment=c,t.Declaration=h,t.DeclarationList=g,t.Dimension=f,t.Function=v,t.Hash=y,t.Identifier=S,t.IdSelector=b,t.MediaFeature=w,t.MediaQuery=x,t.MediaQueryList=C,t.Nth=k,t.Number=T,t.Operator=_,t.Parentheses=z,t.Percentage=O,t.PseudoClassSelector=A,t.PseudoElementSelector=E,t.Ratio=N,t.Raw=D,t.Rule=W,t.Selector=B,t.SelectorList=V,t.String=L,t.StyleSheet=P,t.TypeSelector=q,t.UnicodeRange=R,t.Url=I,t.Value=M,t.WhiteSpace=F},2921:e=>{"use strict";const t={parse(){return this.createSingleNodeList(this.SelectorList())}},a={parse(){return this.createSingleNodeList(this.Identifier())}},i={parse(){return this.createSingleNodeList(this.Nth())}},r={dir:a,has:t,lang:a,matches:t,not:t,"nth-child":i,"nth-last-child":i,"nth-last-of-type":i,"nth-of-type":i,slotted:{parse(){return this.createSingleNodeList(this.Selector())}}};e.exports=r},4965:(e,t,a)=>{"use strict";const i={getNode:a(5611)};e.exports=i},5611:(e,t,a)=>{"use strict";const i=a(3040);a(4897),e.exports=function(e){switch(this.tokenType){case i.Hash:return this.Hash();case i.Comma:return this.Operator();case i.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case i.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case i.String:return this.String();case i.Dimension:return this.Dimension();case i.Percentage:return this.Percentage();case i.Number:return this.Number();case i.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case i.Url:return this.Url();case i.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case i.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}},4754:(e,t,a)=>{"use strict";const i=a(4965),r=a(6055),p=a(2055);t.AtrulePrelude=i,t.Selector=r,t.Value=p},6055:(e,t,a)=>{"use strict";const i=a(3040);a(4897);const r={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case i.LeftSquareBracket:return this.AttributeSelector();case i.Hash:return this.IdSelector();case i.Colon:return this.lookupType(1)===i.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case i.Ident:return this.TypeSelector();case i.Number:case i.Percentage:return this.Percentage();case i.Dimension:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case i.Delim:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}};e.exports=r},2055:(e,t,a)=>{"use strict";function i(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const r={getNode:a(5611),onWhiteSpace:function(e,t){i(e)&&(e.value=" "+e.value),i(t.last)&&(t.last.value+=" ")},expression:a(8549),var:a(1899)};e.exports=r},1385:(e,t,a)=>{"use strict";const i=a(9247),r=a(4897);function p(e){const t=e.source,a=t.length,p=t.length>0?r.isBOM(t.charCodeAt(0)):0,n=i.adoptBuffer(e.lines,a),d=i.adoptBuffer(e.columns,a);let o=e.startLine,s=e.startColumn;for(let e=p;e{"use strict";const i=a(9247),r=a(8022),p=a(6232),n=a(3040),d=16777215,o=24,s=new Map([[n.Function,n.RightParenthesis],[n.LeftParenthesis,n.RightParenthesis],[n.LeftSquareBracket,n.RightSquareBracket],[n.LeftCurlyBracket,n.RightCurlyBracket]]);t.TokenStream=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){const a=(e=String(e||"")).length,r=i.adoptBuffer(this.offsetAndType,e.length+1),p=i.adoptBuffer(this.balance,e.length+1);let l=0,m=0,u=0,c=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,i)=>{switch(e){default:p[l]=a;break;case m:{let e=u&d;for(u=p[e],m=u>>o,p[l]=e,p[e++]=l;e>o:n.EOF}lookupOffset(e){return(e+=this.tokenIndex)0?e>o,this.tokenEnd=t&d):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>o,this.tokenEnd=e&d):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=n.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===n.WhiteSpace||this.tokenType===n.Comment;)this.next()}skipUntilBalanced(e,t){let a,i,r=e;e:for(;r0?this.offsetAndType[r-1]&d:this.firstCharOffset,t(this.source.charCodeAt(i))){case 1:break e;case 2:r++;break e;default:this.balance[a]===r&&(r=a)}this.skip(r-this.tokenIndex)}forEachToken(e){for(let t=0,a=this.firstCharOffset;t>o,i,p,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,a,i,r)=>{e[r]={idx:r,type:p[t],chunk:this.source.substring(a,i),balance:this.balance[r]}})),e}}},9247:(e,t)=>{"use strict";t.adoptBuffer=function(e=null,t){return null===e||e.length{"use strict";function a(e){return e>=48&&e<=57}function i(e){return e>=65&&e<=90}function r(e){return e>=97&&e<=122}function p(e){return i(e)||r(e)}function n(e){return e>=128}function d(e){return p(e)||n(e)||95===e}function o(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function s(e){return 10===e||13===e||12===e}function l(e){return s(e)||32===e||9===e}function m(e,t){return 92===e&&!s(t)&&0!==t}const u=new Array(128);for(let e=0;e=65&&e<=70||e>=97&&e<=102},t.isIdentifierStart=function(e,t,a){return 45===e?d(t)||45===t||m(t,a):!!d(e)||92===e&&m(e,t)},t.isLetter=p,t.isLowercaseLetter=r,t.isName=function(e){return d(e)||a(e)||45===e},t.isNameStart=d,t.isNewline=s,t.isNonAscii=n,t.isNonPrintable=o,t.isNumberStart=function(e,t,i){return 43===e||45===e?a(t)?2:46===t&&a(i)?3:0:46===e?a(t)?2:0:a(e)?1:0},t.isUppercaseLetter=i,t.isValidEscape=m,t.isWhiteSpace=l},6075:(e,t,a)=>{"use strict";const i=a(3040),r=a(4897),p=a(8022);t.AtKeyword=i.AtKeyword,t.BadString=i.BadString,t.BadUrl=i.BadUrl,t.CDC=i.CDC,t.CDO=i.CDO,t.Colon=i.Colon,t.Comma=i.Comma,t.Comment=i.Comment,t.Delim=i.Delim,t.Dimension=i.Dimension,t.EOF=i.EOF,t.Function=i.Function,t.Hash=i.Hash,t.Ident=i.Ident,t.LeftCurlyBracket=i.LeftCurlyBracket,t.LeftParenthesis=i.LeftParenthesis,t.LeftSquareBracket=i.LeftSquareBracket,t.Number=i.Number,t.Percentage=i.Percentage,t.RightCurlyBracket=i.RightCurlyBracket,t.RightParenthesis=i.RightParenthesis,t.RightSquareBracket=i.RightSquareBracket,t.Semicolon=i.Semicolon,t.String=i.String,t.Url=i.Url,t.WhiteSpace=i.WhiteSpace,t.tokenTypes=i,t.DigitCategory=r.DigitCategory,t.EofCategory=r.EofCategory,t.NameStartCategory=r.NameStartCategory,t.NonPrintableCategory=r.NonPrintableCategory,t.WhiteSpaceCategory=r.WhiteSpaceCategory,t.charCodeCategory=r.charCodeCategory,t.isBOM=r.isBOM,t.isDigit=r.isDigit,t.isHexDigit=r.isHexDigit,t.isIdentifierStart=r.isIdentifierStart,t.isLetter=r.isLetter,t.isLowercaseLetter=r.isLowercaseLetter,t.isName=r.isName,t.isNameStart=r.isNameStart,t.isNewline=r.isNewline,t.isNonAscii=r.isNonAscii,t.isNonPrintable=r.isNonPrintable,t.isNumberStart=r.isNumberStart,t.isUppercaseLetter=r.isUppercaseLetter,t.isValidEscape=r.isValidEscape,t.isWhiteSpace=r.isWhiteSpace,t.cmpChar=p.cmpChar,t.cmpStr=p.cmpStr,t.consumeBadUrlRemnants=p.consumeBadUrlRemnants,t.consumeEscaped=p.consumeEscaped,t.consumeName=p.consumeName,t.consumeNumber=p.consumeNumber,t.decodeEscaped=p.decodeEscaped,t.findDecimalNumberEnd=p.findDecimalNumberEnd,t.findWhiteSpaceEnd=p.findWhiteSpaceEnd,t.findWhiteSpaceStart=p.findWhiteSpaceStart,t.getNewlineLength=p.getNewlineLength,t.tokenize=function(e,t){function a(t){return t=e.length?void(u{"use strict";e.exports=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"]},3040:(e,t)=>{"use strict";t.AtKeyword=3,t.BadString=6,t.BadUrl=8,t.CDC=15,t.CDO=14,t.Colon=16,t.Comma=18,t.Comment=25,t.Delim=9,t.Dimension=12,t.EOF=0,t.Function=2,t.Hash=4,t.Ident=1,t.LeftCurlyBracket=23,t.LeftParenthesis=21,t.LeftSquareBracket=19,t.Number=10,t.Percentage=11,t.RightCurlyBracket=24,t.RightParenthesis=22,t.RightSquareBracket=20,t.Semicolon=17,t.String=5,t.Url=7,t.WhiteSpace=13},8022:(e,t,a)=>{"use strict";const i=a(4897);function r(e,t){return te.length)return!1;for(let p=t;p=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)},t.findDecimalNumberEnd=d,t.findWhiteSpaceEnd=function(e,t){for(;t=0&&i.isWhiteSpace(e.charCodeAt(t));t--);return t+1},t.getNewlineLength=p},2920:(e,t)=>{"use strict";let a=null;class i{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return i.createItem(e)}allocateCursor(e,t){let i;return null!==a?(i=a,a=a.cursor,i.prev=e,i.next=t,i.cursor=this.cursor):i={prev:e,next:t,cursor:this.cursor},this.cursor=i,i}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=a,a=e}updateCursors(e,t,a,i){let{cursor:r}=this;for(;null!==r;)r.prev===e&&(r.prev=t),r.next===a&&(r.next=i),r=r.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let a of e){const e=i.createItem(a);null!==t?t.next=e:this.head=e,e.prev=t,t=e}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const a=this.allocateCursor(null,this.head);for(;null!==a.next;){const i=a.next;a.next=i.next,e.call(t,i.data,i,this)}this.releaseCursor()}forEachRight(e,t=this){const a=this.allocateCursor(this.tail,null);for(;null!==a.prev;){const i=a.prev;a.prev=i.prev,e.call(t,i.data,i,this)}this.releaseCursor()}reduce(e,t,a=this){let i,r=this.allocateCursor(null,this.head),p=t;for(;null!==r.next;)i=r.next,r.next=i.next,p=e.call(a,p,i.data,i,this);return this.releaseCursor(),p}reduceRight(e,t,a=this){let i,r=this.allocateCursor(this.tail,null),p=t;for(;null!==r.prev;)i=r.prev,r.prev=i.prev,p=e.call(a,p,i.data,i,this);return this.releaseCursor(),p}some(e,t=this){for(let a=this.head;null!==a;a=a.next)if(e.call(t,a.data,a,this))return!0;return!1}map(e,t=this){const a=new i;for(let i=this.head;null!==i;i=i.next)a.appendData(e.call(t,i.data,i,this));return a}filter(e,t=this){const a=new i;for(let i=this.head;null!==i;i=i.next)e.call(t,i.data,i,this)&&a.appendData(i.data);return a}nextUntil(e,t,a=this){if(null===e)return;const i=this.allocateCursor(null,e);for(;null!==i.next;){const e=i.next;if(i.next=e.next,t.call(a,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,a=this){if(null===e)return;const i=this.allocateCursor(e,null);for(;null!==i.prev;){const e=i.prev;if(i.prev=e.prev,t.call(a,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new i;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(i.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(i.createItem(e))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(i.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(i.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(i.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}t.List=i},7646:(e,t,a)=>{"use strict";const i=a(2920);t.clone=function e(t){const a={};for(const r in t){let p=t[r];p&&(Array.isArray(p)||p instanceof i.List?p=p.map(e):p.constructor===Object&&(p=e(p))),a[r]=p}return a}},4094:(e,t)=>{"use strict";t.createCustomError=function(e,t){const a=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(a,{name:e,message:t,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}},8798:(e,t,a)=>{"use strict";const i=a(4897),r=a(8022);t.decode=function(e){const t=e.length-1;let a="";for(let p=0;p=48&&r<=57&&(0===a||1===a&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":i.isName(r)?t+=e.charAt(a):t+="\\"+e.charAt(a):t+="�"}return t}},9829:(e,t)=>{"use strict";const a=new Map,i=new Map,r=n;function p(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function n(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const a=e.indexOf("-",t+2);if(-1!==a)return e.substring(t,a+1)}return""}t.isCustomProperty=p,t.keyword=function(e){if(a.has(e))return a.get(e);const t=e.toLowerCase();let i=a.get(t);if(void 0===i){const e=p(t,0),a=e?"":n(t,0);i=Object.freeze({basename:t.substr(a.length),name:t,prefix:a,vendor:a,custom:e})}return a.set(e,i),i},t.property=function(e){if(i.has(e))return i.get(e);let t=e,a=e[0];"/"===a?a="/"===e[1]?"//":"/":"_"!==a&&"*"!==a&&"$"!==a&&"#"!==a&&"+"!==a&&"&"!==a&&(a="");const r=p(t,a.length);if(!r&&(t=t.toLowerCase(),i.has(t))){const a=i.get(t);return i.set(e,a),a}const d=r?"":n(t,a.length),o=t.substr(0,a.length+d.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(a.length),hack:a,vendor:d,prefix:o,custom:r});return i.set(e,s),s},t.vendorPrefix=r},2180:(e,t,a)=>{"use strict";const i=a(4897),r=a(8022);t.decode=function(e){const t=e.length,a=e.charCodeAt(0),p=34===a||39===a?1:0,n=1===p&&t>1&&e.charCodeAt(t-1)===a?t-2:t-1;let d="";for(let a=p;a<=n;a++){let p=e.charCodeAt(a);if(92===p){if(a===n){a!==t-1&&(d=e.substr(a+1));break}if(p=e.charCodeAt(++a),i.isValidEscape(92,p)){const t=a-1,i=r.consumeEscaped(e,t);a=i-1,d+=r.decodeEscaped(e.substring(t+1,i))}else 13===p&&10===e.charCodeAt(a+1)&&a++}else d+=e[a]}return d},t.encode=function(e,t){const a=t?"'":'"',r=t?39:34;let p="",n=!1;for(let t=0;t{"use strict";const i=a(4897),r=a(8022);t.decode=function(e){const t=e.length;let a=4,p=41===e.charCodeAt(t-1)?t-2:t-1,n="";for(;a{"use strict";const{version:i}=a(7151);t.version=i},1306:(e,t)=>{"use strict";const{hasOwnProperty:a}=Object.prototype,i=function(){};function r(e){return"function"==typeof e?e:i}function p(e,t){return function(a,i,r){a.type===t&&e.call(this,a,i,r)}}function n(e,t){const i=t.structure,r=[];for(const e in i){if(!1===a.call(i,e))continue;let t=i[e];const p={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?p.nullable=!0:"string"==typeof e?p.type="node":Array.isArray(e)&&(p.type="list");p.type&&r.push(p)}return r.length?{context:t.walkContext,fields:r}:null}function d(e,t){const a=e.fields.slice(),i=e.context,r="string"==typeof i;return t&&a.reverse(),function(e,p,n,d){let o;r&&(o=p[i],p[i]=e);for(const i of a){const a=e[i.name];if(!i.nullable||a)if("list"===i.type){if(t?a.reduceRight(d,!1):a.reduce(d,!1))return!0}else if(n(a))return!0}r&&(p[i]=o)}}function o({StyleSheet:e,Atrule:t,Rule:a,Block:i,DeclarationList:r}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:a,Block:i},Rule:{StyleSheet:e,Atrule:t,Rule:a,Block:i},Declaration:{StyleSheet:e,Atrule:t,Rule:a,Block:i,DeclarationList:r}}}t.createWalker=function(e){const t=function(e){const t={};for(const i in e.node)if(a.call(e.node,i)){const a=e.node[i];if(!a.structure)throw new Error("Missed `structure` field in `"+i+"` node type definition");t[i]=n(0,a)}return t}(e),s={},l={},m=Symbol("break-walk"),u=Symbol("skip-node");for(const e in t)a.call(t,e)&&null!==t[e]&&(s[e]=d(t[e],!1),l[e]=d(t[e],!0));const c=o(s),h=o(l),g=function(e,a){function n(e,t,a){const i=d.call(v,e,t,a);return i===m||i!==u&&(!(!g.hasOwnProperty(e.type)||!g[e.type](e,v,n,f))||o.call(v,e,t,a)===m)}let d=i,o=i,g=s,f=(e,t,a,i)=>e||n(t,a,i);const v={break:m,skip:u,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof a)d=a;else if(a&&(d=r(a.enter),o=r(a.leave),a.reverse&&(g=l),a.visit)){if(c.hasOwnProperty(a.visit))g=a.reverse?h[a.visit]:c[a.visit];else if(!t.hasOwnProperty(a.visit))throw new Error("Bad value `"+a.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");d=p(d,a.visit),o=p(o,a.visit)}if(d===i&&o===i)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");n(e)};return g.break=m,g.skip=u,g.find=function(e,t){let a=null;return g(e,(function(e,i,r){if(t.call(this,e,i,r))return a=e,m})),a},g.findLast=function(e,t){let a=null;return g(e,{reverse:!0,enter:function(e,i,r){if(t.call(this,e,i,r))return a=e,m}}),a},g.findAll=function(e,t){const a=[];return g(e,(function(e,i,r){t.call(this,e,i,r)&&a.push(e)})),a},g}},7085:(e,t,a)=>{"use strict";a.r(t),a.d(t,{FetchError:()=>c,Headers:()=>E,Request:()=>H,Response:()=>q,default:()=>J});const i=require("stream"),r=require("http"),p=require("url");var n=a(7347);const d=require("https"),o=require("zlib"),s=i.Readable,l=Symbol("buffer"),m=Symbol("type");class u{constructor(){this[m]="";const e=arguments[0],t=arguments[1],a=[];let i=0;if(e){const t=e,r=Number(t.length);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},r=a.size;let p=void 0===r?0:r;var n=a.timeout;let d=void 0===n?0:n;null==e?e=null:S(e)?e=Buffer.from(e.toString()):b(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof i||(e=Buffer.from(String(e)))),this[g]={body:e,disturbed:!1,error:null},this.size=p,this.timeout=d,e instanceof i&&e.on("error",(function(e){const a="AbortError"===e.name?e:new c(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[g].error=a}))}function y(){var e=this;if(this[g].disturbed)return v.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[g].disturbed=!0,this[g].error)return v.Promise.reject(this[g].error);let t=this.body;if(null===t)return v.Promise.resolve(Buffer.alloc(0));if(b(t)&&(t=t.stream()),Buffer.isBuffer(t))return v.Promise.resolve(t);if(!(t instanceof i))return v.Promise.resolve(Buffer.alloc(0));let a=[],r=0,p=!1;return new v.Promise((function(i,n){let d;e.timeout&&(d=setTimeout((function(){p=!0,n(new c(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(p=!0,n(t)):n(new c(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!p&&null!==t){if(e.size&&r+t.length>e.size)return p=!0,void n(new c(`content size at ${e.url} over limit: ${e.size}`,"max-size"));r+=t.length,a.push(t)}})),t.on("end",(function(){if(!p){clearTimeout(d);try{i(Buffer.concat(a,r))}catch(t){n(new c(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function S(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function b(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function w(e){let t,a,r=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return r instanceof i&&"function"!=typeof r.getBoundary&&(t=new f,a=new f,r.pipe(t),r.pipe(a),e[g].body=t,r=a),r}function x(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":S(e)?"application/x-www-form-urlencoded;charset=UTF-8":b(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof i?null:"text/plain;charset=UTF-8"}function C(e){const t=e.body;return null===t?0:b(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}v.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].disturbed},arrayBuffer(){return y.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return y.call(this).then((function(t){return Object.assign(new u([],{type:e.toLowerCase()}),{[l]:t})}))},json(){var e=this;return y.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return v.Promise.reject(new c(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return y.call(this).then((function(e){return e.toString()}))},buffer(){return y.call(this)},textConverted(){var e=this;return y.call(this).then((function(t){return function(e,t){if("function"!=typeof h)throw new Error("The package `encoding` must be installed to use the textConverted() function");const a=t.get("content-type");let i,r,p="utf-8";return a&&(i=/charset=([^;]*)/i.exec(a)),r=e.slice(0,1024).toString(),!i&&r&&(i=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[A]=Object.create(null),e instanceof E){const t=e.raw(),a=Object.keys(t);for(const e of a)for(const a of t[e])this.append(e,a)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const a=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");a.push(Array.from(t))}for(const e of a){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const a=e[t];this.append(t,a)}}}}get(e){_(e=`${e}`);const t=O(this[A],e);return void 0===t?null:this[A][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=N(this),i=0;for(;i1&&void 0!==arguments[1]?arguments[1]:"key+value";const a=Object.keys(e[A]).sort();return a.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[A][t].join(", ")}:function(t){return[t.toLowerCase(),e[A][t].join(", ")]})}E.prototype.entries=E.prototype[Symbol.iterator],Object.defineProperty(E.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(E.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const D=Symbol("internal");function W(e,t){const a=Object.create(B);return a[D]={target:e,kind:t,index:0},a}const B=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==B)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[D];const t=e.target,a=e.kind,i=e.index,r=N(t,a);return i>=r.length?{value:void 0,done:!0}:(this[D].index=i+1,{value:r[i],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function V(e){const t=Object.assign({__proto__:null},e[A]),a=O(e[A],"Host");return void 0!==a&&(t[a]=t[a][0]),t}Object.defineProperty(B,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const L=Symbol("Response internals"),P=r.STATUS_CODES;class q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v.call(this,e,t);const a=t.status||200,i=new E(t.headers);if(null!=e&&!i.has("Content-Type")){const t=x(e);t&&i.append("Content-Type",t)}this[L]={url:t.url,status:a,statusText:t.statusText||P[a],headers:i,counter:t.counter}}get url(){return this[L].url||""}get status(){return this[L].status}get ok(){return this[L].status>=200&&this[L].status<300}get redirected(){return this[L].counter>0}get statusText(){return this[L].statusText}get headers(){return this[L].headers}clone(){return new q(w(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}v.mixIn(q.prototype),Object.defineProperties(q.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(q.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const R=Symbol("Request internals"),I=p.URL||n.URL,M=p.parse,F=p.format;function j(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new I(e).toString()),M(e)}const G="destroy"in i.Readable.prototype;function U(e){return"object"==typeof e&&"object"==typeof e[R]}class H{constructor(e){let t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U(e)?t=j(e.url):(t=e&&e.href?j(e.href):j(`${e}`),e={});let i=a.method||e.method||"GET";if(i=i.toUpperCase(),(null!=a.body||U(e)&&null!==e.body)&&("GET"===i||"HEAD"===i))throw new TypeError("Request with GET/HEAD method cannot have body");let r=null!=a.body?a.body:U(e)&&null!==e.body?w(e):null;v.call(this,r,{timeout:a.timeout||e.timeout||0,size:a.size||e.size||0});const p=new E(a.headers||e.headers||{});if(null!=r&&!p.has("Content-Type")){const e=x(r);e&&p.append("Content-Type",e)}let n=U(e)?e.signal:null;if("signal"in a&&(n=a.signal),null!=n&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(n))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[R]={method:i,redirect:a.redirect||e.redirect||"follow",headers:p,parsedURL:t,signal:n},this.follow=void 0!==a.follow?a.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==a.compress?a.compress:void 0===e.compress||e.compress,this.counter=a.counter||e.counter||0,this.agent=a.agent||e.agent}get method(){return this[R].method}get url(){return F(this[R].parsedURL)}get headers(){return this[R].headers}get redirect(){return this[R].redirect}get signal(){return this[R].signal}clone(){return new H(this)}}function K(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}v.mixIn(H.prototype),Object.defineProperty(H.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(H.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),K.prototype=Object.create(Error.prototype),K.prototype.constructor=K,K.prototype.name="AbortError";const $=p.URL||n.URL,Z=i.PassThrough;function Q(e,t){if(!Q.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return v.Promise=Q.Promise,new Q.Promise((function(a,p){const n=new H(e,t),s=function(e){const t=e[R].parsedURL,a=new E(e[R].headers);if(a.has("Accept")||a.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof i.Readable&&!G)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let r=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(r="0"),null!=e.body){const t=C(e);"number"==typeof t&&(r=String(t))}r&&a.set("Content-Length",r),a.has("User-Agent")||a.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!a.has("Accept-Encoding")&&a.set("Accept-Encoding","gzip,deflate");let p=e.agent;return"function"==typeof p&&(p=p(t)),a.has("Connection")||p||a.set("Connection","close"),Object.assign({},t,{method:e.method,headers:V(a),agent:p})}(n),l=("https:"===s.protocol?d:r).request,m=n.signal;let u=null;const h=function(){let e=new K("The user aborted a request.");p(e),n.body&&n.body instanceof i.Readable&&n.body.destroy(e),u&&u.body&&u.body.emit("error",e)};if(m&&m.aborted)return void h();const g=function(){h(),y()},f=l(s);let v;function y(){f.abort(),m&&m.removeEventListener("abort",g),clearTimeout(v)}m&&m.addEventListener("abort",g),n.timeout&&f.once("socket",(function(e){v=setTimeout((function(){p(new c(`network timeout at: ${n.url}`,"request-timeout")),y()}),n.timeout)})),f.on("error",(function(e){p(new c(`request to ${n.url} failed, reason: ${e.message}`,"system",e)),y()})),f.on("response",(function(e){clearTimeout(v);const t=function(e){const t=new E;for(const a of Object.keys(e))if(!k.test(a))if(Array.isArray(e[a]))for(const i of e[a])T.test(i)||(void 0===t[A][a]?t[A][a]=[i]:t[A][a].push(i));else T.test(e[a])||(t[A][a]=[e[a]]);return t}(e.headers);if(Q.isRedirect(e.statusCode)){const i=t.get("Location");let r=null;try{r=null===i?null:new $(i,n.url).toString()}catch(e){if("manual"!==n.redirect)return p(new c(`uri requested responds with an invalid redirect URL: ${i}`,"invalid-redirect")),void y()}switch(n.redirect){case"error":return p(new c(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),void y();case"manual":if(null!==r)try{t.set("Location",r)}catch(e){p(e)}break;case"follow":if(null===r)break;if(n.counter>=n.follow)return p(new c(`maximum redirect reached at: ${n.url}`,"max-redirect")),void y();const i={headers:new E(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:n.body,signal:n.signal,timeout:n.timeout,size:n.size};if(!function(e,t){const a=new $(t).hostname,i=new $(e).hostname;return a===i||"."===a[a.length-i.length-1]&&a.endsWith(i)}(n.url,r))for(const e of["authorization","www-authenticate","cookie","cookie2"])i.headers.delete(e);return 303!==e.statusCode&&n.body&&null===C(n)?(p(new c("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void y()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==n.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),a(Q(new H(r,i))),void y())}}e.once("end",(function(){m&&m.removeEventListener("abort",g)}));let i=e.pipe(new Z);const r={url:n.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:n.size,timeout:n.timeout,counter:n.counter},d=t.get("Content-Encoding");if(!n.compress||"HEAD"===n.method||null===d||204===e.statusCode||304===e.statusCode)return u=new q(i,r),void a(u);const s={flush:o.Z_SYNC_FLUSH,finishFlush:o.Z_SYNC_FLUSH};if("gzip"==d||"x-gzip"==d)return i=i.pipe(o.createGunzip(s)),u=new q(i,r),void a(u);if("deflate"!=d&&"x-deflate"!=d){if("br"==d&&"function"==typeof o.createBrotliDecompress)return i=i.pipe(o.createBrotliDecompress()),u=new q(i,r),void a(u);u=new q(i,r),a(u)}else e.pipe(new Z).once("data",(function(e){i=8==(15&e[0])?i.pipe(o.createInflate()):i.pipe(o.createInflateRaw()),u=new q(i,r),a(u)}))})),function(e,t){const a=t.body;null===a?e.end():b(a)?a.stream().pipe(e):Buffer.isBuffer(a)?(e.write(a),e.end()):a.pipe(e)}(f,n)}))}Q.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Q.Promise=global.Promise;const J=Q},4900:e=>{"use strict";e.exports=JSON.parse('{"atrules":{"charset":{"prelude":""},"font-face":{"descriptors":{"unicode-range":{"comment":"replaces , an old production name","syntax":"#"}}}},"properties":{"-moz-background-clip":{"comment":"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"padding | border"},"-moz-border-radius-bottomleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius","syntax":"<\'border-bottom-left-radius\'>"},"-moz-border-radius-bottomright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-border-radius-topleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius","syntax":"<\'border-top-left-radius\'>"},"-moz-border-radius-topright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-control-character-visibility":{"comment":"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588","syntax":"visible | hidden"},"-moz-osx-font-smoothing":{"comment":"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | grayscale"},"-moz-user-select":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"none | text | all | -moz-none"},"-ms-flex-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"start | end | center | baseline | stretch"},"-ms-flex-item-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack","syntax":"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-shrink\'>"},"-ms-flex-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack","syntax":"start | end | center | justify | distribute"},"-ms-flex-order":{"comment":"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx","syntax":""},"-ms-flex-positive":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-grow\'>"},"-ms-flex-preferred-size":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-basis\'>"},"-ms-interpolation-mode":{"comment":"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx","syntax":"nearest-neighbor | bicubic"},"-ms-grid-column-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx","syntax":"start | end | center | stretch"},"-ms-grid-row-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx","syntax":"start | end | center | stretch"},"-ms-hyphenate-limit-last":{"comment":"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits","syntax":"none | always | column | page | spread"},"-webkit-appearance":{"comment":"webkit specific keywords","references":["http://css-infos.net/property/-webkit-appearance"],"syntax":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{"comment":"https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"[ | border | padding | content | text ]#"},"-webkit-column-break-after":{"comment":"added, http://help.dottoro.com/lcrthhhv.php","syntax":"always | auto | avoid"},"-webkit-column-break-before":{"comment":"added, http://help.dottoro.com/lcxquvkf.php","syntax":"always | auto | avoid"},"-webkit-column-break-inside":{"comment":"added, http://help.dottoro.com/lclhnthl.php","syntax":"always | auto | avoid"},"-webkit-font-smoothing":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"[ | | none ] [ {4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{"comment":"missed","references":["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],"syntax":"economy | exact"},"-webkit-text-security":{"comment":"missed; http://help.dottoro.com/lcbkewgt.php","syntax":"none | circle | disc | square"},"-webkit-user-drag":{"comment":"missed; http://help.dottoro.com/lcbixvwm.php","syntax":"none | element | auto"},"-webkit-user-select":{"comment":"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"auto | none | text | all"},"alignment-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],"syntax":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],"syntax":"baseline | sub | super | "},"behavior":{"comment":"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx","syntax":"+"},"clip-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],"syntax":"nonzero | evenodd"},"content":{"comment":"https://www.w3.org/TR/css-content-3/#content-property","syntax":"normal | none | [ | ] [/ [ | ]+ ]?"},"counter-reset":{"comment":" -> ","references":["https://www.w3.org/TR/css-lists-3/#counter-reset"],"syntax":"[ ? ]+ | none"},"counter-increment":{"comment":" -> ","references":["https://www.w3.org/TR/css-lists-3/#propdef-counter-increment"],"syntax":"[ ? ]+ | none"},"counter-set":{"comment":" -> ","references":["https://www.w3.org/TR/css-lists-3/#propdef-counter-set"],"syntax":"[ ? ]+ | none"},"cue":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'cue-before\'> <\'cue-after\'>?"},"cue-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":" ? | none"},"cue-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":" ? | none"},"cursor":{"comment":"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out","references":["https://www.sitepoint.com/css3-cursor-styles/"],"syntax":"[ [ [ ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},"display":{"comment":"extended with -ms-flexbox","syntax":"| <-non-standard-display>"},"position":{"comment":"extended with -webkit-sticky","syntax":"| -webkit-sticky"},"dominant-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],"syntax":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{"comment":"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality","references":["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],"syntax":"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},"fill":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":""},"fill-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":""},"fill-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"nonzero | evenodd"},"filter":{"comment":"extend with IE legacy syntaxes","syntax":"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],"syntax":""},"glyph-orientation-vertical":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],"syntax":""},"kerning":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#KerningProperty"],"syntax":"auto | "},"letter-spacing":{"comment":"fix syntax -> ","references":["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],"syntax":"normal | "},"marker":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | "},"marker-end":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | "},"marker-mid":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | "},"marker-start":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | "},"max-width":{"comment":"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width","syntax":"| <-non-standard-width>"},"width":{"references":["https://developer.mozilla.org/en-US/docs/Web/CSS/width","https://github.com/csstree/stylelint-validator/issues/29"],"syntax":"| fill | stretch | intrinsic | -moz-max-content | -webkit-max-content | -moz-fit-content | -webkit-fit-content"},"min-width":{"comment":"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"| <-non-standard-width>"},"overflow":{"comment":"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"| <-non-standard-overflow>"},"pause":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'pause-before\'> <\'pause-after\'>?"},"pause-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"