1 line
248 KiB
JavaScript
1 line
248 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0b65ffb6"],{db4f:function(e,t,r){r.r(t),r.d(t,"setupMode",(function(){return Cc}));var n,i=r("0b3c"),o=(s.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},s.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},s.prototype._checkIfIdle=function(){this._worker&&12e4<Date.now()-this._lastUsedTime&&this._stopWorker()},s.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=i.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},s.prototype.getLanguageServiceWorker=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return this._getClient().then((function(t){e=t})).then((function(e){return t._worker.withSyncedResources(r)})).then((function(t){return e}))},s);function s(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}(t=n=n||{})[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken",c.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},c.prototype.eos=function(){return this.len<=this.position},c.prototype.pos=function(){return this.position},c.prototype.goBackTo=function(e){this.position=e},c.prototype.goBack=function(e){this.position-=e},c.prototype.advance=function(e){this.position+=e},c.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},c.prototype.peekChar=function(e){return this.source.charCodeAt(this.position+(e=void 0===e?0:e))||0},c.prototype.lookbackChar=function(e){return this.source.charCodeAt(this.position-(e=void 0===e?0:e))||0},c.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},c.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},c.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t};var a=c;function c(e){this.source=e,this.len=e.length,this.position=0}var l="a".charCodeAt(0),h="f".charCodeAt(0),u="z".charCodeAt(0),p="A".charCodeAt(0),d="F".charCodeAt(0),f="Z".charCodeAt(0),m="0".charCodeAt(0),g="9".charCodeAt(0),y="~".charCodeAt(0),v="^".charCodeAt(0),b="=".charCodeAt(0),x="|".charCodeAt(0),C="-".charCodeAt(0),k="_".charCodeAt(0),_="%".charCodeAt(0),w="*".charCodeAt(0),P="(".charCodeAt(0),S=")".charCodeAt(0),E="<".charCodeAt(0),R=">".charCodeAt(0),I="@".charCodeAt(0),A="#".charCodeAt(0),D="$".charCodeAt(0),T="\\".charCodeAt(0),F="/".charCodeAt(0),M="\n".charCodeAt(0),O="\r".charCodeAt(0),V="\f".charCodeAt(0),L='"'.charCodeAt(0),N="'".charCodeAt(0),$=" ".charCodeAt(0),j="\t".charCodeAt(0),B=(t=";".charCodeAt(0),":".charCodeAt(0)),U="{".charCodeAt(0),W="}".charCodeAt(0),K="[".charCodeAt(0),q="]".charCodeAt(0),z=",".charCodeAt(0),H=".".charCodeAt(0),G="!".charCodeAt(0),Q={},J=(Q[t]=n.SemiColon,Q[B]=n.Colon,Q[U]=n.CurlyL,Q[W]=n.CurlyR,Q[q]=n.BracketR,Q[K]=n.BracketL,Q[P]=n.ParenthesisL,Q[S]=n.ParenthesisR,Q[z]=n.Comma,{}),X=(J.em=n.EMS,J.ex=n.EXS,J.px=n.Length,J.cm=n.Length,J.mm=n.Length,J.in=n.Length,J.pt=n.Length,J.pc=n.Length,J.deg=n.Angle,J.rad=n.Angle,J.grad=n.Angle,J.ms=n.Time,J.s=n.Time,J.hz=n.Freq,J.khz=n.Freq,J["%"]=n.Percentage,J.fr=n.Percentage,J.dpi=n.Resolution,J.dpcm=n.Resolution,Z.prototype.setSource=function(e){this.stream=new a(e)},Z.prototype.finishToken=function(e,t,r){return{offset:e,len:this.stream.pos()-e,type:t,text:r||this.stream.substring(e)}},Z.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},Z.prototype.pos=function(){return this.stream.pos()},Z.prototype.goBackTo=function(e){this.stream.goBackTo(e)},Z.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,n.UnquotedString,t.join("")):null},Z.prototype.scan=function(){var e=this.trivia();return null!==e?e:(e=this.stream.pos(),this.stream.eos()?this.finishToken(e,n.EOF):this.scanNext(e))},Z.prototype.scanNext=function(e){var t,r;return this.stream.advanceIfChars([E,G,C,C])?this.finishToken(e,n.CDO):this.stream.advanceIfChars([C,C,R])?this.finishToken(e,n.CDC):this.ident(t=[])?this.finishToken(e,n.Ident,t.join("")):this.stream.advanceIfChar(I)?this._name(t=["@"])?"@charset"===(r=t.join(""))?this.finishToken(e,n.Charset,r):this.finishToken(e,n.AtKeyword,r):this.finishToken(e,n.Delim):this.stream.advanceIfChar(A)?this._name(t=["#"])?this.finishToken(e,n.Hash,t.join("")):this.finishToken(e,n.Delim):this.stream.advanceIfChar(G)?this.finishToken(e,n.Exclamation):this._number()?(r=this.stream.pos(),t=[this.stream.substring(e,r)],this.stream.advanceIfChar(_)?this.finishToken(e,n.Percentage):this.ident(t)?(r=this.stream.substring(r).toLowerCase(),void 0!==(r=J[r])?this.finishToken(e,r,t.join("")):this.finishToken(e,n.Dimension,t.join(""))):this.finishToken(e,n.Num)):null!==(r=this._string(t=[]))?this.finishToken(e,r,t.join("")):void 0!==(r=Q[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===y&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,n.Includes)):this.stream.peekChar(0)===x&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,n.Dashmatch)):this.stream.peekChar(0)===w&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,n.SubstringOperator)):this.stream.peekChar(0)===v&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,n.PrefixOperator)):this.stream.peekChar(0)===D&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,n.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,n.Delim))},Z.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,n.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,n.Comment)}}},Z.prototype.comment=function(){var e,t;return!!this.stream.advanceIfChars([F,w])&&(t=e=!1,this.stream.advanceWhileChar((function(r){return t&&r===F?!(e=!0):(t=r===w,!0)})),e&&this.stream.advance(1),!0)},Z.prototype._number=function(){var e,t=0;return this.stream.peekChar()===H&&(t=1),e=this.stream.peekChar(t),m<=e&&e<=g&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return m<=e&&e<=g||0===t&&e===H})),!0)},Z.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case O:case V:case M:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===O&&this.stream.advanceIfChar(M)&&e.push("\n"),!0}return!1},Z.prototype._escape=function(e,t){if((r=this.stream.peekChar())===T){this.stream.advance(1);for(var r=this.stream.peekChar(),n=0;n<6&&(m<=r&&r<=g||l<=r&&r<=h||p<=r&&r<=d);)this.stream.advance(1),r=this.stream.peekChar(),n++;if(0<n){try{var i=parseInt(this.stream.substring(this.stream.pos()-n),16);i&&e.push(String.fromCharCode(i))}catch(e){}return r===$||r===j?this.stream.advance(1):this._newline([]),!0}if(r!==O&&r!==V&&r!==M)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(t)return this._newline(e)}return!1},Z.prototype._stringChar=function(e,t){var r=this.stream.peekChar();return 0!==r&&r!==e&&r!==T&&r!==O&&r!==V&&r!==M&&(this.stream.advance(1),t.push(String.fromCharCode(r)),!0)},Z.prototype._string=function(e){if(this.stream.peekChar()!==N&&this.stream.peekChar()!==L)return null;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)),n.String):n.BadString},Z.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==T&&t!==N&&t!==L&&t!==P&&t!==S&&t!==$&&t!==j&&t!==M&&t!==V&&t!==O&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},Z.prototype._whitespace=function(){return 0<this.stream.advanceWhileChar((function(e){return e===$||e===j||e===M||e===V||e===O}))},Z.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},Z.prototype.ident=function(e){var t=this.stream.pos();if(this._minus(e)&&this._minus(e),this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},Z.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===k||l<=t&&t<=u||p<=t&&t<=f||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._minus=function(e){var t=this.stream.peekChar();return t===C&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===k||t===C||l<=t&&t<=u||p<=t&&t<=f||m<=t&&t<=g||128<=t&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},Z);function Z(){this.stream=new a(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}function Y(e,t){if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}function ee(e,t){var r=e.length-t.length;return 0<r?e.lastIndexOf(t)===r:0==r&&e===t}function te(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}re=function(e,t){return(re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var re,ne,ie;t=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}re(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};function oe(e,t){var r=null;return!e||t<e.offset||t>e.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&((!r||e.length<=r.length)&&(r=e),!0)})),r)}function se(e,t){for(var r=oe(e,t),n=[];r;)n.unshift(r),r=r.parent;return n}(B=ne=ne||{})[B.Undefined=0]="Undefined",B[B.Identifier=1]="Identifier",B[B.Stylesheet=2]="Stylesheet",B[B.Ruleset=3]="Ruleset",B[B.Selector=4]="Selector",B[B.SimpleSelector=5]="SimpleSelector",B[B.SelectorInterpolation=6]="SelectorInterpolation",B[B.SelectorCombinator=7]="SelectorCombinator",B[B.SelectorCombinatorParent=8]="SelectorCombinatorParent",B[B.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",B[B.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",B[B.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",B[B.Page=12]="Page",B[B.PageBoxMarginBox=13]="PageBoxMarginBox",B[B.ClassSelector=14]="ClassSelector",B[B.IdentifierSelector=15]="IdentifierSelector",B[B.ElementNameSelector=16]="ElementNameSelector",B[B.PseudoSelector=17]="PseudoSelector",B[B.AttributeSelector=18]="AttributeSelector",B[B.Declaration=19]="Declaration",B[B.Declarations=20]="Declarations",B[B.Property=21]="Property",B[B.Expression=22]="Expression",B[B.BinaryExpression=23]="BinaryExpression",B[B.Term=24]="Term",B[B.Operator=25]="Operator",B[B.Value=26]="Value",B[B.StringLiteral=27]="StringLiteral",B[B.URILiteral=28]="URILiteral",B[B.EscapedValue=29]="EscapedValue",B[B.Function=30]="Function",B[B.NumericValue=31]="NumericValue",B[B.HexColorValue=32]="HexColorValue",B[B.MixinDeclaration=33]="MixinDeclaration",B[B.MixinReference=34]="MixinReference",B[B.VariableName=35]="VariableName",B[B.VariableDeclaration=36]="VariableDeclaration",B[B.Prio=37]="Prio",B[B.Interpolation=38]="Interpolation",B[B.NestedProperties=39]="NestedProperties",B[B.ExtendsReference=40]="ExtendsReference",B[B.SelectorPlaceholder=41]="SelectorPlaceholder",B[B.Debug=42]="Debug",B[B.If=43]="If",B[B.Else=44]="Else",B[B.For=45]="For",B[B.Each=46]="Each",B[B.While=47]="While",B[B.MixinContentReference=48]="MixinContentReference",B[B.MixinContentDeclaration=49]="MixinContentDeclaration",B[B.Media=50]="Media",B[B.Keyframe=51]="Keyframe",B[B.FontFace=52]="FontFace",B[B.Import=53]="Import",B[B.Namespace=54]="Namespace",B[B.Invocation=55]="Invocation",B[B.FunctionDeclaration=56]="FunctionDeclaration",B[B.ReturnStatement=57]="ReturnStatement",B[B.MediaQuery=58]="MediaQuery",B[B.FunctionParameter=59]="FunctionParameter",B[B.FunctionArgument=60]="FunctionArgument",B[B.KeyframeSelector=61]="KeyframeSelector",B[B.ViewPort=62]="ViewPort",B[B.Document=63]="Document",B[B.AtApplyRule=64]="AtApplyRule",B[B.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",B[B.CustomPropertySet=66]="CustomPropertySet",B[B.ListEntry=67]="ListEntry",B[B.Supports=68]="Supports",B[B.SupportsCondition=69]="SupportsCondition",B[B.NamespacePrefix=70]="NamespacePrefix",B[B.GridLine=71]="GridLine",B[B.Plugin=72]="Plugin",B[B.UnknownAtRule=73]="UnknownAtRule",B[B.Use=74]="Use",B[B.ModuleConfiguration=75]="ModuleConfiguration",B[B.Forward=76]="Forward",B[B.ForwardVisibility=77]="ForwardVisibility",B[B.Module=78]="Module",(U=ie=ie||{})[U.Mixin=0]="Mixin",U[U.Rule=1]="Rule",U[U.Variable=2]="Variable",U[U.Function=3]="Function",U[U.Keyframe=4]="Keyframe",U[U.Unknown=5]="Unknown",U[U.Module=6]="Module",U[U.Forward=7]="Forward",U[U.ForwardVisibility=8]="ForwardVisibility",Object.defineProperty(ce.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"type",{get:function(){return this.nodeType||ne.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),ce.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},ce.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},ce.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},ce.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},ce.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},ce.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;t<r.length;t++)r[t].accept(e)},ce.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},ce.prototype.adoptChild=function(e,t){void 0===t&&(t=-1),e.parent&&e.parent.children&&0<=(r=e.parent.children.indexOf(e))&&e.parent.children.splice(r,1);var r=(r=(e.parent=this).children)||(this.children=[]);return-1!==t?r.splice(t,0,e):r.push(e),e},ce.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},ce.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},ce.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},ce.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},ce.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&0<this.issues.length)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},ce.prototype.setNode=function(e,t,r){return void 0===r&&(r=-1),!!t&&(t.attachTo(this,r),this[e]=t,!0)},ce.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},ce.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset),e=e.end,(e>this.end||-1===this.length)&&(this.length=e-this.offset)},ce.prototype.hasChildren=function(){return!!this.children&&0<this.children.length},ce.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},ce.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},ce.prototype.addChildren=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addChild(n)}},ce.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t,r=this.children.length-1;0<=r;r--)if((t=this.children[r]).offset<=e)return t;return null},ce.prototype.findChildAtOffset=function(e,t){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?t&&r.findChildAtOffset(e,!0)||r:null},ce.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},ce.prototype.getParent=function(){for(var e=this.parent;e instanceof he;)e=e.parent;return e},ce.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},ce.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this;r&&!e.some((function(e){return r.type===e}));)r=r.parent;return r},ce.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},ce.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null};var ae=ce;function ce(e,t,r){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,r&&(this.nodeType=r)}t(ue,le=ae);var le,he=ue;function ue(e,t){void 0===t&&(t=-1);var r=le.call(this,-1,-1)||this;return r.attachTo(e,t),r.offset=-1,r.length=-1,r}t(fe,pe=ae),Object.defineProperty(fe.prototype,"type",{get:function(){return ne.Identifier},enumerable:!1,configurable:!0}),fe.prototype.containsInterpolation=function(){return this.hasChildren()};var pe,de=fe;function fe(e,t){return e=pe.call(this,e,t)||this,e.isCustomProperty=!1,e}t(ye,me=ae),Object.defineProperty(ye.prototype,"type",{get:function(){return ne.Stylesheet},enumerable:!1,configurable:!0});var me,ge=ye;function ye(e,t){return me.call(this,e,t)||this}t(xe,ve=ae),Object.defineProperty(xe.prototype,"type",{get:function(){return ne.Declarations},enumerable:!1,configurable:!0});var ve,be=xe;function xe(e,t){return ve.call(this,e,t)||this}t(_e,Ce=ae),_e.prototype.getDeclarations=function(){return this.declarations},_e.prototype.setDeclarations=function(e){return this.setNode("declarations",e)};var Ce,ke=_e;function _e(e,t){return Ce.call(this,e,t)||this}t(Se,we=ke),Object.defineProperty(Se.prototype,"type",{get:function(){return ne.Ruleset},enumerable:!1,configurable:!0}),Se.prototype.getSelectors=function(){return this.selectors||(this.selectors=new he(this)),this.selectors},Se.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(ne.Declarations)};var we,Pe=Se;function Se(e,t){return we.call(this,e,t)||this}t(Ie,Ee=ae),Object.defineProperty(Ie.prototype,"type",{get:function(){return ne.Selector},enumerable:!1,configurable:!0});var Ee,Re=Ie;function Ie(e,t){return Ee.call(this,e,t)||this}t(Fe,Ae=ae),Object.defineProperty(Fe.prototype,"type",{get:function(){return ne.SimpleSelector},enumerable:!1,configurable:!0});var Ae,De,Te=Fe;function Fe(e,t){return Ae.call(this,e,t)||this}function Me(e,t){return De.call(this,e,t)||this}t(Me,De=ae),Object.defineProperty(Me.prototype,"type",{get:function(){return ne.AtApplyRule},enumerable:!1,configurable:!0}),Me.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Me.prototype.getIdentifier=function(){return this.identifier},Me.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t(Le,Oe=ae);var Oe,Ve=Le;function Le(e,t){return Oe.call(this,e,t)||this}t(je,Ne=ke),Object.defineProperty(je.prototype,"type",{get:function(){return ne.CustomPropertySet},enumerable:!1,configurable:!0});var Ne,$e=je;function je(e,t){return Ne.call(this,e,t)||this}t(We,Be=Ve),Object.defineProperty(We.prototype,"type",{get:function(){return ne.Declaration},enumerable:!1,configurable:!0}),We.prototype.setProperty=function(e){return this.setNode("property",e)},We.prototype.getProperty=function(){return this.property},We.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof be&&this.parent.getParent()instanceof Tt){var t=this.parent.getParent().getParent();if(t instanceof We)return t.getFullPropertyName()+e}return e},We.prototype.getNonPrefixedPropertyName=function(){var e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){var t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e},We.prototype.setValue=function(e){return this.setNode("value",e)},We.prototype.getValue=function(){return this.value},We.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},We.prototype.getNestedProperties=function(){return this.nestedProperties};var Be,Ue=We;function We(e,t){return e=Be.call(this,e,t)||this,e.property=null,e}t(ze,Ke=Ue),Object.defineProperty(ze.prototype,"type",{get:function(){return ne.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),ze.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},ze.prototype.getPropertySet=function(){return this.propertySet};var Ke,qe=ze;function ze(e,t){return Ke.call(this,e,t)||this}t(Qe,He=ae),Object.defineProperty(Qe.prototype,"type",{get:function(){return ne.Property},enumerable:!1,configurable:!0}),Qe.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},Qe.prototype.getIdentifier=function(){return this.identifier},Qe.prototype.getName=function(){return e=this.getText(),(t=(t=/[_\+]+$/).exec(e))&&t[0].length?e.substr(0,e.length-t[0].length):e;var e,t},Qe.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty};var He,Ge=Qe;function Qe(e,t){return He.call(this,e,t)||this}t(Xe,Je=ae),Object.defineProperty(Xe.prototype,"type",{get:function(){return ne.Invocation},enumerable:!1,configurable:!0}),Xe.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments};var Je;W=Xe;function Xe(e,t){return Je.call(this,e,t)||this}t(et,Ze=W),Object.defineProperty(et.prototype,"type",{get:function(){return ne.Function},enumerable:!1,configurable:!0}),et.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},et.prototype.getIdentifier=function(){return this.identifier},et.prototype.getName=function(){return this.identifier?this.identifier.getText():""};var Ze,Ye=et;function et(e,t){return Ze.call(this,e,t)||this}t(nt,tt=ae),Object.defineProperty(nt.prototype,"type",{get:function(){return ne.FunctionParameter},enumerable:!1,configurable:!0}),nt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},nt.prototype.getIdentifier=function(){return this.identifier},nt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},nt.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},nt.prototype.getDefaultValue=function(){return this.defaultValue};var tt,rt=nt;function nt(e,t){return tt.call(this,e,t)||this}t(st,it=ae),Object.defineProperty(st.prototype,"type",{get:function(){return ne.FunctionArgument},enumerable:!1,configurable:!0}),st.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},st.prototype.getIdentifier=function(){return this.identifier},st.prototype.getName=function(){return this.identifier?this.identifier.getText():""},st.prototype.setValue=function(e){return this.setNode("value",e,0)},st.prototype.getValue=function(){return this.value};var it,ot=st;function st(e,t){return it.call(this,e,t)||this}t(lt,at=ke),Object.defineProperty(lt.prototype,"type",{get:function(){return ne.If},enumerable:!1,configurable:!0}),lt.prototype.setExpression=function(e){return this.setNode("expression",e,0)},lt.prototype.setElseClause=function(e){return this.setNode("elseClause",e)};var at,ct=lt;function lt(e,t){return at.call(this,e,t)||this}t(pt,ht=ke),Object.defineProperty(pt.prototype,"type",{get:function(){return ne.For},enumerable:!1,configurable:!0}),pt.prototype.setVariable=function(e){return this.setNode("variable",e,0)};var ht,ut=pt;function pt(e,t){return ht.call(this,e,t)||this}t(mt,dt=ke),Object.defineProperty(mt.prototype,"type",{get:function(){return ne.Each},enumerable:!1,configurable:!0}),mt.prototype.getVariables=function(){return this.variables||(this.variables=new he(this)),this.variables};var dt,ft=mt;function mt(e,t){return dt.call(this,e,t)||this}t(vt,gt=ke),Object.defineProperty(vt.prototype,"type",{get:function(){return ne.While},enumerable:!1,configurable:!0});var gt,yt=vt;function vt(e,t){return gt.call(this,e,t)||this}t(Ct,bt=ke),Object.defineProperty(Ct.prototype,"type",{get:function(){return ne.Else},enumerable:!1,configurable:!0});var bt,xt=Ct;function Ct(e,t){return bt.call(this,e,t)||this}t(wt,kt=ke),Object.defineProperty(wt.prototype,"type",{get:function(){return ne.FunctionDeclaration},enumerable:!1,configurable:!0}),wt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},wt.prototype.getIdentifier=function(){return this.identifier},wt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},wt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var kt,_t=wt;function wt(e,t){return kt.call(this,e,t)||this}t(Et,Pt=ke),Object.defineProperty(Et.prototype,"type",{get:function(){return ne.ViewPort},enumerable:!1,configurable:!0});var Pt,St=Et;function Et(e,t){return Pt.call(this,e,t)||this}t(At,Rt=ke),Object.defineProperty(At.prototype,"type",{get:function(){return ne.FontFace},enumerable:!1,configurable:!0});var Rt,It=At;function At(e,t){return Rt.call(this,e,t)||this}t(Ft,Dt=ke),Object.defineProperty(Ft.prototype,"type",{get:function(){return ne.NestedProperties},enumerable:!1,configurable:!0});var Dt,Tt=Ft;function Ft(e,t){return Dt.call(this,e,t)||this}t(Vt,Mt=ke),Object.defineProperty(Vt.prototype,"type",{get:function(){return ne.Keyframe},enumerable:!1,configurable:!0}),Vt.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},Vt.prototype.getKeyword=function(){return this.keyword},Vt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Vt.prototype.getIdentifier=function(){return this.identifier},Vt.prototype.getName=function(){return this.identifier?this.identifier.getText():""};var Mt,Ot=Vt;function Vt(e,t){return Mt.call(this,e,t)||this}t($t,Lt=ke),Object.defineProperty($t.prototype,"type",{get:function(){return ne.KeyframeSelector},enumerable:!1,configurable:!0});var Lt,Nt=$t;function $t(e,t){return Lt.call(this,e,t)||this}t(Ut,jt=ae),Object.defineProperty(Ut.prototype,"type",{get:function(){return ne.Import},enumerable:!1,configurable:!0}),Ut.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),!0)};var jt,Bt=Ut;function Ut(e,t){return jt.call(this,e,t)||this}t(qt,Wt=ae),Object.defineProperty(qt.prototype,"type",{get:function(){return ne.Use},enumerable:!1,configurable:!0}),qt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters},qt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},qt.prototype.getIdentifier=function(){return this.identifier};var Wt,Kt=qt;function qt(){return null!==Wt&&Wt.apply(this,arguments)||this}t(Gt,zt=ae),Object.defineProperty(Gt.prototype,"type",{get:function(){return ne.ModuleConfiguration},enumerable:!1,configurable:!0}),Gt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Gt.prototype.getIdentifier=function(){return this.identifier},Gt.prototype.getName=function(){return this.identifier?this.identifier.getText():""},Gt.prototype.setValue=function(e){return this.setNode("value",e,0)},Gt.prototype.getValue=function(){return this.value};var zt,Ht=Gt;function Gt(){return null!==zt&&zt.apply(this,arguments)||this}t(Xt,Qt=ae),Object.defineProperty(Xt.prototype,"type",{get:function(){return ne.Forward},enumerable:!1,configurable:!0}),Xt.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Xt.prototype.getIdentifier=function(){return this.identifier},Xt.prototype.getMembers=function(){return this.members||(this.members=new he(this)),this.members},Xt.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var Qt,Jt=Xt;function Xt(){return null!==Qt&&Qt.apply(this,arguments)||this}t(er,Zt=ae),Object.defineProperty(er.prototype,"type",{get:function(){return ne.ForwardVisibility},enumerable:!1,configurable:!0}),er.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},er.prototype.getIdentifier=function(){return this.identifier};var Zt,Yt=er;function er(){return null!==Zt&&Zt.apply(this,arguments)||this}t(nr,tr=ae),Object.defineProperty(nr.prototype,"type",{get:function(){return ne.Namespace},enumerable:!1,configurable:!0});var tr,rr=nr;function nr(e,t){return tr.call(this,e,t)||this}t(sr,ir=ke),Object.defineProperty(sr.prototype,"type",{get:function(){return ne.Media},enumerable:!1,configurable:!0});var ir,or=sr;function sr(e,t){return ir.call(this,e,t)||this}t(lr,ar=ke),Object.defineProperty(lr.prototype,"type",{get:function(){return ne.Supports},enumerable:!1,configurable:!0});var ar,cr=lr;function lr(e,t){return ar.call(this,e,t)||this}t(pr,hr=ke),Object.defineProperty(pr.prototype,"type",{get:function(){return ne.Document},enumerable:!1,configurable:!0});var hr,ur=pr;function pr(e,t){return hr.call(this,e,t)||this}t(mr,dr=ae),mr.prototype.getMediums=function(){return this.mediums||(this.mediums=new he(this)),this.mediums};var dr,fr=mr;function mr(e,t){return dr.call(this,e,t)||this}t(vr,gr=ae),Object.defineProperty(vr.prototype,"type",{get:function(){return ne.MediaQuery},enumerable:!1,configurable:!0});var gr,yr=vr;function vr(e,t){return gr.call(this,e,t)||this}t(Cr,br=ae),Object.defineProperty(Cr.prototype,"type",{get:function(){return ne.SupportsCondition},enumerable:!1,configurable:!0});var br,xr=Cr;function Cr(e,t){return br.call(this,e,t)||this}t(wr,kr=ke),Object.defineProperty(wr.prototype,"type",{get:function(){return ne.Page},enumerable:!1,configurable:!0});var kr,_r=wr;function wr(e,t){return kr.call(this,e,t)||this}t(Er,Pr=ke),Object.defineProperty(Er.prototype,"type",{get:function(){return ne.PageBoxMarginBox},enumerable:!1,configurable:!0});var Pr,Sr=Er;function Er(e,t){return Pr.call(this,e,t)||this}t(Ar,Rr=ae),Object.defineProperty(Ar.prototype,"type",{get:function(){return ne.Expression},enumerable:!1,configurable:!0});var Rr,Ir=Ar;function Ar(e,t){return Rr.call(this,e,t)||this}t(Fr,Dr=ae),Object.defineProperty(Fr.prototype,"type",{get:function(){return ne.BinaryExpression},enumerable:!1,configurable:!0}),Fr.prototype.setLeft=function(e){return this.setNode("left",e)},Fr.prototype.getLeft=function(){return this.left},Fr.prototype.setRight=function(e){return this.setNode("right",e)},Fr.prototype.getRight=function(){return this.right},Fr.prototype.setOperator=function(e){return this.setNode("operator",e)},Fr.prototype.getOperator=function(){return this.operator};var Dr,Tr=Fr;function Fr(e,t){return Dr.call(this,e,t)||this}t(Vr,Mr=ae),Object.defineProperty(Vr.prototype,"type",{get:function(){return ne.Term},enumerable:!1,configurable:!0}),Vr.prototype.setOperator=function(e){return this.setNode("operator",e)},Vr.prototype.getOperator=function(){return this.operator},Vr.prototype.setExpression=function(e){return this.setNode("expression",e)},Vr.prototype.getExpression=function(){return this.expression};var Mr,Or=Vr;function Vr(e,t){return Mr.call(this,e,t)||this}t(jr,Lr=ae),Object.defineProperty(jr.prototype,"type",{get:function(){return ne.AttributeSelector},enumerable:!1,configurable:!0}),jr.prototype.setNamespacePrefix=function(e){return this.setNode("namespacePrefix",e)},jr.prototype.getNamespacePrefix=function(){return this.namespacePrefix},jr.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},jr.prototype.getIdentifier=function(){return this.identifier},jr.prototype.setOperator=function(e){return this.setNode("operator",e)},jr.prototype.getOperator=function(){return this.operator},jr.prototype.setValue=function(e){return this.setNode("value",e)},jr.prototype.getValue=function(){return this.value};var Lr,Nr,$r=jr;function jr(e,t){return Lr.call(this,e,t)||this}function Br(e,t){return Nr.call(this,e,t)||this}t(Br,Nr=ae),Object.defineProperty(Br.prototype,"type",{get:function(){return ne.Operator},enumerable:!1,configurable:!0}),t(Kr,Ur=ae),Object.defineProperty(Kr.prototype,"type",{get:function(){return ne.HexColorValue},enumerable:!1,configurable:!0});var Ur,Wr=Kr;function Kr(e,t){return Ur.call(this,e,t)||this}var qr,zr=".".charCodeAt(0),Hr="0".charCodeAt(0),Gr="9".charCodeAt(0),Qr=(t(Jr,qr=ae),Object.defineProperty(Jr.prototype,"type",{get:function(){return ne.NumericValue},enumerable:!1,configurable:!0}),Jr.prototype.getValue=function(){for(var e,t=this.getText(),r=0,n=0,i=t.length;n<i&&(e=t.charCodeAt(n),Hr<=e&&e<=Gr||e===zr);n++)r+=1;return{value:t.substring(0,r),unit:r<t.length?t.substring(r):void 0}},Jr);function Jr(e,t){return qr.call(this,e,t)||this}t(Yr,Xr=Ve),Object.defineProperty(Yr.prototype,"type",{get:function(){return ne.VariableDeclaration},enumerable:!1,configurable:!0}),Yr.prototype.setVariable=function(e){return!!e&&(e.attachTo(this),this.variable=e,!0)},Yr.prototype.getVariable=function(){return this.variable},Yr.prototype.getName=function(){return this.variable?this.variable.getName():""},Yr.prototype.setValue=function(e){return!!e&&(e.attachTo(this),this.value=e,!0)},Yr.prototype.getValue=function(){return this.value};var Xr,Zr=Yr;function Yr(e,t){return e=Xr.call(this,e,t)||this,e.variable=null,e.value=null,e.needsSemicolon=!0,e}t(rn,en=ae),Object.defineProperty(rn.prototype,"type",{get:function(){return ne.Interpolation},enumerable:!1,configurable:!0});var en,tn=rn;function rn(e,t){return en.call(this,e,t)||this}t(sn,nn=ae),Object.defineProperty(sn.prototype,"type",{get:function(){return ne.VariableName},enumerable:!1,configurable:!0}),sn.prototype.getName=function(){return this.getText()};var nn,on=sn;function sn(e,t){return nn.call(this,e,t)||this}t(ln,an=ae),Object.defineProperty(ln.prototype,"type",{get:function(){return ne.ExtendsReference},enumerable:!1,configurable:!0}),ln.prototype.getSelectors=function(){return this.selectors||(this.selectors=new he(this)),this.selectors};var an,cn=ln;function ln(e,t){return an.call(this,e,t)||this}t(pn,hn=ae),Object.defineProperty(pn.prototype,"type",{get:function(){return ne.MixinContentReference},enumerable:!1,configurable:!0}),pn.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments};var hn,un=pn;function pn(e,t){return hn.call(this,e,t)||this}t(mn,dn=ke),Object.defineProperty(mn.prototype,"type",{get:function(){return ne.MixinContentReference},enumerable:!1,configurable:!0}),mn.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters};var dn,fn=mn;function mn(e,t){return dn.call(this,e,t)||this}t(vn,gn=ae),Object.defineProperty(vn.prototype,"type",{get:function(){return ne.MixinReference},enumerable:!1,configurable:!0}),vn.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new he(this)),this.namespaces},vn.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},vn.prototype.getIdentifier=function(){return this.identifier},vn.prototype.getName=function(){return this.identifier?this.identifier.getText():""},vn.prototype.getArguments=function(){return this.arguments||(this.arguments=new he(this)),this.arguments},vn.prototype.setContent=function(e){return this.setNode("content",e)},vn.prototype.getContent=function(){return this.content};var gn,yn=vn;function vn(e,t){return gn.call(this,e,t)||this}t(Cn,bn=ke),Object.defineProperty(Cn.prototype,"type",{get:function(){return ne.MixinDeclaration},enumerable:!1,configurable:!0}),Cn.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Cn.prototype.getIdentifier=function(){return this.identifier},Cn.prototype.getName=function(){return this.identifier?this.identifier.getText():""},Cn.prototype.getParameters=function(){return this.parameters||(this.parameters=new he(this)),this.parameters},Cn.prototype.setGuard=function(e){return e&&(e.attachTo(this),this.guard=e),!1};var bn,xn=Cn;function Cn(e,t){return bn.call(this,e,t)||this}t(wn,kn=ke),Object.defineProperty(wn.prototype,"type",{get:function(){return ne.UnknownAtRule},enumerable:!1,configurable:!0}),wn.prototype.setAtRuleName=function(e){this.atRuleName=e},wn.prototype.getAtRuleName=function(){return this.atRuleName};var kn,_n=wn;function wn(e,t){return kn.call(this,e,t)||this}t(En,Pn=ae),Object.defineProperty(En.prototype,"type",{get:function(){return ne.ListEntry},enumerable:!1,configurable:!0}),En.prototype.setKey=function(e){return this.setNode("key",e,0)},En.prototype.setValue=function(e){return this.setNode("value",e,1)};var Pn,Sn=En;function En(){return null!==Pn&&Pn.apply(this,arguments)||this}t(An,Rn=ae),An.prototype.getConditions=function(){return this.conditions||(this.conditions=new he(this)),this.conditions};var Rn,In=An;function An(){return null!==Rn&&Rn.apply(this,arguments)||this}t(Fn,Dn=ae),Fn.prototype.setVariable=function(e){return this.setNode("variable",e)};var Dn,Tn=Fn;function Fn(){return null!==Dn&&Dn.apply(this,arguments)||this}t(Ln,Mn=ae),Object.defineProperty(Ln.prototype,"type",{get:function(){return ne.Module},enumerable:!1,configurable:!0}),Ln.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},Ln.prototype.getIdentifier=function(){return this.identifier};var Mn,On,Vn=Ln;function Ln(){return null!==Mn&&Mn.apply(this,arguments)||this}(q=On=On||{})[q.Ignore=1]="Ignore",q[q.Warning=2]="Warning",q[q.Error=4]="Error",$n.prototype.getRule=function(){return this.rule},$n.prototype.getLevel=function(){return this.level},$n.prototype.getOffset=function(){return this.offset},$n.prototype.getLength=function(){return this.length},$n.prototype.getNode=function(){return this.node},$n.prototype.getMessage=function(){return this.message};var Nn=$n;function $n(e,t,r,n,i,o){void 0===i&&(i=e.offset),void 0===o&&(o=e.length),this.node=e,this.rule=t,this.level=r,this.message=n||t.message,this.offset=i,this.length=o}jn.entries=function(e){var t=new jn;return e.acceptVisitor(t),t.entries},jn.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0};function jn(){this.entries=[]}function Bn(e,t){for(var r,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t=t,0===(r=n).length?t:t.replace(/\{(\d+)\}/g,(function(e,t){return t=t[0],void 0!==r[t]?r[t]:e}))}K=Bn,z=function(e,t){this.id=e,this.message=t};var Un={NumberExpected:new z("css-numberexpected",K("expected.number","number expected")),ConditionExpected:new z("css-conditionexpected",K("expected.condt","condition expected")),RuleOrSelectorExpected:new z("css-ruleorselectorexpected",K("expected.ruleorselector","at-rule or selector expected")),DotExpected:new z("css-dotexpected",K("expected.dot","dot expected")),ColonExpected:new z("css-colonexpected",K("expected.colon","colon expected")),SemiColonExpected:new z("css-semicolonexpected",K("expected.semicolon","semi-colon expected")),TermExpected:new z("css-termexpected",K("expected.term","term expected")),ExpressionExpected:new z("css-expressionexpected",K("expected.expression","expression expected")),OperatorExpected:new z("css-operatorexpected",K("expected.operator","operator expected")),IdentifierExpected:new z("css-identifierexpected",K("expected.ident","identifier expected")),PercentageExpected:new z("css-percentageexpected",K("expected.percentage","percentage expected")),URIOrStringExpected:new z("css-uriorstringexpected",K("expected.uriorstring","uri or string expected")),URIExpected:new z("css-uriexpected",K("expected.uri","URI expected")),VariableNameExpected:new z("css-varnameexpected",K("expected.varname","variable name expected")),VariableValueExpected:new z("css-varvalueexpected",K("expected.varvalue","variable value expected")),PropertyValueExpected:new z("css-propertyvalueexpected",K("expected.propvalue","property value expected")),LeftCurlyExpected:new z("css-lcurlyexpected",K("expected.lcurly","{ expected")),RightCurlyExpected:new z("css-rcurlyexpected",K("expected.rcurly","} expected")),LeftSquareBracketExpected:new z("css-rbracketexpected",K("expected.lsquare","[ expected")),RightSquareBracketExpected:new z("css-lbracketexpected",K("expected.rsquare","] expected")),LeftParenthesisExpected:new z("css-lparentexpected",K("expected.lparen","( expected")),RightParenthesisExpected:new z("css-rparentexpected",K("expected.rparent",") expected")),CommaExpected:new z("css-commaexpected",K("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new z("css-pagedirordeclexpected",K("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new z("css-unknownatrule",K("unknown.atrule","at-rule unknown")),UnknownKeyword:new z("css-unknownkeyword",K("unknown.keyword","unknown keyword")),SelectorExpected:new z("css-selectorexpected",K("expected.selector","selector expected")),StringLiteralExpected:new z("css-stringliteralexpected",K("expected.stringliteral","string literal expected")),WhitespaceExpected:new z("css-whitespaceexpected",K("expected.whitespace","whitespace expected")),MediaQueryExpected:new z("css-mediaqueryexpected",K("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new z("css-idorwildcardexpected",K("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new z("css-wildcardexpected",K("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new z("css-idorvarexpected",K("expected.idorvar","identifier or variable expected"))},Wn={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Kn(e){switch(e){case"experimental":return"⚠️ Property is experimental. Be cautious when using it.️\n\n";case"nonstandard":return"🚨️ Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"🚨️️️ Property is obsolete. Avoid using it.\n\n";default:return""}}function qn(e,t,r){if(t=t?{kind:"markdown",value:((e,t)=>{var r,n;return e.description&&""!==e.description?(r="",!1!==(null==t?void 0:t.documentation)&&(e.status&&(r+=Kn(e.status)),n="string"==typeof e.description?e.description:e.description.value,r+=zn(n),(n=Hn(e.browsers))&&(r+="\n\n("+zn(n)+")"),"syntax"in e)&&e.syntax&&(r+="\n\nSyntax: "+zn(e.syntax)),e.references&&0<e.references.length&&!1!==(null==t?void 0:t.references)&&(0<r.length&&(r+="\n\n"),r+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | ")),r):""})(e,r)}:{kind:"plaintext",value:((e,t)=>{var r,n;return e.description&&""!==e.description?"string"!=typeof e.description?e.description.value:(r="",!1!==(null==t?void 0:t.documentation)&&(e.status&&(r+=Kn(e.status)),r+=e.description,(n=Hn(e.browsers))&&(r+="\n("+n+")"),"syntax"in e)&&(r+="\n\nSyntax: "+e.syntax),e.references&&0<e.references.length&&!1!==(null==t?void 0:t.references)&&(0<r.length&&(r+="\n\n"),r+=e.references.map((function(e){return e.name+": "+e.url})).join(" | ")),r):""})(e,r)},""!==t.value)return t}function zn(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"<").replace(/>/g,">")}function Hn(e){return 0===(e=void 0===e?[]:e).length?null:e.map((function(e){var t="",r=(e=e.match(/([A-Z]+)(\d+)?/),e[1]);e=e[2];return r in Wn&&(t+=Wn[r]),e&&(t+=" "+e),t})).join(", ")}B=Bn;var Gn=[{func:"rgb($red, $green, $blue)",desc:B("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:B("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:B("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:B("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Qn={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"},Jn={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 Xn(e,t){if(e=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/),e&&(e[2]&&(t=100),e=parseFloat(e[1])/t,0<=e&&e<=1))return e;throw new Error}function Zn(e){return e=e.getName(),!!e&&/^(rgb|rgba|hsl|hsla)$/gi.test(e)}var Yn=48,ei=57,ti=65,ri=97,ni=102;function ii(e){return e<Yn?0:e<=ei?e-Yn:(e<ri&&(e+=ri-ti),ri<=e&&e<=ni?e-ri+10:0)}function oi(e){if("#"===e[0])switch(e.length){case 4:return{red:17*ii(e.charCodeAt(1))/255,green:17*ii(e.charCodeAt(2))/255,blue:17*ii(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*ii(e.charCodeAt(1))/255,green:17*ii(e.charCodeAt(2))/255,blue:17*ii(e.charCodeAt(3))/255,alpha:17*ii(e.charCodeAt(4))/255};case 7:return{red:(16*ii(e.charCodeAt(1))+ii(e.charCodeAt(2)))/255,green:(16*ii(e.charCodeAt(3))+ii(e.charCodeAt(4)))/255,blue:(16*ii(e.charCodeAt(5))+ii(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*ii(e.charCodeAt(1))+ii(e.charCodeAt(2)))/255,green:(16*ii(e.charCodeAt(3))+ii(e.charCodeAt(4)))/255,blue:(16*ii(e.charCodeAt(5))+ii(e.charCodeAt(6)))/255,alpha:(16*ii(e.charCodeAt(7))+ii(e.charCodeAt(8)))/255}}return null}function si(e){var t,r,n,i,o;if(e.type===ne.HexColorValue)return oi(e.getText());if(e.type===ne.Function){var s=e,a=s.getName();s=s.getArguments().getChildren();if(!a||s.length<3||4<s.length)return null;try{var c,l=4===s.length?Xn(s[3],1):1;if("rgb"===a||"rgba"===a)return{red:Xn(s[0],255),green:Xn(s[1],255),blue:Xn(s[2],255),alpha:l};if("hsl"===a||"hsla"===a)return h=(e=>{if((e=e.getText()).match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(e)%360;throw new Error})(s[0]),c=Xn(s[1],100),u=Xn(s[2],100),t=h,n=u,void 0===(i=l)&&(i=1),t/=60,0===(r=c)?{red:n,green:n,blue:n,alpha:i}:{red:(o=function(e,t,r){for(;r<0;)r+=6;for(;6<=r;)r-=6;return r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e})(r=2*n-(n=n<=.5?n*(r+1):n+r-n*r),n,t+2),green:o(r,n,t),blue:o(r,n,t-2),alpha:i}}catch(e){}}else if(e.type===ne.Identifier){if(e.parent&&e.parent.type!==ne.Term)return null;if(a=e.parent,a&&a.parent&&a.parent.type===ne.BinaryExpression&&(s=a.parent,s.parent&&s.parent.type===ne.ListEntry&&s.parent.key===s))return null;var h=e.getText().toLowerCase();if("none"===h)return null;var u=Qn[h];if(u)return oi(u)}return null}var ai={bottom:"Computes to ‘100%’ 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 ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ 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 ‘100%’ 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 ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},ci={"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 ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t 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."},li={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 ‘none’, 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."},hi=["medium","thick","thin"],ui={"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."},pi={"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."},di={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},fi={"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’s position and the first specified color-stop’s 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’s position and the first specified color-stop’s position."},mi={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 “start” or “end”.","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."},gi={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},yi={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"]},vi=["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"],bi=["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"],xi=["@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 Ci(e){return void 0!==e}function ki(e){void 0===e&&(e=new X),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:n.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}function _i(e,t){return-1!==e.indexOf(t)}function wi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0,i=e;n<i.length;n++)for(var o=0,s=i[n];o<s.length;o++){var a=s[o];_i(r,a)||r.push(a)}return r}ki.prototype.peekIdent=function(e){return n.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},ki.prototype.peekKeyword=function(e){return n.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},ki.prototype.peekDelim=function(e){return n.Delim===this.token.type&&e===this.token.text},ki.prototype.peek=function(e){return e===this.token.type},ki.prototype.peekOne=function(e){return-1!==e.indexOf(this.token.type)},ki.prototype.peekRegExp=function(e,t){return e===this.token.type&&t.test(this.token.text)},ki.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},ki.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},ki.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},ki.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},ki.prototype.try=function(e){var t=this.mark();e=e();return e||(this.restoreAtMark(t),null)},ki.prototype.acceptOneKeyword=function(e){if(n.AtKeyword===this.token.type)for(var t=0,r=e;t<r.length;t++){var i=r[t];if(i.length===this.token.text.length&&i===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},ki.prototype.accept=function(e){return e===this.token.type&&(this.consumeToken(),!0)},ki.prototype.acceptIdent=function(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0)},ki.prototype.acceptKeyword=function(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)},ki.prototype.acceptDelim=function(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)},ki.prototype.acceptRegexp=function(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)},ki.prototype._parseRegexp=function(e){for(var t=this.createNode(ne.Identifier);this.acceptRegexp(e););return this.finish(t)},ki.prototype.acceptUnquotedString=function(){var e=this.scanner.pos(),t=(this.scanner.goBackTo(this.token.offset),this.scanner.scanUnquotedString());return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)},ki.prototype.resync=function(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===n.EOF)return!1;this.token=this.scanner.scan()}},ki.prototype.createNode=function(e){return new ae(this.token.offset,this.token.len,e)},ki.prototype.create=function(e){return new e(this.token.offset,this.token.len)},ki.prototype.finish=function(e,t,r,n){return e instanceof he||(t&&this.markError(e,t,r,n),this.prevToken&&(t=this.prevToken.offset+this.prevToken.len,e.length=e.offset<t?t-e.offset:0)),e},ki.prototype.markError=function(e,t,r,n){this.token!==this.lastErrorToken&&(e.addIssue(new Nn(e,t,On.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||n)&&this.resync(r,n)},ki.prototype.parseStylesheet=function(e){var t=e.version,r=e.getText();return this.internalParse(r,this._parseStylesheet,(function(n,i){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(n,i)}))},ki.prototype.internalParse=function(e,t,r){return this.scanner.setSource(e),this.token=this.scanner.scan(),t=t.bind(this)(),t&&(t.textProvider=r||function(t,r){return e.substr(t,r)}),t},ki.prototype._parseStylesheet=function(){for(var e=this.create(ge);e.addChild(this._parseStylesheetStart()););var t=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),t=!(r=!0),this.peek(n.EOF)||!this._needsSemicolonAfter(i)||this.accept(n.SemiColon)||this.markError(e,Un.SemiColonExpected));this.accept(n.SemiColon)||this.accept(n.CDO)||this.accept(n.CDC);)t=!(r=!0)}while(r)}while(!this.peek(n.EOF)&&(t||(this.peek(n.AtKeyword)?this.markError(e,Un.UnknownAtRule):this.markError(e,Un.RuleOrSelectorExpected),t=!0),this.consumeToken(),!this.peek(n.EOF)));return this.finish(e)},ki.prototype._parseStylesheetStart=function(){return this._parseCharset()},ki.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},ki.prototype._parseStylesheetAtStatement=function(e){return void 0===e&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},ki.prototype._tryParseRuleset=function(e){var t=this.mark();if(this._parseSelector(e)){for(;this.accept(n.Comma)&&this._parseSelector(e););if(this.accept(n.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null},ki.prototype._parseRuleset=function(e){void 0===e&&(e=!1);var t=this.create(Pe),r=t.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(n.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(t,Un.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},ki.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},ki.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},ki.prototype._needsSemicolonAfter=function(e){switch(e.type){case ne.Keyframe:case ne.ViewPort:case ne.Media:case ne.Ruleset:case ne.Namespace:case ne.If:case ne.For:case ne.Each:case ne.While:case ne.MixinDeclaration:case ne.FunctionDeclaration:case ne.MixinContentDeclaration:return!1;case ne.ExtendsReference:case ne.MixinContentReference:case ne.ReturnStatement:case ne.MediaQuery:case ne.Debug:case ne.Import:case ne.AtApplyRule:case ne.CustomPropertyDeclaration:return!0;case ne.VariableDeclaration:return e.needsSemicolon;case ne.MixinReference:return!e.getContent();case ne.Declaration:return!e.getNestedProperties()}return!1},ki.prototype._parseDeclarations=function(e){var t=this.create(be);if(!this.accept(n.CurlyL))return null;for(var r=e();t.addChild(r)&&!this.peek(n.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(n.SemiColon))return this.finish(t,Un.SemiColonExpected,[n.SemiColon,n.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===n.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(n.SemiColon););r=e()}return this.accept(n.CurlyR)?this.finish(t):this.finish(t,Un.RightCurlyExpected,[n.CurlyR,n.SemiColon])},ki.prototype._parseBody=function(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,Un.LeftCurlyExpected,[n.CurlyR,n.SemiColon])},ki.prototype._parseSelector=function(e){var t=this.create(Re),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},ki.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);return t||((t=this.create(Ue)).setProperty(this._parseProperty())?this.accept(n.Colon)?(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseExpr())?(t.addChild(this._parsePrio()),this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):this.finish(t,Un.PropertyValueExpected)):this.finish(t,Un.ColonExpected,[n.Colon],e||[n.SemiColon]):null)},ki.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(n.Ident,/^--/))return null;var t=this.create(qe);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(n.Colon))return this.finish(t,Un.ColonExpected,[n.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(n.CurlyL)){var i=this.create($e),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(n.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(r)}return o=this._parseExpr(),o&&!o.isErroneous(!0)&&(this._parsePrio(),this.peekOne(e||[n.SemiColon]))?(t.setValue(o),t.semicolonPosition=this.token.offset,this.finish(t)):(this.restoreAtMark(r),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),Ci(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,Un.PropertyValueExpected):this.finish(t))},ki.prototype._parseCustomPropertyValue=function(e){function t(){return 0===s&&0===a&&0===c}function r(){return-1!==e.indexOf(i.token.type)}var i=this,o=(void 0===e&&(e=[n.CurlyR]),this.create(ae)),s=0,a=0,c=0;e:for(;;){switch(this.token.type){case n.SemiColon:case n.Exclamation:if(t())break e;break;case n.CurlyL:s++;break;case n.CurlyR:if(--s<0){if(r()&&0===a&&0===c)break e;return this.finish(o,Un.LeftCurlyExpected)}break;case n.ParenthesisL:a++;break;case n.ParenthesisR:if(--a<0){if(r()&&0===c&&0===s)break e;return this.finish(o,Un.LeftParenthesisExpected)}break;case n.BracketL:c++;break;case n.BracketR:if(--c<0)return this.finish(o,Un.LeftSquareBracketExpected);break;case n.BadString:break e;case n.EOF:var l=Un.RightCurlyExpected;return 0<c?l=Un.RightSquareBracketExpected:0<a&&(l=Un.RightParenthesisExpected),this.finish(o,l)}this.consumeToken()}return this.finish(o)},ki.prototype._tryToParseDeclaration=function(e){var t=this.mark();return this._parseProperty()&&this.accept(n.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)},ki.prototype._parseProperty=function(){var e=this.create(Ge),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},ki.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},ki.prototype._parseCharset=function(){var e;return this.peek(n.Charset)?(e=this.create(ae),this.consumeToken(),this.accept(n.String)?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Un.SemiColonExpected):this.finish(e,Un.IdentifierExpected)):null},ki.prototype._parseImport=function(){var e;return this.peekKeyword("@import")?(e=this.create(Bt),this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Un.URIOrStringExpected)):null},ki.prototype._parseNamespace=function(){var e;return this.peekKeyword("@namespace")?(e=this.create(rr),this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral()))||e.addChild(this._parseStringLiteral())?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Un.SemiColonExpected):this.finish(e,Un.URIExpected,[n.SemiColon])):null},ki.prototype._parseFontFace=function(){var e;return this.peekKeyword("@font-face")?(e=this.create(It),this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},ki.prototype._parseViewPort=function(){var e;return this.peekKeyword("@-ms-viewport")||this.peekKeyword("@-o-viewport")||this.peekKeyword("@viewport")?(e=this.create(St),this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},ki.prototype._parseKeyframe=function(){var e,t;return this.peekRegExp(n.AtKeyword,this.keyframeRegex)?(e=this.create(Ot),t=this.create(ae),this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,Un.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,Un.IdentifierExpected,[n.CurlyR])):null},ki.prototype._parseKeyframeIdent=function(){return this._parseIdent([ie.Keyframe])},ki.prototype._parseKeyframeSelector=function(){var e=this.create(Nt);if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return null;for(;this.accept(n.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return this.finish(e,Un.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},ki.prototype._tryParseKeyframeSelector=function(){var e=this.create(Nt),t=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return null;for(;this.accept(n.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(n.Percentage))return this.restoreAtMark(t),null;return this.peek(n.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)},ki.prototype._parseSupports=function(e){var t;return void 0===e&&(e=!1),this.peekKeyword("@supports")?(t=this.create(cr),this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))):null},ki.prototype._parseSupportsDeclaration=function(e){return(e=void 0!==e&&e)?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},ki.prototype._parseSupportsCondition=function(){var e=this.create(xr);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(n.Ident,/^(and|or)$/i))for(var t=this.token.text.toLowerCase();this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},ki.prototype._parseSupportsConditionInParens=function(){var e=this.create(xr);if(this.accept(n.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([n.ParenthesisR]))||this._parseSupportsCondition()?this.accept(n.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,Un.RightParenthesisExpected,[n.ParenthesisR],[]):this.finish(e,Un.ConditionExpected);if(this.peek(n.Ident)){var t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(n.ParenthesisL)){for(var r=1;this.token.type!==n.EOF&&0!==r;)this.token.type===n.ParenthesisL?r++:this.token.type===n.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,Un.LeftParenthesisExpected,[],[n.ParenthesisL])},ki.prototype._parseMediaDeclaration=function(e){return(e=void 0!==e&&e)?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},ki.prototype._parseMedia=function(e){var t;return void 0===e&&(e=!1),this.peekKeyword("@media")?(t=this.create(or),this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,Un.MediaQueryExpected)):null},ki.prototype._parseMediaQueryList=function(){var e=this.create(fr);if(!e.addChild(this._parseMediaQuery([n.CurlyL])))return this.finish(e,Un.MediaQueryExpected);for(;this.accept(n.Comma);)if(!e.addChild(this._parseMediaQuery([n.CurlyL])))return this.finish(e,Un.MediaQueryExpected);return this.finish(e)},ki.prototype._parseMediaQuery=function(e){var t=this.create(yr),r=!0,i=!1;if(!this.peek(n.ParenthesisL)){if(this.acceptIdent("only")||this.acceptIdent("not"),!t.addChild(this._parseIdent()))return null;i=!0,r=this.acceptIdent("and")}for(;r;){if(t.addChild(this._parseMediaContentStart()));else{if(!this.accept(n.ParenthesisL))return i?this.finish(t,Un.LeftParenthesisExpected,[],e):null;if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,Un.IdentifierExpected,[],e);if(this.accept(n.Colon)&&!t.addChild(this._parseExpr()))return this.finish(t,Un.TermExpected,[],e);if(!this.accept(n.ParenthesisR))return this.finish(t,Un.RightParenthesisExpected,[],e)}r=this.acceptIdent("and")}return this.finish(t)},ki.prototype._parseMediaContentStart=function(){return null},ki.prototype._parseMediaFeatureName=function(){return this._parseIdent()},ki.prototype._parseMedium=function(){var e=this.create(ae);return e.addChild(this._parseIdent())?this.finish(e):null},ki.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},ki.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(_r);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(n.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,Un.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))},ki.prototype._parsePageMarginBox=function(){var e;return this.peek(n.AtKeyword)?(e=this.create(Sr),this.acceptOneKeyword(xi)||this.markError(e,Un.UnknownAtRule,[],[n.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))):null},ki.prototype._parsePageSelector=function(){var e;return this.peek(n.Ident)||this.peek(n.Colon)?((e=this.create(ae)).addChild(this._parseIdent()),this.accept(n.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,Un.IdentifierExpected):this.finish(e)):null},ki.prototype._parseDocument=function(){var e;return this.peekKeyword("@-moz-document")?(e=this.create(ur),this.consumeToken(),this.resync([],[n.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))):null},ki.prototype._parseUnknownAtRule=function(){if(!this.peek(n.AtKeyword))return null;var e=this.create(_n),t=(e.addChild(this._parseUnknownAtRuleName()),0),r=0,i=0,o=0;e:for(;;){switch(this.token.type){case n.SemiColon:if(0===r&&0===i&&0===o)break e;break;case n.EOF:return 0<r?this.finish(e,Un.RightCurlyExpected):0<o?this.finish(e,Un.RightSquareBracketExpected):0<i?this.finish(e,Un.RightParenthesisExpected):this.finish(e);case n.CurlyL:t++,r++;break;case n.CurlyR:if(r--,0<t&&0===r){if(this.consumeToken(),0<o)return this.finish(e,Un.RightSquareBracketExpected);if(0<i)return this.finish(e,Un.RightParenthesisExpected);break e}if(r<0){if(0===i&&0===o)break e;return this.finish(e,Un.LeftCurlyExpected)}break;case n.ParenthesisL:i++;break;case n.ParenthesisR:if(--i<0)return this.finish(e,Un.LeftParenthesisExpected);break;case n.BracketL:o++;break;case n.BracketR:if(--o<0)return this.finish(e,Un.LeftSquareBracketExpected)}this.consumeToken()}return e},ki.prototype._parseUnknownAtRuleName=function(){var e=this.create(ae);return this.accept(n.AtKeyword)?this.finish(e):e},ki.prototype._parseOperator=function(){var e;return this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(n.Dashmatch)||this.peek(n.Includes)||this.peek(n.SubstringOperator)||this.peek(n.PrefixOperator)||this.peek(n.SuffixOperator)||this.peekDelim("=")?(e=this.createNode(ne.Operator),this.consumeToken(),this.finish(e)):null},ki.prototype._parseUnaryOperator=function(){var e;return this.peekDelim("+")||this.peekDelim("-")?(e=this.create(ae),this.consumeToken(),this.finish(e)):null},ki.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(ae),t=(this.consumeToken(),this.mark());if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ne.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorSibling,this.finish(e);if(this.peekDelim("~"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorAllSiblings,this.finish(e);if(this.peekDelim("/")){if(e=this.create(ae),this.consumeToken(),t=this.mark(),!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},ki.prototype._parseSimpleSelector=function(){var e=this.create(Te),t=0;for(e.addChild(this._parseElementName())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return 0<t?this.finish(e):null},ki.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},ki.prototype._parseSelectorIdent=function(){return this._parseIdent()},ki.prototype._parseHash=function(){if(!this.peek(n.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(ne.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,Un.IdentifierExpected)}else this.consumeToken();return this.finish(e)},ki.prototype._parseClass=function(){var e;return this.peekDelim(".")?(e=this.createNode(ne.ClassSelector),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,Un.IdentifierExpected):this.finish(e)):null},ki.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(ne.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)},ki.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(ne.NamespacePrefix);return t.addChild(this._parseIdent())||this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},ki.prototype._parseAttrib=function(){var e;return this.peek(n.BracketL)?(e=this.create($r),this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(n.BracketR)?this.finish(e):this.finish(e,Un.RightSquareBracketExpected)):this.finish(e,Un.IdentifierExpected)):null},ki.prototype._parsePseudo=function(){var e=this,t=this._tryParsePseudoIdentifier();return t?this.hasWhitespace()||!this.accept(n.ParenthesisL)||(t.addChild(this.try((function(){var t=e.create(ae);if(!t.addChild(e._parseSelector(!1)))return null;for(;e.accept(n.Comma)&&t.addChild(e._parseSelector(!1)););return e.peek(n.ParenthesisR)?e.finish(t):null}))||this._parseBinaryExpr()),this.accept(n.ParenthesisR))?this.finish(t):this.finish(t,Un.RightParenthesisExpected):null},ki.prototype._tryParsePseudoIdentifier=function(){var e,t;return this.peek(n.Colon)?(e=this.mark(),t=this.createNode(ne.PseudoSelector),this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(n.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,Un.IdentifierExpected):this.finish(t))):null},ki.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},ki.prototype._parsePrio=function(){var e;return this.peek(n.Exclamation)&&(e=this.createNode(ne.Prio),this.accept(n.Exclamation))&&this.acceptIdent("important")?this.finish(e):null},ki.prototype._parseExpr=function(e){void 0===e&&(e=!1);var t=this.create(Ir);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(n.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)},ki.prototype._parseNamedLine=function(){if(!this.peek(n.BracketL))return null;var e=this.createNode(ne.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(n.BracketR)?this.finish(e):this.finish(e,Un.RightSquareBracketExpected)},ki.prototype._parseBinaryExpr=function(e,t){if(!(r=this.create(Tr)).setLeft(e||this._parseTerm()))return null;if(r.setOperator(t||this._parseOperator())){if(!r.setRight(this._parseTerm()))return this.finish(r,Un.TermExpected);var r=this.finish(r);e=this._parseOperator();e&&(r=this._parseBinaryExpr(r,e))}return this.finish(r)},ki.prototype._parseTerm=function(){var e=this.create(Or);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},ki.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},ki.prototype._parseOperation=function(){var e;return this.peek(n.ParenthesisL)?(e=this.create(ae),this.consumeToken(),e.addChild(this._parseExpr()),this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)):null},ki.prototype._parseNumeric=function(){var e;return this.peek(n.Num)||this.peek(n.Percentage)||this.peek(n.Resolution)||this.peek(n.Length)||this.peek(n.EMS)||this.peek(n.EXS)||this.peek(n.Angle)||this.peek(n.Time)||this.peek(n.Dimension)||this.peek(n.Freq)?(e=this.create(Qr),this.consumeToken(),this.finish(e)):null},ki.prototype._parseStringLiteral=function(){var e;return this.peek(n.String)||this.peek(n.BadString)?(e=this.createNode(ne.StringLiteral),this.consumeToken(),this.finish(e)):null},ki.prototype._parseURILiteral=function(){var e,t;return this.peekRegExp(n.Ident,/^url(-prefix)?$/i)?(e=this.mark(),t=this.createNode(ne.URILiteral),this.accept(n.Ident),this.hasWhitespace()||!this.peek(n.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected))):null},ki.prototype._parseURLArgument=function(){var e=this.create(ae);return this.accept(n.String)||this.accept(n.BadString)||this.acceptUnquotedString()?this.finish(e):null},ki.prototype._parseIdent=function(e){var t;return this.peek(n.Ident)?(t=this.create(de),e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(n.Ident,/^--/),this.consumeToken(),this.finish(t)):null},ki.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ye);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,Un.ExpressionExpected);return this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected)},ki.prototype._parseFunctionIdentifier=function(){if(!this.peek(n.Ident))return null;var e=this.create(de);if(e.referenceTypes=[ie.Function],this.acceptIdent("progid")){if(this.accept(n.Colon))for(;this.accept(n.Ident)&&this.acceptDelim("."););}else this.consumeToken();return this.finish(e)},ki.prototype._parseFunctionArgument=function(){var e=this.create(ot);return e.setValue(this._parseExpr(!0))?this.finish(e):null},ki.prototype._parseHexColor=function(){var e;return this.peekRegExp(n.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)?(e=this.create(Wr),this.consumeToken(),this.finish(e)):null},U=ki,Pi=function(e,t){return(Pi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};W=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var Pi,Si=(Ei.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},Ei.prototype.setParent=function(e){this.parent=e},Ei.prototype.findScope=function(e,t){return void 0===t&&(t=0),this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},Ei.prototype.findInScope=function(e,t){var r=e+(t=void 0===t?0:t),n=((e,t)=>{var r=0,n=e.length;if(0===n)return 0;for(;r<n;){var i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r})(this.children,(function(e){return e.offset>r}));return 0!==n&&(n=this.children[n-1]).offset<=e&&n.offset+n.length>=e+t?n.findInScope(e,t):this},Ei.prototype.addSymbol=function(e){this.symbols.push(e)},Ei.prototype.getSymbol=function(e,t){for(var r=0;r<this.symbols.length;r++){var n=this.symbols[r];if(n.name===e&&n.type===t)return n}return null},Ei.prototype.getSymbols=function(){return this.symbols},Ei);function Ei(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}W(Ai,Ri=Si);var Ri,Ii=Ai;function Ai(){return Ri.call(this,0,Number.MAX_VALUE)||this}var Di=function(e,t,r,n){this.name=e,this.value=t,this.node=r,this.type=n},Ti=(Fi.prototype.addSymbol=function(e,t,r,n){var i;-1!==e.offset&&(i=this.scope.findScope(e.offset,e.length))&&i.addSymbol(new Di(t,r,e,n))},Fi.prototype.addScope=function(e){var t;return-1!==e.offset?!(t=this.scope.findScope(e.offset,e.length))||t.offset===e.offset&&t.length===e.length?t:(e=new Si(e.offset,e.length),t.addChild(e),e):null},Fi.prototype.addSymbolToChildScope=function(e,t,r,n,i){e&&-1!==e.offset&&(e=this.addScope(e))&&e.addSymbol(new Di(r,n,t,i))},Fi.prototype.visitNode=function(e){switch(e.type){case ne.Keyframe:return this.addSymbol(e,e.getName(),void 0,ie.Keyframe),!0;case ne.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case ne.VariableDeclaration:return this.visitVariableDeclarationNode(e);case ne.Ruleset:return this.visitRuleSet(e);case ne.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,ie.Mixin),!0;case ne.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,ie.Function),!0;case ne.FunctionParameter:return this.visitFunctionParameterNode(e);case ne.Declarations:return this.addScope(e),!0;case ne.For:var t=e,r=t.getDeclarations();return r&&t.variable&&this.addSymbolToChildScope(r,t.variable,t.variable.getName(),void 0,ie.Variable),!0;case ne.Each:r=e;var n=r.getDeclarations();if(n)for(var i=0,o=r.getVariables().getChildren();i<o.length;i++){var s=o[i];this.addSymbolToChildScope(n,s,s.getName(),void 0,ie.Variable)}return!0}return!0},Fi.prototype.visitRuleSet=function(e){var t=this.scope.findScope(e.offset,e.length);if(t)for(var r=0,n=e.getSelectors().getChildren();r<n.length;r++){var i=n[r];i instanceof Re&&1===i.getChildren().length&&t.addSymbol(new Di(i.getChild(0).getText(),void 0,i,ie.Rule))}return!0},Fi.prototype.visitVariableDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,ie.Variable),!0},Fi.prototype.visitFunctionParameterNode=function(e){var t,r=e.getParent().getDeclarations();return r&&(t=(t=e.getDefaultValue())?t.getText():void 0,this.addSymbolToChildScope(r,e,e.getName(),t,ie.Variable)),!0},Fi.prototype.visitCustomPropertyDeclarationNode=function(e){var t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,ie.Variable),!0},Fi.prototype.addCSSVariable=function(e,t,r,n){-1!==e.offset&&this.scope.addSymbol(new Di(t,r,e,n))},Fi);function Fi(e){this.scope=e}Yi.prototype.findSymbolsAtOffset=function(e,t){for(var r=this.global.findScope(e,0),n=[],i={};r;){for(var o=r.getSymbols(),s=0;s<o.length;s++){var a=o[s];a.type!==t||i[a.name]||(n.push(a),i[a.name]=!0)}r=r.parent}return n},Yi.prototype.internalFindSymbol=function(e,t){var r,n=e;if(e.parent instanceof rt&&e.parent.getParent()instanceof ke&&(n=e.parent.getParent().getDeclarations()),n=e.parent instanceof ot&&e.parent.getParent()instanceof Ye&&(r=e.parent.getParent().getIdentifier())&&(r=this.internalFindSymbol(r,[ie.Function]))?r.node.getDeclarations():n)for(var i=e.getText(),o=this.global.findScope(n.offset,n.length);o;){for(var s=0;s<t.length;s++){var a=o.getSymbol(i,t[s]);if(a)return a}o=o.parent}return null},Yi.prototype.evaluateReferenceTypes=function(e){if(e instanceof de){var t=e.referenceTypes;if(t)return t;if(e.isCustomProperty)return[ie.Variable];if(r=(t=e).findParent(ne.Declaration),n=(n=r&&r.getValue())&&n.encloses(t)?r:null,n&&(t=n.getNonPrefixedPropertyName(),("animation"===t||"animation-name"===t)&&n.getValue()&&n.getValue().offset===e.offset))return[ie.Keyframe]}else if(e instanceof on)return[ie.Variable];var r,n;return e.findAParent(ne.Selector,ne.ExtendsReference)?[ie.Rule]:null},Yi.prototype.findSymbolFromNode=function(e){if(!e)return null;for(;e.type===ne.Interpolation;)e=e.getParent();var t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null},Yi.prototype.matchesSymbol=function(e,t){if(!e)return!1;for(;e.type===ne.Interpolation;)e=e.getParent();var r;return!(!e.matches(t.name)||!(r=this.evaluateReferenceTypes(e))||-1===r.indexOf(t.type)||this.internalFindSymbol(e,r)!==t)},Yi.prototype.findSymbol=function(e,t,r){for(var n=this.global.findScope(r);n;){var i=n.getSymbol(e,t);if(i)return i;n=n.parent}return null};var Mi,Oi,Vi,Li,Ni,$i,ji,Bi,Ui,Wi,Ki,qi,zi,Hi,Gi,Qi,Ji,Xi,Zi=Yi;function Yi(e){this.global=new Ii,e.acceptVisitor(new Ti(this.global))}(t=Mi=Mi||{}).MIN_VALUE=0,t.MAX_VALUE=2147483647,(q=Oi=Oi||{}).create=function(e,t){return{line:e=e===Number.MAX_VALUE?Mi.MAX_VALUE:e,character:t=t===Number.MAX_VALUE?Mi.MAX_VALUE:t}},q.is=function(e){return yo.objectLiteral(e)&&yo.uinteger(e.line)&&yo.uinteger(e.character)},(z=Vi=Vi||{}).create=function(e,t,r,n){if(yo.uinteger(e)&&yo.uinteger(t)&&yo.uinteger(r)&&yo.uinteger(n))return{start:Oi.create(e,t),end:Oi.create(r,n)};if(Oi.is(e)&&Oi.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+r+", "+n+"]")},z.is=function(e){return yo.objectLiteral(e)&&Oi.is(e.start)&&Oi.is(e.end)},(K=Li=Li||{}).create=function(e,t){return{uri:e,range:t}},K.is=function(e){return yo.defined(e)&&Vi.is(e.range)&&(yo.string(e.uri)||yo.undefined(e.uri))},(B=sa=sa||{}).create=function(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}},B.is=function(e){return yo.numberRange(e.red,0,1)&&yo.numberRange(e.green,0,1)&&yo.numberRange(e.blue,0,1)&&yo.numberRange(e.alpha,0,1)},(W=Ni=Ni||{}).Comment="comment",W.Imports="imports",W.Region="region",(t=$i=$i||{}).create=function(e,t){return{location:e,message:t}},t.is=function(e){return yo.defined(e)&&Li.is(e.location)&&yo.string(e.message)},(q=ji=ji||{}).Error=1,q.Warning=2,q.Information=3,q.Hint=4,(Es||{}).is=function(e){return null!=e&&yo.string(e.href)},(z=Bi=Bi||{}).create=function(e,t,r,n,i,o){return e={range:e,message:t},yo.defined(r)&&(e.severity=r),yo.defined(n)&&(e.code=n),yo.defined(i)&&(e.source=i),yo.defined(o)&&(e.relatedInformation=o),e},z.is=function(e){var t;return yo.defined(e)&&Vi.is(e.range)&&yo.string(e.message)&&(yo.number(e.severity)||yo.undefined(e.severity))&&(yo.integer(e.code)||yo.string(e.code)||yo.undefined(e.code))&&(yo.undefined(e.codeDescription)||yo.string(null==(t=e.codeDescription)?void 0:t.href))&&(yo.string(e.source)||yo.undefined(e.source))&&(yo.undefined(e.relatedInformation)||yo.typedArray(e.relatedInformation,$i.is))},(K=Ui=Ui||{}).create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e={title:e,command:t},yo.defined(r)&&0<r.length&&(e.arguments=r),e},K.is=function(e){return yo.defined(e)&&yo.string(e.title)&&yo.string(e.command)},(sa=Wi=Wi||{}).replace=function(e,t){return{range:e,newText:t}},sa.insert=function(e,t){return{range:{start:e,end:e},newText:t}},sa.del=function(e){return{range:e,newText:""}},sa.is=function(e){return yo.objectLiteral(e)&&yo.string(e.newText)&&Vi.is(e.range)},(B=Ki=Ki||{}).create=function(e,t,r){return e={label:e},void 0!==t&&(e.needsConfirmation=t),void 0!==r&&(e.description=r),e},B.is=function(e){return void 0!==e&&yo.objectLiteral(e)&&yo.string(e.label)&&(yo.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(yo.string(e.description)||void 0===e.description)},(qi||(qi={})).is=function(e){return"string"==typeof e},(W=zi=zi||{}).replace=function(e,t,r){return{range:e,newText:t,annotationId:r}},W.insert=function(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}},W.del=function(e,t){return{range:e,newText:"",annotationId:t}},W.is=function(e){return Wi.is(e)&&(Ki.is(e.annotationId)||qi.is(e.annotationId))},(t=Hi=Hi||{}).create=function(e,t){return{textDocument:e,edits:t}},t.is=function(e){return yo.defined(e)&&no.is(e.textDocument)&&Array.isArray(e.edits)},(q=Gi=Gi||{}).create=function(e,t,r){return e={kind:"create",uri:e},void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(e.options=t),void 0!==r&&(e.annotationId=r),e},q.is=function(e){return e&&"create"===e.kind&&yo.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||yo.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||yo.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||qi.is(e.annotationId))},(Es=Qi=Qi||{}).create=function(e,t,r,n){return e={kind:"rename",oldUri:e,newUri:t},void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},Es.is=function(e){return e&&"rename"===e.kind&&yo.string(e.oldUri)&&yo.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||yo.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||yo.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||qi.is(e.annotationId))},(z=Ji=Ji||{}).create=function(e,t,r){return e={kind:"delete",uri:e},void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(e.options=t),void 0!==r&&(e.annotationId=r),e},z.is=function(e){return e&&"delete"===e.kind&&yo.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||yo.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||yo.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||qi.is(e.annotationId))},(Xi||(Xi={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(e){return yo.string(e.kind)?Gi.is(e)||Qi.is(e)||Ji.is(e):Hi.is(e)})))},to.prototype.insert=function(e,t,r){var n;r=void 0===r?Wi.insert(e,t):qi.is(r)?zi.insert(e,t,n=r):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),zi.insert(e,t,n));if(this.edits.push(r),void 0!==n)return n},to.prototype.replace=function(e,t,r){var n;r=void 0===r?Wi.replace(e,t):qi.is(r)?zi.replace(e,t,n=r):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),zi.replace(e,t,n));if(this.edits.push(r),void 0!==n)return n},to.prototype.delete=function(e,t){var r;t=void 0===t?Wi.del(e):qi.is(t)?zi.del(e,r=t):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),zi.del(e,r));if(this.edits.push(t),void 0!==r)return r},to.prototype.add=function(e){this.edits.push(e)},to.prototype.all=function(){return this.edits},to.prototype.clear=function(){this.edits.splice(0,this.edits.length)},to.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")};var eo=to;function to(e,t){this.edits=e,this.changeAnnotations=t}Co.prototype.all=function(){return this._annotations},Object.defineProperty(Co.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Co.prototype.manage=function(e,t){var r;if(qi.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw new Error("Id "+r+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+r);return this._annotations[r]=t,this._size++,r},Co.prototype.nextId=function(){return this._counter++,this._counter.toString()};var ro,no,io,oo,so,ao,co,lo,ho,uo,po,fo,mo,go,yo,vo,bo,xo=Co;function Co(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}function ko(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e).documentChanges?(this._changeAnnotations=new xo(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){var r;Hi.is(e)&&(r=new eo(e.edits,t._changeAnnotations),t._textEditChanges[e.textDocument.uri]=r)}))):e.changes&&Object.keys(e.changes).forEach((function(r){var n=new eo(e.changes[r]);t._textEditChanges[r]=n})):this._workspaceEdit={}}function _o(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}function wo(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}function Po(e,t,r){void 0===r&&(r=0);for(var n=t?[r]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,n.push(r+i+1))}return n}function So(e){var t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}Object.defineProperty(ko.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),ko.prototype.getTextEditChange=function(e){if(no.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};(r=this._textEditChanges[t.uri])||(this._workspaceEdit.documentChanges.push({textDocument:t,edits:n=[]}),r=new eo(n,this._changeAnnotations),this._textEditChanges[t.uri]=r)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r,n;(r=this._textEditChanges[e])||(this._workspaceEdit.changes[e]=n=[],r=new eo(n),this._textEditChanges[e]=r)}return r},ko.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new xo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},ko.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},ko.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Ki.is(t)||qi.is(t)?n=t:r=t,t=void 0===n?Gi.create(e,r):(i=qi.is(n)?n:this._changeAnnotations.manage(n),Gi.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},ko.prototype.renameFile=function(e,t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o;if(Ki.is(r)||qi.is(r)?i=r:n=r,r=void 0===i?Qi.create(e,t,n):(o=qi.is(i)?i:this._changeAnnotations.manage(i),Qi.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},ko.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Ki.is(t)||qi.is(t)?n=t:r=t,t=void 0===n?Ji.create(e,r):(i=qi.is(n)?n:this._changeAnnotations.manage(n),Ji.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},(K=ro=ro||{}).create=function(e,t){return{uri:e,version:t}},K.is=function(e){return yo.defined(e)&&yo.string(e.uri)&&yo.integer(e.version)},(sa=no=no||{}).create=function(e,t){return{uri:e,version:t}},sa.is=function(e){return yo.defined(e)&&yo.string(e.uri)&&(null===e.version||yo.integer(e.version))},(B=io=io||{}).PlainText="plaintext",B.Markdown="markdown",(oo=io=io||{}).is=function(e){return e===oo.PlainText||e===oo.Markdown},(so||(so={})).is=function(e){var t=e;return yo.objectLiteral(e)&&io.is(t.kind)&&yo.string(t.value)},(W=ao=ao||{}).Text=1,W.Method=2,W.Function=3,W.Constructor=4,W.Field=5,W.Variable=6,W.Class=7,W.Interface=8,W.Module=9,W.Property=10,W.Unit=11,W.Value=12,W.Enum=13,W.Keyword=14,W.Snippet=15,W.Color=16,W.File=17,W.Reference=18,W.Folder=19,W.EnumMember=20,W.Constant=21,W.Struct=22,W.Event=23,W.Operator=24,W.TypeParameter=25,(t=co=co||{}).PlainText=1,t.Snippet=2,(lo=lo||{}).Deprecated=1,(Ko||{}).create=function(e){return{label:e}},(es||{}).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(q=ho=ho||{}).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},q.is=function(e){return yo.string(e)||yo.objectLiteral(e)&&yo.string(e.language)&&yo.string(e.value)},(xs||{}).is=function(e){var t=e;return!!t&&yo.objectLiteral(t)&&(so.is(t.contents)||ho.is(t.contents)||yo.typedArray(t.contents,ho.is))&&(void 0===e.range||Vi.is(e.range))},(Ps||{}).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Ss||{}).create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return e={label:e},yo.defined(t)&&(e.documentation=t),yo.defined(r)?e.parameters=r:e.parameters=[],e},(Es=uo=uo||{}).Text=1,Es.Read=2,Es.Write=3,(Rs||{}).create=function(e,t){return e={range:e},yo.number(t)&&(e.kind=t),e},(z=po=po||{}).File=1,z.Module=2,z.Namespace=3,z.Package=4,z.Class=5,z.Method=6,z.Property=7,z.Field=8,z.Constructor=9,z.Enum=10,z.Interface=11,z.Function=12,z.Variable=13,z.Constant=14,z.String=15,z.Number=16,z.Boolean=17,z.Array=18,z.Object=19,z.Key=20,z.Null=21,z.EnumMember=22,z.Struct=23,z.Event=24,z.Operator=25,z.TypeParameter=26,(Is||{}).create=function(e,t,r,n,i){return e={name:e,kind:t,location:{uri:n,range:r}},i&&(e.containerName=i),e},(K=fo=fo||{}).Empty="",K.QuickFix="quickfix",K.Refactor="refactor",K.RefactorExtract="refactor.extract",K.RefactorInline="refactor.inline",K.RefactorRewrite="refactor.rewrite",K.Source="source",K.SourceOrganizeImports="source.organizeImports",K.SourceFixAll="source.fixAll",(sa=mo=mo||{}).create=function(e,t,r){e={title:e};var n=!0;return"string"==typeof t?(n=!1,e.kind=t):Ui.is(t)?e.command=t:e.edit=t,n&&void 0!==r&&(e.kind=r),e},sa.is=function(e){return e&&yo.string(e.title)&&(void 0===e.diagnostics||yo.typedArray(e.diagnostics,Bi.is))&&(void 0===e.kind||yo.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||Ui.is(e.command))&&(void 0===e.isPreferred||yo.boolean(e.isPreferred))&&(void 0===e.edit||Xi.is(e.edit))},(go=va=va||{}).create=function(e,t){return{range:e,parent:t}},go.is=function(e){return void 0!==e&&Vi.is(e.range)&&(void 0===e.parent||go.is(e.parent))},Object.defineProperty(_o.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(_o.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(_o.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),_o.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},_o.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},_o.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,r=!0,n=0;n<t.length;n++){r&&(e.push(n),r=!1);var i=t.charAt(n);r="\r"===i||"\n"===i;"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&0<t.length&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},_o.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return Oi.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return Oi.create(o,e-t[o])},_o.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))},Object.defineProperty(_o.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),B=yo=yo||{},vo=Object.prototype.toString,B.defined=function(e){return void 0!==e},B.undefined=function(e){return void 0===e},B.boolean=function(e){return!0===e||!1===e},B.string=function(e){return"[object String]"===vo.call(e)},B.number=function(e){return"[object Number]"===vo.call(e)},B.numberRange=function(e,t,r){return"[object Number]"===vo.call(e)&&t<=e&&e<=r},B.integer=function(e){return"[object Number]"===vo.call(e)&&-2147483648<=e&&e<=2147483647},B.uinteger=function(e){return"[object Number]"===vo.call(e)&&0<=e&&e<=2147483647},B.func=function(e){return"[object Function]"===vo.call(e)},B.objectLiteral=function(e){return null!==e&&"object"==typeof e},B.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},Object.defineProperty(wo.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(wo.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),wo.prototype.getText=function(e){var t;return e?(t=this.offsetAt(e.start),e=this.offsetAt(e.end),this._content.substring(t,e)):this._content},wo.prototype.update=function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(wo.isIncremental(i)){var o=So(i.range),s=this.offsetAt(o.start),a=this.offsetAt(o.end),c=(this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length),Math.max(o.start.line,0)),l=(o=Math.max(o.end.line,0),this._lineOffsets),h=Po(i.text,!1,s);if(o-c===h.length)for(var u=0,p=h.length;u<p;u++)l[u+c+1]=h[u];else h.length<1e4?l.splice.apply(l,[c+1,o-c].concat(h)):this._lineOffsets=l=l.slice(0,c+1).concat(h,l.slice(o+1));var d=i.text.length-(a-s);if(0!=d)for(u=c+1+h.length,p=l.length;u<p;u++)l[u]=l[u]+d}else{if(!wo.isFull(i))throw new Error("Unknown change event received");this._content=i.text,this._lineOffsets=void 0}}this._version=t},wo.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=Po(this._content,!0)),this._lineOffsets},wo.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return{line:o,character:e-t[o]}},wo.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))},Object.defineProperty(wo.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),wo.isIncremental=function(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)},wo.isFull=function(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength},io.Markdown,io.PlainText,io.Markdown,io.PlainText,(W=bo=bo||{})[W.Unknown=0]="Unknown",W[W.File=1]="File",W[W.Directory=2]="Directory",W[W.SymbolicLink=64]="SymbolicLink";var Eo=r("ed59"),Ro=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};function Io(e){return Eo.b.dirname(Eo.a.parse(e)).toString()}function Ao(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Eo.b.joinPath.apply(Eo.b,Ro([Eo.a.parse(e)],t,!1)).toString()}var Do=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},To=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},Fo=(Mo.prototype.onCssURILiteralValue=function(e){this.literalCompletions.push(e)},Mo.prototype.onCssImportPath=function(e){this.importCompletions.push(e)},Mo.prototype.computeCompletions=function(e,t){return Do(this,void 0,void 0,(function(){var r,n,i,o,s,a,c,l,h,u,p,d,f,m,g,y;return To(this,(function(v){switch(v.label){case 0:r={items:[],isIncomplete:!1},n=0,i=this.literalCompletions,v.label=1;case 1:return n<i.length?(o=i[n],s=o.uriValue,"."!==(d=Vo(s))&&".."!==d?[3,2]:(r.isIncomplete=!0,[3,4])):[3,5];case 2:return[4,this.providePathSuggestions(s,o.position,o.range,e,t)];case 3:for(f=v.sent(),a=0,c=f;a<c.length;a++)y=c[a],r.items.push(y);v.label=4;case 4:return n++,[3,1];case 5:l=0,h=this.importCompletions,v.label=6;case 6:return l<h.length?(u=h[l],p=u.pathValue,"."!==(d=Vo(p))&&".."!==d?[3,7]:(r.isIncomplete=!0,[3,9])):[3,10];case 7:return[4,this.providePathSuggestions(p,u.position,u.range,e,t)];case 8:for(f=v.sent(),"scss"===e.languageId&&f.forEach((function(e){Y(e.label,"_")&&ee(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))})),m=0,g=f;m<g.length;m++)y=g[m],r.items.push(y);v.label=9;case 9:return l++,[3,6];case 10:return[2,r]}}))}))},Mo.prototype.providePathSuggestions=function(e,t,r,n,i){return Do(this,void 0,void 0,(function(){var o,s,a,c,l,h,u,p,d,f,m;return To(this,(function(g){switch(g.label){case 0:if(c=Vo(e),u=Y(e,"'")||Y(e,'"'),o=u?c.slice(0,t.character-(r.start.character+1)):c.slice(0,t.character-r.start.character),s=n.uri,u=u?((e,t,r)=>(t=No(e.start,t),e=No(e.end,r),Vi.create(t,e)))(r,1,-1):r,a=((e,t,r)=>{var n;return e=e.lastIndexOf("/"),-1===e?r:(t=t.slice(e+1),e=No(r.end,-t.length),t=t.indexOf(" "),n=void 0,n=-1!==t?No(e,t):r.end,Vi.create(e,n))})(o,c,u),c=o.substring(0,o.lastIndexOf("/")+1),!(l=i.resolveReference(c||".",s)))return[3,4];g.label=1;case 1:return g.trys.push([1,3,,4]),h=[],[4,this.readDirectory(l)];case 2:for(u=g.sent(),p=0,d=u;p<d.length;p++)m=d[p],f=m[0],m=m[1],f.charCodeAt(0)===Oo||m!==bo.Directory&&Ao(l,f)===s||h.push((y=f,v=m===bo.Directory,b=a,v?{label:Lo(y+="/"),kind:ao.Folder,textEdit:Wi.replace(b,Lo(y)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:Lo(y),kind:ao.File,textEdit:Wi.replace(b,Lo(y))}));return[2,h];case 3:return g.sent(),[3,4];case 4:return[2,[]]}var y,v,b}))}))},Mo);function Mo(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}var Oo=".".charCodeAt(0);function Vo(e){return Y(e,"'")||Y(e,'"')?e.slice(1,-1):e}function Lo(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function No(e,t){return Oi.create(e.line,e.character+t)}var $o,jo=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},Bo=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},Uo=Bn,Wo=co.Snippet,Ko=((t=$o=$o||{}).Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z",qo.prototype.configure=function(e){this.defaultSettings=e},qo.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new Zi(this.styleSheet)),this.symbolContext},qo.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},qo.prototype.doComplete2=function(e,t,r,n,i){return void 0===i&&(i=this.defaultSettings),jo(this,void 0,void 0,(function(){var o,s,a,c;return Bo(this,(function(l){switch(l.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,t,r,i)];o=new Fo(this.lsOptions.fileSystemProvider.readDirectory),s=this.completionParticipants,this.completionParticipants=[o].concat(s),a=this.doComplete(e,t,r,i),l.label=1;case 1:return l.trys.push([1,,3,4]),[4,o.computeCompletions(e,n)];case 2:return c=l.sent(),[2,{isIncomplete:a.isIncomplete||c.isIncomplete,items:c.items.concat(a.items)}];case 3:return this.completionParticipants=s,[7];case 4:return[2]}}))}))},qo.prototype.doComplete=function(e,t,r,n){this.offset=e.offsetAt(t),this.position=t,this.currentWord=((e,t)=>{for(var r=t-1,n=e.getText();0<=r&&-1===' \t\n\r":{[()]},*>+'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)})(e,this.offset),this.defaultReplaceRange=Vi.create(Oi.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=n;try{var i={isIncomplete:!1,items:[]};this.nodePath=se(this.styleSheet,this.offset);for(var o=this.nodePath.length-1;0<=o;o--){var s=this.nodePath[o];if(s instanceof Ge)this.getCompletionsForDeclarationProperty(s.getParent(),i);else if(s instanceof Ir)s.parent instanceof tn?this.getVariableProposals(null,i):this.getCompletionsForExpression(s,i);else if(s instanceof Te){var a=s.findAParent(ne.ExtendsReference,ne.Ruleset);a&&(a.type===ne.ExtendsReference?this.getCompletionsForExtendsReference(a,s,i):this.getCompletionsForSelector(a,a&&a.isNested(),i))}else if(s instanceof ot)this.getCompletionsForFunctionArgument(s,s.getParent(),i);else if(s instanceof be)this.getCompletionsForDeclarations(s,i);else if(s instanceof Zr)this.getCompletionsForVariableDeclaration(s,i);else if(s instanceof Pe)this.getCompletionsForRuleSet(s,i);else if(s instanceof tn)this.getCompletionsForInterpolation(s,i);else if(s instanceof _t)this.getCompletionsForFunctionDeclaration(s,i);else if(s instanceof yn)this.getCompletionsForMixinReference(s,i);else if(s instanceof Ye)this.getCompletionsForFunctionArgument(null,s,i);else if(s instanceof cr)this.getCompletionsForSupports(s,i);else if(s instanceof xr)this.getCompletionsForSupportsCondition(s,i);else if(s instanceof cn)this.getCompletionsForExtendsReference(s,null,i);else if(s.type===ne.URILiteral)this.getCompletionForUriLiteralValue(s,i);else if(null===s.parent)this.getCompletionForTopLevel(i);else{if(s.type!==ne.StringLiteral||!this.isImportPathParent(s.parent.type))continue;this.getCompletionForImportPath(s,i)}if(0<i.items.length||this.offset>s.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),0===i.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,i),this.finalize(i)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},qo.prototype.isImportPathParent=function(e){return e===ne.Import},qo.prototype.finalize=function(e){return e},qo.prototype.findInNodePath=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.nodePath.length-1;0<=r;r--){var n=this.nodePath[r];if(-1!==e.indexOf(n.type))return n}return null},qo.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},qo.prototype.getPropertyProposals=function(e,t){var r=this,n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((function(o){var s=!1,a=(e?(a=r.getCompletionRange(e.getProperty()),c=o.name,Ci(e.colonPosition)||(c+=": ",s=!0)):(a=r.getCompletionRange(null),c=o.name+": ",s=!0),!e&&i&&(c+="$0;"),e&&!e.semicolonPosition&&i&&r.offset>=r.textDocument.offsetAt(a.end)&&(c+="$0;"),{label:o.name,documentation:qn(o,r.doesSupportMarkdown()),tags:zo(o)?[lo.Deprecated]:[],textEdit:Wi.replace(a,c),insertTextFormat:co.Snippet,kind:ao.Property});o.restrictions||(s=!1),n&&s&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"});var c=(255-("number"==typeof o.relevance?Math.min(Math.max(o.relevance,0),99):50)).toString(16);s=Y(o.name,"-")?$o.VendorPrefixed:$o.Normal;a.sortText=s+"_"+c,t.items.push(a)})),this.completionParticipants.forEach((function(e){e.onCssProperty&&e.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})})),t},Object.defineProperty(qo.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.triggerPropertyValueCompletion)||e},enumerable:!1,configurable:!0}),Object.defineProperty(qo.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.completePropertyWithSemicolon)||e},enumerable:!1,configurable:!0}),qo.prototype.getCompletionsForDeclarationValue=function(e,t){for(var r,n,i,o,s=this,a=e.getFullPropertyName(),c=this.cssDataManager.getProperty(a),l=e.getValue()||null;l&&l.hasChildren();)l=l.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(e){e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:a,propertyValue:s.currentWord,range:s.getCompletionRange(l)})})),c){if(c.restrictions)for(var h=0,u=c.restrictions;h<u.length;h++)switch(u[h]){case"color":this.getColorProposals(c,l,t);break;case"position":this.getPositionProposals(c,l,t);break;case"repeat":this.getRepeatStyleProposals(c,l,t);break;case"line-style":this.getLineStyleProposals(c,l,t);break;case"line-width":this.getLineWidthProposals(c,l,t);break;case"geometry-box":this.getGeometryBoxProposals(c,l,t);break;case"box":this.getBoxProposals(c,l,t);break;case"image":this.getImageProposals(c,l,t);break;case"timing-function":this.getTimingFunctionProposals(c,l,t);break;case"shape":this.getBasicShapeProposals(c,l,t)}this.getValueEnumProposals(c,l,t),this.getCSSWideKeywordProposals(c,l,t),this.getUnitProposals(c,l,t)}else{r=this.styleSheet,i=(n=e).getFullPropertyName(),o=new Ho,r.accept((function(e){var t;return e instanceof Ue&&e!==n&&(t=(t=e).getFullPropertyName(),i===t)&&(t=e.getValue())&&t.accept(m),!0}));for(var p=0,d=o.getEntries();p<d.length;p++){var f=d[p];t.items.push({label:f,textEdit:Wi.replace(this.getCompletionRange(l),f),kind:ao.Value})}}function m(e){return(e instanceof de||e instanceof Qr||e instanceof Wr)&&o.add(e.getText()),!0}return this.getVariableProposals(l,t),this.getTermProposals(c,l,t),t},qo.prototype.getValueEnumProposals=function(e,t,r){if(e.values)for(var n=0,i=e.values;n<i.length;n++){var o=i[n],s=o.name,a=void 0,c=(ee(s,")")&&-1!==(c=s.lastIndexOf("("))&&(s=s.substr(0,c)+"($1)",a=Wo),$o.Enums);o=(Y(o.name,"-")&&(c+=$o.VendorPrefixed),{label:o.name,documentation:qn(o,this.doesSupportMarkdown()),tags:zo(e)?[lo.Deprecated]:[],textEdit:Wi.replace(this.getCompletionRange(t),s),sortText:c,kind:ao.Value,insertTextFormat:a});r.items.push(o)}return r},qo.prototype.getCSSWideKeywordProposals=function(e,t,r){for(var n in di)r.items.push({label:n,documentation:di[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getCompletionsForInterpolation=function(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t},qo.prototype.getVariableProposals=function(e,t){for(var r=0,n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Variable);r<n.length;r++){var i=n[r],o=Y(i.name,"--")?"var("+i.name+")":i.name;o={label:i.name,documentation:i.value&&te(i.value),textEdit:Wi.replace(this.getCompletionRange(e),o),kind:ao.Variable,sortText:$o.Variable};"string"==typeof o.documentation&&Zo(o.documentation)&&(o.kind=ao.Color),i.node.type===ne.FunctionParameter&&(i=i.node.getParent()).type===ne.MixinDeclaration&&(o.detail=Uo("completion.argument","argument from '{0}'",i.getName())),t.items.push(o)}return t},qo.prototype.getVariableProposalsForCSSVarFunction=function(e){for(var t=0,r=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Variable).filter((function(e){return Y(e.name,"--")}));t<r.length;t++){var n=r[t];n={label:n.name,documentation:n.value&&te(n.value),textEdit:Wi.replace(this.getCompletionRange(null),n.name),kind:ao.Variable};"string"==typeof n.documentation&&Zo(n.documentation)&&(n.kind=ao.Color),e.items.push(n)}return e},qo.prototype.getUnitProposals=function(e,t,r){var n,i="0";if(0<this.currentWord.length?(n=this.currentWord.match(/^-?\d[\.\d+]*/))&&(i=n[0],r.isIncomplete=i.length===this.currentWord.length):0===this.currentWord.length&&(r.isIncomplete=!0),t&&t.parent&&t.parent.type===ne.Term&&(t=t.getParent()),e.restrictions)for(var o=0,s=e.restrictions;o<s.length;o++){var a=s[o];a=yi[a];if(a)for(var c=0,l=a;c<l.length;c++){var h=i+l[c];r.items.push({label:h,textEdit:Wi.replace(this.getCompletionRange(t),h),kind:ao.Unit})}}return r},qo.prototype.getCompletionRange=function(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){var t=-1!==e.end?this.textDocument.positionAt(e.end):this.position;e=this.textDocument.positionAt(e.offset);if(e.line===t.line)return Vi.create(e,t)}return this.defaultReplaceRange},qo.prototype.getColorProposals=function(e,t,r){for(var n in Qn)r.items.push({label:n,documentation:Qn[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Color});for(var n in Jn)r.items.push({label:n,documentation:Jn[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});var i=new Ho;this.styleSheet.acceptVisitor(new Jo(i,this.offset));for(var o=0,s=i.getEntries();o<s.length;o++)n=s[o],r.items.push({label:n,textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Color});for(var a=this,c=0,l=Gn;c<l.length;c++)(e=>{var n=1,i=e.func.replace(/\[?\$(\w+)\]?/g,(function(e,t){return"${"+n+++":"+t+"}"}));r.items.push({label:e.func.substr(0,e.func.indexOf("(")),detail:e.func,documentation:e.desc,textEdit:Wi.replace(a.getCompletionRange(t),i),insertTextFormat:Wo,kind:ao.Function})})(l[c]);return r},qo.prototype.getPositionProposals=function(e,t,r){for(var n in ai)r.items.push({label:n,documentation:ai[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getRepeatStyleProposals=function(e,t,r){for(var n in ci)r.items.push({label:n,documentation:ci[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getLineStyleProposals=function(e,t,r){for(var n in li)r.items.push({label:n,documentation:li[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getLineWidthProposals=function(e,t,r){for(var n=0,i=hi;n<i.length;n++){var o=i[n];r.items.push({label:o,textEdit:Wi.replace(this.getCompletionRange(t),o),kind:ao.Value})}return r},qo.prototype.getGeometryBoxProposals=function(e,t,r){for(var n in pi)r.items.push({label:n,documentation:pi[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getBoxProposals=function(e,t,r){for(var n in ui)r.items.push({label:n,documentation:ui[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getImageProposals=function(e,t,r){for(var n in fi){var i=Qo(n);r.items.push({label:n,documentation:fi[n],textEdit:Wi.replace(this.getCompletionRange(t),i),kind:ao.Function,insertTextFormat:n!==i?Wo:void 0})}return r},qo.prototype.getTimingFunctionProposals=function(e,t,r){for(var n in mi){var i=Qo(n);r.items.push({label:n,documentation:mi[n],textEdit:Wi.replace(this.getCompletionRange(t),i),kind:ao.Function,insertTextFormat:n!==i?Wo:void 0})}return r},qo.prototype.getBasicShapeProposals=function(e,t,r){for(var n in gi){var i=Qo(n);r.items.push({label:n,documentation:gi[n],textEdit:Wi.replace(this.getCompletionRange(t),i),kind:ao.Function,insertTextFormat:n!==i?Wo:void 0})}return r},qo.prototype.getCompletionsForStylesheet=function(e){var t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof Pe?this.getCompletionsForRuleSet(t,e):t instanceof cr?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)},qo.prototype.getCompletionForTopLevel=function(e){var t=this;return this.cssDataManager.getAtDirectives().forEach((function(r){e.items.push({label:r.name,textEdit:Wi.replace(t.getCompletionRange(null),r.name),documentation:qn(r,t.doesSupportMarkdown()),tags:zo(r)?[lo.Deprecated]:[],kind:ao.Keyword})})),this.getCompletionsForSelector(null,!1,e),e},qo.prototype.getCompletionsForRuleSet=function(e,t){var r=e.getDeclarations();return r&&r.endsWith("}")&&this.offset>=r.end?this.getCompletionForTopLevel(t):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},qo.prototype.getCompletionsForSelector=function(e,t,r){var n=this,i=this.findInNodePath(ne.PseudoSelector,ne.IdentifierSelector,ne.ClassSelector,ne.ElementNameSelector);if(!i&&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=Vi.create(Oi.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(e){var t=Qo(e.name);t={label:e.name,textEdit:Wi.replace(n.getCompletionRange(i),t),documentation:qn(e,n.doesSupportMarkdown()),tags:zo(e)?[lo.Deprecated]:[],kind:ao.Function,insertTextFormat:e.name!==t?Wo:void 0};Y(e.name,":-")&&(t.sortText=$o.VendorPrefixed),r.items.push(t)})),this.cssDataManager.getPseudoElements().forEach((function(e){var t=Qo(e.name);t={label:e.name,textEdit:Wi.replace(n.getCompletionRange(i),t),documentation:qn(e,n.doesSupportMarkdown()),tags:zo(e)?[lo.Deprecated]:[],kind:ao.Function,insertTextFormat:e.name!==t?Wo:void 0};Y(e.name,"::-")&&(t.sortText=$o.VendorPrefixed),r.items.push(t)})),!t){for(var o=0,s=vi;o<s.length;o++){var a=s[o];r.items.push({label:a,textEdit:Wi.replace(this.getCompletionRange(i),a),kind:ao.Keyword})}for(var c=0,l=bi;c<l.length;c++)a=l[c],r.items.push({label:a,textEdit:Wi.replace(this.getCompletionRange(i),a),kind:ao.Keyword})}var h={},u=(h[this.currentWord]=!0,this.textDocument.getText());return this.styleSheet.accept((function(e){return!(e.type===ne.SimpleSelector&&0<e.length&&("."!==(e=u.substr(e.offset,e.length)).charAt(0)||h[e]||(h[e]=!0,r.items.push({label:e,textEdit:Wi.replace(n.getCompletionRange(i),e),kind:ao.Keyword})),1))})),e&&e.isNested()&&(t=e.getSelectors().findFirstChildBeforeOffset(this.offset))&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,r),r},qo.prototype.getCompletionsForDeclarations=function(e,t){if(e&&this.offset!==e.offset){if(e=e.findFirstChildBeforeOffset(this.offset),!e)return this.getCompletionsForDeclarationProperty(null,t);if(e instanceof Ve){var r=e;if(!Ci(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,t);if(Ci(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(r instanceof Ue)return this.getCompletionsForDeclarationValue(r,t)}else e instanceof cn?this.getCompletionsForExtendsReference(e,null,t):(this.currentWord&&"@"===this.currentWord[0]||e instanceof Pe)&&this.getCompletionsForDeclarationProperty(null,t)}return t},qo.prototype.getCompletionsForVariableDeclaration=function(e,t){return this.offset&&Ci(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue(),t),t},qo.prototype.getCompletionsForExpression=function(e,t){var r=e.getParent();return r instanceof ot?(this.getCompletionsForFunctionArgument(r,r.getParent(),t),t):(r=e.findParent(ne.Declaration))?!(e=e.findChildAtOffset(this.offset,!0))||e instanceof Qr||e instanceof de?this.getCompletionsForDeclarationValue(r,t):t:(this.getTermProposals(void 0,null,t),t)},qo.prototype.getCompletionsForFunctionArgument=function(e,t,r){var n=t.getIdentifier();return n&&n.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(r)),r},qo.prototype.getCompletionsForFunctionDeclaration=function(e,t){return e=e.getDeclarations(),e&&this.offset>e.offset&&this.offset<e.end&&this.getTermProposals(void 0,null,t),t},qo.prototype.getCompletionsForMixinReference=function(e,t){for(var r=this,n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Mixin);n<i.length;n++){var o=i[n];o.node instanceof xn&&t.items.push(this.makeTermProposal(o,o.node.getParameters(),null))}var s=e.getIdentifier()||null;return this.completionParticipants.forEach((function(e){e.onCssMixinReference&&e.onCssMixinReference({mixinName:r.currentWord,range:r.getCompletionRange(s)})})),t},qo.prototype.getTermProposals=function(e,t,r){for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Function);n<i.length;n++){var o=i[n];o.node instanceof _t&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),t))}return r},qo.prototype.makeTermProposal=function(e,t,r){e.node;t=t.getChildren().map((function(e){return e instanceof rt?e.getName():e.getText()}));var n=e.name+"("+t.map((function(e,t){return"${"+(t+1)+":"+e+"}"})).join(", ")+")";return{label:e.name,detail:e.name+"("+t.join(", ")+")",textEdit:Wi.replace(this.getCompletionRange(r),n),insertTextFormat:Wo,kind:ao.Function,sortText:$o.Term}},qo.prototype.getCompletionsForSupportsCondition=function(e,t){var r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof Ue)return!Ci(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,t):this.getCompletionsForDeclarationValue(r,t);if(r instanceof xr)return this.getCompletionsForSupportsCondition(r,t)}return Ci(e.lParent)&&this.offset>e.lParent&&(!Ci(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},qo.prototype.getCompletionsForSupports=function(e,t){var r=e.getDeclarations();return!r||this.offset<=r.offset?(r=e.findFirstChildBeforeOffset(this.offset))instanceof xr?this.getCompletionsForSupportsCondition(r,t):t:this.getCompletionForTopLevel(t)},qo.prototype.getCompletionsForExtendsReference=function(e,t,r){return r},qo.prototype.getCompletionForUriLiteralValue=function(e,t){var r,n,i,o;return o=e.hasChildren()?(i=e.getChild(0),r=i.getText(),n=this.position,this.getCompletionRange(i)):(r="",n=this.position,i=this.textDocument.positionAt(e.offset+"url(".length),Vi.create(i,i)),this.completionParticipants.forEach((function(e){e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:r,position:n,range:o})})),t},qo.prototype.getCompletionForImportPath=function(e,t){var r=this;return this.completionParticipants.forEach((function(t){t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})})),t},qo.prototype.hasCharacterAtPosition=function(e,t){var r=this.textDocument.getText();return 0<=e&&e<r.length&&r.charAt(e)===t},qo.prototype.doesSupportMarkdown=function(){if(!Ci(this.supportsMarkdown)){if(!Ci(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var e=null==(e=null==(e=null==(e=this.lsOptions.clientCapabilities.textDocument)?void 0:e.completion)?void 0:e.completionItem)?void 0:e.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&-1!==e.indexOf(io.Markdown)}return this.supportsMarkdown},qo);function qo(e,t,r){this.variablePrefix=e=void 0===e?null:e,this.lsOptions=t,this.cssDataManager=r,this.completionParticipants=[]}function zo(e){return!(!e.status||"nonstandard"!==e.status&&"obsolete"!==e.status)}Go.prototype.add=function(e){this.entries[e]=!0},Go.prototype.getEntries=function(){return Object.keys(this.entries)};var Ho=Go;function Go(){this.entries={}}function Qo(e){return e.replace(/\(\)$/,"($1)")}Xo.prototype.visitNode=function(e){return(e instanceof Wr||e instanceof Ye&&Zn(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0};var Jo=Xo;function Xo(e,t){this.entries=e,this.currentOffset=t}function Zo(e){return e.toLowerCase()in Qn||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}Yo=function(e,t){return(Yo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Yo,es=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Yo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},ts=(rs.prototype.findAttribute=function(e){if(this.attributes)for(var t=0,r=this.attributes;t<r.length;t++){var n=r[t];if(n.name===e)return n.value}return null},rs.prototype.addChild=function(e){e instanceof rs&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)},rs.prototype.append=function(e){var t;this.attributes&&((t=this.attributes[this.attributes.length-1]).value=t.value+e)},rs.prototype.prepend=function(e){var t;this.attributes&&((t=this.attributes[0]).value=e+t.value)},rs.prototype.findRoot=function(){for(var e=this;e.parent&&!(e.parent instanceof is);)e=e.parent;return e},rs.prototype.removeChild=function(e){return!(!this.children||(e=this.children.indexOf(e),-1===e))&&(this.children.splice(e,1),!0)},rs.prototype.addAttr=function(e,t){this.attributes||(this.attributes=[]);for(var r=0,n=this.attributes;r<n.length;r++){var i=n[r];if(i.name===e)return void(i.value+=" "+t)}this.attributes.push({name:e,value:t})},rs.prototype.clone=function(e){void 0===e&&(e=!0);var t=new rs;if(this.attributes){t.attributes=[];for(var r=0,n=this.attributes;r<n.length;r++){var i=n[r];t.addAttr(i.name,i.value)}}if(e&&this.children){t.children=[];for(var o=0;o<this.children.length;o++)t.addChild(this.children[o].clone())}return t},rs.prototype.cloneWithParent=function(){var e=this.clone(!1);return!this.parent||this.parent instanceof is||this.parent.cloneWithParent().addChild(e),e},rs);function rs(){this.parent=null,this.children=null,this.attributes=null}es(os,ns=ts);var ns,is=os;function os(){return null!==ns&&ns.apply(this,arguments)||this}es(cs,ss=ts);var ss,as=cs;function cs(e){var t=ss.call(this)||this;return t.addAttr("name",e),t}hs.prototype.print=function(e){return this.result=[],e instanceof is?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),[{language:"html",value:this.result.join("\n")}]},hs.prototype.doPrint=function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];this.doPrintElement(i,t),i.children&&this.doPrint(i.children,t+1)}},hs.prototype.writeLine=function(e,t){e=new Array(e+1).join(" "),this.result.push(e+t)},hs.prototype.doPrintElement=function(e,t){var r=e.findAttribute("name");if(e instanceof as||"…"===r)this.writeLine(t,r);else{var n=["<"];if(n.push(r||"element"),e.attributes)for(var i=0,o=e.attributes;i<o.length;i++){var s=o[i];"name"!==s.name&&(n.push(" "),n.push(s.name),s=s.value)&&(n.push("="),n.push(ls.ensure(s,this.quote)))}n.push(">"),this.writeLine(t,n.join(""))}};var ls;function hs(e){this.quote=e,this.result=[]}function us(e){var t=e.match(/^['"](.*)["']$/);return t?t[1]:e}(q=ls=ls||{}).ensure=function(e,t){return t+us(e)+t},q.remove=us;function ps(e,t){for(var r=new ts,n=0,i=e.getChildren();n<i.length;n++){var o=i[n];switch(o.type){case ne.SelectorCombinator:if(t){var s=o.getText().split("&");if(1===s.length){r.addAttr("name",s[0]);break}r=t.cloneWithParent(),s[0]&&r.findRoot().prepend(s[0]);for(var a,c=1;c<s.length;c++)1<c&&(a=t.cloneWithParent(),r.addChild(a.findRoot()),r=a),r.append(s[c])}break;case ne.SelectorPlaceholder:if(o.matches("@at-root"))return r;case ne.ElementNameSelector:var l=o.getText();r.addAttr("name","*"===l?"element":ds(l));break;case ne.ClassSelector:r.addAttr("class",ds(o.getText().substring(1)));break;case ne.IdentifierSelector:r.addAttr("id",ds(o.getText().substring(1)));break;case ne.MixinDeclaration:r.addAttr("class",o.getName());break;case ne.PseudoSelector:r.addAttr(ds(o.getText()),"");break;case ne.AttributeSelector:l=o;var h=l.getIdentifier();if(h){var u=l.getValue(),p=l.getOperator(),d=void 0;if(u&&p)switch(ds(p.getText())){case"|=":d=ls.remove(ds(u.getText()))+"-…";break;case"^=":d=ls.remove(ds(u.getText()))+"…";break;case"$=":d="…"+ls.remove(ds(u.getText()));break;case"~=":d=" … "+ls.remove(ds(u.getText()))+" … ";break;case"*=":d="…"+ls.remove(ds(u.getText()))+"…";break;default:d=ls.remove(ds(u.getText()))}r.addAttr(ds(h.getText()),d)}}}return r}function ds(e){var t=new X;t.setSource(e),t=t.scanUnquotedString();return t?t.text:e}fs.prototype.processSelector=function(e){var t,r=null;this.element instanceof is||e.getChildren().some((function(e){return e.hasChildren()&&e.getChild(0).type===ne.SelectorCombinator}))&&(t=this.element.findRoot()).parent instanceof is&&(r=this.element,this.element=t.parent,this.element.removeChild(t),this.prev=null);for(var n=0,i=e.getChildren();n<i.length;n++){var o,s,a=i[n];a instanceof Te&&(this.prev instanceof Te?(o=new as("…"),this.element.addChild(o),this.element=o):this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent),this.prev&&this.prev.matches("~")&&this.element.addChild(new as("⋮")),s=(o=ps(a,r)).findRoot(),this.element.addChild(s),this.element=o),(a instanceof Te||a.type===ne.SelectorCombinatorParent||a.type===ne.SelectorCombinatorShadowPiercingDescendant||a.type===ne.SelectorCombinatorSibling||a.type===ne.SelectorCombinatorAllSiblings)&&(this.prev=a)}};function fs(e){this.prev=null,this.element=e}var ms=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},gs=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},ys=Bn,vs=/^\w+:\/\//,bs=/^data:/,xs=(Cs.prototype.findDefinition=function(e,t,r){var n=new Zi(r);r=oe(r,e.offsetAt(t));return r&&(t=n.findSymbolFromNode(r))?{uri:e.uri,range:ks(t.node,e)}:null},Cs.prototype.findReferences=function(e,t,r){return this.findDocumentHighlights(e,t,r).map((function(t){return{uri:e.uri,range:t.range}}))},Cs.prototype.findDocumentHighlights=function(e,t,r){var n,i,o,s=[],a=oe(r,e.offsetAt(t));return a&&a.type!==ne.Stylesheet&&a.type!==ne.Declarations&&(a.type===ne.Identifier&&a.parent&&a.parent.type===ne.ClassSelector&&(a=a.parent),n=new Zi(r),i=n.findSymbolFromNode(a),o=a.getText(),r.accept((function(t){if(i){if(n.matchesSymbol(t,i))return s.push({kind:_s(t),range:ks(t,e)}),!1}else a&&a.type===t.type&&t.matches(o)&&s.push({kind:_s(t),range:ks(t,e)});return!0}))),s},Cs.prototype.isRawStringDocumentLinkNode=function(e){return e.type===ne.Import},Cs.prototype.findDocumentLinks=function(e,t,r){for(var n=[],i=0,o=this.findUnresolvedLinks(e,t);i<o.length;i++){var s=o[i].link,a=s.target;a&&!bs.test(a)&&(vs.test(a)||(a=r.resolveReference(a,e.uri))&&(s.target=a),n.push(s))}return n},Cs.prototype.findDocumentLinks2=function(e,t,r){return ms(this,void 0,void 0,(function(){var n,i,o,s,a,c,l;return gs(this,(function(h){switch(h.label){case 0:o=this.findUnresolvedLinks(e,t),n=[],i=0,o=o,h.label=1;case 1:return i<o.length?(s=o[i],a=s.link,(c=a.target)&&!bs.test(c)?[3,2]:[3,5]):[3,6];case 2:return vs.test(c)?(n.push(a),[3,5]):[3,3];case 3:return[4,this.resolveRelativeReference(c,e.uri,r,s.isRawLink)];case 4:void 0!==(l=h.sent())&&(a.target=l,n.push(a)),h.label=5;case 5:return i++,[3,1];case 6:return[2,n]}}))}))},Cs.prototype.findUnresolvedLinks=function(e,t){function r(t){var r=t.getText(),o=ks(t,e);o.start.line===o.end.line&&o.start.character===o.end.character||((Y(r,"'")||Y(r,'"'))&&(r=r.slice(1,-1)),t=!!t.parent&&n.isRawStringDocumentLinkNode(t.parent),i.push({link:{target:r,range:o},isRawLink:t}))}var n=this,i=[];return t.accept((function(e){var t;return e.type===ne.URILiteral?((t=e.getChild(0))&&r(t),!1):!e.parent||!n.isRawStringDocumentLinkNode(e.parent)||((Y(t=e.getText(),"'")||Y(t,'"'))&&r(e),!1)})),i},Cs.prototype.findDocumentSymbols=function(e,t){var r=[];return t.accept((function(t){var n={name:null,kind:po.Class,location:null},i=t;return t instanceof Re?(n.name=t.getText(),(i=t.findAParent(ne.Ruleset,ne.ExtendsReference))&&(n.location=Li.create(e.uri,ks(i,e)),r.push(n)),!1):(t instanceof Zr?(n.name=t.getName(),n.kind=po.Variable):t instanceof xn?(n.name=t.getName(),n.kind=po.Method):t instanceof _t?(n.name=t.getName(),n.kind=po.Function):t instanceof Ot?n.name=ys("literal.keyframes","@keyframes {0}",t.getName()):t instanceof It?n.name=ys("literal.fontface","@font-face"):t instanceof or&&(t=t.getChild(0))instanceof fr&&(n.name="@media "+t.getText(),n.kind=po.Module),n.name&&(n.location=Li.create(e.uri,ks(i,e)),r.push(n)),!0)})),r},Cs.prototype.findDocumentColors=function(e,t){var r=[];return t.accept((function(t){return t=((e,t)=>{var r=si(e);return r?(e=ks(e,t),{color:r,range:e}):null})(t,e),t&&r.push(t),!0})),r},Cs.prototype.getColorPresentations=function(e,t,r,n){var i=[],o=Math.round(255*r.red),s=Math.round(255*r.green),a=Math.round(255*r.blue),c=1===r.alpha?"rgb("+o+", "+s+", "+a+")":"rgba("+o+", "+s+", "+a+", "+r.alpha+")";i.push({label:c,textEdit:Wi.replace(n,c)}),c=1===r.alpha?"#"+ws(o)+ws(s)+ws(a):"#"+ws(o)+ws(s)+ws(a)+ws(Math.round(255*r.alpha)),i.push({label:c,textEdit:Wi.replace(n,c)}),o=(e=>{var t=e.red,r=e.green,n=e.blue,i=(e=e.alpha,Math.max(t,r,n)),o=Math.min(t,r,n),s=0,a=0,c=(o+i)/2,l=i-o;if(0<l){switch(a=Math.min(c<=.5?l/(2*c):l/(2-2*c),1),i){case t:s=(r-n)/l+(r<n?6:0);break;case r:s=(n-t)/l+2;break;case n:s=(t-r)/l+4}s*=60,s=Math.round(s)}return{h:s,s:a,l:c,a:e}})(r);return c=1===o.a?"hsl("+o.h+", "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%)":"hsla("+o.h+", "+Math.round(100*o.s)+"%, "+Math.round(100*o.l)+"%, "+o.a+")",i.push({label:c,textEdit:Wi.replace(n,c)}),i},Cs.prototype.doRename=function(e,t,r,n){return t=this.findDocumentHighlights(e,t,n).map((function(e){return Wi.replace(e.range,r)})),{changes:((n={})[e.uri]=t,n)}},Cs.prototype.resolveRelativeReference=function(e,t,r,n){return ms(this,void 0,void 0,(function(){var n,i,o;return gs(this,(function(s){switch(s.label){case 0:return"~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider?(e=e.substring(1),Y(t,"file://")?(n="@"!==(a=e)[0]?a.substring(0,a.indexOf("/")):a.substring(0,a.indexOf("/",a.indexOf("/")+1)),o=r.resolveReference("/",t),i=Io(t),[4,this.resolvePathToModule(n,i,o)]):[3,2]):[3,3];case 1:if(i=s.sent())return o=e.substring(n.length+1),[2,Ao(i,o)];s.label=2;case 2:case 3:return[2,r.resolveReference(e,t)]}var a}))}))},Cs.prototype.resolvePathToModule=function(e,t,r){return ms(this,void 0,void 0,(function(){var n;return gs(this,(function(i){switch(i.label){case 0:return n=Ao(t,"node_modules",e,"package.json"),[4,this.fileExists(n)];case 1:return i.sent()?[2,Io(n)]:r&&t.startsWith(r)&&t.length!==r.length?[2,this.resolvePathToModule(e,Io(t),r)]:[2,void 0]}}))}))},Cs.prototype.fileExists=function(e){return ms(this,void 0,void 0,(function(){var t;return gs(this,(function(r){switch(r.label){case 0:if(!this.fileSystemProvider)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(e)];case 2:return(t=r.sent()).type===bo.Unknown&&-1===t.size?[2,!1]:[2,!0];case 3:return r.sent(),[2,!1];case 4:return[2]}}))}))},Cs);function Cs(e){this.fileSystemProvider=e}function ks(e,t){return Vi.create(t.positionAt(e.offset),t.positionAt(e.end))}function _s(e){if(e.type===ne.Selector)return uo.Write;if(e instanceof de&&e.parent&&e.parent instanceof Ge&&e.isCustomProperty)return uo.Write;if(e.parent)switch(e.parent.type){case ne.FunctionDeclaration:case ne.MixinDeclaration:case ne.Keyframe:case ne.VariableDeclaration:case ne.FunctionParameter:return uo.Write}return uo.Read}function ws(e){return e=e.toString(16),2!==e.length?"0"+e:e}var Ps=Bn,Ss=On.Warning,Es=On.Error,Rs=On.Ignore,Is=(z=function(e,t,r){this.id=e,this.message=t,this.defaultValue=r},function(e,t,r){this.id=e,this.message=t,this.defaultValue=r}),As={AllVendorPrefixes:new z("compatibleVendorPrefixes",Ps("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Rs),IncludeStandardPropertyWhenUsingVendorPrefix:new z("vendorPrefix",Ps("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),Ss),DuplicateDeclarations:new z("duplicateProperties",Ps("rule.duplicateDeclarations","Do not use duplicate style definitions"),Rs),EmptyRuleSet:new z("emptyRules",Ps("rule.emptyRuleSets","Do not use empty rulesets"),Ss),ImportStatemement:new z("importStatement",Ps("rule.importDirective","Import statements do not load in parallel"),Rs),BewareOfBoxModelSize:new z("boxModel",Ps("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Rs),UniversalSelector:new z("universalSelector",Ps("rule.universalSelector","The universal selector (*) is known to be slow"),Rs),ZeroWithUnit:new z("zeroUnits",Ps("rule.zeroWidthUnit","No unit for zero needed"),Rs),RequiredPropertiesForFontFace:new z("fontFaceProperties",Ps("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),Ss),HexColorLength:new z("hexColorLength",Ps("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Es),ArgsInColorFunction:new z("argumentsInColorFunction",Ps("rule.colorFunction","Invalid number of parameters"),Es),UnknownProperty:new z("unknownProperties",Ps("rule.unknownProperty","Unknown property."),Ss),UnknownAtRules:new z("unknownAtRules",Ps("rule.unknownAtRules","Unknown at-rule."),Ss),IEStarHack:new z("ieHack",Ps("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Rs),UnknownVendorSpecificProperty:new z("unknownVendorSpecificProperties",Ps("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Rs),PropertyIgnoredDueToDisplay:new z("propertyIgnoredDueToDisplay",Ps("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),Ss),AvoidImportant:new z("important",Ps("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Rs),AvoidFloat:new z("float",Ps("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Rs),AvoidIdSelector:new z("idSelector",Ps("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Rs)},Ds={ValidProperties:new Is("validProperties",Ps("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])};Ts.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var t=(e=>{switch(e){case"ignore":return On.Ignore;case"warning":return On.Warning;case"error":return On.Error}return null})(this.conf[e.id]);if(t)return t}return e.defaultValue},Ts.prototype.getSetting=function(e){return this.conf[e.id]};function Ts(e){this.conf=e=void 0===e?{}:e}var Fs=function(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e};function Ms(e,t,r,n){e=e[t],(e.value=r)&&!_i(e.properties,n)&&e.properties.push(n)}function Os(e,t,r,n){"top"===t||"right"===t||"bottom"===t||"left"===t?Ms(e,t,r,n):(Ms(t=e,"top",e=r,r=n),Ms(t,"right",e,r),Ms(t,"bottom",e,r),Ms(t,"left",e,r))}function Vs(e,t,r){switch(t.length){case 1:Os(e,void 0,t[0],r);break;case 2:Os(e,"top",t[0],r),Os(e,"bottom",t[0],r),Os(e,"right",t[1],r),Os(e,"left",t[1],r);break;case 3:Os(e,"top",t[0],r),Os(e,"right",t[1],r),Os(e,"left",t[1],r),Os(e,"bottom",t[2],r);break;case 4:Os(e,"top",t[0],r),Os(e,"right",t[1],r),Os(e,"bottom",t[2],r),Os(e,"left",t[3],r)}}function Ls(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e.matches(i))return 1}}function Ns(e,t){return!((t=void 0===t||t)&&Ls(e,["initial","unset"])||0===parseFloat(e.getText()))}function $s(e,t){return void 0===t&&(t=!0),e.map((function(e){return Ns(e,t)}))}function js(e,t){return void 0===t&&(t=!0),!(Ls(e,["none","hidden"])||t&&Ls(e,["initial","unset"]))}function Bs(e){for(var t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},r=0,n=e;r<n.length;r++){var i=n[r],o=i.node.value;if(void 0!==o)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":t.width=i;break;case"height":t.height=i;break;default:var s=i.fullPropertyName.split("-");switch(s[0]){case"border":switch(s[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(s[2]){case void 0:Os(t,s[1],(e=>{if(1===(e=e.getChildren()).length)return Ns(t=e[0])&&js(t);for(var t,r=0,n=e;r<n.length;r++)if(!Ns(t=n[r],!1)||!js(t,!1))return!1;return!0})(o),i);break;case"width":Os(t,s[1],Ns(o,!1),i);break;case"style":Os(t,s[1],js(o,!0),i)}break;case"width":Vs(t,$s(o.getChildren(),!1),i);break;case"style":Vs(t,((e,t)=>(void 0===t&&(t=!0),e.map((function(e){return js(e,t)}))))(o.getChildren(),!0),i)}break;case"padding":1===s.length?Vs(t,$s(o.getChildren(),!0),i):Os(t,s[1],Ns(o,!0),i)}}}return t}var Us=Bn,Ws=(Ks.prototype.add=function(e,t,r){var n=this.data[e];n||(this.data[e]=n={nodes:[],names:[]}),n.names.push(t),r&&n.nodes.push(r)},Ks);function Ks(){this.data={}}qs.entries=function(e,t,r,n,i){return t=new qs(t,r,n),e.acceptVisitor(t),t.completeValidations(),t.getEntries(i)},qs.prototype.isValidPropertyDeclaration=function(e){return e=e.fullPropertyName,this.validProperties[e]},qs.prototype.fetch=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var o=i[n];o.fullPropertyName===t&&r.push(o)}return r},qs.prototype.fetchWithValue=function(e,t,r){for(var n=[],i=0,o=e;i<o.length;i++){var s,a=o[i];a.fullPropertyName===t&&(s=a.node.getValue())&&this.findValueInExpression(s,r)&&n.push(a)}return n},qs.prototype.findValueInExpression=function(e,t){var r=!1;return e.accept((function(e){return!(r=!(e.type!==ne.Identifier||!e.matches(t))||r)})),r},qs.prototype.getEntries=function(e){return void 0===e&&(e=On.Warning|On.Error),this.warnings.filter((function(t){return 0!=(t.getLevel()&e)}))},qs.prototype.addEntry=function(e,t,r){e=new Nn(e,t,this.settings.getRule(t),r),this.warnings.push(e)},qs.prototype.getMissingNames=function(e,t){for(var r=e.slice(0),n=0;n<t.length;n++){var i=r.indexOf(t[n]);-1!==i&&(r[i]=null)}var o=null;for(n=0;n<r.length;n++){var s=r[n];s&&(o=null===o?Us("namelist.single","'{0}'",s):Us("namelist.concatenated","{0}, '{1}'",o,s))}return o},qs.prototype.visitNode=function(e){switch(e.type){case ne.UnknownAtRule:return this.visitUnknownAtRule(e);case ne.Keyframe:return this.visitKeyframe(e);case ne.FontFace:return this.visitFontFace(e);case ne.Ruleset:return this.visitRuleSet(e);case ne.SimpleSelector:return this.visitSimpleSelector(e);case ne.Function:return this.visitFunction(e);case ne.NumericValue:return this.visitNumericValue(e);case ne.Import:return this.visitImport(e);case ne.HexColorValue:return this.visitHexColorValue(e);case ne.Prio:return this.visitPrio(e);case ne.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0},qs.prototype.completeValidations=function(){this.validateKeyframes()},qs.prototype.visitUnknownAtRule=function(e){return e=e.getChild(0),!!e&&!this.cssDataManager.getAtDirective(e.getText())&&(this.addEntry(e,As.UnknownAtRules,"Unknown at rule "+e.getText()),!0)},qs.prototype.visitKeyframe=function(e){var t,r=e.getKeyword();return!!r&&(t=r.getText(),this.keyframes.add(e.getName(),t,"@keyframes"!==t?r:null),!0)},qs.prototype.validateKeyframes=function(){var e,t=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(e in this.keyframes.data){var r=this.keyframes.data[e].names,n=-1===r.indexOf("@keyframes");if(n||1!==r.length){var i=this.getMissingNames(t,r);if(i||n)for(var o=0,s=this.keyframes.data[e].nodes;o<s.length;o++){var a,c=s[o];n&&(a=Us("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes."),this.addEntry(c,As.IncludeStandardPropertyWhenUsingVendorPrefix,a)),i&&(a=Us("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",i),this.addEntry(c,As.AllVendorPrefixes,a))}}}return!0},qs.prototype.visitSimpleSelector=function(e){var t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,As.UniversalSelector),!0},qs.prototype.visitIdentifierSelector=function(e){return this.addEntry(e,As.AvoidIdSelector),!0},qs.prototype.visitImport=function(e){return this.addEntry(e,As.ImportStatemement),!0},qs.prototype.visitRuleSet=function(e){var t=e.getDeclarations();if(!t)return!1;t.hasChildren()||this.addEntry(e.getSelectors(),As.EmptyRuleSet);for(var r=[],n=0,i=t.getChildren();n<i.length;n++)(m=i[n])instanceof Ue&&r.push(new Fs(m));if(t=Bs(r),t.width){var o=[];if(t.right.value&&(o=wi(o,t.right.properties)),0!==(o=t.left.value?wi(o,t.left.properties):o).length){for(var s=0,a=o;s<a.length;s++){var c=a[s];this.addEntry(c.node,As.BewareOfBoxModelSize)}this.addEntry(t.width.node,As.BewareOfBoxModelSize)}}if(t.height&&(o=[],t.top.value&&(o=wi(o,t.top.properties)),0!==(o=t.bottom.value?wi(o,t.bottom.properties):o).length)){for(var l=0,h=o;l<h.length;l++)c=h[l],this.addEntry(c.node,As.BewareOfBoxModelSize);this.addEntry(t.height.node,As.BewareOfBoxModelSize)}if(0<this.fetchWithValue(r,"display","inline-block").length)for(var u=this.fetch(r,"float"),p=0;p<u.length;p++){var d=u[p].node;(y=d.getValue())&&!y.matches("none")&&this.addEntry(d,As.PropertyIgnoredDueToDisplay,Us("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if(0<this.fetchWithValue(r,"display","block").length)for(u=this.fetch(r,"vertical-align"),p=0;p<u.length;p++)this.addEntry(u[p].node,As.PropertyIgnoredDueToDisplay,Us("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));var f=this.fetch(r,"float");for(p=0;p<f.length;p++){var m=f[p];this.isValidPropertyDeclaration(m)||this.addEntry(m.node,As.AvoidFloat)}for(var g=0;g<r.length;g++){var y;m=r[g];if("background"!==m.fullPropertyName&&!this.validProperties[m.fullPropertyName]&&(y=m.node.getValue())&&"-"!==this.documentText.charAt(y.offset)){var v=this.fetch(r,m.fullPropertyName);if(1<v.length)for(var b=0;b<v.length;b++){var x=v[b].node.getValue();x&&"-"!==this.documentText.charAt(x.offset)&&v[b]!==m&&this.addEntry(m.node,As.DuplicateDeclarations)}}}if(!e.getSelectors().matches(":export")){for(var C=new Ws,k=!1,_=0,w=r;_<w.length;_++){var P,S,E,R=(m=w[_]).node;this.isCSSDeclaration(R)?"-"===(S=(P=m.fullPropertyName).charAt(0))?"-"!==P.charAt(1)&&(this.cssDataManager.isKnownProperty(P)||this.validProperties[P]||this.addEntry(R.getProperty(),As.UnknownVendorSpecificProperty),E=R.getNonPrefixedPropertyName(),C.add(E,P,R.getProperty())):(E=P,"*"!==S&&"_"!==S||(this.addEntry(R.getProperty(),As.IEStarHack),P=P.substr(1)),this.cssDataManager.isKnownProperty(E)||this.cssDataManager.isKnownProperty(P)||this.validProperties[P]||this.addEntry(R.getProperty(),As.UnknownProperty,Us("property.unknownproperty.detailed","Unknown property: '{0}'",R.getFullPropertyName())),C.add(P,P,null)):k=!0}if(!k)for(var I in C.data){var A=C.data[I],D=A.names,T=this.cssDataManager.isStandardProperty(I)&&-1===D.indexOf(I);if(T||1!==D.length){for(var F=[],M=(g=0,qs.prefixes.length);g<M;g++){var O=qs.prefixes[g];this.cssDataManager.isStandardProperty(O+I)&&F.push(O+I)}var V=this.getMissingNames(F,D);if(V||T)for(var L=0,N=A.nodes;L<N.length;L++){var $,j=N[L];T&&($=Us("property.standard.missing","Also define the standard property '{0}' for compatibility",I),this.addEntry(j,As.IncludeStandardPropertyWhenUsingVendorPrefix,$)),V&&($=Us("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",V),this.addEntry(j,As.AllVendorPrefixes,$))}}}}return!0},qs.prototype.visitPrio=function(e){return this.addEntry(e,As.AvoidImportant),!0},qs.prototype.visitNumericValue=function(e){var t=e.findParent(ne.Function);if((!t||"calc"!==t.getName())&&(t=e.findParent(ne.Declaration),t&&t.getValue())){var r=e.getValue();if(!r.unit||-1===yi.length.indexOf(r.unit.toLowerCase()))return!0;0===parseFloat(r.value)&&r.unit&&!this.validProperties[t.getFullPropertyName()]&&this.addEntry(e,As.ZeroWithUnit)}return!0},qs.prototype.visitFontFace=function(e){var t=e.getDeclarations();if(!t)return!1;for(var r=!1,n=!1,i=!1,o=0,s=t.getChildren();o<s.length;o++){var a=s[o];this.isCSSDeclaration(a)?("src"===(a=a.getProperty().getName().toLowerCase())&&(r=!0),"font-family"===a&&(n=!0)):i=!0}return i||r&&n||this.addEntry(e,As.RequiredPropertiesForFontFace),!0},qs.prototype.isCSSDeclaration=function(e){return e instanceof Ue&&!!e.getValue()&&!!(e=e.getProperty())&&!(!(e=e.getIdentifier())||e.containsInterpolation())},qs.prototype.visitHexColorValue=function(e){var t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,As.HexColorLength),!1},qs.prototype.visitFunction=function(e){var t=e.getName().toLowerCase(),r=-1,n=0;switch(t){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4}return-1!==r&&(e.getArguments().accept((function(e){return!(e instanceof Tr&&(n+=1,1))})),n!==r)&&this.addEntry(e,As.ArgsInColorFunction),!0},qs.prefixes=["-ms-","-moz-","-o-","-webkit-"];function qs(e,t,r){var n=this;this.cssDataManager=r,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new Ws,this.validProperties={},r=t.getSetting(Ds.ValidProperties);Array.isArray(r)&&r.forEach((function(e){"string"==typeof e&&(e=e.trim().toLowerCase()).length&&(n.validProperties[e]=!0)}))}zs=function(e,t){return(zs=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};K=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zs(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var zs,Hs,Gs="/".charCodeAt(0),Qs="\n".charCodeAt(0),Js="\r".charCodeAt(0),Xs="\f".charCodeAt(0),Zs="$".charCodeAt(0),Ys="#".charCodeAt(0),ea="{".charCodeAt(0),ta="=".charCodeAt(0),ra="!".charCodeAt(0),na="<".charCodeAt(0),ia=">".charCodeAt(0),oa=".".charCodeAt(0),sa=("@".charCodeAt(0),n.CustomToken),aa=sa++,ca=sa++,la=(sa++,sa++),ha=sa++,ua=sa++,pa=sa++,da=sa++,fa=(K(ma,Hs=X),ma.prototype.scanNext=function(e){if(this.stream.advanceIfChar(Zs)){var t=["$"];if(this.ident(t))return this.finishToken(e,aa,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Ys,ea])?this.finishToken(e,ca):this.stream.advanceIfChars([ta,ta])?this.finishToken(e,la):this.stream.advanceIfChars([ra,ta])?this.finishToken(e,ha):this.stream.advanceIfChar(na)?this.stream.advanceIfChar(ta)?this.finishToken(e,pa):this.finishToken(e,n.Delim):this.stream.advanceIfChar(ia)?this.stream.advanceIfChar(ta)?this.finishToken(e,ua):this.finishToken(e,n.Delim):this.stream.advanceIfChars([oa,oa,oa])?this.finishToken(e,da):Hs.prototype.scanNext.call(this,e)},ma.prototype.comment=function(){return!!Hs.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Gs,Gs])||(this.stream.advanceWhileChar((function(e){switch(e){case Qs:case Js:case Xs:return!1;default:return!0}})),0))},ma);function ma(){return null!==Hs&&Hs.apply(this,arguments)||this}var ga,ya,va=Bn,ba=(B=function(e,t){this.id=e,this.message=t},{FromExpected:new B("scss-fromexpected",va("expected.from","'from' expected")),ThroughOrToExpected:new B("scss-throughexpected",va("expected.through","'through' or 'to' expected")),InExpected:new B("scss-fromexpected",va("expected.in","'in' expected"))});function xa(){return ya.call(this,new fa)||this}ga=function(e,t){return(ga=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ga(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(xa,ya=U),xa.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||ya.prototype._parseStylesheetAtStatement.call(this,e):this._parseRuleset(!0)||this._parseVariableDeclaration()},xa.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(Bt);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.URIOrStringExpected);for(;this.accept(n.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.URIOrStringExpected);return this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)},xa.prototype._parseVariableDeclaration=function(e){if(void 0===e&&(e=[]),!this.peek(aa))return null;var t=this.create(Zr);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(n.Colon))return this.finish(t,Un.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,Un.VariableValueExpected,[],e);for(;this.peek(n.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(n.Ident,/^(default|global)$/))return this.finish(t,Un.UnknownKeyword);this.consumeToken()}return this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},xa.prototype._parseMediaContentStart=function(){return this._parseInterpolation()},xa.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},xa.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},xa.prototype._parseVariable=function(){var e;return this.peek(aa)?(e=this.create(on),this.consumeToken(),e):null},xa.prototype._parseModuleMember=function(){var e=this.mark(),t=this.create(Vn);return t.setIdentifier(this._parseIdent([ie.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,Un.IdentifierOrVariableExpected):null},xa.prototype._parseIdent=function(e){var t=this;if(!this.peek(n.Ident)&&!this.peek(ca)&&!this.peekDelim("-"))return null;for(var r,i=this.create(de),o=(i.referenceTypes=e,i.isCustomProperty=this.peekRegExp(n.Ident,/^--/),!1);(this.accept(n.Ident)||i.addChild((r=void 0,r=t.mark(),t.acceptDelim("-")&&(t.hasWhitespace()||t.acceptDelim("-"),t.hasWhitespace())?(t.restoreAtMark(r),null):t._parseInterpolation()))||o&&this.acceptRegexp(/^[\w-]/))&&(o=!0,!this.hasWhitespace()););return o?this.finish(i):null},xa.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||ya.prototype._parseTermExpression.call(this)},xa.prototype._parseInterpolation=function(){var e;return this.peek(ca)?(e=this.create(tn),this.consumeToken(),e.addChild(this._parseExpr())||this._parseSelectorCombinator()?this.accept(n.CurlyR)?this.finish(e):this.finish(e,Un.RightCurlyExpected):this.accept(n.CurlyR)?this.finish(e):this.finish(e,Un.ExpressionExpected)):null},xa.prototype._parseOperator=function(){var e;return this.peek(la)||this.peek(ha)||this.peek(ua)||this.peek(pa)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")?(e=this.createNode(ne.Operator),this.consumeToken(),this.finish(e)):ya.prototype._parseOperator.call(this)},xa.prototype._parseUnaryOperator=function(){var e;return this.peekIdent("not")?(e=this.create(ae),this.consumeToken(),this.finish(e)):ya.prototype._parseUnaryOperator.call(this)},xa.prototype._parseRuleSetDeclaration=function(){return this.peek(n.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)||ya.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||ya.prototype._parseRuleSetDeclaration.call(this)},xa.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;if(t=this.create(Ue),!t.setProperty(this._parseProperty()))return null;if(!this.accept(n.Colon))return this.finish(t,Un.ColonExpected,[n.Colon],e||[n.SemiColon]);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),e=!1,t.setValue(this._parseExpr())&&(e=!0,t.addChild(this._parsePrio())),this.peek(n.CurlyL))t.setNestedProperties(this._parseNestedProperties());else if(!e)return this.finish(t,Un.PropertyValueExpected);return this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},xa.prototype._parseNestedProperties=function(){var e=this.create(Tt);return this._parseBody(e,this._parseDeclaration.bind(this))},xa.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var e=this.create(cn);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,Un.SelectorExpected);for(;this.accept(n.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(n.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,Un.UnknownKeyword):this.finish(e)}return null},xa.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||ya.prototype._parseSimpleSelectorBody.call(this)},xa.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},xa.prototype._parseSelectorPlaceholder=function(){var e;return this.peekDelim("%")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this._parseIdent(),this.finish(e)):this.peekKeyword("@at-root")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this.finish(e)):null},xa.prototype._parseElementName=function(){var e=this.mark(),t=ya.prototype._parseElementName.call(this);return t&&!this.hasWhitespace()&&this.peek(n.ParenthesisL)?(this.restoreAtMark(e),null):t},xa.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||ya.prototype._tryParsePseudoIdentifier.call(this)},xa.prototype._parseWarnAndDebug=function(){var e;return this.peekKeyword("@debug")||this.peekKeyword("@warn")||this.peekKeyword("@error")?(e=this.createNode(ne.Debug),this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)):null},xa.prototype._parseControlStatement=function(e){return void 0===e&&(e=this._parseRuleSetDeclaration.bind(this)),this.peek(n.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null},xa.prototype._parseIfStatement=function(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null},xa.prototype._internalParseIfStatement=function(e){var t,r=this.create(ct);return this.consumeToken(),r.setExpression(this._parseExpr(!0))?(this._parseBody(r,e),this.acceptKeyword("@else")&&(this.peekIdent("if")?r.setElseClause(this._internalParseIfStatement(e)):this.peek(n.CurlyL)&&(t=this.create(xt),this._parseBody(t,e),r.setElseClause(t))),this.finish(r)):this.finish(r,Un.ExpressionExpected)},xa.prototype._parseForStatement=function(e){var t;return this.peekKeyword("@for")?(t=this.create(ut),this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.ThroughOrToExpected,[n.CurlyR]):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.FromExpected,[n.CurlyR]):this.finish(t,Un.VariableNameExpected,[n.CurlyR])):null},xa.prototype._parseEachStatement=function(e){if(!this.peekKeyword("@each"))return null;var t=this.create(ft),r=(this.consumeToken(),t.getVariables());if(!r.addChild(this._parseVariable()))return this.finish(t,Un.VariableNameExpected,[n.CurlyR]);for(;this.accept(n.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(t,Un.VariableNameExpected,[n.CurlyR]);return this.finish(r),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.InExpected,[n.CurlyR])},xa.prototype._parseWhileStatement=function(e){var t;return this.peekKeyword("@while")?(t=this.create(yt),this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR])):null},xa.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},xa.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var e=this.create(_t);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Function])))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);return this.accept(n.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,Un.RightParenthesisExpected,[n.CurlyR])},xa.prototype._parseReturnStatement=function(){var e;return this.peekKeyword("@return")?(e=this.createNode(ne.ReturnStatement),this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,Un.ExpressionExpected)):null},xa.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var e=this.create(xn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Mixin])))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(this.accept(n.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected,[n.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},xa.prototype._parseParameterDeclaration=function(){var e=this.create(rt);return e.setIdentifier(this._parseVariable())?(this.accept(da),this.accept(n.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,Un.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):this.finish(e)):null},xa.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var e=this.create(un);if(this.consumeToken(),this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}return this.finish(e)},xa.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var e=this.create(yn),t=(this.consumeToken(),this._parseIdent([ie.Mixin]));if(!e.setIdentifier(t))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var r=this._parseIdent([ie.Mixin]);if(!r)return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);var i=this.create(Vn);t.referenceTypes=[ie.Module],i.setIdentifier(t),e.setIdentifier(r),e.addChild(i)}if(this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(n.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)},xa.prototype._parseMixinContentDeclaration=function(){var e=this.create(fn);if(this.acceptIdent("using")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected,[n.CurlyL])}return this.peek(n.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)},xa.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},xa.prototype._parseFunctionArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();if(r)if(this.accept(n.Colon))e.setIdentifier(r);else{if(this.accept(da))return e.setValue(r),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(da),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null},xa.prototype._parseURLArgument=function(){var e=this.mark(),t=ya.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},xa.prototype._parseOperation=function(){if(!this.peek(n.ParenthesisL))return null;var e=this.create(ae);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(n.Comma);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)},xa.prototype._parseListElement=function(){var e=this.create(Sn),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(n.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,Un.ExpressionExpected)}else e.setValue(t);return this.finish(e)},xa.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var e=this.create(Kt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.StringLiteralExpected);if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|with/))return this.finish(e,Un.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ie.Module]))&&!this.acceptDelim("*"))return this.finish(e,Un.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Un.SemiColonExpected)},xa.prototype._parseModuleConfigDeclaration=function(){var e=this.create(Ht);return e.setIdentifier(this._parseVariable())?this.accept(n.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(n.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,Un.UnknownKeyword):this.finish(e,Un.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):null},xa.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var e=this.create(Jt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|hide|show/))return this.finish(e,Un.UnknownKeyword);if(this.acceptIdent("as")){var t=this._parseIdent([ie.Forward]);if(!e.setIdentifier(t))return this.finish(e,Un.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,Un.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,Un.IdentifierOrVariableExpected)}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Un.SemiColonExpected)},xa.prototype._parseForwardVisibility=function(){var e=this.create(Yt);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(n.Comma);return 1<e.getChildren().length?e:null},xa.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||ya.prototype._parseSupportsCondition.call(this)},Ca=function(e,t){return(Ca=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Ca,ka;W=Bn;function _a(e,t){return e=ka.call(this,"$",e,t)||this,wa(_a.scssModuleLoaders),wa(_a.scssModuleBuiltIns),e}function wa(e){e.forEach((function(e){var t;e.documentation&&e.references&&0<e.references.length&&((t="string"==typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value}).value+="\n\n",t.value+=e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | "),e.documentation=t)}))}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ca(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(_a,ka=Ko),_a.prototype.isImportPathParent=function(e){return e===ne.Forward||e===ne.Use||ka.prototype.isImportPathParent.call(this,e)},_a.prototype.getCompletionForImportPath=function(e,t){var r=e.getParent().type;if(r===ne.Forward||r===ne.Use)for(var n=0,i=_a.scssModuleBuiltIns;n<i.length;n++){var o=i[n];o={label:o.label,documentation:o.documentation,textEdit:Wi.replace(this.getCompletionRange(e),"'"+o.label+"'"),kind:ao.Module};t.items.push(o)}return ka.prototype.getCompletionForImportPath.call(this,e,t)},_a.prototype.createReplaceFunction=function(){var e=1;return function(t,r){return"\\"+r+": ${"+e+++":"+(_a.variableDefaults[r]||"")+"}"}},_a.prototype.createFunctionProposals=function(e,t,r,n){for(var i=0,o=e;i<o.length;i++){var s=o[i],a=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction());s={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:Wi.replace(this.getCompletionRange(t),a),insertTextFormat:co.Snippet,kind:ao.Function};r&&(s.sortText="z"),n.items.push(s)}return n},_a.prototype.getCompletionsForSelector=function(e,t,r){return this.createFunctionProposals(_a.selectorFuncs,null,!0,r),ka.prototype.getCompletionsForSelector.call(this,e,t,r)},_a.prototype.getTermProposals=function(e,t,r){var n=_a.builtInFuncs;return e&&(n=n.filter((function(t){return!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type)}))),this.createFunctionProposals(n,t,!0,r),ka.prototype.getTermProposals.call(this,e,t,r)},_a.prototype.getColorProposals=function(e,t,r){return this.createFunctionProposals(_a.colorProposals,t,!1,r),ka.prototype.getColorProposals.call(this,e,t,r)},_a.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),ka.prototype.getCompletionsForDeclarationProperty.call(this,e,t)},_a.prototype.getCompletionsForExtendsReference=function(e,t,r){for(var n=0,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Rule);n<i.length;n++){var o=i[n];o={label:o.name,textEdit:Wi.replace(this.getCompletionRange(t),o.name),kind:ao.Function};r.items.push(o)}return r},_a.prototype.getCompletionForAtDirectives=function(e){var t;return(t=e.items).push.apply(t,_a.scssAtDirectives),e},_a.prototype.getCompletionForTopLevel=function(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),ka.prototype.getCompletionForTopLevel.call(this,e),e},_a.prototype.getCompletionForModuleLoaders=function(e){var t;return(t=e.items).push.apply(t,_a.scssModuleLoaders),e},_a.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},_a.colorProposals=[{func:"red($color)",desc:W("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:W("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:W("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:W("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:W("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:W("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:W("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:W("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:W("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:W("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:W("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:W("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:W("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:W("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:W("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:W("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:W("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:W("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:W("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:W("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:W("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:W("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],_a.selectorFuncs=[{func:"selector-nest($selectors…)",desc:W("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:W("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:W("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:W("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:W("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:W("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:W("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:W("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],_a.builtInFuncs=[{func:"unquote($string)",desc:W("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:W("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:W("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:W("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:W("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:W("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:W("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:W("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:W("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:W("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:W("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:W("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:W("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:W("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:W("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:W("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:W("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:W("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:W("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:W("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:W("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:W("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:W("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:W("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:W("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:W("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:W("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:W("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:W("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:W("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:W("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:W("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:W("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:W("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:W("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:W("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:W("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:W("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:W("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:W("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:W("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:W("scss.builtin.call","Dynamically calls a Sass function.")}],_a.scssAtDirectives=[{label:"@extend",documentation:W("scss.builtin.@extend","Inherits the styles of another selector."),kind:ao.Keyword},{label:"@at-root",documentation:W("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:ao.Keyword},{label:"@debug",documentation:W("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:ao.Keyword},{label:"@warn",documentation:W("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:ao.Keyword},{label:"@error",documentation:W("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:ao.Keyword},{label:"@if",documentation:W("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@for",documentation:W("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@each",documentation:W("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n\t$0\n}",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@while",documentation:W("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@mixin",documentation:W("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@include",documentation:W("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:ao.Keyword},{label:"@function",documentation:W("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:ao.Keyword}],_a.scssModuleLoaders=[{label:"@use",documentation:W("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:co.Snippet,kind:ao.Keyword},{label:"@forward",documentation:W("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:co.Snippet,kind:ao.Keyword}],_a.scssModuleBuiltIns=[{label:"sass:math",documentation:W("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:W("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:W("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:W("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:W("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:W("scss.builtin.sass:selector","Provides access to Sass’s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:W("scss.builtin.sass:meta","Exposes the details of Sass’s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],Pa=function(e,t){return(Pa=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};r=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};var Pa,Sa,Ea,Ra,Ia="/".charCodeAt(0),Aa="\n".charCodeAt(0),Da="\r".charCodeAt(0),Ta="\f".charCodeAt(0),Fa="`".charCodeAt(0),Ma=".".charCodeAt(0),Oa=(t=n.CustomToken,+t),Va=(r(La,Sa=X),La.prototype.scanNext=function(e){var t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([Ma,Ma,Ma])?this.finishToken(e,Oa):Sa.prototype.scanNext.call(this,e)},La.prototype.comment=function(){return!!Sa.prototype.comment.call(this)||!(this.inURL||!this.stream.advanceIfChars([Ia,Ia])||(this.stream.advanceWhileChar((function(e){switch(e){case Aa:case Da:case Ta:return!1;default:return!0}})),0))},La.prototype.escapedJavaScript=function(){return this.stream.peekChar()===Fa?(this.stream.advance(1),this.stream.advanceWhileChar((function(e){return e!==Fa})),this.stream.advanceIfChar(Fa)?n.EscapedJavaScript:n.BadEscapedJavaScript):null},La);function La(){return null!==Sa&&Sa.apply(this,arguments)||this}function Na(){return Ra.call(this,new Va)||this}Ea=function(e,t){return(Ea=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ea(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(Na,Ra=U),Na.prototype._parseStylesheetStatement=function(e){return void 0===e&&(e=!1),this.peek(n.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||Ra.prototype._parseStylesheetAtStatement.call(this,e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},Na.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var e=this.create(Bt);if(this.consumeToken(),this.accept(n.ParenthesisL)){if(!this.accept(n.Ident))return this.finish(e,Un.IdentifierExpected,[n.SemiColon]);do{if(!this.accept(n.Comma))break}while(this.accept(n.Ident));if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected,[n.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(n.SemiColon)||this.peek(n.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e)):this.finish(e,Un.URIOrStringExpected,[n.SemiColon])},Na.prototype._parsePlugin=function(){var e;return this.peekKeyword("@plugin")?(e=this.createNode(ne.Plugin),this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(n.SemiColon)?this.finish(e):this.finish(e,Un.SemiColonExpected):this.finish(e,Un.StringLiteralExpected)):null},Na.prototype._parseMediaQuery=function(e){e=Ra.prototype._parseMediaQuery.call(this,e);return e||((e=this.create(yr)).addChild(this._parseVariable())?this.finish(e):null)},Na.prototype._parseMediaDeclaration=function(e){return this._tryParseRuleset(e=void 0!==e&&e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)},Na.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},Na.prototype._parseVariableDeclaration=function(e){void 0===e&&(e=[]);var t=this.create(Zr),r=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(n.Colon))return this.restoreAtMark(r),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,Un.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},Na.prototype._parseDetachedRuleSet=function(){var e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;var t=this.create(xn);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Un.IdentifierExpected,[],[n.ParenthesisR]);if(!this.accept(n.ParenthesisR))return this.restoreAtMark(e),null}return this.peek(n.CurlyL)?(e=this.create(ke),this._parseBody(e,this._parseDetachedRuleSetBody.bind(this)),this.finish(e)):null},Na.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},Na.prototype._addLookupChildren=function(e){if(!e.addChild(this._parseLookupValue()))return!1;for(var t=!1;this.peek(n.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t},Na.prototype._parseLookupValue=function(){var e=this.create(ae),t=this.mark();return this.accept(n.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(n.BracketR)||this.accept(n.BracketR))?e:(this.restoreAtMark(t),null)},Na.prototype._parseVariable=function(e,t){void 0===t&&(t=!1);var r=!(e=void 0!==e&&e)&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(n.AtKeyword))return null;r=this.create(on);for(var i=this.mark();this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(i),null;return!this.accept(n.AtKeyword)&&!this.accept(n.Ident)||!t&&this.peek(n.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(i),null):r},Na.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||Ra.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},Na.prototype._parseEscaped=function(){var e;return this.peek(n.EscapedJavaScript)||this.peek(n.BadEscapedJavaScript)?(e=this.createNode(ne.EscapedValue),this.consumeToken(),this.finish(e)):this.peekDelim("~")?(e=this.createNode(ne.EscapedValue),this.consumeToken(),this.accept(n.String)||this.accept(n.EscapedJavaScript)?this.finish(e):this.finish(e,Un.TermExpected)):null},Na.prototype._parseOperator=function(){var e=this._parseGuardOperator();return e||Ra.prototype._parseOperator.call(this)},Na.prototype._parseGuardOperator=function(){var e;return this.peekDelim(">")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):this.peekDelim("=")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("<"),e):this.peekDelim("<")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):null},Na.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||Ra.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||Ra.prototype._parseRuleSetDeclaration.call(this)},Na.prototype._parseKeyframeIdent=function(){return this._parseIdent([ie.Keyframe])||this._parseVariable()},Na.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||Ra.prototype._parseKeyframeSelector.call(this)},Na.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||Ra.prototype._parseSimpleSelectorBody.call(this)},Na.prototype._parseSelector=function(e){var t=this.create(Re),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){r=!0;var i=this.mark();if(t.addChild(this._parseGuard())&&this.peek(n.CurlyL))break;this.restoreAtMark(i),t.addChild(this._parseCombinator())}return r?this.finish(t):null},Na.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},Na.prototype._parseSelectorIdent=function(){var e;return this.peekInterpolatedIdent()&&(e=this.createNode(ne.SelectorInterpolation),this._acceptInterpolatedIdent(e))?this.finish(e):null},Na.prototype._parsePropertyIdentifier=function(e){void 0===e&&(e=!1);var t,r,n=/^[\w-]+/;return this.peekInterpolatedIdent()||this.peekRegExp(this.token.type,n)?(t=this.mark(),(r=this.create(de)).isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-"),(e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(n)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,n))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace())||this.acceptIdent("_"),this.finish(r)):(this.restoreAtMark(t),null)):null},Na.prototype.peekInterpolatedIdent=function(){return this.peek(n.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},Na.prototype._acceptInterpolatedIdent=function(e,t){for(var r=this,i=!1,o=function(){var e=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(e),null):r._parseInterpolation()},s=t?function(){return r.acceptRegexp(t)}:function(){return r.accept(n.Ident)};(s()||e.addChild(this._parseInterpolation()||this.try(o)))&&(i=!0,!this.hasWhitespace()););return i},Na.prototype._parseInterpolation=function(){var e,t=this.mark();return this.peekDelim("@")||this.peekDelim("$")?(e=this.createNode(ne.Interpolation),this.consumeToken(),this.hasWhitespace()||!this.accept(n.CurlyL)?(this.restoreAtMark(t),null):e.addChild(this._parseIdent())?this.accept(n.CurlyR)?this.finish(e):this.finish(e,Un.RightCurlyExpected):this.finish(e,Un.IdentifierExpected)):null},Na.prototype._tryParseMixinDeclaration=function(){var e=this.mark(),t=this.create(xn);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Un.IdentifierExpected,[],[n.ParenthesisR]);return this.accept(n.ParenthesisR)&&(t.setGuard(this._parseGuard()),this.peek(n.CurlyL))?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)},Na.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},Na.prototype._parseMixinDeclarationIdentifier=function(){var e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(de),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(n.Hash))return null;e=this.create(de),this.consumeToken()}return e.referenceTypes=[ie.Mixin],this.finish(e)},Na.prototype._parsePseudo=function(){var e,t;return this.peek(n.Colon)?(e=this.mark(),t=this.create(cn),this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),Ra.prototype._parsePseudo.call(this))):null},Na.prototype._parseExtend=function(){var e,t;return this.peekDelim("&")?(e=this.mark(),t=this.create(cn),this.consumeToken(),!this.hasWhitespace()&&this.accept(n.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)):null},Na.prototype._completeExtends=function(e){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected);var t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Un.SelectorExpected);for(;this.accept(n.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Un.SelectorExpected);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)},Na.prototype._parseDetachedRuleSetMixin=function(){var e,t;return this.peek(n.AtKeyword)?(e=this.mark(),!(t=this.create(yn)).addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(n.ParenthesisL)?this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected):(this.restoreAtMark(e),null)):null},Na.prototype._tryParseMixinReference=function(e){void 0===e&&(e=!0);for(var t=this.mark(),r=this.create(yn),i=this._parseMixinDeclarationIdentifier();i;){this.acceptDelim(">");var o=this._parseMixinDeclarationIdentifier();if(!o)break;r.getNamespaces().addChild(i),i=o}if(!r.setIdentifier(i))return this.restoreAtMark(t),null;var s=!1;if(this.accept(n.ParenthesisL)){if(s=!0,r.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(r,Un.RightParenthesisExpected);i.referenceTypes=[ie.Mixin]}else i.referenceTypes=[ie.Mixin,ie.Rule];return this.peek(n.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),s||this.peek(n.SemiColon)||this.peek(n.CurlyR)||this.peek(n.EOF)?this.finish(r):(this.restoreAtMark(t),null)},Na.prototype._parseMixinArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();return r&&(this.accept(n.Colon)?e.setIdentifier(r):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)},Na.prototype._parseMixinParameter=function(){var e,t=this.create(rt);return this.peekKeyword("@rest")?(e=this.create(ae),this.consumeToken(),this.accept(Oa)?(t.setIdentifier(this.finish(e)),this.finish(t)):this.finish(t,Un.DotExpected,[],[n.Comma,n.ParenthesisR])):this.peek(Oa)?(e=this.create(ae),this.consumeToken(),t.setIdentifier(this.finish(e)),this.finish(t)):(e=!1,t.setIdentifier(this._parseVariable())&&(this.accept(n.Colon),e=!0),t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||e?this.finish(t):null)},Na.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var e=this.create(In);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Un.ConditionExpected);for(;this.acceptIdent("and")||this.accept(n.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Un.ConditionExpected);return this.finish(e)},Na.prototype._parseGuardCondition=function(){var e;return this.peek(n.ParenthesisL)?(e=this.create(Tn),this.consumeToken(),e.addChild(this._parseExpr()),this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)):null},Na.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ye);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,Un.ExpressionExpected);return this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected)},Na.prototype._parseFunctionIdentifier=function(){var e;return this.peekDelim("%")?((e=this.create(de)).referenceTypes=[ie.Function],this.consumeToken(),this.finish(e)):Ra.prototype._parseFunctionIdentifier.call(this)},Na.prototype._parseURLArgument=function(){var e=this.mark(),t=Ra.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},$a=function(e,t){return($a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var $a,ja;es=Bn;function Ba(e,t){return ja.call(this,"@",e,t)||this}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ba,ja=Ko),Ba.prototype.createFunctionProposals=function(e,t,r,n){for(var i=0,o=e;i<o.length;i++){var s=o[i];s={label:s.name,detail:s.example,documentation:s.description,textEdit:Wi.replace(this.getCompletionRange(t),s.name+"($0)"),insertTextFormat:co.Snippet,kind:ao.Function};r&&(s.sortText="z"),n.items.push(s)}return n},Ba.prototype.getTermProposals=function(e,t,r){var n=Ba.builtInProposals;return e&&(n=n.filter((function(t){return!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type)}))),this.createFunctionProposals(n,t,!0,r),ja.prototype.getTermProposals.call(this,e,t,r)},Ba.prototype.getColorProposals=function(e,t,r){return this.createFunctionProposals(Ba.colorProposals,t,!1,r),ja.prototype.getColorProposals.call(this,e,t,r)},Ba.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getCompletionsForSelector(null,!0,t),ja.prototype.getCompletionsForDeclarationProperty.call(this,e,t)},Ba.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:es("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:es("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:es("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:es("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:es("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:es("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:es("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:es("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:es("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:es("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:es("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:es("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:es("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:es("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:es("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:es("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:es("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:es("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:es("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:es("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:es("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:es("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:es("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:es("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:es("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:es("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:es("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:es("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:es("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:es("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],Ba.colorProposals=[{name:"argb",example:"argb(@color);",description:es("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:es("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:es("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:es("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:es("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:es("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:es("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:es("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:es("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:es("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:es("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:es("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:es("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:es("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:es("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:es("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:es("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:es("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:es("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:es("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:es("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:es("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:es("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:es("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:es("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:es("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:es("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);"}];Ua.prototype.provideProperties=function(){return this._properties},Ua.prototype.provideAtDirectives=function(){return this._atDirectives},Ua.prototype.providePseudoClasses=function(){return this._pseudoClasses},Ua.prototype.providePseudoElements=function(){return this._pseudoElements},Ua.prototype.addData=function(e){if(Array.isArray(e.properties))for(var t=0,r=e.properties;t<r.length;t++)"string"==typeof(a=r[t]).name&&this._properties.push(a);if(Array.isArray(e.atDirectives))for(var n=0,i=e.atDirectives;n<i.length;n++)"string"==typeof(a=i[n]).name&&this._atDirectives.push(a);if(Array.isArray(e.pseudoClasses))for(var o=0,s=e.pseudoClasses;o<s.length;o++)"string"==typeof(a=s[o]).name&&this._pseudoClasses.push(a);if(Array.isArray(e.pseudoElements))for(var a,c=0,l=e.pseudoElements;c<l.length;c++)"string"==typeof(a=l[c]).name&&this._pseudoElements.push(a)};function Ua(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}Wa=function(e,t){return(Wa=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Wa,Ka,qa=function(e,t,r,n){return new(r=r||Promise)((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},za=function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var c=[s,a];if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=t.call(e,o)}catch(a){c=[6,a],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}};function Ha(e){return Ka.call(this,e)||this}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Wa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ha,Ka=xs),Ha.prototype.isRawStringDocumentLinkNode=function(e){return Ka.prototype.isRawStringDocumentLinkNode.call(this,e)||e.type===ne.Use||e.type===ne.Forward},Ha.prototype.resolveRelativeReference=function(e,t,r,n){return qa(this,void 0,void 0,(function(){var i,o,s,a;return za(this,(function(c){switch(c.label){case 0:return Y(e,"sass:")?[2,void 0]:[4,Ka.prototype.resolveRelativeReference.call(this,e,t,r,n)];case 1:if(i=c.sent(),!(this.fileSystemProvider&&i&&n))return[3,8];o=Eo.a.parse(i),c.label=2;case 2:if(c.trys.push([2,7,,8]),!(s=(e=>{var t,r,n;if(""!==e.path&&!e.path.endsWith(".scss")&&!e.path.endsWith(".css"))return e.path.endsWith("/")?[e.with({path:e.path+"index.scss"}).toString(),e.with({path:e.path+"_index.scss"}).toString()]:(r=(r=e.path.split("/"))[r.length-1],t=e.path.slice(0,-r.length),r.startsWith("_")?e.path.endsWith(".scss")?void 0:[e.with({path:e.path+".scss"}).toString()]:[(n=function(r){return e.with({path:t+r}).toString()})(r+=".scss"),n("_"+r),n(r.slice(0,-5)+"/index.scss"),n(r.slice(0,-5)+"/_index.scss"),n(r.slice(0,-5)+".css")])})(o)))return[3,6];a=0,c.label=3;case 3:return a<s.length?[4,this.fileExists(s[a])]:[3,6];case 4:if(c.sent())return[2,s[a]];c.label=5;case 5:return a++,[3,3];case 6:return[3,8];case 7:return c.sent(),[3,8];case 8:return[2,i]}}))}))},Qa.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},Qa.prototype._doValidate=function(e,t){this._worker(e).then((function(t){return t.doValidation(e.toString())})).then((function(r){r=r.map((function(e){return t="number"==typeof(e=e).code?String(e.code):e.code,{severity:(e=>{switch(e){case ji.Error:return i.MarkerSeverity.Error;case ji.Warning:return i.MarkerSeverity.Warning;case ji.Information:return i.MarkerSeverity.Info;case ji.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}})(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source};var t}));var n=i.editor.getModel(e);n&&n.getModeId()===t&&i.editor.setModelMarkers(n,t,r)})).then(void 0,(function(e){}))};var Ga=Qa;function Qa(e,t,r){function n(e){var t,r=e.getModeId();r===s._languageId&&(s._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(t),t=window.setTimeout((function(){return s._doValidate(e.uri,r)}),500)})),s._doValidate(e.uri,r))}function o(e){i.editor.setModelMarkers(e,s._languageId,[]);e=e.uri.toString();var t=s._listener[e];t&&(t.dispose(),delete s._listener[e])}var s=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null),this._disposables.push(i.editor.onDidCreateModel(n)),this._disposables.push(i.editor.onWillDisposeModel(o)),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){o(e.model),n(e.model)}))),r.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===s._languageId&&(o(e),n(e))}))})),this._disposables.push({dispose:function(){for(var e in s._listener)s._listener[e].dispose()}}),i.editor.getModels().forEach(n)}function Ja(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xa(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Za(e){if(e)return{range:Xa(e.range),text:e.newText}}Object.defineProperty(ec.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),ec.prototype.provideCompletionItems=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),Ja(t))})).then((function(r){var n,o;if(r)return o=e.getWordUntilPosition(t),n=new i.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),o=r.items.map((function(e){var t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(r=e.command)&&"editor.action.triggerSuggest"===r.command?{id:r.command,title:r.title,arguments:r.arguments}:void 0,range:n,kind:(e=>{var t=i.languages.CompletionItemKind;switch(e){case ao.Text:return t.Text;case ao.Method:return t.Method;case ao.Function:return t.Function;case ao.Constructor:return t.Constructor;case ao.Field:return t.Field;case ao.Variable:return t.Variable;case ao.Class:return t.Class;case ao.Interface:return t.Interface;case ao.Module:return t.Module;case ao.Property:return t.Property;case ao.Unit:return t.Unit;case ao.Value:return t.Value;case ao.Enum:return t.Enum;case ao.Keyword:return t.Keyword;case ao.Snippet:return t.Snippet;case ao.Color:return t.Color;case ao.File:return t.File;case ao.Reference:return t.Reference}return t.Property})(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?r.range={insert:Xa(e.textEdit.insert),replace:Xa(e.textEdit.replace)}:r.range=Xa(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(Za)),e.insertTextFormat===co.Snippet&&(r.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),r})),{isIncomplete:r.isIncomplete,suggestions:o}}))};var Ya=ec;function ec(e){this._worker=e}function tc(e){var t;return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"}}nc.prototype.provideHover=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.doHover(n.toString(),Ja(t))})).then((function(e){if(e)return{range:Xa(e.range),contents:(e=>{if(e)return Array.isArray(e)?e.map(tc):[tc(e)]})(e.contents)}}))};var rc=nc;function nc(e){this._worker=e}oc.prototype.provideDocumentHighlights=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentHighlights(n.toString(),Ja(t))})).then((function(e){if(e)return e.map((function(e){return{range:Xa(e.range),kind:(e=>{switch(e){case uo.Read:return i.languages.DocumentHighlightKind.Read;case uo.Write:return i.languages.DocumentHighlightKind.Write;case uo.Text:return i.languages.DocumentHighlightKind.Text}return i.languages.DocumentHighlightKind.Text})(e.kind)}}))}))};var ic=oc;function oc(e){this._worker=e}function sc(e){return{uri:i.Uri.parse(e.uri),range:Xa(e.range)}}cc.prototype.provideDefinition=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDefinition(n.toString(),Ja(t))})).then((function(e){if(e)return[sc(e)]}))};var ac=cc;function cc(e){this._worker=e}hc.prototype.provideReferences=function(e,t,r,n){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),Ja(t))})).then((function(e){if(e)return e.map(sc)}))};var lc=hc;function hc(e){this._worker=e}pc.prototype.provideRenameEdits=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doRename(o.toString(),Ja(t),r)})).then((function(e){var t=e;if(t&&t.changes){var r,n=[];for(r in t.changes)for(var o=i.Uri.parse(r),s=0,a=t.changes[r];s<a.length;s++){var c=a[s];n.push({resource:o,edit:{range:Xa(c.range),text:c.newText}})}return{edits:n}}}))};var uc=pc;function pc(e){this._worker=e}fc.prototype.provideDocumentSymbols=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentSymbols(r.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:(e=>{var t=i.languages.SymbolKind;switch(e){case po.File:return t.Array;case po.Module:return t.Module;case po.Namespace:return t.Namespace;case po.Package:return t.Package;case po.Class:return t.Class;case po.Method:return t.Method;case po.Property:return t.Property;case po.Field:return t.Field;case po.Constructor:return t.Constructor;case po.Enum:return t.Enum;case po.Interface:return t.Interface;case po.Function:return t.Function;case po.Variable:return t.Variable;case po.Constant:return t.Constant;case po.String:return t.String;case po.Number:return t.Number;case po.Boolean:return t.Boolean;case po.Array:return t.Array}return t.Function})(e.kind),tags:[],range:Xa(e.location.range),selectionRange:Xa(e.location.range)}}))}))};var dc=fc;function fc(e){this._worker=e}gc.prototype.provideDocumentColors=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentColors(r.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:Xa(e.range)}}))}))},gc.prototype.provideColorPresentations=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getColorPresentations(n.toString(),t.color,(e=>{if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}})(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=Za(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Za)),t}))}))};var mc=gc;function gc(e){this._worker=e}vc.prototype.provideFoldingRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getFoldingRanges(n.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=(e=>{switch(e){case Ni.Comment:return i.languages.FoldingRangeKind.Comment;case Ni.Imports:return i.languages.FoldingRangeKind.Imports;case Ni.Region:return i.languages.FoldingRangeKind.Region}})(e.kind)),t}))}))};var yc=vc;function vc(e){this._worker=e}xc.prototype.provideSelectionRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getSelectionRanges(n.toString(),t.map(Ja))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:Xa(e.range)}),e=e.parent;return t}))}))};var bc=xc;function xc(e){this._worker=e}function Cc(e){function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.getLanguageServiceWorker.apply(c,e)}var r,n,s=[],a=[],c=new o(e);return s.push(c),r=e.languageId,n=e.modeConfiguration,_c(a),n.completionItems&&a.push(i.languages.registerCompletionItemProvider(r,new Ya(t))),n.hovers&&a.push(i.languages.registerHoverProvider(r,new rc(t))),n.documentHighlights&&a.push(i.languages.registerDocumentHighlightProvider(r,new ic(t))),n.definitions&&a.push(i.languages.registerDefinitionProvider(r,new ac(t))),n.references&&a.push(i.languages.registerReferenceProvider(r,new lc(t))),n.documentSymbols&&a.push(i.languages.registerDocumentSymbolProvider(r,new dc(t))),n.rename&&a.push(i.languages.registerRenameProvider(r,new uc(t))),n.colors&&a.push(i.languages.registerColorProvider(r,new mc(t))),n.foldingRanges&&a.push(i.languages.registerFoldingRangeProvider(r,new yc(t))),n.diagnostics&&a.push(new Ga(r,t,e)),n.selectionRanges&&a.push(i.languages.registerSelectionRangeProvider(r,new bc(t))),s.push(kc(a)),kc(s)}function kc(e){return{dispose:function(){return _c(e)}}}function _c(e){for(;e.length;)e.pop().dispose()}},ed59:function(e,t,r){(function(e){var n,i;function o(e){var t;return(i[e]||(t=i[e]={exports:{}},n[e](t,t.exports,o),t)).exports}r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a})),n={470:t=>{function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(o!==a-1&&1!==s)if(o!==a-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(2<n.length){var c=n.lastIndexOf("/");if(c!==n.length-1){i=-1===c?(n="",0):(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",o=a,s=i=0;continue}t&&(0<n.length?n+="/..":n="..",i=2)}else 0<n.length?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;-1<=s&&!o;s--){var a=0<=s?arguments[s]:t=void 0===t?e.cwd():t;r(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=n(i,!o),o?0<i.length?"/"+i:"/":0<i.length?i:"."},normalize:function(e){var t,i;return r(e),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0<(e=0!==(e=n(e,!t)).length||t?e:".").length&&i&&(e+="/"),t?"/"+e:e)},isAbsolute:function(e){return r(e),0<e.length&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),0<n.length&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,s=o-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var c=t.length-a,l=s<c?s:c,h=-1,u=0;u<=l;++u){if(u===l){if(l<c){if(47===t.charCodeAt(a+u))return t.slice(a+u+1);if(0===u)return t.slice(a+u)}else l<s&&(47===e.charCodeAt(n+u)?h=u:0===u&&(h=0));break}var p=e.charCodeAt(n+u);if(p!==t.charCodeAt(a+u))break;47===p&&(h=u)}var d="";for(u=n+h+1;u<=o;++u)u!==o&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return 0<d.length?d+t.slice(a+h):(47===t.charCodeAt(a+=h)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=47===e.charCodeAt(0),n=-1,i=!0,o=e.length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n=0,i=-1,o=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";for(var s=t.length-1,a=-1,c=e.length-1;0<=c;--c){var l=e.charCodeAt(c);if(47===l){if(!o){n=c+1;break}}else-1===a&&(o=!1,a=c+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(i=c):(s=-1,i=a))}return n===i?i=a:-1===i&&(i=e.length),e.slice(n,i)}for(c=e.length-1;0<=c;--c)if(47===e.charCodeAt(c)){if(!o){n=c+1;break}}else-1===i&&(o=!1,i=c+1);return-1===i?"":e.slice(n,i)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;0<=a;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r;var t,r},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){for(var n,i=47===e.charCodeAt(0),o=i?(t.root="/",1):0,s=-1,a=0,c=-1,l=!0,h=e.length-1,u=0;o<=h;--h)if(47!==(n=e.charCodeAt(h)))-1===c&&(l=!1,c=h+1),46===n?-1===s?s=h:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){a=h+1;break}-1===s||-1===c||0===u||1===u&&s===c-1&&s===a+1?-1!==c&&(t.base=t.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(a,s),t.base=e.slice(a,c)),t.ext=e.slice(s,c)),0<a?t.dir=e.slice(0,a-1):i&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i},447:(t,r,n)=>{var i;n.r(r),n.d(r,{URI:()=>p,Utils:()=>S}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var o,s,a,c=/^\w[\w\d+.-]*$/,l=/^\//,h=/^\/\//,u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=(v.isUri=function(e){return e instanceof v||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(v.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),v.prototype.with=function(e){var t,r,n,i;return e&&(void 0===(t=e.scheme)?t=this.scheme:null===t&&(t=""),void 0===(r=e.authority)?r=this.authority:null===r&&(r=""),void 0===(n=e.path)?n=this.path:null===n&&(n=""),void 0===(i=e.query)?i=this.query:null===i&&(i=""),void 0===(e=e.fragment)?e=this.fragment:null===e&&(e=""),t!==this.scheme||r!==this.authority||n!==this.path||i!==this.query||e!==this.fragment)?new f(t,r,n,i,e):this},v.parse=function(e,t){return void 0===t&&(t=!1),e=u.exec(e),e?new f(e[2]||"",w(e[4]||""),w(e[5]||""),w(e[7]||""),w(e[9]||""),t):new f("","","","","")},v.file=function(e){var t,r="";return"/"===(e=i?e.replace(/\\/g,"/"):e)[0]&&"/"===e[1]&&(e=-1===(t=e.indexOf("/",2))?(r=e.substring(2),"/"):(r=e.substring(2,t),e.substring(t)||"/")),new f("file",r,e,"","")},v.from=function(e){return new f(e.scheme,e.authority,e.path,e.query,e.fragment)},v.prototype.toString=function(e){return k(this,e=void 0!==e&&e)},v.prototype.toJSON=function(){return this},v.revive=function(e){var t;return e&&(e instanceof v?e:((t=new f(e))._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t))},v),d=i?1:void 0,f=(o(a=g,r=s=p),a.prototype=null===r?Object.create(r):(y.prototype=r.prototype,new y),Object.defineProperty(g.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),g.prototype.toString=function(e){return(e=void 0!==e&&e)?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)},g.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},g),m=((r={})[58]="%3A",r[47]="%2F",r[63]="%3F",r[35]="%23",r[91]="%5B",r[93]="%5D",r[64]="%40",r[33]="%21",r[36]="%24",r[38]="%26",r[39]="%27",r[40]="%28",r[41]="%29",r[42]="%2A",r[43]="%2B",r[44]="%2C",r[59]="%3B",r[61]="%3D",r[32]="%20",r);function g(){var e=null!==s&&s.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=a}function v(e,t,r,n,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=((e,t)=>{switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t})(this.scheme,r||""),this.query=n||"",this.fragment=i||"",e=this,t=o,!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.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(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function b(e,t){for(var r=void 0,n=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);97<=o&&o<=122||65<=o&&o<=90||48<=o&&o<=57||45===o||46===o||95===o||126===o||t&&47===o?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i))):(void 0===r&&(r=e.substr(0,i)),void 0!==(o=m[o])?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=o):-1===n&&(n=i))}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function x(e){for(var t=void 0,r=0;r<e.length;r++){var n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=m[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function C(e,t){return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i?t.replace(/\//g,"\\"):t}function k(e,t){var r,n,i=t?x:b,o="",s=e.scheme,a=e.authority,c=e.path,l=e.query;e=e.fragment;return s&&(o=o+s+":"),!a&&"file"!==s||(o+="//"),a&&(-1!==(s=a.indexOf("@"))&&(r=a.substr(0,s),a=a.substr(s+1),-1===(s=r.indexOf(":"))?o+=i(r,!1):o=(o=o+i(r.substr(0,s),!1)+":")+i(r.substr(s+1),!1),o+="@"),-1===(s=(a=a.toLowerCase()).indexOf(":"))?o+=i(a,!1):o=(o+=i(a.substr(0,s),!1))+a.substr(s)),c&&(3<=c.length&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)?65<=(n=c.charCodeAt(1))&&n<=90&&(c="/"+String.fromCharCode(n+32)+":"+c.substr(3)):2<=c.length&&58===c.charCodeAt(1)&&65<=(n=c.charCodeAt(0))&&n<=90&&(c=String.fromCharCode(n+32)+":"+c.substr(2)),o+=i(c,!0)),l&&(o=(o+="?")+i(l,!1)),e?(o+="#")+(t?e:b(e,!1)):o}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(_)?e.replace(_,(function t(r){try{return decodeURIComponent(r)}catch(e){return 3<r.length?r.substr(0,3)+t(r.substr(3)):r}})):e}function P(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}r=n(470);var S,E=r.posix||r;(n=S=S||{}).joinPath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.with({path:E.join.apply(E,P([e.path],t))})},n.resolvePath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e.path||"/";return e.with({path:E.resolve.apply(E,P([n],t))})},n.dirname=function(e){var t=E.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},n.basename=function(e){return E.basename(e.path)},n.extname=function(e){return E.extname(e.path)}}},i={},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let{URI:s,Utils:a}=o(447)}).call(this,r("f28c"))}}]); |