UNPKG

iobroker.javascript

Version:
10 lines 752 kB
/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ define("vs/language/css/cssWorker", ["require","require"],(require)=>{ var moduleExports=(()=>{var Un=Object.defineProperty;var Jo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Yo=Object.prototype.hasOwnProperty;var Qo=n=>Un(n,"__esModule",{value:!0});var Zo=(n,e)=>{for(var t in e)Un(n,t,{get:e[t],enumerable:!0})},ea=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Xo(e))!Yo.call(n,i)&&(t||i!=="default")&&Un(n,i,{get:()=>e[i],enumerable:!(r=Jo(e,i))||r.enumerable});return n};var ta=(n=>(e,t)=>n&&n.get(e)||(t=ea(Qo({}),e,1),n&&n.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var $s={};Zo($s,{CSSWorker:()=>Vr,create:()=>Bs});var l;(function(n){n[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.CustomToken=42]="CustomToken"})(l||(l={}));var Br=function(){function n(e){this.source=e,this.len=e.length,this.position=0}return n.prototype.substring=function(e,t){return t===void 0&&(t=this.position),this.source.substring(e,t)},n.prototype.eos=function(){return this.len<=this.position},n.prototype.pos=function(){return this.position},n.prototype.goBackTo=function(e){this.position=e},n.prototype.goBack=function(e){this.position-=e},n.prototype.advance=function(e){this.position+=e},n.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},n.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},n.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},n.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},n.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},n.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},n}();var jn="a".charCodeAt(0),na="f".charCodeAt(0),$r="z".charCodeAt(0),Vn="A".charCodeAt(0),ra="F".charCodeAt(0),qr="Z".charCodeAt(0),Qt="0".charCodeAt(0),Zt="9".charCodeAt(0),ia="~".charCodeAt(0),oa="^".charCodeAt(0),xt="=".charCodeAt(0),aa="|".charCodeAt(0),tt="-".charCodeAt(0),Kr="_".charCodeAt(0),sa="%".charCodeAt(0),Bn="*".charCodeAt(0),Qr="(".charCodeAt(0),Zr=")".charCodeAt(0),la="<".charCodeAt(0),ca=">".charCodeAt(0),da="@".charCodeAt(0),pa="#".charCodeAt(0),ha="$".charCodeAt(0),$n="\\".charCodeAt(0),Gr="/".charCodeAt(0),nt=` `.charCodeAt(0),rt="\r".charCodeAt(0),St="\f".charCodeAt(0),Hr='"'.charCodeAt(0),Jr="'".charCodeAt(0),qn=" ".charCodeAt(0),Kn=" ".charCodeAt(0),ua=";".charCodeAt(0),ma=":".charCodeAt(0),fa="{".charCodeAt(0),ga="}".charCodeAt(0),ba="[".charCodeAt(0),va="]".charCodeAt(0),ya=",".charCodeAt(0),Xr=".".charCodeAt(0),Yr="!".charCodeAt(0),ve={};ve[ua]=l.SemiColon;ve[ma]=l.Colon;ve[fa]=l.CurlyL;ve[ga]=l.CurlyR;ve[va]=l.BracketR;ve[ba]=l.BracketL;ve[Qr]=l.ParenthesisL;ve[Zr]=l.ParenthesisR;ve[ya]=l.Comma;var G={};G.em=l.EMS;G.ex=l.EXS;G.px=l.Length;G.cm=l.Length;G.mm=l.Length;G.in=l.Length;G.pt=l.Length;G.pc=l.Length;G.deg=l.Angle;G.rad=l.Angle;G.grad=l.Angle;G.ms=l.Time;G.s=l.Time;G.hz=l.Freq;G.khz=l.Freq;G["%"]=l.Percentage;G.fr=l.Percentage;G.dpi=l.Resolution;G.dpcm=l.Resolution;var ye=function(){function n(){this.stream=new Br(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return n.prototype.setSource=function(e){this.stream=new Br(e)},n.prototype.finishToken=function(e,t,r){return{offset:e,len:this.stream.pos()-e,type:t,text:r||this.stream.substring(e)}},n.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},n.prototype.pos=function(){return this.stream.pos()},n.prototype.goBackTo=function(e){this.stream.goBackTo(e)},n.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,l.UnquotedString,t.join("")):null},n.prototype.scan=function(){var e=this.trivia();if(e!==null)return e;var t=this.stream.pos();return this.stream.eos()?this.finishToken(t,l.EOF):this.scanNext(t)},n.prototype.scanNext=function(e){if(this.stream.advanceIfChars([la,Yr,tt,tt]))return this.finishToken(e,l.CDO);if(this.stream.advanceIfChars([tt,tt,ca]))return this.finishToken(e,l.CDC);var t=[];if(this.ident(t))return this.finishToken(e,l.Ident,t.join(""));if(this.stream.advanceIfChar(da))if(t=["@"],this._name(t)){var r=t.join("");return r==="@charset"?this.finishToken(e,l.Charset,r):this.finishToken(e,l.AtKeyword,r)}else return this.finishToken(e,l.Delim);if(this.stream.advanceIfChar(pa))return t=["#"],this._name(t)?this.finishToken(e,l.Hash,t.join("")):this.finishToken(e,l.Delim);if(this.stream.advanceIfChar(Yr))return this.finishToken(e,l.Exclamation);if(this._number()){var i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(sa))return this.finishToken(e,l.Percentage);if(this.ident(t)){var o=this.stream.substring(i).toLowerCase(),a=G[o];return typeof a<"u"?this.finishToken(e,a,t.join("")):this.finishToken(e,l.Dimension,t.join(""))}return this.finishToken(e,l.Num)}t=[];var s=this._string(t);return s!==null?this.finishToken(e,s,t.join("")):(s=ve[this.stream.peekChar()],typeof s<"u"?(this.stream.advance(1),this.finishToken(e,s)):this.stream.peekChar(0)===ia&&this.stream.peekChar(1)===xt?(this.stream.advance(2),this.finishToken(e,l.Includes)):this.stream.peekChar(0)===aa&&this.stream.peekChar(1)===xt?(this.stream.advance(2),this.finishToken(e,l.Dashmatch)):this.stream.peekChar(0)===Bn&&this.stream.peekChar(1)===xt?(this.stream.advance(2),this.finishToken(e,l.SubstringOperator)):this.stream.peekChar(0)===oa&&this.stream.peekChar(1)===xt?(this.stream.advance(2),this.finishToken(e,l.PrefixOperator)):this.stream.peekChar(0)===ha&&this.stream.peekChar(1)===xt?(this.stream.advance(2),this.finishToken(e,l.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,l.Delim)))},n.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,l.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,l.Comment)}else return null}},n.prototype.comment=function(){if(this.stream.advanceIfChars([Gr,Bn])){var e=!1,t=!1;return this.stream.advanceWhileChar(function(r){return t&&r===Gr?(e=!0,!1):(t=r===Bn,!0)}),e&&this.stream.advance(1),!0}return!1},n.prototype._number=function(){var e=0,t;return this.stream.peekChar()===Xr&&(e=1),t=this.stream.peekChar(e),t>=Qt&&t<=Zt?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=Qt&&r<=Zt||e===0&&r===Xr}),!0):!1},n.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case rt:case St:case nt:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===rt&&this.stream.advanceIfChar(nt)&&e.push(` `),!0}return!1},n.prototype._escape=function(e,t){var r=this.stream.peekChar();if(r===$n){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=Qt&&r<=Zt||r>=jn&&r<=na||r>=Vn&&r<=ra);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===qn||r===Kn?this.stream.advance(1):this._newline([]),!0}if(r!==rt&&r!==St&&r!==nt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(t)return this._newline(e)}return!1},n.prototype._stringChar=function(e,t){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==$n&&r!==rt&&r!==St&&r!==nt?(this.stream.advance(1),t.push(String.fromCharCode(r)),!0):!1},n.prototype._string=function(e){if(this.stream.peekChar()===Jr||this.stream.peekChar()===Hr){var t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),l.String):l.BadString}return null},n.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return t!==0&&t!==$n&&t!==Jr&&t!==Hr&&t!==Qr&&t!==Zr&&t!==qn&&t!==Kn&&t!==nt&&t!==St&&t!==rt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},n.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(t){return t===qn||t===Kn||t===nt||t===St||t===rt});return e>0},n.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},n.prototype.ident=function(e){var t=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},n.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return t===Kr||t>=jn&&t<=$r||t>=Vn&&t<=qr||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._minus=function(e){var t=this.stream.peekChar();return t===tt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._identChar=function(e){var t=this.stream.peekChar();return t===Kr||t===tt||t>=jn&&t<=$r||t>=Vn&&t<=qr||t>=Qt&&t<=Zt||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n}();function V(n,e){if(n.length<e.length)return!1;for(var t=0;t<e.length;t++)if(n[t]!==e[t])return!1;return!0}function en(n,e){var t=n.length-e.length;return t>0?n.lastIndexOf(e)===t:t===0?n===e:!1}function ei(n,e,t){t===void 0&&(t=4);var r=Math.abs(n.length-e.length);if(r>t)return 0;var i=[],o=[],a,s;for(a=0;a<e.length+1;++a)o.push(0);for(a=0;a<n.length+1;++a)i.push(o);for(a=1;a<n.length+1;++a)for(s=1;s<e.length+1;++s)n[a-1]===e[s-1]?i[a][s]=i[a-1][s-1]+1:i[a][s]=Math.max(i[a-1][s],i[a][s-1]);return i[n.length][e.length]-Math.sqrt(r)}function Gn(n,e){return e===void 0&&(e=!0),n?n.length<140?n:n.slice(0,140)+(e?"\u2026":""):""}function ti(n,e){var t=e.exec(n);return t&&t[0].length?n.substr(0,n.length-t[0].length):n}var D=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),h;(function(n){n[n.Undefined=0]="Undefined",n[n.Identifier=1]="Identifier",n[n.Stylesheet=2]="Stylesheet",n[n.Ruleset=3]="Ruleset",n[n.Selector=4]="Selector",n[n.SimpleSelector=5]="SimpleSelector",n[n.SelectorInterpolation=6]="SelectorInterpolation",n[n.SelectorCombinator=7]="SelectorCombinator",n[n.SelectorCombinatorParent=8]="SelectorCombinatorParent",n[n.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",n[n.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",n[n.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",n[n.Page=12]="Page",n[n.PageBoxMarginBox=13]="PageBoxMarginBox",n[n.ClassSelector=14]="ClassSelector",n[n.IdentifierSelector=15]="IdentifierSelector",n[n.ElementNameSelector=16]="ElementNameSelector",n[n.PseudoSelector=17]="PseudoSelector",n[n.AttributeSelector=18]="AttributeSelector",n[n.Declaration=19]="Declaration",n[n.Declarations=20]="Declarations",n[n.Property=21]="Property",n[n.Expression=22]="Expression",n[n.BinaryExpression=23]="BinaryExpression",n[n.Term=24]="Term",n[n.Operator=25]="Operator",n[n.Value=26]="Value",n[n.StringLiteral=27]="StringLiteral",n[n.URILiteral=28]="URILiteral",n[n.EscapedValue=29]="EscapedValue",n[n.Function=30]="Function",n[n.NumericValue=31]="NumericValue",n[n.HexColorValue=32]="HexColorValue",n[n.RatioValue=33]="RatioValue",n[n.MixinDeclaration=34]="MixinDeclaration",n[n.MixinReference=35]="MixinReference",n[n.VariableName=36]="VariableName",n[n.VariableDeclaration=37]="VariableDeclaration",n[n.Prio=38]="Prio",n[n.Interpolation=39]="Interpolation",n[n.NestedProperties=40]="NestedProperties",n[n.ExtendsReference=41]="ExtendsReference",n[n.SelectorPlaceholder=42]="SelectorPlaceholder",n[n.Debug=43]="Debug",n[n.If=44]="If",n[n.Else=45]="Else",n[n.For=46]="For",n[n.Each=47]="Each",n[n.While=48]="While",n[n.MixinContentReference=49]="MixinContentReference",n[n.MixinContentDeclaration=50]="MixinContentDeclaration",n[n.Media=51]="Media",n[n.Keyframe=52]="Keyframe",n[n.FontFace=53]="FontFace",n[n.Import=54]="Import",n[n.Namespace=55]="Namespace",n[n.Invocation=56]="Invocation",n[n.FunctionDeclaration=57]="FunctionDeclaration",n[n.ReturnStatement=58]="ReturnStatement",n[n.MediaQuery=59]="MediaQuery",n[n.MediaCondition=60]="MediaCondition",n[n.MediaFeature=61]="MediaFeature",n[n.FunctionParameter=62]="FunctionParameter",n[n.FunctionArgument=63]="FunctionArgument",n[n.KeyframeSelector=64]="KeyframeSelector",n[n.ViewPort=65]="ViewPort",n[n.Document=66]="Document",n[n.AtApplyRule=67]="AtApplyRule",n[n.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",n[n.CustomPropertySet=69]="CustomPropertySet",n[n.ListEntry=70]="ListEntry",n[n.Supports=71]="Supports",n[n.SupportsCondition=72]="SupportsCondition",n[n.NamespacePrefix=73]="NamespacePrefix",n[n.GridLine=74]="GridLine",n[n.Plugin=75]="Plugin",n[n.UnknownAtRule=76]="UnknownAtRule",n[n.Use=77]="Use",n[n.ModuleConfiguration=78]="ModuleConfiguration",n[n.Forward=79]="Forward",n[n.ForwardVisibility=80]="ForwardVisibility",n[n.Module=81]="Module"})(h||(h={}));var T;(function(n){n[n.Mixin=0]="Mixin",n[n.Rule=1]="Rule",n[n.Variable=2]="Variable",n[n.Function=3]="Function",n[n.Keyframe=4]="Keyframe",n[n.Unknown=5]="Unknown",n[n.Module=6]="Module",n[n.Forward=7]="Forward",n[n.ForwardVisibility=8]="ForwardVisibility"})(T||(T={}));function tn(n,e){var t=null;return!n||e<n.offset||e>n.end?null:(n.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(t?r.length<=t.length&&(t=r):t=r,!0):!1}),t)}function it(n,e){for(var t=tn(n,e),r=[];t;)r.unshift(t),t=t.parent;return r}function ni(n){var e=n.findParent(h.Declaration),t=e&&e.getValue();return t&&t.encloses(n)?e:null}var E=function(){function n(e,t,r){e===void 0&&(e=-1),t===void 0&&(t=-1),this.parent=null,this.offset=e,this.length=t,r&&(this.nodeType=r)}return Object.defineProperty(n.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.nodeType||h.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),n.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},n.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},n.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},n.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},n.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},n.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;t<r.length;t++){var i=r[t];i.accept(e)}},n.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},n.prototype.adoptChild=function(e,t){if(t===void 0&&(t=-1),e.parent&&e.parent.children){var r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),t!==-1?i.splice(t,0,e):i.push(e),e},n.prototype.attachTo=function(e,t){return t===void 0&&(t=-1),e&&e.adoptChild(this,t),this},n.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},n.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},n.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(t){return t.getRule()===e})},n.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(t){return t.isErroneous(!0)})},n.prototype.setNode=function(e,t,r){return r===void 0&&(r=-1),t?(t.attachTo(this,r),this[e]=t,!0):!1},n.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},n.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);var t=e.end;(t>this.end||this.length===-1)&&(this.length=t-this.offset)},n.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},n.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},n.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},n.prototype.addChildren=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.addChild(i)}},n.prototype.findFirstChildBeforeOffset=function(e){if(this.children){for(var t=null,r=this.children.length-1;r>=0;r--)if(t=this.children[r],t.offset<=e)return t}return null},n.prototype.findChildAtOffset=function(e,t){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?t&&r.findChildAtOffset(e,!0)||r:null},n.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},n.prototype.getParent=function(){for(var e=this.parent;e instanceof Y;)e=e.parent;return e},n.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},n.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this;r&&!e.some(function(i){return r.type===i});)r=r.parent;return r},n.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},n.prototype.getData=function(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]},n}();var Y=function(n){D(e,n);function e(t,r){r===void 0&&(r=-1);var i=n.call(this,-1,-1)||this;return i.attachTo(t,r),i.offset=-1,i.length=-1,i}return e}(E);var Q=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.isCustomProperty=!1,i}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Identifier},enumerable:!1,configurable:!0}),e.prototype.containsInterpolation=function(){return this.hasChildren()},e}(E);var ri=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Stylesheet},enumerable:!1,configurable:!0}),e}(E);var kt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Declarations},enumerable:!1,configurable:!0}),e}(E);var B=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.getDeclarations=function(){return this.declarations},e.prototype.setDeclarations=function(t){return this.setNode("declarations",t)},e}(E);var Ee=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Ruleset},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new Y(this)),this.selectors},e.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(h.Declarations)!==null},e}(B);var we=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Selector},enumerable:!1,configurable:!0}),e}(E);var xe=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.SimpleSelector},enumerable:!1,configurable:!0}),e}(E);var Gs=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.AtApplyRule},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(E);var nn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e}(E);var ii=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.CustomPropertySet},enumerable:!1,configurable:!0}),e}(B);var re=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.property=null,i}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Declaration},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t){return this.setNode("property",t)},e.prototype.getProperty=function(){return this.property},e.prototype.getFullPropertyName=function(){var t=this.property?this.property.getName():"unknown";if(this.parent instanceof kt&&this.parent.getParent()instanceof Hn){var r=this.parent.getParent().getParent();if(r instanceof e)return r.getFullPropertyName()+t}return t},e.prototype.getNonPrefixedPropertyName=function(){var t=this.getFullPropertyName();if(t&&t.charAt(0)==="-"){var r=t.indexOf("-",1);if(r!==-1)return t.substring(r+1)}return t},e.prototype.setValue=function(t){return this.setNode("value",t)},e.prototype.getValue=function(){return this.value},e.prototype.setNestedProperties=function(t){return this.setNode("nestedProperties",t)},e.prototype.getNestedProperties=function(){return this.nestedProperties},e}(nn);var oi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),e.prototype.setPropertySet=function(t){return this.setNode("propertySet",t)},e.prototype.getPropertySet=function(){return this.propertySet},e}(re);var ot=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Property},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return ti(this.getText(),/[_\+]+$/)},e.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},e}(E);var Sa=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Invocation},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Y(this)),this.arguments},e}(E);var De=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Function},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(Sa);var _e=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.FunctionParameter},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setDefaultValue=function(t){return this.setNode("defaultValue",t,0)},e.prototype.getDefaultValue=function(){return this.defaultValue},e}(E);var me=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.FunctionArgument},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(t){return this.setNode("value",t,0)},e.prototype.getValue=function(){return this.value},e}(E);var ai=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.If},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(t){return this.setNode("expression",t,0)},e.prototype.setElseClause=function(t){return this.setNode("elseClause",t)},e}(B);var si=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.For},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(t){return this.setNode("variable",t,0)},e}(B);var li=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Each},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.variables||(this.variables=new Y(this)),this.variables},e}(B);var ci=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.While},enumerable:!1,configurable:!0}),e}(B);var di=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Else},enumerable:!1,configurable:!0}),e}(B);var $e=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.FunctionDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Y(this)),this.parameters},e}(B);var pi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.ViewPort},enumerable:!1,configurable:!0}),e}(B);var rn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.FontFace},enumerable:!1,configurable:!0}),e}(B);var Hn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.NestedProperties},enumerable:!1,configurable:!0}),e}(B);var on=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Keyframe},enumerable:!1,configurable:!0}),e.prototype.setKeyword=function(t){return this.setNode("keyword",t,0)},e.prototype.getKeyword=function(){return this.keyword},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(B);var Jn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.KeyframeSelector},enumerable:!1,configurable:!0}),e}(B);var at=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Import},enumerable:!1,configurable:!0}),e.prototype.setMedialist=function(t){return t?(t.attachTo(this),!0):!1},e}(E);var hi=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Use},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Y(this)),this.parameters},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(E);var ui=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.ModuleConfiguration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(t){return this.setNode("value",t,0)},e.prototype.getValue=function(){return this.value},e}(E);var mi=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Forward},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getMembers=function(){return this.members||(this.members=new Y(this)),this.members},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Y(this)),this.parameters},e}(E);var fi=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.ForwardVisibility},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(E);var gi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Namespace},enumerable:!1,configurable:!0}),e}(E);var an=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Media},enumerable:!1,configurable:!0}),e}(B);var Ct=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Supports},enumerable:!1,configurable:!0}),e}(B);var bi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Document},enumerable:!1,configurable:!0}),e}(B);var sn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.getMediums=function(){return this.mediums||(this.mediums=new Y(this)),this.mediums},e}(E);var ln=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MediaQuery},enumerable:!1,configurable:!0}),e}(E);var vi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MediaCondition},enumerable:!1,configurable:!0}),e}(E);var yi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MediaFeature},enumerable:!1,configurable:!0}),e}(E);var qe=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.SupportsCondition},enumerable:!1,configurable:!0}),e}(E);var wi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Page},enumerable:!1,configurable:!0}),e}(B);var xi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.PageBoxMarginBox},enumerable:!1,configurable:!0}),e}(B);var cn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Expression},enumerable:!1,configurable:!0}),e}(E);var st=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.BinaryExpression},enumerable:!1,configurable:!0}),e.prototype.setLeft=function(t){return this.setNode("left",t)},e.prototype.getLeft=function(){return this.left},e.prototype.setRight=function(t){return this.setNode("right",t)},e.prototype.getRight=function(){return this.right},e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e}(E);var Si=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Term},enumerable:!1,configurable:!0}),e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e.prototype.setExpression=function(t){return this.setNode("expression",t)},e.prototype.getExpression=function(){return this.expression},e}(E);var ki=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.AttributeSelector},enumerable:!1,configurable:!0}),e.prototype.setNamespacePrefix=function(t){return this.setNode("namespacePrefix",t)},e.prototype.getNamespacePrefix=function(){return this.namespacePrefix},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e.prototype.setValue=function(t){return this.setNode("value",t)},e.prototype.getValue=function(){return this.value},e}(E);var Hs=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Operator},enumerable:!1,configurable:!0}),e}(E);var Ft=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.HexColorValue},enumerable:!1,configurable:!0}),e}(E);var Ci=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.RatioValue},enumerable:!1,configurable:!0}),e}(E);var ka=".".charCodeAt(0),Ca="0".charCodeAt(0),Fa="9".charCodeAt(0),Et=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.NumericValue},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){for(var t=this.getText(),r=0,i,o=0,a=t.length;o<a&&(i=t.charCodeAt(o),Ca<=i&&i<=Fa||i===ka);o++)r+=1;return{value:t.substring(0,r),unit:r<t.length?t.substring(r):void 0}},e}(E);var Oe=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.variable=null,i.value=null,i.needsSemicolon=!0,i}return Object.defineProperty(e.prototype,"type",{get:function(){return h.VariableDeclaration},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(t){return t?(t.attachTo(this),this.variable=t,!0):!1},e.prototype.getVariable=function(){return this.variable},e.prototype.getName=function(){return this.variable?this.variable.getName():""},e.prototype.setValue=function(t){return t?(t.attachTo(this),this.value=t,!0):!1},e.prototype.getValue=function(){return this.value},e}(nn);var Dt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Interpolation},enumerable:!1,configurable:!0}),e}(E);var lt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.VariableName},enumerable:!1,configurable:!0}),e.prototype.getName=function(){return this.getText()},e}(E);var We=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.ExtendsReference},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new Y(this)),this.selectors},e}(E);var Fi=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Y(this)),this.arguments},e}(E);var Ei=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Y(this)),this.parameters},e}(B);var Ke=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MixinReference},enumerable:!1,configurable:!0}),e.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new Y(this)),this.namespaces},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Y(this)),this.arguments},e.prototype.setContent=function(t){return this.setNode("content",t)},e.prototype.getContent=function(){return this.content},e}(E);var ze=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.MixinDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Y(this)),this.parameters},e.prototype.setGuard=function(t){return t&&(t.attachTo(this),this.guard=t),!1},e}(B);var dn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.UnknownAtRule},enumerable:!1,configurable:!0}),e.prototype.setAtRuleName=function(t){this.atRuleName=t},e.prototype.getAtRuleName=function(){return this.atRuleName},e}(B);var Di=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.ListEntry},enumerable:!1,configurable:!0}),e.prototype.setKey=function(t){return this.setNode("key",t,0)},e.prototype.setValue=function(t){return this.setNode("value",t,1)},e}(E);var zi=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getConditions=function(){return this.conditions||(this.conditions=new Y(this)),this.conditions},e}(E);var Ri=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setVariable=function(t){return this.setNode("variable",t)},e}(E);var Xn=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return h.Module},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(E);var Z;(function(n){n[n.Ignore=1]="Ignore",n[n.Warning=2]="Warning",n[n.Error=4]="Error"})(Z||(Z={}));var pn=function(){function n(e,t,r,i,o,a){o===void 0&&(o=e.offset),a===void 0&&(a=e.length),this.node=e,this.rule=t,this.level=r,this.message=i||t.message,this.offset=o,this.length=a}return 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},n}();var Ii=function(){function n(){this.entries=[]}return n.entries=function(e){var t=new n;return e.acceptVisitor(t),t.entries},n.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},n}();function Ea(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(r,i)=>{let o=i[0];return typeof e[o]<"u"?e[o]:r}),t}function Da(n,e,...t){return Ea(e,t)}function $(n){return Da}var O=$(),W=function(){function n(e,t){this.id=e,this.message=t}return n}();var m={NumberExpected:new W("css-numberexpected",O("expected.number","number expected")),ConditionExpected:new W("css-conditionexpected",O("expected.condt","condition expected")),RuleOrSelectorExpected:new W("css-ruleorselectorexpected",O("expected.ruleorselector","at-rule or selector expected")),DotExpected:new W("css-dotexpected",O("expected.dot","dot expected")),ColonExpected:new W("css-colonexpected",O("expected.colon","colon expected")),SemiColonExpected:new W("css-semicolonexpected",O("expected.semicolon","semi-colon expected")),TermExpected:new W("css-termexpected",O("expected.term","term expected")),ExpressionExpected:new W("css-expressionexpected",O("expected.expression","expression expected")),OperatorExpected:new W("css-operatorexpected",O("expected.operator","operator expected")),IdentifierExpected:new W("css-identifierexpected",O("expected.ident","identifier expected")),PercentageExpected:new W("css-percentageexpected",O("expected.percentage","percentage expected")),URIOrStringExpected:new W("css-uriorstringexpected",O("expected.uriorstring","uri or string expected")),URIExpected:new W("css-uriexpected",O("expected.uri","URI expected")),VariableNameExpected:new W("css-varnameexpected",O("expected.varname","variable name expected")),VariableValueExpected:new W("css-varvalueexpected",O("expected.varvalue","variable value expected")),PropertyValueExpected:new W("css-propertyvalueexpected",O("expected.propvalue","property value expected")),LeftCurlyExpected:new W("css-lcurlyexpected",O("expected.lcurly","{ expected")),RightCurlyExpected:new W("css-rcurlyexpected",O("expected.rcurly","} expected")),LeftSquareBracketExpected:new W("css-rbracketexpected",O("expected.lsquare","[ expected")),RightSquareBracketExpected:new W("css-lbracketexpected",O("expected.rsquare","] expected")),LeftParenthesisExpected:new W("css-lparentexpected",O("expected.lparen","( expected")),RightParenthesisExpected:new W("css-rparentexpected",O("expected.rparent",") expected")),CommaExpected:new W("css-commaexpected",O("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new W("css-pagedirordeclexpected",O("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new W("css-unknownatrule",O("unknown.atrule","at-rule unknown")),UnknownKeyword:new W("css-unknownkeyword",O("unknown.keyword","unknown keyword")),SelectorExpected:new W("css-selectorexpected",O("expected.selector","selector expected")),StringLiteralExpected:new W("css-stringliteralexpected",O("expected.stringliteral","string literal expected")),WhitespaceExpected:new W("css-whitespaceexpected",O("expected.whitespace","whitespace expected")),MediaQueryExpected:new W("css-mediaqueryexpected",O("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new W("css-idorwildcardexpected",O("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new W("css-wildcardexpected",O("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new W("css-idorvarexpected",O("expected.idorvar","identifier or variable expected"))};var Mi;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647})(Mi||(Mi={}));var un;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(un||(un={}));var ie;(function(n){function e(r,i){return r===Number.MAX_VALUE&&(r=un.MAX_VALUE),i===Number.MAX_VALUE&&(i=un.MAX_VALUE),{line:r,character:i}}n.create=e;function t(r){var i=r;return b.objectLiteral(i)&&b.uinteger(i.line)&&b.uinteger(i.character)}n.is=t})(ie||(ie={}));var _;(function(n){function e(r,i,o,a){if(b.uinteger(r)&&b.uinteger(i)&&b.uinteger(o)&&b.uinteger(a))return{start:ie.create(r,i),end:ie.create(o,a)};if(ie.is(r)&&ie.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}n.create=e;function t(r){var i=r;return b.objectLiteral(i)&&ie.is(i.start)&&ie.is(i.end)}n.is=t})(_||(_={}));var Ge;(function(n){function e(r,i){return{uri:r,range:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&_.is(i.range)&&(b.string(i.uri)||b.undefined(i.uri))}n.is=t})(Ge||(Ge={}));var Ti;(function(n){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}n.create=e;function t(r){var i=r;return b.defined(i)&&_.is(i.targetRange)&&b.string(i.targetUri)&&(_.is(i.targetSelectionRange)||b.undefined(i.targetSelectionRange))&&(_.is(i.originSelectionRange)||b.undefined(i.originSelectionRange))}n.is=t})(Ti||(Ti={}));var mn;(function(n){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}n.create=e;function t(r){var i=r;return b.numberRange(i.red,0,1)&&b.numberRange(i.green,0,1)&&b.numberRange(i.blue,0,1)&&b.numberRange(i.alpha,0,1)}n.is=t})(mn||(mn={}));var Yn;(function(n){function e(r,i){return{range:r,color:i}}n.create=e;function t(r){var i=r;return _.is(i.range)&&mn.is(i.color)}n.is=t})(Yn||(Yn={}));var Qn;(function(n){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}n.create=e;function t(r){var i=r;return b.string(i.label)&&(b.undefined(i.textEdit)||M.is(i))&&(b.undefined(i.additionalTextEdits)||b.typedArray(i.additionalTextEdits,M.is))}n.is=t})(Qn||(Qn={}));var Zn;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Zn||(Zn={}));var er;(function(n){function e(r,i,o,a,s){var d={startLine:r,endLine:i};return b.defined(o)&&(d.startCharacter=o),b.defined(a)&&(d.endCharacter=a),b.defined(s)&&(d.kind=s),d}n.create=e;function t(r){var i=r;return b.uinteger(i.startLine)&&b.uinteger(i.startLine)&&(b.undefined(i.startCharacter)||b.uinteger(i.startCharacter))&&(b.undefined(i.endCharacter)||b.uinteger(i.endCharacter))&&(b.undefined(i.kind)||b.string(i.kind))}n.is=t})(er||(er={}));var tr;(function(n){function e(r,i){return{location:r,message:i}}n.create=e;function t(r){var i=r;return b.defined(i)&&Ge.is(i.location)&&b.string(i.message)}n.is=t})(tr||(tr={}));var dt;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(dt||(dt={}));var Pi;(function(n){n.Unnecessary=1,n.Deprecated=2})(Pi||(Pi={}));var Ai;(function(n){function e(t){var r=t;return r!=null&&b.string(r.href)}n.is=e})(Ai||(Ai={}));var zt;(function(n){function e(r,i,o,a,s,d){var c={range:r,message:i};return b.defined(o)&&(c.severity=o),b.defined(a)&&(c.code=a),b.defined(s)&&(c.source=s),b.defined(d)&&(c.relatedInformation=d),c}n.create=e;function t(r){var i,o=r;return b.defined(o)&&_.is(o.range)&&b.string(o.message)&&(b.number(o.severity)||b.undefined(o.severity))&&(b.integer(o.code)||b.string(o.code)||b.undefined(o.code))&&(b.undefined(o.codeDescription)||b.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(b.string(o.source)||b.undefined(o.source))&&(b.undefined(o.relatedInformation)||b.typedArray(o.relatedInformation,tr.is))}n.is=t})(zt||(zt={}));var Ue;(function(n){function e(r,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s={title:r,command:i};return b.defined(o)&&o.length>0&&(s.arguments=o),s}n.create=e;function t(r){var i=r;return b.defined(i)&&b.string(i.title)&&b.string(i.command)}n.is=t})(Ue||(Ue={}));var M;(function(n){function e(o,a){return{range:o,newText:a}}n.replace=e;function t(o,a){return{range:{start:o,end:o},newText:a}}n.insert=t;function r(o){return{range:o,newText:""}}n.del=r;function i(o){var a=o;return b.objectLiteral(a)&&b.string(a.newText)&&_.is(a.range)}n.is=i})(M||(M={}));var ct;(function(n){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}n.create=e;function t(r){var i=r;return i!==void 0&&b.objectLiteral(i)&&b.string(i.label)&&(b.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(b.string(i.description)||i.description===void 0)}n.is=t})(ct||(ct={}));var oe;(function(n){function e(t){var r=t;return typeof r=="string"}n.is=e})(oe||(oe={}));var Le;(function(n){function e(o,a,s){re