/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.32.1(29a273516805a852aa8edc5e05059f119b13eff0) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ define("vs/language/css/cssWorker", ["require","require"],(require)=>{ var moduleExports=(()=>{var Un=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Yo=Object.prototype.hasOwnProperty;var Qo=n=>Un(n,"__esModule",{value:!0});var Zo=(n,e)=>{for(var t in e)Un(n,t,{get:e[t],enumerable:!0})},ea=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xo(e))!Yo.call(n,i)&&(t||i!=="default")&&Un(n,i,{get:()=>e[i],enumerable:!(r=Jo(e,i))||r.enumerable});return n};var ta=(n=>(e,t)=>n&&n.get(e)||(t=ea(Qo({}),e,1),n&&n.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var $s={};Zo($s,{CSSWorker:()=>Vr,create:()=>Bs});var l;(function(n){n[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.CustomToken=42]="CustomToken"})(l||(l={}));var Br=function(){function n(e){this.source=e,this.len=e.length,this.position=0}return n.prototype.substring=function(e,t){return t===void 0&&(t=this.position),this.source.substring(e,t)},n.prototype.eos=function(){return this.len<=this.position},n.prototype.pos=function(){return this.position},n.prototype.goBackTo=function(e){this.position=e},n.prototype.goBack=function(e){this.position-=e},n.prototype.advance=function(e){this.position+=e},n.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},n.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},n.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},n.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},n.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t=Qt&&t<=Zt?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=Qt&&r<=Zt||e===0&&r===Xr}),!0):!1},n.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case rt:case St:case nt:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===rt&&this.stream.advanceIfChar(nt)&&e.push(` `),!0}return!1},n.prototype._escape=function(e,t){var r=this.stream.peekChar();if(r===$n){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=Qt&&r<=Zt||r>=jn&&r<=na||r>=Vn&&r<=ra);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===qn||r===Kn?this.stream.advance(1):this._newline([]),!0}if(r!==rt&&r!==St&&r!==nt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(t)return this._newline(e)}return!1},n.prototype._stringChar=function(e,t){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==$n&&r!==rt&&r!==St&&r!==nt?(this.stream.advance(1),t.push(String.fromCharCode(r)),!0):!1},n.prototype._string=function(e){if(this.stream.peekChar()===Jr||this.stream.peekChar()===Hr){var t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),l.String):l.BadString}return null},n.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return t!==0&&t!==$n&&t!==Jr&&t!==Hr&&t!==Qr&&t!==Zr&&t!==qn&&t!==Kn&&t!==nt&&t!==St&&t!==rt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},n.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(t){return t===qn||t===Kn||t===nt||t===St||t===rt});return e>0},n.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},n.prototype.ident=function(e){var t=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},n.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return t===Kr||t>=jn&&t<=$r||t>=Vn&&t<=qr||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._minus=function(e){var t=this.stream.peekChar();return t===tt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._identChar=function(e){var t=this.stream.peekChar();return t===Kr||t===tt||t>=jn&&t<=$r||t>=Vn&&t<=qr||t>=Qt&&t<=Zt||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n}();function V(n,e){if(n.length0?n.lastIndexOf(e)===t:t===0?n===e:!1}function ei(n,e,t){t===void 0&&(t=4);var r=Math.abs(n.length-e.length);if(r>t)return 0;var i=[],o=[],a,s;for(a=0;an.end?null:(n.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(t?r.length<=t.length&&(t=r):t=r,!0):!1}),t)}function it(n,e){for(var t=tn(n,e),r=[];t;)r.unshift(t),t=t.parent;return r}function ni(n){var e=n.findParent(h.Declaration),t=e&&e.getValue();return t&&t.encloses(n)?e:null}var E=function(){function n(e,t,r){e===void 0&&(e=-1),t===void 0&&(t=-1),this.parent=null,this.offset=e,this.length=t,r&&(this.nodeType=r)}return Object.defineProperty(n.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.nodeType||h.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),n.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},n.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},n.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},n.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},n.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},n.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;t=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),t!==-1?i.splice(t,0,e):i.push(e),e},n.prototype.attachTo=function(e,t){return t===void 0&&(t=-1),e&&e.adoptChild(this,t),this},n.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},n.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},n.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(t){return t.getRule()===e})},n.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(t){return t.isErroneous(!0)})},n.prototype.setNode=function(e,t,r){return r===void 0&&(r=-1),t?(t.attachTo(this,r),this[e]=t,!0):!1},n.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},n.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||this.length===-1)&&(this.length=t-this.offset)},n.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},n.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},n.prototype.getChild=function(e){return this.children&&e=0;r--)if(t=this.children[r],t.offset<=e)return t}return null},n.prototype.findChildAtOffset=function(e,t){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?t&&r.findChildAtOffset(e,!0)||r:null},n.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},n.prototype.getParent=function(){for(var e=this.parent;e instanceof Y;)e=e.parent;return e},n.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},n.prototype.findAParent=function(){for(var e=[],t=0;t{let o=i[0];return typeof e[o]<"u"?e[o]:r}),t}function Da(n,e,...t){return Ea(e,t)}function $(n){return Da}var O=$(),W=function(){function n(e,t){this.id=e,this.message=t}return n}();var m={NumberExpected:new W("css-numberexpected",O("expected.number","number expected")),ConditionExpected:new W("css-conditionexpected",O("expected.condt","condition expected")),RuleOrSelectorExpected:new W("css-ruleorselectorexpected",O("expected.ruleorselector","at-rule or selector expected")),DotExpected:new W("css-dotexpected",O("expected.dot","dot expected")),ColonExpected:new W("css-colonexpected",O("expected.colon","colon expected")),SemiColonExpected:new W("css-semicolonexpected",O("expected.semicolon","semi-colon expected")),TermExpected:new W("css-termexpected",O("expected.term","term expected")),ExpressionExpected:new W("css-expressionexpected",O("expected.expression","expression expected")),OperatorExpected:new W("css-operatorexpected",O("expected.operator","operator expected")),IdentifierExpected:new W("css-identifierexpected",O("expected.ident","identifier expected")),PercentageExpected:new W("css-percentageexpected",O("expected.percentage","percentage expected")),URIOrStringExpected:new W("css-uriorstringexpected",O("expected.uriorstring","uri or string expected")),URIExpected:new W("css-uriexpected",O("expected.uri","URI expected")),VariableNameExpected:new W("css-varnameexpected",O("expected.varname","variable name expected")),VariableValueExpected:new W("css-varvalueexpected",O("expected.varvalue","variable value expected")),PropertyValueExpected:new W("css-propertyvalueexpected",O("expected.propvalue","property value expected")),LeftCurlyExpected:new W("css-lcurlyexpected",O("expected.lcurly","{ expected")),RightCurlyExpected:new W("css-rcurlyexpected",O("expected.rcurly","} expected")),LeftSquareBracketExpected:new W("css-rbracketexpected",O("expected.lsquare","[ expected")),RightSquareBracketExpected:new W("css-lbracketexpected",O("expected.rsquare","] expected")),LeftParenthesisExpected:new W("css-lparentexpected",O("expected.lparen","( expected")),RightParenthesisExpected:new W("css-rparentexpected",O("expected.rparent",") expected")),CommaExpected:new W("css-commaexpected",O("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new W("css-pagedirordeclexpected",O("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new W("css-unknownatrule",O("unknown.atrule","at-rule unknown")),UnknownKeyword:new W("css-unknownkeyword",O("unknown.keyword","unknown keyword")),SelectorExpected:new W("css-selectorexpected",O("expected.selector","selector expected")),StringLiteralExpected:new W("css-stringliteralexpected",O("expected.stringliteral","string literal expected")),WhitespaceExpected:new W("css-whitespaceexpected",O("expected.whitespace","whitespace expected")),MediaQueryExpected:new W("css-mediaqueryexpected",O("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new W("css-idorwildcardexpected",O("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new W("css-wildcardexpected",O("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new W("css-idorvarexpected",O("expected.idorvar","identifier or variable expected"))};var Mi;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647})(Mi||(Mi={}));var un;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(un||(un={}));var ie;(function(n){function e(r,i){return r===Number.MAX_VALUE&&(r=un.MAX_VALUE),i===Number.MAX_VALUE&&(i=un.MAX_VALUE),{line:r,character:i}}n.create=e;function t(r){var i=r;return b.objectLiteral(i)&&b.uinteger(i.line)&&b.uinteger(i.character)}n.is=t})(ie||(ie={}));var _;(function(n){function e(r,i,o,a){if(b.uinteger(r)&&b.uinteger(i)&&b.uinteger(o)&&b.uinteger(a))return{start:ie.create(r,i),end:ie.create(o,a)};if(ie.is(r)&&ie.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}n.create=e;function t(r){var i=r;return b.objectLiteral(i)&&ie.is(i.start)&&ie.is(i.end)}n.is=t})(_||(_={}));var Ge;(function(n){function e(r,i){return{uri:r,range:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&_.is(i.range)&&(b.string(i.uri)||b.undefined(i.uri))}n.is=t})(Ge||(Ge={}));var Ti;(function(n){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}n.create=e;function t(r){var i=r;return b.defined(i)&&_.is(i.targetRange)&&b.string(i.targetUri)&&(_.is(i.targetSelectionRange)||b.undefined(i.targetSelectionRange))&&(_.is(i.originSelectionRange)||b.undefined(i.originSelectionRange))}n.is=t})(Ti||(Ti={}));var mn;(function(n){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}n.create=e;function t(r){var i=r;return b.numberRange(i.red,0,1)&&b.numberRange(i.green,0,1)&&b.numberRange(i.blue,0,1)&&b.numberRange(i.alpha,0,1)}n.is=t})(mn||(mn={}));var Yn;(function(n){function e(r,i){return{range:r,color:i}}n.create=e;function t(r){var i=r;return _.is(i.range)&&mn.is(i.color)}n.is=t})(Yn||(Yn={}));var Qn;(function(n){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}n.create=e;function t(r){var i=r;return b.string(i.label)&&(b.undefined(i.textEdit)||M.is(i))&&(b.undefined(i.additionalTextEdits)||b.typedArray(i.additionalTextEdits,M.is))}n.is=t})(Qn||(Qn={}));var Zn;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Zn||(Zn={}));var er;(function(n){function e(r,i,o,a,s){var d={startLine:r,endLine:i};return b.defined(o)&&(d.startCharacter=o),b.defined(a)&&(d.endCharacter=a),b.defined(s)&&(d.kind=s),d}n.create=e;function t(r){var i=r;return b.uinteger(i.startLine)&&b.uinteger(i.startLine)&&(b.undefined(i.startCharacter)||b.uinteger(i.startCharacter))&&(b.undefined(i.endCharacter)||b.uinteger(i.endCharacter))&&(b.undefined(i.kind)||b.string(i.kind))}n.is=t})(er||(er={}));var tr;(function(n){function e(r,i){return{location:r,message:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&Ge.is(i.location)&&b.string(i.message)}n.is=t})(tr||(tr={}));var dt;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(dt||(dt={}));var Pi;(function(n){n.Unnecessary=1,n.Deprecated=2})(Pi||(Pi={}));var Ai;(function(n){function e(t){var r=t;return r!=null&&b.string(r.href)}n.is=e})(Ai||(Ai={}));var zt;(function(n){function e(r,i,o,a,s,d){var c={range:r,message:i};return b.defined(o)&&(c.severity=o),b.defined(a)&&(c.code=a),b.defined(s)&&(c.source=s),b.defined(d)&&(c.relatedInformation=d),c}n.create=e;function t(r){var i,o=r;return b.defined(o)&&_.is(o.range)&&b.string(o.message)&&(b.number(o.severity)||b.undefined(o.severity))&&(b.integer(o.code)||b.string(o.code)||b.undefined(o.code))&&(b.undefined(o.codeDescription)||b.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(b.string(o.source)||b.undefined(o.source))&&(b.undefined(o.relatedInformation)||b.typedArray(o.relatedInformation,tr.is))}n.is=t})(zt||(zt={}));var Ue;(function(n){function e(r,i){for(var o=[],a=2;a0&&(s.arguments=o),s}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.title)&&b.string(i.command)}n.is=t})(Ue||(Ue={}));var M;(function(n){function e(o,a){return{range:o,newText:a}}n.replace=e;function t(o,a){return{range:{start:o,end:o},newText:a}}n.insert=t;function r(o){return{range:o,newText:""}}n.del=r;function i(o){var a=o;return b.objectLiteral(a)&&b.string(a.newText)&&_.is(a.range)}n.is=i})(M||(M={}));var ct;(function(n){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}n.create=e;function t(r){var i=r;return i!==void 0&&b.objectLiteral(i)&&b.string(i.label)&&(b.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(b.string(i.description)||i.description===void 0)}n.is=t})(ct||(ct={}));var oe;(function(n){function e(t){var r=t;return typeof r=="string"}n.is=e})(oe||(oe={}));var Le;(function(n){function e(o,a,s){return{range:o,newText:a,annotationId:s}}n.replace=e;function t(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}n.insert=t;function r(o,a){return{range:o,newText:"",annotationId:a}}n.del=r;function i(o){var a=o;return M.is(a)&&(ct.is(a.annotationId)||oe.is(a.annotationId))}n.is=i})(Le||(Le={}));var He;(function(n){function e(r,i){return{textDocument:r,edits:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&gn.is(i.textDocument)&&Array.isArray(i.edits)}n.is=t})(He||(He={}));var Rt;(function(n){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}n.create=e;function t(r){var i=r;return i&&i.kind==="create"&&b.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||b.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||b.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||oe.is(i.annotationId))}n.is=t})(Rt||(Rt={}));var It;(function(n){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}n.create=e;function t(r){var i=r;return i&&i.kind==="rename"&&b.string(i.oldUri)&&b.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||b.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||b.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||oe.is(i.annotationId))}n.is=t})(It||(It={}));var Mt;(function(n){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}n.create=e;function t(r){var i=r;return i&&i.kind==="delete"&&b.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||b.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||b.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||oe.is(i.annotationId))}n.is=t})(Mt||(Mt={}));var fn;(function(n){function e(t){var r=t;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return b.string(i.kind)?Rt.is(i)||It.is(i)||Mt.is(i):He.is(i)}))}n.is=e})(fn||(fn={}));var hn=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,r){var i,o;if(r===void 0?i=M.insert(e,t):oe.is(r)?(o=r,i=Le.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Le.insert(e,t,o)),this.edits.push(i),o!==void 0)return o},n.prototype.replace=function(e,t,r){var i,o;if(r===void 0?i=M.replace(e,t):oe.is(r)?(o=r,i=Le.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Le.replace(e,t,o)),this.edits.push(i),o!==void 0)return o},n.prototype.delete=function(e,t){var r,i;if(t===void 0?r=M.del(e):oe.is(t)?(i=t,r=Le.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=Le.del(e,i)),this.edits.push(r),i!==void 0)return i},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),Ni=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var r;if(oe.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(t===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=t,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),Xs=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ni(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(He.is(r)){var i=new hn(r.edits,t._changeAnnotations);t._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new hn(e.changes[r]);t._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(gn.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){var i=[],o={textDocument:t,edits:i};this._workspaceEdit.documentChanges.push(o),r=new hn(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new hn(i),this._textEditChanges[e]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ni,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;ct.is(t)||oe.is(t)?i=t:r=t;var o,a;if(i===void 0?o=Rt.create(e,r):(a=oe.is(i)?i:this._changeAnnotations.manage(i),o=Rt.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n.prototype.renameFile=function(e,t,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;ct.is(r)||oe.is(r)?o=r:i=r;var a,s;if(o===void 0?a=It.create(e,t,i):(s=oe.is(o)?o:this._changeAnnotations.manage(o),a=It.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},n.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;ct.is(t)||oe.is(t)?i=t:r=t;var o,a;if(i===void 0?o=Mt.create(e,r):(a=oe.is(i)?i:this._changeAnnotations.manage(i),o=Mt.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n}();var _i;(function(n){function e(r){return{uri:r}}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.uri)}n.is=t})(_i||(_i={}));var Tt;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.uri)&&b.integer(i.version)}n.is=t})(Tt||(Tt={}));var gn;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.uri)&&(i.version===null||b.integer(i.version))}n.is=t})(gn||(gn={}));var Oi;(function(n){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.uri)&&b.string(i.languageId)&&b.integer(i.version)&&b.string(i.text)}n.is=t})(Oi||(Oi={}));var ae;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(ae||(ae={}));(function(n){function e(t){var r=t;return r===n.PlainText||r===n.Markdown}n.is=e})(ae||(ae={}));var bn;(function(n){function e(t){var r=t;return b.objectLiteral(t)&&ae.is(r.kind)&&b.string(r.value)}n.is=e})(bn||(bn={}));var z;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(z||(z={}));var ee;(function(n){n.PlainText=1,n.Snippet=2})(ee||(ee={}));var Re;(function(n){n.Deprecated=1})(Re||(Re={}));var Wi;(function(n){function e(r,i,o){return{newText:r,insert:i,replace:o}}n.create=e;function t(r){var i=r;return i&&b.string(i.newText)&&_.is(i.insert)&&_.is(i.replace)}n.is=t})(Wi||(Wi={}));var Li;(function(n){n.asIs=1,n.adjustIndentation=2})(Li||(Li={}));var nr;(function(n){function e(t){return{label:t}}n.create=e})(nr||(nr={}));var rr;(function(n){function e(t,r){return{items:t||[],isIncomplete:!!r}}n.create=e})(rr||(rr={}));var Pt;(function(n){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(r){var i=r;return b.string(i)||b.objectLiteral(i)&&b.string(i.language)&&b.string(i.value)}n.is=t})(Pt||(Pt={}));var ir;(function(n){function e(t){var r=t;return!!r&&b.objectLiteral(r)&&(bn.is(r.contents)||Pt.is(r.contents)||b.typedArray(r.contents,Pt.is))&&(t.range===void 0||_.is(t.range))}n.is=e})(ir||(ir={}));var Ui;(function(n){function e(t,r){return r?{label:t,documentation:r}:{label:t}}n.create=e})(Ui||(Ui={}));var ji;(function(n){function e(t,r){for(var i=[],o=2;o=0;p--){var u=d[p],f=o.offsetAt(u.range.start),g=o.offsetAt(u.range.end);if(g<=c)s=s.substring(0,f)+u.newText+s.substring(g,s.length);else throw new Error("Overlapping edit");c=f}return s}n.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,d=o.slice(0,s),c=o.slice(s);i(d,a),i(c,a);for(var p=0,u=0,f=0;p0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return ie.create(0,e);for(;re?i=o:r=o+1}var a=r-1;return ie.create(a,e-t[a])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],i=e.line+1"u"}n.undefined=r;function i(g){return g===!0||g===!1}n.boolean=i;function o(g){return e.call(g)==="[object String]"}n.string=o;function a(g){return e.call(g)==="[object Number]"}n.number=a;function s(g,C,w){return e.call(g)==="[object Number]"&&C<=g&&g<=w}n.numberRange=s;function d(g){return e.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=d;function c(g){return e.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=c;function p(g){return e.call(g)==="[object Function]"}n.func=p;function u(g){return g!==null&&typeof g=="object"}n.objectLiteral=u;function f(g,C){return Array.isArray(g)&&g.every(C)}n.typedArray=f})(b||(b={}));var ht=class{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(let r of e)if(ht.isIncremental(r)){let i=Gi(r.range),o=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(a,this._content.length);let s=Math.max(i.start.line,0),d=Math.max(i.end.line,0),c=this._lineOffsets,p=Ki(r.text,!1,o);if(d-s===p.length)for(let f=0,g=p.length;fe?i=a:r=a+1}let o=r-1;return{line:o,character:e-t[o]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],i=e.line+1{let f=p.range.start.line-u.range.start.line;return f===0?p.range.start.character-u.range.start.character:f}),d=0,c=[];for(let p of s){let u=i.offsetAt(p.range.start);if(ud&&c.push(a.substring(d,u)),p.newText.length&&c.push(p.newText),d=i.offsetAt(p.range.end)}return c.push(a.substr(d)),c.join("")}n.applyEdits=r})(_t||(_t={}));function dr(n,e){if(n.length<=1)return n;let t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);dr(r,e),dr(i,e);let o=0,a=0,s=0;for(;ot.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function Ra(n){let e=Gi(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var Hi;(function(n){n.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ae.Markdown,ae.PlainText]}},hover:{contentFormat:[ae.Markdown,ae.PlainText]}}}})(Hi||(Hi={}));var Je;(function(n){n[n.Unknown=0]="Unknown",n[n.File=1]="File",n[n.Directory=2]="Directory",n[n.SymbolicLink=64]="SymbolicLink"})(Je||(Je={}));var Ji={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Xi(n){switch(n){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F `;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. `;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. `;default:return""}}function Se(n,e,t){var r;if(e?r={kind:"markdown",value:Ma(n,t)}:r={kind:"plaintext",value:Ia(n,t)},r.value!=="")return r}function vn(n){return n=n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),n.replace(//g,">")}function Ia(n,e){if(!n.description||n.description==="")return"";if(typeof n.description!="string")return n.description.value;var t="";if((e==null?void 0:e.documentation)!==!1){n.status&&(t+=Xi(n.status)),t+=n.description;var r=Yi(n.browsers);r&&(t+=` (`+r+")"),"syntax"in n&&(t+=` Syntax: `.concat(n.syntax))}return n.references&&n.references.length>0&&(e==null?void 0:e.references)!==!1&&(t.length>0&&(t+=` `),t+=n.references.map(function(i){return"".concat(i.name,": ").concat(i.url)}).join(" | ")),t}function Ma(n,e){if(!n.description||n.description==="")return"";var t="";if((e==null?void 0:e.documentation)!==!1){n.status&&(t+=Xi(n.status)),typeof n.description=="string"?t+=vn(n.description):t+=n.description.kind===ae.Markdown?n.description.value:vn(n.description.value);var r=Yi(n.browsers);r&&(t+=` (`+vn(r)+")"),"syntax"in n&&n.syntax&&(t+=` Syntax: `.concat(vn(n.syntax)))}return n.references&&n.references.length>0&&(e==null?void 0:e.references)!==!1&&(t.length>0&&(t+=` `),t+=n.references.map(function(i){return"[".concat(i.name,"](").concat(i.url,")")}).join(" | ")),t}function Yi(n){return n===void 0&&(n=[]),n.length===0?null:n.map(function(e){var t="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in Ji&&(t+=Ji[i]),o&&(t+=" "+o),t}).join(", ")}var yn=$(),eo=[{func:"rgb($red, $green, $blue)",desc:yn("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:yn("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:yn("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:yn("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Ot={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},pr={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function ut(n,e){var t=n.getText(),r=t.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function Ta(n){var e=n.getText(),t=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(t)switch(t[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof t[2]>"u")return parseFloat(e)%360}throw new Error}function to(n){var e=n.getName();return e?/^(rgb|rgba|hsl|hsla)$/gi.test(e):!1}var Qi=48,Pa=57,Aa=65;var wn=97,Na=102;function K(n){return n=wn&&n<=Na?n-wn+10:0)}function Zi(n){if(n[0]!=="#")return null;switch(n.length){case 4:return{red:K(n.charCodeAt(1))*17/255,green:K(n.charCodeAt(2))*17/255,blue:K(n.charCodeAt(3))*17/255,alpha:1};case 5:return{red:K(n.charCodeAt(1))*17/255,green:K(n.charCodeAt(2))*17/255,blue:K(n.charCodeAt(3))*17/255,alpha:K(n.charCodeAt(4))*17/255};case 7:return{red:(K(n.charCodeAt(1))*16+K(n.charCodeAt(2)))/255,green:(K(n.charCodeAt(3))*16+K(n.charCodeAt(4)))/255,blue:(K(n.charCodeAt(5))*16+K(n.charCodeAt(6)))/255,alpha:1};case 9:return{red:(K(n.charCodeAt(1))*16+K(n.charCodeAt(2)))/255,green:(K(n.charCodeAt(3))*16+K(n.charCodeAt(4)))/255,blue:(K(n.charCodeAt(5))*16+K(n.charCodeAt(6)))/255,alpha:(K(n.charCodeAt(7))*16+K(n.charCodeAt(8)))/255}}return null}function _a(n,e,t,r){if(r===void 0&&(r=1),n=n/60,e===0)return{red:t,green:t,blue:t,alpha:r};var i=function(s,d,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(d-s)*c+s:c<3?d:c<4?(d-s)*(4-c)+s:s},o=t<=.5?t*(e+1):t+e-t*e,a=t*2-o;return{red:i(a,o,n+2),green:i(a,o,n),blue:i(a,o,n-2),alpha:r}}function no(n){var e=n.red,t=n.green,r=n.blue,i=n.alpha,o=Math.max(e,t,r),a=Math.min(e,t,r),s=0,d=0,c=(a+o)/2,p=o-a;if(p>0){switch(d=Math.min(c<=.5?p/(2*c):p/(2-2*c),1),o){case e:s=(t-r)/p+(t4)return null;try{var p=i.length===4?ut(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:ut(i[0],255),green:ut(i[1],255),blue:ut(i[2],255),alpha:p};if(r==="hsl"||r==="hsla"){var u=Ta(i[0]),f=ut(i[1],100),g=ut(i[2],100);return _a(u,f,g,p)}}catch{return null}}else if(n.type===h.Identifier){if(n.parent&&n.parent.type!==h.Term)return null;var C=n.parent;if(C&&C.parent&&C.parent.type===h.BinaryExpression){var w=C.parent;if(w.parent&&w.parent.type===h.ListEntry&&w.parent.key===w)return null}var y=n.getText().toLowerCase();if(y==="none")return null;var I=Ot[y];if(I)return Zi(I)}return null}var hr={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},ur={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},mr={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},io=["medium","thick","thin"],fr={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},gr={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},br={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},vr={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},yr={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},wr={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},xr={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},xn={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},oo=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],ao=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],so=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function Wt(n){return Object.keys(n).map(function(e){return n[e]})}function de(n){return typeof n<"u"}var lo=function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;re.offset?o-e.offset:0}return e},n.prototype.markError=function(e,t,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new pn(e,t,Z.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},n.prototype.parseStylesheet=function(e){var t=e.version,r=e.getText(),i=function(o,a){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,a)};return this.internalParse(r,this._parseStylesheet,i)},n.prototype.internalParse=function(e,t,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=t.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(o,a){return e.substr(o,a)}),i},n.prototype._parseStylesheet=function(){for(var e=this.create(ri);e.addChild(this._parseStylesheetStart()););var t=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,t=!1,!this.peek(l.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(l.SemiColon)&&this.markError(e,m.SemiColonExpected));this.accept(l.SemiColon)||this.accept(l.CDO)||this.accept(l.CDC);)r=!0,t=!1}while(r);if(this.peek(l.EOF))break;t||(this.peek(l.AtKeyword)?this.markError(e,m.UnknownAtRule):this.markError(e,m.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(l.EOF));return this.finish(e)},n.prototype._parseStylesheetStart=function(){return this._parseCharset()},n.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(l.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},n.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},n.prototype._tryParseRuleset=function(e){var t=this.mark();if(this._parseSelector(e)){for(;this.accept(l.Comma)&&this._parseSelector(e););if(this.accept(l.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null},n.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var t=this.create(Ee),r=t.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(l.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(t,m.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},n.prototype._parseRuleSetDeclaration=function(){return this.peek(l.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},n.prototype._needsSemicolonAfter=function(e){switch(e.type){case h.Keyframe:case h.ViewPort:case h.Media:case h.Ruleset:case h.Namespace:case h.If:case h.For:case h.Each:case h.While:case h.MixinDeclaration:case h.FunctionDeclaration:case h.MixinContentDeclaration:return!1;case h.ExtendsReference:case h.MixinContentReference:case h.ReturnStatement:case h.MediaQuery:case h.Debug:case h.Import:case h.AtApplyRule:case h.CustomPropertyDeclaration:return!0;case h.VariableDeclaration:return e.needsSemicolon;case h.MixinReference:return!e.getContent();case h.Declaration:return!e.getNestedProperties()}return!1},n.prototype._parseDeclarations=function(e){var t=this.create(kt);if(!this.accept(l.CurlyL))return null;for(var r=e();t.addChild(r)&&!this.peek(l.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(l.SemiColon))return this.finish(t,m.SemiColonExpected,[l.SemiColon,l.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===l.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(l.SemiColon););r=e()}return this.accept(l.CurlyR)?this.finish(t):this.finish(t,m.RightCurlyExpected,[l.CurlyR,l.SemiColon])},n.prototype._parseBody=function(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,m.LeftCurlyExpected,[l.CurlyR,l.SemiColon])},n.prototype._parseSelector=function(e){var t=this.create(we),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)r=!0,t.addChild(this._parseCombinator());return r?this.finish(t):null},n.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;var r=this.create(re);return r.setProperty(this._parseProperty())?this.accept(l.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(l.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,m.PropertyValueExpected)):this.finish(r,m.ColonExpected,[l.Colon],e||[l.SemiColon]):null},n.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(l.Ident,/^--/))return null;var t=this.create(oi);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(l.Colon))return this.finish(t,m.ColonExpected,[l.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(l.CurlyL)){var i=this.create(ii),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(l.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,lo(lo([],e||[],!1),[l.SemiColon,l.EOF],!1)))?(t.setValue(a),this.peek(l.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(r),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),de(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,m.PropertyValueExpected):this.finish(t))},n.prototype._parseCustomPropertyValue=function(e){var t=this;e===void 0&&(e=[l.CurlyR]);var r=this.create(E),i=function(){return a===0&&s===0&&d===0},o=function(){return e.indexOf(t.token.type)!==-1},a=0,s=0,d=0;e:for(;;){switch(this.token.type){case l.SemiColon:if(i())break e;break;case l.Exclamation:if(i())break e;break;case l.CurlyL:a++;break;case l.CurlyR:if(a--,a<0){if(o()&&s===0&&d===0)break e;return this.finish(r,m.LeftCurlyExpected)}break;case l.ParenthesisL:s++;break;case l.ParenthesisR:if(s--,s<0){if(o()&&d===0&&a===0)break e;return this.finish(r,m.LeftParenthesisExpected)}break;case l.BracketL:d++;break;case l.BracketR:if(d--,d<0)return this.finish(r,m.LeftSquareBracketExpected);break;case l.BadString:break e;case l.EOF:var c=m.RightCurlyExpected;return d>0?c=m.RightSquareBracketExpected:s>0&&(c=m.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},n.prototype._tryToParseDeclaration=function(e){var t=this.mark();return this._parseProperty()&&this.accept(l.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)},n.prototype._parseProperty=function(){var e=this.create(ot),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},n.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},n.prototype._parseCharset=function(){if(!this.peek(l.Charset))return null;var e=this.create(E);return this.consumeToken(),this.accept(l.String)?this.accept(l.SemiColon)?this.finish(e):this.finish(e,m.SemiColonExpected):this.finish(e,m.IdentifierExpected)},n.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(at);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,m.URIOrStringExpected):(!this.peek(l.SemiColon)&&!this.peek(l.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},n.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(gi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,m.URIExpected,[l.SemiColon]):this.accept(l.SemiColon)?this.finish(e):this.finish(e,m.SemiColonExpected)},n.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(rn);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(pi);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseKeyframe=function(){if(!this.peekRegExp(l.AtKeyword,this.keyframeRegex))return null;var e=this.create(on),t=this.create(E);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,m.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,m.IdentifierExpected,[l.CurlyR])},n.prototype._parseKeyframeIdent=function(){return this._parseIdent([T.Keyframe])},n.prototype._parseKeyframeSelector=function(){var e=this.create(Jn);if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return null;for(;this.accept(l.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return this.finish(e,m.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._tryParseKeyframeSelector=function(){var e=this.create(Jn),t=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return null;for(;this.accept(l.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return this.restoreAtMark(t),null;return this.peek(l.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)},n.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var t=this.create(Ct);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))},n.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},n.prototype._parseSupportsCondition=function(){var e=this.create(qe);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(l.Ident,/^(and|or)$/i))for(var t=this.token.text.toLowerCase();this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},n.prototype._parseSupportsConditionInParens=function(){var e=this.create(qe);if(this.accept(l.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([l.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,m.ConditionExpected):this.accept(l.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,m.RightParenthesisExpected,[l.ParenthesisR],[]);if(this.peek(l.Ident)){var t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(l.ParenthesisL)){for(var r=1;this.token.type!==l.EOF&&r!==0;)this.token.type===l.ParenthesisL?r++:this.token.type===l.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(t)}return this.finish(e,m.LeftParenthesisExpected,[],[l.ParenthesisL])},n.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},n.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var t=this.create(an);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,m.MediaQueryExpected)},n.prototype._parseMediaQueryList=function(){var e=this.create(sn);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,m.MediaQueryExpected);for(;this.accept(l.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,m.MediaQueryExpected);return this.finish(e)},n.prototype._parseMediaQuery=function(){var e=this.create(ln),t=this.mark();if(this.acceptIdent("not"),this.peek(l.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},n.prototype._parseRatio=function(){var e=this.mark(),t=this.create(Ci);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,m.NumberExpected):(this.restoreAtMark(e),null):null},n.prototype._parseMediaCondition=function(){var e=this.create(vi);this.acceptIdent("not");for(var t=!0;t;){if(!this.accept(l.ParenthesisL))return this.finish(e,m.LeftParenthesisExpected,[],[l.CurlyL]);if(this.peek(l.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(l.ParenthesisR))return this.finish(e,m.RightParenthesisExpected,[],[l.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},n.prototype._parseMediaFeature=function(){var e=this,t=[l.ParenthesisR],r=this.create(yi),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(l.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,m.TermExpected,[],t)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,m.TermExpected,[],t);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,m.TermExpected,[],t)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,m.OperatorExpected,[],t);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,m.IdentifierExpected,[],t);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,m.TermExpected,[],t)}else return this.finish(r,m.IdentifierExpected,[],t);return this.finish(r)},n.prototype._parseMediaFeatureName=function(){return this._parseIdent()},n.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},n.prototype._parseMedium=function(){var e=this.create(E);return e.addChild(this._parseIdent())?this.finish(e):null},n.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},n.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(wi);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(l.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,m.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},n.prototype._parsePageMarginBox=function(){if(!this.peek(l.AtKeyword))return null;var e=this.create(xi);return this.acceptOneKeyword(so)||this.markError(e,m.UnknownAtRule,[],[l.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parsePageSelector=function(){if(!this.peek(l.Ident)&&!this.peek(l.Colon))return null;var e=this.create(E);return e.addChild(this._parseIdent()),this.accept(l.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,m.IdentifierExpected):this.finish(e)},n.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(bi);return this.consumeToken(),this.resync([],[l.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},n.prototype._parseUnknownAtRule=function(){if(!this.peek(l.AtKeyword))return null;var e=this.create(dn);e.addChild(this._parseUnknownAtRuleName());var t=function(){return i===0&&o===0&&a===0},r=0,i=0,o=0,a=0;e:for(;;){switch(this.token.type){case l.SemiColon:if(t())break e;break;case l.EOF:return i>0?this.finish(e,m.RightCurlyExpected):a>0?this.finish(e,m.RightSquareBracketExpected):o>0?this.finish(e,m.RightParenthesisExpected):this.finish(e);case l.CurlyL:r++,i++;break;case l.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,m.RightSquareBracketExpected);if(o>0)return this.finish(e,m.RightParenthesisExpected);break e}if(i<0){if(o===0&&a===0)break e;return this.finish(e,m.LeftCurlyExpected)}break;case l.ParenthesisL:o++;break;case l.ParenthesisR:if(o--,o<0)return this.finish(e,m.LeftParenthesisExpected);break;case l.BracketL:a++;break;case l.BracketR:if(a--,a<0)return this.finish(e,m.LeftSquareBracketExpected);break}this.consumeToken()}return e},n.prototype._parseUnknownAtRuleName=function(){var e=this.create(E);return this.accept(l.AtKeyword)?this.finish(e):e},n.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(l.Dashmatch)||this.peek(l.Includes)||this.peek(l.SubstringOperator)||this.peek(l.PrefixOperator)||this.peek(l.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(h.Operator);return this.consumeToken(),this.finish(e)}else return null},n.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(E);return this.consumeToken(),this.finish(e)},n.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(E);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=h.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=h.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(E);return this.consumeToken(),e.type=h.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(E);return this.consumeToken(),e.type=h.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(E);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=h.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},n.prototype._parseSimpleSelector=function(){var e=this.create(xe),t=0;for(e.addChild(this._parseElementName())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null},n.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},n.prototype._parseSelectorIdent=function(){return this._parseIdent()},n.prototype._parseHash=function(){if(!this.peek(l.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(h.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,m.IdentifierExpected)}else this.consumeToken();return this.finish(e)},n.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(h.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,m.IdentifierExpected):this.finish(e)},n.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(h.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(t)},n.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(h.NamespacePrefix);return!t.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},n.prototype._parseAttrib=function(){if(!this.peek(l.BracketL))return null;var e=this.create(ki);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(l.BracketR)?this.finish(e):this.finish(e,m.RightSquareBracketExpected)):this.finish(e,m.IdentifierExpected)},n.prototype._parsePseudo=function(){var e=this,t=this._tryParsePseudoIdentifier();if(t){if(!this.hasWhitespace()&&this.accept(l.ParenthesisL)){var r=function(){var i=e.create(E);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(l.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(l.ParenthesisR)?e.finish(i):null};if(t.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected)}return this.finish(t)}return null},n.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(l.Colon))return null;var e=this.mark(),t=this.createNode(h.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(l.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,m.IdentifierExpected):this.finish(t))},n.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},n.prototype._parsePrio=function(){if(!this.peek(l.Exclamation))return null;var e=this.createNode(h.Prio);return this.accept(l.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},n.prototype._parseExpr=function(e){e===void 0&&(e=!1);var t=this.create(cn);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(l.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)},n.prototype._parseNamedLine=function(){if(!this.peek(l.BracketL))return null;var e=this.createNode(h.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(l.BracketR)?this.finish(e):this.finish(e,m.RightSquareBracketExpected)},n.prototype._parseBinaryExpr=function(e,t){var r=this.create(st);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(t||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,m.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},n.prototype._parseTerm=function(){var e=this.create(Si);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},n.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},n.prototype._parseOperation=function(){if(!this.peek(l.ParenthesisL))return null;var e=this.create(E);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(l.ParenthesisR)?this.finish(e):this.finish(e,m.RightParenthesisExpected)},n.prototype._parseNumeric=function(){if(this.peek(l.Num)||this.peek(l.Percentage)||this.peek(l.Resolution)||this.peek(l.Length)||this.peek(l.EMS)||this.peek(l.EXS)||this.peek(l.Angle)||this.peek(l.Time)||this.peek(l.Dimension)||this.peek(l.Freq)){var e=this.create(Et);return this.consumeToken(),this.finish(e)}return null},n.prototype._parseStringLiteral=function(){if(!this.peek(l.String)&&!this.peek(l.BadString))return null;var e=this.createNode(h.StringLiteral);return this.consumeToken(),this.finish(e)},n.prototype._parseURILiteral=function(){if(!this.peekRegExp(l.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),t=this.createNode(h.URILiteral);return this.accept(l.Ident),this.hasWhitespace()||!this.peek(l.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,m.RightParenthesisExpected))},n.prototype._parseURLArgument=function(){var e=this.create(E);return!this.accept(l.String)&&!this.accept(l.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},n.prototype._parseIdent=function(e){if(!this.peek(l.Ident))return null;var t=this.create(Q);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(l.Ident,/^--/),this.consumeToken(),this.finish(t)},n.prototype._parseFunction=function(){var e=this.mark(),t=this.create(De);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(l.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,m.ExpressionExpected);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,m.RightParenthesisExpected)},n.prototype._parseFunctionIdentifier=function(){if(!this.peek(l.Ident))return null;var e=this.create(Q);if(e.referenceTypes=[T.Function],this.acceptIdent("progid")){if(this.accept(l.Colon))for(;this.accept(l.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},n.prototype._parseFunctionArgument=function(){var e=this.create(me);return e.setValue(this._parseExpr(!0))?this.finish(e):null},n.prototype._parseHexColor=function(){if(this.peekRegExp(l.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(Ft);return this.consumeToken(),this.finish(e)}else return null},n}();function po(n,e){var t=0,r=n.length;if(r===0)return 0;for(;te+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},n.prototype.findInScope=function(e,t){t===void 0&&(t=0);var r=e+t,i=po(this.children,function(a){return a.offset>r});if(i===0)return this;var o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+t?o.findInScope(e,t):this},n.prototype.addSymbol=function(e){this.symbols.push(e)},n.prototype.getSymbol=function(e,t){for(var r=0;r{"use strict";var n={470:r=>{function i(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function o(s,d){for(var c,p="",u=0,f=-1,g=0,C=0;C<=s.length;++C){if(C2){var w=p.lastIndexOf("/");if(w!==p.length-1){w===-1?(p="",u=0):u=(p=p.slice(0,w)).length-1-p.lastIndexOf("/"),f=C,g=0;continue}}else if(p.length===2||p.length===1){p="",u=0,f=C,g=0;continue}}d&&(p.length>0?p+="/..":p="..",u=2)}else p.length>0?p+="/"+s.slice(f+1,C):p=s.slice(f+1,C),u=C-f-1;f=C,g=0}else c===46&&g!==-1?++g:g=-1}return p}var a={resolve:function(){for(var s,d="",c=!1,p=arguments.length-1;p>=-1&&!c;p--){var u;p>=0?u=arguments[p]:(s===void 0&&(s=process.cwd()),u=s),i(u),u.length!==0&&(d=u+"/"+d,c=u.charCodeAt(0)===47)}return d=o(d,!c),c?d.length>0?"/"+d:"/":d.length>0?d:"."},normalize:function(s){if(i(s),s.length===0)return".";var d=s.charCodeAt(0)===47,c=s.charCodeAt(s.length-1)===47;return(s=o(s,!d)).length!==0||d||(s="."),s.length>0&&c&&(s+="/"),d?"/"+s:s},isAbsolute:function(s){return i(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,d=0;d0&&(s===void 0?s=c:s+="/"+c)}return s===void 0?".":a.normalize(s)},relative:function(s,d){if(i(s),i(d),s===d||(s=a.resolve(s))===(d=a.resolve(d)))return"";for(var c=1;cC){if(d.charCodeAt(f+y)===47)return d.slice(f+y+1);if(y===0)return d.slice(f+y)}else u>C&&(s.charCodeAt(c+y)===47?w=y:y===0&&(w=0));break}var I=s.charCodeAt(c+y);if(I!==d.charCodeAt(f+y))break;I===47&&(w=y)}var P="";for(y=c+w+1;y<=p;++y)y!==p&&s.charCodeAt(y)!==47||(P.length===0?P+="..":P+="/..");return P.length>0?P+d.slice(f+w):(f+=w,d.charCodeAt(f)===47&&++f,d.slice(f))},_makeLong:function(s){return s},dirname:function(s){if(i(s),s.length===0)return".";for(var d=s.charCodeAt(0),c=d===47,p=-1,u=!0,f=s.length-1;f>=1;--f)if((d=s.charCodeAt(f))===47){if(!u){p=f;break}}else u=!1;return p===-1?c?"/":".":c&&p===1?"//":s.slice(0,p)},basename:function(s,d){if(d!==void 0&&typeof d!="string")throw new TypeError('"ext" argument must be a string');i(s);var c,p=0,u=-1,f=!0;if(d!==void 0&&d.length>0&&d.length<=s.length){if(d.length===s.length&&d===s)return"";var g=d.length-1,C=-1;for(c=s.length-1;c>=0;--c){var w=s.charCodeAt(c);if(w===47){if(!f){p=c+1;break}}else C===-1&&(f=!1,C=c+1),g>=0&&(w===d.charCodeAt(g)?--g==-1&&(u=c):(g=-1,u=C))}return p===u?u=C:u===-1&&(u=s.length),s.slice(p,u)}for(c=s.length-1;c>=0;--c)if(s.charCodeAt(c)===47){if(!f){p=c+1;break}}else u===-1&&(f=!1,u=c+1);return u===-1?"":s.slice(p,u)},extname:function(s){i(s);for(var d=-1,c=0,p=-1,u=!0,f=0,g=s.length-1;g>=0;--g){var C=s.charCodeAt(g);if(C!==47)p===-1&&(u=!1,p=g+1),C===46?d===-1?d=g:f!==1&&(f=1):d!==-1&&(f=-1);else if(!u){c=g+1;break}}return d===-1||p===-1||f===0||f===1&&d===p-1&&d===c+1?"":s.slice(d,p)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(d,c){var p=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return p?p===c.root?p+u:p+"/"+u:u}(0,s)},parse:function(s){i(s);var d={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return d;var c,p=s.charCodeAt(0),u=p===47;u?(d.root="/",c=1):c=0;for(var f=-1,g=0,C=-1,w=!0,y=s.length-1,I=0;y>=c;--y)if((p=s.charCodeAt(y))!==47)C===-1&&(w=!1,C=y+1),p===46?f===-1?f=y:I!==1&&(I=1):f!==-1&&(I=-1);else if(!w){g=y+1;break}return f===-1||C===-1||I===0||I===1&&f===C-1&&f===g+1?C!==-1&&(d.base=d.name=g===0&&u?s.slice(1,C):s.slice(g,C)):(g===0&&u?(d.name=s.slice(1,f),d.base=s.slice(1,C)):(d.name=s.slice(g,f),d.base=s.slice(g,C)),d.ext=s.slice(f,C)),g>0?d.dir=s.slice(0,g-1):u&&(d.dir="/"),d},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,o)=>{var a;if(o.r(i),o.d(i,{URI:()=>P,Utils:()=>ue}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var s=navigator.userAgent;a=s.indexOf("Windows")>=0}var d,c,p=(d=function(k,v){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,F){S.__proto__=F}||function(S,F){for(var A in F)Object.prototype.hasOwnProperty.call(F,A)&&(S[A]=F[A])})(k,v)},function(k,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function S(){this.constructor=k}d(k,v),k.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),u=/^\w[\w\d+.-]*$/,f=/^\//,g=/^\/\//;function C(k,v){if(!k.scheme&&v)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(k.authority,'", path: "').concat(k.path,'", query: "').concat(k.query,'", fragment: "').concat(k.fragment,'"}'));if(k.scheme&&!u.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!f.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(g.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var w="",y="/",I=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function k(v,S,F,A,N,U){U===void 0&&(U=!1),typeof v=="object"?(this.scheme=v.scheme||w,this.authority=v.authority||w,this.path=v.path||w,this.query=v.query||w,this.fragment=v.fragment||w):(this.scheme=function(be,ne){return be||ne?be:"file"}(v,U),this.authority=S||w,this.path=function(be,ne){switch(be){case"https":case"http":case"file":ne?ne[0]!==y&&(ne=y+ne):ne=y}return ne}(this.scheme,F||w),this.query=A||w,this.fragment=N||w,C(this,U))}return k.isUri=function(v){return v instanceof k||!!v&&typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"},Object.defineProperty(k.prototype,"fsPath",{get:function(){return Yt(this,!1)},enumerable:!1,configurable:!0}),k.prototype.with=function(v){if(!v)return this;var S=v.scheme,F=v.authority,A=v.path,N=v.query,U=v.fragment;return S===void 0?S=this.scheme:S===null&&(S=w),F===void 0?F=this.authority:F===null&&(F=w),A===void 0?A=this.path:A===null&&(A=w),N===void 0?N=this.query:N===null&&(N=w),U===void 0?U=this.fragment:U===null&&(U=w),S===this.scheme&&F===this.authority&&A===this.path&&N===this.query&&U===this.fragment?this:new j(S,F,A,N,U)},k.parse=function(v,S){S===void 0&&(S=!1);var F=I.exec(v);return F?new j(F[2]||w,Ve(F[4]||w),Ve(F[5]||w),Ve(F[7]||w),Ve(F[9]||w),S):new j(w,w,w,w,w)},k.file=function(v){var S=w;if(a&&(v=v.replace(/\\/g,y)),v[0]===y&&v[1]===y){var F=v.indexOf(y,2);F===-1?(S=v.substring(2),v=y):(S=v.substring(2,F),v=v.substring(F)||y)}return new j("file",S,v,w,w)},k.from=function(v){var S=new j(v.scheme,v.authority,v.path,v.query,v.fragment);return C(S,!0),S},k.prototype.toString=function(v){return v===void 0&&(v=!1),Ne(this,v)},k.prototype.toJSON=function(){return this},k.revive=function(v){if(v){if(v instanceof k)return v;var S=new j(v);return S._formatted=v.external,S._fsPath=v._sep===q?v.fsPath:null,S}return v},k}(),q=a?1:void 0,j=function(k){function v(){var S=k!==null&&k.apply(this,arguments)||this;return S._formatted=null,S._fsPath=null,S}return p(v,k),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Yt(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),v.prototype.toString=function(S){return S===void 0&&(S=!1),S?Ne(this,!0):(this._formatted||(this._formatted=Ne(this,!1)),this._formatted)},v.prototype.toJSON=function(){var S={$mid:1};return this._fsPath&&(S.fsPath=this._fsPath,S._sep=q),this._formatted&&(S.external=this._formatted),this.path&&(S.path=this.path),this.scheme&&(S.scheme=this.scheme),this.authority&&(S.authority=this.authority),this.query&&(S.query=this.query),this.fragment&&(S.fragment=this.fragment),S},v}(P),J=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function se(k,v){for(var S=void 0,F=-1,A=0;A=97&&N<=122||N>=65&&N<=90||N>=48&&N<=57||N===45||N===46||N===95||N===126||v&&N===47)F!==-1&&(S+=encodeURIComponent(k.substring(F,A)),F=-1),S!==void 0&&(S+=k.charAt(A));else{S===void 0&&(S=k.substr(0,A));var U=J[N];U!==void 0?(F!==-1&&(S+=encodeURIComponent(k.substring(F,A)),F=-1),S+=U):F===-1&&(F=A)}}return F!==-1&&(S+=encodeURIComponent(k.substring(F))),S!==void 0?S:k}function Qe(k){for(var v=void 0,S=0;S1&&k.scheme==="file"?"//".concat(k.authority).concat(k.path):k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?v?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,a&&(S=S.replace(/\//g,"\\")),S}function Ne(k,v){var S=v?Qe:se,F="",A=k.scheme,N=k.authority,U=k.path,be=k.query,ne=k.fragment;if(A&&(F+=A,F+=":"),(N||A==="file")&&(F+=y,F+=y),N){var pe=N.indexOf("@");if(pe!==-1){var Be=N.substr(0,pe);N=N.substr(pe+1),(pe=Be.indexOf(":"))===-1?F+=S(Be,!1):(F+=S(Be.substr(0,pe),!1),F+=":",F+=S(Be.substr(pe+1),!1)),F+="@"}(pe=(N=N.toLowerCase()).indexOf(":"))===-1?F+=S(N,!1):(F+=S(N.substr(0,pe),!1),F+=N.substr(pe))}if(U){if(U.length>=3&&U.charCodeAt(0)===47&&U.charCodeAt(2)===58)(Fe=U.charCodeAt(1))>=65&&Fe<=90&&(U="/".concat(String.fromCharCode(Fe+32),":").concat(U.substr(3)));else if(U.length>=2&&U.charCodeAt(1)===58){var Fe;(Fe=U.charCodeAt(0))>=65&&Fe<=90&&(U="".concat(String.fromCharCode(Fe+32),":").concat(U.substr(2)))}F+=S(U,!0)}return be&&(F+="?",F+=S(be,!1)),ne&&(F+="#",F+=v?ne:se(ne,!1)),F}function wt(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+wt(k.substr(3)):k}}var Ze=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ve(k){return k.match(Ze)?k.replace(Ze,function(v){return wt(v)}):k}var ue,le=o(470),et=function(k,v,S){if(S||arguments.length===2)for(var F,A=0,N=v.length;A{for(var o in i)t.o(i,o)&&!t.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:i[o]})},t.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),t.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t(447)})();var{URI:jt,Utils:Cn}=uo;var ja=function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=0;a--){var s=this.nodePath[a];if(s instanceof ot)this.getCompletionsForDeclarationProperty(s.getParent(),o);else if(s instanceof cn)s.parent instanceof Dt?this.getVariableProposals(null,o):this.getCompletionsForExpression(s,o);else if(s instanceof xe){var d=s.findAParent(h.ExtendsReference,h.Ruleset);if(d)if(d.type===h.ExtendsReference)this.getCompletionsForExtendsReference(d,s,o);else{var c=d;this.getCompletionsForSelector(c,c&&c.isNested(),o)}}else if(s instanceof me)this.getCompletionsForFunctionArgument(s,s.getParent(),o);else if(s instanceof kt)this.getCompletionsForDeclarations(s,o);else if(s instanceof Oe)this.getCompletionsForVariableDeclaration(s,o);else if(s instanceof Ee)this.getCompletionsForRuleSet(s,o);else if(s instanceof Dt)this.getCompletionsForInterpolation(s,o);else if(s instanceof $e)this.getCompletionsForFunctionDeclaration(s,o);else if(s instanceof Ke)this.getCompletionsForMixinReference(s,o);else if(s instanceof De)this.getCompletionsForFunctionArgument(null,s,o);else if(s instanceof Ct)this.getCompletionsForSupports(s,o);else if(s instanceof qe)this.getCompletionsForSupportsCondition(s,o);else if(s instanceof We)this.getCompletionsForExtendsReference(s,null,o);else if(s.type===h.URILiteral)this.getCompletionForUriLiteralValue(s,o);else if(s.parent===null)this.getCompletionForTopLevel(o);else if(s.type===h.StringLiteral&&this.isImportPathParent(s.parent.type))this.getCompletionForImportPath(s,o);else continue;if(o.items.length>0||this.offset>s.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},n.prototype.isImportPathParent=function(e){return e===h.Import},n.prototype.finalize=function(e){return e},n.prototype.findInNodePath=function(){for(var e=[],t=0;t=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},n.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},n.prototype.getPropertyProposals=function(e,t){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,o=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(s){var d,c,p=!1;e?(d=r.getCompletionRange(e.getProperty()),c=s.name,de(e.colonPosition)||(c+=": ",p=!0)):(d=r.getCompletionRange(null),c=s.name+": ",p=!0),!e&&o&&(c+="$0;"),e&&!e.semicolonPosition&&o&&r.offset>=r.textDocument.offsetAt(d.end)&&(c+="$0;");var u={label:s.name,documentation:Se(s,r.doesSupportMarkdown()),tags:Bt(s)?[Re.Deprecated]:[],textEdit:M.replace(d,c),insertTextFormat:ee.Snippet,kind:z.Property};s.restrictions||(p=!1),i&&p&&(u.command=bo);var f=typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50,g=(255-f).toString(16),C=V(s.name,"-")?ke.VendorPrefixed:ke.Normal;u.sortText=C+"_"+g,t.items.push(u)}),this.completionParticipants.forEach(function(s){s.onCssProperty&&s.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),t},Object.defineProperty(n.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,t;return(t=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&t!==void 0?t:!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,t;return(t=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&t!==void 0?t:!0},enumerable:!1,configurable:!0}),n.prototype.getCompletionsForDeclarationValue=function(e,t){for(var r=this,i=e.getFullPropertyName(),o=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(C){C.onCssPropertyValue&&C.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),o){if(o.restrictions)for(var s=0,d=o.restrictions;s=e.offset+2&&this.getVariableProposals(null,t),t},n.prototype.getVariableProposals=function(e,t){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,T.Variable),i=0,o=r;i0){var o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(t&&t.parent&&t.parent.type===h.Term&&(t=t.getParent()),e.restrictions)for(var a=0,s=e.restrictions;a=r.end;if(i)return this.getCompletionForTopLevel(t);var o=!r||this.offset<=r.offset;return o?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},n.prototype.getCompletionsForSelector=function(e,t,r){var i=this,o=this.findInNodePath(h.PseudoSelector,h.IdentifierSelector,h.ClassSelector,h.ElementNameSelector);!o&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=_.create(ie.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(y){var I=ft(y.name),P={label:y.name,textEdit:M.replace(i.getCompletionRange(o),I),documentation:Se(y,i.doesSupportMarkdown()),tags:Bt(y)?[Re.Deprecated]:[],kind:z.Function,insertTextFormat:y.name!==I?Me:void 0};V(y.name,":-")&&(P.sortText=ke.VendorPrefixed),r.items.push(P)});var s=this.cssDataManager.getPseudoElements();if(s.forEach(function(y){var I=ft(y.name),P={label:y.name,textEdit:M.replace(i.getCompletionRange(o),I),documentation:Se(y,i.doesSupportMarkdown()),tags:Bt(y)?[Re.Deprecated]:[],kind:z.Function,insertTextFormat:y.name!==I?Me:void 0};V(y.name,"::-")&&(P.sortText=ke.VendorPrefixed),r.items.push(P)}),!t){for(var d=0,c=oo;d0){var I=C.substr(y.offset,y.length);return I.charAt(0)==="."&&!g[I]&&(g[I]=!0,r.items.push({label:I,textEdit:M.replace(i.getCompletionRange(o),I),kind:z.Keyword})),!1}return!0}),e&&e.isNested()){var w=e.getSelectors().findFirstChildBeforeOffset(this.offset);w&&e.getSelectors().getChildren().indexOf(w)===0&&this.getPropertyProposals(null,r)}return r},n.prototype.getCompletionsForDeclarations=function(e,t){if(!e||this.offset===e.offset)return t;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,t);if(r instanceof nn){var i=r;if(!de(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,t);if(de(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),t),t},n.prototype.getCompletionsForExpression=function(e,t){var r=e.getParent();if(r instanceof me)return this.getCompletionsForFunctionArgument(r,r.getParent(),t),t;var i=e.findParent(h.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;var o=e.findChildAtOffset(this.offset,!0);return o?o instanceof Et||o instanceof Q?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)},n.prototype.getCompletionsForFunctionArgument=function(e,t,r){var i=t.getIdentifier();return i&&i.matches("var")&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},n.prototype.getCompletionsForFunctionDeclaration=function(e,t){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!de(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},n.prototype.getCompletionsForSupports=function(e,t){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var o=e.findFirstChildBeforeOffset(this.offset);return o instanceof qe?this.getCompletionsForSupportsCondition(o,t):t}return this.getCompletionForTopLevel(t)},n.prototype.getCompletionsForExtendsReference=function(e,t,r){return r},n.prototype.getCompletionForUriLiteralValue=function(e,t){var r,i,o;if(e.hasChildren()){var s=e.getChild(0);r=s.getText(),i=this.position,o=this.getCompletionRange(s)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+"url(".length);o=_.create(a,a)}return this.completionParticipants.forEach(function(d){d.onCssURILiteralValue&&d.onCssURILiteralValue({uriValue:r,position:i,range:o})}),t},n.prototype.getCompletionForImportPath=function(e,t){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),t},n.prototype.hasCharacterAtPosition=function(e,t){var r=this.textDocument.getText();return e>=0&&e=0&&` \r":{[()]},*>+`.indexOf(r.charAt(t))===-1;)t--;return r.substring(t+1,e)}function vo(n){return n.toLowerCase()in Ot||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)}var wo=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Za=$(),Er=function(){function n(){this.parent=null,this.children=null,this.attributes=null}return n.prototype.findAttribute=function(e){if(this.attributes)for(var t=0,r=this.attributes;t"),this.writeLine(t,i.join(""))},n}(),Te;(function(n){function e(r,i){return i+t(r)+i}n.ensure=e;function t(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}n.remove=t})(Te||(Te={}));var es=function(){function n(){this.id=0,this.attr=0,this.tag=0}return n}();function xo(n,e){for(var t=new Er,r=0,i=n.getChildren();r1){var c=e.cloneWithParent();t.addChild(c.findRoot()),t=c}t.append(a[d])}}break;case h.SelectorPlaceholder:if(o.matches("@at-root"))return t;case h.ElementNameSelector:var p=o.getText();t.addAttr("name",p==="*"?"element":he(p));break;case h.ClassSelector:t.addAttr("class",he(o.getText().substring(1)));break;case h.IdentifierSelector:t.addAttr("id",he(o.getText().substring(1)));break;case h.MixinDeclaration:t.addAttr("class",o.getName());break;case h.PseudoSelector:t.addAttr(he(o.getText()),"");break;case h.AttributeSelector:var u=o,f=u.getIdentifier();if(f){var g=u.getValue(),C=u.getOperator(),w=void 0;if(g&&C)switch(he(C.getText())){case"|=":w="".concat(Te.remove(he(g.getText())),"-\u2026");break;case"^=":w="".concat(Te.remove(he(g.getText())),"\u2026");break;case"$=":w="\u2026".concat(Te.remove(he(g.getText())));break;case"~=":w=" \u2026 ".concat(Te.remove(he(g.getText()))," \u2026 ");break;case"*=":w="\u2026".concat(Te.remove(he(g.getText())),"\u2026");break;default:w=Te.remove(he(g.getText()));break}t.addAttr(he(f.getText()),w)}break}}return t}function he(n){var e=new ye;e.setSource(n);var t=e.scanUnquotedString();return t?t.text:n}var So=function(){function n(e){this.cssDataManager=e}return n.prototype.selectorToMarkedString=function(e){var t=rs(e);if(t){var r=new yo('"').print(t);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},n.prototype.simpleSelectorToMarkedString=function(e){var t=xo(e),r=new yo('"').print(t);return r.push(this.selectorToSpecificityMarkedString(e)),r},n.prototype.isPseudoElementIdentifier=function(e){var t=e.match(/^::?([\w-]+)/);return t?!!this.cssDataManager.getPseudoElement("::"+t[1]):!1},n.prototype.selectorToSpecificityMarkedString=function(e){var t=this,r=function(o){for(var a=0,s=o.getChildren();a0&&r(d)}},i=new es;return r(e),Za("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},n}();var ts=function(){function n(e){this.prev=null,this.element=e}return n.prototype.processSelector=function(e){var t=null;if(!(this.element instanceof bt)&&e.getChildren().some(function(p){return p.hasChildren()&&p.getChild(0).type===h.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof bt&&(t=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,o=e.getChildren();i=0;a--){var s=t[a].getSelectors().getChild(0);s&&o.processSelector(s)}return o.processSelector(n),e}var zn=function(){function n(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new So(t)}return n.prototype.configure=function(e){this.defaultSettings=e},n.prototype.doHover=function(e,t,r,i){i===void 0&&(i=this.defaultSettings);function o(y){return _.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var a=e.offsetAt(t),s=it(r,a),d=null,c=0;c0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=o.length/2&&a.push({property:I.name,score:P})}),a.sort(function(I,P){return P.score-I.score||I.property.localeCompare(P.property)});for(var s=3,d=0,c=a;d=0;d--){var c=s[d];if(c instanceof re){var p=c.getProperty();if(p&&p.offset===o&&p.end===a){this.getFixesForUnknownProperty(e,p,r,i);return}}}},n}();var Mo=function(){function n(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return n}();function Gt(n,e,t,r){var i=n[e];i.value=t,t&&(Sr(i.properties,r)||i.properties.push(r))}function cs(n,e,t){Gt(n,"top",e,t),Gt(n,"right",e,t),Gt(n,"bottom",e,t),Gt(n,"left",e,t)}function te(n,e,t,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Gt(n,e,t,r):cs(n,t,r)}function Dr(n,e,t){switch(e.length){case 1:te(n,void 0,e[0],t);break;case 2:te(n,"top",e[0],t),te(n,"bottom",e[0],t),te(n,"right",e[1],t),te(n,"left",e[1],t);break;case 3:te(n,"top",e[0],t),te(n,"right",e[1],t),te(n,"left",e[1],t),te(n,"bottom",e[2],t);break;case 4:te(n,"top",e[0],t),te(n,"right",e[1],t),te(n,"bottom",e[2],t),te(n,"left",e[3],t);break}}function zr(n,e){for(var t=0,r=e;t"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var a=i.fullPropertyName.split("-");switch(a[0]){case"border":switch(a[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(a[2]){case void 0:te(e,a[1],ps(o),i);break;case"width":te(e,a[1],Ht(o,!1),i);break;case"style":te(e,a[1],In(o,!0),i);break}break;case"width":Dr(e,Io(o.getChildren(),!1),i);break;case"style":Dr(e,ds(o.getChildren(),!0),i);break}break;case"padding":a.length===1?Dr(e,Io(o.getChildren(),!0),i):te(e,a[1],Ht(o,!0),i);break}break}}return e}var Pe=$(),To=function(){function n(){this.data={}}return n.prototype.add=function(e,t,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),r&&i.nodes.push(r)},n}(),Po=function(){function n(e,t,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new To,this.validProperties={};var o=t.getSetting(zo.ValidProperties);Array.isArray(o)&&o.forEach(function(a){if(typeof a=="string"){var s=a.trim().toLowerCase();s.length&&(i.validProperties[s]=!0)}})}return n.entries=function(e,t,r,i,o){var a=new n(t,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(o)},n.prototype.isValidPropertyDeclaration=function(e){var t=e.fullPropertyName;return this.validProperties[t]},n.prototype.fetch=function(e,t){for(var r=[],i=0,o=e;i0)for(var w=this.fetch(r,"float"),y=0;y0)for(var w=this.fetch(r,"vertical-align"),y=0;y1)for(var se=0;se")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var t=this.createNode(h.Operator);return this.consumeToken(),this.finish(t)}return n.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var t=this.create(E);return this.consumeToken(),this.finish(t)}return n.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(l.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||n.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||n.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(t){var r=this._tryParseCustomPropertyDeclaration(t);if(r)return r;var i=this.create(re);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(l.Colon))return this.finish(i,m.ColonExpected,[l.Colon],t||[l.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var o=!1;if(i.setValue(this._parseExpr())&&(o=!0,i.addChild(this._parsePrio())),this.peek(l.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!o)return this.finish(i,m.PropertyValueExpected);return this.peek(l.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var t=this.create(Hn);return this._parseBody(t,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var t=this.create(We);if(this.consumeToken(),!t.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(t,m.SelectorExpected);for(;this.accept(l.Comma);)t.getSelectors().addChild(this._parseSimpleSelector());return this.accept(l.Exclamation)&&!this.acceptIdent("optional")?this.finish(t,m.UnknownKeyword):this.finish(t)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||n.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(h.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(l.Num)||this.accept(l.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var t=this.createNode(h.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(t)}else if(this.peekKeyword("@at-root")){var t=this.createNode(h.SelectorPlaceholder);return this.consumeToken(),this.finish(t)}return null},e.prototype._parseElementName=function(){var t=this.mark(),r=n.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(l.ParenthesisL)?(this.restoreAtMark(t),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||n.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var t=this.createNode(h.Debug);return this.consumeToken(),t.addChild(this._parseExpr()),this.finish(t)},e.prototype._parseControlStatement=function(t){return t===void 0&&(t=this._parseRuleSetDeclaration.bind(this)),this.peek(l.AtKeyword)?this._parseIfStatement(t)||this._parseForStatement(t)||this._parseEachStatement(t)||this._parseWhileStatement(t):null},e.prototype._parseIfStatement=function(t){return this.peekKeyword("@if")?this._internalParseIfStatement(t):null},e.prototype._internalParseIfStatement=function(t){var r=this.create(ai);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,m.ExpressionExpected);if(this._parseBody(r,t),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(t));else if(this.peek(l.CurlyL)){var i=this.create(di);this._parseBody(i,t),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(t){if(!this.peekKeyword("@for"))return null;var r=this.create(si);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,An.ThroughOrToExpected,[l.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,t):this.finish(r,m.ExpressionExpected,[l.CurlyR]):this.finish(r,m.ExpressionExpected,[l.CurlyR]):this.finish(r,An.FromExpected,[l.CurlyR]):this.finish(r,m.VariableNameExpected,[l.CurlyR])},e.prototype._parseEachStatement=function(t){if(!this.peekKeyword("@each"))return null;var r=this.create(li);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,m.VariableNameExpected,[l.CurlyR]);for(;this.accept(l.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,m.VariableNameExpected,[l.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,t):this.finish(r,m.ExpressionExpected,[l.CurlyR]):this.finish(r,An.InExpected,[l.CurlyR])},e.prototype._parseWhileStatement=function(t){if(!this.peekKeyword("@while"))return null;var r=this.create(ci);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,t):this.finish(r,m.ExpressionExpected,[l.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var t=this.create($e);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([T.Function])))return this.finish(t,m.IdentifierExpected,[l.CurlyR]);if(!this.accept(l.ParenthesisL))return this.finish(t,m.LeftParenthesisExpected,[l.CurlyR]);if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,m.VariableNameExpected)}return this.accept(l.ParenthesisR)?this._parseBody(t,this._parseFunctionBodyDeclaration.bind(this)):this.finish(t,m.RightParenthesisExpected,[l.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var t=this.createNode(h.ReturnStatement);return this.consumeToken(),t.addChild(this._parseExpr())?this.finish(t):this.finish(t,m.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var t=this.create(ze);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([T.Mixin])))return this.finish(t,m.IdentifierExpected,[l.CurlyR]);if(this.accept(l.ParenthesisL)){if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,m.VariableNameExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected,[l.CurlyR])}return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var t=this.create(_e);return t.setIdentifier(this._parseVariable())?(this.accept(Xt),this.accept(l.Colon)&&!t.setDefaultValue(this._parseExpr(!0))?this.finish(t,m.VariableValueExpected,[],[l.Comma,l.ParenthesisR]):this.finish(t)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var t=this.create(Fi);if(this.consumeToken(),this.accept(l.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,m.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected)}return this.finish(t)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var t=this.create(Ke);this.consumeToken();var r=this._parseIdent([T.Mixin]);if(!t.setIdentifier(r))return this.finish(t,m.IdentifierExpected,[l.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([T.Mixin]);if(!i)return this.finish(t,m.IdentifierExpected,[l.CurlyR]);var o=this.create(Xn);r.referenceTypes=[T.Module],o.setIdentifier(r),t.setIdentifier(i),t.addChild(o)}if(this.accept(l.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,m.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(l.CurlyL))&&t.setContent(this._parseMixinContentDeclaration()),this.finish(t)},e.prototype._parseMixinContentDeclaration=function(){var t=this.create(Ei);if(this.acceptIdent("using")){if(!this.accept(l.ParenthesisL))return this.finish(t,m.LeftParenthesisExpected,[l.CurlyL]);if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,m.VariableNameExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected,[l.CurlyL])}return this.peek(l.CurlyL)&&this._parseBody(t,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(t)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var t=this.create(me),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(l.Colon))t.setIdentifier(i);else{if(this.accept(Xt))return t.setValue(i),this.finish(t);this.restoreAtMark(r)}return t.setValue(this._parseExpr(!0))?(this.accept(Xt),t.addChild(this._parsePrio()),this.finish(t)):t.setValue(this._tryParsePrio())?this.finish(t):null},e.prototype._parseURLArgument=function(){var t=this.mark(),r=n.prototype._parseURLArgument.call(this);if(!r||!this.peek(l.ParenthesisR)){this.restoreAtMark(t);var i=this.create(E);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(l.ParenthesisL))return null;var t=this.create(E);for(this.consumeToken();t.addChild(this._parseListElement());)this.accept(l.Comma);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,m.RightParenthesisExpected)},e.prototype._parseListElement=function(){var t=this.create(Di),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(l.Colon)){if(t.setKey(r),!t.setValue(this._parseBinaryExpr()))return this.finish(t,m.ExpressionExpected)}else t.setValue(r);return this.finish(t)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var t=this.create(hi);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,m.StringLiteralExpected);if(!this.peek(l.SemiColon)&&!this.peek(l.EOF)){if(!this.peekRegExp(l.Ident,/as|with/))return this.finish(t,m.UnknownKeyword);if(this.acceptIdent("as")&&!t.setIdentifier(this._parseIdent([T.Module]))&&!this.acceptDelim("*"))return this.finish(t,m.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(l.ParenthesisL))return this.finish(t,m.LeftParenthesisExpected,[l.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,m.VariableNameExpected);for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,m.VariableNameExpected);if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected)}}return!this.accept(l.SemiColon)&&!this.accept(l.EOF)?this.finish(t,m.SemiColonExpected):this.finish(t)},e.prototype._parseModuleConfigDeclaration=function(){var t=this.create(ui);return t.setIdentifier(this._parseVariable())?!this.accept(l.Colon)||!t.setValue(this._parseExpr(!0))?this.finish(t,m.VariableValueExpected,[],[l.Comma,l.ParenthesisR]):this.accept(l.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(t,m.UnknownKeyword):this.finish(t):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var t=this.create(mi);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,m.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(l.ParenthesisL))return this.finish(t,m.LeftParenthesisExpected,[l.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,m.VariableNameExpected);for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,m.VariableNameExpected);if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected)}if(!this.peek(l.SemiColon)&&!this.peek(l.EOF)){if(!this.peekRegExp(l.Ident,/as|hide|show/))return this.finish(t,m.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([T.Forward]);if(!t.setIdentifier(r))return this.finish(t,m.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(t,m.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!t.addChild(this._parseForwardVisibility()))return this.finish(t,m.IdentifierOrVariableExpected)}return!this.accept(l.SemiColon)&&!this.accept(l.EOF)?this.finish(t,m.SemiColonExpected):this.finish(t)},e.prototype._parseForwardVisibility=function(){var t=this.create(fi);for(t.setIdentifier(this._parseIdent());t.addChild(this._parseVariable()||this._parseIdent());)this.accept(l.Comma);return t.getChildren().length>1?t:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||n.prototype._parseSupportsCondition.call(this)},e}(mt);var Cs=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),x=$(),Oo=function(n){Cs(e,n);function e(t,r){var i=n.call(this,"$",t,r)||this;return _o(e.scssModuleLoaders),_o(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(t){return t===h.Forward||t===h.Use||n.prototype.isImportPathParent.call(this,t)},e.prototype.getCompletionForImportPath=function(t,r){var i=t.getParent().type;if(i===h.Forward||i===h.Use)for(var o=0,a=e.scssModuleBuiltIns;o0){var t=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+=` `,t.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=t}})}var Fs=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Wo="/".charCodeAt(0),Es=` `.charCodeAt(0),Ds="\r".charCodeAt(0),zs="\f".charCodeAt(0),Or="`".charCodeAt(0),Wr=".".charCodeAt(0),Rs=l.CustomToken,Nn=Rs++,_n=function(n){Fs(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.scanNext=function(t){var r=this.escapedJavaScript();return r!==null?this.finishToken(t,r):this.stream.advanceIfChars([Wr,Wr,Wr])?this.finishToken(t,Nn):n.prototype.scanNext.call(this,t)},e.prototype.comment=function(){return n.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Wo,Wo])?(this.stream.advanceWhileChar(function(t){switch(t){case Es:case Ds:case zs:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var t=this.stream.peekChar();return t===Or?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Or}),this.stream.advanceIfChar(Or)?l.EscapedJavaScript:l.BadEscapedJavaScript):null},e}(ye);var Ms=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Lo=function(n){Ms(e,n);function e(){return n.call(this,new _n)||this}return e.prototype._parseStylesheetStatement=function(t){return t===void 0&&(t=!1),this.peek(l.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||n.prototype._parseStylesheetAtStatement.call(this,t):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var t=this.create(at);if(this.consumeToken(),this.accept(l.ParenthesisL)){if(!this.accept(l.Ident))return this.finish(t,m.IdentifierExpected,[l.SemiColon]);do if(!this.accept(l.Comma))break;while(this.accept(l.Ident));if(!this.accept(l.ParenthesisR))return this.finish(t,m.RightParenthesisExpected,[l.SemiColon])}return!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral())?this.finish(t,m.URIOrStringExpected,[l.SemiColon]):(!this.peek(l.SemiColon)&&!this.peek(l.EOF)&&t.setMedialist(this._parseMediaQueryList()),this.finish(t))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var t=this.createNode(h.Plugin);return this.consumeToken(),t.addChild(this._parseStringLiteral())?this.accept(l.SemiColon)?this.finish(t):this.finish(t,m.SemiColonExpected):this.finish(t,m.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var t=n.prototype._parseMediaQuery.call(this);if(!t){var r=this.create(ln);return r.addChild(this._parseVariable())?this.finish(r):null}return t},e.prototype._parseMediaDeclaration=function(t){return t===void 0&&(t=!1),this._tryParseRuleset(t)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(t)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(t){t===void 0&&(t=[]);var r=this.create(Oe),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(l.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,m.VariableValueExpected,[],t);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(l.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var t=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(l.ParenthesisL)){var r=this.create(ze);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,m.IdentifierExpected,[],[l.ParenthesisR]);if(!this.accept(l.ParenthesisR))return this.restoreAtMark(t),null}else return this.restoreAtMark(t),null;if(!this.peek(l.CurlyL))return null;var i=this.create(B);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(t){if(!t.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(l.BracketL)&&(r=!0),!!t.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var t=this.create(E),r=this.mark();return this.accept(l.BracketL)?(t.addChild(this._parseVariable(!1,!0))||t.addChild(this._parsePropertyIdentifier()))&&this.accept(l.BracketR)||this.accept(l.BracketR)?t:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=!t&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(l.AtKeyword))return null;for(var o=this.create(lt),a=this.mark();this.acceptDelim("@")||!t&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(l.AtKeyword)&&!this.accept(l.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(l.BracketL)&&!this._addLookupChildren(o)?(this.restoreAtMark(a),null):o},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||n.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(l.EscapedJavaScript)||this.peek(l.BadEscapedJavaScript)){var t=this.createNode(h.EscapedValue);return this.consumeToken(),this.finish(t)}if(this.peekDelim("~")){var t=this.createNode(h.EscapedValue);return this.consumeToken(),this.accept(l.String)||this.accept(l.EscapedJavaScript)?this.finish(t):this.finish(t,m.TermExpected)}return null},e.prototype._parseOperator=function(){var t=this._parseGuardOperator();return t||n.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var t=this.createNode(h.Operator);return this.consumeToken(),this.acceptDelim("="),t}else if(this.peekDelim("=")){var t=this.createNode(h.Operator);return this.consumeToken(),this.acceptDelim("<"),t}else if(this.peekDelim("<")){var t=this.createNode(h.Operator);return this.consumeToken(),this.acceptDelim("="),t}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(l.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||n.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||n.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([T.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||n.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||n.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(t){var r=this.create(we),i=!1;for(t&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var o=this.mark();if(r.addChild(this._parseGuard())&&this.peek(l.CurlyL))break;this.restoreAtMark(o),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(h.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(l.Num)||this.accept(l.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var t=this.createNode(h.SelectorInterpolation),r=this._acceptInterpolatedIdent(t);return r?this.finish(t):null},e.prototype._parsePropertyIdentifier=function(t){t===void 0&&(t=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),o=this.create(Q);o.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return t?o.isCustomProperty?a=o.addChild(this._parseIdent()):a=o.addChild(this._parseRegexp(r)):o.isCustomProperty?a=this._acceptInterpolatedIdent(o):a=this._acceptInterpolatedIdent(o,r),a?(!t&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(o)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(l.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(t,r){for(var i=this,o=!1,a=function(){var d=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(d),null):i._parseInterpolation()},s=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(l.Ident)};(s()||t.addChild(this._parseInterpolation()||this.try(a)))&&(o=!0,!this.hasWhitespace()););return o},e.prototype._parseInterpolation=function(){var t=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(h.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(l.CurlyL)?(this.restoreAtMark(t),null):r.addChild(this._parseIdent())?this.accept(l.CurlyR)?this.finish(r):this.finish(r,m.RightCurlyExpected):this.finish(r,m.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var t=this.mark(),r=this.create(ze);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(l.ParenthesisL))return this.restoreAtMark(t),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,m.IdentifierExpected,[],[l.ParenthesisR]);return this.accept(l.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(l.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(t),null)):(this.restoreAtMark(t),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var t;if(this.peekDelim("#")||this.peekDelim(".")){if(t=this.create(Q),this.consumeToken(),this.hasWhitespace()||!t.addChild(this._parseIdent()))return null}else if(this.peek(l.Hash))t=this.create(Q),this.consumeToken();else return null;return t.referenceTypes=[T.Mixin],this.finish(t)},e.prototype._parsePseudo=function(){if(!this.peek(l.Colon))return null;var t=this.mark(),r=this.create(We);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(t),n.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var t=this.mark(),r=this.create(We);return this.consumeToken(),this.hasWhitespace()||!this.accept(l.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(t),null):this._completeExtends(r)},e.prototype._completeExtends=function(t){if(!this.accept(l.ParenthesisL))return this.finish(t,m.LeftParenthesisExpected);var r=t.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(t,m.SelectorExpected);for(;this.accept(l.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(t,m.SelectorExpected);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,m.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(l.AtKeyword))return null;var t=this.mark(),r=this.create(Ke);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(l.ParenthesisL))?(this.restoreAtMark(t),null):this.accept(l.ParenthesisR)?this.finish(r):this.finish(r,m.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(t){t===void 0&&(t=!0);for(var r=this.mark(),i=this.create(Ke),o=this._parseMixinDeclarationIdentifier();o;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(o),o=a;else break}if(!i.setIdentifier(o))return this.restoreAtMark(r),null;var s=!1;if(this.accept(l.ParenthesisL)){if(s=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,m.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(i,m.RightParenthesisExpected);o.referenceTypes=[T.Mixin]}else o.referenceTypes=[T.Mixin,T.Rule];return this.peek(l.BracketL)?t||this._addLookupChildren(i):i.addChild(this._parsePrio()),!s&&!this.peek(l.SemiColon)&&!this.peek(l.CurlyR)&&!this.peek(l.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var t=this.create(me),r=this.mark(),i=this._parseVariable();return i&&(this.accept(l.Colon)?t.setIdentifier(i):this.restoreAtMark(r)),t.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(t):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var t=this.create(_e);if(this.peekKeyword("@rest")){var r=this.create(E);return this.consumeToken(),this.accept(Nn)?(t.setIdentifier(this.finish(r)),this.finish(t)):this.finish(t,m.DotExpected,[],[l.Comma,l.ParenthesisR])}if(this.peek(Nn)){var i=this.create(E);return this.consumeToken(),t.setIdentifier(this.finish(i)),this.finish(t)}var o=!1;return t.setIdentifier(this._parseVariable())&&(this.accept(l.Colon),o=!0),!t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!o?null:this.finish(t)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var t=this.create(zi);if(this.consumeToken(),t.isNegated=this.acceptIdent("not"),!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,m.ConditionExpected);for(;this.acceptIdent("and")||this.accept(l.Comma);)if(!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,m.ConditionExpected);return this.finish(t)},e.prototype._parseGuardCondition=function(){if(!this.peek(l.ParenthesisL))return null;var t=this.create(Ri);return this.consumeToken(),!t.addChild(this._parseExpr()),this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,m.RightParenthesisExpected)},e.prototype._parseFunction=function(){var t=this.mark(),r=this.create(De);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(l.ParenthesisL))return this.restoreAtMark(t),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,m.ExpressionExpected)}return this.accept(l.ParenthesisR)?this.finish(r):this.finish(r,m.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var t=this.create(Q);return t.referenceTypes=[T.Function],this.consumeToken(),this.finish(t)}return n.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var t=this.mark(),r=n.prototype._parseURLArgument.call(this);if(!r||!this.peek(l.ParenthesisR)){this.restoreAtMark(t);var i=this.create(E);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(mt);var Ts=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),R=$(),Uo=function(n){Ts(e,n);function e(t,r){return n.call(this,"@",t,r)||this}return e.prototype.createFunctionProposals=function(t,r,i,o){for(var a=0,s=t;a 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:R("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:R("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:R("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:R("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:R("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:R("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:R("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:R("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:R("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:R("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:R("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:R("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:R("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:R("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:R("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:R("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:R("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:R("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:R("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:R("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:R("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:R("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:R("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:R("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:R("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:R("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:R("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:R("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:R("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:R("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:R("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:R("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:R("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:R("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:R("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:R("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:R("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(gt);function Vo(n,e){var t=Ps(n);return As(t,e)}function Ps(n){function e(u){return n.positionAt(u.offset).line}function t(u){return n.positionAt(u.offset+u.len).line}function r(){switch(n.languageId){case"scss":return new Pn;case"less":return new _n;default:return new ye}}function i(u,f){var g=e(u),C=t(u);return g!==C?{startLine:g,endLine:C,kind:f}:null}var o=[],a=[],s=r();s.ignoreComment=!1,s.setSource(n.getText());for(var d=s.scan(),c=null,p=function(){switch(d.type){case l.CurlyL:case yt:{a.push({line:e(d),type:"brace",isStart:!0});break}case l.CurlyR:{if(a.length!==0){var u=jo(a,"brace");if(!u)break;var f=t(d);u.type==="brace"&&(c&&t(c)!==f&&f--,u.line!==f&&o.push({startLine:u.line,endLine:f,kind:void 0}))}break}case l.Comment:{var g=function(I){return I==="#region"?{line:e(d),type:"comment",isStart:!0}:{line:t(d),type:"comment",isStart:!1}},C=function(I){var P=I.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(P)return g(P[1]);if(n.languageId==="scss"||n.languageId==="less"){var q=I.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(q)return g(q[1])}return null},w=C(d);if(w)if(w.isStart)a.push(w);else{var u=jo(a,"comment");if(!u)break;u.type==="comment"&&u.line!==w.line&&o.push({startLine:u.line,endLine:w.line,kind:"region"})}else{var y=i(d,"comment");y&&o.push(y)}break}}c=d,d=s.scan()};d.type!==l.EOF;)p();return o}function jo(n,e){if(n.length===0)return null;for(var t=n.length-1;t>=0;t--)if(n[t].type===e&&n[t].isStart)return n.splice(t,1)[0];return null}function As(n,e){var t=e&&e.rangeLimit||Number.MAX_VALUE,r=n.sort(function(a,s){var d=a.startLine-s.startLine;return d===0&&(d=a.endLine-s.endLine),d}),i=[],o=-1;return r.forEach(function(a){a.startLine && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:62,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:86,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:53,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:72,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"