!function(t){if(!(void 0!==t.window&&t.document||t.require&&t.define)){t.console||(t.console=function(){var t=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:t})},t.console.error=t.console.warn=t.console.log=t.console.trace=t.console),t.window=t,t.ace=t,t.onerror=function(t,e,n,r,i){postMessage({type:"error",data:{message:t,data:i&&i.data,file:e,line:n,col:r,stack:i&&i.stack}})},t.normalizeModule=function(e,n){if(-1!==n.indexOf("!")){var r=n.split("!");return t.normalizeModule(e,r[0])+"!"+t.normalizeModule(e,r[1])}if("."==n.charAt(0)){var i=e.split("/").slice(0,-1).join("/");for(n=(i?i+"/":"")+n;-1!==n.indexOf(".")&&o!=n;){var o=n;n=n.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},t.require=function(e,n){if(n||(n=e,e=null),!n.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");n=t.normalizeModule(e,n);var r=t.require.modules[n];if(r)return r.initialized||(r.initialized=!0,r.exports=r.factory().exports),r.exports;if(!t.require.tlns)return console.log("unable to load "+n);var i=function(t,e){var n=t,r="";for(;n;){var i=e[n];if("string"==typeof i)return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(!1===i)return"";var o=n.lastIndexOf("/");if(-1===o)break;r=n.substr(o)+r,n=n.slice(0,o)}return t}(n,t.require.tlns);return".js"!=i.slice(-3)&&(i+=".js"),t.require.id=n,t.require.modules[n]={},importScripts(i),t.require(e,n)},t.require.modules={},t.require.tlns={},t.define=function(e,n,r){if(2==arguments.length?(r=n,"string"!=typeof e&&(n=e,e=t.require.id)):1==arguments.length&&(r=e,n=[],e=t.require.id),"function"==typeof r){n.length||(n=["require","exports","module"]);var i=function(n){return t.require(e,n)};t.require.modules[e]={exports:{},factory:function(){var t=this,e=r.apply(this,n.slice(0,r.length).map((function(e){switch(e){case"require":return i;case"exports":return t.exports;case"module":return t;default:return i(e)}})));return e&&(t.exports=e),t}}}else t.require.modules[e]={exports:r,initialized:!0}},t.define.amd={},t.require.tlns={},t.initBaseUrls=function(t){for(var e in t)this.require.tlns[e]=t[e]},t.initSender=function(){var e=t.require("ace/lib/event_emitter").EventEmitter,n=t.require("ace/lib/oop"),r=function(){};return function(){n.implement(this,e),this.callback=function(t,e){postMessage({type:"call",id:e,data:t})},this.emit=function(t,e){postMessage({type:"event",name:t,data:e})}}.call(r.prototype),new r};var e=t.main=null,n=t.sender=null;t.onmessage=function(r){var i=r.data;if(i.event&&n)n._signal(i.event,i.data);else if(i.command)if(e[i.command])e[i.command].apply(e,i.args);else{if(!t[i.command])throw new Error("Unknown command:"+i.command);t[i.command].apply(t,i.args)}else if(i.init){t.initBaseUrls(i.tlns),n=t.sender=t.initSender();var o=this.require(i.module)[i.classname];e=t.main=new o(n)}}}}(this),define("ace/lib/oop",[],(function(t,e,n){"use strict";e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},e.implement=function(t,n){e.mixin(t,n)}})),define("ace/lib/event_emitter",[],(function(t,e,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[t]||[],r=this._defaultHandlers[t];if(n.length||r){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=i),e.preventDefault||(e.preventDefault=o),n=n.slice();for(var a=0;a{var t=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,l=(t,e)=>{for(var n in e||(e={}))s.call(e,n)&&c(t,n,e[n]);if(o)for(var n of o(e))u.call(e,n)&&c(t,n,e[n]);return t},f=(t,e)=>function(){return e||(0,t[i(t)[0]])((e={exports:{}}).exports,e),e.exports},p=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},h=(t,r,o,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let u of i(r))s.call(t,u)||u===o||e(t,u,{get:()=>r[u],enumerable:!(a=n(r,u))||a.enumerable});return t},d=(n,r,i)=>(i=null!=n?t(a(n)):{},h(!r&&n&&n.__esModule?i:e(i,"default",{value:n,enumerable:!0}),n)),v=t=>h(e({},"__esModule",{value:!0}),t),m=f({"../../node_modules/ace-code/src/lib/deep_copy.js"(t){t.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var n;if(Array.isArray(e)){n=[];for(let r=0;r0;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var e=/^\s\s*/,n=/\s\s*$/;t.stringTrimLeft=function(t){return t.replace(e,"")},t.stringTrimRight=function(t){return t.replace(n,"")},t.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},t.copyArray=function(t){for(var e=[],n=0,r=t.length;n65535?2:1}}}),g=f({"../../node_modules/ace-code/src/lib/oop.js"(t){t.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},t.implement=function(e,n){t.mixin(e,n)}}}),_=f({"../../node_modules/ace-code/src/apply_delta.js"(t){t.applyDelta=function(t,e,n){var r=e.start.row,i=e.start.column,o=t[r]||"";switch(e.action){case"insert":if(1===e.lines.length)t[r]=o.substring(0,i)+e.lines[0]+o.substring(i);else{var a=[r,1].concat(e.lines);t.splice.apply(t,a),t[r]=o.substring(0,i)+t[r],t[r+e.lines.length-1]+=o.substring(i)}break;case"remove":var s=e.end.column,u=e.end.row;r===u?t[r]=o.substring(0,i)+o.substring(s):t.splice(r,u-r+1,o.substring(0,i)+t[u].substring(s))}}}}),E=f({"../../node_modules/ace-code/src/lib/event_emitter.js"(t){var e={},n=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};e._emit=e._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[t]||[],o=this._defaultHandlers[t];if(i.length||o){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=n),e.preventDefault||(e.preventDefault=r),i=i.slice();for(var a=0;a ["+this.end.row+"/"+this.end.column+"]"}contains(t,e){return 0==this.compare(t,e)}compareRange(t){var e,n=t.end,r=t.start;return 1==(e=this.compare(n.row,n.column))?1==(e=this.compare(r.row,r.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(r.row,r.column))?-1:1==e?42:0}comparePoint(t){return this.compare(t.row,t.column)}containsRange(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)}intersects(t){var e=this.compareRange(t);return-1==e||0==e||1==e}isEnd(t,e){return this.end.row==t&&this.end.column==e}isStart(t,e){return this.start.row==t&&this.start.column==e}setStart(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)}setEnd(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)}inside(t,e){return 0==this.compare(t,e)&&(!this.isEnd(t,e)&&!this.isStart(t,e))}insideStart(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)}insideEnd(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)}compare(t,e){return this.isMultiLine()||t!==this.start.row?tthis.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:ethis.end.column?1:0}compareStart(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)}compareEnd(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)}compareInside(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)}clipRows(e,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.rown)var i={row:n+1,column:0};else if(this.start.row=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(t){return{begin:t,end:this.idx}};var e,n=/[0-9a-fA-F]/,r=/[0-9]/,i=/[1-9]/;function o(t){return t.charCodeAt(0)}function a(t,e){void 0!==t.length?t.forEach((function(t){e.push(t)})):e.push(t)}function s(t,e){if(!0===t[e])throw"duplicate flag "+e;t[e]=!0}function u(t){if(void 0===t)throw Error("Internal Error - Should never get here!")}var c=[];for(e=o("0");e<=o("9");e++)c.push(e);var l=[o("_")].concat(c);for(e=o("a");e<=o("z");e++)l.push(e);for(e=o("A");e<=o("Z");e++)l.push(e);var f=[o(" "),o("\f"),o("\n"),o("\r"),o("\t"),o("\v"),o("\t"),o("\xa0"),o("\u1680"),o("\u2000"),o("\u2001"),o("\u2002"),o("\u2003"),o("\u2004"),o("\u2005"),o("\u2006"),o("\u2007"),o("\u2008"),o("\u2009"),o("\u200a"),o("\u2028"),o("\u2029"),o("\u202f"),o("\u205f"),o("\u3000"),o("\ufeff")];function p(){}return p.prototype.visitChildren=function(t){for(var e in t){var n=t[e];t.hasOwnProperty(e)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((function(t){this.visit(t)}),this))}},p.prototype.visit=function(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t)}this.visitChildren(t)},p.prototype.visitPattern=function(t){},p.prototype.visitFlags=function(t){},p.prototype.visitDisjunction=function(t){},p.prototype.visitAlternative=function(t){},p.prototype.visitStartAnchor=function(t){},p.prototype.visitEndAnchor=function(t){},p.prototype.visitWordBoundary=function(t){},p.prototype.visitNonWordBoundary=function(t){},p.prototype.visitLookahead=function(t){},p.prototype.visitNegativeLookahead=function(t){},p.prototype.visitCharacter=function(t){},p.prototype.visitSet=function(t){},p.prototype.visitGroup=function(t){},p.prototype.visitGroupBackReference=function(t){},p.prototype.visitQuantifier=function(t){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}},"function"==typeof r&&r.amd?r([],i):"object"==typeof e&&e.exports?e.exports=i():n.regexpToAst=i()}}),N=f({"../../node_modules/chevrotain/lib/src/scan/reg_exp_parser.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.clearRegExpParserCache=t.getRegExpAst=void 0;var e=A(),n={},r=new e.RegExpParser;t.getRegExpAst=function(t){var e=t.toString();if(n.hasOwnProperty(e))return n[e];var i=r.pattern(e);return n[e]=i,i},t.clearRegExpParserCache=function(){n={}}}}),I=f({"../../node_modules/chevrotain/lib/src/scan/reg_exp.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.canMatchCharCode=t.firstCharOptimizedIndices=t.getOptimizedStartCodesIndices=t.failedOptimizationPrefixMsg=void 0;var n=A(),r=R(),i=N(),o=S(),a="Complement Sets are not supported for first char optimization";function s(t,e,n){switch(t.type){case"Disjunction":for(var i=0;i=o.minOptimizationVal)for(var a=r.from>=o.minOptimizationVal?r.from:o.minOptimizationVal,s=r.to,c=o.charCodeToOptimizedIndex(a),l=o.charCodeToOptimizedIndex(s),f=c;f<=l;f++)e[f]=f}}}));break;case"Group":s(p.value,e,n);break;default:throw Error("Non Exhaustive Match")}var h=void 0!==p.quantifier&&0===p.quantifier.atLeast;if("Group"===p.type&&!1===l(p)||"Group"!==p.type&&!1===h)break}break;default:throw Error("non exhaustive match!")}return r.values(e)}function u(t,e,n){var r=o.charCodeToOptimizedIndex(t);e[r]=r,!0===n&&function(t,e){var n=String.fromCharCode(t),r=n.toUpperCase();if(r!==n){e[i=o.charCodeToOptimizedIndex(r.charCodeAt(0))]=i}else{var i,a=n.toLowerCase();if(a!==n)e[i=o.charCodeToOptimizedIndex(a.charCodeAt(0))]=i}}(t,e)}function c(t,e){return r.find(t.value,(function(t){if("number"==typeof t)return r.contains(e,t);var n=t;return void 0!==r.find(e,(function(t){return n.from<=t&&t<=n.to}))}))}function l(t){return!(!t.quantifier||0!==t.quantifier.atLeast)||!!t.value&&(r.isArray(t.value)?r.every(t.value,l):l(t.value))}t.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',t.getOptimizedStartCodesIndices=function(e,o){void 0===o&&(o=!1);try{var u=i.getRegExpAst(e);return s(u.value,{},u.flags.ignoreCase)}catch(i){if(i.message===a)o&&r.PRINT_WARNING(t.failedOptimizationPrefixMsg+"\tUnable to optimize: < "+e.toString()+" >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var c="";o&&(c="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),r.PRINT_ERROR(t.failedOptimizationPrefixMsg+"\n\tFailed parsing: < "+e.toString()+" >\n\tUsing the regexp-to-ast library version: "+n.VERSION+"\n\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+c)}}return[]},t.firstCharOptimizedIndices=s;var f=function(t){function n(e){var n=t.call(this)||this;return n.targetCharCodes=e,n.found=!1,n}return e(n,t),n.prototype.visitChildren=function(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}t.prototype.visitChildren.call(this,e)}},n.prototype.visitCharacter=function(t){r.contains(this.targetCharCodes,t.value)&&(this.found=!0)},n.prototype.visitSet=function(t){t.complement?void 0===c(t,this.targetCharCodes)&&(this.found=!0):void 0!==c(t,this.targetCharCodes)&&(this.found=!0)},n}(n.BaseRegExpVisitor);t.canMatchCharCode=function(t,e){if(e instanceof RegExp){var n=i.getRegExpAst(e),o=new f(t);return o.visit(n),o.found}return void 0!==r.find(e,(function(e){return r.contains(t,e.charCodeAt(0))}))}}}),S=f({"../../node_modules/chevrotain/lib/src/scan/lexer.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.charCodeToOptimizedIndex=t.minOptimizationVal=t.buildLineBreakIssueMessage=t.LineTerminatorOptimizedTester=t.isShortPattern=t.isCustomPattern=t.cloneEmptyGroups=t.performWarningRuntimeChecks=t.performRuntimeChecks=t.addStickyFlag=t.addStartOfInput=t.findUnreachablePatterns=t.findModesThatDoNotExist=t.findInvalidGroupType=t.findDuplicatePatterns=t.findUnsupportedFlags=t.findStartOfInputAnchor=t.findEmptyMatchRegExps=t.findEndOfInputAnchor=t.findInvalidPatterns=t.findMissingPatterns=t.validatePatterns=t.analyzeTokenTypes=t.enableSticky=t.disableSticky=t.SUPPORT_STICKY=t.MODES=t.DEFAULT_MODE=void 0;var n=A(),r=x(),i=R(),o=I(),a=N(),s="PATTERN";function u(t){var e=i.filter(t,(function(t){return!i.has(t,s)}));return{errors:i.map(e,(function(t){return{message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:r.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[t]}})),valid:i.difference(t,e)}}function c(t){var e=i.filter(t,(function(t){var e=t[s];return!(i.isRegExp(e)||i.isFunction(e)||i.has(e,"exec")||i.isString(e))}));return{errors:i.map(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:r.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[t]}})),valid:i.difference(t,e)}}t.DEFAULT_MODE="defaultMode",t.MODES="modes",t.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,t.disableSticky=function(){t.SUPPORT_STICKY=!1},t.enableSticky=function(){t.SUPPORT_STICKY=!0},t.analyzeTokenTypes=function(e,n){var a,u=(n=i.defaults(n,{useSticky:t.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(t,e){return e()}})).tracer;u("initCharCodeToOptimizedIndexMap",(function(){!function(){if(i.isEmpty(M)){M=new Array(65536);for(var t=0;t<65536;t++)M[t]=t>255?255+~~(t/255):t}}()})),u("Reject Lexer.NA",(function(){a=i.reject(e,(function(t){return t[s]===r.Lexer.NA}))}));var c,l,f,p,h,d,v,m,y,g,_,R=!1;u("Transform Patterns",(function(){R=!1,c=i.map(a,(function(t){var e=t[s];if(i.isRegExp(e)){var r=e.source;return 1!==r.length||"^"===r||"$"===r||"."===r||e.ignoreCase?2!==r.length||"\\"!==r[0]||i.contains(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],r[1])?n.useSticky?T(e):E(e):r[1]:r}if(i.isFunction(e))return R=!0,{exec:e};if(i.has(e,"exec"))return R=!0,e;if("string"==typeof e){if(1===e.length)return e;var o=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),a=new RegExp(o);return n.useSticky?T(a):E(a)}throw Error("non exhaustive match")}))})),u("misc mapping",(function(){l=i.map(a,(function(t){return t.tokenTypeIdx})),f=i.map(a,(function(t){var e=t.GROUP;if(e!==r.Lexer.SKIPPED){if(i.isString(e))return e;if(i.isUndefined(e))return!1;throw Error("non exhaustive match")}})),p=i.map(a,(function(t){var e=t.LONGER_ALT;if(e)return i.indexOf(a,e)})),h=i.map(a,(function(t){return t.PUSH_MODE})),d=i.map(a,(function(t){return i.has(t,"POP_MODE")}))})),u("Line Terminator Handling",(function(){var t=b(n.lineTerminatorCharacters);v=i.map(a,(function(t){return!1})),"onlyOffset"!==n.positionTracking&&(v=i.map(a,(function(e){return i.has(e,"LINE_BREAKS")?e.LINE_BREAKS:!1===L(e,t)?o.canMatchCharCode(t,e.PATTERN):void 0})))})),u("Misc Mapping #2",(function(){m=i.map(a,O),y=i.map(c,S),g=i.reduce(a,(function(t,e){var n=e.GROUP;return i.isString(n)&&n!==r.Lexer.SKIPPED&&(t[n]=[]),t}),{}),_=i.map(c,(function(t,e){return{pattern:c[e],longerAlt:p[e],canLineTerminator:v[e],isCustom:m[e],short:y[e],group:f[e],push:h[e],pop:d[e],tokenTypeIdx:l[e],tokenType:a[e]}}))}));var A=!0,N=[];return n.safeMode||u("First Char Optimization",(function(){N=i.reduce(a,(function(t,e,r){if("string"==typeof e.PATTERN){var a=C(e.PATTERN.charCodeAt(0));k(t,a,_[r])}else if(i.isArray(e.START_CHARS_HINT)){var s;i.forEach(e.START_CHARS_HINT,(function(e){var n=C("string"==typeof e?e.charCodeAt(0):e);s!==n&&(s=n,k(t,n,_[r]))}))}else if(i.isRegExp(e.PATTERN))if(e.PATTERN.unicode)A=!1,n.ensureOptimizations&&i.PRINT_ERROR(o.failedOptimizationPrefixMsg+"\tUnable to analyze < "+e.PATTERN.toString()+" > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var u=o.getOptimizedStartCodesIndices(e.PATTERN,n.ensureOptimizations);i.isEmpty(u)&&(A=!1),i.forEach(u,(function(e){k(t,e,_[r])}))}else n.ensureOptimizations&&i.PRINT_ERROR(o.failedOptimizationPrefixMsg+"\tTokenType: <"+e.name+"> is using a custom token pattern without providing parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),A=!1;return t}),[])})),u("ArrayPacking",(function(){N=i.packArray(N)})),{emptyGroups:g,patternIdxToConfig:_,charCodeToPatternIdxToConfig:N,hasCustom:R,canBeOptimized:A}},t.validatePatterns=function(t,e){var n=[],r=u(t);n=n.concat(r.errors);var o=c(r.valid),a=o.valid;return n=(n=(n=(n=(n=n.concat(o.errors)).concat(function(t){var e=[],n=i.filter(t,(function(t){return i.isRegExp(t[s])}));return e=e.concat(f(n)),e=e.concat(d(n)),e=e.concat(v(n)),e=e.concat(m(n)),e=e.concat(p(n)),e}(a))).concat(y(a))).concat(g(a,e))).concat(_(a))},t.findMissingPatterns=u,t.findInvalidPatterns=c;var l=/[^\\][\$]/;function f(t){var o=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.found=!1,e}return e(n,t),n.prototype.visitEndAnchor=function(t){this.found=!0},n}(n.BaseRegExpVisitor),u=i.filter(t,(function(t){var e=t[s];try{var n=a.getRegExpAst(e),r=new o;return r.visit(n),r.found}catch(t){return l.test(e.source)}}));return i.map(u,(function(t){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+t.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:r.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[t]}}))}function p(t){var e=i.filter(t,(function(t){return t[s].test("")}));return i.map(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:r.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[t]}}))}t.findEndOfInputAnchor=f,t.findEmptyMatchRegExps=p;var h=/[^\\[][\^]|^\^/;function d(t){var o=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.found=!1,e}return e(n,t),n.prototype.visitStartAnchor=function(t){this.found=!0},n}(n.BaseRegExpVisitor),u=i.filter(t,(function(t){var e=t[s];try{var n=a.getRegExpAst(e),r=new o;return r.visit(n),r.found}catch(t){return h.test(e.source)}}));return i.map(u,(function(t){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+t.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:r.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[t]}}))}function v(t){var e=i.filter(t,(function(t){var e=t[s];return e instanceof RegExp&&(e.multiline||e.global)}));return i.map(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:r.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}}))}function m(t){var e=[],n=i.map(t,(function(n){return i.reduce(t,(function(t,o){return n.PATTERN.source!==o.PATTERN.source||i.contains(e,o)||o.PATTERN===r.Lexer.NA||(e.push(o),t.push(o)),t}),[])}));n=i.compact(n);var o=i.filter(n,(function(t){return t.length>1}));return i.map(o,(function(t){var e=i.map(t,(function(t){return t.name}));return{message:"The same RegExp pattern ->"+i.first(t).PATTERN+"<-has been used in all of the following Token Types: "+e.join(", ")+" <-",type:r.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}}))}function y(t){var e=i.filter(t,(function(t){if(!i.has(t,"GROUP"))return!1;var e=t.GROUP;return e!==r.Lexer.SKIPPED&&e!==r.Lexer.NA&&!i.isString(e)}));return i.map(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:r.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}}))}function g(t,e){var n=i.filter(t,(function(t){return void 0!==t.PUSH_MODE&&!i.contains(e,t.PUSH_MODE)}));return i.map(n,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+t.PUSH_MODE+"<-which does not exist",type:r.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}}))}function _(t){var e=[],n=i.reduce(t,(function(t,e,n){var o,a,s=e.PATTERN;return s===r.Lexer.NA||(i.isString(s)?t.push({str:s,idx:n,tokenType:e}):i.isRegExp(s)&&(o=s,a=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===i.find(a,(function(t){return-1!==o.source.indexOf(t)})))&&t.push({str:s.source,idx:n,tokenType:e})),t}),[]);return i.forEach(t,(function(t,o){i.forEach(n,(function(n){var a=n.str,s=n.idx,u=n.tokenType;if(o"+t.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";e.push({message:c,type:r.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[t,u]})}}))})),e}function E(t){var e=t.ignoreCase?"i":"";return new RegExp("^(?:"+t.source+")",e)}function T(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}function O(t){var e=t.PATTERN;if(i.isRegExp(e))return!1;if(i.isFunction(e))return!0;if(i.has(e,"exec"))return!0;if(i.isString(e))return!1;throw Error("non exhaustive match")}function S(t){return!(!i.isString(t)||1!==t.length)&&t.charCodeAt(0)}function L(t,e){if(i.has(t,"LINE_BREAKS"))return!1;if(i.isRegExp(t.PATTERN)){try{o.canMatchCharCode(e,t.PATTERN)}catch(t){return{issue:r.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:t.message}}return!1}if(i.isString(t.PATTERN))return!1;if(O(t))return{issue:r.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function P(t,e){if(e.issue===r.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <"+t.name+"> Token Type\n\t Root cause: "+e.errMsg+".\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(e.issue===r.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the option.\n\tThe problem is in the <"+t.name+"> Token Type\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function b(t){return i.map(t,(function(t){return i.isString(t)&&t.length>0?t.charCodeAt(0):t}))}function k(t,e,n){void 0===t[e]?t[e]=[n]:t[e].push(n)}function C(e){return e property in its definition\n",type:r.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),i.has(e,t.MODES)||a.push({message:"A MultiMode Lexer cannot be initialized without a <"+t.MODES+"> property in its definition\n",type:r.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),i.has(e,t.MODES)&&i.has(e,t.DEFAULT_MODE)&&!i.has(e.modes,e.defaultMode)&&a.push({message:"A MultiMode Lexer cannot be initialized with a "+t.DEFAULT_MODE+": <"+e.defaultMode+">which does not exist\n",type:r.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),i.has(e,t.MODES)&&i.forEach(e.modes,(function(t,e){i.forEach(t,(function(t,n){i.isUndefined(t)&&a.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:<"+e+"> at index: <"+n+">\n",type:r.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),a},t.performWarningRuntimeChecks=function(t,e,n){var a=[],u=!1,c=i.compact(i.flatten(i.mapValues(t.modes,(function(t){return t})))),l=i.reject(c,(function(t){return t[s]===r.Lexer.NA})),f=b(n);return e&&i.forEach(l,(function(t){var e=L(t,f);if(!1!==e){var n={message:P(t,e),type:e.issue,tokenType:t};a.push(n)}else i.has(t,"LINE_BREAKS")?!0===t.LINE_BREAKS&&(u=!0):o.canMatchCharCode(f,t.PATTERN)&&(u=!0)})),e&&!u&&a.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:r.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),a},t.cloneEmptyGroups=function(t){var e={},n=i.keys(t);return i.forEach(n,(function(n){var r=t[n];if(!i.isArray(r))throw Error("non exhaustive match");e[n]=[]})),e},t.isCustomPattern=O,t.isShortPattern=S,t.LineTerminatorOptimizedTester={test:function(t){for(var e=t.length,n=this.lastIndex;n0}))},t.expandCategories=n,t.assignTokenDefaultProps=r,t.assignCategoriesTokensProp=i,t.assignCategoriesMapProp=o,t.singleAssignCategoriesToksMap=a,t.hasShortKeyProperty=s,t.hasCategoriesProperty=u,t.hasExtendingTokensTypesProperty=c,t.hasExtendingTokensTypesMapProperty=l,t.isTokenType=function(t){return e.has(t,"tokenTypeIdx")}}}),P=f({"../../node_modules/chevrotain/lib/src/scan/lexer_errors_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLexerErrorProvider=void 0,t.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(t){return"Unable to pop Lexer Mode after encountering Token ->"+t.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(t,e,n,r,i){return"unexpected character: ->"+t.charAt(e)+"<- at offset: "+e+", skipped "+n+" characters."}}}}),x=f({"../../node_modules/chevrotain/lib/src/scan/lexer_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=t.LexerDefinitionErrorType=void 0;var e,n=S(),r=R(),i=L(),o=P(),a=N();(e=t.LexerDefinitionErrorType||(t.LexerDefinitionErrorType={}))[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var s={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:o.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(s);var u=function(){function t(t,e){var o=this;if(void 0===e&&(e=s),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof e)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=r.merge(s,e);var u=this.config.traceInitPerf;!0===u?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof u&&(this.traceInitMaxIdent=u,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var u,c=!0;o.TRACE_INIT("Lexer Config handling",(function(){if(o.config.lineTerminatorsPattern===s.lineTerminatorsPattern)o.config.lineTerminatorsPattern=n.LineTerminatorOptimizedTester;else if(o.config.lineTerminatorCharacters===s.lineTerminatorCharacters)throw Error("Error: Missing property on the Lexer config.\n\tFor details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(e.safeMode&&e.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');o.trackStartLines=/full|onlyStart/i.test(o.config.positionTracking),o.trackEndLines=/full/i.test(o.config.positionTracking),r.isArray(t)?((u={modes:{}}).modes[n.DEFAULT_MODE]=r.cloneArr(t),u[n.DEFAULT_MODE]=n.DEFAULT_MODE):(c=!1,u=r.cloneObj(t))})),!1===o.config.skipValidations&&(o.TRACE_INIT("performRuntimeChecks",(function(){o.lexerDefinitionErrors=o.lexerDefinitionErrors.concat(n.performRuntimeChecks(u,o.trackStartLines,o.config.lineTerminatorCharacters))})),o.TRACE_INIT("performWarningRuntimeChecks",(function(){o.lexerDefinitionWarning=o.lexerDefinitionWarning.concat(n.performWarningRuntimeChecks(u,o.trackStartLines,o.config.lineTerminatorCharacters))}))),u.modes=u.modes?u.modes:{},r.forEach(u.modes,(function(t,e){u.modes[e]=r.reject(t,(function(t){return r.isUndefined(t)}))}));var l=r.keys(u.modes);if(r.forEach(u.modes,(function(t,a){o.TRACE_INIT("Mode: <"+a+"> processing",(function(){var s;(o.modes.push(a),!1===o.config.skipValidations&&o.TRACE_INIT("validatePatterns",(function(){o.lexerDefinitionErrors=o.lexerDefinitionErrors.concat(n.validatePatterns(t,l))})),r.isEmpty(o.lexerDefinitionErrors))&&(i.augmentTokenTypes(t),o.TRACE_INIT("analyzeTokenTypes",(function(){s=n.analyzeTokenTypes(t,{lineTerminatorCharacters:o.config.lineTerminatorCharacters,positionTracking:e.positionTracking,ensureOptimizations:e.ensureOptimizations,safeMode:e.safeMode,tracer:o.TRACE_INIT.bind(o)})})),o.patternIdxToConfig[a]=s.patternIdxToConfig,o.charCodeToPatternIdxToConfig[a]=s.charCodeToPatternIdxToConfig,o.emptyGroups=r.merge(o.emptyGroups,s.emptyGroups),o.hasCustom=s.hasCustom||o.hasCustom,o.canModeBeOptimized[a]=s.canBeOptimized)}))})),o.defaultMode=u.defaultMode,!r.isEmpty(o.lexerDefinitionErrors)&&!o.config.deferDefinitionErrorsHandling){var f=r.map(o.lexerDefinitionErrors,(function(t){return t.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+f)}r.forEach(o.lexerDefinitionWarning,(function(t){r.PRINT_WARNING(t.message)})),o.TRACE_INIT("Choosing sub-methods implementations",(function(){if(n.SUPPORT_STICKY?(o.chopInput=r.IDENTITY,o.match=o.matchWithTest):(o.updateLastIndex=r.NOOP,o.match=o.matchWithExec),c&&(o.handleModes=r.NOOP),!1===o.trackStartLines&&(o.computeNewColumn=r.IDENTITY),!1===o.trackEndLines&&(o.updateTokenEndLineColumnLocation=r.NOOP),/full/i.test(o.config.positionTracking))o.createTokenInstance=o.createFullToken;else if(/onlyStart/i.test(o.config.positionTracking))o.createTokenInstance=o.createStartOnlyToken;else{if(!/onlyOffset/i.test(o.config.positionTracking))throw Error('Invalid config option: "'+o.config.positionTracking+'"');o.createTokenInstance=o.createOffsetOnlyToken}o.hasCustom?(o.addToken=o.addTokenUsingPush,o.handlePayload=o.handlePayloadWithCustom):(o.addToken=o.addTokenUsingMemberAccess,o.handlePayload=o.handlePayloadNoCustom)})),o.TRACE_INIT("Failed Optimization Warnings",(function(){var t=r.reduce(o.canModeBeOptimized,(function(t,e,n){return!1===e&&t.push(n),t}),[]);if(e.ensureOptimizations&&!r.isEmpty(t))throw Error("Lexer Modes: < "+t.join(", ")+' > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),o.TRACE_INIT("clearRegExpParserCache",(function(){a.clearRegExpParserCache()})),o.TRACE_INIT("toFastProperties",(function(){r.toFastProperties(o)}))}))}return t.prototype.tokenize=function(t,e){if(void 0===e&&(e=this.defaultMode),!r.isEmpty(this.lexerDefinitionErrors)){var n=r.map(this.lexerDefinitionErrors,(function(t){return t.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+n)}return this.tokenizeInternal(t,e)},t.prototype.tokenizeInternal=function(t,e){var i,o,a,s,u,c,l,f,p,h,d,v,m,y,g=this,_=t,E=_.length,T=0,O=0,R=this.hasCustom?0:Math.floor(t.length/10),A=new Array(R),N=[],I=this.trackStartLines?1:void 0,S=this.trackStartLines?1:void 0,L=n.cloneEmptyGroups(this.emptyGroups),P=this.trackStartLines,x=this.config.lineTerminatorsPattern,b=0,k=[],C=[],M=[],w=[];Object.freeze(w);var D=void 0;function F(){return k}function U(t){var e=n.charCodeToOptimizedIndex(t),r=C[e];return void 0===r?w:r}var j,B=function(t){if(1===M.length&&void 0===t.tokenType.PUSH_MODE){var e=g.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t);N.push({offset:t.startOffset,line:void 0!==t.startLine?t.startLine:void 0,column:void 0!==t.startColumn?t.startColumn:void 0,length:t.image.length,message:e})}else{M.pop();var n=r.last(M);k=g.patternIdxToConfig[n],C=g.charCodeToPatternIdxToConfig[n],b=k.length;var i=g.canModeBeOptimized[n]&&!1===g.config.safeMode;D=C&&i?U:F}};function W(t){M.push(t),C=this.charCodeToPatternIdxToConfig[t],k=this.patternIdxToConfig[t],b=k.length,b=k.length;var e=this.canModeBeOptimized[t]&&!1===this.config.safeMode;D=C&&e?U:F}for(W.call(this,e);Tu.length&&(u=a,c=l,j=H)}break}}if(null!==u){if(f=u.length,void 0!==(p=j.group)&&(h=j.tokenTypeIdx,d=this.createTokenInstance(u,T,h,j.tokenType,I,S,f),this.handlePayload(d,c),!1===p?O=this.addToken(A,O,d):L[p].push(d)),t=this.chopInput(t,f),T+=f,S=this.computeNewColumn(S,f),!0===P&&!0===j.canLineTerminator){var X=0,$=void 0,q=void 0;x.lastIndex=0;do{!0===($=x.test(u))&&(q=x.lastIndex-1,X++)}while(!0===$);0!==X&&(I+=X,S=f-q,this.updateTokenEndLineColumnLocation(d,p,q,X,I,S,f))}this.handleModes(j,B,W,d)}else{for(var Z=T,Q=I,J=S,tt=!1;!tt&&T");var i=r.timer(e),o=i.time,a=i.value,s=o>10?console.warn:console.log;return this.traceInitIndent time: "+o+"ms"),this.traceInitIndent--,a}return e()},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();t.Lexer=u}}),b=f({"../../node_modules/chevrotain/lib/src/scan/tokens_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.tokenMatcher=t.createTokenInstance=t.EOF=t.createToken=t.hasTokenLabel=t.tokenName=t.tokenLabel=void 0;var e=R(),n=x(),r=L();function i(t){return e.isString(t.LABEL)&&""!==t.LABEL}t.tokenLabel=function(t){return i(t)?t.LABEL:t.name},t.tokenName=function(t){return t.name},t.hasTokenLabel=i;var o="parent",a="categories",s="label",u="group",c="push_mode",l="pop_mode",f="longer_alt",p="line_breaks",h="start_chars_hint";function d(t){return function(t){var n=t.pattern,i={};i.name=t.name,e.isUndefined(n)||(i.PATTERN=n);if(e.has(t,o))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";e.has(t,a)&&(i.CATEGORIES=t[a]);r.augmentTokenTypes([i]),e.has(t,s)&&(i.LABEL=t[s]);e.has(t,u)&&(i.GROUP=t[u]);e.has(t,l)&&(i.POP_MODE=t[l]);e.has(t,c)&&(i.PUSH_MODE=t[c]);e.has(t,f)&&(i.LONGER_ALT=t[f]);e.has(t,p)&&(i.LINE_BREAKS=t[p]);e.has(t,h)&&(i.START_CHARS_HINT=t[h]);return i}(t)}t.createToken=d,t.EOF=d({name:"EOF",pattern:n.Lexer.NA}),r.augmentTokenTypes([t.EOF]),t.createTokenInstance=function(t,e,n,r,i,o,a,s){return{image:e,startOffset:n,endOffset:r,startLine:i,endLine:o,startColumn:a,endColumn:s,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}},t.tokenMatcher=function(t,e){return r.tokenStructuredMatcher(t,e)}}}),k=f({"../../node_modules/chevrotain/lib/src/parse/grammar/gast/gast_public.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.serializeProduction=t.serializeGrammar=t.Terminal=t.Alternation=t.RepetitionWithSeparator=t.Repetition=t.RepetitionMandatoryWithSeparator=t.RepetitionMandatory=t.Option=t.Alternative=t.Rule=t.NonTerminal=t.AbstractProduction=void 0;var n=R(),r=b(),i=function(){function t(t){this._definition=t}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),t.prototype.accept=function(t){t.visit(this),n.forEach(this.definition,(function(e){e.accept(t)}))},t}();t.AbstractProduction=i;var o=function(t){function r(e){var r=t.call(this,[])||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),Object.defineProperty(r.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(t){},enumerable:!1,configurable:!0}),r.prototype.accept=function(t){t.visit(this)},r}(i);t.NonTerminal=o;var a=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.orgText="",n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.Rule=a;var s=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.ignoreAmbiguities=!1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.Alternative=s;var u=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.Option=u;var c=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.RepetitionMandatory=c;var l=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.RepetitionMandatoryWithSeparator=l;var f=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.Repetition=f;var p=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),r}(i);t.RepetitionWithSeparator=p;var h=function(t){function r(e){var r=t.call(this,e.definition)||this;return r.idx=1,r.ignoreAmbiguities=!1,r.hasPredicates=!1,n.assign(r,n.pick(e,(function(t){return void 0!==t}))),r}return e(r,t),Object.defineProperty(r.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),r}(i);t.Alternation=h;var d=function(){function t(t){this.idx=1,n.assign(this,n.pick(t,(function(t){return void 0!==t})))}return t.prototype.accept=function(t){t.visit(this)},t}();function v(t){function e(t){return n.map(t,v)}if(t instanceof o)return{type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};if(t instanceof s)return{type:"Alternative",definition:e(t.definition)};if(t instanceof u)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof c)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof l)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:v(new d({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof p)return{type:"RepetitionWithSeparator",idx:t.idx,separator:v(new d({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof f)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof h)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof d){var i={type:"Terminal",name:t.terminalType.name,label:r.tokenLabel(t.terminalType),idx:t.idx},m=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(i.pattern=n.isRegExp(m)?m.source:m),i}if(t instanceof a)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}t.Terminal=d,t.serializeGrammar=function(t){return n.map(t,v)},t.serializeProduction=v}}),C=f({"../../node_modules/chevrotain/lib/src/parse/grammar/rest.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RestWalker=void 0;var e=R(),n=k(),r=function(){function t(){}return t.prototype.walk=function(t,r){var i=this;void 0===r&&(r=[]),e.forEach(t.definition,(function(o,a){var s=e.drop(t.definition,a+1);if(o instanceof n.NonTerminal)i.walkProdRef(o,s,r);else if(o instanceof n.Terminal)i.walkTerminal(o,s,r);else if(o instanceof n.Alternative)i.walkFlat(o,s,r);else if(o instanceof n.Option)i.walkOption(o,s,r);else if(o instanceof n.RepetitionMandatory)i.walkAtLeastOne(o,s,r);else if(o instanceof n.RepetitionMandatoryWithSeparator)i.walkAtLeastOneSep(o,s,r);else if(o instanceof n.RepetitionWithSeparator)i.walkManySep(o,s,r);else if(o instanceof n.Repetition)i.walkMany(o,s,r);else{if(!(o instanceof n.Alternation))throw Error("non exhaustive match");i.walkOr(o,s,r)}}))},t.prototype.walkTerminal=function(t,e,n){},t.prototype.walkProdRef=function(t,e,n){},t.prototype.walkFlat=function(t,e,n){var r=e.concat(n);this.walk(t,r)},t.prototype.walkOption=function(t,e,n){var r=e.concat(n);this.walk(t,r)},t.prototype.walkAtLeastOne=function(t,e,r){var i=[new n.Option({definition:t.definition})].concat(e,r);this.walk(t,i)},t.prototype.walkAtLeastOneSep=function(t,e,n){var r=i(t,e,n);this.walk(t,r)},t.prototype.walkMany=function(t,e,r){var i=[new n.Option({definition:t.definition})].concat(e,r);this.walk(t,i)},t.prototype.walkManySep=function(t,e,n){var r=i(t,e,n);this.walk(t,r)},t.prototype.walkOr=function(t,r,i){var o=this,a=r.concat(i);e.forEach(t.definition,(function(t){var e=new n.Alternative({definition:[t]});o.walk(e,a)}))},t}();function i(t,e,r){return[new n.Option({definition:[new n.Terminal({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}t.RestWalker=r}}),M=f({"../../node_modules/chevrotain/lib/src/parse/grammar/gast/gast_visitor_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GAstVisitor=void 0;var e=k(),n=function(){function t(){}return t.prototype.visit=function(t){var n=t;switch(n.constructor){case e.NonTerminal:return this.visitNonTerminal(n);case e.Alternative:return this.visitAlternative(n);case e.Option:return this.visitOption(n);case e.RepetitionMandatory:return this.visitRepetitionMandatory(n);case e.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(n);case e.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(n);case e.Repetition:return this.visitRepetition(n);case e.Alternation:return this.visitAlternation(n);case e.Terminal:return this.visitTerminal(n);case e.Rule:return this.visitRule(n);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(t){},t.prototype.visitAlternative=function(t){},t.prototype.visitOption=function(t){},t.prototype.visitRepetition=function(t){},t.prototype.visitRepetitionMandatory=function(t){},t.prototype.visitRepetitionMandatoryWithSeparator=function(t){},t.prototype.visitRepetitionWithSeparator=function(t){},t.prototype.visitAlternation=function(t){},t.prototype.visitTerminal=function(t){},t.prototype.visitRule=function(t){},t}();t.GAstVisitor=n}}),w=f({"../../node_modules/chevrotain/lib/src/parse/grammar/gast/gast.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.collectMethods=t.DslMethodsCollectorVisitor=t.getProductionDslName=t.isBranchingProd=t.isOptionalProd=t.isSequenceProd=void 0;var n=R(),r=k(),i=M();t.isSequenceProd=function(t){return t instanceof r.Alternative||t instanceof r.Option||t instanceof r.Repetition||t instanceof r.RepetitionMandatory||t instanceof r.RepetitionMandatoryWithSeparator||t instanceof r.RepetitionWithSeparator||t instanceof r.Terminal||t instanceof r.Rule},t.isOptionalProd=function t(e,i){return void 0===i&&(i=[]),!!(e instanceof r.Option||e instanceof r.Repetition||e instanceof r.RepetitionWithSeparator)||(e instanceof r.Alternation?n.some(e.definition,(function(e){return t(e,i)})):!(e instanceof r.NonTerminal&&n.contains(i,e))&&(e instanceof r.AbstractProduction&&(e instanceof r.NonTerminal&&i.push(e),n.every(e.definition,(function(e){return t(e,i)})))))},t.isBranchingProd=function(t){return t instanceof r.Alternation},t.getProductionDslName=function(t){if(t instanceof r.NonTerminal)return"SUBRULE";if(t instanceof r.Option)return"OPTION";if(t instanceof r.Alternation)return"OR";if(t instanceof r.RepetitionMandatory)return"AT_LEAST_ONE";if(t instanceof r.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(t instanceof r.RepetitionWithSeparator)return"MANY_SEP";if(t instanceof r.Repetition)return"MANY";if(t instanceof r.Terminal)return"CONSUME";throw Error("non exhaustive match")};var o=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.separator="-",e.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},e}return e(r,t),r.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},r.prototype.visitTerminal=function(t){var e=t.terminalType.name+this.separator+"Terminal";n.has(this.dslMethods,e)||(this.dslMethods[e]=[]),this.dslMethods[e].push(t)},r.prototype.visitNonTerminal=function(t){var e=t.nonTerminalName+this.separator+"Terminal";n.has(this.dslMethods,e)||(this.dslMethods[e]=[]),this.dslMethods[e].push(t)},r.prototype.visitOption=function(t){this.dslMethods.option.push(t)},r.prototype.visitRepetitionWithSeparator=function(t){this.dslMethods.repetitionWithSeparator.push(t)},r.prototype.visitRepetitionMandatory=function(t){this.dslMethods.repetitionMandatory.push(t)},r.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)},r.prototype.visitRepetition=function(t){this.dslMethods.repetition.push(t)},r.prototype.visitAlternation=function(t){this.dslMethods.alternation.push(t)},r}(i.GAstVisitor);t.DslMethodsCollectorVisitor=o;var a=new o;t.collectMethods=function(t){a.reset(),t.accept(a);var e=a.dslMethods;return a.reset(),e}}}),D=f({"../../node_modules/chevrotain/lib/src/parse/grammar/first.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.firstForTerminal=t.firstForBranching=t.firstForSequence=t.first=void 0;var e=R(),n=k(),r=w();function i(t){if(t instanceof n.NonTerminal)return i(t.referencedRule);if(t instanceof n.Terminal)return s(t);if(r.isSequenceProd(t))return o(t);if(r.isBranchingProd(t))return a(t);throw Error("non exhaustive match")}function o(t){for(var n,o=[],a=t.definition,s=0,u=a.length>s,c=!0;u&&c;)n=a[s],c=r.isOptionalProd(n),o=o.concat(i(n)),s+=1,u=a.length>s;return e.uniq(o)}function a(t){var n=e.map(t.definition,(function(t){return i(t)}));return e.uniq(e.flatten(n))}function s(t){return[t.terminalType]}t.first=i,t.firstForSequence=o,t.firstForBranching=a,t.firstForTerminal=s}}),F=f({"../../node_modules/chevrotain/lib/src/parse/constants.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.IN=void 0,t.IN="_~IN~_"}}),U=f({"../../node_modules/chevrotain/lib/src/parse/grammar/follow.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.buildInProdFollowPrefix=t.buildBetweenProdsFollowPrefix=t.computeAllProdsFollows=t.ResyncFollowsWalker=void 0;var n=C(),r=D(),i=R(),o=F(),a=k(),s=function(t){function n(e){var n=t.call(this)||this;return n.topProd=e,n.follows={},n}return e(n,t),n.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},n.prototype.walkTerminal=function(t,e,n){},n.prototype.walkProdRef=function(t,e,n){var i=u(t.referencedRule,t.idx)+this.topProd.name,o=e.concat(n),s=new a.Alternative({definition:o}),c=r.first(s);this.follows[i]=c},n}(n.RestWalker);function u(t,e){return t.name+e+o.IN}t.ResyncFollowsWalker=s,t.computeAllProdsFollows=function(t){var e={};return i.forEach(t,(function(t){var n=new s(t).startWalking();i.assign(e,n)})),e},t.buildBetweenProdsFollowPrefix=u,t.buildInProdFollowPrefix=function(t){return t.terminalType.name+t.idx+o.IN}}}),j=f({"../../node_modules/chevrotain/lib/src/parse/errors_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGrammarValidatorErrorProvider=t.defaultGrammarResolverErrorProvider=t.defaultParserErrorProvider=void 0;var e=b(),n=R(),r=R(),i=k(),o=w();t.defaultParserErrorProvider={buildMismatchTokenMessage:function(t){var n=t.expected,r=t.actual;t.previous,t.ruleName;return"Expecting "+(e.hasTokenLabel(n)?"--\x3e "+e.tokenLabel(n)+" <--":"token of type --\x3e "+n.name+" <--")+" but found --\x3e '"+r.image+"' <--"},buildNotAllInputParsedMessage:function(t){var e=t.firstRedundant;t.ruleName;return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage:function(t){var n=t.expectedPathsPerAlt,i=t.actual,o=(t.previous,t.customUserDescription),a=(t.ruleName,"Expecting: "),s="\nbut found: '"+r.first(i).image+"'";if(o)return a+o+s;var u=r.reduce(n,(function(t,e){return t.concat(e)}),[]),c=r.map(u,(function(t){return"["+r.map(t,(function(t){return e.tokenLabel(t)})).join(", ")+"]"}));return a+("one of these possible Token sequences:\n"+r.map(c,(function(t,e){return" "+(e+1)+". "+t})).join("\n"))+s},buildEarlyExitMessage:function(t){var n=t.expectedIterationPaths,i=t.actual,o=t.customUserDescription,a=(t.ruleName,"Expecting: "),s="\nbut found: '"+r.first(i).image+"'";return o?a+o+s:a+("expecting at least one iteration which starts with one of these possible Token sequences::\n <"+r.map(n,(function(t){return"["+r.map(t,(function(t){return e.tokenLabel(t)})).join(",")+"]"})).join(" ,")+">")+s}},Object.freeze(t.defaultParserErrorProvider),t.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+"<-\ninside top level rule: ->"+t.name+"<-"}},t.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(t,e){var n,a=t.name,s=r.first(e),u=s.idx,c=o.getProductionDslName(s),l=(n=s)instanceof i.Terminal?n.terminalType.name:n instanceof i.NonTerminal?n.nonTerminalName:"",f="->"+c+(u>0?u:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+"\n appears more than once ("+e.length+" times) in the top level rule: ->"+a+"<-. \n For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n ";return f=(f=f.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(t){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+t.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(t){var n=r.map(t.prefixPath,(function(t){return e.tokenLabel(t)})).join(", "),i=0===t.alternation.idx?"":t.alternation.idx;return"Ambiguous alternatives: <"+t.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\nin inside <"+t.topLevelRule.name+"> Rule,\n<"+n+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(t){var n=r.map(t.prefixPath,(function(t){return e.tokenLabel(t)})).join(", "),i=0===t.alternation.idx?"":t.alternation.idx,o="Ambiguous Alternatives Detected: <"+t.ambiguityIndices.join(" ,")+"> in inside <"+t.topLevelRule.name+"> Rule,\n<"+n+"> may appears as a prefix path in all these alternatives.\n";return o+="See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(t){var e=o.getProductionDslName(t.repetition);return 0!==t.repetition.idx&&(e+=t.repetition.idx),"The repetition <"+e+"> within Rule <"+t.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(t){return"deprecated"},buildEmptyAlternationError:function(t){return"Ambiguous empty alternative: <"+(t.emptyChoiceIdx+1)+"> in inside <"+t.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(t){return"An Alternation cannot have more than 256 alternatives:\n inside <"+t.topLevelRule.name+"> Rule.\n has "+(t.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(t){var e=t.topLevelRule.name;return"Left Recursion found in grammar.\nrule: <"+e+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+(e+" --\x3e "+n.map(t.leftRecursionPath,(function(t){return t.name})).concat([e]).join(" --\x3e "))+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(t){return"deprecated"},buildDuplicateRuleNameError:function(t){return"Duplicate definition, rule: ->"+(t.topLevelRule instanceof i.Rule?t.topLevelRule.name:t.topLevelRule)+"<- is already defined in the grammar: ->"+t.grammarName+"<-"}}}}),B=f({"../../node_modules/chevrotain/lib/src/parse/grammar/resolver.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.GastRefResolverVisitor=t.resolveGrammar=void 0;var n=at(),r=R(),i=M();t.resolveGrammar=function(t,e){var n=new o(t,e);return n.resolveRefs(),n.errors};var o=function(t){function i(e,n){var r=t.call(this)||this;return r.nameToTopRule=e,r.errMsgProvider=n,r.errors=[],r}return e(i,t),i.prototype.resolveRefs=function(){var t=this;r.forEach(r.values(this.nameToTopRule),(function(e){t.currTopLevel=e,e.accept(t)}))},i.prototype.visitNonTerminal=function(t){var e=this.nameToTopRule[t.nonTerminalName];if(e)t.referencedRule=e;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:r,type:n.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}},i}(i.GAstVisitor);t.GastRefResolverVisitor=o}}),W=f({"../../node_modules/chevrotain/lib/src/parse/grammar/interpreter.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.nextPossibleTokensAfter=t.possiblePathsFrom=t.NextTerminalAfterAtLeastOneSepWalker=t.NextTerminalAfterAtLeastOneWalker=t.NextTerminalAfterManySepWalker=t.NextTerminalAfterManyWalker=t.AbstractNextTerminalAfterProductionWalker=t.NextAfterTokenWalker=t.AbstractNextPossibleTokensWalker=void 0;var n=C(),r=R(),i=D(),o=k(),a=function(t){function n(e,n){var r=t.call(this)||this;return r.topProd=e,r.path=n,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return e(n,t),n.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=r.cloneArr(this.path.ruleStack).reverse(),this.occurrenceStack=r.cloneArr(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},n.prototype.walk=function(e,n){void 0===n&&(n=[]),this.found||t.prototype.walk.call(this,e,n)},n.prototype.walkProdRef=function(t,e,n){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){var r=e.concat(n);this.updateExpectedNext(),this.walk(t.referencedRule,r)}},n.prototype.updateExpectedNext=function(){r.isEmpty(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},n}(n.RestWalker);t.AbstractNextPossibleTokensWalker=a;var s=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.path=n,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return e(n,t),n.prototype.walkTerminal=function(t,e,n){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){var r=e.concat(n),a=new o.Alternative({definition:r});this.possibleTokTypes=i.first(a),this.found=!0}},n}(a);t.NextAfterTokenWalker=s;var u=function(t){function n(e,n){var r=t.call(this)||this;return r.topRule=e,r.occurrence=n,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return e(n,t),n.prototype.startWalking=function(){return this.walk(this.topRule),this.result},n}(n.RestWalker);t.AbstractNextTerminalAfterProductionWalker=u;var c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.walkMany=function(e,n,i){if(e.idx===this.occurrence){var a=r.first(n.concat(i));this.result.isEndOfRule=void 0===a,a instanceof o.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else t.prototype.walkMany.call(this,e,n,i)},n}(u);t.NextTerminalAfterManyWalker=c;var l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.walkManySep=function(e,n,i){if(e.idx===this.occurrence){var a=r.first(n.concat(i));this.result.isEndOfRule=void 0===a,a instanceof o.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else t.prototype.walkManySep.call(this,e,n,i)},n}(u);t.NextTerminalAfterManySepWalker=l;var f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.walkAtLeastOne=function(e,n,i){if(e.idx===this.occurrence){var a=r.first(n.concat(i));this.result.isEndOfRule=void 0===a,a instanceof o.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else t.prototype.walkAtLeastOne.call(this,e,n,i)},n}(u);t.NextTerminalAfterAtLeastOneWalker=f;var p=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.walkAtLeastOneSep=function(e,n,i){if(e.idx===this.occurrence){var a=r.first(n.concat(i));this.result.isEndOfRule=void 0===a,a instanceof o.Terminal&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else t.prototype.walkAtLeastOneSep.call(this,e,n,i)},n}(u);function h(t,e,n,i){var o=r.cloneArr(n);o.push(t.name);var a=r.cloneArr(i);return a.push(1),{idx:e,def:t.definition,ruleStack:o,occurrenceStack:a}}t.NextTerminalAfterAtLeastOneSepWalker=p,t.possiblePathsFrom=function t(e,n,i){void 0===i&&(i=[]),i=r.cloneArr(i);var a=[],s=0;function u(o){var u=t(o.concat(r.drop(e,s+1)),n,i);return a.concat(u)}for(;i.length=0;x--){var b={idx:y,def:E.definition[x].definition.concat(r.drop(m)),ruleStack:g,occurrenceStack:_};d.push(b),d.push(u)}else if(E instanceof o.Alternative)d.push({idx:y,def:E.definition.concat(r.drop(m)),ruleStack:g,occurrenceStack:_});else{if(!(E instanceof o.Rule))throw Error("non exhaustive match");d.push(h(E,y,g,_))}}}else c&&r.last(d).idx<=f&&d.pop()}return p}}}),G=f({"../../node_modules/chevrotain/lib/src/parse/grammar/lookahead.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.areTokenCategoriesNotUsed=t.isStrictPrefixOfPath=t.containsPath=t.getLookaheadPathsForOptionalProd=t.getLookaheadPathsForOr=t.lookAheadSequenceFromAlternatives=t.buildSingleAlternativeLookaheadFunction=t.buildAlternativesLookAheadFunc=t.buildLookaheadFuncForOptionalProd=t.buildLookaheadFuncForOr=t.getProdType=t.PROD_TYPE=void 0;var n,r,i=R(),o=W(),a=C(),s=L(),u=k(),c=M();(r=n=t.PROD_TYPE||(t.PROD_TYPE={}))[r.OPTION=0]="OPTION",r[r.REPETITION=1]="REPETITION",r[r.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",r[r.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",r[r.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",r[r.ALTERNATION=5]="ALTERNATION",t.getProdType=function(t){if(t instanceof u.Option)return n.OPTION;if(t instanceof u.Repetition)return n.REPETITION;if(t instanceof u.RepetitionMandatory)return n.REPETITION_MANDATORY;if(t instanceof u.RepetitionMandatoryWithSeparator)return n.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof u.RepetitionWithSeparator)return n.REPETITION_WITH_SEPARATOR;if(t instanceof u.Alternation)return n.ALTERNATION;throw Error("non exhaustive match")},t.buildLookaheadFuncForOr=function(t,e,n,r,i,o){var a=m(t,e,n);return o(a,r,_(a)?s.tokenStructuredMatcherNoCategories:s.tokenStructuredMatcher,i)},t.buildLookaheadFuncForOptionalProd=function(t,e,n,r,i,o){var a=y(t,e,i,n),u=_(a)?s.tokenStructuredMatcherNoCategories:s.tokenStructuredMatcher;return o(a[0],u,r)},t.buildAlternativesLookAheadFunc=function(t,e,n,r){var o=t.length,a=i.every(t,(function(t){return i.every(t,(function(t){return 1===t.length}))}));if(e)return function(e){for(var r=i.map(e,(function(t){return t.GATE})),a=0;a1})),c=n.map(n.values(u),(function(r){var a=n.first(r),s=e.buildDuplicateFoundError(t,r),u=o.getProductionDslName(a),c={message:s,type:i.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:u,occurrence:a.idx},l=f(a);return l&&(c.parameter=l),c}));return c}(t,s)})),v=n.map(t,(function(t){return d(t,t,s)})),m=[],_=[],O=[];r.every(v,r.isEmpty)&&(m=r.map(t,(function(t){return y(t,s)})),_=r.map(t,(function(t){return g(t,e,s)})),O=T(t,e,s));var R=function(t,e,n){var o=[],a=r.map(e,(function(t){return t.name}));return r.forEach(t,(function(t){var e=t.name;if(r.contains(a,e)){var s=n.buildNamespaceConflictError(t);o.push({message:s,type:i.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:e})}})),o}(t,a,s),A=r.map(t,(function(t){return E(t,s)})),N=r.map(t,(function(e){return h(e,t,u,s)}));return n.flatten(c.concat(O,v,m,_,R,A,N))},t.identifyProductionForDuplicates=l;var p=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.allProductions=[],e}return e(n,t),n.prototype.visitNonTerminal=function(t){this.allProductions.push(t)},n.prototype.visitOption=function(t){this.allProductions.push(t)},n.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},n.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},n.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},n.prototype.visitRepetition=function(t){this.allProductions.push(t)},n.prototype.visitAlternation=function(t){this.allProductions.push(t)},n.prototype.visitTerminal=function(t){this.allProductions.push(t)},n}(c.GAstVisitor);function h(t,e,n,o){var a=[];if(r.reduce(e,(function(e,n){return n.name===t.name?e+1:e}),0)>1){var s=o.buildDuplicateRuleNameError({topLevelRule:t,grammarName:n});a.push({message:s,type:i.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:t.name})}return a}function d(t,e,r,o){void 0===o&&(o=[]);var a=[],s=v(e.definition);if(n.isEmpty(s))return[];var u=t.name;n.contains(s,t)&&a.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:o}),type:i.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:u});var c=n.difference(s,o.concat([t])),l=n.map(c,(function(e){var i=n.cloneArr(o);return i.push(e),d(t,e,r,i)}));return a.concat(n.flatten(l))}function v(t){var e=[];if(n.isEmpty(t))return e;var r=n.first(t);if(r instanceof u.NonTerminal)e.push(r.referencedRule);else if(r instanceof u.Alternative||r instanceof u.Option||r instanceof u.RepetitionMandatory||r instanceof u.RepetitionMandatoryWithSeparator||r instanceof u.RepetitionWithSeparator||r instanceof u.Repetition)e=e.concat(v(r.definition));else if(r instanceof u.Alternation)e=n.flatten(n.map(r.definition,(function(t){return v(t.definition)})));else if(!(r instanceof u.Terminal))throw Error("non exhaustive match");var i=o.isOptionalProd(r),a=t.length>1;if(i&&a){var s=n.drop(t);return e.concat(v(s))}return e}t.OccurrenceValidationCollector=p,t.validateRuleDoesNotAlreadyExist=h,t.validateRuleIsOverridden=function(t,e,r){var o,a=[];return n.contains(e,t)||(o="Invalid rule override, rule: ->"+t+"<- cannot be overridden in the grammar: ->"+r+"<-as it is not defined in any of the super grammars ",a.push({message:o,type:i.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:t})),a},t.validateNoLeftRecursion=d,t.getFirstNoneTerminal=v;var m=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.alternations=[],e}return e(n,t),n.prototype.visitAlternation=function(t){this.alternations.push(t)},n}(c.GAstVisitor);function y(t,e){var r=new m;t.accept(r);var o=r.alternations;return n.reduce(o,(function(r,o){var a=n.dropRight(o.definition),u=n.map(a,(function(r,a){var u=s.nextPossibleTokensAfter([r],[],null,1);return n.isEmpty(u)?{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:o,emptyChoiceIdx:a}),type:i.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:o.idx,alternative:a+1}:null}));return r.concat(n.compact(u))}),[])}function g(t,e,o){var s=new m;t.accept(s);var u=s.alternations;u=r.reject(u,(function(t){return!0===t.ignoreAmbiguities}));var c=n.reduce(u,(function(s,u){var c=u.idx,l=u.maxLookahead||e,f=a.getLookaheadPathsForOr(c,t,l,u),p=function(t,e,o,s){var u=[],c=r.reduce(t,(function(n,i,o){return!0===e.definition[o].ignoreAmbiguities||r.forEach(i,(function(i){var s=[o];r.forEach(t,(function(t,n){o!==n&&a.containsPath(t,i)&&!0!==e.definition[n].ignoreAmbiguities&&s.push(n)})),s.length>1&&!a.containsPath(u,i)&&(u.push(i),n.push({alts:s,path:i}))})),n}),[]),l=n.map(c,(function(t){var n=r.map(t.alts,(function(t){return t+1}));return{message:s.buildAlternationAmbiguityError({topLevelRule:o,alternation:e,ambiguityIndices:n,prefixPath:t.path}),type:i.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:o.name,occurrence:e.idx,alternatives:[t.alts]}}));return l}(f,u,t,o),h=O(f,u,t,o);return s.concat(p,h)}),[]);return c}t.validateEmptyOrAlternative=y,t.validateAmbiguousAlternationAlternatives=g;var _=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.allProductions=[],e}return e(n,t),n.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},n.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},n.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},n.prototype.visitRepetition=function(t){this.allProductions.push(t)},n}(c.GAstVisitor);function E(t,e){var r=new m;t.accept(r);var o=r.alternations;return n.reduce(o,(function(n,r){return r.definition.length>255&&n.push({message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:r}),type:i.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:t.name,occurrence:r.idx}),n}),[])}function T(t,e,n){var o=[];return r.forEach(t,(function(t){var s=new _;t.accept(s);var u=s.allProductions;r.forEach(u,(function(s){var u=a.getProdType(s),c=s.maxLookahead||e,l=s.idx,f=a.getLookaheadPathsForOptionalProd(l,t,u,c)[0];if(r.isEmpty(r.flatten(f))){var p=n.buildEmptyRepetitionError({topLevelRule:t,repetition:s});o.push({message:p,type:i.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:t.name})}}))})),o}function O(t,e,n,o){var s=[],u=r.reduce(t,(function(t,e,n){var i=r.map(e,(function(t){return{idx:n,path:t}}));return t.concat(i)}),[]);return r.forEach(u,(function(t){if(!0!==e.definition[t.idx].ignoreAmbiguities){var c=t.idx,l=t.path,f=r.findAll(u,(function(t){return!0!==e.definition[t.idx].ignoreAmbiguities&&t.idx on "+i.functionName(t.constructor)+" CST Visitor.",type:e.MISSING_METHOD,methodName:n}}));return r.compact(o)}t.defaultVisit=o,t.createBaseSemanticVisitorConstructor=function(t,e){var n=function(){};return i.defineNameProp(n,t+"BaseSemantics"),(n.prototype={visit:function(t,e){if(r.isArray(t)&&(t=t[0]),!r.isUndefined(t))return this[t.name](t.children,e)},validateVisitor:function(){var t=a(this,e);if(!r.isEmpty(t)){var n=r.map(t,(function(t){return t.msg}));throw Error("Errors Detected in CST Visitor <"+i.functionName(this.constructor)+">:\n\t"+n.join("\n\n").replace(/\n/g,"\n\t"))}}}).constructor=n,n._RULE_NAMES=e,n},t.createBaseVisitorConstructorWithDefaults=function(t,e,n){var a=function(){};i.defineNameProp(a,t+"BaseSemanticsWithDefaults");var s=Object.create(n.prototype);return r.forEach(e,(function(t){s[t]=o})),(a.prototype=s).constructor=a,a},(n=e=t.CstVisitorDefinitionError||(t.CstVisitorDefinitionError={}))[n.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",n[n.MISSING_METHOD=1]="MISSING_METHOD",t.validateVisitor=a,t.validateMissingCstMethods=s;var u=["constructor","visit","validateVisitor"];function c(t,n){var o=[];for(var a in t)!r.isFunction(t[a])||r.contains(u,a)||r.contains(n,a)||o.push({msg:"Redundant visitor method: <"+a+"> on "+i.functionName(t.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\n",type:e.REDUNDANT_METHOD,methodName:a});return o}t.validateRedundantMethods=c}}),Q=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TreeBuilder=void 0;var e=$(),n=R(),r=Z(),i=at(),o=function(){function t(){}return t.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=n.has(t,"nodeLocationTracking")?t.nodeLocationTracking:i.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=e.setNodeLocationFull,this.setNodeLocationFromNode=e.setNodeLocationFull,this.cstPostRule=n.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=n.NOOP,this.setNodeLocationFromNode=n.NOOP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=e.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=e.setNodeLocationOnlyOffset,this.cstPostRule=n.NOOP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=n.NOOP,this.setNodeLocationFromNode=n.NOOP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid config option: "'+t.nodeLocationTracking+'"');this.setNodeLocationFromToken=n.NOOP,this.setNodeLocationFromNode=n.NOOP,this.cstPostRule=n.NOOP,this.setInitialNodeLocation=n.NOOP}else this.cstInvocationStateUpdate=n.NOOP,this.cstFinallyStateUpdate=n.NOOP,this.cstPostTerminal=n.NOOP,this.cstPostNonTerminal=n.NOOP,this.cstPostRule=n.NOOP},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(t){var e=this.LA(1);t.location={startOffset:e.startOffset,startLine:e.startLine,startColumn:e.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(t,e){var n={name:t,children:{}};this.setInitialNodeLocation(n),this.CST_STACK.push(n)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(t){var e=this.LA(0),n=t.location;n.startOffset<=e.startOffset==!0?(n.endOffset=e.endOffset,n.endLine=e.endLine,n.endColumn=e.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(t){var e=this.LA(0),n=t.location;n.startOffset<=e.startOffset==!0?n.endOffset=e.endOffset:n.startOffset=NaN},t.prototype.cstPostTerminal=function(t,n){var r=this.CST_STACK[this.CST_STACK.length-1];e.addTerminalToCst(r,n,t),this.setNodeLocationFromToken(r.location,n)},t.prototype.cstPostNonTerminal=function(t,n){var r=this.CST_STACK[this.CST_STACK.length-1];e.addNoneTerminalToCst(r,n,t),this.setNodeLocationFromNode(r.location,t.location)},t.prototype.getBaseCstVisitorConstructor=function(){if(n.isUndefined(this.baseCstVisitorConstructor)){var t=r.createBaseSemanticVisitorConstructor(this.className,n.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(n.isUndefined(this.baseCstVisitorWithDefaultsConstructor)){var t=r.createBaseVisitorConstructorWithDefaults(this.className,n.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},t}();t.TreeBuilder=o}}),J=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.LexerAdapter=void 0;var e=at(),n=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(t){if(!0!==this.selfAnalysisDone)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):e.END_OF_FILE},t.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?e.END_OF_FILE:this.tokVector[n]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(t){this.currIdx=t},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();t.LexerAdapter=n}}),tt=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RecognizerApi=void 0;var e=R(),n=K(),r=at(),i=j(),o=z(),a=k(),s=function(){function t(){}return t.prototype.ACTION=function(t){return t.call(this)},t.prototype.consume=function(t,e,n){return this.consumeInternal(e,t,n)},t.prototype.subrule=function(t,e,n){return this.subruleInternal(e,t,n)},t.prototype.option=function(t,e){return this.optionInternal(e,t)},t.prototype.or=function(t,e){return this.orInternal(e,t)},t.prototype.many=function(t,e){return this.manyInternal(t,e)},t.prototype.atLeastOne=function(t,e){return this.atLeastOneInternal(t,e)},t.prototype.CONSUME=function(t,e){return this.consumeInternal(t,0,e)},t.prototype.CONSUME1=function(t,e){return this.consumeInternal(t,1,e)},t.prototype.CONSUME2=function(t,e){return this.consumeInternal(t,2,e)},t.prototype.CONSUME3=function(t,e){return this.consumeInternal(t,3,e)},t.prototype.CONSUME4=function(t,e){return this.consumeInternal(t,4,e)},t.prototype.CONSUME5=function(t,e){return this.consumeInternal(t,5,e)},t.prototype.CONSUME6=function(t,e){return this.consumeInternal(t,6,e)},t.prototype.CONSUME7=function(t,e){return this.consumeInternal(t,7,e)},t.prototype.CONSUME8=function(t,e){return this.consumeInternal(t,8,e)},t.prototype.CONSUME9=function(t,e){return this.consumeInternal(t,9,e)},t.prototype.SUBRULE=function(t,e){return this.subruleInternal(t,0,e)},t.prototype.SUBRULE1=function(t,e){return this.subruleInternal(t,1,e)},t.prototype.SUBRULE2=function(t,e){return this.subruleInternal(t,2,e)},t.prototype.SUBRULE3=function(t,e){return this.subruleInternal(t,3,e)},t.prototype.SUBRULE4=function(t,e){return this.subruleInternal(t,4,e)},t.prototype.SUBRULE5=function(t,e){return this.subruleInternal(t,5,e)},t.prototype.SUBRULE6=function(t,e){return this.subruleInternal(t,6,e)},t.prototype.SUBRULE7=function(t,e){return this.subruleInternal(t,7,e)},t.prototype.SUBRULE8=function(t,e){return this.subruleInternal(t,8,e)},t.prototype.SUBRULE9=function(t,e){return this.subruleInternal(t,9,e)},t.prototype.OPTION=function(t){return this.optionInternal(t,0)},t.prototype.OPTION1=function(t){return this.optionInternal(t,1)},t.prototype.OPTION2=function(t){return this.optionInternal(t,2)},t.prototype.OPTION3=function(t){return this.optionInternal(t,3)},t.prototype.OPTION4=function(t){return this.optionInternal(t,4)},t.prototype.OPTION5=function(t){return this.optionInternal(t,5)},t.prototype.OPTION6=function(t){return this.optionInternal(t,6)},t.prototype.OPTION7=function(t){return this.optionInternal(t,7)},t.prototype.OPTION8=function(t){return this.optionInternal(t,8)},t.prototype.OPTION9=function(t){return this.optionInternal(t,9)},t.prototype.OR=function(t){return this.orInternal(t,0)},t.prototype.OR1=function(t){return this.orInternal(t,1)},t.prototype.OR2=function(t){return this.orInternal(t,2)},t.prototype.OR3=function(t){return this.orInternal(t,3)},t.prototype.OR4=function(t){return this.orInternal(t,4)},t.prototype.OR5=function(t){return this.orInternal(t,5)},t.prototype.OR6=function(t){return this.orInternal(t,6)},t.prototype.OR7=function(t){return this.orInternal(t,7)},t.prototype.OR8=function(t){return this.orInternal(t,8)},t.prototype.OR9=function(t){return this.orInternal(t,9)},t.prototype.MANY=function(t){this.manyInternal(0,t)},t.prototype.MANY1=function(t){this.manyInternal(1,t)},t.prototype.MANY2=function(t){this.manyInternal(2,t)},t.prototype.MANY3=function(t){this.manyInternal(3,t)},t.prototype.MANY4=function(t){this.manyInternal(4,t)},t.prototype.MANY5=function(t){this.manyInternal(5,t)},t.prototype.MANY6=function(t){this.manyInternal(6,t)},t.prototype.MANY7=function(t){this.manyInternal(7,t)},t.prototype.MANY8=function(t){this.manyInternal(8,t)},t.prototype.MANY9=function(t){this.manyInternal(9,t)},t.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},t.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},t.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},t.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},t.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},t.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},t.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},t.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},t.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},t.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},t.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},t.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},t.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},t.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},t.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},t.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},t.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},t.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},t.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},t.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},t.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},t.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},t.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},t.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},t.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},t.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},t.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},t.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},t.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},t.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},t.prototype.RULE=function(t,n,o){if(void 0===o&&(o=r.DEFAULT_RULE_CONFIG),e.contains(this.definedRulesNames,t)){var a={message:i.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:r.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,o);return this[t]=s,s},t.prototype.OVERRIDE_RULE=function(t,e,n){void 0===n&&(n=r.DEFAULT_RULE_CONFIG);var i=[];i=i.concat(o.validateRuleIsOverridden(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,i);var a=this.defineRule(t,e,n);return this[t]=a,a},t.prototype.BACKTRACK=function(t,e){return function(){this.isBackTrackingStack.push(1);var r=this.saveRecogState();try{return t.apply(this,e),!0}catch(t){if(n.isRecognitionException(t))return!1;throw t}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return a.serializeGrammar(e.values(this.gastProductionsCache))},t}();t.RecognizerApi=s}}),et=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RecognizerEngine=void 0;var e=R(),n=Y(),r=K(),i=G(),o=W(),a=at(),s=H(),u=b(),c=L(),l=q(),f=function(){function t(){}return t.prototype.initRecognizerEngine=function(t,n){if(this.className=l.classNameFromInstance(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=c.tokenStructuredMatcherNoCategories,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},e.has(n,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a property.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(e.isArray(t)){if(e.isEmpty(t))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof t[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(e.isArray(t))this.tokensMap=e.reduce(t,(function(t,e){return t[e.name]=e,t}),{});else if(e.has(t,"modes")&&e.every(e.flatten(e.values(t.modes)),c.isTokenType)){var r=e.flatten(e.values(t.modes)),i=e.uniq(r);this.tokensMap=e.reduce(i,(function(t,e){return t[e.name]=e,t}),{})}else{if(!e.isObject(t))throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=e.cloneObj(t)}this.tokensMap.EOF=u.EOF;var o=e.every(e.values(t),(function(t){return e.isEmpty(t.categoryMatches)}));this.tokenMatcher=o?c.tokenStructuredMatcherNoCategories:c.tokenStructuredMatcher,c.augmentTokenTypes(e.values(this.tokensMap))},t.prototype.defineRule=function(t,r,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var o,s=e.has(i,"resyncEnabled")?i.resyncEnabled:a.DEFAULT_RULE_CONFIG.resyncEnabled,u=e.has(i,"recoveryValueFunc")?i.recoveryValueFunc:a.DEFAULT_RULE_CONFIG.recoveryValueFunc,c=this.ruleShortNameIdx<e},t.prototype.orInternal=function(t,r){var i=this.getKeyForAutomaticLookahead(n.OR_IDX,r),o=e.isArray(t)?t:t.DEF,a=this.getLaFuncFromCache(i).call(this,o);if(void 0!==a)return o[a].ALT.call(this);this.raiseNoAltException(r,t.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var t=this.LA(1),e=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new r.NotAllInputParsedException(e,t))}},t.prototype.subruleInternal=function(t,e,n){var r;try{var i=void 0!==n?n.ARGS:void 0;return r=t.call(this,e,i),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:t.ruleName),r}catch(e){this.subruleInternalError(e,n,t.ruleName)}},t.prototype.subruleInternalError=function(t,e,n){throw r.isRecognitionException(t)&&void 0!==t.partialCstResult&&(this.cstPostNonTerminal(t.partialCstResult,void 0!==e&&void 0!==e.LABEL?e.LABEL:n),delete t.partialCstResult),t},t.prototype.consumeInternal=function(t,e,n){var r;try{var i=this.LA(1);!0===this.tokenMatcher(i,t)?(this.consumeToken(),r=i):this.consumeInternalError(t,i,n)}catch(n){r=this.consumeInternalRecovery(t,e,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:t.name,r),r},t.prototype.consumeInternalError=function(t,e,n){var i,o=this.LA(0);throw i=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:e,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new r.MismatchedTokenException(i,e,o))},t.prototype.consumeInternalRecovery=function(t,e,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;var r=this.getFollowsForInRuleRecovery(t,e);try{return this.tryInRuleRecovery(t,r)}catch(t){throw t.name===s.IN_RULE_RECOVERY_EXCEPTION?n:t}},t.prototype.saveRecogState=function(){var t=this.errors,n=e.cloneArr(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(t,e,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(e,t)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},t.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),u.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();t.RecognizerEngine=f}}),nt=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorHandler=void 0;var e=K(),n=R(),r=G(),i=at(),o=function(){function t(){}return t.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=n.has(t,"errorMessageProvider")?t.errorMessageProvider:i.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(t){if(e.isRecognitionException(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:n.cloneArr(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return n.cloneArr(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(t,n,i){for(var o=this.getCurrRuleFullName(),a=this.getGAstProductions()[o],s=r.getLookaheadPathsForOptionalProd(t,a,n,this.maxLookahead)[0],u=[],c=1;c<=this.maxLookahead;c++)u.push(this.LA(c));var l=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:s,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:o});throw this.SAVE_ERROR(new e.EarlyExitException(l,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),o=this.getGAstProductions()[i],a=r.getLookaheadPathsForOr(t,o,this.maxLookahead),s=[],u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));var c=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:c,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new e.NoViableAltException(l,this.LA(1),c))},t}();t.ErrorHandler=o}}),rt=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentAssist=void 0;var e=W(),n=R(),r=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(t,r){var i=this.gastProductionsCache[t];if(n.isUndefined(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return e.nextPossibleTokensAfter([i],r,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(t){var r=n.first(t.ruleStack),i=this.getGAstProductions()[r];return new e.NextAfterTokenWalker(i,t).startWalking()},t}();t.ContentAssist=r}}),it=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GastRecorder=void 0;var e=R(),n=k(),r=x(),i=L(),o=b(),a=at(),s=Y(),u={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(u);var c=!0,l=Math.pow(2,s.BITS_FOR_OCCURRENCE_IDX)-1,f=o.createToken({name:"RECORDING_PHASE_TOKEN",pattern:r.Lexer.NA});i.augmentTokenTypes([f]);var p=o.createTokenInstance(f,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(p);var h={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},d=function(){function t(){}return t.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(e){var n=e>0?e:"";t["CONSUME"+n]=function(t,n){return this.consumeInternalRecord(t,e,n)},t["SUBRULE"+n]=function(t,n){return this.subruleInternalRecord(t,e,n)},t["OPTION"+n]=function(t){return this.optionInternalRecord(t,e)},t["OR"+n]=function(t){return this.orInternalRecord(t,e)},t["MANY"+n]=function(t){this.manyInternalRecord(e,t)},t["MANY_SEP"+n]=function(t){this.manySepFirstInternalRecord(e,t)},t["AT_LEAST_ONE"+n]=function(t){this.atLeastOneInternalRecord(e,t)},t["AT_LEAST_ONE_SEP"+n]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}},n=0;n<10;n++)e(n);t.consume=function(t,e,n){return this.consumeInternalRecord(e,t,n)},t.subrule=function(t,e,n){return this.subruleInternalRecord(e,t,n)},t.option=function(t,e){return this.optionInternalRecord(e,t)},t.or=function(t,e){return this.orInternalRecord(e,t)},t.many=function(t,e){this.manyInternalRecord(t,e)},t.atLeastOne=function(t,e){this.atLeastOneInternalRecord(t,e)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD}))},t.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var e=0;e<10;e++){var n=e>0?e:"";delete t["CONSUME"+n],delete t["SUBRULE"+n],delete t["OPTION"+n],delete t["OR"+n],delete t["MANY"+n],delete t["MANY_SEP"+n],delete t["AT_LEAST_ONE"+n],delete t["AT_LEAST_ONE_SEP"+n]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA}))},t.prototype.ACTION_RECORD=function(t){},t.prototype.BACKTRACK_RECORD=function(t,e){return function(){return!0}},t.prototype.LA_RECORD=function(t){return a.END_OF_FILE},t.prototype.topLevelRuleRecord=function(t,e){try{var r=new n.Rule({definition:[],name:t});return r.name=t,this.recordingProdStack.push(r),e.call(this),this.recordingProdStack.pop(),r}catch(t){if(!0!==t.KNOWN_RECORDER_ERROR)try{t.message=t.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(e){throw t}throw t}},t.prototype.optionInternalRecord=function(t,e){return v.call(this,n.Option,t,e)},t.prototype.atLeastOneInternalRecord=function(t,e){v.call(this,n.RepetitionMandatory,e,t)},t.prototype.atLeastOneSepFirstInternalRecord=function(t,e){v.call(this,n.RepetitionMandatoryWithSeparator,e,t,c)},t.prototype.manyInternalRecord=function(t,e){v.call(this,n.Repetition,e,t)},t.prototype.manySepFirstInternalRecord=function(t,e){v.call(this,n.RepetitionWithSeparator,e,t,c)},t.prototype.orInternalRecord=function(t,e){return m.call(this,t,e)},t.prototype.subruleInternalRecord=function(t,r,i){if(g(r),!t||!1===e.has(t,"ruleName")){var o=new Error(" argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(t)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw o.KNOWN_RECORDER_ERROR=!0,o}var a=e.peek(this.recordingProdStack),s=t.ruleName,c=new n.NonTerminal({idx:r,nonTerminalName:s,referencedRule:void 0});return a.definition.push(c),this.outputCst?h:u},t.prototype.consumeInternalRecord=function(t,r,o){if(g(r),!i.hasShortKeyProperty(t)){var a=new Error(" argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(t)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw a.KNOWN_RECORDER_ERROR=!0,a}var s=e.peek(this.recordingProdStack),u=new n.Terminal({idx:r,terminalType:t});return s.definition.push(u),p},t}();function v(t,n,r,i){void 0===i&&(i=!1),g(r);var o=e.peek(this.recordingProdStack),a=e.isFunction(n)?n:n.DEF,s=new t({definition:[],idx:r});return i&&(s.separator=n.SEP),e.has(n,"MAX_LOOKAHEAD")&&(s.maxLookahead=n.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),o.definition.push(s),this.recordingProdStack.pop(),u}function m(t,r){var i=this;g(r);var o=e.peek(this.recordingProdStack),a=!1===e.isArray(t),s=!1===a?t:t.DEF,c=new n.Alternation({definition:[],idx:r,ignoreAmbiguities:a&&!0===t.IGNORE_AMBIGUITIES});e.has(t,"MAX_LOOKAHEAD")&&(c.maxLookahead=t.MAX_LOOKAHEAD);var l=e.some(s,(function(t){return e.isFunction(t.GATE)}));return c.hasPredicates=l,o.definition.push(c),e.forEach(s,(function(t){var r=new n.Alternative({definition:[]});c.definition.push(r),e.has(t,"IGNORE_AMBIGUITIES")?r.ignoreAmbiguities=t.IGNORE_AMBIGUITIES:e.has(t,"GATE")&&(r.ignoreAmbiguities=!0),i.recordingProdStack.push(r),t.ALT.call(i),i.recordingProdStack.pop()})),u}function y(t){return 0===t?"":""+t}function g(t){if(t<0||t>l){var e=new Error("Invalid DSL Method idx value: <"+t+">\n\tIdx value must be a none negative value smaller than "+(l+1));throw e.KNOWN_RECORDER_ERROR=!0,e}}t.GastRecorder=d}}),ot=f({"../../node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.PerformanceTracer=void 0;var e=R(),n=at(),r=function(){function t(){}return t.prototype.initPerformanceTracer=function(t){if(e.has(t,"traceInitPerf")){var r=t.traceInitPerf,i="number"==typeof r;this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=n.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(t,n){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent");var i=e.timer(n),o=i.time,a=i.value,s=o>10?console.warn:console.log;return this.traceInitIndent time: "+o+"ms"),this.traceInitIndent--,a}return n()},t}();t.PerformanceTracer=r}}),at=f({"../../node_modules/chevrotain/lib/src/parse/parser/parser.js"(t){var e=t&&t.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedActionsParser=t.CstParser=t.Parser=t.EMPTY_ALT=t.ParserDefinitionErrorType=t.DEFAULT_RULE_CONFIG=t.DEFAULT_PARSER_CONFIG=t.END_OF_FILE=void 0;var n,r=R(),i=U(),o=b(),a=j(),s=V(),u=H(),c=X(),l=Q(),f=J(),p=tt(),h=et(),d=nt(),v=rt(),m=it(),y=ot();t.END_OF_FILE=o.createTokenInstance(o.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(t.END_OF_FILE),t.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:a.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),t.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(n=t.ParserDefinitionErrorType||(t.ParserDefinitionErrorType={}))[n.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",n[n.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",n[n.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",n[n.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",n[n.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",n[n.LEFT_RECURSION=5]="LEFT_RECURSION",n[n.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",n[n.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",n[n.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",n[n.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",n[n.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",n[n.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",n[n.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t.EMPTY_ALT=function(t){return void 0===t&&(t=void 0),function(){return t}};var g=function(){function e(e,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(e,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),r.has(n,"ignoredIssues"))throw new Error("The IParserConfig property has been deprecated.\n\tPlease use the flag on the relevant DSL method instead.\n\tSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=r.has(n,"skipValidations")?n.skipValidations:t.DEFAULT_PARSER_CONFIG.skipValidations}return e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",(function(){var n;t.selfAnalysisDone=!0;var o=t.className;t.TRACE_INIT("toFastProps",(function(){r.toFastProperties(t)})),t.TRACE_INIT("Grammar Recording",(function(){try{t.enableRecording(),r.forEach(t.definedRulesNames,(function(e){var n=t[e].originalGrammarAction,r=void 0;t.TRACE_INIT(e+" Rule",(function(){r=t.topLevelRuleRecord(e,n)})),t.gastProductionsCache[e]=r}))}finally{t.disableRecording()}}));var u=[];if(t.TRACE_INIT("Grammar Resolving",(function(){u=s.resolveGrammar({rules:r.values(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,u)})),t.TRACE_INIT("Grammar Validations",(function(){if(r.isEmpty(u)&&!1===t.skipValidations){var e=s.validateGrammar({rules:r.values(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:r.values(t.tokensMap),errMsgProvider:a.defaultGrammarValidatorErrorProvider,grammarName:o});t.definitionErrors.push.apply(t.definitionErrors,e)}})),r.isEmpty(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",(function(){var e=i.computeAllProdsFollows(r.values(t.gastProductionsCache));t.resyncFollows=e})),t.TRACE_INIT("ComputeLookaheadFunctions",(function(){t.preComputeLookaheadFunctions(r.values(t.gastProductionsCache))}))),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!r.isEmpty(t.definitionErrors))throw n=r.map(t.definitionErrors,(function(t){return t.message})),new Error("Parser Definition Errors detected:\n "+n.join("\n-------------------------------\n"))}))},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();t.Parser=g,r.applyMixins(g,[u.Recoverable,c.LooksAhead,l.TreeBuilder,f.LexerAdapter,h.RecognizerEngine,p.RecognizerApi,d.ErrorHandler,v.ContentAssist,m.GastRecorder,y.PerformanceTracer]);var _=function(n){function i(e,i){void 0===i&&(i=t.DEFAULT_PARSER_CONFIG);var o=r.cloneObj(i);return o.outputCst=!0,n.call(this,e,o)||this}return e(i,n),i}(g);t.CstParser=_;var E=function(n){function i(e,i){void 0===i&&(i=t.DEFAULT_PARSER_CONFIG);var o=r.cloneObj(i);return o.outputCst=!1,n.call(this,e,o)||this}return e(i,n),i}(g);t.EmbeddedActionsParser=E}}),st=f({"../../node_modules/chevrotain/lib/src/diagrams/render_public.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.createSyntaxDiagramsCode=void 0;var e=O();t.createSyntaxDiagramsCode=function(t,n){var r=void 0===n?{}:n,i=r.resourceBase,o=void 0===i?"https://unpkg.com/chevrotain@"+e.VERSION+"/diagrams/":i,a=r.css;return'\n\x3c!-- This is a generated file --\x3e\n\n\n\n\n'+("\n\n")+("\n