free-swagger-userscript
Version:
free-swagger for tampermonkey
1 lines • 729 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37236795"],{b556:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r,i,o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();if("object"===typeof e)i="win32"===e.platform;else if("object"===typeof navigator){var s=navigator.userAgent;i=s.indexOf("Windows")>=0}var a=/^\w[\w\d+.-]*$/,l=/^\//,c=/^\/\//;function d(e,t){if(!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&&!a.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(c.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 p(e,t){return e||t?e:"file"}function h(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u;break}return t}var m="",u="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"===typeof e?(this.scheme=e.scheme||m,this.authority=e.authority||m,this.path=e.path||m,this.query=e.query||m,this.fragment=e.fragment||m):(this.scheme=p(e,o),this.authority=t||m,this.path=h(this.scheme,n||m),this.query=r||m,this.fragment=i||m,d(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"function"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return S(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=m),void 0===n?n=this.authority:null===n&&(n=m),void 0===r?r=this.path:null===r&&(r=m),void 0===i?i=this.query:null===i&&(i=m),void 0===o?o=this.fragment:null===o&&(o=m),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new v(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=f.exec(e);return n?new v(n[2]||m,z(n[4]||m),z(n[5]||m),z(n[7]||m),z(n[9]||m),t):new v(m,m,m,m,m)},e.file=function(e){var t=m;if(i&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){var n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new v("file",t,e,m,m)},e.from=function(e){return new v(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),k(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new v(t);return n._formatted=t.external,n._fsPath=t._sep===b?t.fsPath:null,n}return t},e}(),b=i?1:void 0,v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return o(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=S(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=b),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},t}(g),y=(r={},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 w(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=y[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function x(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=y[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function S(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&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&&(n=n.replace(/\//g,"\\")),n}function k(e,t){var n=t?x:w,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,l=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=u,r+=u),o){var c=o.indexOf("@");if(-1!==c){var d=o.substr(0,c);o=o.substr(c+1),c=d.indexOf(":"),-1===c?r+=n(d,!1):(r+=n(d.substr(0,c),!1),r+=":",r+=n(d.substr(c+1),!1)),r+="@"}o=o.toLowerCase(),c=o.indexOf(":"),-1===c?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){var p=s.charCodeAt(1);p>=65&&p<=90&&(s="/"+String.fromCharCode(p+32)+":"+s.substr(3))}else if(s.length>=2&&58===s.charCodeAt(1)){p=s.charCodeAt(0);p>=65&&p<=90&&(s=String.fromCharCode(p+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),l&&(r+="#",r+=t?l:w(l,!1)),r}function C(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}var F=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function z(e){return e.match(F)?e.replace(F,(function(e){return C(e)})):e}}).call(this,n("c32c"))},ed45:function(e,t,n){"use strict";n.r(t),n.d(t,"setupMode",(function(){return Is}));var r,i=n("2373"),o=12e4,s=function(){function e(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()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){if(this._worker){var e=Date.now()-this._lastUsedTime;e>o&&this._stopWorker()}},e.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:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._getClient().then((function(t){e=t})).then((function(e){return t._worker.withSyncedResources(n)})).then((function(t){return e}))},e}();(function(e){e[e["Ident"]=0]="Ident",e[e["AtKeyword"]=1]="AtKeyword",e[e["String"]=2]="String",e[e["BadString"]=3]="BadString",e[e["UnquotedString"]=4]="UnquotedString",e[e["Hash"]=5]="Hash",e[e["Num"]=6]="Num",e[e["Percentage"]=7]="Percentage",e[e["Dimension"]=8]="Dimension",e[e["UnicodeRange"]=9]="UnicodeRange",e[e["CDO"]=10]="CDO",e[e["CDC"]=11]="CDC",e[e["Colon"]=12]="Colon",e[e["SemiColon"]=13]="SemiColon",e[e["CurlyL"]=14]="CurlyL",e[e["CurlyR"]=15]="CurlyR",e[e["ParenthesisL"]=16]="ParenthesisL",e[e["ParenthesisR"]=17]="ParenthesisR",e[e["BracketL"]=18]="BracketL",e[e["BracketR"]=19]="BracketR",e[e["Whitespace"]=20]="Whitespace",e[e["Includes"]=21]="Includes",e[e["Dashmatch"]=22]="Dashmatch",e[e["SubstringOperator"]=23]="SubstringOperator",e[e["PrefixOperator"]=24]="PrefixOperator",e[e["SuffixOperator"]=25]="SuffixOperator",e[e["Delim"]=26]="Delim",e[e["EMS"]=27]="EMS",e[e["EXS"]=28]="EXS",e[e["Length"]=29]="Length",e[e["Angle"]=30]="Angle",e[e["Time"]=31]="Time",e[e["Freq"]=32]="Freq",e[e["Exclamation"]=33]="Exclamation",e[e["Resolution"]=34]="Resolution",e[e["Comma"]=35]="Comma",e[e["Charset"]=36]="Charset",e[e["EscapedJavaScript"]=37]="EscapedJavaScript",e[e["BadEscapedJavaScript"]=38]="BadEscapedJavaScript",e[e["Comment"]=39]="Comment",e[e["SingleLineComment"]=40]="SingleLineComment",e[e["EOF"]=41]="EOF",e[e["CustomToken"]=42]="CustomToken"})(r||(r={}));var a=function(){function e(e){this.source=e,this.len=e.length,this.position=0}return e.prototype.substring=function(e,t){return void 0===t&&(t=this.position),this.source.substring(e,t)},e.prototype.eos=function(){return this.len<=this.position},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.lookbackChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position-e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.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},e.prototype.advanceWhileChar=function(e){var t=this.position;while(this.position<this.len&&e(this.source.charCodeAt(this.position)))this.position++;return this.position-t},e}(),l="a".charCodeAt(0),c="f".charCodeAt(0),d="z".charCodeAt(0),p="A".charCodeAt(0),h="F".charCodeAt(0),m="Z".charCodeAt(0),u="0".charCodeAt(0),f="9".charCodeAt(0),g="~".charCodeAt(0),b="^".charCodeAt(0),v="=".charCodeAt(0),y="|".charCodeAt(0),w="-".charCodeAt(0),x="_".charCodeAt(0),S="%".charCodeAt(0),k="*".charCodeAt(0),C="(".charCodeAt(0),F=")".charCodeAt(0),z="<".charCodeAt(0),E=">".charCodeAt(0),D="@".charCodeAt(0),R="#".charCodeAt(0),T="$".charCodeAt(0),I="\\".charCodeAt(0),M="/".charCodeAt(0),P="\n".charCodeAt(0),_="\r".charCodeAt(0),N="\f".charCodeAt(0),A='"'.charCodeAt(0),O="'".charCodeAt(0),W=" ".charCodeAt(0),L="\t".charCodeAt(0),U=";".charCodeAt(0),j=":".charCodeAt(0),V="{".charCodeAt(0),B="}".charCodeAt(0),$="[".charCodeAt(0),q="]".charCodeAt(0),K=",".charCodeAt(0),G=".".charCodeAt(0),J="!".charCodeAt(0),H={};H[U]=r.SemiColon,H[j]=r.Colon,H[V]=r.CurlyL,H[B]=r.CurlyR,H[q]=r.BracketR,H[$]=r.BracketL,H[C]=r.ParenthesisL,H[F]=r.ParenthesisR,H[K]=r.Comma;var Y={};Y["em"]=r.EMS,Y["ex"]=r.EXS,Y["px"]=r.Length,Y["cm"]=r.Length,Y["mm"]=r.Length,Y["in"]=r.Length,Y["pt"]=r.Length,Y["pc"]=r.Length,Y["deg"]=r.Angle,Y["rad"]=r.Angle,Y["grad"]=r.Angle,Y["ms"]=r.Time,Y["s"]=r.Time,Y["hz"]=r.Freq,Y["khz"]=r.Freq,Y["%"]=r.Percentage,Y["fr"]=r.Percentage,Y["dpi"]=r.Resolution,Y["dpcm"]=r.Resolution;var X=function(){function e(){this.stream=new a(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return e.prototype.setSource=function(e){this.stream=new a(e)},e.prototype.finishToken=function(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}},e.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},e.prototype.pos=function(){return this.stream.pos()},e.prototype.goBackTo=function(e){this.stream.goBackTo(e)},e.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,r.UnquotedString,t.join("")):null},e.prototype.scan=function(){var e=this.trivia();if(null!==e)return e;var t=this.stream.pos();return this.stream.eos()?this.finishToken(t,r.EOF):this.scanNext(t)},e.prototype.scanNext=function(e){if(this.stream.advanceIfChars([z,J,w,w]))return this.finishToken(e,r.CDO);if(this.stream.advanceIfChars([w,w,E]))return this.finishToken(e,r.CDC);var t=[];if(this.ident(t))return this.finishToken(e,r.Ident,t.join(""));if(this.stream.advanceIfChar(D)){if(t=["@"],this._name(t)){var n=t.join("");return"@charset"===n?this.finishToken(e,r.Charset,n):this.finishToken(e,r.AtKeyword,n)}return this.finishToken(e,r.Delim)}if(this.stream.advanceIfChar(R))return t=["#"],this._name(t)?this.finishToken(e,r.Hash,t.join("")):this.finishToken(e,r.Delim);if(this.stream.advanceIfChar(J))return this.finishToken(e,r.Exclamation);if(this._number()){var i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(S))return this.finishToken(e,r.Percentage);if(this.ident(t)){var o=this.stream.substring(i).toLowerCase(),s=Y[o];return"undefined"!==typeof s?this.finishToken(e,s,t.join("")):this.finishToken(e,r.Dimension,t.join(""))}return this.finishToken(e,r.Num)}t=[];var a=this._string(t);return null!==a?this.finishToken(e,a,t.join("")):(a=H[this.stream.peekChar()],"undefined"!==typeof a?(this.stream.advance(1),this.finishToken(e,a)):this.stream.peekChar(0)===g&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,r.Includes)):this.stream.peekChar(0)===y&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,r.Dashmatch)):this.stream.peekChar(0)===k&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,r.SubstringOperator)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,r.PrefixOperator)):this.stream.peekChar(0)===T&&this.stream.peekChar(1)===v?(this.stream.advance(2),this.finishToken(e,r.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,r.Delim)))},e.prototype.trivia=function(){while(1){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,r.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,r.Comment)}}},e.prototype.comment=function(){if(this.stream.advanceIfChars([M,k])){var e=!1,t=!1;return this.stream.advanceWhileChar((function(n){return t&&n===M?(e=!0,!1):(t=n===k,!0)})),e&&this.stream.advance(1),!0}return!1},e.prototype._number=function(){var e,t=0;return this.stream.peekChar()===G&&(t=1),e=this.stream.peekChar(t),e>=u&&e<=f&&(this.stream.advance(t+1),this.stream.advanceWhileChar((function(e){return e>=u&&e<=f||0===t&&e===G})),!0)},e.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case _:case N:case P:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===_&&this.stream.advanceIfChar(P)&&e.push("\n"),!0}return!1},e.prototype._escape=function(e,t){var n=this.stream.peekChar();if(n===I){this.stream.advance(1),n=this.stream.peekChar();var r=0;while(r<6&&(n>=u&&n<=f||n>=l&&n<=c||n>=p&&n<=h))this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{var i=parseInt(this.stream.substring(this.stream.pos()-r),16);i&&e.push(String.fromCharCode(i))}catch(o){}return n===W||n===L?this.stream.advance(1):this._newline([]),!0}if(n!==_&&n!==N&&n!==P)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1},e.prototype._stringChar=function(e,t){var n=this.stream.peekChar();return 0!==n&&n!==e&&n!==I&&n!==_&&n!==N&&n!==P&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)},e.prototype._string=function(e){if(this.stream.peekChar()===O||this.stream.peekChar()===A){var t=this.stream.nextChar();e.push(String.fromCharCode(t));while(this._stringChar(t,e)||this._escape(e,!0));return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),r.String):r.BadString}return null},e.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return 0!==t&&t!==I&&t!==O&&t!==A&&t!==C&&t!==F&&t!==W&&t!==L&&t!==P&&t!==N&&t!==_&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._unquotedString=function(e){var t=!1;while(this._unquotedChar(e)||this._escape(e))t=!0;return t},e.prototype._whitespace=function(){var e=this.stream.advanceWhileChar((function(e){return e===W||e===L||e===P||e===N||e===_}));return e>0},e.prototype._name=function(e){var t=!1;while(this._identChar(e)||this._escape(e))t=!0;return t},e.prototype.ident=function(e){var t=this.stream.pos(),n=this._minus(e);if(n&&this._minus(e)){if(this._identFirstChar(e)||this._escape(e)){while(this._identChar(e)||this._escape(e));return!0}}else if(this._identFirstChar(e)||this._escape(e)){while(this._identChar(e)||this._escape(e));return!0}return this.stream.goBackTo(t),!1},e.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return(t===x||t>=l&&t<=d||t>=p&&t<=m||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._minus=function(e){var t=this.stream.peekChar();return t===w&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e.prototype._identChar=function(e){var t=this.stream.peekChar();return(t===x||t===w||t>=l&&t<=d||t>=p&&t<=m||t>=u&&t<=f||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)},e}();function Z(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Q(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function ee(e,t,n){void 0===n&&(n=4);var r=Math.abs(e.length-t.length);if(r>n)return 0;var i,o,s=[],a=[];for(i=0;i<t.length+1;++i)a.push(0);for(i=0;i<e.length+1;++i)s.push(a);for(i=1;i<e.length+1;++i)for(o=1;o<t.length+1;++o)e[i-1]===t[o-1]?s[i][o]=s[i-1][o-1]+1:s[i][o]=Math.max(s[i-1][o],s[i][o-1]);return s[e.length][t.length]-Math.sqrt(r)}function te(e,t){return void 0===t&&(t=!0),e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function ne(e,t){var n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}var re,ie,oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function se(e,t){var n=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&&(n?e.length<=n.length&&(n=e):n=e,!0)})),n)}function ae(e,t){var n=se(e,t),r=[];while(n)r.unshift(n),n=n.parent;return r}function le(e){var t=e.findParent(re.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}(function(e){e[e["Undefined"]=0]="Undefined",e[e["Identifier"]=1]="Identifier",e[e["Stylesheet"]=2]="Stylesheet",e[e["Ruleset"]=3]="Ruleset",e[e["Selector"]=4]="Selector",e[e["SimpleSelector"]=5]="SimpleSelector",e[e["SelectorInterpolation"]=6]="SelectorInterpolation",e[e["SelectorCombinator"]=7]="SelectorCombinator",e[e["SelectorCombinatorParent"]=8]="SelectorCombinatorParent",e[e["SelectorCombinatorSibling"]=9]="SelectorCombinatorSibling",e[e["SelectorCombinatorAllSiblings"]=10]="SelectorCombinatorAllSiblings",e[e["SelectorCombinatorShadowPiercingDescendant"]=11]="SelectorCombinatorShadowPiercingDescendant",e[e["Page"]=12]="Page",e[e["PageBoxMarginBox"]=13]="PageBoxMarginBox",e[e["ClassSelector"]=14]="ClassSelector",e[e["IdentifierSelector"]=15]="IdentifierSelector",e[e["ElementNameSelector"]=16]="ElementNameSelector",e[e["PseudoSelector"]=17]="PseudoSelector",e[e["AttributeSelector"]=18]="AttributeSelector",e[e["Declaration"]=19]="Declaration",e[e["Declarations"]=20]="Declarations",e[e["Property"]=21]="Property",e[e["Expression"]=22]="Expression",e[e["BinaryExpression"]=23]="BinaryExpression",e[e["Term"]=24]="Term",e[e["Operator"]=25]="Operator",e[e["Value"]=26]="Value",e[e["StringLiteral"]=27]="StringLiteral",e[e["URILiteral"]=28]="URILiteral",e[e["EscapedValue"]=29]="EscapedValue",e[e["Function"]=30]="Function",e[e["NumericValue"]=31]="NumericValue",e[e["HexColorValue"]=32]="HexColorValue",e[e["MixinDeclaration"]=33]="MixinDeclaration",e[e["MixinReference"]=34]="MixinReference",e[e["VariableName"]=35]="VariableName",e[e["VariableDeclaration"]=36]="VariableDeclaration",e[e["Prio"]=37]="Prio",e[e["Interpolation"]=38]="Interpolation",e[e["NestedProperties"]=39]="NestedProperties",e[e["ExtendsReference"]=40]="ExtendsReference",e[e["SelectorPlaceholder"]=41]="SelectorPlaceholder",e[e["Debug"]=42]="Debug",e[e["If"]=43]="If",e[e["Else"]=44]="Else",e[e["For"]=45]="For",e[e["Each"]=46]="Each",e[e["While"]=47]="While",e[e["MixinContentReference"]=48]="MixinContentReference",e[e["MixinContentDeclaration"]=49]="MixinContentDeclaration",e[e["Media"]=50]="Media",e[e["Keyframe"]=51]="Keyframe",e[e["FontFace"]=52]="FontFace",e[e["Import"]=53]="Import",e[e["Namespace"]=54]="Namespace",e[e["Invocation"]=55]="Invocation",e[e["FunctionDeclaration"]=56]="FunctionDeclaration",e[e["ReturnStatement"]=57]="ReturnStatement",e[e["MediaQuery"]=58]="MediaQuery",e[e["FunctionParameter"]=59]="FunctionParameter",e[e["FunctionArgument"]=60]="FunctionArgument",e[e["KeyframeSelector"]=61]="KeyframeSelector",e[e["ViewPort"]=62]="ViewPort",e[e["Document"]=63]="Document",e[e["AtApplyRule"]=64]="AtApplyRule",e[e["CustomPropertyDeclaration"]=65]="CustomPropertyDeclaration",e[e["CustomPropertySet"]=66]="CustomPropertySet",e[e["ListEntry"]=67]="ListEntry",e[e["Supports"]=68]="Supports",e[e["SupportsCondition"]=69]="SupportsCondition",e[e["NamespacePrefix"]=70]="NamespacePrefix",e[e["GridLine"]=71]="GridLine",e[e["Plugin"]=72]="Plugin",e[e["UnknownAtRule"]=73]="UnknownAtRule",e[e["Use"]=74]="Use",e[e["ModuleConfiguration"]=75]="ModuleConfiguration",e[e["Forward"]=76]="Forward",e[e["ForwardVisibility"]=77]="ForwardVisibility",e[e["Module"]=78]="Module"})(re||(re={})),function(e){e[e["Mixin"]=0]="Mixin",e[e["Rule"]=1]="Rule",e[e["Variable"]=2]="Variable",e[e["Function"]=3]="Function",e[e["Keyframe"]=4]="Keyframe",e[e["Unknown"]=5]="Unknown",e[e["Module"]=6]="Module",e[e["Forward"]=7]="Forward",e[e["ForwardVisibility"]=8]="ForwardVisibility"}(ie||(ie={}));var ce,de=function(){function e(e,t,n){void 0===e&&(e=-1),void 0===t&&(t=-1),this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}return Object.defineProperty(e.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.nodeType||re.Undefined},set:function(e){this.nodeType=e},enumerable:!0,configurable:!0}),e.prototype.getTextProvider=function(){var e=this;while(e&&!e.textProvider)e=e.parent;return e?e.textProvider:function(){return"unknown"}},e.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},e.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},e.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},e.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},e.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,n=this.children;t<n.length;t++){var r=n[t];r.accept(e)}},e.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},e.prototype.adoptChild=function(e,t){if(void 0===t&&(t=-1),e.parent&&e.parent.children){var n=e.parent.children.indexOf(e);n>=0&&e.parent.children.splice(n,1)}e.parent=this;var r=this.children;return r||(r=this.children=[]),-1!==t?r.splice(t,0,e):r.push(e),e},e.prototype.attachTo=function(e,t){return void 0===t&&(t=-1),e&&e.adoptChild(this,t),this},e.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},e.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},e.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some((function(t){return t.getRule()===e}))},e.prototype.isErroneous=function(e){return void 0===e&&(e=!1),!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((function(e){return e.isErroneous(!0)}))},e.prototype.setNode=function(e,t,n){return void 0===n&&(n=-1),!!t&&(t.attachTo(this,n),this[e]=t,!0)},e.prototype.addChild=function(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)},e.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);var t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)},e.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},e.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},e.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},e.prototype.addChildren=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addChild(r)}},e.prototype.findFirstChildBeforeOffset=function(e){if(this.children)for(var t=null,n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t;return null},e.prototype.findChildAtOffset=function(e,t){var n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null},e.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},e.prototype.getParent=function(){var e=this.parent;while(e instanceof pe)e=e.parent;return e},e.prototype.findParent=function(e){var t=this;while(t&&t.type!==e)t=t.parent;return t},e.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this;while(n&&!e.some((function(e){return n.type===e})))n=n.parent;return n},e.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},e.prototype.getData=function(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null},e}(),pe=function(e){function t(t,n){void 0===n&&(n=-1);var r=e.call(this,-1,-1)||this;return r.attachTo(t,n),r.offset=-1,r.length=-1,r}return oe(t,e),t}(de),he=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.isCustomProperty=!1,r}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Identifier},enumerable:!0,configurable:!0}),t.prototype.containsInterpolation=function(){return this.hasChildren()},t}(de),me=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Stylesheet},enumerable:!0,configurable:!0}),t}(de),ue=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Declarations},enumerable:!0,configurable:!0}),t}(de),fe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),t.prototype.getDeclarations=function(){return this.declarations},t.prototype.setDeclarations=function(e){return this.setNode("declarations",e)},t}(de),ge=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Ruleset},enumerable:!0,configurable:!0}),t.prototype.getSelectors=function(){return this.selectors||(this.selectors=new pe(this)),this.selectors},t.prototype.isNested=function(){return!!this.parent&&null!==this.parent.findParent(re.Declarations)},t}(fe),be=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Selector},enumerable:!0,configurable:!0}),t}(de),ve=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.SimpleSelector},enumerable:!0,configurable:!0}),t}(de),ye=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.AtApplyRule},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(de),we=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),t}(de),xe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.CustomPropertyDeclaration},enumerable:!0,configurable:!0}),t.prototype.setProperty=function(e){return this.setNode("property",e)},t.prototype.getProperty=function(){return this.property},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t.prototype.setPropertySet=function(e){return this.setNode("propertySet",e)},t.prototype.getPropertySet=function(){return this.propertySet},t}(we),Se=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.CustomPropertySet},enumerable:!0,configurable:!0}),t}(fe),ke=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.property=null,r}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Declaration},enumerable:!0,configurable:!0}),t.prototype.setProperty=function(e){return this.setNode("property",e)},t.prototype.getProperty=function(){return this.property},t.prototype.getFullPropertyName=function(){var e=this.property?this.property.getName():"unknown";if(this.parent instanceof ue&&this.parent.getParent()instanceof Oe){var n=this.parent.getParent().getParent();if(n instanceof t)return n.getFullPropertyName()+e}return e},t.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},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t.prototype.setNestedProperties=function(e){return this.setNode("nestedProperties",e)},t.prototype.getNestedProperties=function(){return this.nestedProperties},t}(we),Ce=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Property},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return ne(this.getText(),/[_\+]+$/)},t.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},t}(de),Fe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Invocation},enumerable:!0,configurable:!0}),t.prototype.getArguments=function(){return this.arguments||(this.arguments=new pe(this)),this.arguments},t}(de),ze=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Function},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(Fe),Ee=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.FunctionParameter},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setDefaultValue=function(e){return this.setNode("defaultValue",e,0)},t.prototype.getDefaultValue=function(){return this.defaultValue},t}(de),De=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.FunctionArgument},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(de),Re=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.If},enumerable:!0,configurable:!0}),t.prototype.setExpression=function(e){return this.setNode("expression",e,0)},t.prototype.setElseClause=function(e){return this.setNode("elseClause",e)},t}(fe),Te=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.For},enumerable:!0,configurable:!0}),t.prototype.setVariable=function(e){return this.setNode("variable",e,0)},t}(fe),Ie=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Each},enumerable:!0,configurable:!0}),t.prototype.getVariables=function(){return this.variables||(this.variables=new pe(this)),this.variables},t}(fe),Me=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.While},enumerable:!0,configurable:!0}),t}(fe),Pe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Else},enumerable:!0,configurable:!0}),t}(fe),_e=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.FunctionDeclaration},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new pe(this)),this.parameters},t}(fe),Ne=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.ViewPort},enumerable:!0,configurable:!0}),t}(fe),Ae=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.FontFace},enumerable:!0,configurable:!0}),t}(fe),Oe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.NestedProperties},enumerable:!0,configurable:!0}),t}(fe),We=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Keyframe},enumerable:!0,configurable:!0}),t.prototype.setKeyword=function(e){return this.setNode("keyword",e,0)},t.prototype.getKeyword=function(){return this.keyword},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t}(fe),Le=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.KeyframeSelector},enumerable:!0,configurable:!0}),t}(fe),Ue=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Import},enumerable:!0,configurable:!0}),t.prototype.setMedialist=function(e){return!!e&&(e.attachTo(this),!0)},t}(de),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Use},enumerable:!0,configurable:!0}),t.prototype.getParameters=function(){return this.parameters||(this.parameters=new pe(this)),this.parameters},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(de),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.ModuleConfiguration},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.setValue=function(e){return this.setNode("value",e,0)},t.prototype.getValue=function(){return this.value},t}(de),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Forward},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(de),$e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.ForwardVisibility},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(de),qe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Namespace},enumerable:!0,configurable:!0}),t}(de),Ke=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Media},enumerable:!0,configurable:!0}),t}(fe),Ge=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Supports},enumerable:!0,configurable:!0}),t}(fe),Je=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Document},enumerable:!0,configurable:!0}),t}(fe),He=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),t.prototype.getMediums=function(){return this.mediums||(this.mediums=new pe(this)),this.mediums},t}(de),Ye=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.MediaQuery},enumerable:!0,configurable:!0}),t}(de),Xe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.SupportsCondition},enumerable:!0,configurable:!0}),t}(de),Ze=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Page},enumerable:!0,configurable:!0}),t}(fe),Qe=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.PageBoxMarginBox},enumerable:!0,configurable:!0}),t}(fe),et=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Expression},enumerable:!0,configurable:!0}),t}(de),tt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.BinaryExpression},enumerable:!0,configurable:!0}),t.prototype.setLeft=function(e){return this.setNode("left",e)},t.prototype.getLeft=function(){return this.left},t.prototype.setRight=function(e){return this.setNode("right",e)},t.prototype.getRight=function(){return this.right},t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t}(de),nt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Term},enumerable:!0,configurable:!0}),t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t.prototype.setExpression=function(e){return this.setNode("expression",e)},t.prototype.getExpression=function(){return this.expression},t}(de),rt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.AttributeSelector},enumerable:!0,configurable:!0}),t.prototype.setNamespacePrefix=function(e){return this.setNode("namespacePrefix",e)},t.prototype.getNamespacePrefix=function(){return this.namespacePrefix},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.setOperator=function(e){return this.setNode("operator",e)},t.prototype.getOperator=function(){return this.operator},t.prototype.setValue=function(e){return this.setNode("value",e)},t.prototype.getValue=function(){return this.value},t}(de),it=(function(e){function t(t,n){return e.call(this,t,n)||this}oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Operator},enumerable:!0,configurable:!0})}(de),function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.HexColorValue},enumerable:!0,configurable:!0}),t}(de)),ot=".".charCodeAt(0),st="0".charCodeAt(0),at="9".charCodeAt(0),lt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.NumericValue},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){for(var e,t=this.getText(),n=0,r=0,i=t.length;r<i;r++){if(e=t.charCodeAt(r),!(st<=e&&e<=at||e===ot))break;n+=1}return{value:t.substring(0,n),unit:n<t.length?t.substring(n):void 0}},t}(de),ct=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.variable=null,r.value=null,r.needsSemicolon=!0,r}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.VariableDeclaration},enumerable:!0,configurable:!0}),t.prototype.setVariable=function(e){return!!e&&(e.attachTo(this),this.variable=e,!0)},t.prototype.getVariable=function(){return this.variable},t.prototype.getName=function(){return this.variable?this.variable.getName():""},t.prototype.setValue=function(e){return!!e&&(e.attachTo(this),this.value=e,!0)},t.prototype.getValue=function(){return this.value},t}(we),dt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Interpolation},enumerable:!0,configurable:!0}),t}(de),pt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.VariableName},enumerable:!0,configurable:!0}),t.prototype.getName=function(){return this.getText()},t}(de),ht=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.ExtendsReference},enumerable:!0,configurable:!0}),t.prototype.getSelectors=function(){return this.selectors||(this.selectors=new pe(this)),this.selectors},t}(de),mt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.MixinContentReference},enumerable:!0,configurable:!0}),t.prototype.getArguments=function(){return this.arguments||(this.arguments=new pe(this)),this.arguments},t}(de),ut=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.MixinContentReference},enumerable:!0,configurable:!0}),t.prototype.getParameters=function(){return this.parameters||(this.parameters=new pe(this)),this.parameters},t}(fe),ft=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.MixinReference},enumerable:!0,configurable:!0}),t.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new pe(this)),this.namespaces},t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getArguments=function(){return this.arguments||(this.arguments=new pe(this)),this.arguments},t.prototype.setContent=function(e){return this.setNode("content",e)},t.prototype.getContent=function(){return this.content},t}(de),gt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.MixinDeclaration},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t.prototype.getName=function(){return this.identifier?this.identifier.getText():""},t.prototype.getParameters=function(){return this.parameters||(this.parameters=new pe(this)),this.parameters},t.prototype.setGuard=function(e){return e&&(e.attachTo(this),this.guard=e),!1},t}(fe),bt=function(e){function t(t,n){return e.call(this,t,n)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.UnknownAtRule},enumerable:!0,configurable:!0}),t.prototype.setAtRuleName=function(e){this.atRuleName=e},t.prototype.getAtRuleName=function(){return this.atRuleName},t}(fe),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.ListEntry},enumerable:!0,configurable:!0}),t.prototype.setKey=function(e){return this.setNode("key",e,0)},t.prototype.setValue=function(e){return this.setNode("value",e,1)},t}(de),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t.prototype.getConditions=function(){return this.conditions||(this.conditions=new pe(this)),this.conditions},t}(de),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),t.prototype.setVariable=function(e){return this.setNode("variable",e)},t}(de),xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oe(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return re.Module},enumerable:!0,configurable:!0}),t.prototype.setIdentifier=function(e){return this.setNode("identifier",e,0)},t.prototype.getIdentifier=function(){return this.identifier},t}(de);(function(e){e[e["Ignore"]=1]="Ignore",e[e["Warning"]=2]="Warning",e[e["Error"]=4]="Error"})(ce||(ce={}));var St=function(){function e(e,t,n,r,i,o){void 0===i&&(i=e.offset),void 0===o&&(o=e.length),this.node=e,this.rule=t,this.level=n,this.message=r||t.message,this.offset=i,this.length=o}return e.prototype.getRule=function(){return this.rule},e.prototype.getLevel=function(){return this.level},e.prototype.getOffset=function(){return this.offset},e.prototype.getLength=function(){return this.length},e.prototype.getNode=function(){return this.node},e.prototype.getMessage=function(){return this.message},e}(),kt=function(){function e(){this.entries=[]}return e.entries=function(t){var n=new e;return t.acceptVisitor(n),n.entries},e.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},e}();function Ct(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0];return"undefined"!==typeof t[r]?t[r]:e})),n}function Ft(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Ct(t,n)}function zt(e){return Ft}var Et=zt(),Dt=function(){function e(e,t){this.id=e,this.message=t}return e}(),Rt={NumberExpected:new Dt("css-numberexpected",Et("expected.number","number expected")),ConditionExpected:new Dt("css-conditionexpected",Et("expected.condt","condition expected")),RuleOrSelectorExpected:new Dt("css-ruleorselectorexpected",Et("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Dt("css-dotexpected",Et("expected.dot","dot expected")),ColonExpected:new Dt("css-colonexpected",Et("expected.colon","colon expected")),SemiColonExpected:new Dt("css-semicolonexpected",Et("expected.semicolon","semi-colon expected")),TermExpected:new Dt("css-termexpected",Et("expected.term","term expected")),ExpressionExpected:new Dt("css-expressionexpected",Et("expected.expression","expression expected")),OperatorExpected:new Dt("css-operatorexpected",Et("expected.operator","operator expected")),IdentifierExpected:new Dt("css-identifierexpected",Et("expected.ident","identifier expected")),PercentageExpected:new Dt("css-percentageexpected",Et("expected.percentage","percentage expected")),URIOrStringExpected:new Dt("css-uriorstringexpected",Et("expected.uriorstring","uri or string expected")),URIExpected:new Dt("css-uriexpected",Et("expected.uri","URI expected")),VariableNameExpected:new Dt("css-varnameexpected",Et("expected.varname","variable name expected")),VariableValueExpected:new Dt("css-varvalueexpected",Et("expected.varvalue","variable value expected")),PropertyValueExpected:new Dt("css-propertyvalueexpected",Et("expected.propvalue","property value expected")),LeftCurlyExpected:new Dt("css-lcurlyexpected",Et("expected.lcurly","{ expected")),RightCurlyExpected:new Dt("css-rcurlyexpected",Et("expected.rcurly","} exp